dummy commit before egcs merge
[deliverable/binutils-gdb.git] / sim / igen / configure
CommitLineData
d865fb6e
MM
1#! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45sim_inline="-DDEFAULT_INLINE=0"
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
b1df34b9
TT
78
79
80
81# This file is derived from `gettext.m4'. The difference is that the
82# included macros assume Cygnus-style source and build trees.
83
84# Macro to add for using GNU gettext.
85# Ulrich Drepper <drepper@cygnus.com>, 1995.
86#
87# This file file be copied and used freely without restrictions. It can
88# be used in projects which are not available under the GNU Public License
89# but which still want to provide support for the GNU gettext functionality.
90# Please note that the actual code is *not* freely available.
91
92# serial 3
93
94
95
96
97
98# Search path for a program which passes the given test.
99# Ulrich Drepper <drepper@cygnus.com>, 1996.
100#
101# This file file be copied and used freely without restrictions. It can
102# be used in projects which are not available under the GNU Public License
103# but which still want to provide support for the GNU gettext functionality.
104# Please note that the actual code is *not* freely available.
105
106# serial 1
107
108
109
110# Check whether LC_MESSAGES is available in <locale.h>.
111# Ulrich Drepper <drepper@cygnus.com>, 1995.
112#
113# This file file be copied and used freely without restrictions. It can
114# be used in projects which are not available under the GNU Public License
115# but which still want to provide support for the GNU gettext functionality.
116# Please note that the actual code is *not* freely available.
117
118# serial 1
d865fb6e
MM
119
120
121
122# Guess values for system-dependent variables and create Makefiles.
123# Generated automatically using autoconf version 2.12.1
124# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
125#
126# This configure script is free software; the Free Software Foundation
127# gives unlimited permission to copy, distribute and modify it.
128
129# Defaults:
130ac_help=
131ac_default_prefix=/usr/local
132# Any additions from configure.in:
133ac_help="$ac_help
134 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
135
136# Initialize some variables set by options.
137# The variables have the same names as the options, with
138# dashes changed to underlines.
139build=NONE
140cache_file=./config.cache
141exec_prefix=NONE
142host=NONE
143no_create=
144nonopt=NONE
145no_recursion=
146prefix=NONE
147program_prefix=NONE
148program_suffix=NONE
149program_transform_name=s,x,x,
150silent=
151site=
152srcdir=
153target=NONE
154verbose=
155x_includes=NONE
156x_libraries=NONE
157bindir='${exec_prefix}/bin'
158sbindir='${exec_prefix}/sbin'
159libexecdir='${exec_prefix}/libexec'
160datadir='${prefix}/share'
161sysconfdir='${prefix}/etc'
162sharedstatedir='${prefix}/com'
163localstatedir='${prefix}/var'
164libdir='${exec_prefix}/lib'
165includedir='${prefix}/include'
166oldincludedir='/usr/include'
167infodir='${prefix}/info'
168mandir='${prefix}/man'
169
170# Initialize some other variables.
171subdirs=
172MFLAGS= MAKEFLAGS=
173SHELL=${CONFIG_SHELL-/bin/sh}
174# Maximum number of lines to put in a shell here document.
175ac_max_here_lines=12
176
177ac_prev=
178for ac_option
179do
180
181 # If the previous option needs an argument, assign it.
182 if test -n "$ac_prev"; then
183 eval "$ac_prev=\$ac_option"
184 ac_prev=
185 continue
186 fi
187
188 case "$ac_option" in
189 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
190 *) ac_optarg= ;;
191 esac
192
193 # Accept the important Cygnus configure options, so we can diagnose typos.
194
195 case "$ac_option" in
196
197 -bindir | --bindir | --bindi | --bind | --bin | --bi)
198 ac_prev=bindir ;;
199 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
200 bindir="$ac_optarg" ;;
201
202 -build | --build | --buil | --bui | --bu)
203 ac_prev=build ;;
204 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
205 build="$ac_optarg" ;;
206
207 -cache-file | --cache-file | --cache-fil | --cache-fi \
208 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
209 ac_prev=cache_file ;;
210 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
211 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
212 cache_file="$ac_optarg" ;;
213
214 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
215 ac_prev=datadir ;;
216 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
217 | --da=*)
218 datadir="$ac_optarg" ;;
219
220 -disable-* | --disable-*)
221 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
222 # Reject names that are not valid shell variable names.
223 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
224 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
225 fi
226 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
227 eval "enable_${ac_feature}=no" ;;
228
229 -enable-* | --enable-*)
230 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
231 # Reject names that are not valid shell variable names.
232 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
233 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
234 fi
235 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
236 case "$ac_option" in
237 *=*) ;;
238 *) ac_optarg=yes ;;
239 esac
240 eval "enable_${ac_feature}='$ac_optarg'" ;;
241
242 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
243 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
244 | --exec | --exe | --ex)
245 ac_prev=exec_prefix ;;
246 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
247 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
248 | --exec=* | --exe=* | --ex=*)
249 exec_prefix="$ac_optarg" ;;
250
251 -gas | --gas | --ga | --g)
252 # Obsolete; use --with-gas.
253 with_gas=yes ;;
254
255 -help | --help | --hel | --he)
256 # Omit some internal or obsolete options to make the list less imposing.
257 # This message is too long to be a string in the A/UX 3.1 sh.
258 cat << EOF
259Usage: configure [options] [host]
260Options: [defaults in brackets after descriptions]
261Configuration:
262 --cache-file=FILE cache test results in FILE
263 --help print this message
264 --no-create do not create output files
265 --quiet, --silent do not print \`checking...' messages
266 --version print the version of autoconf that created configure
267Directory and file names:
268 --prefix=PREFIX install architecture-independent files in PREFIX
269 [$ac_default_prefix]
270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
271 [same as prefix]
272 --bindir=DIR user executables in DIR [EPREFIX/bin]
273 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
274 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
275 --datadir=DIR read-only architecture-independent data in DIR
276 [PREFIX/share]
277 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
278 --sharedstatedir=DIR modifiable architecture-independent data in DIR
279 [PREFIX/com]
280 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
281 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
282 --includedir=DIR C header files in DIR [PREFIX/include]
283 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
284 --infodir=DIR info documentation in DIR [PREFIX/info]
285 --mandir=DIR man documentation in DIR [PREFIX/man]
286 --srcdir=DIR find the sources in DIR [configure dir or ..]
287 --program-prefix=PREFIX prepend PREFIX to installed program names
288 --program-suffix=SUFFIX append SUFFIX to installed program names
289 --program-transform-name=PROGRAM
290 run sed PROGRAM on installed program names
291EOF
292 cat << EOF
293Host type:
294 --build=BUILD configure for building on BUILD [BUILD=HOST]
295 --host=HOST configure for HOST [guessed]
296 --target=TARGET configure for TARGET [TARGET=HOST]
297Features and packages:
298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
300 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
301 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
302 --x-includes=DIR X include files are in DIR
303 --x-libraries=DIR X library files are in DIR
304EOF
305 if test -n "$ac_help"; then
306 echo "--enable and --with options recognized:$ac_help"
307 fi
308 exit 0 ;;
309
310 -host | --host | --hos | --ho)
311 ac_prev=host ;;
312 -host=* | --host=* | --hos=* | --ho=*)
313 host="$ac_optarg" ;;
314
315 -includedir | --includedir | --includedi | --included | --include \
316 | --includ | --inclu | --incl | --inc)
317 ac_prev=includedir ;;
318 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
319 | --includ=* | --inclu=* | --incl=* | --inc=*)
320 includedir="$ac_optarg" ;;
321
322 -infodir | --infodir | --infodi | --infod | --info | --inf)
323 ac_prev=infodir ;;
324 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
325 infodir="$ac_optarg" ;;
326
327 -libdir | --libdir | --libdi | --libd)
328 ac_prev=libdir ;;
329 -libdir=* | --libdir=* | --libdi=* | --libd=*)
330 libdir="$ac_optarg" ;;
331
332 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
333 | --libexe | --libex | --libe)
334 ac_prev=libexecdir ;;
335 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
336 | --libexe=* | --libex=* | --libe=*)
337 libexecdir="$ac_optarg" ;;
338
339 -localstatedir | --localstatedir | --localstatedi | --localstated \
340 | --localstate | --localstat | --localsta | --localst \
341 | --locals | --local | --loca | --loc | --lo)
342 ac_prev=localstatedir ;;
343 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
344 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
345 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
346 localstatedir="$ac_optarg" ;;
347
348 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
349 ac_prev=mandir ;;
350 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
351 mandir="$ac_optarg" ;;
352
353 -nfp | --nfp | --nf)
354 # Obsolete; use --without-fp.
355 with_fp=no ;;
356
357 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
358 | --no-cr | --no-c)
359 no_create=yes ;;
360
361 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
362 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
363 no_recursion=yes ;;
364
365 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
366 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
367 | --oldin | --oldi | --old | --ol | --o)
368 ac_prev=oldincludedir ;;
369 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
370 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
371 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
372 oldincludedir="$ac_optarg" ;;
373
374 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
375 ac_prev=prefix ;;
376 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
377 prefix="$ac_optarg" ;;
378
379 -program-prefix | --program-prefix | --program-prefi | --program-pref \
380 | --program-pre | --program-pr | --program-p)
381 ac_prev=program_prefix ;;
382 -program-prefix=* | --program-prefix=* | --program-prefi=* \
383 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
384 program_prefix="$ac_optarg" ;;
385
386 -program-suffix | --program-suffix | --program-suffi | --program-suff \
387 | --program-suf | --program-su | --program-s)
388 ac_prev=program_suffix ;;
389 -program-suffix=* | --program-suffix=* | --program-suffi=* \
390 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
391 program_suffix="$ac_optarg" ;;
392
393 -program-transform-name | --program-transform-name \
394 | --program-transform-nam | --program-transform-na \
395 | --program-transform-n | --program-transform- \
396 | --program-transform | --program-transfor \
397 | --program-transfo | --program-transf \
398 | --program-trans | --program-tran \
399 | --progr-tra | --program-tr | --program-t)
400 ac_prev=program_transform_name ;;
401 -program-transform-name=* | --program-transform-name=* \
402 | --program-transform-nam=* | --program-transform-na=* \
403 | --program-transform-n=* | --program-transform-=* \
404 | --program-transform=* | --program-transfor=* \
405 | --program-transfo=* | --program-transf=* \
406 | --program-trans=* | --program-tran=* \
407 | --progr-tra=* | --program-tr=* | --program-t=*)
408 program_transform_name="$ac_optarg" ;;
409
410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
411 | -silent | --silent | --silen | --sile | --sil)
412 silent=yes ;;
413
414 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
415 ac_prev=sbindir ;;
416 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
417 | --sbi=* | --sb=*)
418 sbindir="$ac_optarg" ;;
419
420 -sharedstatedir | --sharedstatedir | --sharedstatedi \
421 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
422 | --sharedst | --shareds | --shared | --share | --shar \
423 | --sha | --sh)
424 ac_prev=sharedstatedir ;;
425 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
426 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
427 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
428 | --sha=* | --sh=*)
429 sharedstatedir="$ac_optarg" ;;
430
431 -site | --site | --sit)
432 ac_prev=site ;;
433 -site=* | --site=* | --sit=*)
434 site="$ac_optarg" ;;
435
436 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
437 ac_prev=srcdir ;;
438 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
439 srcdir="$ac_optarg" ;;
440
441 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
442 | --syscon | --sysco | --sysc | --sys | --sy)
443 ac_prev=sysconfdir ;;
444 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
445 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
446 sysconfdir="$ac_optarg" ;;
447
448 -target | --target | --targe | --targ | --tar | --ta | --t)
449 ac_prev=target ;;
450 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
451 target="$ac_optarg" ;;
452
453 -v | -verbose | --verbose | --verbos | --verbo | --verb)
454 verbose=yes ;;
455
456 -version | --version | --versio | --versi | --vers)
457 echo "configure generated by autoconf version 2.12.1"
458 exit 0 ;;
459
460 -with-* | --with-*)
461 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
462 # Reject names that are not valid shell variable names.
463 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
464 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
465 fi
466 ac_package=`echo $ac_package| sed 's/-/_/g'`
467 case "$ac_option" in
468 *=*) ;;
469 *) ac_optarg=yes ;;
470 esac
471 eval "with_${ac_package}='$ac_optarg'" ;;
472
473 -without-* | --without-*)
474 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
475 # Reject names that are not valid shell variable names.
476 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
477 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
478 fi
479 ac_package=`echo $ac_package| sed 's/-/_/g'`
480 eval "with_${ac_package}=no" ;;
481
482 --x)
483 # Obsolete; use --with-x.
484 with_x=yes ;;
485
486 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
487 | --x-incl | --x-inc | --x-in | --x-i)
488 ac_prev=x_includes ;;
489 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
490 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
491 x_includes="$ac_optarg" ;;
492
493 -x-libraries | --x-libraries | --x-librarie | --x-librari \
494 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
495 ac_prev=x_libraries ;;
496 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
497 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
498 x_libraries="$ac_optarg" ;;
499
500 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
501 ;;
502
503 *)
504 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
505 echo "configure: warning: $ac_option: invalid host type" 1>&2
506 fi
507 if test "x$nonopt" != xNONE; then
508 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
509 fi
510 nonopt="$ac_option"
511 ;;
512
513 esac
514done
515
516if test -n "$ac_prev"; then
517 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
518fi
519
520trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
521
522# File descriptor usage:
523# 0 standard input
524# 1 file creation
525# 2 errors and warnings
526# 3 some systems may open it to /dev/tty
527# 4 used on the Kubota Titan
528# 6 checking for... messages and results
529# 5 compiler messages saved in config.log
530if test "$silent" = yes; then
531 exec 6>/dev/null
532else
533 exec 6>&1
534fi
535exec 5>./config.log
536
537echo "\
538This file contains any messages produced by compilers while
539running configure, to aid debugging if configure makes a mistake.
540" 1>&5
541
542# Strip out --no-create and --no-recursion so they do not pile up.
543# Also quote any args containing shell metacharacters.
544ac_configure_args=
545for ac_arg
546do
547 case "$ac_arg" in
548 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
549 | --no-cr | --no-c) ;;
550 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
551 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
552 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
553 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
554 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
555 esac
556done
557
558# NLS nuisances.
559# Only set these to C if already set. These must not be set unconditionally
560# because not all systems understand e.g. LANG=C (notably SCO).
561# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
562# Non-C LC_CTYPE values break the ctype check.
563if test "${LANG+set}" = set; then LANG=C; export LANG; fi
564if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
565if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
566if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
567
568# confdefs.h avoids OS command line length limits that DEFS can exceed.
569rm -rf conftest* confdefs.h
570# AIX cpp loses on an empty file, so make sure it contains at least a newline.
571echo > confdefs.h
572
573# A filename unique to this package, relative to the directory that
574# configure is in, which we can look for to find out if srcdir is correct.
575ac_unique_file=table.h
576
577# Find the source files, if location was not specified.
578if test -z "$srcdir"; then
579 ac_srcdir_defaulted=yes
580 # Try the directory containing this script, then its parent.
581 ac_prog=$0
582 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
583 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
584 srcdir=$ac_confdir
585 if test ! -r $srcdir/$ac_unique_file; then
586 srcdir=..
587 fi
588else
589 ac_srcdir_defaulted=no
590fi
591if test ! -r $srcdir/$ac_unique_file; then
592 if test "$ac_srcdir_defaulted" = yes; then
593 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
594 else
595 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
596 fi
597fi
598srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
599
600# Prefer explicitly selected file to automatically selected ones.
601if test -z "$CONFIG_SITE"; then
602 if test "x$prefix" != xNONE; then
603 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
604 else
605 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
606 fi
607fi
608for ac_site_file in $CONFIG_SITE; do
609 if test -r "$ac_site_file"; then
610 echo "loading site script $ac_site_file"
611 . "$ac_site_file"
612 fi
613done
614
615if test -r "$cache_file"; then
616 echo "loading cache $cache_file"
617 . $cache_file
618else
619 echo "creating cache $cache_file"
620 > $cache_file
621fi
622
623ac_ext=c
624# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
625ac_cpp='$CPP $CPPFLAGS'
626ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
627ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
628cross_compiling=$ac_cv_prog_cc_cross
629
630if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
631 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
632 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
633 ac_n= ac_c='
634' ac_t=' '
635 else
636 ac_n=-n ac_c= ac_t=
637 fi
638else
639 ac_n= ac_c='\c' ac_t=
640fi
641
642
643
644ac_aux_dir=
645for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
646 if test -f $ac_dir/install-sh; then
647 ac_aux_dir=$ac_dir
648 ac_install_sh="$ac_aux_dir/install-sh -c"
649 break
650 elif test -f $ac_dir/install.sh; then
651 ac_aux_dir=$ac_dir
652 ac_install_sh="$ac_aux_dir/install.sh -c"
653 break
654 fi
655done
656if test -z "$ac_aux_dir"; then
657 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
658fi
659ac_config_guess=$ac_aux_dir/config.guess
660ac_config_sub=$ac_aux_dir/config.sub
661ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
662
663# Find a good install program. We prefer a C program (faster),
664# so one script is as good as another. But avoid the broken or
665# incompatible versions:
666# SysV /etc/install, /usr/sbin/install
667# SunOS /usr/etc/install
668# IRIX /sbin/install
669# AIX /bin/install
670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
673# ./install, which can be erroneously created by make from ./install.sh.
674echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
b1df34b9 675echo "configure:676: checking for a BSD compatible install" >&5
d865fb6e
MM
676if test -z "$INSTALL"; then
677if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
679else
680 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
681 for ac_dir in $PATH; do
682 # Account for people who put trailing slashes in PATH elements.
683 case "$ac_dir/" in
684 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
685 *)
686 # OSF1 and SCO ODT 3.0 have their own names for install.
687 # Don't use installbsd from OSF since it installs stuff as root
688 # by default.
689 for ac_prog in ginstall scoinst install; do
690 if test -f $ac_dir/$ac_prog; then
691 if test $ac_prog = install &&
692 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
693 # AIX install. It has an incompatible calling convention.
694 :
695 else
696 ac_cv_path_install="$ac_dir/$ac_prog -c"
697 break 2
698 fi
699 fi
700 done
701 ;;
702 esac
703 done
704 IFS="$ac_save_IFS"
705
706fi
707 if test "${ac_cv_path_install+set}" = set; then
708 INSTALL="$ac_cv_path_install"
709 else
710 # As a last resort, use the slow shell script. We don't cache a
711 # path for INSTALL within a source directory, because that will
712 # break other packages using the cache if that directory is
713 # removed, or if the path is relative.
714 INSTALL="$ac_install_sh"
715 fi
716fi
717echo "$ac_t""$INSTALL" 1>&6
718
719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
720# It thinks the first close brace ends the variable substitution.
721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
722
723test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
724
725# Extract the first word of "gcc", so it can be a program name with args.
726set dummy gcc; ac_word=$2
727echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b1df34b9 728echo "configure:729: checking for $ac_word" >&5
d865fb6e
MM
729if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731else
732 if test -n "$CC"; then
733 ac_cv_prog_CC="$CC" # Let the user override the test.
734else
735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
736 for ac_dir in $PATH; do
737 test -z "$ac_dir" && ac_dir=.
738 if test -f $ac_dir/$ac_word; then
739 ac_cv_prog_CC="gcc"
740 break
741 fi
742 done
743 IFS="$ac_save_ifs"
744fi
745fi
746CC="$ac_cv_prog_CC"
747if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
749else
750 echo "$ac_t""no" 1>&6
751fi
752
753if test -z "$CC"; then
754 # Extract the first word of "cc", so it can be a program name with args.
755set dummy cc; ac_word=$2
756echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b1df34b9 757echo "configure:758: checking for $ac_word" >&5
d865fb6e
MM
758if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
760else
761 if test -n "$CC"; then
762 ac_cv_prog_CC="$CC" # Let the user override the test.
763else
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
765 ac_prog_rejected=no
766 for ac_dir in $PATH; do
767 test -z "$ac_dir" && ac_dir=.
768 if test -f $ac_dir/$ac_word; then
769 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
770 ac_prog_rejected=yes
771 continue
772 fi
773 ac_cv_prog_CC="cc"
774 break
775 fi
776 done
777 IFS="$ac_save_ifs"
778if test $ac_prog_rejected = yes; then
779 # We found a bogon in the path, so make sure we never use it.
780 set dummy $ac_cv_prog_CC
781 shift
782 if test $# -gt 0; then
783 # We chose a different compiler from the bogus one.
784 # However, it has the same basename, so the bogon will be chosen
785 # first if we set CC to just the basename; use the full file name.
786 shift
787 set dummy "$ac_dir/$ac_word" "$@"
788 shift
789 ac_cv_prog_CC="$@"
790 fi
791fi
792fi
793fi
794CC="$ac_cv_prog_CC"
795if test -n "$CC"; then
796 echo "$ac_t""$CC" 1>&6
797else
798 echo "$ac_t""no" 1>&6
799fi
800
801 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
802fi
803
804echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b1df34b9 805echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d865fb6e
MM
806
807ac_ext=c
808# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809ac_cpp='$CPP $CPPFLAGS'
810ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812cross_compiling=$ac_cv_prog_cc_cross
813
814cat > conftest.$ac_ext <<EOF
b1df34b9 815#line 816 "configure"
d865fb6e
MM
816#include "confdefs.h"
817main(){return(0);}
818EOF
b1df34b9 819if { (eval echo configure:820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d865fb6e
MM
820 ac_cv_prog_cc_works=yes
821 # If we can't run a trivial program, we are probably using a cross compiler.
822 if (./conftest; exit) 2>/dev/null; then
823 ac_cv_prog_cc_cross=no
824 else
825 ac_cv_prog_cc_cross=yes
826 fi
827else
828 echo "configure: failed program was:" >&5
829 cat conftest.$ac_ext >&5
830 ac_cv_prog_cc_works=no
831fi
832rm -fr conftest*
833
834echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
835if test $ac_cv_prog_cc_works = no; then
836 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
837fi
838echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b1df34b9 839echo "configure:840: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d865fb6e
MM
840echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
841cross_compiling=$ac_cv_prog_cc_cross
842
843echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
b1df34b9 844echo "configure:845: checking whether we are using GNU C" >&5
d865fb6e
MM
845if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
847else
848 cat > conftest.c <<EOF
849#ifdef __GNUC__
850 yes;
851#endif
852EOF
b1df34b9 853if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d865fb6e
MM
854 ac_cv_prog_gcc=yes
855else
856 ac_cv_prog_gcc=no
857fi
858fi
859
860echo "$ac_t""$ac_cv_prog_gcc" 1>&6
861
862if test $ac_cv_prog_gcc = yes; then
863 GCC=yes
864 ac_test_CFLAGS="${CFLAGS+set}"
865 ac_save_CFLAGS="$CFLAGS"
866 CFLAGS=
867 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
b1df34b9 868echo "configure:869: checking whether ${CC-cc} accepts -g" >&5
d865fb6e
MM
869if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871else
872 echo 'void f(){}' > conftest.c
873if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
874 ac_cv_prog_cc_g=yes
875else
876 ac_cv_prog_cc_g=no
877fi
878rm -f conftest*
879
880fi
881
882echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
883 if test "$ac_test_CFLAGS" = set; then
884 CFLAGS="$ac_save_CFLAGS"
885 elif test $ac_cv_prog_cc_g = yes; then
886 CFLAGS="-g -O2"
887 else
888 CFLAGS="-O2"
889 fi
890else
891 GCC=
892 test "${CFLAGS+set}" = set || CFLAGS="-g"
893fi
894
895
896
897# Check whether --enable-sim-warnings or --disable-sim-warnings was given.
898if test "${enable_sim_warnings+set}" = set; then
899 enableval="$enable_sim_warnings"
900 case "${enableval}" in
901 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
902 no) sim_warnings="-w";;
903 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
904esac
905if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
906 echo "Setting warning flags = $sim_warnings" 6>&1
907fi
908else
909 sim_warnings=""
910fi
911
912
913# Put a plausible default for CC_FOR_BUILD in Makefile.
914if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
915 AR_FOR_BUILD='$(AR)'
916 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
917 CC_FOR_BUILD='$(CC)'
918 CFLAGS_FOR_BUILD='$(CFLAGS)'
919 RANLIB_FOR_BUILD='$(RANLIB)'
920 LIBIBERTY_LIB=../../libiberty/libiberty.a
921else
922 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
923 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
924 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
925 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
926 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
927 LIBIBERTY_LIB=
928fi
929
930
931ac_aux_dir=
932for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
933 if test -f $ac_dir/install-sh; then
934 ac_aux_dir=$ac_dir
935 ac_install_sh="$ac_aux_dir/install-sh -c"
936 break
937 elif test -f $ac_dir/install.sh; then
938 ac_aux_dir=$ac_dir
939 ac_install_sh="$ac_aux_dir/install.sh -c"
940 break
941 fi
942done
943if test -z "$ac_aux_dir"; then
944 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
945fi
946ac_config_guess=$ac_aux_dir/config.guess
947ac_config_sub=$ac_aux_dir/config.sub
948ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
949
950
951# Do some error checking and defaulting for the host and target type.
952# The inputs are:
953# configure --host=HOST --target=TARGET --build=BUILD NONOPT
954#
955# The rules are:
956# 1. You are not allowed to specify --host, --target, and nonopt at the
957# same time.
958# 2. Host defaults to nonopt.
959# 3. If nonopt is not specified, then host defaults to the current host,
960# as determined by config.guess.
961# 4. Target and build default to nonopt.
962# 5. If nonopt is not specified, then target and build default to host.
963
964# The aliases save the names the user supplied, while $host etc.
965# will get canonicalized.
966case $host---$target---$nonopt in
967NONE---*---* | *---NONE---* | *---*---NONE) ;;
968*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
969esac
970
971
972# Make sure we can run config.sub.
973if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
974else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
975fi
976
977echo $ac_n "checking host system type""... $ac_c" 1>&6
b1df34b9 978echo "configure:979: checking host system type" >&5
d865fb6e
MM
979
980host_alias=$host
981case "$host_alias" in
982NONE)
983 case $nonopt in
984 NONE)
985 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
986 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
987 fi ;;
988 *) host_alias=$nonopt ;;
989 esac ;;
990esac
991
992host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
993host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
994host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
995host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
996echo "$ac_t""$host" 1>&6
997
998echo $ac_n "checking target system type""... $ac_c" 1>&6
b1df34b9 999echo "configure:1000: checking target system type" >&5
d865fb6e
MM
1000
1001target_alias=$target
1002case "$target_alias" in
1003NONE)
1004 case $nonopt in
1005 NONE) target_alias=$host_alias ;;
1006 *) target_alias=$nonopt ;;
1007 esac ;;
1008esac
1009
1010target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1011target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014echo "$ac_t""$target" 1>&6
1015
1016echo $ac_n "checking build system type""... $ac_c" 1>&6
b1df34b9 1017echo "configure:1018: checking build system type" >&5
d865fb6e
MM
1018
1019build_alias=$build
1020case "$build_alias" in
1021NONE)
1022 case $nonopt in
1023 NONE) build_alias=$host_alias ;;
1024 *) build_alias=$nonopt ;;
1025 esac ;;
1026esac
1027
1028build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1029build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032echo "$ac_t""$build" 1>&6
1033
1034test "$host_alias" != "$target_alias" &&
1035 test "$program_prefix$program_suffix$program_transform_name" = \
1036 NONENONEs,x,x, &&
1037 program_prefix=${target_alias}-
1038
1039if test "$program_transform_name" = s,x,x,; then
1040 program_transform_name=
1041else
1042 # Double any \ or $. echo might interpret backslashes.
1043 cat <<\EOF_SED > conftestsed
1044s,\\,\\\\,g; s,\$,$$,g
1045EOF_SED
1046 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1047 rm -f conftestsed
1048fi
1049test "$program_prefix" != NONE &&
1050 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1051# Use a double $ so make ignores it.
1052test "$program_suffix" != NONE &&
1053 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1054
1055# sed with no file args requires a program.
1056test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1057
1058
1059. ${srcdir}/../../bfd/configure.host
1060
1061
1062
1063echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
b1df34b9 1064echo "configure:1065: checking how to run the C preprocessor" >&5
d865fb6e
MM
1065# On Suns, sometimes $CPP names a directory.
1066if test -n "$CPP" && test -d "$CPP"; then
1067 CPP=
1068fi
1069if test -z "$CPP"; then
1070if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1072else
1073 # This must be in double quotes, not single quotes, because CPP may get
1074 # substituted into the Makefile and "${CC-cc}" will confuse make.
1075 CPP="${CC-cc} -E"
1076 # On the NeXT, cc -E runs the code through the compiler's parser,
1077 # not just through cpp.
1078 cat > conftest.$ac_ext <<EOF
b1df34b9 1079#line 1080 "configure"
d865fb6e
MM
1080#include "confdefs.h"
1081#include <assert.h>
1082Syntax Error
1083EOF
1084ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b1df34b9 1085{ (eval echo configure:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d865fb6e
MM
1086ac_err=`grep -v '^ *+' conftest.out`
1087if test -z "$ac_err"; then
1088 :
1089else
1090 echo "$ac_err" >&5
1091 echo "configure: failed program was:" >&5
1092 cat conftest.$ac_ext >&5
1093 rm -rf conftest*
1094 CPP="${CC-cc} -E -traditional-cpp"
1095 cat > conftest.$ac_ext <<EOF
b1df34b9 1096#line 1097 "configure"
d865fb6e
MM
1097#include "confdefs.h"
1098#include <assert.h>
1099Syntax Error
1100EOF
1101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b1df34b9 1102{ (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d865fb6e
MM
1103ac_err=`grep -v '^ *+' conftest.out`
1104if test -z "$ac_err"; then
1105 :
1106else
1107 echo "$ac_err" >&5
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1110 rm -rf conftest*
1111 CPP=/lib/cpp
1112fi
1113rm -f conftest*
1114fi
1115rm -f conftest*
1116 ac_cv_prog_CPP="$CPP"
1117fi
1118 CPP="$ac_cv_prog_CPP"
1119else
1120 ac_cv_prog_CPP="$CPP"
1121fi
1122echo "$ac_t""$CPP" 1>&6
1123
1124for ac_hdr in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
1125do
1126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1127echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b1df34b9 1128echo "configure:1129: checking for $ac_hdr" >&5
d865fb6e
MM
1129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131else
1132 cat > conftest.$ac_ext <<EOF
b1df34b9 1133#line 1134 "configure"
d865fb6e
MM
1134#include "confdefs.h"
1135#include <$ac_hdr>
1136EOF
1137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b1df34b9 1138{ (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d865fb6e
MM
1139ac_err=`grep -v '^ *+' conftest.out`
1140if test -z "$ac_err"; then
1141 rm -rf conftest*
1142 eval "ac_cv_header_$ac_safe=yes"
1143else
1144 echo "$ac_err" >&5
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1147 rm -rf conftest*
1148 eval "ac_cv_header_$ac_safe=no"
1149fi
1150rm -f conftest*
1151fi
1152if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1153 echo "$ac_t""yes" 1>&6
1154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1155 cat >> confdefs.h <<EOF
1156#define $ac_tr_hdr 1
1157EOF
1158
1159else
1160 echo "$ac_t""no" 1>&6
1161fi
1162done
1163
1164ac_header_dirent=no
1165for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1166do
1167ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1168echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
b1df34b9 1169echo "configure:1170: checking for $ac_hdr that defines DIR" >&5
d865fb6e
MM
1170if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1172else
1173 cat > conftest.$ac_ext <<EOF
b1df34b9 1174#line 1175 "configure"
d865fb6e
MM
1175#include "confdefs.h"
1176#include <sys/types.h>
1177#include <$ac_hdr>
1178int main() {
1179DIR *dirp = 0;
1180; return 0; }
1181EOF
b1df34b9 1182if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d865fb6e
MM
1183 rm -rf conftest*
1184 eval "ac_cv_header_dirent_$ac_safe=yes"
1185else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 eval "ac_cv_header_dirent_$ac_safe=no"
1190fi
1191rm -f conftest*
1192fi
1193if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1194 echo "$ac_t""yes" 1>&6
1195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1196 cat >> confdefs.h <<EOF
1197#define $ac_tr_hdr 1
1198EOF
1199 ac_header_dirent=$ac_hdr; break
1200else
1201 echo "$ac_t""no" 1>&6
1202fi
1203done
1204# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1205if test $ac_header_dirent = dirent.h; then
1206echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
b1df34b9 1207echo "configure:1208: checking for opendir in -ldir" >&5
d865fb6e
MM
1208ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1209if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1211else
1212 ac_save_LIBS="$LIBS"
1213LIBS="-ldir $LIBS"
1214cat > conftest.$ac_ext <<EOF
b1df34b9 1215#line 1216 "configure"
d865fb6e
MM
1216#include "confdefs.h"
1217/* Override any gcc2 internal prototype to avoid an error. */
1218/* We use char because int might match the return type of a gcc2
1219 builtin and then its argument prototype would still apply. */
1220char opendir();
1221
1222int main() {
1223opendir()
1224; return 0; }
1225EOF
b1df34b9 1226if { (eval echo configure:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d865fb6e
MM
1227 rm -rf conftest*
1228 eval "ac_cv_lib_$ac_lib_var=yes"
1229else
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1232 rm -rf conftest*
1233 eval "ac_cv_lib_$ac_lib_var=no"
1234fi
1235rm -f conftest*
1236LIBS="$ac_save_LIBS"
1237
1238fi
1239if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1241 LIBS="$LIBS -ldir"
1242else
1243 echo "$ac_t""no" 1>&6
1244fi
1245
1246else
1247echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
b1df34b9 1248echo "configure:1249: checking for opendir in -lx" >&5
d865fb6e
MM
1249ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1250if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252else
1253 ac_save_LIBS="$LIBS"
1254LIBS="-lx $LIBS"
1255cat > conftest.$ac_ext <<EOF
b1df34b9 1256#line 1257 "configure"
d865fb6e
MM
1257#include "confdefs.h"
1258/* Override any gcc2 internal prototype to avoid an error. */
1259/* We use char because int might match the return type of a gcc2
1260 builtin and then its argument prototype would still apply. */
1261char opendir();
1262
1263int main() {
1264opendir()
1265; return 0; }
1266EOF
b1df34b9 1267if { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d865fb6e
MM
1268 rm -rf conftest*
1269 eval "ac_cv_lib_$ac_lib_var=yes"
1270else
1271 echo "configure: failed program was:" >&5
1272 cat conftest.$ac_ext >&5
1273 rm -rf conftest*
1274 eval "ac_cv_lib_$ac_lib_var=no"
1275fi
1276rm -f conftest*
1277LIBS="$ac_save_LIBS"
1278
1279fi
1280if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1281 echo "$ac_t""yes" 1>&6
1282 LIBS="$LIBS -lx"
1283else
1284 echo "$ac_t""no" 1>&6
1285fi
1286
1287fi
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299# Extract the first word of "ranlib", so it can be a program name with args.
1300set dummy ranlib; ac_word=$2
1301echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b1df34b9 1302echo "configure:1303: checking for $ac_word" >&5
d865fb6e
MM
1303if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305else
1306 if test -n "$RANLIB"; then
1307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1308else
1309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1310 for ac_dir in $PATH; do
1311 test -z "$ac_dir" && ac_dir=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_RANLIB="ranlib"
1314 break
1315 fi
1316 done
1317 IFS="$ac_save_ifs"
1318 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1319fi
1320fi
1321RANLIB="$ac_cv_prog_RANLIB"
1322if test -n "$RANLIB"; then
1323 echo "$ac_t""$RANLIB" 1>&6
1324else
1325 echo "$ac_t""no" 1>&6
1326fi
1327
1328
1329trap '' 1 2 15
1330cat > confcache <<\EOF
1331# This file is a shell script that caches the results of configure
1332# tests run on this system so they can be shared between configure
1333# scripts and configure runs. It is not useful on other systems.
1334# If it contains results you don't want to keep, you may remove or edit it.
1335#
1336# By default, configure uses ./config.cache as the cache file,
1337# creating it if it does not exist already. You can give configure
1338# the --cache-file=FILE option to use a different cache file; that is
1339# what configure does when it calls configure scripts in
1340# subdirectories, so they share the cache.
1341# Giving --cache-file=/dev/null disables caching, for debugging configure.
1342# config.status only pays attention to the cache file if you give it the
1343# --recheck option to rerun configure.
1344#
1345EOF
1346# The following way of writing the cache mishandles newlines in values,
1347# but we know of no workaround that is simple, portable, and efficient.
1348# So, don't put newlines in cache variables' values.
1349# Ultrix sh set writes to stderr and can't be redirected directly,
1350# and sets the high bit in the cache file unless we assign to the vars.
1351(set) 2>&1 |
1352 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1353 *ac_space=\ *)
1354 # `set' does not quote correctly, so add quotes (double-quote substitution
1355 # turns \\\\ into \\, and sed turns \\ into \).
1356 sed -n \
1357 -e "s/'/'\\\\''/g" \
1358 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1359 ;;
1360 *)
1361 # `set' quotes correctly as required by POSIX, so do not add quotes.
1362 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1363 ;;
1364 esac >> confcache
1365if cmp -s $cache_file confcache; then
1366 :
1367else
1368 if test -w $cache_file; then
1369 echo "updating cache $cache_file"
1370 cat confcache > $cache_file
1371 else
1372 echo "not updating unwritable cache $cache_file"
1373 fi
1374fi
1375rm -f confcache
1376
1377trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1378
1379test "x$prefix" = xNONE && prefix=$ac_default_prefix
1380# Let make expand exec_prefix.
1381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1382
1383# Any assignment to VPATH causes Sun make to only execute
1384# the first set of double-colon rules, so remove it if not needed.
1385# If there is a colon in the path, we need to keep it.
1386if test "x$srcdir" = x.; then
1387 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1388fi
1389
1390trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1391
1392DEFS=-DHAVE_CONFIG_H
1393
1394# Without the "./", some shells look in PATH for config.status.
1395: ${CONFIG_STATUS=./config.status}
1396
1397echo creating $CONFIG_STATUS
1398rm -f $CONFIG_STATUS
1399cat > $CONFIG_STATUS <<EOF
1400#! /bin/sh
1401# Generated automatically by configure.
1402# Run this file to recreate the current configuration.
1403# This directory was configured as follows,
1404# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1405#
1406# $0 $ac_configure_args
1407#
1408# Compiler output produced by configure, useful for debugging
1409# configure, is in ./config.log if it exists.
1410
1411ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1412for ac_option
1413do
1414 case "\$ac_option" in
1415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1416 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1417 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1418 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1419 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1420 exit 0 ;;
1421 -help | --help | --hel | --he | --h)
1422 echo "\$ac_cs_usage"; exit 0 ;;
1423 *) echo "\$ac_cs_usage"; exit 1 ;;
1424 esac
1425done
1426
1427ac_given_srcdir=$srcdir
1428ac_given_INSTALL="$INSTALL"
1429
1430trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1431EOF
1432cat >> $CONFIG_STATUS <<EOF
1433
1434# Protect against being on the right side of a sed subst in config.status.
1435sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1436 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1437$ac_vpsub
1438$extrasub
1439s%@sim_environment@%$sim_environment%g
1440s%@sim_alignment@%$sim_alignment%g
1441s%@sim_assert@%$sim_assert%g
1442s%@sim_bitsize@%$sim_bitsize%g
1443s%@sim_endian@%$sim_endian%g
1444s%@sim_hostendian@%$sim_hostendian%g
1445s%@sim_float@%$sim_float%g
1446s%@sim_scache@%$sim_scache%g
1447s%@sim_default_model@%$sim_default_model%g
1448s%@sim_hardware@%$sim_hardware%g
1449s%@sim_hw_obj@%$sim_hw_obj%g
1450s%@sim_hw@%$sim_hw%g
1451s%@sim_inline@%$sim_inline%g
1452s%@sim_packages@%$sim_packages%g
1453s%@sim_regparm@%$sim_regparm%g
1454s%@sim_reserved_bits@%$sim_reserved_bits%g
1455s%@sim_smp@%$sim_smp%g
1456s%@sim_stdcall@%$sim_stdcall%g
1457s%@sim_xor_endian@%$sim_xor_endian%g
1458s%@sim_warnings@%$sim_warnings%g
1459s%@SHELL@%$SHELL%g
1460s%@CFLAGS@%$CFLAGS%g
1461s%@CPPFLAGS@%$CPPFLAGS%g
1462s%@CXXFLAGS@%$CXXFLAGS%g
1463s%@DEFS@%$DEFS%g
1464s%@LDFLAGS@%$LDFLAGS%g
1465s%@LIBS@%$LIBS%g
1466s%@exec_prefix@%$exec_prefix%g
1467s%@prefix@%$prefix%g
1468s%@program_transform_name@%$program_transform_name%g
1469s%@bindir@%$bindir%g
1470s%@sbindir@%$sbindir%g
1471s%@libexecdir@%$libexecdir%g
1472s%@datadir@%$datadir%g
1473s%@sysconfdir@%$sysconfdir%g
1474s%@sharedstatedir@%$sharedstatedir%g
1475s%@localstatedir@%$localstatedir%g
1476s%@libdir@%$libdir%g
1477s%@includedir@%$includedir%g
1478s%@oldincludedir@%$oldincludedir%g
1479s%@infodir@%$infodir%g
1480s%@mandir@%$mandir%g
1481s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1482s%@INSTALL_DATA@%$INSTALL_DATA%g
1483s%@CC@%$CC%g
1484s%@host@%$host%g
1485s%@host_alias@%$host_alias%g
1486s%@host_cpu@%$host_cpu%g
1487s%@host_vendor@%$host_vendor%g
1488s%@host_os@%$host_os%g
1489s%@target@%$target%g
1490s%@target_alias@%$target_alias%g
1491s%@target_cpu@%$target_cpu%g
1492s%@target_vendor@%$target_vendor%g
1493s%@target_os@%$target_os%g
1494s%@build@%$build%g
1495s%@build_alias@%$build_alias%g
1496s%@build_cpu@%$build_cpu%g
1497s%@build_vendor@%$build_vendor%g
1498s%@build_os@%$build_os%g
1499s%@CPP@%$CPP%g
1500s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g
1501s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g
1502s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1503s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
1504s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g
1505s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g
1506s%@AR@%$AR%g
1507s%@RANLIB@%$RANLIB%g
1508
1509CEOF
1510EOF
1511
1512cat >> $CONFIG_STATUS <<\EOF
1513
1514# Split the substitutions into bite-sized pieces for seds with
1515# small command number limits, like on Digital OSF/1 and HP-UX.
1516ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1517ac_file=1 # Number of current file.
1518ac_beg=1 # First line for current file.
1519ac_end=$ac_max_sed_cmds # Line after last line for current file.
1520ac_more_lines=:
1521ac_sed_cmds=""
1522while $ac_more_lines; do
1523 if test $ac_beg -gt 1; then
1524 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1525 else
1526 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1527 fi
1528 if test ! -s conftest.s$ac_file; then
1529 ac_more_lines=false
1530 rm -f conftest.s$ac_file
1531 else
1532 if test -z "$ac_sed_cmds"; then
1533 ac_sed_cmds="sed -f conftest.s$ac_file"
1534 else
1535 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1536 fi
1537 ac_file=`expr $ac_file + 1`
1538 ac_beg=$ac_end
1539 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1540 fi
1541done
1542if test -z "$ac_sed_cmds"; then
1543 ac_sed_cmds=cat
1544fi
1545EOF
1546
1547cat >> $CONFIG_STATUS <<EOF
1548
1549CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1550EOF
1551cat >> $CONFIG_STATUS <<\EOF
1552for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1554 case "$ac_file" in
1555 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1556 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1557 *) ac_file_in="${ac_file}.in" ;;
1558 esac
1559
1560 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1561
1562 # Remove last slash and all that follows it. Not all systems have dirname.
1563 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1564 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1565 # The file is in a subdirectory.
1566 test ! -d "$ac_dir" && mkdir "$ac_dir"
1567 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1568 # A "../" for each directory in $ac_dir_suffix.
1569 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1570 else
1571 ac_dir_suffix= ac_dots=
1572 fi
1573
1574 case "$ac_given_srcdir" in
1575 .) srcdir=.
1576 if test -z "$ac_dots"; then top_srcdir=.
1577 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1578 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1579 *) # Relative path.
1580 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1581 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1582 esac
1583
1584 case "$ac_given_INSTALL" in
1585 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1586 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1587 esac
1588
1589 echo creating "$ac_file"
1590 rm -f "$ac_file"
1591 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1592 case "$ac_file" in
1593 *Makefile*) ac_comsub="1i\\
1594# $configure_input" ;;
1595 *) ac_comsub= ;;
1596 esac
1597
1598 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1599 sed -e "$ac_comsub
1600s%@configure_input@%$configure_input%g
1601s%@srcdir@%$srcdir%g
1602s%@top_srcdir@%$top_srcdir%g
1603s%@INSTALL@%$INSTALL%g
1604" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1605fi; done
1606rm -f conftest.s*
1607
1608# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1609# NAME is the cpp macro being defined and VALUE is the value it is being given.
1610#
1611# ac_d sets the value in "#define NAME VALUE" lines.
1612ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1613ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1614ac_dC='\3'
1615ac_dD='%g'
1616# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1617ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1618ac_uB='\([ ]\)%\1#\2define\3'
1619ac_uC=' '
1620ac_uD='\4%g'
1621# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1622ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1623ac_eB='$%\1#\2define\3'
1624ac_eC=' '
1625ac_eD='%g'
1626
1627if test "${CONFIG_HEADERS+set}" != set; then
1628EOF
1629cat >> $CONFIG_STATUS <<EOF
1630 CONFIG_HEADERS="config.h:config.in"
1631EOF
1632cat >> $CONFIG_STATUS <<\EOF
1633fi
1634for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1635 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1636 case "$ac_file" in
1637 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1638 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1639 *) ac_file_in="${ac_file}.in" ;;
1640 esac
1641
1642 echo creating $ac_file
1643
1644 rm -f conftest.frag conftest.in conftest.out
1645 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1646 cat $ac_file_inputs > conftest.in
1647
1648EOF
1649
1650# Transform confdefs.h into a sed script conftest.vals that substitutes
1651# the proper values into config.h.in to produce config.h. And first:
1652# Protect against being on the right side of a sed subst in config.status.
1653# Protect against being in an unquoted here document in config.status.
1654rm -f conftest.vals
1655cat > conftest.hdr <<\EOF
1656s/[\\&%]/\\&/g
1657s%[\\$`]%\\&%g
1658s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1659s%ac_d%ac_u%gp
1660s%ac_u%ac_e%gp
1661EOF
1662sed -n -f conftest.hdr confdefs.h > conftest.vals
1663rm -f conftest.hdr
1664
1665# This sed command replaces #undef with comments. This is necessary, for
1666# example, in the case of _POSIX_SOURCE, which is predefined and required
1667# on some systems where configure will not decide to define it.
1668cat >> conftest.vals <<\EOF
1669s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1670EOF
1671
1672# Break up conftest.vals because some shells have a limit on
1673# the size of here documents, and old seds have small limits too.
1674
1675rm -f conftest.tail
1676while :
1677do
1678 ac_lines=`grep -c . conftest.vals`
1679 # grep -c gives empty output for an empty file on some AIX systems.
1680 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1681 # Write a limited-size here document to conftest.frag.
1682 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1683 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1684 echo 'CEOF
1685 sed -f conftest.frag conftest.in > conftest.out
1686 rm -f conftest.in
1687 mv conftest.out conftest.in
1688' >> $CONFIG_STATUS
1689 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1690 rm -f conftest.vals
1691 mv conftest.tail conftest.vals
1692done
1693rm -f conftest.vals
1694
1695cat >> $CONFIG_STATUS <<\EOF
1696 rm -f conftest.frag conftest.h
1697 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1698 cat conftest.in >> conftest.h
1699 rm -f conftest.in
1700 if cmp -s $ac_file conftest.h 2>/dev/null; then
1701 echo "$ac_file is unchanged"
1702 rm -f conftest.h
1703 else
1704 # Remove last slash and all that follows it. Not all systems have dirname.
1705 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1706 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1707 # The file is in a subdirectory.
1708 test ! -d "$ac_dir" && mkdir "$ac_dir"
1709 fi
1710 rm -f $ac_file
1711 mv conftest.h $ac_file
1712 fi
1713fi; done
1714
1715EOF
1716cat >> $CONFIG_STATUS <<EOF
1717
1718EOF
1719cat >> $CONFIG_STATUS <<\EOF
1720case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1721exit 0
1722EOF
1723chmod +x $CONFIG_STATUS
1724rm -fr confdefs* $ac_clean_files
1725test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1726
This page took 0.104745 seconds and 4 git commands to generate.