3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=Makefile.am
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537 if test -f $ac_dir/install-sh; then
539 ac_install_sh="$ac_aux_dir/install-sh -c"
541 elif test -f $ac_dir/install.sh; then
543 ac_install_sh="$ac_aux_dir/install.sh -c"
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess=$ac_aux_dir/config.guess
551 ac_config_sub=$ac_aux_dir/config.sub
552 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554 # Find a good install program. We prefer a C program (faster),
555 # so one script is as good as another. But avoid the broken or
556 # incompatible versions:
557 # SysV /etc/install, /usr/sbin/install
558 # SunOS /usr/etc/install
561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
564 # ./install, which can be erroneously created by make from ./install.sh.
565 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
566 echo "configure:567: checking for a BSD compatible install" >&5
567 if test -z "$INSTALL"; then
568 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
571 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
572 for ac_dir in $PATH; do
573 # Account for people who put trailing slashes in PATH elements.
575 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
577 # OSF1 and SCO ODT 3.0 have their own names for install.
578 # Don't use installbsd from OSF since it installs stuff as root
580 for ac_prog in ginstall scoinst install; do
581 if test -f $ac_dir/$ac_prog; then
582 if test $ac_prog = install &&
583 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
584 # AIX install. It has an incompatible calling convention.
587 ac_cv_path_install="$ac_dir/$ac_prog -c"
598 if test "${ac_cv_path_install+set}" = set; then
599 INSTALL="$ac_cv_path_install"
601 # As a last resort, use the slow shell script. We don't cache a
602 # path for INSTALL within a source directory, because that will
603 # break other packages using the cache if that directory is
604 # removed, or if the path is relative.
605 INSTALL="$ac_install_sh"
608 echo "$ac_t""$INSTALL" 1>&6
610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
611 # It thinks the first close brace ends the variable substitution.
612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
618 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
619 echo "configure:620: checking whether build environment is sane" >&5
622 echo timestamp > conftestfile
623 # Do `set' in a subshell so we don't clobber the current shell's
624 # arguments. Must try -L first in case configure is actually a
625 # symlink; some systems play weird games with the mod time of symlinks
626 # (eg FreeBSD returns the mod time of the symlink's containing
629 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
630 if test "$*" = "X"; then
632 set X `ls -t $srcdir/configure conftestfile`
634 if test "$*" != "X $srcdir/configure conftestfile" \
635 && test "$*" != "X conftestfile $srcdir/configure"; then
637 # If neither matched, then we have a broken ls. This can happen
638 # if, for instance, CONFIG_SHELL is bash and it inherits a
639 # broken ls alias from the environment. This has actually
640 # happened. Such a system could not be considered "sane".
641 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
642 alias in your environment" 1>&2; exit 1; }
645 test "$2" = conftestfile
651 { echo "configure: error: newly created file is older than distributed files!
652 Check your system clock" 1>&2; exit 1; }
655 echo "$ac_t""yes" 1>&6
656 if test "$program_transform_name" = s,x,x,; then
657 program_transform_name=
659 # Double any \ or $. echo might interpret backslashes.
660 cat <<\EOF_SED > conftestsed
661 s,\\,\\\\,g; s,\$,$$,g
663 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
666 test "$program_prefix" != NONE &&
667 program_transform_name="s,^,${program_prefix},; $program_transform_name"
668 # Use a double $ so make ignores it.
669 test "$program_suffix" != NONE &&
670 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672 # sed with no file args requires a program.
673 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
676 echo "configure:677: checking whether ${MAKE-make} sets \${MAKE}" >&5
677 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
678 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
681 cat > conftestmake <<\EOF
683 @echo 'ac_maketemp="${MAKE}"'
685 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
686 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
687 if test -n "$ac_maketemp"; then
688 eval ac_cv_prog_make_${ac_make}_set=yes
690 eval ac_cv_prog_make_${ac_make}_set=no
694 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
695 echo "$ac_t""yes" 1>&6
698 echo "$ac_t""no" 1>&6
699 SET_MAKE="MAKE=${MAKE-make}"
707 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
708 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
710 cat >> confdefs.h <<EOF
711 #define PACKAGE "$PACKAGE"
714 cat >> confdefs.h <<EOF
715 #define VERSION "$VERSION"
720 missing_dir=`cd $ac_aux_dir && pwd`
721 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
722 echo "configure:723: checking for working aclocal" >&5
723 # Run test in a subshell; some versions of sh will print an error if
724 # an executable is not found, even if stderr is redirected.
725 # Redirect stdin to placate older versions of autoconf. Sigh.
726 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
728 echo "$ac_t""found" 1>&6
730 ACLOCAL="$missing_dir/missing aclocal"
731 echo "$ac_t""missing" 1>&6
734 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
735 echo "configure:736: checking for working autoconf" >&5
736 # Run test in a subshell; some versions of sh will print an error if
737 # an executable is not found, even if stderr is redirected.
738 # Redirect stdin to placate older versions of autoconf. Sigh.
739 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
741 echo "$ac_t""found" 1>&6
743 AUTOCONF="$missing_dir/missing autoconf"
744 echo "$ac_t""missing" 1>&6
747 echo $ac_n "checking for working automake""... $ac_c" 1>&6
748 echo "configure:749: checking for working automake" >&5
749 # Run test in a subshell; some versions of sh will print an error if
750 # an executable is not found, even if stderr is redirected.
751 # Redirect stdin to placate older versions of autoconf. Sigh.
752 if (automake --version) < /dev/null > /dev/null 2>&1; then
754 echo "$ac_t""found" 1>&6
756 AUTOMAKE="$missing_dir/missing automake"
757 echo "$ac_t""missing" 1>&6
760 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
761 echo "configure:762: checking for working autoheader" >&5
762 # Run test in a subshell; some versions of sh will print an error if
763 # an executable is not found, even if stderr is redirected.
764 # Redirect stdin to placate older versions of autoconf. Sigh.
765 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
766 AUTOHEADER=autoheader
767 echo "$ac_t""found" 1>&6
769 AUTOHEADER="$missing_dir/missing autoheader"
770 echo "$ac_t""missing" 1>&6
773 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
774 echo "configure:775: checking for working makeinfo" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
780 echo "$ac_t""found" 1>&6
782 MAKEINFO="$missing_dir/missing makeinfo"
783 echo "$ac_t""missing" 1>&6
791 # Extract the first word of "gcc", so it can be a program name with args.
792 set dummy gcc; ac_word=$2
793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
794 echo "configure:795: checking for $ac_word" >&5
795 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 if test -n "$CC"; then
799 ac_cv_prog_CC="$CC" # Let the user override the test.
801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
803 for ac_dir in $ac_dummy; do
804 test -z "$ac_dir" && ac_dir=.
805 if test -f $ac_dir/$ac_word; then
814 if test -n "$CC"; then
815 echo "$ac_t""$CC" 1>&6
817 echo "$ac_t""no" 1>&6
820 if test -z "$CC"; then
821 # Extract the first word of "cc", so it can be a program name with args.
822 set dummy cc; ac_word=$2
823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
824 echo "configure:825: checking for $ac_word" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test.
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
834 for ac_dir in $ac_dummy; do
835 test -z "$ac_dir" && ac_dir=.
836 if test -f $ac_dir/$ac_word; then
837 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
846 if test $ac_prog_rejected = yes; then
847 # We found a bogon in the path, so make sure we never use it.
848 set dummy $ac_cv_prog_CC
850 if test $# -gt 0; then
851 # We chose a different compiler from the bogus one.
852 # However, it has the same basename, so the bogon will be chosen
853 # first if we set CC to just the basename; use the full file name.
855 set dummy "$ac_dir/$ac_word" "$@"
863 if test -n "$CC"; then
864 echo "$ac_t""$CC" 1>&6
866 echo "$ac_t""no" 1>&6
869 if test -z "$CC"; then
872 # Extract the first word of "cl", so it can be a program name with args.
873 set dummy cl; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 if test -n "$CC"; then
880 ac_cv_prog_CC="$CC" # Let the user override the test.
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
884 for ac_dir in $ac_dummy; do
885 test -z "$ac_dir" && ac_dir=.
886 if test -f $ac_dir/$ac_word; then
895 if test -n "$CC"; then
896 echo "$ac_t""$CC" 1>&6
898 echo "$ac_t""no" 1>&6
903 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
906 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
907 echo "configure:908: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
911 ac_cpp='$CPP $CPPFLAGS'
912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
914 cross_compiling=$ac_cv_prog_cc_cross
916 cat > conftest.$ac_ext << EOF
918 #line 919 "configure"
919 #include "confdefs.h"
923 if { (eval echo configure:924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
924 ac_cv_prog_cc_works=yes
925 # If we can't run a trivial program, we are probably using a cross compiler.
926 if (./conftest; exit) 2>/dev/null; then
927 ac_cv_prog_cc_cross=no
929 ac_cv_prog_cc_cross=yes
932 echo "configure: failed program was:" >&5
933 cat conftest.$ac_ext >&5
934 ac_cv_prog_cc_works=no
938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
939 ac_cpp='$CPP $CPPFLAGS'
940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
942 cross_compiling=$ac_cv_prog_cc_cross
944 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
945 if test $ac_cv_prog_cc_works = no; then
946 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
948 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
949 echo "configure:950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
950 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
951 cross_compiling=$ac_cv_prog_cc_cross
953 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
954 echo "configure:955: checking whether we are using GNU C" >&5
955 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 cat > conftest.c <<EOF
963 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
970 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
972 if test $ac_cv_prog_gcc = yes; then
978 ac_test_CFLAGS="${CFLAGS+set}"
979 ac_save_CFLAGS="$CFLAGS"
981 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
982 echo "configure:983: checking whether ${CC-cc} accepts -g" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 echo 'void f(){}' > conftest.c
987 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
996 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
997 if test "$ac_test_CFLAGS" = set; then
998 CFLAGS="$ac_save_CFLAGS"
999 elif test $ac_cv_prog_cc_g = yes; then
1000 if test "$GCC" = yes; then
1006 if test "$GCC" = yes; then
1013 echo $ac_n "checking for working const""... $ac_c" 1>&6
1014 echo "configure:1015: checking for working const" >&5
1015 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 /* Ultrix mips cc rejects this. */
1025 typedef int charset[2]; const charset x;
1026 /* SunOS 4.1.1 cc rejects this. */
1027 char const *const *ccp;
1029 /* NEC SVR4.0.2 mips cc rejects this. */
1030 struct point {int x, y;};
1031 static struct point const zero = {0,0};
1032 /* AIX XL C 1.02.0.0 rejects this.
1033 It does not let you subtract one const X* pointer from another in an arm
1034 of an if-expression whose if-part is not a constant expression */
1035 const char *g = "string";
1036 ccp = &g + (g ? g-g : 0);
1037 /* HPUX 7.0 cc rejects these. */
1040 ccp = (char const *const *) p;
1041 { /* SCO 3.2v4 cc rejects this. */
1043 char const *s = 0 ? (char *) 0 : (char const *) 0;
1047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1049 const int *foo = &x[0];
1052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1053 typedef const int *iptr;
1057 { /* AIX XL C 1.02.0.0 rejects this saying
1058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1059 struct s { int j; const int *ap[3]; };
1060 struct s *b; b->j = 5;
1062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1068 if { (eval echo configure:1069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1072 echo "configure: failed program was:" >&5
1073 cat conftest.$ac_ext >&5
1080 echo "$ac_t""$ac_cv_c_const" 1>&6
1081 if test $ac_cv_c_const = no; then
1082 cat >> confdefs.h <<\EOF
1088 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1089 echo "configure:1090: checking for Cygwin environment" >&5
1090 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1100 #define __CYGWIN__ __CYGWIN32__
1105 if { (eval echo configure:1106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1118 echo "$ac_t""$ac_cv_cygwin" 1>&6
1120 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1121 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1122 echo "configure:1123: checking for mingw32 environment" >&5
1123 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 cat > conftest.$ac_ext <<EOF
1127 #line 1128 "configure"
1128 #include "confdefs.h"
1134 if { (eval echo configure:1135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1138 echo "configure: failed program was:" >&5
1139 cat conftest.$ac_ext >&5
1147 echo "$ac_t""$ac_cv_mingw32" 1>&6
1149 test "$ac_cv_mingw32" = yes && MINGW32=yes
1152 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1153 echo "configure:1154: checking for executable suffix" >&5
1154 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1161 echo 'int main () { return 0; }' > conftest.$ac_ext
1163 if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1164 for file in conftest.*; do
1166 *.c | *.o | *.obj) ;;
1167 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1171 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1174 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1179 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1180 echo "$ac_t""${ac_cv_exeext}" 1>&6
1183 # Extract the first word of "ranlib", so it can be a program name with args.
1184 set dummy ranlib; ac_word=$2
1185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1186 echo "configure:1187: checking for $ac_word" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 if test -n "$RANLIB"; then
1191 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1195 for ac_dir in $ac_dummy; do
1196 test -z "$ac_dir" && ac_dir=.
1197 if test -f $ac_dir/$ac_word; then
1198 ac_cv_prog_RANLIB="ranlib"
1203 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1206 RANLIB="$ac_cv_prog_RANLIB"
1207 if test -n "$RANLIB"; then
1208 echo "$ac_t""$RANLIB" 1>&6
1210 echo "$ac_t""no" 1>&6
1214 # Check whether --enable-shared or --disable-shared was given.
1215 if test "${enable_shared+set}" = set; then
1216 enableval="$enable_shared"
1217 p=${PACKAGE-default}
1218 case "$enableval" in
1219 yes) enable_shared=yes ;;
1220 no) enable_shared=no ;;
1223 # Look at the argument we got. We use all the common list separators.
1224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1225 for pkg in $enableval; do
1226 if test "X$pkg" = "X$p"; then
1237 # Check whether --enable-static or --disable-static was given.
1238 if test "${enable_static+set}" = set; then
1239 enableval="$enable_static"
1240 p=${PACKAGE-default}
1241 case "$enableval" in
1242 yes) enable_static=yes ;;
1243 no) enable_static=no ;;
1246 # Look at the argument we got. We use all the common list separators.
1247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1248 for pkg in $enableval; do
1249 if test "X$pkg" = "X$p"; then
1260 # Check whether --enable-fast-install or --disable-fast-install was given.
1261 if test "${enable_fast_install+set}" = set; then
1262 enableval="$enable_fast_install"
1263 p=${PACKAGE-default}
1264 case "$enableval" in
1265 yes) enable_fast_install=yes ;;
1266 no) enable_fast_install=no ;;
1268 enable_fast_install=no
1269 # Look at the argument we got. We use all the common list separators.
1270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1271 for pkg in $enableval; do
1272 if test "X$pkg" = "X$p"; then
1273 enable_fast_install=yes
1280 enable_fast_install=yes
1284 # Make sure we can run config.sub.
1285 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1286 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1289 echo $ac_n "checking host system type""... $ac_c" 1>&6
1290 echo "configure:1291: checking host system type" >&5
1293 case "$host_alias" in
1297 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1298 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1300 *) host_alias=$nonopt ;;
1304 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1305 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1306 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1307 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1308 echo "$ac_t""$host" 1>&6
1310 echo $ac_n "checking build system type""... $ac_c" 1>&6
1311 echo "configure:1312: checking build system type" >&5
1314 case "$build_alias" in
1317 NONE) build_alias=$host_alias ;;
1318 *) build_alias=$nonopt ;;
1322 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1323 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1324 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1325 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1326 echo "$ac_t""$build" 1>&6
1328 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1329 if test "${with_gnu_ld+set}" = set; then
1330 withval="$with_gnu_ld"
1331 test "$withval" = no || with_gnu_ld=yes
1337 if test "$ac_cv_prog_gcc" = yes; then
1338 # Check if gcc -print-prog-name=ld gives a path.
1339 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1340 echo "configure:1341: checking for ld used by GCC" >&5
1341 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1343 # Accept absolute paths.
1344 [\\/]* | [A-Za-z]:[\\/]*)
1345 re_direlt='/[^/][^/]*/\.\./'
1346 # Canonicalize the path of ld
1347 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1348 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1349 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1351 test -z "$LD" && LD="$ac_prog"
1354 # If it fails, then pretend we aren't using GCC.
1358 # If it is relative, then search for the first ld in PATH.
1362 elif test "$with_gnu_ld" = yes; then
1363 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1364 echo "configure:1365: checking for GNU ld" >&5
1366 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1367 echo "configure:1368: checking for non-GNU ld" >&5
1369 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 if test -z "$LD"; then
1373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1374 for ac_dir in $PATH; do
1375 test -z "$ac_dir" && ac_dir=.
1376 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1377 ac_cv_path_LD="$ac_dir/$ac_prog"
1378 # Check to see if the program is GNU ld. I'd rather use --version,
1379 # but apparently some GNU ld's only accept -v.
1380 # Break only if it was the GNU/non-GNU ld that we prefer.
1381 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1382 test "$with_gnu_ld" != no && break
1384 test "$with_gnu_ld" != yes && break
1390 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1395 if test -n "$LD"; then
1396 echo "$ac_t""$LD" 1>&6
1398 echo "$ac_t""no" 1>&6
1400 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1401 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1402 echo "configure:1403: checking if the linker ($LD) is GNU ld" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1407 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1408 ac_cv_prog_gnu_ld=yes
1410 ac_cv_prog_gnu_ld=no
1414 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1417 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1418 echo "configure:1419: checking for BSD-compatible nm" >&5
1419 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test -n "$NM"; then
1423 # Let the user override the test.
1426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1427 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1428 test -z "$ac_dir" && ac_dir=.
1429 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1430 # Check to see if the nm accepts a BSD-compat flag.
1431 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1432 # nm: unknown option "B" ignored
1433 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1434 ac_cv_path_NM="$ac_dir/nm -B"
1436 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1437 ac_cv_path_NM="$ac_dir/nm -p"
1440 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1441 continue # so that we can try to find one that supports BSD flags
1446 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1451 echo "$ac_t""$NM" 1>&6
1453 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1454 echo "configure:1455: checking whether ln -s works" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1459 if ln -s X conftestdata 2>/dev/null
1462 ac_cv_prog_LN_S="ln -s"
1467 LN_S="$ac_cv_prog_LN_S"
1468 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1469 echo "$ac_t""yes" 1>&6
1471 echo "$ac_t""no" 1>&6
1476 NONE) lt_target="$host" ;;
1477 *) lt_target="$target" ;;
1480 # Check for any special flags to pass to ltconfig.
1481 libtool_flags="--cache-file=$cache_file"
1482 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1483 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1484 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1485 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1486 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1487 libtool_flags="$libtool_flags --enable-dlopen"
1489 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1490 if test "${enable_libtool_lock+set}" = set; then
1491 enableval="$enable_libtool_lock"
1495 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1496 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1498 # Some flags need to be propagated to the compiler or linker for good
1500 case "$lt_target" in
1502 # Find out which ABI we are using.
1503 echo '#line 1504 "configure"' > conftest.$ac_ext
1504 if { (eval echo configure:1505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1505 case "`/usr/bin/file conftest.o`" in
1521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1522 SAVE_CFLAGS="$CFLAGS"
1523 CFLAGS="$CFLAGS -belf"
1524 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1525 echo "configure:1526: checking whether the C compiler needs -belf" >&5
1526 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1539 lt_cv_cc_needs_belf=yes
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1544 lt_cv_cc_needs_belf=no
1549 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1550 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1551 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1552 CFLAGS="$SAVE_CFLAGS"
1560 # Save cache, so that ltconfig can load it
1561 cat > confcache <<\EOF
1562 # This file is a shell script that caches the results of configure
1563 # tests run on this system so they can be shared between configure
1564 # scripts and configure runs. It is not useful on other systems.
1565 # If it contains results you don't want to keep, you may remove or edit it.
1567 # By default, configure uses ./config.cache as the cache file,
1568 # creating it if it does not exist already. You can give configure
1569 # the --cache-file=FILE option to use a different cache file; that is
1570 # what configure does when it calls configure scripts in
1571 # subdirectories, so they share the cache.
1572 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1573 # config.status only pays attention to the cache file if you give it the
1574 # --recheck option to rerun configure.
1577 # The following way of writing the cache mishandles newlines in values,
1578 # but we know of no workaround that is simple, portable, and efficient.
1579 # So, don't put newlines in cache variables' values.
1580 # Ultrix sh set writes to stderr and can't be redirected directly,
1581 # and sets the high bit in the cache file unless we assign to the vars.
1583 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1585 # `set' does not quote correctly, so add quotes (double-quote substitution
1586 # turns \\\\ into \\, and sed turns \\ into \).
1588 -e "s/'/'\\\\''/g" \
1589 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1592 # `set' quotes correctly as required by POSIX, so do not add quotes.
1593 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1596 if cmp -s $cache_file confcache; then
1599 if test -w $cache_file; then
1600 echo "updating cache $cache_file"
1601 cat confcache > $cache_file
1603 echo "not updating unwritable cache $cache_file"
1609 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1610 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1611 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1612 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1613 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1614 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1615 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1616 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1618 # Reload cache, that may have been modified by ltconfig
1619 if test -r "$cache_file"; then
1620 echo "loading cache $cache_file"
1623 echo "creating cache $cache_file"
1628 # This can be used to rebuild libtool when needed
1629 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1631 # Always use our own libtool.
1632 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1634 # Redirect the config.log output again, so that the ltconfig log is not
1635 # clobbered by the next message.
1636 exec 5>>./config.log
1641 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1642 echo "configure:1643: checking how to run the C preprocessor" >&5
1643 # On Suns, sometimes $CPP names a directory.
1644 if test -n "$CPP" && test -d "$CPP"; then
1647 if test -z "$CPP"; then
1648 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 # This must be in double quotes, not single quotes, because CPP may get
1652 # substituted into the Makefile and "${CC-cc}" will confuse make.
1654 # On the NeXT, cc -E runs the code through the compiler's parser,
1655 # not just through cpp.
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1663 { (eval echo configure:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1665 if test -z "$ac_err"; then
1669 echo "configure: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1672 CPP="${CC-cc} -E -traditional-cpp"
1673 cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1680 { (eval echo configure:1681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1682 if test -z "$ac_err"; then
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1689 CPP="${CC-cc} -nologo -E"
1690 cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699 if test -z "$ac_err"; then
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1713 ac_cv_prog_CPP="$CPP"
1715 CPP="$ac_cv_prog_CPP"
1717 ac_cv_prog_CPP="$CPP"
1719 echo "$ac_t""$CPP" 1>&6
1721 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1722 echo "configure:1723: checking for ANSI C header files" >&5
1723 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1735 { (eval echo configure:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1737 if test -z "$ac_err"; then
1739 ac_cv_header_stdc=yes
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 ac_cv_header_stdc=no
1749 if test $ac_cv_header_stdc = yes; then
1750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1757 egrep "memchr" >/dev/null 2>&1; then
1761 ac_cv_header_stdc=no
1767 if test $ac_cv_header_stdc = yes; then
1768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1775 egrep "free" >/dev/null 2>&1; then
1779 ac_cv_header_stdc=no
1785 if test $ac_cv_header_stdc = yes; then
1786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1787 if test "$cross_compiling" = yes; then
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1794 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1795 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1797 int main () { int i; for (i = 0; i < 256; i++)
1798 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1802 if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1806 echo "configure: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1809 ac_cv_header_stdc=no
1817 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1818 if test $ac_cv_header_stdc = yes; then
1819 cat >> confdefs.h <<\EOF
1820 #define STDC_HEADERS 1
1825 for ac_hdr in GL/gl.h GL/glu.h GL/glx.h
1827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $ac_hdr" >&5
1830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 cat > conftest.$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1839 { (eval echo configure:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1841 if test -z "$ac_err"; then
1843 eval "ac_cv_header_$ac_safe=yes"
1846 echo "configure: failed program was:" >&5
1847 cat conftest.$ac_ext >&5
1849 eval "ac_cv_header_$ac_safe=no"
1853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1854 echo "$ac_t""yes" 1>&6
1855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1856 cat >> confdefs.h <<EOF
1857 #define $ac_tr_hdr 1
1861 echo "$ac_t""no" 1>&6
1869 case "$lt_target" in
1870 *-*-beos* | *-*-cygwin*)
1871 # These system don't have libm
1874 echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6
1875 echo "configure:1876: checking for _mwvalidcheckl in -lmw" >&5
1876 ac_lib_var=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'`
1877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 ac_save_LIBS="$LIBS"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1888 char _mwvalidcheckl();
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1896 eval "ac_cv_lib_$ac_lib_var=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_lib_$ac_lib_var=no"
1904 LIBS="$ac_save_LIBS"
1907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1911 echo "$ac_t""no" 1>&6
1914 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1915 echo "configure:1916: checking for main in -lm" >&5
1916 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 ac_save_LIBS="$LIBS"
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1932 eval "ac_cv_lib_$ac_lib_var=yes"
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 eval "ac_cv_lib_$ac_lib_var=no"
1940 LIBS="$ac_save_LIBS"
1943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1944 echo "$ac_t""yes" 1>&6
1947 echo "$ac_t""no" 1>&6
1952 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1953 echo "configure:1954: checking for main in -lm" >&5
1954 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 ac_save_LIBS="$LIBS"
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_lib_$ac_lib_var=no"
1978 LIBS="$ac_save_LIBS"
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1985 echo "$ac_t""no" 1>&6
1994 cat > confcache <<\EOF
1995 # This file is a shell script that caches the results of configure
1996 # tests run on this system so they can be shared between configure
1997 # scripts and configure runs. It is not useful on other systems.
1998 # If it contains results you don't want to keep, you may remove or edit it.
2000 # By default, configure uses ./config.cache as the cache file,
2001 # creating it if it does not exist already. You can give configure
2002 # the --cache-file=FILE option to use a different cache file; that is
2003 # what configure does when it calls configure scripts in
2004 # subdirectories, so they share the cache.
2005 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2006 # config.status only pays attention to the cache file if you give it the
2007 # --recheck option to rerun configure.
2010 # The following way of writing the cache mishandles newlines in values,
2011 # but we know of no workaround that is simple, portable, and efficient.
2012 # So, don't put newlines in cache variables' values.
2013 # Ultrix sh set writes to stderr and can't be redirected directly,
2014 # and sets the high bit in the cache file unless we assign to the vars.
2016 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2018 # `set' does not quote correctly, so add quotes (double-quote substitution
2019 # turns \\\\ into \\, and sed turns \\ into \).
2021 -e "s/'/'\\\\''/g" \
2022 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2025 # `set' quotes correctly as required by POSIX, so do not add quotes.
2026 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2029 if cmp -s $cache_file confcache; then
2032 if test -w $cache_file; then
2033 echo "updating cache $cache_file"
2034 cat confcache > $cache_file
2036 echo "not updating unwritable cache $cache_file"
2041 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2044 # Let make expand exec_prefix.
2045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2047 # Any assignment to VPATH causes Sun make to only execute
2048 # the first set of double-colon rules, so remove it if not needed.
2049 # If there is a colon in the path, we need to keep it.
2050 if test "x$srcdir" = x.; then
2051 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2054 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2056 DEFS=-DHAVE_CONFIG_H
2058 # Without the "./", some shells look in PATH for config.status.
2059 : ${CONFIG_STATUS=./config.status}
2061 echo creating $CONFIG_STATUS
2062 rm -f $CONFIG_STATUS
2063 cat > $CONFIG_STATUS <<EOF
2065 # Generated automatically by configure.
2066 # Run this file to recreate the current configuration.
2067 # This directory was configured as follows,
2068 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2070 # $0 $ac_configure_args
2072 # Compiler output produced by configure, useful for debugging
2073 # configure, is in ./config.log if it exists.
2075 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2078 case "\$ac_option" in
2079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2080 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2081 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2082 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2083 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2085 -help | --help | --hel | --he | --h)
2086 echo "\$ac_cs_usage"; exit 0 ;;
2087 *) echo "\$ac_cs_usage"; exit 1 ;;
2091 ac_given_srcdir=$srcdir
2092 ac_given_INSTALL="$INSTALL"
2094 trap 'rm -fr `echo "Makefile freeglut-1.3/Makefile include/Makefile include/GL/Makefile genfonts/Makefile tests/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2096 cat >> $CONFIG_STATUS <<EOF
2098 # Protect against being on the right side of a sed subst in config.status.
2099 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2100 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2104 s%@CFLAGS@%$CFLAGS%g
2105 s%@CPPFLAGS@%$CPPFLAGS%g
2106 s%@CXXFLAGS@%$CXXFLAGS%g
2107 s%@FFLAGS@%$FFLAGS%g
2109 s%@LDFLAGS@%$LDFLAGS%g
2111 s%@exec_prefix@%$exec_prefix%g
2112 s%@prefix@%$prefix%g
2113 s%@program_transform_name@%$program_transform_name%g
2114 s%@bindir@%$bindir%g
2115 s%@sbindir@%$sbindir%g
2116 s%@libexecdir@%$libexecdir%g
2117 s%@datadir@%$datadir%g
2118 s%@sysconfdir@%$sysconfdir%g
2119 s%@sharedstatedir@%$sharedstatedir%g
2120 s%@localstatedir@%$localstatedir%g
2121 s%@libdir@%$libdir%g
2122 s%@includedir@%$includedir%g
2123 s%@oldincludedir@%$oldincludedir%g
2124 s%@infodir@%$infodir%g
2125 s%@mandir@%$mandir%g
2126 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2127 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2128 s%@INSTALL_DATA@%$INSTALL_DATA%g
2129 s%@PACKAGE@%$PACKAGE%g
2130 s%@VERSION@%$VERSION%g
2131 s%@ACLOCAL@%$ACLOCAL%g
2132 s%@AUTOCONF@%$AUTOCONF%g
2133 s%@AUTOMAKE@%$AUTOMAKE%g
2134 s%@AUTOHEADER@%$AUTOHEADER%g
2135 s%@MAKEINFO@%$MAKEINFO%g
2136 s%@SET_MAKE@%$SET_MAKE%g
2138 s%@EXEEXT@%$EXEEXT%g
2139 s%@RANLIB@%$RANLIB%g
2141 s%@host_alias@%$host_alias%g
2142 s%@host_cpu@%$host_cpu%g
2143 s%@host_vendor@%$host_vendor%g
2144 s%@host_os@%$host_os%g
2146 s%@build_alias@%$build_alias%g
2147 s%@build_cpu@%$build_cpu%g
2148 s%@build_vendor@%$build_vendor%g
2149 s%@build_os@%$build_os%g
2151 s%@LIBTOOL@%$LIBTOOL%g
2152 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
2159 cat >> $CONFIG_STATUS <<\EOF
2161 # Split the substitutions into bite-sized pieces for seds with
2162 # small command number limits, like on Digital OSF/1 and HP-UX.
2163 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2164 ac_file=1 # Number of current file.
2165 ac_beg=1 # First line for current file.
2166 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2169 while $ac_more_lines; do
2170 if test $ac_beg -gt 1; then
2171 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2173 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2175 if test ! -s conftest.s$ac_file; then
2177 rm -f conftest.s$ac_file
2179 if test -z "$ac_sed_cmds"; then
2180 ac_sed_cmds="sed -f conftest.s$ac_file"
2182 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2184 ac_file=`expr $ac_file + 1`
2186 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2189 if test -z "$ac_sed_cmds"; then
2194 cat >> $CONFIG_STATUS <<EOF
2196 CONFIG_FILES=\${CONFIG_FILES-"Makefile freeglut-1.3/Makefile include/Makefile include/GL/Makefile genfonts/Makefile tests/Makefile "}
2198 cat >> $CONFIG_STATUS <<\EOF
2199 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2200 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2202 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2203 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2204 *) ac_file_in="${ac_file}.in" ;;
2207 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2209 # Remove last slash and all that follows it. Not all systems have dirname.
2210 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2211 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2212 # The file is in a subdirectory.
2213 test ! -d "$ac_dir" && mkdir "$ac_dir"
2214 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2215 # A "../" for each directory in $ac_dir_suffix.
2216 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2218 ac_dir_suffix= ac_dots=
2221 case "$ac_given_srcdir" in
2223 if test -z "$ac_dots"; then top_srcdir=.
2224 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2225 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2227 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2228 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2231 case "$ac_given_INSTALL" in
2232 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2233 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2236 echo creating "$ac_file"
2238 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2240 *Makefile*) ac_comsub="1i\\
2241 # $configure_input" ;;
2245 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2247 s%@configure_input@%$configure_input%g
2248 s%@srcdir@%$srcdir%g
2249 s%@top_srcdir@%$top_srcdir%g
2250 s%@INSTALL@%$INSTALL%g
2251 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2255 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2256 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2258 # ac_d sets the value in "#define NAME VALUE" lines.
2259 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2260 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2263 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2264 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2265 ac_uB='\([ ]\)%\1#\2define\3'
2268 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2269 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2270 ac_eB='$%\1#\2define\3'
2274 if test "${CONFIG_HEADERS+set}" != set; then
2276 cat >> $CONFIG_STATUS <<EOF
2277 CONFIG_HEADERS="config.h"
2279 cat >> $CONFIG_STATUS <<\EOF
2281 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2282 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2284 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2285 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2286 *) ac_file_in="${ac_file}.in" ;;
2289 echo creating $ac_file
2291 rm -f conftest.frag conftest.in conftest.out
2292 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2293 cat $ac_file_inputs > conftest.in
2297 # Transform confdefs.h into a sed script conftest.vals that substitutes
2298 # the proper values into config.h.in to produce config.h. And first:
2299 # Protect against being on the right side of a sed subst in config.status.
2300 # Protect against being in an unquoted here document in config.status.
2302 cat > conftest.hdr <<\EOF
2305 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2309 sed -n -f conftest.hdr confdefs.h > conftest.vals
2312 # This sed command replaces #undef with comments. This is necessary, for
2313 # example, in the case of _POSIX_SOURCE, which is predefined and required
2314 # on some systems where configure will not decide to define it.
2315 cat >> conftest.vals <<\EOF
2316 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2319 # Break up conftest.vals because some shells have a limit on
2320 # the size of here documents, and old seds have small limits too.
2325 ac_lines=`grep -c . conftest.vals`
2326 # grep -c gives empty output for an empty file on some AIX systems.
2327 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2328 # Write a limited-size here document to conftest.frag.
2329 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2330 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2332 sed -f conftest.frag conftest.in > conftest.out
2334 mv conftest.out conftest.in
2336 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2338 mv conftest.tail conftest.vals
2342 cat >> $CONFIG_STATUS <<\EOF
2343 rm -f conftest.frag conftest.h
2344 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2345 cat conftest.in >> conftest.h
2347 if cmp -s $ac_file conftest.h 2>/dev/null; then
2348 echo "$ac_file is unchanged"
2351 # Remove last slash and all that follows it. Not all systems have dirname.
2352 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2353 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2354 # The file is in a subdirectory.
2355 test ! -d "$ac_dir" && mkdir "$ac_dir"
2358 mv conftest.h $ac_file
2363 cat >> $CONFIG_STATUS <<EOF
2367 cat >> $CONFIG_STATUS <<\EOF
2368 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2372 chmod +x $CONFIG_STATUS
2373 rm -fr confdefs* $ac_clean_files
2374 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1