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=yes]
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; }
1556 CL_VERSION_PATCHLEVEL=0
1557 cat >> confdefs.h <<EOF
1558 #define CL_VERSION $CL_VERSION
1561 cat >> confdefs.h <<EOF
1562 #define CL_VERSION_MINOR $CL_VERSION_MINOR
1565 cat >> confdefs.h <<EOF
1566 #define CL_VERSION_PATCHLEVEL $CL_VERSION_PATCHLEVEL
1571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1572 ac_cpp='$CXXCPP $CPPFLAGS'
1573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1575 cross_compiling=$ac_cv_prog_cxx_cross
1579 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1580 ac_cpp='$CXXCPP $CPPFLAGS'
1581 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1582 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1583 cross_compiling=$ac_cv_prog_cxx_cross
1585 echo $ac_n "checking for bool type""... $ac_c" 1>&6
1586 echo "configure:1587: checking for bool type" >&5
1587 if eval "test \"`echo '$''{'cl_cv_cplusplus_bool'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1599 if { (eval echo configure:1600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1601 cl_cv_cplusplus_bool=yes
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1606 cl_cv_cplusplus_bool=no
1612 echo "$ac_t""$cl_cv_cplusplus_bool" 1>&6
1613 if test $cl_cv_cplusplus_bool = yes; then
1614 cat >> confdefs.h <<\EOF
1619 cat >> confdefs.h <<\EOF
1625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1626 ac_cpp='$CXXCPP $CPPFLAGS'
1627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1629 cross_compiling=$ac_cv_prog_cxx_cross
1632 echo $ac_n "checking for long long type""... $ac_c" 1>&6
1633 echo "configure:1634: checking for long long type" >&5
1634 if eval "test \"`echo '$''{'cl_cv_c_longlong'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1638 if test "$cross_compiling" = yes; then
1639 cl_cv_c_longlong="guessing no"
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1645 extern "C" void exit(int);
1649 /* long longs don't work right with gcc-2.7.2 on m68k */
1650 /* long longs don't work right with gcc-2.7.2 on rs6000: avcall/tests.c gets
1653 #if defined(__m68k__) || (defined(_IBMR2) || defined(__powerpc))
1655 #if (__GNUC_MINOR__ <= 7)
1661 { long x = 944938507; long y = 737962842; long z = 162359677;
1662 exit(!(((long long) x)*((long long) y)>>32 == z));
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1668 cl_cv_c_longlong=yes
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1675 if test -f core; then
1676 coredir=core`/bin/sh -c 'echo $$'`
1678 cp confdefs.h $coredir/confdefs.h
1679 mv conftest.c $coredir/conftest.c
1680 mv conftest $coredir/conftest
1681 mv core $coredir/core
1682 echo "warning: test program dumped core -- see subdirectory $coredir"
1689 echo "$ac_t""$cl_cv_c_longlong" 1>&6
1690 case "$cl_cv_c_longlong" in
1691 *yes) cat >> confdefs.h <<\EOF
1692 #define HAVE_LONGLONG 1
1698 echo $ac_n "checking for long double type""... $ac_c" 1>&6
1699 echo "configure:1700: checking for long double type" >&5
1700 if eval "test \"`echo '$''{'cl_cv_c_longdouble'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1704 if test "$cross_compiling" = yes; then
1705 cl_cv_c_longdouble="guessing no"
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1711 extern "C" void exit(int);
1714 { long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1718 cl_cv_c_longdouble=yes
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1723 cl_cv_c_longdouble=no
1725 if test -f core; then
1726 coredir=core`/bin/sh -c 'echo $$'`
1728 cp confdefs.h $coredir/confdefs.h
1729 mv conftest.c $coredir/conftest.c
1730 mv conftest $coredir/conftest
1731 mv core $coredir/core
1732 echo "warning: test program dumped core -- see subdirectory $coredir"
1739 echo "$ac_t""$cl_cv_c_longdouble" 1>&6
1740 case "$cl_cv_c_longdouble" in
1741 *yes) cat >> confdefs.h <<\EOF
1742 #define HAVE_LONGDOUBLE 1
1748 echo $ac_n "checking for working template<>""... $ac_c" 1>&6
1749 echo "configure:1750: checking for working template<>" >&5
1750 if eval "test \"`echo '$''{'cl_cv_c_templatenull'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1757 template <class T> class c {}; template <> class c<int> { int x; };
1762 if { (eval echo configure:1763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1764 cl_cv_c_templatenull=yes
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1769 cl_cv_c_templatenull=no
1775 echo "$ac_t""$cl_cv_c_templatenull" 1>&6
1776 if test $cl_cv_c_templatenull = yes; then
1777 cat >> confdefs.h <<\EOF
1778 #define HAVE_TEMPLATE_NULL 1
1784 if test -n "$GCC"; then
1785 echo $ac_n "checking for the global constructors function prefix""... $ac_c" 1>&6
1786 echo "configure:1787: checking for the global constructors function prefix" >&5
1787 if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorprefix'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.cc << EOF
1792 struct foo { foo (); };
1795 # look for the assembly language name in the .s file
1796 { ac_try='${CXX-g++} $CXXFLAGS -S conftest.cc'; { (eval echo configure:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
1797 if grep '_GLOBAL_\$I\$foobar' conftest.s >/dev/null ; then
1798 cl_cv_cplusplus_ctorprefix='_GLOBAL_$I$'
1800 if grep '_GLOBAL_\.I\.foobar' conftest.s >/dev/null ; then
1801 cl_cv_cplusplus_ctorprefix='_GLOBAL_.I.'
1803 if grep '_GLOBAL__I_foobar' conftest.s >/dev/null ; then
1804 cl_cv_cplusplus_ctorprefix='_GLOBAL__I_'
1806 cl_cv_cplusplus_ctorprefix=unknown
1813 echo "$ac_t""$cl_cv_cplusplus_ctorprefix" 1>&6
1814 if test "$cl_cv_cplusplus_ctorprefix" '!=' unknown; then
1815 ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"'
1816 cat >> confdefs.h <<EOF
1817 #define CL_GLOBAL_CONSTRUCTOR_PREFIX $ac_value
1820 ac_value=`echo "$ac_value" | sed -e 's,I,D,'`
1821 cat >> confdefs.h <<EOF
1822 #define CL_GLOBAL_DESTRUCTOR_PREFIX $ac_value
1825 echo $ac_n "checking whether the global constructors function need to be exported""... $ac_c" 1>&6
1826 echo "configure:1827: checking whether the global constructors function need to be exported" >&5
1827 if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorexport'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1831 cat > conftest1.cc << EOF
1832 struct foo { foo (); };
1835 cat > conftest2.cc << EOF
1836 #include "confdefs.h"
1837 #ifdef ASM_UNDERSCORE
1838 #define ASM_UNDERSCORE_PREFIX "_"
1840 #define ASM_UNDERSCORE_PREFIX ""
1842 struct foo { foo (); };
1844 extern "C" void ctor (void) __asm__ (ASM_UNDERSCORE_PREFIX CL_GLOBAL_CONSTRUCTOR_PREFIX "foobar");
1845 int main() { ctor(); return 0; }
1847 if { ac_try='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest1.cc conftest2.cc $LIBS 1>&5'; { (eval echo configure:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1 && test -s conftest${ac_exeext}; then
1848 cl_cv_cplusplus_ctorexport=no
1850 cl_cv_cplusplus_ctorexport=yes
1855 echo "$ac_t""$cl_cv_cplusplus_ctorexport" 1>&6
1856 if test "$cl_cv_cplusplus_ctorexport" = yes; then
1857 cat >> confdefs.h <<\EOF
1858 #define CL_NEED_GLOBALIZE_CTORDTOR 1
1865 for ac_hdr in unistd.h
1867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $ac_hdr" >&5
1870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1879 { (eval echo configure:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1881 if test -z "$ac_err"; then
1883 eval "ac_cv_header_$ac_safe=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 eval "ac_cv_header_$ac_safe=no"
1893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1894 echo "$ac_t""yes" 1>&6
1895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1896 cat >> confdefs.h <<EOF
1897 #define $ac_tr_hdr 1
1901 echo "$ac_t""no" 1>&6
1906 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1907 # for constant arguments. Useless!
1908 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1909 echo "configure:1910: checking for working alloca.h" >&5
1910 if eval "test \"`echo '$''{'cl_cv_header_alloca_h'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1919 char *p = (char *) alloca(2 * sizeof(int));
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1924 cl_cv_header_alloca_h=yes
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1929 cl_cv_header_alloca_h=no
1935 echo "$ac_t""$cl_cv_header_alloca_h" 1>&6
1936 if test $cl_cv_header_alloca_h = yes; then
1937 cat >> confdefs.h <<\EOF
1938 #define HAVE_ALLOCA_H 1
1942 decl="#ifdef __GNUC__
1943 #define alloca __builtin_alloca
1947 #define alloca _alloca
1949 #ifdef HAVE_ALLOCA_H
1963 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1964 echo "configure:1965: checking for alloca" >&5
1965 if eval "test \"`echo '$''{'cl_cv_func_alloca'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1969 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1974 char *p = (char *) alloca(1);
1977 if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 cl_cv_func_alloca=yes
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1984 cl_cv_func_alloca=no
1990 echo "$ac_t""$cl_cv_func_alloca" 1>&6
1991 if test $cl_cv_func_alloca = yes; then
1996 if test -n "$alloca_missing"; then
1997 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1998 # that cause trouble. Some versions do not even contain alloca or
1999 # contain a buggy version. If you still want to use their alloca,
2000 # use ar to extract alloca.o from them instead of compiling alloca.c.
2001 ALLOCA=alloca.${ac_objext}
2002 cat >> confdefs.h <<\EOF
2008 echo $ac_n "checking for fpu_control_t""... $ac_c" 1>&6
2009 echo "configure:2010: checking for fpu_control_t" >&5
2010 if eval "test \"`echo '$''{'cl_cv_type_fpu_control_t'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 #include <fpu_control.h>
2022 if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2024 cl_cv_type_fpu_control_t=yes
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2029 cl_cv_type_fpu_control_t=no
2035 echo "$ac_t""$cl_cv_type_fpu_control_t" 1>&6
2036 if test $cl_cv_type_fpu_control_t = yes; then
2037 cat >> confdefs.h <<\EOF
2038 #define HAVE_FPU_CONTROL_T 1
2043 echo $ac_n "checking for __setfpucw""... $ac_c" 1>&6
2044 echo "configure:2045: checking for __setfpucw" >&5
2045 if eval "test \"`echo '$''{'cl_cv_func_setfpucw'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 #include <fpu_control.h>
2054 __setfpucw(_FPU_IEEE);
2057 if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2059 cl_cv_func_setfpucw=yes
2061 echo "configure: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2064 cl_cv_func_setfpucw=no
2070 echo "$ac_t""$cl_cv_func_setfpucw" 1>&6
2071 if test $cl_cv_func_setfpucw = yes; then
2072 cat >> confdefs.h <<\EOF
2073 #define HAVE_SETFPUCW 1
2080 for ac_func in gettimeofday
2082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_func" >&5
2084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 /* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char $ac_func(); below. */
2093 /* Override any gcc2 internal prototype to avoid an error. */
2097 /* We use char because int might match the return type of a gcc2
2098 builtin and then its argument prototype would still apply. */
2103 /* The GNU C library defines this for functions which it implements
2104 to always fail with ENOSYS. Some functions are actually named
2105 something starting with __ and the normal name is an alias. */
2106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2116 eval "ac_cv_func_$ac_func=yes"
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2121 eval "ac_cv_func_$ac_func=no"
2126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2127 echo "$ac_t""yes" 1>&6
2128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2129 cat >> confdefs.h <<EOF
2130 #define $ac_tr_func 1
2134 echo "$ac_t""no" 1>&6
2137 if test $ac_cv_func_gettimeofday = yes; then
2138 echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
2139 echo "configure:2140: checking for gettimeofday declaration" >&5
2140 if eval "test \"`echo '$''{'cl_cv_proto_gettimeofday'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2148 #include <sys/types.h>
2149 #include <sys/time.h>
2156 #if defined(__STDC__) || defined(__cplusplus)
2157 int gettimeofday (struct timeval * tp, struct timezone * tzp);
2166 if { (eval echo configure:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2168 cl_cv_proto_gettimeofday_dots=no
2169 cl_cv_proto_gettimeofday_arg2="struct timezone *"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2178 #include <sys/types.h>
2179 #include <sys/time.h>
2186 #if defined(__STDC__) || defined(__cplusplus)
2187 int gettimeofday (struct timeval * tp, void * tzp);
2196 if { (eval echo configure:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 cl_cv_proto_gettimeofday_dots=no
2199 cl_cv_proto_gettimeofday_arg2="void *"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2204 cl_cv_proto_gettimeofday_dots=yes
2205 cl_cv_proto_gettimeofday_arg2="..."
2213 cl_cv_proto_gettimeofday="extern int gettimeofday (struct timeval *, $cl_cv_proto_gettimeofday_arg2);"
2216 cl_cv_proto_gettimeofday=`echo "$cl_cv_proto_gettimeofday" | tr -s ' ' | sed -e 's/( /(/'`
2217 echo "$ac_t""${ac_tt}$cl_cv_proto_gettimeofday" 1>&6
2220 if test $cl_cv_proto_gettimeofday_dots = yes; then
2221 cat >> confdefs.h <<\EOF
2222 #define GETTIMEOFDAY_DOTS 1
2226 cat >> confdefs.h <<EOF
2227 #define GETTIMEOFDAY_TZP_T $cl_cv_proto_gettimeofday_arg2
2234 for ac_func in ftime
2236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2237 echo "configure:2238: checking for $ac_func" >&5
2238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 cat > conftest.$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2244 /* System header to define __stub macros and hopefully few prototypes,
2245 which can conflict with char $ac_func(); below. */
2247 /* Override any gcc2 internal prototype to avoid an error. */
2251 /* We use char because int might match the return type of a gcc2
2252 builtin and then its argument prototype would still apply. */
2257 /* The GNU C library defines this for functions which it implements
2258 to always fail with ENOSYS. Some functions are actually named
2259 something starting with __ and the normal name is an alias. */
2260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2268 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2270 eval "ac_cv_func_$ac_func=yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 eval "ac_cv_func_$ac_func=no"
2280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2283 cat >> confdefs.h <<EOF
2284 #define $ac_tr_func 1
2288 echo "$ac_t""no" 1>&6
2292 if test $ac_cv_func_gettimeofday = no -a $ac_cv_func_ftime = no; then
2293 echo $ac_n "checking for times""... $ac_c" 1>&6
2294 echo "configure:2295: checking for times" >&5
2295 if eval "test \"`echo '$''{'ac_cv_func_times'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 /* System header to define __stub macros and hopefully few prototypes,
2302 which can conflict with char times(); below. */
2304 /* Override any gcc2 internal prototype to avoid an error. */
2308 /* We use char because int might match the return type of a gcc2
2309 builtin and then its argument prototype would still apply. */
2314 /* The GNU C library defines this for functions which it implements
2315 to always fail with ENOSYS. Some functions are actually named
2316 something starting with __ and the normal name is an alias. */
2317 #if defined (__stub_times) || defined (__stub___times)
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 eval "ac_cv_func_times=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 eval "ac_cv_func_times=no"
2337 if eval "test \"`echo '$ac_cv_func_'times`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2341 echo "$ac_t""no" 1>&6
2344 if test -z "$no_times"; then
2345 echo $ac_n "checking for times return value""... $ac_c" 1>&6
2346 echo "configure:2347: checking for times return value" >&5
2347 if eval "test \"`echo '$''{'cl_cv_func_times_return'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2351 if test "$cross_compiling" = yes; then
2352 cl_cv_func_times_return="guessing no"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2358 extern "C" void exit(int);
2361 #include <sys/types.h>
2362 #include <time.h> /* needed for CLK_TCK */
2364 #include <sys/time.h> /* needed for CLK_TCK on SYSV PTX */
2366 #include <sys/times.h>
2368 { struct tms buffer;
2372 result1 = times(&buffer);
2373 if ((result1 == (clock_t)0) || (result1 == (clock_t)(-1))) exit(1);
2375 result2 = times(&buffer);
2376 if ((result2 == (clock_t)0) || (result2 == (clock_t)(-1))) exit(1);
2377 ticks = result2 - result1;
2378 exit(!((ticks >= CLK_TCK/2) && (ticks <= 3*CLK_TCK/2)));
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2383 cl_cv_func_times_return=yes
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 cl_cv_func_times_return=no
2390 if test -f core; then
2391 coredir=core`/bin/sh -c 'echo $$'`
2393 cp confdefs.h $coredir/confdefs.h
2394 mv conftest.c $coredir/conftest.c
2395 mv conftest $coredir/conftest
2396 mv core $coredir/core
2397 echo "warning: test program dumped core -- see subdirectory $coredir"
2404 echo "$ac_t""$cl_cv_func_times_return" 1>&6
2405 case "$cl_cv_func_times_return" in
2406 *yes) cat >> confdefs.h <<\EOF
2407 #define HAVE_TIMES_CLOCK 1
2415 for ac_hdr in sys/resource.h sys/times.h
2417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_hdr" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2429 { (eval echo configure:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2431 if test -z "$ac_err"; then
2433 eval "ac_cv_header_$ac_safe=yes"
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2439 eval "ac_cv_header_$ac_safe=no"
2443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2446 cat >> confdefs.h <<EOF
2447 #define $ac_tr_hdr 1
2451 echo "$ac_t""no" 1>&6
2454 if test $ac_cv_header_sys_resource_h = yes; then
2455 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
2456 echo "configure:2457: checking for getrusage" >&5
2457 if eval "test \"`echo '$''{'cl_cv_func_getrusage'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2461 cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 #include <sys/types.h> /* NetBSD 1.0 needs this */
2465 #include <sys/time.h>
2466 #include <sys/resource.h>
2468 struct rusage x; int y = RUSAGE_SELF; getrusage(y,&x); x.ru_utime.tv_sec;
2471 if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2473 cl_cv_func_getrusage=yes
2475 echo "configure: failed program was:" >&5
2476 cat conftest.$ac_ext >&5
2478 cl_cv_func_getrusage=no
2484 echo "$ac_t""$cl_cv_func_getrusage" 1>&6
2485 if test $cl_cv_func_getrusage = yes; then
2486 cat >> confdefs.h <<\EOF
2487 #define HAVE_GETRUSAGE 1
2491 if test $cl_cv_func_getrusage = yes; then
2492 echo $ac_n "checking for getrusage declaration""... $ac_c" 1>&6
2493 echo "configure:2494: checking for getrusage declaration" >&5
2494 if eval "test \"`echo '$''{'cl_cv_proto_getrusage'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2503 #ifdef HAVE_UNISTD_H
2506 #include <sys/types.h> /* NetBSD 1.0 needs this */
2507 #include <sys/time.h>
2508 #include <sys/resource.h>
2515 #if defined(__STDC__) || defined(__cplusplus)
2516 int getrusage (int who, struct rusage * rusage);
2525 if { (eval echo configure:2526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2527 cl_cv_proto_getrusage_arg1="int"
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2532 cl_cv_proto_getrusage_arg1="enum __rusage_who"
2537 cl_cv_proto_getrusage="extern int getrusage ($cl_cv_proto_getrusage_arg1, struct rusage *);"
2540 cl_cv_proto_getrusage=`echo "$cl_cv_proto_getrusage" | tr -s ' ' | sed -e 's/( /(/'`
2541 echo "$ac_t""${ac_tt}$cl_cv_proto_getrusage" 1>&6
2544 cat >> confdefs.h <<EOF
2545 #define RUSAGE_WHO_T $cl_cv_proto_getrusage_arg1
2551 echo $ac_n "checking for perror declaration""... $ac_c" 1>&6
2552 echo "configure:2553: checking for perror declaration" >&5
2553 if eval "test \"`echo '$''{'cl_cv_proto_perror'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2561 /* Some systems declare perror() in <errno.h>, some in <stdio.h>, some don't
2562 declare it at all. */
2574 if { (eval echo configure:2575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2576 cl_cv_proto_perror=no
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2581 cl_cv_proto_perror=yes
2587 echo "$ac_t""$cl_cv_proto_perror" 1>&6
2588 if test $cl_cv_proto_perror = yes; then
2589 cat >> confdefs.h <<\EOF
2590 #define HAVE_PERROR_DECL 1
2595 echo $ac_n "checking whether characters are unsigned""... $ac_c" 1>&6
2596 echo "configure:2597: checking whether characters are unsigned" >&5
2597 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2601 if test $ac_cv_prog_gcc = yes; then
2602 # GCC predefines this symbol on systems where it applies.
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2606 #ifdef __CHAR_UNSIGNED__
2611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2612 egrep "yes" >/dev/null 2>&1; then
2614 ac_cv_c_char_unsigned=yes
2617 ac_cv_c_char_unsigned=no
2622 if test "$cross_compiling" = yes; then
2623 ac_cv_c_char_unsigned="guessing no"
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2629 extern "C" void exit(int);
2631 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2632 #if !defined(__STDC__) || __STDC__ != 1
2636 volatile char c = 255; exit(c < 0);
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2641 ac_cv_c_char_unsigned=yes
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2646 ac_cv_c_char_unsigned=no
2648 if test -f core; then
2649 coredir=core`/bin/sh -c 'echo $$'`
2651 cp confdefs.h $coredir/confdefs.h
2652 mv conftest.c $coredir/conftest.c
2653 mv conftest $coredir/conftest
2654 mv core $coredir/core
2655 echo "warning: test program dumped core -- see subdirectory $coredir"
2662 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2663 if test $ac_cv_prog_gcc = no; then
2664 # GCC defines __CHAR_UNSIGNED__ by itself, no need to fix up.
2665 case "$ac_cv_c_char_unsigned" in
2666 *yes) cat >> confdefs.h <<\EOF
2667 #define __CHAR_UNSIGNED__ 1
2674 test -d 'include' || mkdir 'include'
2675 cl_machine_file_c=${srcdir}/autoconf/intparam.c
2676 cl_machine_file_h=include/cl_intparam.h
2677 if test $cross_compiling = no; then
2678 if test -z "$cl_cv_file_intparam_h"; then
2679 echo "checking for integer types and behaviour" 1>&6
2680 echo "configure:2681: checking for integer types and behaviour" >&5
2681 cat > conftest.$ac_ext <<EOF
2682 #include "confdefs.h"
2684 cat "$cl_machine_file_c" >> conftest.$ac_ext
2686 if test $ac_cv_prog_gcc = yes; then
2687 # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
2688 # target 80386. Strip "-O".
2689 CC=`echo "$CC " | sed -e 's/-O //g'`
2691 { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2693 if test -s conftest; then
2694 echo "creating $cl_machine_file_h"
2695 ./conftest > conftest.h
2696 if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
2697 # The file exists and we would not be changing it
2700 rm -f "$cl_machine_file_h"
2701 mv conftest.h "$cl_machine_file_h"
2703 cl_cv_file_intparam_h=1
2705 echo "creation of $cl_machine_file_h failed"
2710 echo "cross-compiling - cannot create $cl_machine_file_h"
2713 cl_machine_file_c=${srcdir}/autoconf/floatparam.c
2714 cl_machine_file_h=include/cl_floatparam.h
2715 if test $cross_compiling = no; then
2716 if test -z "$cl_cv_file_floatparam_h"; then
2717 echo "checking for floating-point types and behaviour" 1>&6
2718 echo "configure:2719: checking for floating-point types and behaviour" >&5
2719 cat > conftest.$ac_ext <<EOF
2720 #include "confdefs.h"
2722 cat "$cl_machine_file_c" >> conftest.$ac_ext
2724 if test $ac_cv_prog_gcc = yes; then
2725 # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
2726 # target 80386. Strip "-O".
2727 CC=`echo "$CC " | sed -e 's/-O //g'`
2729 { (eval echo configure:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2731 if test -s conftest; then
2732 echo "creating $cl_machine_file_h"
2733 ./conftest > conftest.h
2734 if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
2735 # The file exists and we would not be changing it
2738 rm -f "$cl_machine_file_h"
2739 mv conftest.h "$cl_machine_file_h"
2741 cl_cv_file_floatparam_h=1
2743 echo "creation of $cl_machine_file_h failed"
2748 echo "cross-compiling - cannot create $cl_machine_file_h"
2751 # Check whether --with-gmp or --without-gmp was given.
2752 if test "${with_gmp+set}" = set; then
2759 if test "$with_gmp" = yes; then
2760 echo $ac_n "checking for recent enough gmp.h""... $ac_c" 1>&6
2761 echo "configure:2762: checking for recent enough gmp.h" >&5
2762 if eval "test \"`echo '$''{'cl_cv_new_gmp_h'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2770 #if !defined(__GNU_MP_VERSION) || (__GNU_MP_VERSION < 3)
2771 #error "ancient gmp.h"
2774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2779 cl_cv_new_gmp_h="yes"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2785 cl_cv_new_gmp_h="no"
2790 echo "$ac_t""$cl_cv_new_gmp_h" 1>&6
2791 if test "$cl_cv_new_gmp_h" = no; then with_gmp="no"; fi
2792 if test "$with_gmp" = yes; then
2793 echo $ac_n "checking for working libgmp""... $ac_c" 1>&6
2794 echo "configure:2795: checking for working libgmp" >&5
2795 if eval "test \"`echo '$''{'cl_cv_new_libgmp'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2806 mpn_divexact_by3(0,0,0)
2809 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2811 cl_cv_new_libgmp="yes"
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2816 cl_cv_new_libgmp="no"; LIBS=$SAVELIBS
2821 echo "$ac_t""$cl_cv_new_libgmp" 1>&6
2822 if test "$cl_cv_new_libgmp" = no; then with_gmp="no"; fi
2825 if test "$with_gmp" = yes; then
2826 cat >> confdefs.h <<\EOF
2827 #define CL_USE_GMP 1
2831 echo "configure: warning: disabling external GNU MP library" 1>&2
2833 for f in 'tests/.gdbinit'; do
2834 if test '!' -f "$f"; then
2836 g=`echo "$f" | sed -e 's,/[^/]*$,,'`
2837 test "$g" = "$f" || test -d "$g" || mkdir "$g"
2838 cp "$srcdir/$f" "$f"
2842 cat > confcache <<\EOF
2843 # This file is a shell script that caches the results of configure
2844 # tests run on this system so they can be shared between configure
2845 # scripts and configure runs. It is not useful on other systems.
2846 # If it contains results you don't want to keep, you may remove or edit it.
2848 # By default, configure uses ./config.cache as the cache file,
2849 # creating it if it does not exist already. You can give configure
2850 # the --cache-file=FILE option to use a different cache file; that is
2851 # what configure does when it calls configure scripts in
2852 # subdirectories, so they share the cache.
2853 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2854 # config.status only pays attention to the cache file if you give it the
2855 # --recheck option to rerun configure.
2858 # The following way of writing the cache mishandles newlines in values,
2859 # but we know of no workaround that is simple, portable, and efficient.
2860 # So, don't put newlines in cache variables' values.
2861 # Ultrix sh set writes to stderr and can't be redirected directly,
2862 # and sets the high bit in the cache file unless we assign to the vars.
2864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2866 # `set' does not quote correctly, so add quotes (double-quote substitution
2867 # turns \\\\ into \\, and sed turns \\ into \).
2869 -e "s/'/'\\\\''/g" \
2870 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2873 # `set' quotes correctly as required by POSIX, so do not add quotes.
2874 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2877 if cmp -s $cache_file confcache; then
2880 if test -w $cache_file; then
2881 echo "updating cache $cache_file"
2882 cat confcache > $cache_file
2884 echo "not updating unwritable cache $cache_file"
2889 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
2891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2892 # Let make expand exec_prefix.
2893 test "x$exec_prefix" = xNONE && exec_prefix='$(prefix)'
2895 # Any assignment to VPATH causes Sun make to only execute
2896 # the first set of double-colon rules, so remove it if not needed.
2897 # If there is a colon in the path, we need to keep it.
2898 if test "x$srcdir" = x.; then
2899 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2902 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2904 DEFS=-DHAVE_CONFIG_H
2906 # Without the "./", some shells look in PATH for config.status.
2907 : ${CONFIG_STATUS=./config.status}
2909 echo creating $CONFIG_STATUS
2910 rm -f $CONFIG_STATUS
2911 cat > $CONFIG_STATUS <<EOF
2913 # Generated automatically by configure.
2914 # Run this file to recreate the current configuration.
2915 # This directory was configured as follows,
2916 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2918 # $0 $ac_configure_args
2920 # Compiler output produced by configure, useful for debugging
2921 # configure, is in ./config.log if it exists.
2923 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2926 case "\$ac_option" in
2927 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2928 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2929 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2930 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2931 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2933 -help | --help | --hel | --he | --h)
2934 echo "\$ac_cs_usage"; exit 0 ;;
2935 *) echo "\$ac_cs_usage"; exit 1 ;;
2939 ac_given_srcdir=$srcdir
2941 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
2943 cat >> $CONFIG_STATUS <<EOF
2945 # Protect against being on the right side of a sed subst in config.status.
2946 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2947 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2951 s%@CFLAGS@%$CFLAGS%g
2952 s%@CPPFLAGS@%$CPPFLAGS%g
2953 s%@CXXFLAGS@%$CXXFLAGS%g
2954 s%@FFLAGS@%$FFLAGS%g
2956 s%@LDFLAGS@%$LDFLAGS%g
2958 s%@exec_prefix@%$exec_prefix%g
2959 s%@prefix@%$prefix%g
2960 s%@program_transform_name@%$program_transform_name%g
2961 s%@bindir@%$bindir%g
2962 s%@sbindir@%$sbindir%g
2963 s%@libexecdir@%$libexecdir%g
2964 s%@datadir@%$datadir%g
2965 s%@sysconfdir@%$sysconfdir%g
2966 s%@sharedstatedir@%$sharedstatedir%g
2967 s%@localstatedir@%$localstatedir%g
2968 s%@libdir@%$libdir%g
2969 s%@includedir@%$includedir%g
2970 s%@oldincludedir@%$oldincludedir%g
2971 s%@infodir@%$infodir%g
2972 s%@mandir@%$mandir%g
2973 s%@SET_MAKE@%$SET_MAKE%g
2977 s%@CXXCPP@%$CXXCPP%g
2978 s%@AS_UNDERSCORE@%$AS_UNDERSCORE%g
2979 s%@RANLIB@%$RANLIB%g
2980 s%@INSTALL@%$INSTALL%g
2981 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2982 s%@INSTALL_DATA@%$INSTALL_DATA%g
2984 s%@host_cpu@%$host_cpu%g
2985 s%@host_vendor@%$host_vendor%g
2986 s%@host_os@%$host_os%g
2990 s%@LIBTOOL@%$LIBTOOL%g
2991 s%@CL_CURRENT@%$CL_CURRENT%g
2992 s%@CL_REVISION@%$CL_REVISION%g
2993 s%@CL_AGE@%$CL_AGE%g
2994 s%@ALLOCA@%$ALLOCA%g
2999 cat >> $CONFIG_STATUS <<\EOF
3001 # Split the substitutions into bite-sized pieces for seds with
3002 # small command number limits, like on Digital OSF/1 and HP-UX.
3003 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3004 ac_file=1 # Number of current file.
3005 ac_beg=1 # First line for current file.
3006 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3009 while $ac_more_lines; do
3010 if test $ac_beg -gt 1; then
3011 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3013 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3015 if test ! -s conftest.s$ac_file; then
3017 rm -f conftest.s$ac_file
3019 if test -z "$ac_sed_cmds"; then
3020 ac_sed_cmds="sed -f conftest.s$ac_file"
3022 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3024 ac_file=`expr $ac_file + 1`
3026 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3029 if test -z "$ac_sed_cmds"; then
3034 cat >> $CONFIG_STATUS <<EOF
3036 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile"}
3038 cat >> $CONFIG_STATUS <<\EOF
3039 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3042 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3043 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3044 *) ac_file_in="${ac_file}.in" ;;
3047 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3049 # Remove last slash and all that follows it. Not all systems have dirname.
3050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3052 # The file is in a subdirectory.
3053 test ! -d "$ac_dir" && mkdir "$ac_dir"
3054 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3055 # A "../" for each directory in $ac_dir_suffix.
3056 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3058 ac_dir_suffix= ac_dots=
3061 case "$ac_given_srcdir" in
3063 if test -z "$ac_dots"; then top_srcdir=.
3064 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3065 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3067 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3068 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3072 echo creating "$ac_file"
3074 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3076 *Makefile*) ac_comsub="1i\\
3077 # $configure_input" ;;
3081 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3083 s%@configure_input@%$configure_input%g
3084 s%@srcdir@%$srcdir%g
3085 s%@top_srcdir@%$top_srcdir%g
3086 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3090 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3091 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3093 # ac_d sets the value in "#define NAME VALUE" lines.
3094 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3095 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3098 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3099 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3100 ac_uB='\([ ]\)%\1#\2define\3'
3103 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3104 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3105 ac_eB='$%\1#\2define\3'
3108 # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
3109 ac_fA='s%^\([ ]*\)#\([ ]*\)define\([ ][ ]*\)'
3110 ac_fB='$%\1#\2define\3'
3114 if test "${CONFIG_HEADERS+set}" != set; then
3116 cat >> $CONFIG_STATUS <<EOF
3117 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"
3119 cat >> $CONFIG_STATUS <<\EOF
3121 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3124 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3125 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3126 *) ac_file_in="${ac_file}.in" ;;
3129 echo creating $ac_file
3131 rm -f conftest.frag conftest.in conftest.out
3132 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3133 cat $ac_file_inputs > conftest.in
3137 # Transform confdefs.h into a sed script conftest.vals that substitutes
3138 # the proper values into config.h.in to produce config.h. And first:
3139 # Protect against being on the right side of a sed subst in config.status.
3140 # Protect against being in an unquoted here document in config.status.
3142 cat > conftest.hdr <<\EOF
3145 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3150 sed -n -f conftest.hdr confdefs.h > conftest.vals
3154 # Break up conftest.vals because some shells have a limit on
3155 # the size of here documents, and old seds have small limits too.
3160 ac_lines=`grep -c . conftest.vals`
3161 # grep -c gives empty output for an empty file on some AIX systems.
3162 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3163 # Write a limited-size here document to conftest.frag.
3164 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3165 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3167 sed -f conftest.frag conftest.in > conftest.out
3169 mv conftest.out conftest.in
3171 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3173 mv conftest.tail conftest.vals
3177 cat >> $CONFIG_STATUS <<\EOF
3178 rm -f conftest.frag conftest.h
3179 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3180 cat conftest.in >> conftest.h
3182 if cmp -s $ac_file conftest.h 2>/dev/null; then
3183 echo "$ac_file is unchanged"
3186 # Remove last slash and all that follows it. Not all systems have dirname.
3187 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3188 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3189 # The file is in a subdirectory.
3190 test ! -d "$ac_dir" && mkdir "$ac_dir"
3193 mv conftest.h $ac_file
3198 cat >> $CONFIG_STATUS <<EOF
3201 cat >> $CONFIG_STATUS <<\EOF
3205 chmod +x $CONFIG_STATUS
3206 rm -fr confdefs* $ac_clean_files
3207 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1