3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.1
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
37 # Initialize some other variables.
44 # If the previous option needs an argument, assign it.
45 if test -n "$ac_prev"; then
46 eval "$ac_prev=\$ac_option"
52 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
56 # Accept the important Cygnus configure options, so we can diagnose typos.
60 -build | --build | --buil | --bui | --bu | --b)
62 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
65 -cache-file | --cache-file | --cache-fil | --cache-fi \
66 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
68 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
69 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
70 cache_file="$ac_optarg" ;;
72 -disable-* | --disable-*)
73 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
74 # Reject names that are not valid shell variable names.
75 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
76 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
78 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
79 eval "enable_${ac_feature}=no" ;;
81 -enable-* | --enable-*)
82 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
83 # Reject names that are not valid shell variable names.
84 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
85 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
87 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
92 eval "enable_${ac_feature}='$ac_optarg'" ;;
94 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
95 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
96 | --exec | --exe | --ex)
97 ac_prev=exec_prefix ;;
98 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
99 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
100 | --exec=* | --exe=* | --ex=*)
101 exec_prefix="$ac_optarg" ;;
103 -gas | --gas | --ga | --g)
104 # Obsolete; use --with-gas.
107 -help | --help | --hel | --he)
108 # Omit some internal or obsolete options to make the list less imposing.
109 # This message is too long to be a string in the A/UX 3.1 sh.
111 Usage: configure [options] [host]
112 Options: [defaults in brackets after descriptions]
114 --cache-file=FILE cache test results in FILE
115 --help print this message
116 --no-create do not create output files
117 --quiet, --silent do not print \`checking...' messages
118 --version print the version of autoconf that created configure
119 Directory and file names:
120 --prefix=PREFIX install architecture-independent files in PREFIX
122 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
124 --srcdir=DIR find the sources in DIR [configure dir or ..]
125 --program-prefix=PREFIX prepend PREFIX to installed program names
126 --program-suffix=SUFFIX append SUFFIX to installed program names
127 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
129 --build=BUILD configure for building on BUILD [BUILD=HOST]
130 --host=HOST configure for HOST [guessed]
131 --target=TARGET configure for TARGET [TARGET=HOST]
132 Features and packages:
133 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
134 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
135 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
136 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
137 --x-includes=DIR X include files are in DIR
138 --x-libraries=DIR X library files are in DIR
139 --enable and --with options recognized:$ac_help
143 -host | --host | --hos | --ho)
145 -host=* | --host=* | --hos=* | --ho=*)
149 # Obsolete; use --without-fp.
152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
163 prefix="$ac_optarg" ;;
165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
166 | --program-pre | --program-pr | --program-p)
167 ac_prev=program_prefix ;;
168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
170 program_prefix="$ac_optarg" ;;
172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
173 | --program-suf | --program-su | --program-s)
174 ac_prev=program_suffix ;;
175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
177 program_suffix="$ac_optarg" ;;
179 -program-transform-name | --program-transform-name \
180 | --program-transform-nam | --program-transform-na \
181 | --program-transform-n | --program-transform- \
182 | --program-transform | --program-transfor \
183 | --program-transfo | --program-transf \
184 | --program-trans | --program-tran \
185 | --progr-tra | --program-tr | --program-t)
186 ac_prev=program_transform_name ;;
187 -program-transform-name=* | --program-transform-name=* \
188 | --program-transform-nam=* | --program-transform-na=* \
189 | --program-transform-n=* | --program-transform-=* \
190 | --program-transform=* | --program-transfor=* \
191 | --program-transfo=* | --program-transf=* \
192 | --program-trans=* | --program-tran=* \
193 | --progr-tra=* | --program-tr=* | --program-t=*)
194 program_transform_name="$ac_optarg" ;;
196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
197 | -silent | --silent | --silen | --sile | --sil)
200 -site | --site | --sit)
202 -site=* | --site=* | --sit=*)
205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
208 srcdir="$ac_optarg" ;;
210 -target | --target | --targe | --targ | --tar | --ta | --t)
212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
213 target="$ac_optarg" ;;
215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
218 -version | --version | --versio | --versi | --vers)
219 echo "configure generated by autoconf version 2.1"
223 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
224 # Reject names that are not valid shell variable names.
225 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
226 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
228 ac_package=`echo $ac_package| sed 's/-/_/g'`
233 eval "with_${ac_package}='$ac_optarg'" ;;
235 -without-* | --without-*)
236 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
239 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
241 ac_package=`echo $ac_package| sed 's/-/_/g'`
242 eval "with_${ac_package}=no" ;;
245 # Obsolete; use --with-x.
248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
249 | --x-incl | --x-inc | --x-in | --x-i)
250 ac_prev=x_includes ;;
251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
253 x_includes="$ac_optarg" ;;
255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
257 ac_prev=x_libraries ;;
258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
260 x_libraries="$ac_optarg" ;;
262 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
266 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
267 echo "configure: warning: $ac_option: invalid host type" 1>&2
269 if test "x$nonopt" != xNONE; then
270 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
278 if test -n "$ac_prev"; then
279 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
282 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
284 # File descriptor usage:
285 # 0 unused; standard input
287 # 2 errors and warnings
288 # 3 unused; some systems may open it to /dev/tty
289 # 4 checking for... messages and results
290 # 5 compiler messages saved in config.log
291 if test "$silent" = yes; then
299 This file contains any messages produced by compilers while
300 running configure, to aid debugging if configure makes a mistake.
303 # Strip out --no-create and --no-recursion so they do not pile up.
304 # Also quote any args containing shell metacharacters.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c) ;;
311 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
312 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
314 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
315 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
320 # Only set LANG and LC_ALL to C if already set.
321 # These must not be set unconditionally because not all systems understand
322 # e.g. LANG=C (notably SCO).
323 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
324 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
327 rm -rf conftest* confdefs.h
328 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
331 # A filename unique to this package, relative to the directory that
332 # configure is in, which we can look for to find out if srcdir is correct.
333 ac_unique_file=Makefile.in
335 # Find the source files, if location was not specified.
336 if test -z "$srcdir"; then
337 ac_srcdir_defaulted=yes
338 # Try the directory containing this script, then its parent.
340 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
341 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
343 if test ! -r $srcdir/$ac_unique_file; then
347 ac_srcdir_defaulted=no
349 if test ! -r $srcdir/$ac_unique_file; then
350 if test "$ac_srcdir_defaulted" = yes; then
351 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
353 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
356 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
358 # Prefer explicitly selected file to automatically selected ones.
359 if test -z "$CONFIG_SITE"; then
360 if test "x$prefix" != xNONE; then
361 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
363 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
366 for ac_site_file in $CONFIG_SITE; do
367 if test -r "$ac_site_file"; then
368 echo "loading site script $ac_site_file"
373 if test -r "$cache_file"; then
374 echo "loading cache $cache_file"
377 echo "creating cache $cache_file"
382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
383 ac_cpp='$CPP $CPPFLAGS'
384 ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
385 ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
387 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
388 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
389 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
396 ac_n= ac_c='\c' ac_t=
401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
402 if test -f $ac_dir/install-sh; then
404 ac_install_sh="$ac_aux_dir/install-sh -c"
406 elif test -f $ac_dir/install.sh; then
408 ac_install_sh="$ac_aux_dir/install.sh -c"
412 if test -z "$ac_aux_dir"; then
413 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
415 ac_config_guess=$ac_aux_dir/config.guess
416 ac_config_sub=$ac_aux_dir/config.sub
417 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
419 # Find a good install program. We prefer a C program (faster),
420 # so one script is as good as another. But avoid the broken or
421 # incompatible versions:
422 # SysV /etc/install, /usr/sbin/install
423 # SunOS /usr/etc/install
426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
428 # ./install, which can be erroneously created by make from ./install.sh.
429 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
430 if test -z "$INSTALL"; then
431 if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
432 echo $ac_n "(cached) $ac_c" 1>&4
434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
435 for ac_dir in $PATH; do
437 ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
439 # OSF1 and SCO ODT 3.0 have their own names for install.
440 for ac_prog in ginstall installbsd scoinst install; do
441 if test -f $ac_dir/$ac_prog; then
442 if test $ac_prog = install &&
443 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
444 # AIX install. It has an incompatible calling convention.
445 # OSF/1 installbsd also uses dspmsg, but is usable.
448 ac_cv_path_install="$ac_dir/$ac_prog -c"
457 # As a last resort, use the slow shell script.
458 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
460 INSTALL="$ac_cv_path_install"
462 echo "$ac_t""$INSTALL" 1>&4
464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
465 # It thinks the first close brace ends the variable substitution.
466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
471 if test -w $cache_file; then
472 echo "updating cache $cache_file"
473 cat > $cache_file <<\EOF
474 # This file is a shell script that caches the results of configure
475 # tests run on this system so they can be shared between configure
476 # scripts and configure runs. It is not useful on other systems.
477 # If it contains results you don't want to keep, you may remove or edit it.
479 # By default, configure uses ./config.cache as the cache file,
480 # creating it if it does not exist already. You can give configure
481 # the --cache-file=FILE option to use a different cache file; that is
482 # what configure does when it calls configure scripts in
483 # subdirectories, so they share the cache.
484 # Giving --cache-file=/dev/null disables caching, for debugging configure.
485 # config.status only pays attention to the cache file if you give it the
486 # --recheck option to rerun configure.
489 # Ultrix sh set writes to stderr and can't be redirected directly.
491 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
494 echo "not updating unwritable cache $cache_file"
497 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
500 # Let make expand exec_prefix.
501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
503 # Any assignment to VPATH causes Sun make to only execute
504 # the first set of double-colon rules, so remove it if not needed.
505 # If there is a colon in the path, we need to keep it.
506 if test "x$srcdir" = x.; then
507 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
510 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
512 # Transform confdefs.h into DEFS.
513 # Protect against shell expansion while executing Makefile rules.
514 # Protect against Makefile macro expansion.
515 cat > conftest.defs <<\EOF
516 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
517 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
522 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
526 # Without the "./", some shells look in PATH for config.status.
527 : ${CONFIG_STATUS=./config.status}
529 echo creating $CONFIG_STATUS
531 cat > $CONFIG_STATUS <<EOF
533 # Generated automatically by configure.
534 # Run this file to recreate the current configuration.
535 # This directory was configured as follows,
536 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
538 # $0 $ac_configure_args
540 # Compiler output produced by configure, useful for debugging
541 # configure, is in ./config.log if it exists.
543 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
546 case "\$ac_option" in
547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
548 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
549 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
550 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
551 echo "$CONFIG_STATUS generated by autoconf version 2.1"
553 -help | --help | --hel | --he | --h)
554 echo "\$ac_cs_usage"; exit 0 ;;
555 *) echo "\$ac_cs_usage"; exit 1 ;;
559 ac_given_srcdir=$srcdir
560 ac_given_INSTALL="$INSTALL"
562 trap 'rm -f Makefile; exit 1' 1 2 15
564 # Protect against being on the right side of a sed subst in config.status.
565 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
566 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
570 s%@CPPFLAGS@%$CPPFLAGS%g
571 s%@CXXFLAGS@%$CXXFLAGS%g
573 s%@LDFLAGS@%$LDFLAGS%g
575 s%@exec_prefix@%$exec_prefix%g
577 s%@program_transform_name@%$program_transform_name%g
578 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
579 s%@INSTALL_DATA@%$INSTALL_DATA%g
583 cat >> $CONFIG_STATUS <<EOF
585 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
587 cat >> $CONFIG_STATUS <<\EOF
588 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
589 # Support "outfile[:infile]", defaulting infile="outfile.in".
591 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
592 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
593 *) ac_file_in="${ac_file}.in" ;;
596 # Adjust relative srcdir, etc. for subdirectories.
598 # Remove last slash and all that follows it. Not all systems have dirname.
599 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
600 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
601 # The file is in a subdirectory.
602 test ! -d "$ac_dir" && mkdir "$ac_dir"
603 ac_dir_suffix="/$ac_dir"
604 # A "../" for each directory in $ac_dir_suffix.
605 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
607 ac_dir_suffix= ac_dots=
610 case "$ac_given_srcdir" in
612 if test -z "$ac_dots"; then top_srcdir=.
613 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
614 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
616 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
617 top_srcdir="$ac_dots$ac_given_srcdir" ;;
620 case "$ac_given_INSTALL" in
621 [/$]*) INSTALL="$ac_given_INSTALL" ;;
622 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
624 echo creating "$ac_file"
626 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
628 *Makefile*) ac_comsub="1i\\
629 # $configure_input" ;;
633 s%@configure_input@%$configure_input%g
635 s%@top_srcdir@%$top_srcdir%g
636 s%@INSTALL@%$INSTALL%g
637 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
645 chmod +x $CONFIG_STATUS
646 rm -fr confdefs* $ac_clean_files
647 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS