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 build shared libraries [default=no]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --with-gmp use external fast low-level functions from GNU gmp3.
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host | --host | --hos | --ho)
204 -host=* | --host=* | --hos=* | --ho=*)
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
325 -site=* | --site=* | --sit=*)
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=src/integer/gcd/cl_I_gcd.cc
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n=-n ac_c= ac_t= ac_tt='
534 ac_n= ac_c='\c' ac_t= ac_tt='
540 echo $ac_n "checking whether ${MAKE-make} sets \$(MAKE)""... $ac_c" 1>&6
541 echo "configure:542: checking whether ${MAKE-make} sets \$(MAKE)" >&5
542 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
543 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
544 echo $ac_n "(cached) $ac_c" 1>&6
546 cat > conftestmake <<\EOF
548 @echo 'ac_maketemp="${MAKE}"'
550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
551 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
552 if test -n "$ac_maketemp"; then
553 eval ac_cv_prog_make_${ac_make}_set=yes
555 eval ac_cv_prog_make_${ac_make}_set=no
559 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
560 echo "$ac_t""yes" 1>&6
563 echo "$ac_t""no" 1>&6
564 SET_MAKE="MAKE=${MAKE-make}"
567 extrasub="$extrasub"'
577 s/@subdir@/benchmarks/
588 # Extract the first word of "gcc", so it can be a program name with args.
589 set dummy gcc; ac_word=$2
590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
591 echo "configure:592: checking for $ac_word" >&5
592 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
595 if test -n "$CC"; then
596 ac_cv_prog_CC="$CC" # Let the user override the test.
598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
600 for ac_dir in $ac_dummy; do
601 test -z "$ac_dir" && ac_dir=.
602 if test -f $ac_dir/$ac_word; then
611 if test -n "$CC"; then
612 echo "$ac_t""$CC" 1>&6
614 echo "$ac_t""no" 1>&6
617 if test -z "$CC"; then
618 # Extract the first word of "cc", so it can be a program name with args.
619 set dummy cc; ac_word=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 if test -n "$CC"; then
626 ac_cv_prog_CC="$CC" # Let the user override the test.
628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
631 for ac_dir in $ac_dummy; do
632 test -z "$ac_dir" && ac_dir=.
633 if test -f $ac_dir/$ac_word; then
634 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
643 if test $ac_prog_rejected = yes; then
644 # We found a bogon in the path, so make sure we never use it.
645 set dummy $ac_cv_prog_CC
647 if test $# -gt 0; then
648 # We chose a different compiler from the bogus one.
649 # However, it has the same basename, so the bogon will be chosen
650 # first if we set CC to just the basename; use the full file name.
652 set dummy "$ac_dir/$ac_word" "$@"
660 if test -n "$CC"; then
661 echo "$ac_t""$CC" 1>&6
663 echo "$ac_t""no" 1>&6
666 if test -z "$CC"; then
669 # Extract the first word of "cl", so it can be a program name with args.
670 set dummy cl; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 if test -n "$CC"; then
677 ac_cv_prog_CC="$CC" # Let the user override the test.
679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 for ac_dir in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir=.
683 if test -f $ac_dir/$ac_word; then
692 if test -n "$CC"; then
693 echo "$ac_t""$CC" 1>&6
695 echo "$ac_t""no" 1>&6
700 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
703 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
704 echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
708 ac_cpp='$CPP $CPPFLAGS'
709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
711 cross_compiling=$ac_cv_prog_cc_cross
713 cat > conftest.$ac_ext << EOF
715 #line 716 "configure"
716 #include "confdefs.h"
718 int main(){return(0);}
720 if { (eval echo configure:721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
721 ac_cv_prog_cc_works=yes
722 # If we can't run a trivial program, we are probably using a cross compiler.
723 if (./conftest; exit) 2>/dev/null; then
724 ac_cv_prog_cc_cross=no
726 ac_cv_prog_cc_cross=yes
729 echo "configure: failed program was:" >&5
730 cat conftest.$ac_ext >&5
731 ac_cv_prog_cc_works=no
735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
736 ac_cpp='$CPP $CPPFLAGS'
737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
739 cross_compiling=$ac_cv_prog_cc_cross
741 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
742 if test $ac_cv_prog_cc_works = no; then
743 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
745 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
746 echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
747 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
748 cross_compiling=$ac_cv_prog_cc_cross
750 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
751 echo "configure:752: checking whether we are using GNU C" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 cat > conftest.c <<EOF
760 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
766 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
768 if test $ac_cv_prog_gcc = yes; then
774 ac_test_CFLAGS="${CFLAGS+set}"
775 ac_save_CFLAGS="$CFLAGS"
777 if test "$ac_test_CFLAGS" = set; then
778 CFLAGS="$ac_save_CFLAGS"
780 if test "$GCC" = yes; then
781 # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
782 # that results from __OPTIMIZE__ being defined for CC but not CPP.
783 if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
784 : # already optimizing
794 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
795 echo "configure:796: checking how to run the C preprocessor" >&5
796 # On Suns, sometimes $CPP names a directory.
797 if test -n "$CPP" && test -d "$CPP"; then
800 if test -z "$CPP"; then
801 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 # This must be in double quotes, not single quotes, because CPP may get
805 # substituted into the Makefile and "${CC-cc}" will confuse make.
807 if test -n "$GCC"; then
808 # Suppress warning messages.
811 # On the NeXT, cc -E runs the code through the compiler's parser,
812 # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use
813 # "cc -E -traditional-cpp" instead.
814 cat > conftest.$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
821 { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
823 if test -z "$ac_err"; then
828 echo "configure: failed program was:" >&5
829 cat conftest.$ac_ext >&5
832 if test -z "$ac_have_cpp"; then
833 CPP="${CC-cc} -E -traditional-cpp"
834 cat > conftest.$ac_ext <<EOF
835 #line 836 "configure"
836 #include "confdefs.h"
840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
841 { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
843 if test -z "$ac_err"; then
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
852 if test -n "$ac_have_cpp"; then
853 CC="${CC-cc} -traditional-cpp"
855 CPP="${CC-cc} -nologo -E"
856 cat > conftest.$ac_ext <<EOF
857 #line 858 "configure"
858 #include "confdefs.h"
862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
863 { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
865 if test -z "$ac_err"; then
870 echo "configure: failed program was:" >&5
871 cat conftest.$ac_ext >&5
874 if test -n "$ac_have_cpp"; then
875 CC="${CC-cc} -nologo"
882 ac_cv_prog_CPP="$CPP"
884 CPP="$ac_cv_prog_CPP"
886 ac_cv_prog_CPP="$CPP"
888 echo "$ac_t""$CPP" 1>&6
890 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
892 # Extract the first word of "$ac_prog", so it can be a program name with args.
893 set dummy $ac_prog; ac_word=$2
894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
895 echo "configure:896: checking for $ac_word" >&5
896 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
899 if test -n "$CXX"; then
900 ac_cv_prog_CXX="$CXX" # Let the user override the test.
902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
904 for ac_dir in $ac_dummy; do
905 test -z "$ac_dir" && ac_dir=.
906 if test -f $ac_dir/$ac_word; then
907 ac_cv_prog_CXX="$ac_prog"
914 CXX="$ac_cv_prog_CXX"
915 if test -n "$CXX"; then
916 echo "$ac_t""$CXX" 1>&6
918 echo "$ac_t""no" 1>&6
921 test -n "$CXX" && break
923 test -n "$CXX" || CXX="gcc"
926 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
927 echo "configure:928: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
930 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
931 ac_cpp='$CXXCPP $CPPFLAGS'
932 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
933 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
934 cross_compiling=$ac_cv_prog_cxx_cross
936 cat > conftest.$ac_ext << EOF
938 #line 939 "configure"
939 #include "confdefs.h"
941 int main(){return(0);}
943 if { (eval echo configure:944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
944 ac_cv_prog_cxx_works=yes
945 # If we can't run a trivial program, we are probably using a cross compiler.
946 if (./conftest; exit) 2>/dev/null; then
947 ac_cv_prog_cxx_cross=no
949 ac_cv_prog_cxx_cross=yes
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
954 ac_cv_prog_cxx_works=no
958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
959 ac_cpp='$CPP $CPPFLAGS'
960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
962 cross_compiling=$ac_cv_prog_cc_cross
964 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
965 if test $ac_cv_prog_cxx_works = no; then
966 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
968 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
969 echo "configure:970: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
970 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
971 cross_compiling=$ac_cv_prog_cxx_cross
973 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
974 echo "configure:975: checking whether we are using GNU C++" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 cat > conftest.C <<EOF
983 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
989 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
991 if test $ac_cv_prog_gxx = yes; then
997 ac_test_CXXFLAGS="${CXXFLAGS+set}"
998 ac_save_CXXFLAGS="$CXXFLAGS"
1000 if test "$ac_test_CXXFLAGS" = set; then
1001 CXXFLAGS="$ac_save_CXXFLAGS"
1003 if test "$GXX" = yes; then
1004 # Add "-O" to both the CXX and CXXCPP commands, to eliminate possible confu-
1005 # sion that results from __OPTIMIZE__ being defined for CXX but not CXXCPP.
1006 if echo "$CXX " | grep ' -O[1-9 ]' > /dev/null; then
1007 : # already optimizing
1010 ac_cv_prog_CXX="$CXX"
1017 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1018 echo "configure:1019: checking how to run the C++ preprocessor" >&5
1019 if test -z "$CXXCPP"; then
1020 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1024 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1025 ac_cpp='$CXXCPP $CPPFLAGS'
1026 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1027 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1028 cross_compiling=$ac_cv_prog_cxx_cross
1029 CXXCPP="${CXX-g++} -E"
1030 cat > conftest.$ac_ext <<EOF
1031 #line 1032 "configure"
1032 #include "confdefs.h"
1035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1036 { (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1038 if test -z "$ac_err"; then
1042 echo "configure: failed program was:" >&5
1043 cat conftest.$ac_ext >&5
1048 ac_cv_prog_CXXCPP="$CXXCPP"
1050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1051 ac_cpp='$CPP $CPPFLAGS'
1052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1054 cross_compiling=$ac_cv_prog_cc_cross
1057 CXXCPP="$ac_cv_prog_CXXCPP"
1058 echo "$ac_t""$CXXCPP" 1>&6
1061 echo $ac_n "checking for underscore in external names""... $ac_c" 1>&6
1062 echo "configure:1063: checking for underscore in external names" >&5
1063 if eval "test \"`echo '$''{'cl_cv_prog_as_underscore'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1067 cat > conftest.c <<EOF
1068 int foo() { return 0; }
1070 # look for the assembly language name in the .s file
1071 { ac_try='${CC-cc} -S conftest.c'; { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
1072 if grep _foo conftest.s >/dev/null ; then
1073 cl_cv_prog_as_underscore=yes
1075 cl_cv_prog_as_underscore=no
1080 echo "$ac_t""$cl_cv_prog_as_underscore" 1>&6
1081 if test $cl_cv_prog_as_underscore = yes; then
1083 cat >> confdefs.h <<\EOF
1084 #define ASM_UNDERSCORE 1
1091 # Extract the first word of "ranlib", so it can be a program name with args.
1092 set dummy ranlib; ac_word=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 if test -n "$RANLIB"; then
1099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_RANLIB="ranlib"
1111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
1114 RANLIB="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116 echo "$ac_t""$RANLIB" 1>&6
1118 echo "$ac_t""no" 1>&6
1121 # Find a good install program. We prefer a C program (faster),
1122 # so one script is as good as another. But avoid the broken or
1123 # incompatible versions:
1124 # SysV /etc/install, /usr/sbin/install
1125 # SunOS /usr/etc/install
1126 # IRIX /sbin/install
1128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1130 # ./install, which can be erroneously created by make from ./install.sh.
1131 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1132 echo "configure:1133: checking for a BSD compatible install" >&5
1133 if test -z "$INSTALL"; then
1134 if eval "test \"`echo '$''{'cl_cv_path_install'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1138 for ac_dir in $PATH; do
1139 # Account for people who put trailing slashes in PATH elements.
1141 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1143 # OSF1 and SCO ODT 3.0 have their own names for install.
1144 for ac_prog in ginstall installbsd scoinst install; do
1145 if test -f $ac_dir/$ac_prog; then
1146 if test $ac_prog = install &&
1147 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1148 # AIX install. It has an incompatible calling convention.
1149 # OSF/1 installbsd also uses dspmsg, but is usable.
1152 if test $ac_prog = installbsd &&
1153 grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
1154 # AIX installbsd doesn't work without option "-g".
1157 cl_cv_path_install="$ac_dir/$ac_prog -c"
1167 # As a last resort, use cp.
1168 test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
1171 INSTALL="$cl_cv_path_install"
1173 echo "$ac_t""$INSTALL" 1>&6
1174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1175 # It thinks the first close brace ends the variable substitution.
1176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
1177 if test -z "$INSTALL_DATA"; then
1179 cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
1180 * ) INSTALL_DATA='$(INSTALL) -m 644' ;;
1184 ac_aux_dir=${srcdir}/autoconf
1185 echo $ac_n "checking host system type""... $ac_c" 1>&6
1186 echo "configure:1187: checking host system type" >&5
1187 if eval "test \"`echo '$''{'cl_cv_host'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1191 ac_config_guess=$ac_aux_dir/config.guess
1192 ac_config_sub=$ac_aux_dir/config.sub
1193 # Make sure we can run config.sub.
1194 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1195 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1198 case "$host_alias" in
1201 NONE) host_alias=`export CC; $ac_config_guess` ;;
1202 *) host_alias=$nonopt ;;
1205 # Don't fail just because the system is not listed in GNU's database.
1206 if test -n "$host_alias"; then
1207 host=`$ac_config_sub $host_alias`
1209 host=unknown-unknown-unknown
1214 echo "$ac_t""$cl_cv_host" 1>&6
1216 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1217 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1218 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1225 alphaev[4-7] | alphaev56 | alphapca5[67] )
1228 hppa1.0 | hppa1.1 | hppa2.0 )
1234 c1 | c2 | c32 | c34 | c38 | c4 )
1238 echo $ac_n "checking for 64-bit MIPS""... $ac_c" 1>&6
1239 echo "configure:1240: checking for 64-bit MIPS" >&5
1240 if eval "test \"`echo '$''{'cl_cv_host_mips64'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #if defined(_MIPS_SZLONG)
1248 #if (_MIPS_SZLONG == 64)
1249 /* We should also check for (_MIPS_SZPTR == 64), but gcc keeps this at 32. */
1255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1256 egrep "yes" >/dev/null 2>&1; then
1258 cl_cv_host_mips64=yes
1261 cl_cv_host_mips64=no
1267 echo "$ac_t""$cl_cv_host_mips64" 1>&6
1268 if test $cl_cv_host_mips64 = yes; then
1273 echo $ac_n "checking for 64-bit SPARC""... $ac_c" 1>&6
1274 echo "configure:1275: checking for 64-bit SPARC" >&5
1275 if eval "test \"`echo '$''{'cl_cv_host_sparc64'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 #if defined(__sparcv9) || defined(__arch64__)
1287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1288 egrep "yes" >/dev/null 2>&1; then
1290 cl_cv_host_sparc64=yes
1293 cl_cv_host_sparc64=no
1299 echo "$ac_t""$cl_cv_host_sparc64" 1>&6
1300 if test $cl_cv_host_sparc64 = yes; then
1307 cat >> confdefs.h <<EOF
1308 #ifndef __${host_cpu}__
1309 #define __${host_cpu}__ 1
1314 # Check whether --enable-shared or --disable-shared was given.
1315 if test "${enable_shared+set}" = set; then
1316 enableval="$enable_shared"
1317 p=${PACKAGE-default}
1318 case "$enableval" in
1319 yes) enable_shared=yes ;;
1320 no) enable_shared=no ;;
1323 # Look at the argument we got. We use all the common list separators.
1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1325 for pkg in $enableval; do
1326 if test "X$pkg" = "X$p"; then
1337 # Check whether --enable-static or --disable-static was given.
1338 if test "${enable_static+set}" = set; then
1339 enableval="$enable_static"
1340 p=${PACKAGE-default}
1341 case "$enableval" in
1342 yes) enable_static=yes ;;
1343 no) enable_static=no ;;
1346 # Look at the argument we got. We use all the common list separators.
1347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1348 for pkg in $enableval; do
1349 if test "X$pkg" = "X$p"; then
1360 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1361 if test "${with_gnu_ld+set}" = set; then
1362 withval="$with_gnu_ld"
1363 test "$withval" = no || with_gnu_ld=yes
1370 if test "$ac_cv_prog_gcc" = yes; then
1371 # Check if gcc -print-prog-name=ld gives a path.
1372 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1373 echo "configure:1374: checking for ld used by GCC" >&5
1374 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1376 # Accept absolute paths.
1378 test -z "$LD" && LD="$ac_prog"
1381 # If it fails, then pretend we aren't using GCC.
1385 # If it is relative, then search for the first ld in PATH.
1389 elif test "$with_gnu_ld" = yes; then
1390 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1391 echo "configure:1392: checking for GNU ld" >&5
1393 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1394 echo "configure:1395: checking for non-GNU ld" >&5
1396 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -z "$LD"; then
1400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1401 for ac_dir in $PATH; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f "$ac_dir/$ac_prog"; then
1404 ac_cv_path_LD="$ac_dir/$ac_prog"
1405 # Check to see if the program is GNU ld. I'd rather use --version,
1406 # but apparently some GNU ld's only accept -v.
1407 # Break only if it was the GNU/non-GNU ld that we prefer.
1408 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1409 test "$with_gnu_ld" != no && break
1411 test "$with_gnu_ld" != yes && break
1417 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1422 if test -n "$LD"; then
1423 echo "$ac_t""$LD" 1>&6
1425 echo "$ac_t""no" 1>&6
1427 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1429 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1430 echo "configure:1431: checking if the linker ($LD) is GNU ld" >&5
1431 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1435 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1436 ac_cv_prog_gnu_ld=yes
1438 ac_cv_prog_gnu_ld=no
1441 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1444 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1445 echo "configure:1446: checking for BSD-compatible nm" >&5
1446 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1451 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1455 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1456 test -z "$ac_dir" && ac_dir=.
1457 if test -f $ac_dir/nm; then
1458 # Check to see if the nm accepts a BSD-compat flag.
1459 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1460 # nm: unknown option "B" ignored
1461 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1462 ac_cv_path_NM="$ac_dir/nm -B"
1463 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1464 ac_cv_path_NM="$ac_dir/nm -p"
1466 ac_cv_path_NM="$ac_dir/nm"
1472 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1478 echo "$ac_t""$NM" 1>&6
1481 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether ln -s works" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1487 if ln -s X conftestdata 2>/dev/null
1490 ac_cv_prog_LN_S="ln -s"
1495 LN_S="$ac_cv_prog_LN_S"
1496 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1497 echo "$ac_t""yes" 1>&6
1499 echo "$ac_t""no" 1>&6
1502 # Always use our own libtool.
1503 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1505 # Check for any special flags to pass to ltconfig.
1507 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1508 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1509 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1510 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1511 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1513 # Some flags need to be propagated to the compiler or linker for good
1517 # Find out which ABI we are using.
1518 echo '#line 1519 "configure"' > conftest.$ac_ext
1519 if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1520 case "`/usr/bin/file conftest.o`" in
1536 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1537 CFLAGS="$CFLAGS -belf"
1541 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1542 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1543 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1544 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1545 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1546 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1556 ac_cpp='$CXXCPP $CPPFLAGS'
1557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1559 cross_compiling=$ac_cv_prog_cxx_cross
1563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1564 ac_cpp='$CXXCPP $CPPFLAGS'
1565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1567 cross_compiling=$ac_cv_prog_cxx_cross
1569 echo $ac_n "checking for bool type""... $ac_c" 1>&6
1570 echo "configure:1571: checking for bool type" >&5
1571 if eval "test \"`echo '$''{'cl_cv_cplusplus_bool'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1575 cat > conftest.$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1583 if { (eval echo configure:1584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1585 cl_cv_cplusplus_bool=yes
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1590 cl_cv_cplusplus_bool=no
1596 echo "$ac_t""$cl_cv_cplusplus_bool" 1>&6
1597 if test $cl_cv_cplusplus_bool = yes; then
1598 cat >> confdefs.h <<\EOF
1603 cat >> confdefs.h <<\EOF
1609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1610 ac_cpp='$CXXCPP $CPPFLAGS'
1611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1613 cross_compiling=$ac_cv_prog_cxx_cross
1616 echo $ac_n "checking for long long type""... $ac_c" 1>&6
1617 echo "configure:1618: checking for long long type" >&5
1618 if eval "test \"`echo '$''{'cl_cv_c_longlong'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1622 if test "$cross_compiling" = yes; then
1623 cl_cv_c_longlong="guessing no"
1625 cat > conftest.$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1629 extern "C" void exit(int);
1633 /* long longs don't work right with gcc-2.7.2 on m68k */
1634 /* long longs don't work right with gcc-2.7.2 on rs6000: avcall/tests.c gets
1637 #if defined(__m68k__) || (defined(_IBMR2) || defined(__powerpc))
1639 #if (__GNUC_MINOR__ <= 7)
1645 { long x = 944938507; long y = 737962842; long z = 162359677;
1646 exit(!(((long long) x)*((long long) y)>>32 == z));
1650 if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1652 cl_cv_c_longlong=yes
1654 echo "configure: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1659 if test -f core; then
1660 coredir=core`/bin/sh -c 'echo $$'`
1662 cp confdefs.h $coredir/confdefs.h
1663 mv conftest.c $coredir/conftest.c
1664 mv conftest $coredir/conftest
1665 mv core $coredir/core
1666 echo "warning: test program dumped core -- see subdirectory $coredir"
1673 echo "$ac_t""$cl_cv_c_longlong" 1>&6
1674 case "$cl_cv_c_longlong" in
1675 *yes) cat >> confdefs.h <<\EOF
1676 #define HAVE_LONGLONG 1
1682 echo $ac_n "checking for long double type""... $ac_c" 1>&6
1683 echo "configure:1684: checking for long double type" >&5
1684 if eval "test \"`echo '$''{'cl_cv_c_longdouble'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1688 if test "$cross_compiling" = yes; then
1689 cl_cv_c_longdouble="guessing no"
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1695 extern "C" void exit(int);
1698 { long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1702 cl_cv_c_longdouble=yes
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 cl_cv_c_longdouble=no
1709 if test -f core; then
1710 coredir=core`/bin/sh -c 'echo $$'`
1712 cp confdefs.h $coredir/confdefs.h
1713 mv conftest.c $coredir/conftest.c
1714 mv conftest $coredir/conftest
1715 mv core $coredir/core
1716 echo "warning: test program dumped core -- see subdirectory $coredir"
1723 echo "$ac_t""$cl_cv_c_longdouble" 1>&6
1724 case "$cl_cv_c_longdouble" in
1725 *yes) cat >> confdefs.h <<\EOF
1726 #define HAVE_LONGDOUBLE 1
1732 echo $ac_n "checking for working template<>""... $ac_c" 1>&6
1733 echo "configure:1734: checking for working template<>" >&5
1734 if eval "test \"`echo '$''{'cl_cv_c_templatenull'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1741 template <class T> class c {}; template <> class c<int> { int x; };
1746 if { (eval echo configure:1747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1748 cl_cv_c_templatenull=yes
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 cl_cv_c_templatenull=no
1759 echo "$ac_t""$cl_cv_c_templatenull" 1>&6
1760 if test $cl_cv_c_templatenull = yes; then
1761 cat >> confdefs.h <<\EOF
1762 #define HAVE_TEMPLATE_NULL 1
1768 if test -n "$GCC"; then
1769 echo $ac_n "checking for the global constructors function prefix""... $ac_c" 1>&6
1770 echo "configure:1771: checking for the global constructors function prefix" >&5
1771 if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorprefix'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1775 cat > conftest.cc << EOF
1776 struct foo { foo (); };
1779 # look for the assembly language name in the .s file
1780 { ac_try='${CXX-g++} $CXXFLAGS -S conftest.cc'; { (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
1781 if grep '_GLOBAL_\$I\$foobar' conftest.s >/dev/null ; then
1782 cl_cv_cplusplus_ctorprefix='_GLOBAL_$I$'
1784 if grep '_GLOBAL_\.I\.foobar' conftest.s >/dev/null ; then
1785 cl_cv_cplusplus_ctorprefix='_GLOBAL_.I.'
1787 if grep '_GLOBAL__I_foobar' conftest.s >/dev/null ; then
1788 cl_cv_cplusplus_ctorprefix='_GLOBAL__I_'
1790 cl_cv_cplusplus_ctorprefix=unknown
1797 echo "$ac_t""$cl_cv_cplusplus_ctorprefix" 1>&6
1798 if test "$cl_cv_cplusplus_ctorprefix" '!=' unknown; then
1799 ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"'
1800 cat >> confdefs.h <<EOF
1801 #define CL_GLOBAL_CONSTRUCTOR_PREFIX $ac_value
1804 ac_value=`echo "$ac_value" | sed -e 's,I,D,'`
1805 cat >> confdefs.h <<EOF
1806 #define CL_GLOBAL_DESTRUCTOR_PREFIX $ac_value
1809 echo $ac_n "checking whether the global constructors function need to be exported""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether the global constructors function need to be exported" >&5
1811 if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorexport'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1815 cat > conftest1.cc << EOF
1816 struct foo { foo (); };
1819 cat > conftest2.cc << EOF
1820 #include "confdefs.h"
1821 #ifdef ASM_UNDERSCORE
1822 #define ASM_UNDERSCORE_PREFIX "_"
1824 #define ASM_UNDERSCORE_PREFIX ""
1826 struct foo { foo (); };
1828 extern "C" void ctor (void) __asm__ (ASM_UNDERSCORE_PREFIX CL_GLOBAL_CONSTRUCTOR_PREFIX "foobar");
1829 int main() { ctor(); return 0; }
1831 if { ac_try='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest1.cc conftest2.cc $LIBS 1>&5'; { (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1 && test -s conftest${ac_exeext}; then
1832 cl_cv_cplusplus_ctorexport=no
1834 cl_cv_cplusplus_ctorexport=yes
1839 echo "$ac_t""$cl_cv_cplusplus_ctorexport" 1>&6
1840 if test "$cl_cv_cplusplus_ctorexport" = yes; then
1841 cat >> confdefs.h <<\EOF
1842 #define CL_NEED_GLOBALIZE_CTORDTOR 1
1849 for ac_hdr in unistd.h
1851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_hdr" >&5
1854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1863 { (eval echo configure:1864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1865 if test -z "$ac_err"; then
1867 eval "ac_cv_header_$ac_safe=yes"
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1873 eval "ac_cv_header_$ac_safe=no"
1877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1880 cat >> confdefs.h <<EOF
1881 #define $ac_tr_hdr 1
1885 echo "$ac_t""no" 1>&6
1890 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1891 # for constant arguments. Useless!
1892 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1893 echo "configure:1894: checking for working alloca.h" >&5
1894 if eval "test \"`echo '$''{'cl_cv_header_alloca_h'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1903 char *p = (char *) alloca(2 * sizeof(int));
1906 if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1908 cl_cv_header_alloca_h=yes
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1913 cl_cv_header_alloca_h=no
1919 echo "$ac_t""$cl_cv_header_alloca_h" 1>&6
1920 if test $cl_cv_header_alloca_h = yes; then
1921 cat >> confdefs.h <<\EOF
1922 #define HAVE_ALLOCA_H 1
1926 decl="#ifdef __GNUC__
1927 #define alloca __builtin_alloca
1931 #define alloca _alloca
1933 #ifdef HAVE_ALLOCA_H
1947 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1948 echo "configure:1949: checking for alloca" >&5
1949 if eval "test \"`echo '$''{'cl_cv_func_alloca'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1958 char *p = (char *) alloca(1);
1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1963 cl_cv_func_alloca=yes
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1968 cl_cv_func_alloca=no
1974 echo "$ac_t""$cl_cv_func_alloca" 1>&6
1975 if test $cl_cv_func_alloca = yes; then
1980 if test -n "$alloca_missing"; then
1981 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1982 # that cause trouble. Some versions do not even contain alloca or
1983 # contain a buggy version. If you still want to use their alloca,
1984 # use ar to extract alloca.o from them instead of compiling alloca.c.
1985 ALLOCA=alloca.${ac_objext}
1986 cat >> confdefs.h <<\EOF
1992 echo $ac_n "checking for fpu_control_t""... $ac_c" 1>&6
1993 echo "configure:1994: checking for fpu_control_t" >&5
1994 if eval "test \"`echo '$''{'cl_cv_type_fpu_control_t'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include <fpu_control.h>
2006 if { (eval echo configure:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 cl_cv_type_fpu_control_t=yes
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 cl_cv_type_fpu_control_t=no
2019 echo "$ac_t""$cl_cv_type_fpu_control_t" 1>&6
2020 if test $cl_cv_type_fpu_control_t = yes; then
2021 cat >> confdefs.h <<\EOF
2022 #define HAVE_FPU_CONTROL_T 1
2027 echo $ac_n "checking for __setfpucw""... $ac_c" 1>&6
2028 echo "configure:2029: checking for __setfpucw" >&5
2029 if eval "test \"`echo '$''{'cl_cv_func_setfpucw'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2036 #include <fpu_control.h>
2038 __setfpucw(_FPU_IEEE);
2041 if { (eval echo configure:2042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 cl_cv_func_setfpucw=yes
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2048 cl_cv_func_setfpucw=no
2054 echo "$ac_t""$cl_cv_func_setfpucw" 1>&6
2055 if test $cl_cv_func_setfpucw = yes; then
2056 cat >> confdefs.h <<\EOF
2057 #define HAVE_SETFPUCW 1
2064 for ac_func in gettimeofday
2066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2067 echo "configure:2068: checking for $ac_func" >&5
2068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 /* System header to define __stub macros and hopefully few prototypes,
2075 which can conflict with char $ac_func(); below. */
2077 /* Override any gcc2 internal prototype to avoid an error. */
2081 /* We use char because int might match the return type of a gcc2
2082 builtin and then its argument prototype would still apply. */
2087 /* The GNU C library defines this for functions which it implements
2088 to always fail with ENOSYS. Some functions are actually named
2089 something starting with __ and the normal name is an alias. */
2090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2098 if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2100 eval "ac_cv_func_$ac_func=yes"
2102 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2105 eval "ac_cv_func_$ac_func=no"
2110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2111 echo "$ac_t""yes" 1>&6
2112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2113 cat >> confdefs.h <<EOF
2114 #define $ac_tr_func 1
2118 echo "$ac_t""no" 1>&6
2121 if test $ac_cv_func_gettimeofday = yes; then
2122 echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
2123 echo "configure:2124: checking for gettimeofday declaration" >&5
2124 if eval "test \"`echo '$''{'cl_cv_proto_gettimeofday'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2132 #include <sys/types.h>
2133 #include <sys/time.h>
2140 #if defined(__STDC__) || defined(__cplusplus)
2141 int gettimeofday (struct timeval * tp, struct timezone * tzp);
2150 if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 cl_cv_proto_gettimeofday_dots=no
2153 cl_cv_proto_gettimeofday_arg2="struct timezone *"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2162 #include <sys/types.h>
2163 #include <sys/time.h>
2170 #if defined(__STDC__) || defined(__cplusplus)
2171 int gettimeofday (struct timeval * tp, void * tzp);
2180 if { (eval echo configure:2181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2182 cl_cv_proto_gettimeofday_dots=no
2183 cl_cv_proto_gettimeofday_arg2="void *"
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2188 cl_cv_proto_gettimeofday_dots=yes
2189 cl_cv_proto_gettimeofday_arg2="..."
2197 cl_cv_proto_gettimeofday="extern int gettimeofday (struct timeval *, $cl_cv_proto_gettimeofday_arg2);"
2200 cl_cv_proto_gettimeofday=`echo "$cl_cv_proto_gettimeofday" | tr -s ' ' | sed -e 's/( /(/'`
2201 echo "$ac_t""${ac_tt}$cl_cv_proto_gettimeofday" 1>&6
2204 if test $cl_cv_proto_gettimeofday_dots = yes; then
2205 cat >> confdefs.h <<\EOF
2206 #define GETTIMEOFDAY_DOTS 1
2210 cat >> confdefs.h <<EOF
2211 #define GETTIMEOFDAY_TZP_T $cl_cv_proto_gettimeofday_arg2
2218 for ac_func in ftime
2220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2221 echo "configure:2222: checking for $ac_func" >&5
2222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 /* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char $ac_func(); below. */
2231 /* Override any gcc2 internal prototype to avoid an error. */
2235 /* We use char because int might match the return type of a gcc2
2236 builtin and then its argument prototype would still apply. */
2241 /* The GNU C library defines this for functions which it implements
2242 to always fail with ENOSYS. Some functions are actually named
2243 something starting with __ and the normal name is an alias. */
2244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2254 eval "ac_cv_func_$ac_func=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 eval "ac_cv_func_$ac_func=no"
2264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2267 cat >> confdefs.h <<EOF
2268 #define $ac_tr_func 1
2272 echo "$ac_t""no" 1>&6
2276 if test $ac_cv_func_gettimeofday = no -a $ac_cv_func_ftime = no; then
2277 echo $ac_n "checking for times""... $ac_c" 1>&6
2278 echo "configure:2279: checking for times" >&5
2279 if eval "test \"`echo '$''{'ac_cv_func_times'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2285 /* System header to define __stub macros and hopefully few prototypes,
2286 which can conflict with char times(); below. */
2288 /* Override any gcc2 internal prototype to avoid an error. */
2292 /* We use char because int might match the return type of a gcc2
2293 builtin and then its argument prototype would still apply. */
2298 /* The GNU C library defines this for functions which it implements
2299 to always fail with ENOSYS. Some functions are actually named
2300 something starting with __ and the normal name is an alias. */
2301 #if defined (__stub_times) || defined (__stub___times)
2309 if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2311 eval "ac_cv_func_times=yes"
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2316 eval "ac_cv_func_times=no"
2321 if eval "test \"`echo '$ac_cv_func_'times`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2325 echo "$ac_t""no" 1>&6
2328 if test -z "$no_times"; then
2329 echo $ac_n "checking for times return value""... $ac_c" 1>&6
2330 echo "configure:2331: checking for times return value" >&5
2331 if eval "test \"`echo '$''{'cl_cv_func_times_return'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test "$cross_compiling" = yes; then
2336 cl_cv_func_times_return="guessing no"
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2342 extern "C" void exit(int);
2345 #include <sys/types.h>
2346 #include <time.h> /* needed for CLK_TCK */
2348 #include <sys/time.h> /* needed for CLK_TCK on SYSV PTX */
2350 #include <sys/times.h>
2352 { struct tms buffer;
2356 result1 = times(&buffer);
2357 if ((result1 == (clock_t)0) || (result1 == (clock_t)(-1))) exit(1);
2359 result2 = times(&buffer);
2360 if ((result2 == (clock_t)0) || (result2 == (clock_t)(-1))) exit(1);
2361 ticks = result2 - result1;
2362 exit(!((ticks >= CLK_TCK/2) && (ticks <= 3*CLK_TCK/2)));
2365 if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2367 cl_cv_func_times_return=yes
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2372 cl_cv_func_times_return=no
2374 if test -f core; then
2375 coredir=core`/bin/sh -c 'echo $$'`
2377 cp confdefs.h $coredir/confdefs.h
2378 mv conftest.c $coredir/conftest.c
2379 mv conftest $coredir/conftest
2380 mv core $coredir/core
2381 echo "warning: test program dumped core -- see subdirectory $coredir"
2388 echo "$ac_t""$cl_cv_func_times_return" 1>&6
2389 case "$cl_cv_func_times_return" in
2390 *yes) cat >> confdefs.h <<\EOF
2391 #define HAVE_TIMES_CLOCK 1
2399 for ac_hdr in sys/resource.h sys/times.h
2401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2403 echo "configure:2404: checking for $ac_hdr" >&5
2404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2413 { (eval echo configure:2414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2415 if test -z "$ac_err"; then
2417 eval "ac_cv_header_$ac_safe=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 eval "ac_cv_header_$ac_safe=no"
2427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2430 cat >> confdefs.h <<EOF
2431 #define $ac_tr_hdr 1
2435 echo "$ac_t""no" 1>&6
2438 if test $ac_cv_header_sys_resource_h = yes; then
2439 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
2440 echo "configure:2441: checking for getrusage" >&5
2441 if eval "test \"`echo '$''{'cl_cv_func_getrusage'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 #include <sys/types.h> /* NetBSD 1.0 needs this */
2449 #include <sys/time.h>
2450 #include <sys/resource.h>
2452 struct rusage x; int y = RUSAGE_SELF; getrusage(y,&x); x.ru_utime.tv_sec;
2455 if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2457 cl_cv_func_getrusage=yes
2459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2462 cl_cv_func_getrusage=no
2468 echo "$ac_t""$cl_cv_func_getrusage" 1>&6
2469 if test $cl_cv_func_getrusage = yes; then
2470 cat >> confdefs.h <<\EOF
2471 #define HAVE_GETRUSAGE 1
2475 if test $cl_cv_func_getrusage = yes; then
2476 echo $ac_n "checking for getrusage declaration""... $ac_c" 1>&6
2477 echo "configure:2478: checking for getrusage declaration" >&5
2478 if eval "test \"`echo '$''{'cl_cv_proto_getrusage'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 #ifdef HAVE_UNISTD_H
2490 #include <sys/types.h> /* NetBSD 1.0 needs this */
2491 #include <sys/time.h>
2492 #include <sys/resource.h>
2499 #if defined(__STDC__) || defined(__cplusplus)
2500 int getrusage (int who, struct rusage * rusage);
2509 if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2511 cl_cv_proto_getrusage_arg1="int"
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 cl_cv_proto_getrusage_arg1="enum __rusage_who"
2521 cl_cv_proto_getrusage="extern int getrusage ($cl_cv_proto_getrusage_arg1, struct rusage *);"
2524 cl_cv_proto_getrusage=`echo "$cl_cv_proto_getrusage" | tr -s ' ' | sed -e 's/( /(/'`
2525 echo "$ac_t""${ac_tt}$cl_cv_proto_getrusage" 1>&6
2528 cat >> confdefs.h <<EOF
2529 #define RUSAGE_WHO_T $cl_cv_proto_getrusage_arg1
2535 echo $ac_n "checking for perror declaration""... $ac_c" 1>&6
2536 echo "configure:2537: checking for perror declaration" >&5
2537 if eval "test \"`echo '$''{'cl_cv_proto_perror'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2545 /* Some systems declare perror() in <errno.h>, some in <stdio.h>, some don't
2546 declare it at all. */
2558 if { (eval echo configure:2559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2560 cl_cv_proto_perror=no
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 cl_cv_proto_perror=yes
2571 echo "$ac_t""$cl_cv_proto_perror" 1>&6
2572 if test $cl_cv_proto_perror = yes; then
2573 cat >> confdefs.h <<\EOF
2574 #define HAVE_PERROR_DECL 1
2579 echo $ac_n "checking whether characters are unsigned""... $ac_c" 1>&6
2580 echo "configure:2581: checking whether characters are unsigned" >&5
2581 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2585 if test $ac_cv_prog_gcc = yes; then
2586 # GCC predefines this symbol on systems where it applies.
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #ifdef __CHAR_UNSIGNED__
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "yes" >/dev/null 2>&1; then
2598 ac_cv_c_char_unsigned=yes
2601 ac_cv_c_char_unsigned=no
2606 if test "$cross_compiling" = yes; then
2607 ac_cv_c_char_unsigned="guessing no"
2609 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2613 extern "C" void exit(int);
2615 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2616 #if !defined(__STDC__) || __STDC__ != 1
2620 volatile char c = 255; exit(c < 0);
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2625 ac_cv_c_char_unsigned=yes
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 ac_cv_c_char_unsigned=no
2632 if test -f core; then
2633 coredir=core`/bin/sh -c 'echo $$'`
2635 cp confdefs.h $coredir/confdefs.h
2636 mv conftest.c $coredir/conftest.c
2637 mv conftest $coredir/conftest
2638 mv core $coredir/core
2639 echo "warning: test program dumped core -- see subdirectory $coredir"
2646 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2647 if test $ac_cv_prog_gcc = no; then
2648 # GCC defines __CHAR_UNSIGNED__ by itself, no need to fix up.
2649 case "$ac_cv_c_char_unsigned" in
2650 *yes) cat >> confdefs.h <<\EOF
2651 #define __CHAR_UNSIGNED__ 1
2658 test -d 'include' || mkdir 'include'
2659 cl_machine_file_c=${srcdir}/autoconf/intparam.c
2660 cl_machine_file_h=include/cl_intparam.h
2661 if test $cross_compiling = no; then
2662 if test -z "$cl_cv_file_intparam_h"; then
2663 echo "checking for integer types and behaviour" 1>&6
2664 echo "configure:2665: checking for integer types and behaviour" >&5
2665 cat > conftest.$ac_ext <<EOF
2666 #include "confdefs.h"
2668 cat "$cl_machine_file_c" >> conftest.$ac_ext
2670 if test $ac_cv_prog_gcc = yes; then
2671 # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
2672 # target 80386. Strip "-O".
2673 CC=`echo "$CC " | sed -e 's/-O //g'`
2675 { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2677 if test -s conftest; then
2678 echo "creating $cl_machine_file_h"
2679 ./conftest > conftest.h
2680 if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
2681 # The file exists and we would not be changing it
2684 rm -f "$cl_machine_file_h"
2685 mv conftest.h "$cl_machine_file_h"
2687 cl_cv_file_intparam_h=1
2689 echo "creation of $cl_machine_file_h failed"
2694 echo "cross-compiling - cannot create $cl_machine_file_h"
2697 cl_machine_file_c=${srcdir}/autoconf/floatparam.c
2698 cl_machine_file_h=include/cl_floatparam.h
2699 if test $cross_compiling = no; then
2700 if test -z "$cl_cv_file_floatparam_h"; then
2701 echo "checking for floating-point types and behaviour" 1>&6
2702 echo "configure:2703: checking for floating-point types and behaviour" >&5
2703 cat > conftest.$ac_ext <<EOF
2704 #include "confdefs.h"
2706 cat "$cl_machine_file_c" >> conftest.$ac_ext
2708 if test $ac_cv_prog_gcc = yes; then
2709 # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
2710 # target 80386. Strip "-O".
2711 CC=`echo "$CC " | sed -e 's/-O //g'`
2713 { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2715 if test -s conftest; then
2716 echo "creating $cl_machine_file_h"
2717 ./conftest > conftest.h
2718 if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
2719 # The file exists and we would not be changing it
2722 rm -f "$cl_machine_file_h"
2723 mv conftest.h "$cl_machine_file_h"
2725 cl_cv_file_floatparam_h=1
2727 echo "creation of $cl_machine_file_h failed"
2732 echo "cross-compiling - cannot create $cl_machine_file_h"
2735 # Check whether --with-gmp or --without-gmp was given.
2736 if test "${with_gmp+set}" = set; then
2743 if test "$with_gmp" = yes; then
2744 echo $ac_n "checking for recent enough gmp.h""... $ac_c" 1>&6
2745 echo "configure:2746: checking for recent enough gmp.h" >&5
2746 if eval "test \"`echo '$''{'cl_cv_new_gmp_h'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2754 #if !defined(__GNU_MP_VERSION) || (__GNU_MP_VERSION < 3)
2755 #error "ancient gmp.h"
2758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2759 { (eval echo configure:2760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2761 if test -z "$ac_err"; then
2763 cl_cv_new_gmp_h="yes"
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 cl_cv_new_gmp_h="no"
2774 echo "$ac_t""$cl_cv_new_gmp_h" 1>&6
2775 if test "$cl_cv_new_gmp_h" = no; then with_gmp="no"; fi
2776 if test "$with_gmp" = yes; then
2777 echo $ac_n "checking for working libgmp""... $ac_c" 1>&6
2778 echo "configure:2779: checking for working libgmp" >&5
2779 if eval "test \"`echo '$''{'cl_cv_new_libgmp'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2790 mpn_divexact_by3(0,0,0)
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2795 cl_cv_new_libgmp="yes"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 cl_cv_new_libgmp="no"; LIBS=$SAVELIBS
2805 echo "$ac_t""$cl_cv_new_libgmp" 1>&6
2806 if test "$cl_cv_new_libgmp" = no; then with_gmp="no"; fi
2809 if test "$with_gmp" = yes; then
2810 cat >> confdefs.h <<\EOF
2811 #define CL_USE_GMP 1
2815 echo "configure: warning: disabling external GNU MP library" 1>&2
2817 for f in 'tests/.gdbinit'; do
2818 if test '!' -f "$f"; then
2820 g=`echo "$f" | sed -e 's,/[^/]*$,,'`
2821 test "$g" = "$f" || test -d "$g" || mkdir "$g"
2822 cp "$srcdir/$f" "$f"
2826 cat > confcache <<\EOF
2827 # This file is a shell script that caches the results of configure
2828 # tests run on this system so they can be shared between configure
2829 # scripts and configure runs. It is not useful on other systems.
2830 # If it contains results you don't want to keep, you may remove or edit it.
2832 # By default, configure uses ./config.cache as the cache file,
2833 # creating it if it does not exist already. You can give configure
2834 # the --cache-file=FILE option to use a different cache file; that is
2835 # what configure does when it calls configure scripts in
2836 # subdirectories, so they share the cache.
2837 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2838 # config.status only pays attention to the cache file if you give it the
2839 # --recheck option to rerun configure.
2842 # The following way of writing the cache mishandles newlines in values,
2843 # but we know of no workaround that is simple, portable, and efficient.
2844 # So, don't put newlines in cache variables' values.
2845 # Ultrix sh set writes to stderr and can't be redirected directly,
2846 # and sets the high bit in the cache file unless we assign to the vars.
2848 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2850 # `set' does not quote correctly, so add quotes (double-quote substitution
2851 # turns \\\\ into \\, and sed turns \\ into \).
2853 -e "s/'/'\\\\''/g" \
2854 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2857 # `set' quotes correctly as required by POSIX, so do not add quotes.
2858 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2861 if cmp -s $cache_file confcache; then
2864 if test -w $cache_file; then
2865 echo "updating cache $cache_file"
2866 cat confcache > $cache_file
2868 echo "not updating unwritable cache $cache_file"
2873 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
2875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2876 # Let make expand exec_prefix.
2877 test "x$exec_prefix" = xNONE && exec_prefix='$(prefix)'
2879 # Any assignment to VPATH causes Sun make to only execute
2880 # the first set of double-colon rules, so remove it if not needed.
2881 # If there is a colon in the path, we need to keep it.
2882 if test "x$srcdir" = x.; then
2883 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2886 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2888 DEFS=-DHAVE_CONFIG_H
2890 # Without the "./", some shells look in PATH for config.status.
2891 : ${CONFIG_STATUS=./config.status}
2893 echo creating $CONFIG_STATUS
2894 rm -f $CONFIG_STATUS
2895 cat > $CONFIG_STATUS <<EOF
2897 # Generated automatically by configure.
2898 # Run this file to recreate the current configuration.
2899 # This directory was configured as follows,
2900 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2902 # $0 $ac_configure_args
2904 # Compiler output produced by configure, useful for debugging
2905 # configure, is in ./config.log if it exists.
2907 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2910 case "\$ac_option" in
2911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2912 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2913 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2914 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2915 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2917 -help | --help | --hel | --he | --h)
2918 echo "\$ac_cs_usage"; exit 0 ;;
2919 *) echo "\$ac_cs_usage"; exit 1 ;;
2923 ac_given_srcdir=$srcdir
2925 trap 'rm -fr `echo "Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile include/cl_config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2927 cat >> $CONFIG_STATUS <<EOF
2929 # Protect against being on the right side of a sed subst in config.status.
2930 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2931 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2935 s%@CFLAGS@%$CFLAGS%g
2936 s%@CPPFLAGS@%$CPPFLAGS%g
2937 s%@CXXFLAGS@%$CXXFLAGS%g
2938 s%@FFLAGS@%$FFLAGS%g
2940 s%@LDFLAGS@%$LDFLAGS%g
2942 s%@exec_prefix@%$exec_prefix%g
2943 s%@prefix@%$prefix%g
2944 s%@program_transform_name@%$program_transform_name%g
2945 s%@bindir@%$bindir%g
2946 s%@sbindir@%$sbindir%g
2947 s%@libexecdir@%$libexecdir%g
2948 s%@datadir@%$datadir%g
2949 s%@sysconfdir@%$sysconfdir%g
2950 s%@sharedstatedir@%$sharedstatedir%g
2951 s%@localstatedir@%$localstatedir%g
2952 s%@libdir@%$libdir%g
2953 s%@includedir@%$includedir%g
2954 s%@oldincludedir@%$oldincludedir%g
2955 s%@infodir@%$infodir%g
2956 s%@mandir@%$mandir%g
2957 s%@SET_MAKE@%$SET_MAKE%g
2961 s%@CXXCPP@%$CXXCPP%g
2962 s%@AS_UNDERSCORE@%$AS_UNDERSCORE%g
2963 s%@RANLIB@%$RANLIB%g
2964 s%@INSTALL@%$INSTALL%g
2965 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2966 s%@INSTALL_DATA@%$INSTALL_DATA%g
2968 s%@host_cpu@%$host_cpu%g
2969 s%@host_vendor@%$host_vendor%g
2970 s%@host_os@%$host_os%g
2974 s%@LIBTOOL@%$LIBTOOL%g
2975 s%@CLN_CURRENT@%$CLN_CURRENT%g
2976 s%@CLN_REVISION@%$CLN_REVISION%g
2977 s%@CLN_AGE@%$CLN_AGE%g
2978 s%@ALLOCA@%$ALLOCA%g
2983 cat >> $CONFIG_STATUS <<\EOF
2985 # Split the substitutions into bite-sized pieces for seds with
2986 # small command number limits, like on Digital OSF/1 and HP-UX.
2987 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2988 ac_file=1 # Number of current file.
2989 ac_beg=1 # First line for current file.
2990 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2993 while $ac_more_lines; do
2994 if test $ac_beg -gt 1; then
2995 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2997 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2999 if test ! -s conftest.s$ac_file; then
3001 rm -f conftest.s$ac_file
3003 if test -z "$ac_sed_cmds"; then
3004 ac_sed_cmds="sed -f conftest.s$ac_file"
3006 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3008 ac_file=`expr $ac_file + 1`
3010 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3013 if test -z "$ac_sed_cmds"; then
3018 cat >> $CONFIG_STATUS <<EOF
3020 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile"}
3022 cat >> $CONFIG_STATUS <<\EOF
3023 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3024 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3026 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3027 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3028 *) ac_file_in="${ac_file}.in" ;;
3031 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3033 # Remove last slash and all that follows it. Not all systems have dirname.
3034 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3035 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3036 # The file is in a subdirectory.
3037 test ! -d "$ac_dir" && mkdir "$ac_dir"
3038 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3039 # A "../" for each directory in $ac_dir_suffix.
3040 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3042 ac_dir_suffix= ac_dots=
3045 case "$ac_given_srcdir" in
3047 if test -z "$ac_dots"; then top_srcdir=.
3048 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3049 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3051 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3052 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3056 echo creating "$ac_file"
3058 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3060 *Makefile*) ac_comsub="1i\\
3061 # $configure_input" ;;
3065 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3067 s%@configure_input@%$configure_input%g
3068 s%@srcdir@%$srcdir%g
3069 s%@top_srcdir@%$top_srcdir%g
3070 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3074 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3075 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3077 # ac_d sets the value in "#define NAME VALUE" lines.
3078 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3079 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3082 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3083 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3084 ac_uB='\([ ]\)%\1#\2define\3'
3087 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3088 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3089 ac_eB='$%\1#\2define\3'
3092 # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
3093 ac_fA='s%^\([ ]*\)#\([ ]*\)define\([ ][ ]*\)'
3094 ac_fB='$%\1#\2define\3'
3098 if test "${CONFIG_HEADERS+set}" != set; then
3100 cat >> $CONFIG_STATUS <<EOF
3101 CONFIG_HEADERS="include/cl_config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h"
3103 cat >> $CONFIG_STATUS <<\EOF
3105 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3108 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3109 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3110 *) ac_file_in="${ac_file}.in" ;;
3113 echo creating $ac_file
3115 rm -f conftest.frag conftest.in conftest.out
3116 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3117 cat $ac_file_inputs > conftest.in
3121 # Transform confdefs.h into a sed script conftest.vals that substitutes
3122 # the proper values into config.h.in to produce config.h. And first:
3123 # Protect against being on the right side of a sed subst in config.status.
3124 # Protect against being in an unquoted here document in config.status.
3126 cat > conftest.hdr <<\EOF
3129 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3134 sed -n -f conftest.hdr confdefs.h > conftest.vals
3138 # Break up conftest.vals because some shells have a limit on
3139 # the size of here documents, and old seds have small limits too.
3144 ac_lines=`grep -c . conftest.vals`
3145 # grep -c gives empty output for an empty file on some AIX systems.
3146 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3147 # Write a limited-size here document to conftest.frag.
3148 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3149 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3151 sed -f conftest.frag conftest.in > conftest.out
3153 mv conftest.out conftest.in
3155 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3157 mv conftest.tail conftest.vals
3161 cat >> $CONFIG_STATUS <<\EOF
3162 rm -f conftest.frag conftest.h
3163 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3164 cat conftest.in >> conftest.h
3166 if cmp -s $ac_file conftest.h 2>/dev/null; then
3167 echo "$ac_file is unchanged"
3170 # Remove last slash and all that follows it. Not all systems have dirname.
3171 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3172 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3173 # The file is in a subdirectory.
3174 test ! -d "$ac_dir" && mkdir "$ac_dir"
3177 mv conftest.h $ac_file
3182 cat >> $CONFIG_STATUS <<EOF
3185 cat >> $CONFIG_STATUS <<\EOF
3189 chmod +x $CONFIG_STATUS
3190 rm -fr confdefs* $ac_clean_files
3191 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1