]> gcc.gnu.org Git - gcc.git/blob - texinfo/configure
f6ecd82266717eef0bbd9d9a8a2f03ee738ba6d4
[gcc.git] / texinfo / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
48
49 # Initialize some other variables.
50 subdirs=
51 MFLAGS= MAKEFLAGS=
52 # Maximum number of lines to put in a shell here document.
53 ac_max_here_lines=12
54
55 ac_prev=
56 for ac_option
57 do
58
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
62 ac_prev=
63 continue
64 fi
65
66 case "$ac_option" in
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 *) ac_optarg= ;;
69 esac
70
71 # Accept the important Cygnus configure options, so we can diagnose typos.
72
73 case "$ac_option" in
74
75 -bindir | --bindir | --bindi | --bind | --bin | --bi)
76 ac_prev=bindir ;;
77 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
79
80 -build | --build | --buil | --bui | --bu)
81 ac_prev=build ;;
82 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83 build="$ac_optarg" ;;
84
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87 ac_prev=cache_file ;;
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
91
92 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93 ac_prev=datadir ;;
94 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95 | --da=*)
96 datadir="$ac_optarg" ;;
97
98 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103 fi
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
106
107 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 fi
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 case "$ac_option" in
115 *=*) ;;
116 *) ac_optarg=yes ;;
117 esac
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
119
120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122 | --exec | --exe | --ex)
123 ac_prev=exec_prefix ;;
124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
128
129 -gas | --gas | --ga | --g)
130 # Obsolete; use --with-gas.
131 with_gas=yes ;;
132
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
136 cat << EOF
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
139 Configuration:
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
147 [$ac_default_prefix]
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
149 [same as prefix]
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
154 [PREFIX/share]
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
157 [PREFIX/com]
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
169 EOF
170 cat << EOF
171 Host type:
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
182 EOF
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
185 fi
186 exit 0 ;;
187
188 -host | --host | --hos | --ho)
189 ac_prev=host ;;
190 -host=* | --host=* | --hos=* | --ho=*)
191 host="$ac_optarg" ;;
192
193 -includedir | --includedir | --includedi | --included | --include \
194 | --includ | --inclu | --incl | --inc)
195 ac_prev=includedir ;;
196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
199
200 -infodir | --infodir | --infodi | --infod | --info | --inf)
201 ac_prev=infodir ;;
202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
204
205 -libdir | --libdir | --libdi | --libd)
206 ac_prev=libdir ;;
207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
209
210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211 | --libexe | --libex | --libe)
212 ac_prev=libexecdir ;;
213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
216
217 -localstatedir | --localstatedir | --localstatedi | --localstated \
218 | --localstate | --localstat | --localsta | --localst \
219 | --locals | --local | --loca | --loc | --lo)
220 ac_prev=localstatedir ;;
221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
225
226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227 ac_prev=mandir ;;
228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
230
231 -nfp | --nfp | --nf)
232 # Obsolete; use --without-fp.
233 with_fp=no ;;
234
235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236 | --no-cr | --no-c)
237 no_create=yes ;;
238
239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
241 no_recursion=yes ;;
242
243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245 | --oldin | --oldi | --old | --ol | --o)
246 ac_prev=oldincludedir ;;
247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
251
252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253 ac_prev=prefix ;;
254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
256
257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258 | --program-pre | --program-pr | --program-p)
259 ac_prev=program_prefix ;;
260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
263
264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265 | --program-suf | --program-su | --program-s)
266 ac_prev=program_suffix ;;
267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
270
271 -program-transform-name | --program-transform-name \
272 | --program-transform-nam | --program-transform-na \
273 | --program-transform-n | --program-transform- \
274 | --program-transform | --program-transfor \
275 | --program-transfo | --program-transf \
276 | --program-trans | --program-tran \
277 | --progr-tra | --program-tr | --program-t)
278 ac_prev=program_transform_name ;;
279 -program-transform-name=* | --program-transform-name=* \
280 | --program-transform-nam=* | --program-transform-na=* \
281 | --program-transform-n=* | --program-transform-=* \
282 | --program-transform=* | --program-transfor=* \
283 | --program-transfo=* | --program-transf=* \
284 | --program-trans=* | --program-tran=* \
285 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
287
288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289 | -silent | --silent | --silen | --sile | --sil)
290 silent=yes ;;
291
292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
293 ac_prev=sbindir ;;
294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295 | --sbi=* | --sb=*)
296 sbindir="$ac_optarg" ;;
297
298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300 | --sharedst | --shareds | --shared | --share | --shar \
301 | --sha | --sh)
302 ac_prev=sharedstatedir ;;
303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306 | --sha=* | --sh=*)
307 sharedstatedir="$ac_optarg" ;;
308
309 -site | --site | --sit)
310 ac_prev=site ;;
311 -site=* | --site=* | --sit=*)
312 site="$ac_optarg" ;;
313
314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315 ac_prev=srcdir ;;
316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
318
319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320 | --syscon | --sysco | --sysc | --sys | --sy)
321 ac_prev=sysconfdir ;;
322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
325
326 -target | --target | --targe | --targ | --tar | --ta | --t)
327 ac_prev=target ;;
328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
330
331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
332 verbose=yes ;;
333
334 -version | --version | --versio | --versi | --vers)
335 echo "configure generated by autoconf version 2.12"
336 exit 0 ;;
337
338 -with-* | --with-*)
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343 fi
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
345 case "$ac_option" in
346 *=*) ;;
347 *) ac_optarg=yes ;;
348 esac
349 eval "with_${ac_package}='$ac_optarg'" ;;
350
351 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 fi
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
359
360 --x)
361 # Obsolete; use --with-x.
362 with_x=yes ;;
363
364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365 | --x-incl | --x-inc | --x-in | --x-i)
366 ac_prev=x_includes ;;
367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
370
371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373 ac_prev=x_libraries ;;
374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
377
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
379 ;;
380
381 *)
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
384 fi
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387 fi
388 nonopt="$ac_option"
389 ;;
390
391 esac
392 done
393
394 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396 fi
397
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399
400 # File descriptor usage:
401 # 0 standard input
402 # 1 file creation
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
409 exec 6>/dev/null
410 else
411 exec 6>&1
412 fi
413 exec 5>./config.log
414
415 echo "\
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
418 " 1>&5
419
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
422 ac_configure_args=
423 for ac_arg
424 do
425 case "$ac_arg" in
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
433 esac
434 done
435
436 # NLS nuisances.
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
445
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
449 echo > confdefs.h
450
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file=texinfo.texi
454
455 # Find the source files, if location was not specified.
456 if test -z "$srcdir"; then
457 ac_srcdir_defaulted=yes
458 # Try the directory containing this script, then its parent.
459 ac_prog=$0
460 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
462 srcdir=$ac_confdir
463 if test ! -r $srcdir/$ac_unique_file; then
464 srcdir=..
465 fi
466 else
467 ac_srcdir_defaulted=no
468 fi
469 if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472 else
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
474 fi
475 fi
476 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477
478 # Prefer explicitly selected file to automatically selected ones.
479 if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE; then
481 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
482 else
483 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
484 fi
485 fi
486 for ac_site_file in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
489 . "$ac_site_file"
490 fi
491 done
492
493 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
495 . $cache_file
496 else
497 echo "creating cache $cache_file"
498 > $cache_file
499 fi
500
501 ac_ext=c
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503 ac_cpp='$CPP $CPPFLAGS'
504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling=$ac_cv_prog_cc_cross
507
508 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
511 ac_n= ac_c='
512 ' ac_t=' '
513 else
514 ac_n=-n ac_c= ac_t=
515 fi
516 else
517 ac_n= ac_c='\c' ac_t=
518 fi
519
520
521
522 ac_aux_dir=
523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
524 if test -f $ac_dir/install-sh; then
525 ac_aux_dir=$ac_dir
526 ac_install_sh="$ac_aux_dir/install-sh -c"
527 break
528 elif test -f $ac_dir/install.sh; then
529 ac_aux_dir=$ac_dir
530 ac_install_sh="$ac_aux_dir/install.sh -c"
531 break
532 fi
533 done
534 if test -z "$ac_aux_dir"; then
535 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
536 fi
537 ac_config_guess=$ac_aux_dir/config.guess
538 ac_config_sub=$ac_aux_dir/config.sub
539 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
540
541 # Find a good install program. We prefer a C program (faster),
542 # so one script is as good as another. But avoid the broken or
543 # incompatible versions:
544 # SysV /etc/install, /usr/sbin/install
545 # SunOS /usr/etc/install
546 # IRIX /sbin/install
547 # AIX /bin/install
548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
550 # ./install, which can be erroneously created by make from ./install.sh.
551 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
552 echo "configure:553: checking for a BSD compatible install" >&5
553 if test -z "$INSTALL"; then
554 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
556 else
557 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
558 for ac_dir in $PATH; do
559 # Account for people who put trailing slashes in PATH elements.
560 case "$ac_dir/" in
561 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
562 *)
563 # OSF1 and SCO ODT 3.0 have their own names for install.
564 for ac_prog in ginstall installbsd scoinst install; do
565 if test -f $ac_dir/$ac_prog; then
566 if test $ac_prog = install &&
567 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
568 # AIX install. It has an incompatible calling convention.
569 # OSF/1 installbsd also uses dspmsg, but is usable.
570 :
571 else
572 ac_cv_path_install="$ac_dir/$ac_prog -c"
573 break 2
574 fi
575 fi
576 done
577 ;;
578 esac
579 done
580 IFS="$ac_save_IFS"
581
582 fi
583 if test "${ac_cv_path_install+set}" = set; then
584 INSTALL="$ac_cv_path_install"
585 else
586 # As a last resort, use the slow shell script. We don't cache a
587 # path for INSTALL within a source directory, because that will
588 # break other packages using the cache if that directory is
589 # removed, or if the path is relative.
590 INSTALL="$ac_install_sh"
591 fi
592 fi
593 echo "$ac_t""$INSTALL" 1>&6
594
595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
596 # It thinks the first close brace ends the variable substitution.
597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
598
599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
600
601 # Extract the first word of "ranlib", so it can be a program name with args.
602 set dummy ranlib; ac_word=$2
603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
604 echo "configure:605: checking for $ac_word" >&5
605 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
606 echo $ac_n "(cached) $ac_c" 1>&6
607 else
608 if test -n "$RANLIB"; then
609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
610 else
611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
612 for ac_dir in $PATH; do
613 test -z "$ac_dir" && ac_dir=.
614 if test -f $ac_dir/$ac_word; then
615 ac_cv_prog_RANLIB="ranlib"
616 break
617 fi
618 done
619 IFS="$ac_save_ifs"
620 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
621 fi
622 fi
623 RANLIB="$ac_cv_prog_RANLIB"
624 if test -n "$RANLIB"; then
625 echo "$ac_t""$RANLIB" 1>&6
626 else
627 echo "$ac_t""no" 1>&6
628 fi
629
630
631 # Extract the first word of "gcc", so it can be a program name with args.
632 set dummy gcc; ac_word=$2
633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
634 echo "configure:635: checking for $ac_word" >&5
635 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
637 else
638 if test -n "$CC"; then
639 ac_cv_prog_CC="$CC" # Let the user override the test.
640 else
641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
642 for ac_dir in $PATH; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -f $ac_dir/$ac_word; then
645 ac_cv_prog_CC="gcc"
646 break
647 fi
648 done
649 IFS="$ac_save_ifs"
650 fi
651 fi
652 CC="$ac_cv_prog_CC"
653 if test -n "$CC"; then
654 echo "$ac_t""$CC" 1>&6
655 else
656 echo "$ac_t""no" 1>&6
657 fi
658
659 if test -z "$CC"; then
660 # Extract the first word of "cc", so it can be a program name with args.
661 set dummy cc; ac_word=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
666 else
667 if test -n "$CC"; then
668 ac_cv_prog_CC="$CC" # Let the user override the test.
669 else
670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
671 ac_prog_rejected=no
672 for ac_dir in $PATH; do
673 test -z "$ac_dir" && ac_dir=.
674 if test -f $ac_dir/$ac_word; then
675 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
676 ac_prog_rejected=yes
677 continue
678 fi
679 ac_cv_prog_CC="cc"
680 break
681 fi
682 done
683 IFS="$ac_save_ifs"
684 if test $ac_prog_rejected = yes; then
685 # We found a bogon in the path, so make sure we never use it.
686 set dummy $ac_cv_prog_CC
687 shift
688 if test $# -gt 0; then
689 # We chose a different compiler from the bogus one.
690 # However, it has the same basename, so the bogon will be chosen
691 # first if we set CC to just the basename; use the full file name.
692 shift
693 set dummy "$ac_dir/$ac_word" "$@"
694 shift
695 ac_cv_prog_CC="$@"
696 fi
697 fi
698 fi
699 fi
700 CC="$ac_cv_prog_CC"
701 if test -n "$CC"; then
702 echo "$ac_t""$CC" 1>&6
703 else
704 echo "$ac_t""no" 1>&6
705 fi
706
707 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
708 fi
709
710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
712
713 ac_ext=c
714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
715 ac_cpp='$CPP $CPPFLAGS'
716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
717 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
718 cross_compiling=$ac_cv_prog_cc_cross
719
720 cat > conftest.$ac_ext <<EOF
721 #line 722 "configure"
722 #include "confdefs.h"
723 main(){return(0);}
724 EOF
725 if { (eval echo configure:726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
726 ac_cv_prog_cc_works=yes
727 # If we can't run a trivial program, we are probably using a cross compiler.
728 if (./conftest; exit) 2>/dev/null; then
729 ac_cv_prog_cc_cross=no
730 else
731 ac_cv_prog_cc_cross=yes
732 fi
733 else
734 echo "configure: failed program was:" >&5
735 cat conftest.$ac_ext >&5
736 ac_cv_prog_cc_works=no
737 fi
738 rm -fr conftest*
739
740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
741 if test $ac_cv_prog_cc_works = no; then
742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
743 fi
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
747 cross_compiling=$ac_cv_prog_cc_cross
748
749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
750 echo "configure:751: checking whether we are using GNU C" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 cat > conftest.c <<EOF
755 #ifdef __GNUC__
756 yes;
757 #endif
758 EOF
759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
760 ac_cv_prog_gcc=yes
761 else
762 ac_cv_prog_gcc=no
763 fi
764 fi
765
766 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
767
768 if test $ac_cv_prog_gcc = yes; then
769 GCC=yes
770 ac_test_CFLAGS="${CFLAGS+set}"
771 ac_save_CFLAGS="$CFLAGS"
772 CFLAGS=
773 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${CC-cc} accepts -g" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
777 else
778 echo 'void f(){}' > conftest.c
779 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
780 ac_cv_prog_cc_g=yes
781 else
782 ac_cv_prog_cc_g=no
783 fi
784 rm -f conftest*
785
786 fi
787
788 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
789 if test "$ac_test_CFLAGS" = set; then
790 CFLAGS="$ac_save_CFLAGS"
791 elif test $ac_cv_prog_cc_g = yes; then
792 CFLAGS="-g -O2"
793 else
794 CFLAGS="-O2"
795 fi
796 else
797 GCC=
798 test "${CFLAGS+set}" = set || CFLAGS="-g"
799 fi
800
801 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
802 echo "configure:803: checking for POSIXized ISC" >&5
803 if test -d /etc/conf/kconfig.d &&
804 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
805 then
806 echo "$ac_t""yes" 1>&6
807 ISC=yes # If later tests want to check for ISC.
808 cat >> confdefs.h <<\EOF
809 #define _POSIX_SOURCE 1
810 EOF
811
812 if test "$GCC" = yes; then
813 CC="$CC -posix"
814 else
815 CC="$CC -Xp"
816 fi
817 else
818 echo "$ac_t""no" 1>&6
819 ISC=
820 fi
821
822 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
823 echo "configure:824: checking how to run the C preprocessor" >&5
824 # On Suns, sometimes $CPP names a directory.
825 if test -n "$CPP" && test -d "$CPP"; then
826 CPP=
827 fi
828 if test -z "$CPP"; then
829 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
831 else
832 # This must be in double quotes, not single quotes, because CPP may get
833 # substituted into the Makefile and "${CC-cc}" will confuse make.
834 CPP="${CC-cc} -E"
835 # On the NeXT, cc -E runs the code through the compiler's parser,
836 # not just through cpp.
837 cat > conftest.$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
840 #include <assert.h>
841 Syntax Error
842 EOF
843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err=`grep -v '^ *+' conftest.out`
846 if test -z "$ac_err"; then
847 :
848 else
849 echo "$ac_err" >&5
850 echo "configure: failed program was:" >&5
851 cat conftest.$ac_ext >&5
852 rm -rf conftest*
853 CPP="${CC-cc} -E -traditional-cpp"
854 cat > conftest.$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
857 #include <assert.h>
858 Syntax Error
859 EOF
860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err=`grep -v '^ *+' conftest.out`
863 if test -z "$ac_err"; then
864 :
865 else
866 echo "$ac_err" >&5
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
869 rm -rf conftest*
870 CPP=/lib/cpp
871 fi
872 rm -f conftest*
873 fi
874 rm -f conftest*
875 ac_cv_prog_CPP="$CPP"
876 fi
877 CPP="$ac_cv_prog_CPP"
878 else
879 ac_cv_prog_CPP="$CPP"
880 fi
881 echo "$ac_t""$CPP" 1>&6
882
883 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
884 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
885 echo "configure:886: checking for minix/config.h" >&5
886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
888 else
889 cat > conftest.$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
892 #include <minix/config.h>
893 EOF
894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
895 { (eval echo configure:896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
896 ac_err=`grep -v '^ *+' conftest.out`
897 if test -z "$ac_err"; then
898 rm -rf conftest*
899 eval "ac_cv_header_$ac_safe=yes"
900 else
901 echo "$ac_err" >&5
902 echo "configure: failed program was:" >&5
903 cat conftest.$ac_ext >&5
904 rm -rf conftest*
905 eval "ac_cv_header_$ac_safe=no"
906 fi
907 rm -f conftest*
908 fi
909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
910 echo "$ac_t""yes" 1>&6
911 MINIX=yes
912 else
913 echo "$ac_t""no" 1>&6
914 MINIX=
915 fi
916
917 if test "$MINIX" = yes; then
918 cat >> confdefs.h <<\EOF
919 #define _POSIX_SOURCE 1
920 EOF
921
922 cat >> confdefs.h <<\EOF
923 #define _POSIX_1_SOURCE 2
924 EOF
925
926 cat >> confdefs.h <<\EOF
927 #define _MINIX 1
928 EOF
929
930 fi
931
932
933 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
934 echo "configure:935: checking for Cygwin32 environment" >&5
935 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
937 else
938 cat > conftest.$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
941
942 int main() {
943 int main () { return __CYGWIN32__; }
944 ; return 0; }
945 EOF
946 if { (eval echo configure:947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
947 rm -rf conftest*
948 am_cv_cygwin32=yes
949 else
950 echo "configure: failed program was:" >&5
951 cat conftest.$ac_ext >&5
952 rm -rf conftest*
953 am_cv_cygwin32=no
954 fi
955 rm -f conftest*
956 rm -f conftest*
957 fi
958
959 echo "$ac_t""$am_cv_cygwin32" 1>&6
960 CYGWIN32=
961 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
962 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
963 echo "configure:964: checking for executable suffix" >&5
964 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
966 else
967 if test "$CYGWIN32" = yes; then
968 am_cv_exeext=.exe
969 else
970 cat > am_c_test.c << 'EOF'
971 int main() {
972 /* Nothing needed here */
973 }
974 EOF
975 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
976 am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
977 rm -f am_c_test*
978 fi
979
980 test x"${am_cv_exeext}" = x && am_cv_exeext=no
981 fi
982 EXEEXT=""
983 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
984 echo "$ac_t""${am_cv_exeext}" 1>&6
985
986
987 # Needed on sysV68 for sigblock, sigsetmask.
988 echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
989 echo "configure:990: checking for sigblock in -lbsd" >&5
990 ac_lib_var=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993 else
994 ac_save_LIBS="$LIBS"
995 LIBS="-lbsd $LIBS"
996 cat > conftest.$ac_ext <<EOF
997 #line 998 "configure"
998 #include "confdefs.h"
999 /* Override any gcc2 internal prototype to avoid an error. */
1000 /* We use char because int might match the return type of a gcc2
1001 builtin and then its argument prototype would still apply. */
1002 char sigblock();
1003
1004 int main() {
1005 sigblock()
1006 ; return 0; }
1007 EOF
1008 if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1009 rm -rf conftest*
1010 eval "ac_cv_lib_$ac_lib_var=yes"
1011 else
1012 echo "configure: failed program was:" >&5
1013 cat conftest.$ac_ext >&5
1014 rm -rf conftest*
1015 eval "ac_cv_lib_$ac_lib_var=no"
1016 fi
1017 rm -f conftest*
1018 LIBS="$ac_save_LIBS"
1019
1020 fi
1021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1022 echo "$ac_t""yes" 1>&6
1023 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1024 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1025 cat >> confdefs.h <<EOF
1026 #define $ac_tr_lib 1
1027 EOF
1028
1029 LIBS="-lbsd $LIBS"
1030
1031 else
1032 echo "$ac_t""no" 1>&6
1033 fi
1034
1035
1036 TERMLIBS=
1037 for termlib in curses ncurses termcap terminfo termlib ; do
1038 echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
1039 echo "configure:1040: checking for tputs in -l${termlib}" >&5
1040 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
1041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1043 else
1044 ac_save_LIBS="$LIBS"
1045 LIBS="-l${termlib} $LIBS"
1046 cat > conftest.$ac_ext <<EOF
1047 #line 1048 "configure"
1048 #include "confdefs.h"
1049 /* Override any gcc2 internal prototype to avoid an error. */
1050 /* We use char because int might match the return type of a gcc2
1051 builtin and then its argument prototype would still apply. */
1052 char tputs();
1053
1054 int main() {
1055 tputs()
1056 ; return 0; }
1057 EOF
1058 if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1059 rm -rf conftest*
1060 eval "ac_cv_lib_$ac_lib_var=yes"
1061 else
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1064 rm -rf conftest*
1065 eval "ac_cv_lib_$ac_lib_var=no"
1066 fi
1067 rm -f conftest*
1068 LIBS="$ac_save_LIBS"
1069
1070 fi
1071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1072 echo "$ac_t""yes" 1>&6
1073 TERMLIBS="${TERMLIBS} -l${termlib}"; break
1074 else
1075 echo "$ac_t""no" 1>&6
1076 fi
1077
1078 done
1079
1080
1081 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1082 echo "configure:1083: checking for ANSI C header files" >&5
1083 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 cat > conftest.$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1089 #include <stdlib.h>
1090 #include <stdarg.h>
1091 #include <string.h>
1092 #include <float.h>
1093 EOF
1094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1095 { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1096 ac_err=`grep -v '^ *+' conftest.out`
1097 if test -z "$ac_err"; then
1098 rm -rf conftest*
1099 ac_cv_header_stdc=yes
1100 else
1101 echo "$ac_err" >&5
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1104 rm -rf conftest*
1105 ac_cv_header_stdc=no
1106 fi
1107 rm -f conftest*
1108
1109 if test $ac_cv_header_stdc = yes; then
1110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1111 cat > conftest.$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1114 #include <string.h>
1115 EOF
1116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1117 egrep "memchr" >/dev/null 2>&1; then
1118 :
1119 else
1120 rm -rf conftest*
1121 ac_cv_header_stdc=no
1122 fi
1123 rm -f conftest*
1124
1125 fi
1126
1127 if test $ac_cv_header_stdc = yes; then
1128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1129 cat > conftest.$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1132 #include <stdlib.h>
1133 EOF
1134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1135 egrep "free" >/dev/null 2>&1; then
1136 :
1137 else
1138 rm -rf conftest*
1139 ac_cv_header_stdc=no
1140 fi
1141 rm -f conftest*
1142
1143 fi
1144
1145 if test $ac_cv_header_stdc = yes; then
1146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1147 if test "$cross_compiling" = yes; then
1148 :
1149 else
1150 cat > conftest.$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1153 #include <ctype.h>
1154 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1155 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1157 int main () { int i; for (i = 0; i < 256; i++)
1158 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1159 exit (0); }
1160
1161 EOF
1162 if { (eval echo configure:1163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1163 then
1164 :
1165 else
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1168 rm -fr conftest*
1169 ac_cv_header_stdc=no
1170 fi
1171 rm -fr conftest*
1172 fi
1173
1174 fi
1175 fi
1176
1177 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1178 if test $ac_cv_header_stdc = yes; then
1179 cat >> confdefs.h <<\EOF
1180 #define STDC_HEADERS 1
1181 EOF
1182
1183 fi
1184
1185 for ac_hdr in unistd.h termios.h termio.h strings.h string.h varargs.h \
1186 sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/file.h
1187 do
1188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_hdr" >&5
1191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1197 #include <$ac_hdr>
1198 EOF
1199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1200 { (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1201 ac_err=`grep -v '^ *+' conftest.out`
1202 if test -z "$ac_err"; then
1203 rm -rf conftest*
1204 eval "ac_cv_header_$ac_safe=yes"
1205 else
1206 echo "$ac_err" >&5
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1209 rm -rf conftest*
1210 eval "ac_cv_header_$ac_safe=no"
1211 fi
1212 rm -f conftest*
1213 fi
1214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1215 echo "$ac_t""yes" 1>&6
1216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1217 cat >> confdefs.h <<EOF
1218 #define $ac_tr_hdr 1
1219 EOF
1220
1221 else
1222 echo "$ac_t""no" 1>&6
1223 fi
1224 done
1225
1226
1227 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1228 echo "configure:1229: checking for off_t" >&5
1229 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1231 else
1232 cat > conftest.$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1235 #include <sys/types.h>
1236 #if STDC_HEADERS
1237 #include <stdlib.h>
1238 #include <stddef.h>
1239 #endif
1240 EOF
1241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1242 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1243 rm -rf conftest*
1244 ac_cv_type_off_t=yes
1245 else
1246 rm -rf conftest*
1247 ac_cv_type_off_t=no
1248 fi
1249 rm -f conftest*
1250
1251 fi
1252 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1253 if test $ac_cv_type_off_t = no; then
1254 cat >> confdefs.h <<\EOF
1255 #define off_t long
1256 EOF
1257
1258 fi
1259
1260 echo $ac_n "checking for working const""... $ac_c" 1>&6
1261 echo "configure:1262: checking for working const" >&5
1262 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1264 else
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1268
1269 int main() {
1270
1271 /* Ultrix mips cc rejects this. */
1272 typedef int charset[2]; const charset x;
1273 /* SunOS 4.1.1 cc rejects this. */
1274 char const *const *ccp;
1275 char **p;
1276 /* NEC SVR4.0.2 mips cc rejects this. */
1277 struct point {int x, y;};
1278 static struct point const zero = {0,0};
1279 /* AIX XL C 1.02.0.0 rejects this.
1280 It does not let you subtract one const X* pointer from another in an arm
1281 of an if-expression whose if-part is not a constant expression */
1282 const char *g = "string";
1283 ccp = &g + (g ? g-g : 0);
1284 /* HPUX 7.0 cc rejects these. */
1285 ++ccp;
1286 p = (char**) ccp;
1287 ccp = (char const *const *) p;
1288 { /* SCO 3.2v4 cc rejects this. */
1289 char *t;
1290 char const *s = 0 ? (char *) 0 : (char const *) 0;
1291
1292 *t++ = 0;
1293 }
1294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1295 int x[] = {25, 17};
1296 const int *foo = &x[0];
1297 ++foo;
1298 }
1299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1300 typedef const int *iptr;
1301 iptr p = 0;
1302 ++p;
1303 }
1304 { /* AIX XL C 1.02.0.0 rejects this saying
1305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1306 struct s { int j; const int *ap[3]; };
1307 struct s *b; b->j = 5;
1308 }
1309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1310 const int foo = 10;
1311 }
1312
1313 ; return 0; }
1314 EOF
1315 if { (eval echo configure:1316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1316 rm -rf conftest*
1317 ac_cv_c_const=yes
1318 else
1319 echo "configure: failed program was:" >&5
1320 cat conftest.$ac_ext >&5
1321 rm -rf conftest*
1322 ac_cv_c_const=no
1323 fi
1324 rm -f conftest*
1325 fi
1326
1327 echo "$ac_t""$ac_cv_c_const" 1>&6
1328 if test $ac_cv_c_const = no; then
1329 cat >> confdefs.h <<\EOF
1330 #define const
1331 EOF
1332
1333 fi
1334
1335 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether struct tm is in sys/time.h or time.h" >&5
1337 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1343 #include <sys/types.h>
1344 #include <time.h>
1345 int main() {
1346 struct tm *tp; tp->tm_sec;
1347 ; return 0; }
1348 EOF
1349 if { (eval echo configure:1350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1350 rm -rf conftest*
1351 ac_cv_struct_tm=time.h
1352 else
1353 echo "configure: failed program was:" >&5
1354 cat conftest.$ac_ext >&5
1355 rm -rf conftest*
1356 ac_cv_struct_tm=sys/time.h
1357 fi
1358 rm -f conftest*
1359 fi
1360
1361 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1362 if test $ac_cv_struct_tm = sys/time.h; then
1363 cat >> confdefs.h <<\EOF
1364 #define TM_IN_SYS_TIME 1
1365 EOF
1366
1367 fi
1368
1369
1370 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1371 # for constant arguments. Useless!
1372 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1373 echo "configure:1374: checking for working alloca.h" >&5
1374 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1376 else
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 #include <alloca.h>
1381 int main() {
1382 char *p = alloca(2 * sizeof(int));
1383 ; return 0; }
1384 EOF
1385 if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1386 rm -rf conftest*
1387 ac_cv_header_alloca_h=yes
1388 else
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391 rm -rf conftest*
1392 ac_cv_header_alloca_h=no
1393 fi
1394 rm -f conftest*
1395 fi
1396
1397 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1398 if test $ac_cv_header_alloca_h = yes; then
1399 cat >> confdefs.h <<\EOF
1400 #define HAVE_ALLOCA_H 1
1401 EOF
1402
1403 fi
1404
1405 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1406 echo "configure:1407: checking for alloca" >&5
1407 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1409 else
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1413
1414 #ifdef __GNUC__
1415 # define alloca __builtin_alloca
1416 #else
1417 # if HAVE_ALLOCA_H
1418 # include <alloca.h>
1419 # else
1420 # ifdef _AIX
1421 #pragma alloca
1422 # else
1423 # ifndef alloca /* predefined by HP cc +Olibcalls */
1424 char *alloca ();
1425 # endif
1426 # endif
1427 # endif
1428 #endif
1429
1430 int main() {
1431 char *p = (char *) alloca(1);
1432 ; return 0; }
1433 EOF
1434 if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1435 rm -rf conftest*
1436 ac_cv_func_alloca_works=yes
1437 else
1438 echo "configure: failed program was:" >&5
1439 cat conftest.$ac_ext >&5
1440 rm -rf conftest*
1441 ac_cv_func_alloca_works=no
1442 fi
1443 rm -f conftest*
1444 fi
1445
1446 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1447 if test $ac_cv_func_alloca_works = yes; then
1448 cat >> confdefs.h <<\EOF
1449 #define HAVE_ALLOCA 1
1450 EOF
1451
1452 fi
1453
1454 if test $ac_cv_func_alloca_works = no; then
1455 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1456 # that cause trouble. Some versions do not even contain alloca or
1457 # contain a buggy version. If you still want to use their alloca,
1458 # use ar to extract alloca.o from them instead of compiling alloca.c.
1459 ALLOCA=alloca.o
1460 cat >> confdefs.h <<\EOF
1461 #define C_ALLOCA 1
1462 EOF
1463
1464
1465 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1466 echo "configure:1467: checking whether alloca needs Cray hooks" >&5
1467 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1469 else
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 #if defined(CRAY) && ! defined(CRAY2)
1474 webecray
1475 #else
1476 wenotbecray
1477 #endif
1478
1479 EOF
1480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1481 egrep "webecray" >/dev/null 2>&1; then
1482 rm -rf conftest*
1483 ac_cv_os_cray=yes
1484 else
1485 rm -rf conftest*
1486 ac_cv_os_cray=no
1487 fi
1488 rm -f conftest*
1489
1490 fi
1491
1492 echo "$ac_t""$ac_cv_os_cray" 1>&6
1493 if test $ac_cv_os_cray = yes; then
1494 for ac_func in _getb67 GETB67 getb67; do
1495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1496 echo "configure:1497: checking for $ac_func" >&5
1497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1499 else
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503 /* System header to define __stub macros and hopefully few prototypes,
1504 which can conflict with char $ac_func(); below. */
1505 #include <assert.h>
1506 /* Override any gcc2 internal prototype to avoid an error. */
1507 /* We use char because int might match the return type of a gcc2
1508 builtin and then its argument prototype would still apply. */
1509 char $ac_func();
1510
1511 int main() {
1512
1513 /* The GNU C library defines this for functions which it implements
1514 to always fail with ENOSYS. Some functions are actually named
1515 something starting with __ and the normal name is an alias. */
1516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1517 choke me
1518 #else
1519 $ac_func();
1520 #endif
1521
1522 ; return 0; }
1523 EOF
1524 if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1525 rm -rf conftest*
1526 eval "ac_cv_func_$ac_func=yes"
1527 else
1528 echo "configure: failed program was:" >&5
1529 cat conftest.$ac_ext >&5
1530 rm -rf conftest*
1531 eval "ac_cv_func_$ac_func=no"
1532 fi
1533 rm -f conftest*
1534 fi
1535
1536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1537 echo "$ac_t""yes" 1>&6
1538 cat >> confdefs.h <<EOF
1539 #define CRAY_STACKSEG_END $ac_func
1540 EOF
1541
1542 break
1543 else
1544 echo "$ac_t""no" 1>&6
1545 fi
1546
1547 done
1548 fi
1549
1550 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1551 echo "configure:1552: checking stack direction for C alloca" >&5
1552 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1554 else
1555 if test "$cross_compiling" = yes; then
1556 ac_cv_c_stack_direction=0
1557 else
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 find_stack_direction ()
1562 {
1563 static char *addr = 0;
1564 auto char dummy;
1565 if (addr == 0)
1566 {
1567 addr = &dummy;
1568 return find_stack_direction ();
1569 }
1570 else
1571 return (&dummy > addr) ? 1 : -1;
1572 }
1573 main ()
1574 {
1575 exit (find_stack_direction() < 0);
1576 }
1577 EOF
1578 if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1579 then
1580 ac_cv_c_stack_direction=1
1581 else
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1584 rm -fr conftest*
1585 ac_cv_c_stack_direction=-1
1586 fi
1587 rm -fr conftest*
1588 fi
1589
1590 fi
1591
1592 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1593 cat >> confdefs.h <<EOF
1594 #define STACK_DIRECTION $ac_cv_c_stack_direction
1595 EOF
1596
1597 fi
1598
1599 if test "$ac_cv_c_cross" = no; then
1600 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
1601 echo "configure:1602: checking whether setvbuf arguments are reversed" >&5
1602 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1604 else
1605 if test "$cross_compiling" = yes; then
1606 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1607 else
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <stdio.h>
1612 /* If setvbuf has the reversed format, exit 0. */
1613 main () {
1614 /* This call has the arguments reversed.
1615 A reversed system may check and see that the address of main
1616 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
1617 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
1618 exit(1);
1619 putc('\r', stdout);
1620 exit(0); /* Non-reversed systems segv here. */
1621 }
1622 EOF
1623 if { (eval echo configure:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1624 then
1625 ac_cv_func_setvbuf_reversed=yes
1626 else
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1629 rm -fr conftest*
1630 ac_cv_func_setvbuf_reversed=no
1631 fi
1632 rm -fr conftest*
1633 fi
1634
1635 rm -f core core.* *.core
1636 fi
1637
1638 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
1639 if test $ac_cv_func_setvbuf_reversed = yes; then
1640 cat >> confdefs.h <<\EOF
1641 #define SETVBUF_REVERSED 1
1642 EOF
1643
1644 fi
1645
1646 fi
1647 for ac_func in setvbuf getcwd memset bzero strchr strcasecmp \
1648 vfprintf vsprintf strerror sigprocmask sigsetmask
1649 do
1650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_func" >&5
1652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char $ac_func(); below. */
1660 #include <assert.h>
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1664 char $ac_func();
1665
1666 int main() {
1667
1668 /* The GNU C library defines this for functions which it implements
1669 to always fail with ENOSYS. Some functions are actually named
1670 something starting with __ and the normal name is an alias. */
1671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1672 choke me
1673 #else
1674 $ac_func();
1675 #endif
1676
1677 ; return 0; }
1678 EOF
1679 if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1680 rm -rf conftest*
1681 eval "ac_cv_func_$ac_func=yes"
1682 else
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1685 rm -rf conftest*
1686 eval "ac_cv_func_$ac_func=no"
1687 fi
1688 rm -f conftest*
1689 fi
1690
1691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1694 cat >> confdefs.h <<EOF
1695 #define $ac_tr_func 1
1696 EOF
1697
1698 else
1699 echo "$ac_t""no" 1>&6
1700 fi
1701 done
1702
1703 for ac_func in memcpy memmove strdup
1704 do
1705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_func" >&5
1707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char $ac_func(); below. */
1715 #include <assert.h>
1716 /* Override any gcc2 internal prototype to avoid an error. */
1717 /* We use char because int might match the return type of a gcc2
1718 builtin and then its argument prototype would still apply. */
1719 char $ac_func();
1720
1721 int main() {
1722
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1727 choke me
1728 #else
1729 $ac_func();
1730 #endif
1731
1732 ; return 0; }
1733 EOF
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1735 rm -rf conftest*
1736 eval "ac_cv_func_$ac_func=yes"
1737 else
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 rm -rf conftest*
1741 eval "ac_cv_func_$ac_func=no"
1742 fi
1743 rm -f conftest*
1744 fi
1745
1746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1747 echo "$ac_t""yes" 1>&6
1748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1749 cat >> confdefs.h <<EOF
1750 #define $ac_tr_func 1
1751 EOF
1752
1753 else
1754 echo "$ac_t""no" 1>&6
1755 LIBOBJS="$LIBOBJS ${ac_func}.o"
1756 fi
1757 done
1758
1759
1760
1761 trap '' 1 2 15
1762 cat > confcache <<\EOF
1763 # This file is a shell script that caches the results of configure
1764 # tests run on this system so they can be shared between configure
1765 # scripts and configure runs. It is not useful on other systems.
1766 # If it contains results you don't want to keep, you may remove or edit it.
1767 #
1768 # By default, configure uses ./config.cache as the cache file,
1769 # creating it if it does not exist already. You can give configure
1770 # the --cache-file=FILE option to use a different cache file; that is
1771 # what configure does when it calls configure scripts in
1772 # subdirectories, so they share the cache.
1773 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1774 # config.status only pays attention to the cache file if you give it the
1775 # --recheck option to rerun configure.
1776 #
1777 EOF
1778 # The following way of writing the cache mishandles newlines in values,
1779 # but we know of no workaround that is simple, portable, and efficient.
1780 # So, don't put newlines in cache variables' values.
1781 # Ultrix sh set writes to stderr and can't be redirected directly,
1782 # and sets the high bit in the cache file unless we assign to the vars.
1783 (set) 2>&1 |
1784 case `(ac_space=' '; set) 2>&1` in
1785 *ac_space=\ *)
1786 # `set' does not quote correctly, so add quotes (double-quote substitution
1787 # turns \\\\ into \\, and sed turns \\ into \).
1788 sed -n \
1789 -e "s/'/'\\\\''/g" \
1790 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1791 ;;
1792 *)
1793 # `set' quotes correctly as required by POSIX, so do not add quotes.
1794 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1795 ;;
1796 esac >> confcache
1797 if cmp -s $cache_file confcache; then
1798 :
1799 else
1800 if test -w $cache_file; then
1801 echo "updating cache $cache_file"
1802 cat confcache > $cache_file
1803 else
1804 echo "not updating unwritable cache $cache_file"
1805 fi
1806 fi
1807 rm -f confcache
1808
1809 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1810
1811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1812 # Let make expand exec_prefix.
1813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1814
1815 # Any assignment to VPATH causes Sun make to only execute
1816 # the first set of double-colon rules, so remove it if not needed.
1817 # If there is a colon in the path, we need to keep it.
1818 if test "x$srcdir" = x.; then
1819 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1820 fi
1821
1822 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1823
1824 # Transform confdefs.h into DEFS.
1825 # Protect against shell expansion while executing Makefile rules.
1826 # Protect against Makefile macro expansion.
1827 cat > conftest.defs <<\EOF
1828 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1829 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1830 s%\[%\\&%g
1831 s%\]%\\&%g
1832 s%\$%$$%g
1833 EOF
1834 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1835 rm -f conftest.defs
1836
1837
1838 # Without the "./", some shells look in PATH for config.status.
1839 : ${CONFIG_STATUS=./config.status}
1840
1841 echo creating $CONFIG_STATUS
1842 rm -f $CONFIG_STATUS
1843 cat > $CONFIG_STATUS <<EOF
1844 #! /bin/sh
1845 # Generated automatically by configure.
1846 # Run this file to recreate the current configuration.
1847 # This directory was configured as follows,
1848 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1849 #
1850 # $0 $ac_configure_args
1851 #
1852 # Compiler output produced by configure, useful for debugging
1853 # configure, is in ./config.log if it exists.
1854
1855 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1856 for ac_option
1857 do
1858 case "\$ac_option" in
1859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1860 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1861 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1862 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1863 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1864 exit 0 ;;
1865 -help | --help | --hel | --he | --h)
1866 echo "\$ac_cs_usage"; exit 0 ;;
1867 *) echo "\$ac_cs_usage"; exit 1 ;;
1868 esac
1869 done
1870
1871 ac_given_srcdir=$srcdir
1872 ac_given_INSTALL="$INSTALL"
1873
1874 trap 'rm -fr `echo "Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1875 EOF
1876 cat >> $CONFIG_STATUS <<EOF
1877
1878 # Protect against being on the right side of a sed subst in config.status.
1879 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1880 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1881 $ac_vpsub
1882 $extrasub
1883 s%@CFLAGS@%$CFLAGS%g
1884 s%@CPPFLAGS@%$CPPFLAGS%g
1885 s%@CXXFLAGS@%$CXXFLAGS%g
1886 s%@DEFS@%$DEFS%g
1887 s%@LDFLAGS@%$LDFLAGS%g
1888 s%@LIBS@%$LIBS%g
1889 s%@exec_prefix@%$exec_prefix%g
1890 s%@prefix@%$prefix%g
1891 s%@program_transform_name@%$program_transform_name%g
1892 s%@bindir@%$bindir%g
1893 s%@sbindir@%$sbindir%g
1894 s%@libexecdir@%$libexecdir%g
1895 s%@datadir@%$datadir%g
1896 s%@sysconfdir@%$sysconfdir%g
1897 s%@sharedstatedir@%$sharedstatedir%g
1898 s%@localstatedir@%$localstatedir%g
1899 s%@libdir@%$libdir%g
1900 s%@includedir@%$includedir%g
1901 s%@oldincludedir@%$oldincludedir%g
1902 s%@infodir@%$infodir%g
1903 s%@mandir@%$mandir%g
1904 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1905 s%@INSTALL_DATA@%$INSTALL_DATA%g
1906 s%@RANLIB@%$RANLIB%g
1907 s%@CC@%$CC%g
1908 s%@CPP@%$CPP%g
1909 s%@EXEEXT@%$EXEEXT%g
1910 s%@TERMLIBS@%$TERMLIBS%g
1911 s%@ALLOCA@%$ALLOCA%g
1912 s%@LIBOBJS@%$LIBOBJS%g
1913
1914 CEOF
1915 EOF
1916
1917 cat >> $CONFIG_STATUS <<\EOF
1918
1919 # Split the substitutions into bite-sized pieces for seds with
1920 # small command number limits, like on Digital OSF/1 and HP-UX.
1921 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1922 ac_file=1 # Number of current file.
1923 ac_beg=1 # First line for current file.
1924 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1925 ac_more_lines=:
1926 ac_sed_cmds=""
1927 while $ac_more_lines; do
1928 if test $ac_beg -gt 1; then
1929 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1930 else
1931 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1932 fi
1933 if test ! -s conftest.s$ac_file; then
1934 ac_more_lines=false
1935 rm -f conftest.s$ac_file
1936 else
1937 if test -z "$ac_sed_cmds"; then
1938 ac_sed_cmds="sed -f conftest.s$ac_file"
1939 else
1940 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1941 fi
1942 ac_file=`expr $ac_file + 1`
1943 ac_beg=$ac_end
1944 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1945 fi
1946 done
1947 if test -z "$ac_sed_cmds"; then
1948 ac_sed_cmds=cat
1949 fi
1950 EOF
1951
1952 cat >> $CONFIG_STATUS <<EOF
1953
1954 CONFIG_FILES=\${CONFIG_FILES-"Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile "}
1955 EOF
1956 cat >> $CONFIG_STATUS <<\EOF
1957 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1959 case "$ac_file" in
1960 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1961 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1962 *) ac_file_in="${ac_file}.in" ;;
1963 esac
1964
1965 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1966
1967 # Remove last slash and all that follows it. Not all systems have dirname.
1968 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1970 # The file is in a subdirectory.
1971 test ! -d "$ac_dir" && mkdir "$ac_dir"
1972 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1973 # A "../" for each directory in $ac_dir_suffix.
1974 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1975 else
1976 ac_dir_suffix= ac_dots=
1977 fi
1978
1979 case "$ac_given_srcdir" in
1980 .) srcdir=.
1981 if test -z "$ac_dots"; then top_srcdir=.
1982 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1983 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1984 ?:*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1985 *) # Relative path.
1986 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1987 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1988 esac
1989
1990 case "$ac_given_INSTALL" in
1991 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1992 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1993 esac
1994
1995 echo creating "$ac_file"
1996 rm -f "$ac_file"
1997 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1998 case "$ac_file" in
1999 *Makefile*) ac_comsub="1i\\
2000 # $configure_input" ;;
2001 *) ac_comsub= ;;
2002 esac
2003
2004 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%" -e "s%^%$ac_given_srcdir/%g"`
2005 sed -e "$ac_comsub
2006 s%@configure_input@%$configure_input%g
2007 s%@srcdir@%$srcdir%g
2008 s%@top_srcdir@%$top_srcdir%g
2009 s%@INSTALL@%$INSTALL%g
2010 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2011 fi; done
2012 rm -f conftest.s*
2013
2014 EOF
2015 cat >> $CONFIG_STATUS <<EOF
2016
2017 EOF
2018 cat >> $CONFIG_STATUS <<\EOF
2019
2020 exit 0
2021 EOF
2022 chmod +x $CONFIG_STATUS
2023 rm -fr confdefs* $ac_clean_files
2024 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2025
This page took 0.150757 seconds and 4 git commands to generate.