created file TODO
[libfirm] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
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.
18 #
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
21
22 # Defaults:
23 ac_help=
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_help="$ac_help
27   --enable-debug          enable assertions and additional debugging routines"
28 ac_help="$ac_help
29   --enable-profile        enable profiling"
30 ac_help="$ac_help
31   --enable-autodoc        enable auto documentation"
32
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
36 build=NONE
37 cache_file=./config.cache
38 exec_prefix=NONE
39 host=NONE
40 no_create=
41 nonopt=NONE
42 no_recursion=
43 prefix=NONE
44 program_prefix=NONE
45 program_suffix=NONE
46 program_transform_name=s,x,x,
47 silent=
48 site=
49 srcdir=
50 target=NONE
51 verbose=
52 x_includes=NONE
53 x_libraries=NONE
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
66
67 # Initialize some other variables.
68 subdirs=
69 MFLAGS= MAKEFLAGS=
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
72 ac_max_here_lines=12
73
74 ac_prev=
75 for ac_option
76 do
77
78   # If the previous option needs an argument, assign it.
79   if test -n "$ac_prev"; then
80     eval "$ac_prev=\$ac_option"
81     ac_prev=
82     continue
83   fi
84
85   case "$ac_option" in
86   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87   *) ac_optarg= ;;
88   esac
89
90   # Accept the important Cygnus configure options, so we can diagnose typos.
91
92   case "$ac_option" in
93
94   -bindir | --bindir | --bindi | --bind | --bin | --bi)
95     ac_prev=bindir ;;
96   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97     bindir="$ac_optarg" ;;
98
99   -build | --build | --buil | --bui | --bu)
100     ac_prev=build ;;
101   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102     build="$ac_optarg" ;;
103
104   -cache-file | --cache-file | --cache-fil | --cache-fi \
105   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106     ac_prev=cache_file ;;
107   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109     cache_file="$ac_optarg" ;;
110
111   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112     ac_prev=datadir ;;
113   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114   | --da=*)
115     datadir="$ac_optarg" ;;
116
117   -disable-* | --disable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     eval "enable_${ac_feature}=no" ;;
125
126   -enable-* | --enable-*)
127     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128     # Reject names that are not valid shell variable names.
129     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131     fi
132     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133     case "$ac_option" in
134       *=*) ;;
135       *) ac_optarg=yes ;;
136     esac
137     eval "enable_${ac_feature}='$ac_optarg'" ;;
138
139   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141   | --exec | --exe | --ex)
142     ac_prev=exec_prefix ;;
143   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145   | --exec=* | --exe=* | --ex=*)
146     exec_prefix="$ac_optarg" ;;
147
148   -gas | --gas | --ga | --g)
149     # Obsolete; use --with-gas.
150     with_gas=yes ;;
151
152   -help | --help | --hel | --he)
153     # Omit some internal or obsolete options to make the list less imposing.
154     # This message is too long to be a string in the A/UX 3.1 sh.
155     cat << EOF
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
158 Configuration:
159   --cache-file=FILE       cache test results in FILE
160   --help                  print this message
161   --no-create             do not create output files
162   --quiet, --silent       do not print \`checking...' messages
163   --version               print the version of autoconf that created configure
164 Directory and file names:
165   --prefix=PREFIX         install architecture-independent files in PREFIX
166                           [$ac_default_prefix]
167   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
168                           [same as prefix]
169   --bindir=DIR            user executables in DIR [EPREFIX/bin]
170   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
171   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
172   --datadir=DIR           read-only architecture-independent data in DIR
173                           [PREFIX/share]
174   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
175   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
176                           [PREFIX/com]
177   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
178   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
179   --includedir=DIR        C header files in DIR [PREFIX/include]
180   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
181   --infodir=DIR           info documentation in DIR [PREFIX/info]
182   --mandir=DIR            man documentation in DIR [PREFIX/man]
183   --srcdir=DIR            find the sources in DIR [configure dir or ..]
184   --program-prefix=PREFIX prepend PREFIX to installed program names
185   --program-suffix=SUFFIX append SUFFIX to installed program names
186   --program-transform-name=PROGRAM
187                           run sed PROGRAM on installed program names
188 EOF
189     cat << EOF
190 Host type:
191   --build=BUILD           configure for building on BUILD [BUILD=HOST]
192   --host=HOST             configure for HOST [guessed]
193   --target=TARGET         configure for TARGET [TARGET=HOST]
194 Features and packages:
195   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
196   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
197   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
198   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
199   --x-includes=DIR        X include files are in DIR
200   --x-libraries=DIR       X library files are in DIR
201 EOF
202     if test -n "$ac_help"; then
203       echo "--enable and --with options recognized:$ac_help"
204     fi
205     exit 0 ;;
206
207   -host | --host | --hos | --ho)
208     ac_prev=host ;;
209   -host=* | --host=* | --hos=* | --ho=*)
210     host="$ac_optarg" ;;
211
212   -includedir | --includedir | --includedi | --included | --include \
213   | --includ | --inclu | --incl | --inc)
214     ac_prev=includedir ;;
215   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216   | --includ=* | --inclu=* | --incl=* | --inc=*)
217     includedir="$ac_optarg" ;;
218
219   -infodir | --infodir | --infodi | --infod | --info | --inf)
220     ac_prev=infodir ;;
221   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222     infodir="$ac_optarg" ;;
223
224   -libdir | --libdir | --libdi | --libd)
225     ac_prev=libdir ;;
226   -libdir=* | --libdir=* | --libdi=* | --libd=*)
227     libdir="$ac_optarg" ;;
228
229   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230   | --libexe | --libex | --libe)
231     ac_prev=libexecdir ;;
232   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233   | --libexe=* | --libex=* | --libe=*)
234     libexecdir="$ac_optarg" ;;
235
236   -localstatedir | --localstatedir | --localstatedi | --localstated \
237   | --localstate | --localstat | --localsta | --localst \
238   | --locals | --local | --loca | --loc | --lo)
239     ac_prev=localstatedir ;;
240   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243     localstatedir="$ac_optarg" ;;
244
245   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246     ac_prev=mandir ;;
247   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248     mandir="$ac_optarg" ;;
249
250   -nfp | --nfp | --nf)
251     # Obsolete; use --without-fp.
252     with_fp=no ;;
253
254   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255   | --no-cr | --no-c)
256     no_create=yes ;;
257
258   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260     no_recursion=yes ;;
261
262   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264   | --oldin | --oldi | --old | --ol | --o)
265     ac_prev=oldincludedir ;;
266   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269     oldincludedir="$ac_optarg" ;;
270
271   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272     ac_prev=prefix ;;
273   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274     prefix="$ac_optarg" ;;
275
276   -program-prefix | --program-prefix | --program-prefi | --program-pref \
277   | --program-pre | --program-pr | --program-p)
278     ac_prev=program_prefix ;;
279   -program-prefix=* | --program-prefix=* | --program-prefi=* \
280   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281     program_prefix="$ac_optarg" ;;
282
283   -program-suffix | --program-suffix | --program-suffi | --program-suff \
284   | --program-suf | --program-su | --program-s)
285     ac_prev=program_suffix ;;
286   -program-suffix=* | --program-suffix=* | --program-suffi=* \
287   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288     program_suffix="$ac_optarg" ;;
289
290   -program-transform-name | --program-transform-name \
291   | --program-transform-nam | --program-transform-na \
292   | --program-transform-n | --program-transform- \
293   | --program-transform | --program-transfor \
294   | --program-transfo | --program-transf \
295   | --program-trans | --program-tran \
296   | --progr-tra | --program-tr | --program-t)
297     ac_prev=program_transform_name ;;
298   -program-transform-name=* | --program-transform-name=* \
299   | --program-transform-nam=* | --program-transform-na=* \
300   | --program-transform-n=* | --program-transform-=* \
301   | --program-transform=* | --program-transfor=* \
302   | --program-transfo=* | --program-transf=* \
303   | --program-trans=* | --program-tran=* \
304   | --progr-tra=* | --program-tr=* | --program-t=*)
305     program_transform_name="$ac_optarg" ;;
306
307   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308   | -silent | --silent | --silen | --sile | --sil)
309     silent=yes ;;
310
311   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312     ac_prev=sbindir ;;
313   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314   | --sbi=* | --sb=*)
315     sbindir="$ac_optarg" ;;
316
317   -sharedstatedir | --sharedstatedir | --sharedstatedi \
318   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319   | --sharedst | --shareds | --shared | --share | --shar \
320   | --sha | --sh)
321     ac_prev=sharedstatedir ;;
322   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325   | --sha=* | --sh=*)
326     sharedstatedir="$ac_optarg" ;;
327
328   -site | --site | --sit)
329     ac_prev=site ;;
330   -site=* | --site=* | --sit=*)
331     site="$ac_optarg" ;;
332
333   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334     ac_prev=srcdir ;;
335   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336     srcdir="$ac_optarg" ;;
337
338   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339   | --syscon | --sysco | --sysc | --sys | --sy)
340     ac_prev=sysconfdir ;;
341   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343     sysconfdir="$ac_optarg" ;;
344
345   -target | --target | --targe | --targ | --tar | --ta | --t)
346     ac_prev=target ;;
347   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348     target="$ac_optarg" ;;
349
350   -v | -verbose | --verbose | --verbos | --verbo | --verb)
351     verbose=yes ;;
352
353   -version | --version | --versio | --versi | --vers)
354     echo "configure generated by autoconf version 2.13"
355     exit 0 ;;
356
357   -with-* | --with-*)
358     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359     # Reject names that are not valid shell variable names.
360     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362     fi
363     ac_package=`echo $ac_package| sed 's/-/_/g'`
364     case "$ac_option" in
365       *=*) ;;
366       *) ac_optarg=yes ;;
367     esac
368     eval "with_${ac_package}='$ac_optarg'" ;;
369
370   -without-* | --without-*)
371     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     eval "with_${ac_package}=no" ;;
378
379   --x)
380     # Obsolete; use --with-x.
381     with_x=yes ;;
382
383   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384   | --x-incl | --x-inc | --x-in | --x-i)
385     ac_prev=x_includes ;;
386   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388     x_includes="$ac_optarg" ;;
389
390   -x-libraries | --x-libraries | --x-librarie | --x-librari \
391   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392     ac_prev=x_libraries ;;
393   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395     x_libraries="$ac_optarg" ;;
396
397   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398     ;;
399
400   *)
401     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402       echo "configure: warning: $ac_option: invalid host type" 1>&2
403     fi
404     if test "x$nonopt" != xNONE; then
405       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406     fi
407     nonopt="$ac_option"
408     ;;
409
410   esac
411 done
412
413 if test -n "$ac_prev"; then
414   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 fi
416
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
419 # File descriptor usage:
420 # 0 standard input
421 # 1 file creation
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
428   exec 6>/dev/null
429 else
430   exec 6>&1
431 fi
432 exec 5>./config.log
433
434 echo "\
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
437 " 1>&5
438
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
441 ac_configure_args=
442 for ac_arg
443 do
444   case "$ac_arg" in
445   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446   | --no-cr | --no-c) ;;
447   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452   esac
453 done
454
455 # NLS nuisances.
456 # Only set these to C if already set.  These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
464
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 echo > confdefs.h
469
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=ir/ir/ircons.c
473
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476   ac_srcdir_defaulted=yes
477   # Try the directory containing this script, then its parent.
478   ac_prog=$0
479   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481   srcdir=$ac_confdir
482   if test ! -r $srcdir/$ac_unique_file; then
483     srcdir=..
484   fi
485 else
486   ac_srcdir_defaulted=no
487 fi
488 if test ! -r $srcdir/$ac_unique_file; then
489   if test "$ac_srcdir_defaulted" = yes; then
490     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491   else
492     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493   fi
494 fi
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499   if test "x$prefix" != xNONE; then
500     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501   else
502     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503   fi
504 fi
505 for ac_site_file in $CONFIG_SITE; do
506   if test -r "$ac_site_file"; then
507     echo "loading site script $ac_site_file"
508     . "$ac_site_file"
509   fi
510 done
511
512 if test -r "$cache_file"; then
513   echo "loading cache $cache_file"
514   . $cache_file
515 else
516   echo "creating cache $cache_file"
517   > $cache_file
518 fi
519
520 ac_ext=c
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
526
527 ac_exeext=
528 ac_objext=o
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532     ac_n= ac_c='
533 ' ac_t='        '
534   else
535     ac_n=-n ac_c= ac_t=
536   fi
537 else
538   ac_n= ac_c='\c' ac_t=
539 fi
540
541 ac_aux_dir=
542 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
543   if test -f $ac_dir/install-sh; then
544     ac_aux_dir=$ac_dir
545     ac_install_sh="$ac_aux_dir/install-sh -c"
546     break
547   elif test -f $ac_dir/install.sh; then
548     ac_aux_dir=$ac_dir
549     ac_install_sh="$ac_aux_dir/install.sh -c"
550     break
551   fi
552 done
553 if test -z "$ac_aux_dir"; then
554   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 fi
556 ac_config_guess=$ac_aux_dir/config.guess
557 ac_config_sub=$ac_aux_dir/config.sub
558 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559
560
561
562 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
563                 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
564                 ir/tr/Makefile testprograms/Makefile"
565
566
567
568 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
569
570
571
572
573 # Check whether --enable-debug or --disable-debug was given.
574 if test "${enable_debug+set}" = set; then
575   enableval="$enable_debug"
576   if test "$enableval" = yes; then
577   cat >> confdefs.h <<\EOF
578 #define DEBUG_libfirm 1
579 EOF
580
581 else
582   cat >> confdefs.h <<\EOF
583 #define NDEBUG 1
584 EOF
585
586 fi
587 fi
588
589
590
591
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
597 fi
598 else
599   enable_profile_libfirm=no
600 fi
601
602
603
604 # Check whether --enable-autodoc or --disable-autodoc was given.
605 if test "${enable_autodoc+set}" = set; then
606   enableval="$enable_autodoc"
607   if test "$enableval"=yes; then
608   enable_auto_documentation=yes
609 fi
610 else
611   enable_auto_documentation=no
612 fi
613
614
615
616
617
618 # Extract the first word of "gcc", so it can be a program name with args.
619 set dummy gcc; 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
624 else
625   if test -n "$CC"; then
626   ac_cv_prog_CC="$CC" # Let the user override the test.
627 else
628   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
629   ac_dummy="$PATH"
630   for ac_dir in $ac_dummy; do
631     test -z "$ac_dir" && ac_dir=.
632     if test -f $ac_dir/$ac_word; then
633       ac_cv_prog_CC="gcc"
634       break
635     fi
636   done
637   IFS="$ac_save_ifs"
638 fi
639 fi
640 CC="$ac_cv_prog_CC"
641 if test -n "$CC"; then
642   echo "$ac_t""$CC" 1>&6
643 else
644   echo "$ac_t""no" 1>&6
645 fi
646
647 if test -z "$CC"; then
648   # Extract the first word of "cc", so it can be a program name with args.
649 set dummy cc; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653   echo $ac_n "(cached) $ac_c" 1>&6
654 else
655   if test -n "$CC"; then
656   ac_cv_prog_CC="$CC" # Let the user override the test.
657 else
658   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
659   ac_prog_rejected=no
660   ac_dummy="$PATH"
661   for ac_dir in $ac_dummy; do
662     test -z "$ac_dir" && ac_dir=.
663     if test -f $ac_dir/$ac_word; then
664       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
665         ac_prog_rejected=yes
666         continue
667       fi
668       ac_cv_prog_CC="cc"
669       break
670     fi
671   done
672   IFS="$ac_save_ifs"
673 if test $ac_prog_rejected = yes; then
674   # We found a bogon in the path, so make sure we never use it.
675   set dummy $ac_cv_prog_CC
676   shift
677   if test $# -gt 0; then
678     # We chose a different compiler from the bogus one.
679     # However, it has the same basename, so the bogon will be chosen
680     # first if we set CC to just the basename; use the full file name.
681     shift
682     set dummy "$ac_dir/$ac_word" "$@"
683     shift
684     ac_cv_prog_CC="$@"
685   fi
686 fi
687 fi
688 fi
689 CC="$ac_cv_prog_CC"
690 if test -n "$CC"; then
691   echo "$ac_t""$CC" 1>&6
692 else
693   echo "$ac_t""no" 1>&6
694 fi
695
696   if test -z "$CC"; then
697     case "`uname -s`" in
698     *win32* | *WIN32*)
699       # Extract the first word of "cl", so it can be a program name with args.
700 set dummy cl; ac_word=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704   echo $ac_n "(cached) $ac_c" 1>&6
705 else
706   if test -n "$CC"; then
707   ac_cv_prog_CC="$CC" # Let the user override the test.
708 else
709   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
710   ac_dummy="$PATH"
711   for ac_dir in $ac_dummy; do
712     test -z "$ac_dir" && ac_dir=.
713     if test -f $ac_dir/$ac_word; then
714       ac_cv_prog_CC="cl"
715       break
716     fi
717   done
718   IFS="$ac_save_ifs"
719 fi
720 fi
721 CC="$ac_cv_prog_CC"
722 if test -n "$CC"; then
723   echo "$ac_t""$CC" 1>&6
724 else
725   echo "$ac_t""no" 1>&6
726 fi
727  ;;
728     esac
729   fi
730   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
731 fi
732
733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
735
736 ac_ext=c
737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
738 ac_cpp='$CPP $CPPFLAGS'
739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
741 cross_compiling=$ac_cv_prog_cc_cross
742
743 cat > conftest.$ac_ext << EOF
744
745 #line 746 "configure"
746 #include "confdefs.h"
747
748 main(){return(0);}
749 EOF
750 if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
751   ac_cv_prog_cc_works=yes
752   # If we can't run a trivial program, we are probably using a cross compiler.
753   if (./conftest; exit) 2>/dev/null; then
754     ac_cv_prog_cc_cross=no
755   else
756     ac_cv_prog_cc_cross=yes
757   fi
758 else
759   echo "configure: failed program was:" >&5
760   cat conftest.$ac_ext >&5
761   ac_cv_prog_cc_works=no
762 fi
763 rm -fr conftest*
764 ac_ext=c
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
770
771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
772 if test $ac_cv_prog_cc_works = no; then
773   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
774 fi
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
778 cross_compiling=$ac_cv_prog_cc_cross
779
780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
781 echo "configure:782: checking whether we are using GNU C" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
783   echo $ac_n "(cached) $ac_c" 1>&6
784 else
785   cat > conftest.c <<EOF
786 #ifdef __GNUC__
787   yes;
788 #endif
789 EOF
790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
791   ac_cv_prog_gcc=yes
792 else
793   ac_cv_prog_gcc=no
794 fi
795 fi
796
797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
798
799 if test $ac_cv_prog_gcc = yes; then
800   GCC=yes
801 else
802   GCC=
803 fi
804
805 ac_test_CFLAGS="${CFLAGS+set}"
806 ac_save_CFLAGS="$CFLAGS"
807 CFLAGS=
808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
809 echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
811   echo $ac_n "(cached) $ac_c" 1>&6
812 else
813   echo 'void f(){}' > conftest.c
814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
815   ac_cv_prog_cc_g=yes
816 else
817   ac_cv_prog_cc_g=no
818 fi
819 rm -f conftest*
820
821 fi
822
823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
824 if test "$ac_test_CFLAGS" = set; then
825   CFLAGS="$ac_save_CFLAGS"
826 elif test $ac_cv_prog_cc_g = yes; then
827   if test "$GCC" = yes; then
828     CFLAGS="-g -O2"
829   else
830     CFLAGS="-g"
831   fi
832 else
833   if test "$GCC" = yes; then
834     CFLAGS="-O2"
835   else
836     CFLAGS=
837   fi
838 fi
839
840
841
842 # Make sure we can run config.sub.
843 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
844 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
845 fi
846
847 echo $ac_n "checking host system type""... $ac_c" 1>&6
848 echo "configure:849: checking host system type" >&5
849
850 host_alias=$host
851 case "$host_alias" in
852 NONE)
853   case $nonopt in
854   NONE)
855     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
856     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
857     fi ;;
858   *) host_alias=$nonopt ;;
859   esac ;;
860 esac
861
862 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
863 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
864 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
865 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
866 echo "$ac_t""$host" 1>&6
867
868 echo $ac_n "checking build system type""... $ac_c" 1>&6
869 echo "configure:870: checking build system type" >&5
870
871 build_alias=$build
872 case "$build_alias" in
873 NONE)
874   case $nonopt in
875   NONE) build_alias=$host_alias ;;
876   *) build_alias=$nonopt ;;
877   esac ;;
878 esac
879
880 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
881 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
882 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
883 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
884 echo "$ac_t""$build" 1>&6
885
886 if test $host != $build; then
887   ac_tool_prefix=${host_alias}-
888 else
889   ac_tool_prefix=
890 fi
891
892 if test -z "$LD" && test "$GCC" = yes; then
893   # Extract the first word of "${ac_tool_prefix}gld", so it can be a program name with args.
894 set dummy ${ac_tool_prefix}gld; ac_word=$2
895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
896 echo "configure:897: checking for $ac_word" >&5
897 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
898   echo $ac_n "(cached) $ac_c" 1>&6
899 else
900   if test -n "$LD"; then
901   ac_cv_prog_LD="$LD" # Let the user override the test.
902 else
903   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
904   ac_dummy="$PATH"
905   for ac_dir in $ac_dummy; do
906     test -z "$ac_dir" && ac_dir=.
907     if test -f $ac_dir/$ac_word; then
908       ac_cv_prog_LD="${ac_tool_prefix}gld"
909       break
910     fi
911   done
912   IFS="$ac_save_ifs"
913 fi
914 fi
915 LD="$ac_cv_prog_LD"
916 if test -n "$LD"; then
917   echo "$ac_t""$LD" 1>&6
918 else
919   echo "$ac_t""no" 1>&6
920 fi
921
922
923 if test -z "$ac_cv_prog_LD"; then
924 if test -n "$ac_tool_prefix"; then
925   # Extract the first word of "gld", so it can be a program name with args.
926 set dummy gld; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
930   echo $ac_n "(cached) $ac_c" 1>&6
931 else
932   if test -n "$LD"; then
933   ac_cv_prog_LD="$LD" # Let the user override the test.
934 else
935   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
936   ac_dummy="$PATH"
937   for ac_dir in $ac_dummy; do
938     test -z "$ac_dir" && ac_dir=.
939     if test -f $ac_dir/$ac_word; then
940       ac_cv_prog_LD="gld"
941       break
942     fi
943   done
944   IFS="$ac_save_ifs"
945   test -z "$ac_cv_prog_LD" && ac_cv_prog_LD=""""
946 fi
947 fi
948 LD="$ac_cv_prog_LD"
949 if test -n "$LD"; then
950   echo "$ac_t""$LD" 1>&6
951 else
952   echo "$ac_t""no" 1>&6
953 fi
954
955 else
956   LD=""""
957 fi
958 fi
959
960 fi
961 if test -z "$LD"; then
962   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
963 set dummy ${ac_tool_prefix}ld; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
967   echo $ac_n "(cached) $ac_c" 1>&6
968 else
969   if test -n "$LD"; then
970   ac_cv_prog_LD="$LD" # Let the user override the test.
971 else
972   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
973   ac_dummy="$PATH"
974   for ac_dir in $ac_dummy; do
975     test -z "$ac_dir" && ac_dir=.
976     if test -f $ac_dir/$ac_word; then
977       ac_cv_prog_LD="${ac_tool_prefix}ld"
978       break
979     fi
980   done
981   IFS="$ac_save_ifs"
982   test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
983 fi
984 fi
985 LD="$ac_cv_prog_LD"
986 if test -n "$LD"; then
987   echo "$ac_t""$LD" 1>&6
988 else
989   echo "$ac_t""no" 1>&6
990 fi
991
992
993
994 fi
995
996 echo $ac_n "checking whether $LD accepts -r""... $ac_c" 1>&6
997 echo "configure:998: checking whether $LD accepts -r" >&5
998 if eval "test \"`echo '$''{'libfirm_cv_prog_ld_r'+set}'`\" = set"; then
999   echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001
1002 libfirm_cv_prog_ld_r=no
1003 if test "$LD"; then
1004   cat > conftest.$ac_ext <<EOF
1005 int foo() { return 0; }
1006 EOF
1007   if eval $ac_compile && mv conftest.o conftest2.o; then
1008     cat > conftest.$ac_ext <<EOF
1009 int main() { return foo(); }
1010 EOF
1011     if eval $ac_compile; then
1012       if $LD -r -o conftest conftest.o conftest2.o; then
1013         libfirm_cv_prog_ld_r=yes
1014       fi
1015     fi
1016   fi
1017 fi
1018 rm -f conftest*
1019 fi
1020
1021 echo "$ac_t""$libfirm_cv_prog_ld_r" 1>&6
1022
1023
1024 if test "$libfirm_cv_prog_ld_r" != "yes"; then
1025   { echo "configure: error: need a prelinkcapable linker" 1>&2; exit 1; }
1026 fi
1027
1028 # Extract the first word of "ar", so it can be a program name with args.
1029 set dummy ar; ac_word=$2
1030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1031 echo "configure:1032: checking for $ac_word" >&5
1032 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1033   echo $ac_n "(cached) $ac_c" 1>&6
1034 else
1035   if test -n "$AR"; then
1036   ac_cv_prog_AR="$AR" # Let the user override the test.
1037 else
1038   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1039   ac_dummy="$PATH"
1040   for ac_dir in $ac_dummy; do
1041     test -z "$ac_dir" && ac_dir=.
1042     if test -f $ac_dir/$ac_word; then
1043       ac_cv_prog_AR=""ar""
1044       break
1045     fi
1046   done
1047   IFS="$ac_save_ifs"
1048   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
1049 fi
1050 fi
1051 AR="$ac_cv_prog_AR"
1052 if test -n "$AR"; then
1053   echo "$ac_t""$AR" 1>&6
1054 else
1055   echo "$ac_t""no" 1>&6
1056 fi
1057
1058 if test "$AR" != "ar"; then
1059   { echo "configure: error: need ar for creating archives" 1>&2; exit 1; }
1060 fi
1061
1062 # Extract the first word of "tar", so it can be a program name with args.
1063 set dummy tar; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1067   echo $ac_n "(cached) $ac_c" 1>&6
1068 else
1069   if test -n "$TAR"; then
1070   ac_cv_prog_TAR="$TAR" # Let the user override the test.
1071 else
1072   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1073   ac_dummy="$PATH"
1074   for ac_dir in $ac_dummy; do
1075     test -z "$ac_dir" && ac_dir=.
1076     if test -f $ac_dir/$ac_word; then
1077       ac_cv_prog_TAR=""tar""
1078       break
1079     fi
1080   done
1081   IFS="$ac_save_ifs"
1082   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
1083 fi
1084 fi
1085 TAR="$ac_cv_prog_TAR"
1086 if test -n "$TAR"; then
1087   echo "$ac_t""$TAR" 1>&6
1088 else
1089   echo "$ac_t""no" 1>&6
1090 fi
1091
1092 if test "$TAR" != "tar"; then
1093   { echo "configure: error: need tar for creating archives in distribution" 1>&2; exit 1; }
1094 fi
1095
1096
1097 # Extract the first word of "ranlib", so it can be a program name with args.
1098 set dummy ranlib; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1102   echo $ac_n "(cached) $ac_c" 1>&6
1103 else
1104   if test -n "$RANLIB"; then
1105   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1106 else
1107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1108   ac_dummy="$PATH"
1109   for ac_dir in $ac_dummy; do
1110     test -z "$ac_dir" && ac_dir=.
1111     if test -f $ac_dir/$ac_word; then
1112       ac_cv_prog_RANLIB="ranlib"
1113       break
1114     fi
1115   done
1116   IFS="$ac_save_ifs"
1117   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1118 fi
1119 fi
1120 RANLIB="$ac_cv_prog_RANLIB"
1121 if test -n "$RANLIB"; then
1122   echo "$ac_t""$RANLIB" 1>&6
1123 else
1124   echo "$ac_t""no" 1>&6
1125 fi
1126
1127
1128 # Find a good install program.  We prefer a C program (faster),
1129 # so one script is as good as another.  But avoid the broken or
1130 # incompatible versions:
1131 # SysV /etc/install, /usr/sbin/install
1132 # SunOS /usr/etc/install
1133 # IRIX /sbin/install
1134 # AIX /bin/install
1135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1138 # ./install, which can be erroneously created by make from ./install.sh.
1139 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1140 echo "configure:1141: checking for a BSD compatible install" >&5
1141 if test -z "$INSTALL"; then
1142 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1143   echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1146   for ac_dir in $PATH; do
1147     # Account for people who put trailing slashes in PATH elements.
1148     case "$ac_dir/" in
1149     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1150     *)
1151       # OSF1 and SCO ODT 3.0 have their own names for install.
1152       # Don't use installbsd from OSF since it installs stuff as root
1153       # by default.
1154       for ac_prog in ginstall scoinst install; do
1155         if test -f $ac_dir/$ac_prog; then
1156           if test $ac_prog = install &&
1157             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1158             # AIX install.  It has an incompatible calling convention.
1159             :
1160           else
1161             ac_cv_path_install="$ac_dir/$ac_prog -c"
1162             break 2
1163           fi
1164         fi
1165       done
1166       ;;
1167     esac
1168   done
1169   IFS="$ac_save_IFS"
1170
1171 fi
1172   if test "${ac_cv_path_install+set}" = set; then
1173     INSTALL="$ac_cv_path_install"
1174   else
1175     # As a last resort, use the slow shell script.  We don't cache a
1176     # path for INSTALL within a source directory, because that will
1177     # break other packages using the cache if that directory is
1178     # removed, or if the path is relative.
1179     INSTALL="$ac_install_sh"
1180   fi
1181 fi
1182 echo "$ac_t""$INSTALL" 1>&6
1183
1184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1185 # It thinks the first close brace ends the variable substitution.
1186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1187
1188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1189
1190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1191
1192
1193 if test "$enable_auto_documentation" = yes; then
1194   # Extract the first word of "robodoc", so it can be a program name with args.
1195 set dummy robodoc; ac_word=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_ROBODOC'+set}'`\" = set"; then
1199   echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201   if test -n "$ROBODOC"; then
1202   ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
1203 else
1204   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1205   ac_dummy="$PATH"
1206   for ac_dir in $ac_dummy; do
1207     test -z "$ac_dir" && ac_dir=.
1208     if test -f $ac_dir/$ac_word; then
1209       ac_cv_prog_ROBODOC=""robodoc""
1210       break
1211     fi
1212   done
1213   IFS="$ac_save_ifs"
1214   test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
1215 fi
1216 fi
1217 ROBODOC="$ac_cv_prog_ROBODOC"
1218 if test -n "$ROBODOC"; then
1219   echo "$ac_t""$ROBODOC" 1>&6
1220 else
1221   echo "$ac_t""no" 1>&6
1222 fi
1223
1224   if test "$ROBODOC" != "robodoc"; then
1225     { echo "configure: error: need robodoc for auto documentation (IPD: module add robodoc)" 1>&2; exit 1; }
1226   fi
1227 fi
1228
1229
1230 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1231 echo "configure:1232: checking how to run the C preprocessor" >&5
1232 # On Suns, sometimes $CPP names a directory.
1233 if test -n "$CPP" && test -d "$CPP"; then
1234   CPP=
1235 fi
1236 if test -z "$CPP"; then
1237 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1238   echo $ac_n "(cached) $ac_c" 1>&6
1239 else
1240     # This must be in double quotes, not single quotes, because CPP may get
1241   # substituted into the Makefile and "${CC-cc}" will confuse make.
1242   CPP="${CC-cc} -E"
1243   # On the NeXT, cc -E runs the code through the compiler's parser,
1244   # not just through cpp.
1245   cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 #include <assert.h>
1249 Syntax Error
1250 EOF
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254 if test -z "$ac_err"; then
1255   :
1256 else
1257   echo "$ac_err" >&5
1258   echo "configure: failed program was:" >&5
1259   cat conftest.$ac_ext >&5
1260   rm -rf conftest*
1261   CPP="${CC-cc} -E -traditional-cpp"
1262   cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <assert.h>
1266 Syntax Error
1267 EOF
1268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269 { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1271 if test -z "$ac_err"; then
1272   :
1273 else
1274   echo "$ac_err" >&5
1275   echo "configure: failed program was:" >&5
1276   cat conftest.$ac_ext >&5
1277   rm -rf conftest*
1278   CPP="${CC-cc} -nologo -E"
1279   cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 #include <assert.h>
1283 Syntax Error
1284 EOF
1285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1286 { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1288 if test -z "$ac_err"; then
1289   :
1290 else
1291   echo "$ac_err" >&5
1292   echo "configure: failed program was:" >&5
1293   cat conftest.$ac_ext >&5
1294   rm -rf conftest*
1295   CPP=/lib/cpp
1296 fi
1297 rm -f conftest*
1298 fi
1299 rm -f conftest*
1300 fi
1301 rm -f conftest*
1302   ac_cv_prog_CPP="$CPP"
1303 fi
1304   CPP="$ac_cv_prog_CPP"
1305 else
1306   ac_cv_prog_CPP="$CPP"
1307 fi
1308 echo "$ac_t""$CPP" 1>&6
1309
1310 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1311 echo "configure:1312: checking for ANSI C header files" >&5
1312 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1313   echo $ac_n "(cached) $ac_c" 1>&6
1314 else
1315   cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 #include <stdlib.h>
1319 #include <stdarg.h>
1320 #include <string.h>
1321 #include <float.h>
1322 EOF
1323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1324 { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1326 if test -z "$ac_err"; then
1327   rm -rf conftest*
1328   ac_cv_header_stdc=yes
1329 else
1330   echo "$ac_err" >&5
1331   echo "configure: failed program was:" >&5
1332   cat conftest.$ac_ext >&5
1333   rm -rf conftest*
1334   ac_cv_header_stdc=no
1335 fi
1336 rm -f conftest*
1337
1338 if test $ac_cv_header_stdc = yes; then
1339   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1343 #include <string.h>
1344 EOF
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346   egrep "memchr" >/dev/null 2>&1; then
1347   :
1348 else
1349   rm -rf conftest*
1350   ac_cv_header_stdc=no
1351 fi
1352 rm -f conftest*
1353
1354 fi
1355
1356 if test $ac_cv_header_stdc = yes; then
1357   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 #include <stdlib.h>
1362 EOF
1363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1364   egrep "free" >/dev/null 2>&1; then
1365   :
1366 else
1367   rm -rf conftest*
1368   ac_cv_header_stdc=no
1369 fi
1370 rm -f conftest*
1371
1372 fi
1373
1374 if test $ac_cv_header_stdc = yes; then
1375   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1376 if test "$cross_compiling" = yes; then
1377   :
1378 else
1379   cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <ctype.h>
1383 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1384 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1386 int main () { int i; for (i = 0; i < 256; i++)
1387 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1388 exit (0); }
1389
1390 EOF
1391 if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1392 then
1393   :
1394 else
1395   echo "configure: failed program was:" >&5
1396   cat conftest.$ac_ext >&5
1397   rm -fr conftest*
1398   ac_cv_header_stdc=no
1399 fi
1400 rm -fr conftest*
1401 fi
1402
1403 fi
1404 fi
1405
1406 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1407 if test $ac_cv_header_stdc = yes; then
1408   cat >> confdefs.h <<\EOF
1409 #define STDC_HEADERS 1
1410 EOF
1411
1412 fi
1413
1414
1415
1416 for ac_hdr in math.h
1417 do
1418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_hdr" >&5
1421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1422   echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424   cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 #include <$ac_hdr>
1428 EOF
1429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1432 if test -z "$ac_err"; then
1433   rm -rf conftest*
1434   eval "ac_cv_header_$ac_safe=yes"
1435 else
1436   echo "$ac_err" >&5
1437   echo "configure: failed program was:" >&5
1438   cat conftest.$ac_ext >&5
1439   rm -rf conftest*
1440   eval "ac_cv_header_$ac_safe=no"
1441 fi
1442 rm -f conftest*
1443 fi
1444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1445   echo "$ac_t""yes" 1>&6
1446     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1447   cat >> confdefs.h <<EOF
1448 #define $ac_tr_hdr 1
1449 EOF
1450  ac_math_headers="yes"
1451 else
1452   echo "$ac_t""no" 1>&6
1453 ac_math_headers="no"
1454 fi
1455 done
1456
1457 if test "$ac_math_headers" != yes; then
1458     { echo "configure: error: "math header file not found"" 1>&2; exit 1; }
1459 fi
1460
1461
1462
1463 for ac_hdr in gmp.h
1464 do
1465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1467 echo "configure:1468: checking for $ac_hdr" >&5
1468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1469   echo $ac_n "(cached) $ac_c" 1>&6
1470 else
1471   cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 #include <$ac_hdr>
1475 EOF
1476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1477 { (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1479 if test -z "$ac_err"; then
1480   rm -rf conftest*
1481   eval "ac_cv_header_$ac_safe=yes"
1482 else
1483   echo "$ac_err" >&5
1484   echo "configure: failed program was:" >&5
1485   cat conftest.$ac_ext >&5
1486   rm -rf conftest*
1487   eval "ac_cv_header_$ac_safe=no"
1488 fi
1489 rm -f conftest*
1490 fi
1491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1492   echo "$ac_t""yes" 1>&6
1493     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1494   cat >> confdefs.h <<EOF
1495 #define $ac_tr_hdr 1
1496 EOF
1497  ac_gmp_headers="yes"
1498 else
1499   echo "$ac_t""no" 1>&6
1500 ac_gmp_headers="no"
1501 fi
1502 done
1503
1504 if test "$ac_gmp_headers" != yes; then
1505     { echo "configure: error: "GNU multiprecission gmp header file not found"" 1>&2; exit 1; }
1506 fi
1507
1508
1509
1510 for ac_hdr in obstack.h
1511 do
1512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1514 echo "configure:1515: checking for $ac_hdr" >&5
1515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1516   echo $ac_n "(cached) $ac_c" 1>&6
1517 else
1518   cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 #include <$ac_hdr>
1522 EOF
1523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1524 { (eval echo configure:1525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1526 if test -z "$ac_err"; then
1527   rm -rf conftest*
1528   eval "ac_cv_header_$ac_safe=yes"
1529 else
1530   echo "$ac_err" >&5
1531   echo "configure: failed program was:" >&5
1532   cat conftest.$ac_ext >&5
1533   rm -rf conftest*
1534   eval "ac_cv_header_$ac_safe=no"
1535 fi
1536 rm -f conftest*
1537 fi
1538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1539   echo "$ac_t""yes" 1>&6
1540     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1541   cat >> confdefs.h <<EOF
1542 #define $ac_tr_hdr 1
1543 EOF
1544  ac_obstack_headers="yes"
1545 else
1546   echo "$ac_t""no" 1>&6
1547 ac_obstack_headers="no"
1548 fi
1549 done
1550
1551 if test "$ac_obstack_headers" != yes; then
1552     { echo "configure: error: "obstack header file not found"" 1>&2; exit 1; }
1553 fi
1554
1555
1556
1557
1558 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1559 echo "configure:1560: checking for main in -lgmp" >&5
1560 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1562   echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564   ac_save_LIBS="$LIBS"
1565 LIBS="-lgmp  $LIBS"
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1569
1570 int main() {
1571 main()
1572 ; return 0; }
1573 EOF
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1575   rm -rf conftest*
1576   eval "ac_cv_lib_$ac_lib_var=yes"
1577 else
1578   echo "configure: failed program was:" >&5
1579   cat conftest.$ac_ext >&5
1580   rm -rf conftest*
1581   eval "ac_cv_lib_$ac_lib_var=no"
1582 fi
1583 rm -f conftest*
1584 LIBS="$ac_save_LIBS"
1585
1586 fi
1587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1588   echo "$ac_t""yes" 1>&6
1589   ac_gmp_library="yes"
1590 else
1591   echo "$ac_t""no" 1>&6
1592 ac_gmp_library="no"
1593 fi
1594
1595 if test "$ac_gmp_library" != yes; then
1596     { echo "configure: error: "GNU multiprecission gmp library not found"" 1>&2; exit 1; }
1597 fi
1598
1599
1600 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1601 echo "configure:1602: checking for main in -lm" >&5
1602 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1604   echo $ac_n "(cached) $ac_c" 1>&6
1605 else
1606   ac_save_LIBS="$LIBS"
1607 LIBS="-lm  $LIBS"
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611
1612 int main() {
1613 main()
1614 ; return 0; }
1615 EOF
1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1617   rm -rf conftest*
1618   eval "ac_cv_lib_$ac_lib_var=yes"
1619 else
1620   echo "configure: failed program was:" >&5
1621   cat conftest.$ac_ext >&5
1622   rm -rf conftest*
1623   eval "ac_cv_lib_$ac_lib_var=no"
1624 fi
1625 rm -f conftest*
1626 LIBS="$ac_save_LIBS"
1627
1628 fi
1629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1630   echo "$ac_t""yes" 1>&6
1631   ac_m_library="yes"
1632 else
1633   echo "$ac_t""no" 1>&6
1634 ac_m_library="no"
1635 fi
1636
1637 if test "$ac_m_library" != yes; then
1638     { echo "configure: error: "standard math library not found"" 1>&2; exit 1; }
1639 fi
1640
1641
1642
1643
1644
1645
1646 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1647 echo "configure:1648: checking for strerror" >&5
1648 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
1649   echo $ac_n "(cached) $ac_c" 1>&6
1650 else
1651   cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 /* System header to define __stub macros and hopefully few prototypes,
1655     which can conflict with char strerror(); below.  */
1656 #include <assert.h>
1657 /* Override any gcc2 internal prototype to avoid an error.  */
1658 /* We use char because int might match the return type of a gcc2
1659     builtin and then its argument prototype would still apply.  */
1660 char strerror();
1661
1662 int main() {
1663
1664 /* The GNU C library defines this for functions which it implements
1665     to always fail with ENOSYS.  Some functions are actually named
1666     something starting with __ and the normal name is an alias.  */
1667 #if defined (__stub_strerror) || defined (__stub___strerror)
1668 choke me
1669 #else
1670 strerror();
1671 #endif
1672
1673 ; return 0; }
1674 EOF
1675 if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1676   rm -rf conftest*
1677   eval "ac_cv_func_strerror=yes"
1678 else
1679   echo "configure: failed program was:" >&5
1680   cat conftest.$ac_ext >&5
1681   rm -rf conftest*
1682   eval "ac_cv_func_strerror=no"
1683 fi
1684 rm -f conftest*
1685 fi
1686
1687 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
1688   echo "$ac_t""yes" 1>&6
1689   :
1690 else
1691   echo "$ac_t""no" 1>&6
1692 { echo "configure: error: "need strerror function"" 1>&2; exit 1; }
1693
1694 fi
1695
1696
1697
1698
1699
1700 trap '' 1 2 15
1701 cat > confcache <<\EOF
1702 # This file is a shell script that caches the results of configure
1703 # tests run on this system so they can be shared between configure
1704 # scripts and configure runs.  It is not useful on other systems.
1705 # If it contains results you don't want to keep, you may remove or edit it.
1706 #
1707 # By default, configure uses ./config.cache as the cache file,
1708 # creating it if it does not exist already.  You can give configure
1709 # the --cache-file=FILE option to use a different cache file; that is
1710 # what configure does when it calls configure scripts in
1711 # subdirectories, so they share the cache.
1712 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1713 # config.status only pays attention to the cache file if you give it the
1714 # --recheck option to rerun configure.
1715 #
1716 EOF
1717 # The following way of writing the cache mishandles newlines in values,
1718 # but we know of no workaround that is simple, portable, and efficient.
1719 # So, don't put newlines in cache variables' values.
1720 # Ultrix sh set writes to stderr and can't be redirected directly,
1721 # and sets the high bit in the cache file unless we assign to the vars.
1722 (set) 2>&1 |
1723   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1724   *ac_space=\ *)
1725     # `set' does not quote correctly, so add quotes (double-quote substitution
1726     # turns \\\\ into \\, and sed turns \\ into \).
1727     sed -n \
1728       -e "s/'/'\\\\''/g" \
1729       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1730     ;;
1731   *)
1732     # `set' quotes correctly as required by POSIX, so do not add quotes.
1733     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1734     ;;
1735   esac >> confcache
1736 if cmp -s $cache_file confcache; then
1737   :
1738 else
1739   if test -w $cache_file; then
1740     echo "updating cache $cache_file"
1741     cat confcache > $cache_file
1742   else
1743     echo "not updating unwritable cache $cache_file"
1744   fi
1745 fi
1746 rm -f confcache
1747
1748 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1749
1750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1751 # Let make expand exec_prefix.
1752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1753
1754 # Any assignment to VPATH causes Sun make to only execute
1755 # the first set of double-colon rules, so remove it if not needed.
1756 # If there is a colon in the path, we need to keep it.
1757 if test "x$srcdir" = x.; then
1758   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1759 fi
1760
1761 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1762
1763 DEFS=-DHAVE_CONFIG_H
1764
1765 # Without the "./", some shells look in PATH for config.status.
1766 : ${CONFIG_STATUS=./config.status}
1767
1768 echo creating $CONFIG_STATUS
1769 rm -f $CONFIG_STATUS
1770 cat > $CONFIG_STATUS <<EOF
1771 #! /bin/sh
1772 # Generated automatically by configure.
1773 # Run this file to recreate the current configuration.
1774 # This directory was configured as follows,
1775 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1776 #
1777 # $0 $ac_configure_args
1778 #
1779 # Compiler output produced by configure, useful for debugging
1780 # configure, is in ./config.log if it exists.
1781
1782 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1783 for ac_option
1784 do
1785   case "\$ac_option" in
1786   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1787     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1788     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1789   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1790     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1791     exit 0 ;;
1792   -help | --help | --hel | --he | --h)
1793     echo "\$ac_cs_usage"; exit 0 ;;
1794   *) echo "\$ac_cs_usage"; exit 1 ;;
1795   esac
1796 done
1797
1798 ac_given_srcdir=$srcdir
1799 ac_given_INSTALL="$INSTALL"
1800
1801 trap 'rm -fr `echo "$ac_output_file config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1802 EOF
1803 cat >> $CONFIG_STATUS <<EOF
1804
1805 # Protect against being on the right side of a sed subst in config.status.
1806 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1807  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1808 $ac_vpsub
1809 $extrasub
1810 s%@SHELL@%$SHELL%g
1811 s%@CFLAGS@%$CFLAGS%g
1812 s%@CPPFLAGS@%$CPPFLAGS%g
1813 s%@CXXFLAGS@%$CXXFLAGS%g
1814 s%@FFLAGS@%$FFLAGS%g
1815 s%@DEFS@%$DEFS%g
1816 s%@LDFLAGS@%$LDFLAGS%g
1817 s%@LIBS@%$LIBS%g
1818 s%@exec_prefix@%$exec_prefix%g
1819 s%@prefix@%$prefix%g
1820 s%@program_transform_name@%$program_transform_name%g
1821 s%@bindir@%$bindir%g
1822 s%@sbindir@%$sbindir%g
1823 s%@libexecdir@%$libexecdir%g
1824 s%@datadir@%$datadir%g
1825 s%@sysconfdir@%$sysconfdir%g
1826 s%@sharedstatedir@%$sharedstatedir%g
1827 s%@localstatedir@%$localstatedir%g
1828 s%@libdir@%$libdir%g
1829 s%@includedir@%$includedir%g
1830 s%@oldincludedir@%$oldincludedir%g
1831 s%@infodir@%$infodir%g
1832 s%@mandir@%$mandir%g
1833 s%@libfirm_conf_env@%$libfirm_conf_env%g
1834 s%@enable_debug_libfirm@%$enable_debug_libfirm%g
1835 s%@enable_profile_libfirm@%$enable_profile_libfirm%g
1836 s%@enable_auto_documentation@%$enable_auto_documentation%g
1837 s%@CC@%$CC%g
1838 s%@host@%$host%g
1839 s%@host_alias@%$host_alias%g
1840 s%@host_cpu@%$host_cpu%g
1841 s%@host_vendor@%$host_vendor%g
1842 s%@host_os@%$host_os%g
1843 s%@build@%$build%g
1844 s%@build_alias@%$build_alias%g
1845 s%@build_cpu@%$build_cpu%g
1846 s%@build_vendor@%$build_vendor%g
1847 s%@build_os@%$build_os%g
1848 s%@LD@%$LD%g
1849 s%@libfirm_cv_prog_ld_r@%$libfirm_cv_prog_ld_r%g
1850 s%@AR@%$AR%g
1851 s%@TAR@%$TAR%g
1852 s%@RANLIB@%$RANLIB%g
1853 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1854 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1855 s%@INSTALL_DATA@%$INSTALL_DATA%g
1856 s%@ROBODOC@%$ROBODOC%g
1857 s%@CPP@%$CPP%g
1858
1859 CEOF
1860 EOF
1861
1862 cat >> $CONFIG_STATUS <<\EOF
1863
1864 # Split the substitutions into bite-sized pieces for seds with
1865 # small command number limits, like on Digital OSF/1 and HP-UX.
1866 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1867 ac_file=1 # Number of current file.
1868 ac_beg=1 # First line for current file.
1869 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1870 ac_more_lines=:
1871 ac_sed_cmds=""
1872 while $ac_more_lines; do
1873   if test $ac_beg -gt 1; then
1874     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1875   else
1876     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1877   fi
1878   if test ! -s conftest.s$ac_file; then
1879     ac_more_lines=false
1880     rm -f conftest.s$ac_file
1881   else
1882     if test -z "$ac_sed_cmds"; then
1883       ac_sed_cmds="sed -f conftest.s$ac_file"
1884     else
1885       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1886     fi
1887     ac_file=`expr $ac_file + 1`
1888     ac_beg=$ac_end
1889     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1890   fi
1891 done
1892 if test -z "$ac_sed_cmds"; then
1893   ac_sed_cmds=cat
1894 fi
1895 EOF
1896
1897 cat >> $CONFIG_STATUS <<EOF
1898
1899 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_file"}
1900 EOF
1901 cat >> $CONFIG_STATUS <<\EOF
1902 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1903   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1904   case "$ac_file" in
1905   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1906        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1907   *) ac_file_in="${ac_file}.in" ;;
1908   esac
1909
1910   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1911
1912   # Remove last slash and all that follows it.  Not all systems have dirname.
1913   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1914   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1915     # The file is in a subdirectory.
1916     test ! -d "$ac_dir" && mkdir "$ac_dir"
1917     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1918     # A "../" for each directory in $ac_dir_suffix.
1919     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1920   else
1921     ac_dir_suffix= ac_dots=
1922   fi
1923
1924   case "$ac_given_srcdir" in
1925   .)  srcdir=.
1926       if test -z "$ac_dots"; then top_srcdir=.
1927       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1928   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1929   *) # Relative path.
1930     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1931     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1932   esac
1933
1934   case "$ac_given_INSTALL" in
1935   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1936   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1937   esac
1938
1939   echo creating "$ac_file"
1940   rm -f "$ac_file"
1941   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1942   case "$ac_file" in
1943   *Makefile*) ac_comsub="1i\\
1944 # $configure_input" ;;
1945   *) ac_comsub= ;;
1946   esac
1947
1948   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1949   sed -e "$ac_comsub
1950 s%@configure_input@%$configure_input%g
1951 s%@srcdir@%$srcdir%g
1952 s%@top_srcdir@%$top_srcdir%g
1953 s%@INSTALL@%$INSTALL%g
1954 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1955 fi; done
1956 rm -f conftest.s*
1957
1958 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1959 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1960 #
1961 # ac_d sets the value in "#define NAME VALUE" lines.
1962 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1963 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1964 ac_dC='\3'
1965 ac_dD='%g'
1966 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1967 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1968 ac_uB='\([      ]\)%\1#\2define\3'
1969 ac_uC=' '
1970 ac_uD='\4%g'
1971 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1972 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1973 ac_eB='$%\1#\2define\3'
1974 ac_eC=' '
1975 ac_eD='%g'
1976
1977 if test "${CONFIG_HEADERS+set}" != set; then
1978 EOF
1979 cat >> $CONFIG_STATUS <<EOF
1980   CONFIG_HEADERS="config.h"
1981 EOF
1982 cat >> $CONFIG_STATUS <<\EOF
1983 fi
1984 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1985   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1986   case "$ac_file" in
1987   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1988        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1989   *) ac_file_in="${ac_file}.in" ;;
1990   esac
1991
1992   echo creating $ac_file
1993
1994   rm -f conftest.frag conftest.in conftest.out
1995   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1996   cat $ac_file_inputs > conftest.in
1997
1998 EOF
1999
2000 # Transform confdefs.h into a sed script conftest.vals that substitutes
2001 # the proper values into config.h.in to produce config.h.  And first:
2002 # Protect against being on the right side of a sed subst in config.status.
2003 # Protect against being in an unquoted here document in config.status.
2004 rm -f conftest.vals
2005 cat > conftest.hdr <<\EOF
2006 s/[\\&%]/\\&/g
2007 s%[\\$`]%\\&%g
2008 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2009 s%ac_d%ac_u%gp
2010 s%ac_u%ac_e%gp
2011 EOF
2012 sed -n -f conftest.hdr confdefs.h > conftest.vals
2013 rm -f conftest.hdr
2014
2015 # This sed command replaces #undef with comments.  This is necessary, for
2016 # example, in the case of _POSIX_SOURCE, which is predefined and required
2017 # on some systems where configure will not decide to define it.
2018 cat >> conftest.vals <<\EOF
2019 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2020 EOF
2021
2022 # Break up conftest.vals because some shells have a limit on
2023 # the size of here documents, and old seds have small limits too.
2024
2025 rm -f conftest.tail
2026 while :
2027 do
2028   ac_lines=`grep -c . conftest.vals`
2029   # grep -c gives empty output for an empty file on some AIX systems.
2030   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2031   # Write a limited-size here document to conftest.frag.
2032   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2033   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2034   echo 'CEOF
2035   sed -f conftest.frag conftest.in > conftest.out
2036   rm -f conftest.in
2037   mv conftest.out conftest.in
2038 ' >> $CONFIG_STATUS
2039   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2040   rm -f conftest.vals
2041   mv conftest.tail conftest.vals
2042 done
2043 rm -f conftest.vals
2044
2045 cat >> $CONFIG_STATUS <<\EOF
2046   rm -f conftest.frag conftest.h
2047   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2048   cat conftest.in >> conftest.h
2049   rm -f conftest.in
2050   if cmp -s $ac_file conftest.h 2>/dev/null; then
2051     echo "$ac_file is unchanged"
2052     rm -f conftest.h
2053   else
2054     # Remove last slash and all that follows it.  Not all systems have dirname.
2055       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2056       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2057       # The file is in a subdirectory.
2058       test ! -d "$ac_dir" && mkdir "$ac_dir"
2059     fi
2060     rm -f $ac_file
2061     mv conftest.h $ac_file
2062   fi
2063 fi; done
2064
2065 EOF
2066 cat >> $CONFIG_STATUS <<EOF
2067
2068 EOF
2069 cat >> $CONFIG_STATUS <<\EOF
2070  touch stamp-h
2071 exit 0
2072 EOF
2073 chmod +x $CONFIG_STATUS
2074 rm -fr confdefs* $ac_clean_files
2075 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1