source: vendor/bash/3.1/lib/termcap/grot/configure@ 3228

Last change on this file since 3228 was 3228, checked in by bird, 19 years ago

bash 3.1

File size: 29.6 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.4
5# Copyright (C) 1992, 1993, 1994 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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-install-termcap install the termcap data file"
16ac_help="$ac_help
17 --with-termcap=FILE use data file FILE instead of /etc/termcap"
18
19# Initialize some variables set by options.
20# The variables have the same names as the options, with
21# dashes changed to underlines.
22build=NONE
23cache_file=./config.cache
24exec_prefix=NONE
25host=NONE
26no_create=
27nonopt=NONE
28no_recursion=
29prefix=NONE
30program_prefix=NONE
31program_suffix=NONE
32program_transform_name=s,x,x,
33silent=
34site=
35srcdir=
36target=NONE
37verbose=
38x_includes=NONE
39x_libraries=NONE
40
41# Initialize some other variables.
42subdirs=
43
44ac_prev=
45for ac_option
46do
47
48 # If the previous option needs an argument, assign it.
49 if test -n "$ac_prev"; then
50 eval "$ac_prev=\$ac_option"
51 ac_prev=
52 continue
53 fi
54
55 case "$ac_option" in
56 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
57 *) ac_optarg= ;;
58 esac
59
60 # Accept the important Cygnus configure options, so we can diagnose typos.
61
62 case "$ac_option" in
63
64 -build | --build | --buil | --bui | --bu | --b)
65 ac_prev=build ;;
66 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
67 build="$ac_optarg" ;;
68
69 -cache-file | --cache-file | --cache-fil | --cache-fi \
70 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
71 ac_prev=cache_file ;;
72 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
73 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
74 cache_file="$ac_optarg" ;;
75
76 -disable-* | --disable-*)
77 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
78 # Reject names that are not valid shell variable names.
79 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
80 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
81 fi
82 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
83 eval "enable_${ac_feature}=no" ;;
84
85 -enable-* | --enable-*)
86 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
87 # Reject names that are not valid shell variable names.
88 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
89 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
90 fi
91 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
92 case "$ac_option" in
93 *=*) ;;
94 *) ac_optarg=yes ;;
95 esac
96 eval "enable_${ac_feature}='$ac_optarg'" ;;
97
98 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
99 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
100 | --exec | --exe | --ex)
101 ac_prev=exec_prefix ;;
102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
104 | --exec=* | --exe=* | --ex=*)
105 exec_prefix="$ac_optarg" ;;
106
107 -gas | --gas | --ga | --g)
108 # Obsolete; use --with-gas.
109 with_gas=yes ;;
110
111 -help | --help | --hel | --he)
112 # Omit some internal or obsolete options to make the list less imposing.
113 # This message is too long to be a string in the A/UX 3.1 sh.
114 cat << EOF
115Usage: configure [options] [host]
116Options: [defaults in brackets after descriptions]
117Configuration:
118 --cache-file=FILE cache test results in FILE
119 --help print this message
120 --no-create do not create output files
121 --quiet, --silent do not print \`checking...' messages
122 --version print the version of autoconf that created configure
123Directory and file names:
124 --prefix=PREFIX install architecture-independent files in PREFIX
125 [$ac_default_prefix]
126 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
127 [same as prefix]
128 --srcdir=DIR find the sources in DIR [configure dir or ..]
129 --program-prefix=PREFIX prepend PREFIX to installed program names
130 --program-suffix=SUFFIX append SUFFIX to installed program names
131 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
132Host type:
133 --build=BUILD configure for building on BUILD [BUILD=HOST]
134 --host=HOST configure for HOST [guessed]
135 --target=TARGET configure for TARGET [TARGET=HOST]
136Features and packages:
137 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
138 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
141 --x-includes=DIR X include files are in DIR
142 --x-libraries=DIR X library files are in DIR
143--enable and --with options recognized:$ac_help
144EOF
145 exit 0 ;;
146
147 -host | --host | --hos | --ho)
148 ac_prev=host ;;
149 -host=* | --host=* | --hos=* | --ho=*)
150 host="$ac_optarg" ;;
151
152 -nfp | --nfp | --nf)
153 # Obsolete; use --without-fp.
154 with_fp=no ;;
155
156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
157 | --no-cr | --no-c)
158 no_create=yes ;;
159
160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
162 no_recursion=yes ;;
163
164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
165 ac_prev=prefix ;;
166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
167 prefix="$ac_optarg" ;;
168
169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
170 | --program-pre | --program-pr | --program-p)
171 ac_prev=program_prefix ;;
172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
174 program_prefix="$ac_optarg" ;;
175
176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
177 | --program-suf | --program-su | --program-s)
178 ac_prev=program_suffix ;;
179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
181 program_suffix="$ac_optarg" ;;
182
183 -program-transform-name | --program-transform-name \
184 | --program-transform-nam | --program-transform-na \
185 | --program-transform-n | --program-transform- \
186 | --program-transform | --program-transfor \
187 | --program-transfo | --program-transf \
188 | --program-trans | --program-tran \
189 | --progr-tra | --program-tr | --program-t)
190 ac_prev=program_transform_name ;;
191 -program-transform-name=* | --program-transform-name=* \
192 | --program-transform-nam=* | --program-transform-na=* \
193 | --program-transform-n=* | --program-transform-=* \
194 | --program-transform=* | --program-transfor=* \
195 | --program-transfo=* | --program-transf=* \
196 | --program-trans=* | --program-tran=* \
197 | --progr-tra=* | --program-tr=* | --program-t=*)
198 program_transform_name="$ac_optarg" ;;
199
200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
201 | -silent | --silent | --silen | --sile | --sil)
202 silent=yes ;;
203
204 -site | --site | --sit)
205 ac_prev=site ;;
206 -site=* | --site=* | --sit=*)
207 site="$ac_optarg" ;;
208
209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
210 ac_prev=srcdir ;;
211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
212 srcdir="$ac_optarg" ;;
213
214 -target | --target | --targe | --targ | --tar | --ta | --t)
215 ac_prev=target ;;
216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
217 target="$ac_optarg" ;;
218
219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
220 verbose=yes ;;
221
222 -version | --version | --versio | --versi | --vers)
223 echo "configure generated by autoconf version 2.4"
224 exit 0 ;;
225
226 -with-* | --with-*)
227 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
230 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
231 fi
232 ac_package=`echo $ac_package| sed 's/-/_/g'`
233 case "$ac_option" in
234 *=*) ;;
235 *) ac_optarg=yes ;;
236 esac
237 eval "with_${ac_package}='$ac_optarg'" ;;
238
239 -without-* | --without-*)
240 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
243 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
244 fi
245 ac_package=`echo $ac_package| sed 's/-/_/g'`
246 eval "with_${ac_package}=no" ;;
247
248 --x)
249 # Obsolete; use --with-x.
250 with_x=yes ;;
251
252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
253 | --x-incl | --x-inc | --x-in | --x-i)
254 ac_prev=x_includes ;;
255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
257 x_includes="$ac_optarg" ;;
258
259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
261 ac_prev=x_libraries ;;
262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
264 x_libraries="$ac_optarg" ;;
265
266 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
267 ;;
268
269 *)
270 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
271 echo "configure: warning: $ac_option: invalid host type" 1>&2
272 fi
273 if test "x$nonopt" != xNONE; then
274 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
275 fi
276 nonopt="$ac_option"
277 ;;
278
279 esac
280done
281
282if test -n "$ac_prev"; then
283 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
284fi
285
286trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
287
288# File descriptor usage:
289# 0 standard input
290# 1 file creation
291# 2 errors and warnings
292# 3 some systems may open it to /dev/tty
293# 4 used on the Kubota Titan
294# 6 checking for... messages and results
295# 5 compiler messages saved in config.log
296if test "$silent" = yes; then
297 exec 6>/dev/null
298else
299 exec 6>&1
300fi
301exec 5>./config.log
302
303echo "\
304This file contains any messages produced by compilers while
305running configure, to aid debugging if configure makes a mistake.
306" 1>&5
307
308# Strip out --no-create and --no-recursion so they do not pile up.
309# Also quote any args containing shell metacharacters.
310ac_configure_args=
311for ac_arg
312do
313 case "$ac_arg" in
314 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 | --no-cr | --no-c) ;;
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
319 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
320 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
321 esac
322done
323
324# NLS nuisances.
325# Only set LANG and LC_ALL to C if already set.
326# These must not be set unconditionally because not all systems understand
327# e.g. LANG=C (notably SCO).
328if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
329if test "${LANG+set}" = set; then LANG=C; export LANG; fi
330
331# confdefs.h avoids OS command line length limits that DEFS can exceed.
332rm -rf conftest* confdefs.h
333# AIX cpp loses on an empty file, so make sure it contains at least a newline.
334echo > confdefs.h
335
336# A filename unique to this package, relative to the directory that
337# configure is in, which we can look for to find out if srcdir is correct.
338ac_unique_file=termcap.h
339
340# Find the source files, if location was not specified.
341if test -z "$srcdir"; then
342 ac_srcdir_defaulted=yes
343 # Try the directory containing this script, then its parent.
344 ac_prog=$0
345 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
346 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
347 srcdir=$ac_confdir
348 if test ! -r $srcdir/$ac_unique_file; then
349 srcdir=..
350 fi
351else
352 ac_srcdir_defaulted=no
353fi
354if test ! -r $srcdir/$ac_unique_file; then
355 if test "$ac_srcdir_defaulted" = yes; then
356 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
357 else
358 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
359 fi
360fi
361srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
362
363# Prefer explicitly selected file to automatically selected ones.
364if test -z "$CONFIG_SITE"; then
365 if test "x$prefix" != xNONE; then
366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
367 else
368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
369 fi
370fi
371for ac_site_file in $CONFIG_SITE; do
372 if test -r "$ac_site_file"; then
373 echo "loading site script $ac_site_file"
374 . "$ac_site_file"
375 fi
376done
377
378if test -r "$cache_file"; then
379 echo "loading cache $cache_file"
380 . $cache_file
381else
382 echo "creating cache $cache_file"
383 > $cache_file
384fi
385
386ac_ext=c
387# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
388ac_cpp='$CPP $CPPFLAGS'
389ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
390ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
391
392if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
393 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
394 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
395 ac_n= ac_c='
396' ac_t=' '
397 else
398 ac_n=-n ac_c= ac_t=
399 fi
400else
401 ac_n= ac_c='\c' ac_t=
402fi
403
404
405
406# Check whether --enable-install-termcap or --disable-install-termcap was given.
407enableval="$enable_install_termcap"
408if test -n "$enableval"; then
409 if test $enableval = yes; then
410 installdata=install-data uninstalldata=uninstall-data
411 fi
412fi
413
414
415# Check whether --with-termcap or --without-termcap was given.
416withval="$with_termcap"
417if test -n "$withval"; then
418 termcapfile=$withval
419else
420 termcapfile=/etc/termcap
421fi
422
423
424# Extract the first word of "gcc", so it can be a program name with args.
425set dummy gcc; ac_word=$2
426echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
427if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
428 echo $ac_n "(cached) $ac_c" 1>&6
429else
430 if test -n "$CC"; then
431 ac_cv_prog_CC="$CC" # Let the user override the test.
432else
433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
434 for ac_dir in $PATH; do
435 test -z "$ac_dir" && ac_dir=.
436 if test -f $ac_dir/$ac_word; then
437 ac_cv_prog_CC="gcc"
438 break
439 fi
440 done
441 IFS="$ac_save_ifs"
442 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
443fi
444fi
445CC="$ac_cv_prog_CC"
446if test -n "$CC"; then
447 echo "$ac_t""$CC" 1>&6
448else
449 echo "$ac_t""no" 1>&6
450fi
451
452
453echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
454if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
455 echo $ac_n "(cached) $ac_c" 1>&6
456else
457 cat > conftest.c <<EOF
458#ifdef __GNUC__
459 yes;
460#endif
461EOF
462if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
463 ac_cv_prog_gcc=yes
464else
465 ac_cv_prog_gcc=no
466fi
467fi
468echo "$ac_t""$ac_cv_prog_gcc" 1>&6
469if test $ac_cv_prog_gcc = yes; then
470 GCC=yes
471 if test "${CFLAGS+set}" != set; then
472 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
473if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
474 echo $ac_n "(cached) $ac_c" 1>&6
475else
476 echo 'void f(){}' > conftest.c
477if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
478 ac_cv_prog_gcc_g=yes
479else
480 ac_cv_prog_gcc_g=no
481fi
482rm -f conftest*
483
484fi
485 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
486 if test $ac_cv_prog_gcc_g = yes; then
487 CFLAGS="-g -O"
488 else
489 CFLAGS="-O"
490 fi
491 fi
492else
493 GCC=
494 test "${CFLAGS+set}" = set || CFLAGS="-g"
495fi
496
497# Extract the first word of "ranlib", so it can be a program name with args.
498set dummy ranlib; ac_word=$2
499echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
500if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
501 echo $ac_n "(cached) $ac_c" 1>&6
502else
503 if test -n "$RANLIB"; then
504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
505else
506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
507 for ac_dir in $PATH; do
508 test -z "$ac_dir" && ac_dir=.
509 if test -f $ac_dir/$ac_word; then
510 ac_cv_prog_RANLIB="ranlib"
511 break
512 fi
513 done
514 IFS="$ac_save_ifs"
515 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
516fi
517fi
518RANLIB="$ac_cv_prog_RANLIB"
519if test -n "$RANLIB"; then
520 echo "$ac_t""$RANLIB" 1>&6
521else
522 echo "$ac_t""no" 1>&6
523fi
524
525ac_aux_dir=
526for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
527 if test -f $ac_dir/install-sh; then
528 ac_aux_dir=$ac_dir
529 ac_install_sh="$ac_aux_dir/install-sh -c"
530 break
531 elif test -f $ac_dir/install.sh; then
532 ac_aux_dir=$ac_dir
533 ac_install_sh="$ac_aux_dir/install.sh -c"
534 break
535 fi
536done
537if test -z "$ac_aux_dir"; then
538 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
539fi
540ac_config_guess=$ac_aux_dir/config.guess
541ac_config_sub=$ac_aux_dir/config.sub
542ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
543
544# Find a good install program. We prefer a C program (faster),
545# so one script is as good as another. But avoid the broken or
546# incompatible versions:
547# SysV /etc/install, /usr/sbin/install
548# SunOS /usr/etc/install
549# IRIX /sbin/install
550# AIX /bin/install
551# AFS /usr/afsws/bin/install, which mishandles nonexistent args
552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
553# ./install, which can be erroneously created by make from ./install.sh.
554echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
555if test -z "$INSTALL"; then
556if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
558else
559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
560 for ac_dir in $PATH; do
561 # Account for people who put trailing slashes in PATH elements.
562 case "$ac_dir/" in
563 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
564 *)
565 # OSF1 and SCO ODT 3.0 have their own names for install.
566 for ac_prog in ginstall installbsd scoinst install; do
567 if test -f $ac_dir/$ac_prog; then
568 if test $ac_prog = install &&
569 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
570 # AIX install. It has an incompatible calling convention.
571 # OSF/1 installbsd also uses dspmsg, but is usable.
572 :
573 else
574 ac_cv_path_install="$ac_dir/$ac_prog -c"
575 break 2
576 fi
577 fi
578 done
579 ;;
580 esac
581 done
582 IFS="$ac_save_ifs"
583 # As a last resort, use the slow shell script.
584 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
585fi
586 INSTALL="$ac_cv_path_install"
587fi
588echo "$ac_t""$INSTALL" 1>&6
589
590# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
591# It thinks the first close brace ends the variable substitution.
592test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
593
594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
595
596echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
597# On Suns, sometimes $CPP names a directory.
598if test -n "$CPP" && test -d "$CPP"; then
599 CPP=
600fi
601if test -z "$CPP"; then
602if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
603 echo $ac_n "(cached) $ac_c" 1>&6
604else
605 # This must be in double quotes, not single quotes, because CPP may get
606 # substituted into the Makefile and "${CC-cc}" will confuse make.
607 CPP="${CC-cc} -E"
608 # On the NeXT, cc -E runs the code through the compiler's parser,
609 # not just through cpp.
610 cat > conftest.$ac_ext <<EOF
611#line 612 "configure"
612#include "confdefs.h"
613#include <assert.h>
614Syntax Error
615EOF
616eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
617ac_err=`grep -v '^ *+' conftest.out`
618if test -z "$ac_err"; then
619 :
620else
621 echo "$ac_err" >&5
622 rm -rf conftest*
623 CPP="${CC-cc} -E -traditional-cpp"
624 cat > conftest.$ac_ext <<EOF
625#line 626 "configure"
626#include "confdefs.h"
627#include <assert.h>
628Syntax Error
629EOF
630eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
631ac_err=`grep -v '^ *+' conftest.out`
632if test -z "$ac_err"; then
633 :
634else
635 echo "$ac_err" >&5
636 rm -rf conftest*
637 CPP=/lib/cpp
638fi
639rm -f conftest*
640fi
641rm -f conftest*
642 ac_cv_prog_CPP="$CPP"
643fi
644 CPP="$ac_cv_prog_CPP"
645else
646 ac_cv_prog_CPP="$CPP"
647fi
648echo "$ac_t""$CPP" 1>&6
649
650for ac_hdr in string.h unistd.h
651do
652ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
653echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
654if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656else
657 cat > conftest.$ac_ext <<EOF
658#line 659 "configure"
659#include "confdefs.h"
660#include <$ac_hdr>
661EOF
662eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
663ac_err=`grep -v '^ *+' conftest.out`
664if test -z "$ac_err"; then
665 rm -rf conftest*
666 eval "ac_cv_header_$ac_safe=yes"
667else
668 echo "$ac_err" >&5
669 rm -rf conftest*
670 eval "ac_cv_header_$ac_safe=no"
671fi
672rm -f conftest*
673fi
674if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
675 echo "$ac_t""yes" 1>&6
676 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
677 cat >> confdefs.h <<EOF
678#define $ac_tr_hdr 1
679EOF
680
681else
682 echo "$ac_t""no" 1>&6
683fi
684done
685
686# If we cannot run a trivial program, we must be cross compiling.
687echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
688if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
690else
691 if test "$cross_compiling" = yes; then
692 ac_cv_c_cross=yes
693else
694cat > conftest.$ac_ext <<EOF
695#line 696 "configure"
696#include "confdefs.h"
697main(){return(0);}
698EOF
699eval $ac_link
700if test -s conftest && (./conftest; exit) 2>/dev/null; then
701 ac_cv_c_cross=no
702else
703 ac_cv_c_cross=yes
704fi
705fi
706rm -fr conftest*
707fi
708cross_compiling=$ac_cv_c_cross
709echo "$ac_t""$ac_cv_c_cross" 1>&6
710
711echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
712if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
714else
715 cat > conftest.$ac_ext <<EOF
716#line 717 "configure"
717#include "confdefs.h"
718#include <stdlib.h>
719#include <stdarg.h>
720#include <string.h>
721#include <float.h>
722EOF
723eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
724ac_err=`grep -v '^ *+' conftest.out`
725if test -z "$ac_err"; then
726 rm -rf conftest*
727 ac_cv_header_stdc=yes
728else
729 echo "$ac_err" >&5
730 rm -rf conftest*
731 ac_cv_header_stdc=no
732fi
733rm -f conftest*
734
735if test $ac_cv_header_stdc = yes; then
736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
737cat > conftest.$ac_ext <<EOF
738#line 739 "configure"
739#include "confdefs.h"
740#include <string.h>
741EOF
742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
743 egrep "memchr" >/dev/null 2>&1; then
744 :
745else
746 rm -rf conftest*
747 ac_cv_header_stdc=no
748fi
749rm -f conftest*
750
751fi
752
753if test $ac_cv_header_stdc = yes; then
754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
755cat > conftest.$ac_ext <<EOF
756#line 757 "configure"
757#include "confdefs.h"
758#include <stdlib.h>
759EOF
760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
761 egrep "free" >/dev/null 2>&1; then
762 :
763else
764 rm -rf conftest*
765 ac_cv_header_stdc=no
766fi
767rm -f conftest*
768
769fi
770
771if test $ac_cv_header_stdc = yes; then
772 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
773if test "$cross_compiling" = yes; then
774 ac_cv_header_stdc=no
775else
776cat > conftest.$ac_ext <<EOF
777#line 778 "configure"
778#include "confdefs.h"
779#include <ctype.h>
780#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
781#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
782#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
783int main () { int i; for (i = 0; i < 256; i++)
784if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
785exit (0); }
786
787EOF
788eval $ac_link
789if test -s conftest && (./conftest; exit) 2>/dev/null; then
790 :
791else
792 ac_cv_header_stdc=no
793fi
794fi
795rm -fr conftest*
796fi
797fi
798echo "$ac_t""$ac_cv_header_stdc" 1>&6
799if test $ac_cv_header_stdc = yes; then
800 cat >> confdefs.h <<\EOF
801#define STDC_HEADERS 1
802EOF
803
804fi
805
806
807trap '' 1 2 15
808cat > confcache <<\EOF
809# This file is a shell script that caches the results of configure
810# tests run on this system so they can be shared between configure
811# scripts and configure runs. It is not useful on other systems.
812# If it contains results you don't want to keep, you may remove or edit it.
813#
814# By default, configure uses ./config.cache as the cache file,
815# creating it if it does not exist already. You can give configure
816# the --cache-file=FILE option to use a different cache file; that is
817# what configure does when it calls configure scripts in
818# subdirectories, so they share the cache.
819# Giving --cache-file=/dev/null disables caching, for debugging configure.
820# config.status only pays attention to the cache file if you give it the
821# --recheck option to rerun configure.
822#
823EOF
824# Ultrix sh set writes to stderr and can't be redirected directly,
825# and sets the high bit in the cache file unless we assign to the vars.
826(set) 2>&1 |
827 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
828 >> confcache
829if cmp -s $cache_file confcache; then
830 :
831else
832 if test -w $cache_file; then
833 echo "updating cache $cache_file"
834 cat confcache > $cache_file
835 else
836 echo "not updating unwritable cache $cache_file"
837 fi
838fi
839rm -f confcache
840
841trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
842
843test "x$prefix" = xNONE && prefix=$ac_default_prefix
844# Let make expand exec_prefix.
845test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
846
847# Any assignment to VPATH causes Sun make to only execute
848# the first set of double-colon rules, so remove it if not needed.
849# If there is a colon in the path, we need to keep it.
850if test "x$srcdir" = x.; then
851 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
852fi
853
854trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
855
856# Transform confdefs.h into DEFS.
857# Protect against shell expansion while executing Makefile rules.
858# Protect against Makefile macro expansion.
859cat > conftest.defs <<\EOF
860s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
861s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
862s%\[%\\&%g
863s%\]%\\&%g
864s%\$%$$%g
865EOF
866DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
867rm -f conftest.defs
868
869
870# Without the "./", some shells look in PATH for config.status.
871: ${CONFIG_STATUS=./config.status}
872
873echo creating $CONFIG_STATUS
874rm -f $CONFIG_STATUS
875cat > $CONFIG_STATUS <<EOF
876#! /bin/sh
877# Generated automatically by configure.
878# Run this file to recreate the current configuration.
879# This directory was configured as follows,
880# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
881#
882# $0 $ac_configure_args
883#
884# Compiler output produced by configure, useful for debugging
885# configure, is in ./config.log if it exists.
886
887ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
888for ac_option
889do
890 case "\$ac_option" in
891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
892 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
893 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
894 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
895 echo "$CONFIG_STATUS generated by autoconf version 2.4"
896 exit 0 ;;
897 -help | --help | --hel | --he | --h)
898 echo "\$ac_cs_usage"; exit 0 ;;
899 *) echo "\$ac_cs_usage"; exit 1 ;;
900 esac
901done
902
903ac_given_srcdir=$srcdir
904ac_given_INSTALL="$INSTALL"
905
906trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
907
908# Protect against being on the right side of a sed subst in config.status.
909sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
910 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
911$ac_vpsub
912$extrasub
913s%@CFLAGS@%$CFLAGS%g
914s%@CPPFLAGS@%$CPPFLAGS%g
915s%@CXXFLAGS@%$CXXFLAGS%g
916s%@DEFS@%$DEFS%g
917s%@LDFLAGS@%$LDFLAGS%g
918s%@LIBS@%$LIBS%g
919s%@exec_prefix@%$exec_prefix%g
920s%@prefix@%$prefix%g
921s%@program_transform_name@%$program_transform_name%g
922s%@installdata@%$installdata%g
923s%@uninstalldata@%$uninstalldata%g
924s%@termcapfile@%$termcapfile%g
925s%@CC@%$CC%g
926s%@RANLIB@%$RANLIB%g
927s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
928s%@INSTALL_DATA@%$INSTALL_DATA%g
929s%@CPP@%$CPP%g
930
931CEOF
932EOF
933cat >> $CONFIG_STATUS <<EOF
934
935CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
936EOF
937cat >> $CONFIG_STATUS <<\EOF
938for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
939 # Support "outfile[:infile]", defaulting infile="outfile.in".
940 case "$ac_file" in
941 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
942 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
943 *) ac_file_in="${ac_file}.in" ;;
944 esac
945
946 # Adjust relative srcdir, etc. for subdirectories.
947
948 # Remove last slash and all that follows it. Not all systems have dirname.
949 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
950 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
951 # The file is in a subdirectory.
952 test ! -d "$ac_dir" && mkdir "$ac_dir"
953 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
954 # A "../" for each directory in $ac_dir_suffix.
955 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
956 else
957 ac_dir_suffix= ac_dots=
958 fi
959
960 case "$ac_given_srcdir" in
961 .) srcdir=.
962 if test -z "$ac_dots"; then top_srcdir=.
963 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
964 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
965 *) # Relative path.
966 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
967 top_srcdir="$ac_dots$ac_given_srcdir" ;;
968 esac
969
970 case "$ac_given_INSTALL" in
971 [/$]*) INSTALL="$ac_given_INSTALL" ;;
972 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
973 esac
974 echo creating "$ac_file"
975 rm -f "$ac_file"
976 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
977 case "$ac_file" in
978 *Makefile*) ac_comsub="1i\\
979# $configure_input" ;;
980 *) ac_comsub= ;;
981 esac
982 sed -e "$ac_comsub
983s%@configure_input@%$configure_input%g
984s%@srcdir@%$srcdir%g
985s%@top_srcdir@%$top_srcdir%g
986s%@INSTALL@%$INSTALL%g
987" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
988fi; done
989rm -f conftest.subs
990
991
992
993exit 0
994EOF
995chmod +x $CONFIG_STATUS
996rm -fr confdefs* $ac_clean_files
997test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
998
Note: See TracBrowser for help on using the repository browser.