3 # From configure.in Id: configure.in
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
27 --enable-debug enable assertions and additional debugging routines"
29 --enable-profile enable profiling"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file=./config.cache
44 program_transform_name=s,x,x,
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host | --host | --hos | --ho)
207 -host=* | --host=* | --hos=* | --ho=*)
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
328 -site=* | --site=* | --sit=*)
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=ir/ir/ircons.c
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='\c' ac_t=
540 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
541 if test -f $ac_dir/install-sh; then
543 ac_install_sh="$ac_aux_dir/install-sh -c"
545 elif test -f $ac_dir/install.sh; then
547 ac_install_sh="$ac_aux_dir/install.sh -c"
551 if test -z "$ac_aux_dir"; then
552 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
554 ac_config_guess=$ac_aux_dir/config.guess
555 ac_config_sub=$ac_aux_dir/config.sub
556 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560 ac_output_file="Makefile MakeRules ir/.dummy ir/adt/Makefile ir/debug/Makefile \
561 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
562 ir/tr/Makefile testprograms/Makefile"
566 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
572 # Check whether --enable-debug or --disable-debug was given.
573 if test "${enable_debug+set}" = set; then
574 enableval="$enable_debug"
575 if test "$enableval" = yes; then
576 cat >> confdefs.h <<\EOF
577 #define DEBUG_libfirm 1
581 cat >> confdefs.h <<\EOF
592 # Check whether --enable-profile or --disable-profile was given.
593 if test "${enable_profile+set}" = set; then
594 enableval="$enable_profile"
595 if test "$enableval"=yes; then
596 enable_profile_libfirm=yes
599 enable_profile_libfirm=no
607 # Extract the first word of "gcc", so it can be a program name with args.
608 set dummy gcc; ac_word=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:611: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 if test -n "$CC"; then
615 ac_cv_prog_CC="$CC" # Let the user override the test.
617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
619 for ac_dir in $ac_dummy; do
620 test -z "$ac_dir" && ac_dir=.
621 if test -f $ac_dir/$ac_word; then
630 if test -n "$CC"; then
631 echo "$ac_t""$CC" 1>&6
633 echo "$ac_t""no" 1>&6
636 if test -z "$CC"; then
637 # Extract the first word of "cc", so it can be a program name with args.
638 set dummy cc; ac_word=$2
639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
640 echo "configure:641: checking for $ac_word" >&5
641 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 if test -n "$CC"; then
645 ac_cv_prog_CC="$CC" # Let the user override the test.
647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
650 for ac_dir in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir=.
652 if test -f $ac_dir/$ac_word; then
653 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
662 if test $ac_prog_rejected = yes; then
663 # We found a bogon in the path, so make sure we never use it.
664 set dummy $ac_cv_prog_CC
666 if test $# -gt 0; then
667 # We chose a different compiler from the bogus one.
668 # However, it has the same basename, so the bogon will be chosen
669 # first if we set CC to just the basename; use the full file name.
671 set dummy "$ac_dir/$ac_word" "$@"
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
682 echo "$ac_t""no" 1>&6
685 if test -z "$CC"; then
688 # Extract the first word of "cl", so it can be a program name with args.
689 set dummy cl; ac_word=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 if test -n "$CC"; then
696 ac_cv_prog_CC="$CC" # Let the user override the test.
698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
700 for ac_dir in $ac_dummy; do
701 test -z "$ac_dir" && ac_dir=.
702 if test -f $ac_dir/$ac_word; then
711 if test -n "$CC"; then
712 echo "$ac_t""$CC" 1>&6
714 echo "$ac_t""no" 1>&6
719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
723 echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
727 ac_cpp='$CPP $CPPFLAGS'
728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
730 cross_compiling=$ac_cv_prog_cc_cross
732 cat > conftest.$ac_ext << EOF
734 #line 735 "configure"
735 #include "confdefs.h"
739 if { (eval echo configure:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
740 ac_cv_prog_cc_works=yes
741 # If we can't run a trivial program, we are probably using a cross compiler.
742 if (./conftest; exit) 2>/dev/null; then
743 ac_cv_prog_cc_cross=no
745 ac_cv_prog_cc_cross=yes
748 echo "configure: failed program was:" >&5
749 cat conftest.$ac_ext >&5
750 ac_cv_prog_cc_works=no
754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
755 ac_cpp='$CPP $CPPFLAGS'
756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
758 cross_compiling=$ac_cv_prog_cc_cross
760 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
761 if test $ac_cv_prog_cc_works = no; then
762 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
765 echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
766 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
767 cross_compiling=$ac_cv_prog_cc_cross
769 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
770 echo "configure:771: checking whether we are using GNU C" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 cat > conftest.c <<EOF
779 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
786 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
788 if test $ac_cv_prog_gcc = yes; then
794 ac_test_CFLAGS="${CFLAGS+set}"
795 ac_save_CFLAGS="$CFLAGS"
797 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
798 echo "configure:799: checking whether ${CC-cc} accepts -g" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 echo 'void f(){}' > conftest.c
803 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
812 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
813 if test "$ac_test_CFLAGS" = set; then
814 CFLAGS="$ac_save_CFLAGS"
815 elif test $ac_cv_prog_cc_g = yes; then
816 if test "$GCC" = yes; then
822 if test "$GCC" = yes; then
832 # Make sure we can run config.sub.
833 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
834 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
837 echo $ac_n "checking host system type""... $ac_c" 1>&6
838 echo "configure:839: checking host system type" >&5
841 case "$host_alias" in
845 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
846 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
848 *) host_alias=$nonopt ;;
852 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
853 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
854 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
855 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
856 echo "$ac_t""$host" 1>&6
858 echo $ac_n "checking build system type""... $ac_c" 1>&6
859 echo "configure:860: checking build system type" >&5
862 case "$build_alias" in
865 NONE) build_alias=$host_alias ;;
866 *) build_alias=$nonopt ;;
870 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
871 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
872 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
873 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
874 echo "$ac_t""$build" 1>&6
876 if test $host != $build; then
877 ac_tool_prefix=${host_alias}-
882 if test -z "$LD" && test "$GCC" = yes; then
883 # Extract the first word of "${ac_tool_prefix}gld", so it can be a program name with args.
884 set dummy ${ac_tool_prefix}gld; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 if test -n "$LD"; then
891 ac_cv_prog_LD="$LD" # Let the user override the test.
893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
898 ac_cv_prog_LD="${ac_tool_prefix}gld"
906 if test -n "$LD"; then
907 echo "$ac_t""$LD" 1>&6
909 echo "$ac_t""no" 1>&6
913 if test -z "$ac_cv_prog_LD"; then
914 if test -n "$ac_tool_prefix"; then
915 # Extract the first word of "gld", so it can be a program name with args.
916 set dummy gld; ac_word=$2
917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918 echo "configure:919: checking for $ac_word" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 if test -n "$LD"; then
923 ac_cv_prog_LD="$LD" # Let the user override the test.
925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
927 for ac_dir in $ac_dummy; do
928 test -z "$ac_dir" && ac_dir=.
929 if test -f $ac_dir/$ac_word; then
935 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD=""""
939 if test -n "$LD"; then
940 echo "$ac_t""$LD" 1>&6
942 echo "$ac_t""no" 1>&6
951 if test -z "$LD"; then
952 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
953 set dummy ${ac_tool_prefix}ld; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 if test -n "$LD"; then
960 ac_cv_prog_LD="$LD" # Let the user override the test.
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_LD="${ac_tool_prefix}ld"
972 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
976 if test -n "$LD"; then
977 echo "$ac_t""$LD" 1>&6
979 echo "$ac_t""no" 1>&6
986 echo $ac_n "checking whether $LD accepts -r""... $ac_c" 1>&6
987 echo "configure:988: checking whether $LD accepts -r" >&5
988 if eval "test \"`echo '$''{'libfirm_cv_prog_ld_r'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
992 libfirm_cv_prog_ld_r=no
994 cat > conftest.$ac_ext <<EOF
995 int foo() { return 0; }
997 if eval $ac_compile && mv conftest.o conftest2.o; then
998 cat > conftest.$ac_ext <<EOF
999 int main() { return foo(); }
1001 if eval $ac_compile; then
1002 if $LD -r -o conftest conftest.o conftest2.o; then
1003 libfirm_cv_prog_ld_r=yes
1011 echo "$ac_t""$libfirm_cv_prog_ld_r" 1>&6
1014 if test "$libfirm_cv_prog_ld_r" != "yes"; then
1015 { echo "configure: error: need a prelinkcapable linker" 1>&2; exit 1; }
1019 # Extract the first word of "ar", so it can be a program name with args.
1020 set dummy ar; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$AR"; then
1027 ac_cv_prog_AR="$AR" # Let the user override the test.
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1031 for ac_dir in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_prog_AR=""ar""
1039 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
1043 if test -n "$AR"; then
1044 echo "$ac_t""$AR" 1>&6
1046 echo "$ac_t""no" 1>&6
1049 if test "$AR" != "ar"; then
1050 { echo "configure: error: need ar for creating archives" 1>&2; exit 1; }
1054 # Extract the first word of "ranlib", so it can be a program name with args.
1055 set dummy ranlib; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 if test -n "$RANLIB"; then
1062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1066 for ac_dir in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir=.
1068 if test -f $ac_dir/$ac_word; then
1069 ac_cv_prog_RANLIB="ranlib"
1074 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1077 RANLIB="$ac_cv_prog_RANLIB"
1078 if test -n "$RANLIB"; then
1079 echo "$ac_t""$RANLIB" 1>&6
1081 echo "$ac_t""no" 1>&6
1085 # Find a good install program. We prefer a C program (faster),
1086 # so one script is as good as another. But avoid the broken or
1087 # incompatible versions:
1088 # SysV /etc/install, /usr/sbin/install
1089 # SunOS /usr/etc/install
1090 # IRIX /sbin/install
1092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1095 # ./install, which can be erroneously created by make from ./install.sh.
1096 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1097 echo "configure:1098: checking for a BSD compatible install" >&5
1098 if test -z "$INSTALL"; then
1099 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1103 for ac_dir in $PATH; do
1104 # Account for people who put trailing slashes in PATH elements.
1106 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1108 # OSF1 and SCO ODT 3.0 have their own names for install.
1109 # Don't use installbsd from OSF since it installs stuff as root
1111 for ac_prog in ginstall scoinst install; do
1112 if test -f $ac_dir/$ac_prog; then
1113 if test $ac_prog = install &&
1114 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1115 # AIX install. It has an incompatible calling convention.
1118 ac_cv_path_install="$ac_dir/$ac_prog -c"
1129 if test "${ac_cv_path_install+set}" = set; then
1130 INSTALL="$ac_cv_path_install"
1132 # As a last resort, use the slow shell script. We don't cache a
1133 # path for INSTALL within a source directory, because that will
1134 # break other packages using the cache if that directory is
1135 # removed, or if the path is relative.
1136 INSTALL="$ac_install_sh"
1139 echo "$ac_t""$INSTALL" 1>&6
1141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1142 # It thinks the first close brace ends the variable substitution.
1143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1145 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1147 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1151 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1152 echo "configure:1153: checking how to run the C preprocessor" >&5
1153 # On Suns, sometimes $CPP names a directory.
1154 if test -n "$CPP" && test -d "$CPP"; then
1157 if test -z "$CPP"; then
1158 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 # This must be in double quotes, not single quotes, because CPP may get
1162 # substituted into the Makefile and "${CC-cc}" will confuse make.
1164 # On the NeXT, cc -E runs the code through the compiler's parser,
1165 # not just through cpp.
1166 cat > conftest.$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1173 { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1175 if test -z "$ac_err"; then
1179 echo "configure: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1182 CPP="${CC-cc} -E -traditional-cpp"
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1190 { (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1192 if test -z "$ac_err"; then
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1199 CPP="${CC-cc} -nologo -E"
1200 cat > conftest.$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1207 { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1209 if test -z "$ac_err"; then
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1223 ac_cv_prog_CPP="$CPP"
1225 CPP="$ac_cv_prog_CPP"
1227 ac_cv_prog_CPP="$CPP"
1229 echo "$ac_t""$CPP" 1>&6
1231 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1232 echo "configure:1233: checking for ANSI C header files" >&5
1233 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1245 { (eval echo configure:1246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1247 if test -z "$ac_err"; then
1249 ac_cv_header_stdc=yes
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1255 ac_cv_header_stdc=no
1259 if test $ac_cv_header_stdc = yes; then
1260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1261 cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1267 egrep "memchr" >/dev/null 2>&1; then
1271 ac_cv_header_stdc=no
1277 if test $ac_cv_header_stdc = yes; then
1278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1285 egrep "free" >/dev/null 2>&1; then
1289 ac_cv_header_stdc=no
1295 if test $ac_cv_header_stdc = yes; then
1296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1297 if test "$cross_compiling" = yes; then
1300 cat > conftest.$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1304 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1305 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1307 int main () { int i; for (i = 0; i < 256; i++)
1308 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1312 if { (eval echo configure:1313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1316 echo "configure: failed program was:" >&5
1317 cat conftest.$ac_ext >&5
1319 ac_cv_header_stdc=no
1327 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1328 if test $ac_cv_header_stdc = yes; then
1329 cat >> confdefs.h <<\EOF
1330 #define STDC_HEADERS 1
1339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_hdr" >&5
1342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 cat > conftest.$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1351 { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1353 if test -z "$ac_err"; then
1355 eval "ac_cv_header_$ac_safe=yes"
1358 echo "configure: failed program was:" >&5
1359 cat conftest.$ac_ext >&5
1361 eval "ac_cv_header_$ac_safe=no"
1365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1366 echo "$ac_t""yes" 1>&6
1367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1368 cat >> confdefs.h <<EOF
1369 #define $ac_tr_hdr 1
1371 ac_gmp_headers="yes"
1373 echo "$ac_t""no" 1>&6
1378 if test "$ac_gmp_headers" != yes; then
1379 { echo "configure: error: "GNU multiprecission gmp header file not found"" 1>&2; exit 1; }
1385 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1386 echo "configure:1387: checking for main in -lgmp" >&5
1387 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 ac_save_LIBS="$LIBS"
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1401 if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1403 eval "ac_cv_lib_$ac_lib_var=yes"
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1408 eval "ac_cv_lib_$ac_lib_var=no"
1411 LIBS="$ac_save_LIBS"
1414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1415 echo "$ac_t""yes" 1>&6
1416 ac_gmp_library="yes"
1418 echo "$ac_t""no" 1>&6
1422 if test "$ac_gmp_library" != yes; then
1423 echo $ac_gmp_library
1424 { echo "configure: error: "GNU multiprecission gmp library not found"" 1>&2; exit 1; }
1435 cat > confcache <<\EOF
1436 # This file is a shell script that caches the results of configure
1437 # tests run on this system so they can be shared between configure
1438 # scripts and configure runs. It is not useful on other systems.
1439 # If it contains results you don't want to keep, you may remove or edit it.
1441 # By default, configure uses ./config.cache as the cache file,
1442 # creating it if it does not exist already. You can give configure
1443 # the --cache-file=FILE option to use a different cache file; that is
1444 # what configure does when it calls configure scripts in
1445 # subdirectories, so they share the cache.
1446 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1447 # config.status only pays attention to the cache file if you give it the
1448 # --recheck option to rerun configure.
1451 # The following way of writing the cache mishandles newlines in values,
1452 # but we know of no workaround that is simple, portable, and efficient.
1453 # So, don't put newlines in cache variables' values.
1454 # Ultrix sh set writes to stderr and can't be redirected directly,
1455 # and sets the high bit in the cache file unless we assign to the vars.
1457 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1459 # `set' does not quote correctly, so add quotes (double-quote substitution
1460 # turns \\\\ into \\, and sed turns \\ into \).
1462 -e "s/'/'\\\\''/g" \
1463 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1466 # `set' quotes correctly as required by POSIX, so do not add quotes.
1467 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1470 if cmp -s $cache_file confcache; then
1473 if test -w $cache_file; then
1474 echo "updating cache $cache_file"
1475 cat confcache > $cache_file
1477 echo "not updating unwritable cache $cache_file"
1482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1485 # Let make expand exec_prefix.
1486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1488 # Any assignment to VPATH causes Sun make to only execute
1489 # the first set of double-colon rules, so remove it if not needed.
1490 # If there is a colon in the path, we need to keep it.
1491 if test "x$srcdir" = x.; then
1492 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1495 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1497 DEFS=-DHAVE_CONFIG_H
1499 # Without the "./", some shells look in PATH for config.status.
1500 : ${CONFIG_STATUS=./config.status}
1502 echo creating $CONFIG_STATUS
1503 rm -f $CONFIG_STATUS
1504 cat > $CONFIG_STATUS <<EOF
1506 # Generated automatically by configure.
1507 # Run this file to recreate the current configuration.
1508 # This directory was configured as follows,
1509 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1511 # $0 $ac_configure_args
1513 # Compiler output produced by configure, useful for debugging
1514 # configure, is in ./config.log if it exists.
1516 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1519 case "\$ac_option" in
1520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1521 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1522 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1523 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1524 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1526 -help | --help | --hel | --he | --h)
1527 echo "\$ac_cs_usage"; exit 0 ;;
1528 *) echo "\$ac_cs_usage"; exit 1 ;;
1532 ac_given_srcdir=$srcdir
1533 ac_given_INSTALL="$INSTALL"
1535 trap 'rm -fr `echo "$ac_output_file config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1537 cat >> $CONFIG_STATUS <<EOF
1539 # Protect against being on the right side of a sed subst in config.status.
1540 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1541 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1545 s%@CFLAGS@%$CFLAGS%g
1546 s%@CPPFLAGS@%$CPPFLAGS%g
1547 s%@CXXFLAGS@%$CXXFLAGS%g
1548 s%@FFLAGS@%$FFLAGS%g
1550 s%@LDFLAGS@%$LDFLAGS%g
1552 s%@exec_prefix@%$exec_prefix%g
1553 s%@prefix@%$prefix%g
1554 s%@program_transform_name@%$program_transform_name%g
1555 s%@bindir@%$bindir%g
1556 s%@sbindir@%$sbindir%g
1557 s%@libexecdir@%$libexecdir%g
1558 s%@datadir@%$datadir%g
1559 s%@sysconfdir@%$sysconfdir%g
1560 s%@sharedstatedir@%$sharedstatedir%g
1561 s%@localstatedir@%$localstatedir%g
1562 s%@libdir@%$libdir%g
1563 s%@includedir@%$includedir%g
1564 s%@oldincludedir@%$oldincludedir%g
1565 s%@infodir@%$infodir%g
1566 s%@mandir@%$mandir%g
1567 s%@libfirm_conf_env@%$libfirm_conf_env%g
1568 s%@enable_debug_libfirm@%$enable_debug_libfirm%g
1569 s%@enable_profile_libfirm@%$enable_profile_libfirm%g
1572 s%@host_alias@%$host_alias%g
1573 s%@host_cpu@%$host_cpu%g
1574 s%@host_vendor@%$host_vendor%g
1575 s%@host_os@%$host_os%g
1577 s%@build_alias@%$build_alias%g
1578 s%@build_cpu@%$build_cpu%g
1579 s%@build_vendor@%$build_vendor%g
1580 s%@build_os@%$build_os%g
1582 s%@libfirm_cv_prog_ld_r@%$libfirm_cv_prog_ld_r%g
1584 s%@RANLIB@%$RANLIB%g
1585 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1586 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1587 s%@INSTALL_DATA@%$INSTALL_DATA%g
1593 cat >> $CONFIG_STATUS <<\EOF
1595 # Split the substitutions into bite-sized pieces for seds with
1596 # small command number limits, like on Digital OSF/1 and HP-UX.
1597 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1598 ac_file=1 # Number of current file.
1599 ac_beg=1 # First line for current file.
1600 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1603 while $ac_more_lines; do
1604 if test $ac_beg -gt 1; then
1605 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1607 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1609 if test ! -s conftest.s$ac_file; then
1611 rm -f conftest.s$ac_file
1613 if test -z "$ac_sed_cmds"; then
1614 ac_sed_cmds="sed -f conftest.s$ac_file"
1616 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1618 ac_file=`expr $ac_file + 1`
1620 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1623 if test -z "$ac_sed_cmds"; then
1628 cat >> $CONFIG_STATUS <<EOF
1630 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_file"}
1632 cat >> $CONFIG_STATUS <<\EOF
1633 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1636 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1637 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1638 *) ac_file_in="${ac_file}.in" ;;
1641 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1643 # Remove last slash and all that follows it. Not all systems have dirname.
1644 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1645 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1646 # The file is in a subdirectory.
1647 test ! -d "$ac_dir" && mkdir "$ac_dir"
1648 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1649 # A "../" for each directory in $ac_dir_suffix.
1650 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1652 ac_dir_suffix= ac_dots=
1655 case "$ac_given_srcdir" in
1657 if test -z "$ac_dots"; then top_srcdir=.
1658 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1659 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1661 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1662 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1665 case "$ac_given_INSTALL" in
1666 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1667 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1670 echo creating "$ac_file"
1672 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1674 *Makefile*) ac_comsub="1i\\
1675 # $configure_input" ;;
1679 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1681 s%@configure_input@%$configure_input%g
1682 s%@srcdir@%$srcdir%g
1683 s%@top_srcdir@%$top_srcdir%g
1684 s%@INSTALL@%$INSTALL%g
1685 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1689 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1690 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1692 # ac_d sets the value in "#define NAME VALUE" lines.
1693 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1694 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1697 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1698 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1699 ac_uB='\([ ]\)%\1#\2define\3'
1702 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1703 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1704 ac_eB='$%\1#\2define\3'
1708 if test "${CONFIG_HEADERS+set}" != set; then
1710 cat >> $CONFIG_STATUS <<EOF
1711 CONFIG_HEADERS="config.h"
1713 cat >> $CONFIG_STATUS <<\EOF
1715 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1718 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1719 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1720 *) ac_file_in="${ac_file}.in" ;;
1723 echo creating $ac_file
1725 rm -f conftest.frag conftest.in conftest.out
1726 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1727 cat $ac_file_inputs > conftest.in
1731 # Transform confdefs.h into a sed script conftest.vals that substitutes
1732 # the proper values into config.h.in to produce config.h. And first:
1733 # Protect against being on the right side of a sed subst in config.status.
1734 # Protect against being in an unquoted here document in config.status.
1736 cat > conftest.hdr <<\EOF
1739 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1743 sed -n -f conftest.hdr confdefs.h > conftest.vals
1746 # This sed command replaces #undef with comments. This is necessary, for
1747 # example, in the case of _POSIX_SOURCE, which is predefined and required
1748 # on some systems where configure will not decide to define it.
1749 cat >> conftest.vals <<\EOF
1750 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1753 # Break up conftest.vals because some shells have a limit on
1754 # the size of here documents, and old seds have small limits too.
1759 ac_lines=`grep -c . conftest.vals`
1760 # grep -c gives empty output for an empty file on some AIX systems.
1761 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1762 # Write a limited-size here document to conftest.frag.
1763 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1764 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1766 sed -f conftest.frag conftest.in > conftest.out
1768 mv conftest.out conftest.in
1770 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1772 mv conftest.tail conftest.vals
1776 cat >> $CONFIG_STATUS <<\EOF
1777 rm -f conftest.frag conftest.h
1778 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1779 cat conftest.in >> conftest.h
1781 if cmp -s $ac_file conftest.h 2>/dev/null; then
1782 echo "$ac_file is unchanged"
1785 # Remove last slash and all that follows it. Not all systems have dirname.
1786 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1787 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1788 # The file is in a subdirectory.
1789 test ! -d "$ac_dir" && mkdir "$ac_dir"
1792 mv conftest.h $ac_file
1797 cat >> $CONFIG_STATUS <<EOF
1800 cat >> $CONFIG_STATUS <<\EOF
1804 chmod +x $CONFIG_STATUS
1805 rm -fr confdefs* $ac_clean_files
1806 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1