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