blob: 175d14fb6d680373ca803cda3e20823965ec7ef8 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53 for [LLVM] [1.0].
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11
12# Find the correct PATH separator. Usually this is `:', but
13# DJGPP uses `;' like DOS.
14if test "X${PATH_SEPARATOR+set}" != Xset; then
15 UNAME=${UNAME-`uname 2>/dev/null`}
16 case X$UNAME in
17 *-DOS) lt_cv_sys_path_separator=';' ;;
18 *) lt_cv_sys_path_separator=':' ;;
19 esac
20 PATH_SEPARATOR=$lt_cv_sys_path_separator
21fi
22
23
24# Check that we are running under the correct shell.
25SHELL=${CONFIG_SHELL-/bin/sh}
26
27case X$ECHO in
28X*--fallback-echo)
29 # Remove one level of quotation (which was required for Make).
30 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31 ;;
32esac
33
34echo=${ECHO-echo}
35if test "X$1" = X--no-reexec; then
36 # Discard the --no-reexec flag, and continue.
37 shift
38elif test "X$1" = X--fallback-echo; then
39 # Avoid inline document here, it may be left over
40 :
41elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42 # Yippee, $echo works!
43 :
44else
45 # Restart under the correct shell.
46 exec $SHELL "$0" --no-reexec ${1+"$@"}
47fi
48
49if test "X$1" = X--fallback-echo; then
50 # used as fallback echo
51 shift
52 cat <<EOF
53
54EOF
55 exit 0
56fi
57
58# The HP-UX ksh and POSIX shell print the target directory to stdout
59# if CDPATH is set.
60if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
61
62if test -z "$ECHO"; then
63if test "X${echo_test_string+set}" != Xset; then
64# find a string as large as possible, as long as the shell can cope with it
65 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
66 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
67 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
68 echo_test_string="`eval $cmd`" &&
69 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
70 then
71 break
72 fi
73 done
74fi
75
76if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
77 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
78 test "X$echo_testing_string" = "X$echo_test_string"; then
79 :
80else
81 # The Solaris, AIX, and Digital Unix default echo programs unquote
82 # backslashes. This makes it impossible to quote backslashes using
83 # echo "$something" | sed 's/\\/\\\\/g'
84 #
85 # So, first we look for a working echo in the user's PATH.
86
87 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88 for dir in $PATH /usr/ucb; do
89 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
92 test "X$echo_testing_string" = "X$echo_test_string"; then
93 echo="$dir/echo"
94 break
95 fi
96 done
97 IFS="$save_ifs"
98
99 if test "X$echo" = Xecho; then
100 # We didn't find a better echo, so look for alternatives.
101 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
103 test "X$echo_testing_string" = "X$echo_test_string"; then
104 # This shell has a builtin print -r that does the trick.
105 echo='print -r'
106 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
107 test "X$CONFIG_SHELL" != X/bin/ksh; then
108 # If we have ksh, try running configure again with it.
109 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
110 export ORIGINAL_CONFIG_SHELL
111 CONFIG_SHELL=/bin/ksh
112 export CONFIG_SHELL
113 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114 else
115 # Try using printf.
116 echo='printf %s\n'
117 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
118 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
119 test "X$echo_testing_string" = "X$echo_test_string"; then
120 # Cool, printf works
121 :
122 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
123 test "X$echo_testing_string" = 'X\t' &&
124 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
125 test "X$echo_testing_string" = "X$echo_test_string"; then
126 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
127 export CONFIG_SHELL
128 SHELL="$CONFIG_SHELL"
129 export SHELL
130 echo="$CONFIG_SHELL $0 --fallback-echo"
131 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
132 test "X$echo_testing_string" = 'X\t' &&
133 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
134 test "X$echo_testing_string" = "X$echo_test_string"; then
135 echo="$CONFIG_SHELL $0 --fallback-echo"
136 else
137 # maybe with a smaller string...
138 prev=:
139
140 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
141 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
142 then
143 break
144 fi
145 prev="$cmd"
146 done
147
148 if test "$prev" != 'sed 50q "$0"'; then
149 echo_test_string=`eval $prev`
150 export echo_test_string
151 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
152 else
153 # Oops. We lost completely, so just stick with echo.
154 echo=echo
155 fi
156 fi
157 fi
158 fi
159fi
160fi
161
162# Copy echo and quote the copy suitably for passing to libtool from
163# the Makefile, instead of quoting the original, which is used later.
164ECHO=$echo
165if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
167fi
168
169
170
171if expr a : '\(a\)' >/dev/null 2>&1; then
172 as_expr=expr
173else
174 as_expr=false
175fi
176
177
178## --------------------- ##
179## M4sh Initialization. ##
180## --------------------- ##
181
182# Be Bourne compatible
183if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184 emulate sh
185 NULLCMD=:
186elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187 set -o posix
188fi
189
190# NLS nuisances.
191# Support unset when possible.
192if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
193 as_unset=unset
194else
195 as_unset=false
196fi
197
198(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
199 { $as_unset LANG || test "${LANG+set}" != set; } ||
200 { LANG=C; export LANG; }
201(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
202 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
203 { LC_ALL=C; export LC_ALL; }
204(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
205 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
206 { LC_TIME=C; export LC_TIME; }
207(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
208 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
209 { LC_CTYPE=C; export LC_CTYPE; }
210(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
211 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
212 { LANGUAGE=C; export LANGUAGE; }
213(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
214 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
215 { LC_COLLATE=C; export LC_COLLATE; }
216(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
217 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
218 { LC_NUMERIC=C; export LC_NUMERIC; }
219(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
220 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
221 { LC_MESSAGES=C; export LC_MESSAGES; }
222
223
224# Name of the executable.
225as_me=`(basename "$0") 2>/dev/null ||
226$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227 X"$0" : 'X\(//\)$' \| \
228 X"$0" : 'X\(/\)$' \| \
229 . : '\(.\)' 2>/dev/null ||
230echo X/"$0" |
231 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
232 /^X\/\(\/\/\)$/{ s//\1/; q; }
233 /^X\/\(\/\).*/{ s//\1/; q; }
234 s/.*/./; q'`
235
236# PATH needs CR, and LINENO needs CR and PATH.
237# Avoid depending upon Character Ranges.
238as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241as_cr_digits='0123456789'
242as_cr_alnum=$as_cr_Letters$as_cr_digits
243
244# The user is always right.
245if test "${PATH_SEPARATOR+set}" != set; then
246 echo "#! /bin/sh" >conftest.sh
247 echo "exit 0" >>conftest.sh
248 chmod +x conftest.sh
249 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
250 PATH_SEPARATOR=';'
251 else
252 PATH_SEPARATOR=:
253 fi
254 rm -f conftest.sh
255fi
256
257
258 as_lineno_1=$LINENO
259 as_lineno_2=$LINENO
260 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
261 test "x$as_lineno_1" != "x$as_lineno_2" &&
262 test "x$as_lineno_3" = "x$as_lineno_2" || {
263 # Find who we are. Look in the path if we contain no path at all
264 # relative or not.
265 case $0 in
266 *[\\/]* ) as_myself=$0 ;;
267 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
268for as_dir in $PATH
269do
270 IFS=$as_save_IFS
271 test -z "$as_dir" && as_dir=.
272 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
273done
274
275 ;;
276 esac
277 # We did not find ourselves, most probably we were run as `sh COMMAND'
278 # in which case we are not to be found in the path.
279 if test "x$as_myself" = x; then
280 as_myself=$0
281 fi
282 if test ! -f "$as_myself"; then
283 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
284 { (exit 1); exit 1; }; }
285 fi
286 case $CONFIG_SHELL in
287 '')
288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290do
291 IFS=$as_save_IFS
292 test -z "$as_dir" && as_dir=.
293 for as_base in sh bash ksh sh5; do
294 case $as_dir in
295 /*)
296 if ("$as_dir/$as_base" -c '
297 as_lineno_1=$LINENO
298 as_lineno_2=$LINENO
299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
300 test "x$as_lineno_1" != "x$as_lineno_2" &&
301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
302 CONFIG_SHELL=$as_dir/$as_base
303 export CONFIG_SHELL
304 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
305 fi;;
306 esac
307 done
308done
309;;
310 esac
311
312 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
313 # uniformly replaced by the line number. The first 'sed' inserts a
314 # line-number line before each line; the second 'sed' does the real
315 # work. The second script uses 'N' to pair each line-number line
316 # with the numbered line, and appends trailing '-' during
317 # substitution so that $LINENO is not a special case at line end.
318 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
319 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
320 sed '=' <$as_myself |
321 sed '
322 N
323 s,$,-,
324 : loop
325 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
326 t loop
327 s,-$,,
328 s,^['$as_cr_digits']*\n,,
329 ' >$as_me.lineno &&
330 chmod +x $as_me.lineno ||
331 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
332 { (exit 1); exit 1; }; }
333
334 # Don't try to exec as it changes $[0], causing all sort of problems
335 # (the dirname of $[0] is not the place where we might find the
336 # original and so on. Autoconf is especially sensible to this).
337 . ./$as_me.lineno
338 # Exit status is that of the last command.
339 exit
340}
341
342
343case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
344 *c*,-n*) ECHO_N= ECHO_C='
345' ECHO_T=' ' ;;
346 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
347 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
348esac
349
350if expr a : '\(a\)' >/dev/null 2>&1; then
351 as_expr=expr
352else
353 as_expr=false
354fi
355
356rm -f conf$$ conf$$.exe conf$$.file
357echo >conf$$.file
358if ln -s conf$$.file conf$$ 2>/dev/null; then
359 # We could just check for DJGPP; but this test a) works b) is more generic
360 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
361 if test -f conf$$.exe; then
362 # Don't use ln at all; we don't have any links
363 as_ln_s='cp -p'
364 else
365 as_ln_s='ln -s'
366 fi
367elif ln conf$$.file conf$$ 2>/dev/null; then
368 as_ln_s=ln
369else
370 as_ln_s='cp -p'
371fi
372rm -f conf$$ conf$$.exe conf$$.file
373
374as_executable_p="test -f"
375
376# Sed expression to map a string onto a valid CPP name.
377as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
378
379# Sed expression to map a string onto a valid variable name.
380as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
381
382
383# IFS
384# We need space, tab and new line, in precisely that order.
385as_nl='
386'
387IFS=" $as_nl"
388
389# CDPATH.
390$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
391
392
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404cross_compiling=no
405subdirs=
406MFLAGS=
407MAKEFLAGS=
408SHELL=${CONFIG_SHELL-/bin/sh}
409
410# Maximum number of lines to put in a shell here document.
411# This variable seems obsolete. It should probably be removed, and
412# only ac_max_sed_lines should be used.
413: ${ac_max_here_lines=38}
414
415# Identity of this package.
416PACKAGE_NAME='[LLVM]'
417PACKAGE_TARNAME='--llvm--'
418PACKAGE_VERSION='[1.0]'
419PACKAGE_STRING='[LLVM] [1.0]'
420PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
421
422# Factoring default headers for most tests.
423ac_includes_default="\
424#include <stdio.h>
425#if HAVE_SYS_TYPES_H
426# include <sys/types.h>
427#endif
428#if HAVE_SYS_STAT_H
429# include <sys/stat.h>
430#endif
431#if STDC_HEADERS
432# include <stdlib.h>
433# include <stddef.h>
434#else
435# if HAVE_STDLIB_H
436# include <stdlib.h>
437# endif
438#endif
439#if HAVE_STRING_H
440# if !STDC_HEADERS && HAVE_MEMORY_H
441# include <memory.h>
442# endif
443# include <string.h>
444#endif
445#if HAVE_STRINGS_H
446# include <strings.h>
447#endif
448#if HAVE_INTTYPES_H
449# include <inttypes.h>
450#else
451# if HAVE_STDINT_H
452# include <stdint.h>
453# endif
454#endif
455#if HAVE_UNISTD_H
456# include <unistd.h>
457#endif"
458
459ac_unique_file=""Makefile.config.in""
460
461# Initialize some variables set by options.
462ac_init_help=
463ac_init_version=false
464# The variables have the same names as the options, with
465# dashes changed to underlines.
466cache_file=/dev/null
467exec_prefix=NONE
468no_create=
469no_recursion=
470prefix=NONE
471program_prefix=NONE
472program_suffix=NONE
473program_transform_name=s,x,x,
474silent=
475site=
476srcdir=
477verbose=
478x_includes=NONE
479x_libraries=NONE
480
481# Installation directory options.
482# These are left unexpanded so users can "make install exec_prefix=/foo"
483# and all the variables that are supposed to be based on exec_prefix
484# by default will actually change.
485# Use braces instead of parens because sh, perl, etc. also accept them.
486bindir='${exec_prefix}/bin'
487sbindir='${exec_prefix}/sbin'
488libexecdir='${exec_prefix}/libexec'
489datadir='${prefix}/share'
490sysconfdir='${prefix}/etc'
491sharedstatedir='${prefix}/com'
492localstatedir='${prefix}/var'
493libdir='${exec_prefix}/lib'
494includedir='${prefix}/include'
495oldincludedir='/usr/include'
496infodir='${prefix}/info'
497mandir='${prefix}/man'
498
499ac_prev=
500for ac_option
501do
502 # If the previous option needs an argument, assign it.
503 if test -n "$ac_prev"; then
504 eval "$ac_prev=\$ac_option"
505 ac_prev=
506 continue
507 fi
508
509 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
510
511 # Accept the important Cygnus configure options, so we can diagnose typos.
512
513 case $ac_option in
514
515 -bindir | --bindir | --bindi | --bind | --bin | --bi)
516 ac_prev=bindir ;;
517 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
518 bindir=$ac_optarg ;;
519
520 -build | --build | --buil | --bui | --bu)
521 ac_prev=build_alias ;;
522 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
523 build_alias=$ac_optarg ;;
524
525 -cache-file | --cache-file | --cache-fil | --cache-fi \
526 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
527 ac_prev=cache_file ;;
528 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
529 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
530 cache_file=$ac_optarg ;;
531
532 --config-cache | -C)
533 cache_file=config.cache ;;
534
535 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
536 ac_prev=datadir ;;
537 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
538 | --da=*)
539 datadir=$ac_optarg ;;
540
541 -disable-* | --disable-*)
542 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
543 # Reject names that are not valid shell variable names.
544 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
545 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
546 { (exit 1); exit 1; }; }
547 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
548 eval "enable_$ac_feature=no" ;;
549
550 -enable-* | --enable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "enable_$ac_feature='$ac_optarg'" ;;
562
563 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
564 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
565 | --exec | --exe | --ex)
566 ac_prev=exec_prefix ;;
567 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
568 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
569 | --exec=* | --exe=* | --ex=*)
570 exec_prefix=$ac_optarg ;;
571
572 -gas | --gas | --ga | --g)
573 # Obsolete; use --with-gas.
574 with_gas=yes ;;
575
576 -help | --help | --hel | --he | -h)
577 ac_init_help=long ;;
578 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
579 ac_init_help=recursive ;;
580 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
581 ac_init_help=short ;;
582
583 -host | --host | --hos | --ho)
584 ac_prev=host_alias ;;
585 -host=* | --host=* | --hos=* | --ho=*)
586 host_alias=$ac_optarg ;;
587
588 -includedir | --includedir | --includedi | --included | --include \
589 | --includ | --inclu | --incl | --inc)
590 ac_prev=includedir ;;
591 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
592 | --includ=* | --inclu=* | --incl=* | --inc=*)
593 includedir=$ac_optarg ;;
594
595 -infodir | --infodir | --infodi | --infod | --info | --inf)
596 ac_prev=infodir ;;
597 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
598 infodir=$ac_optarg ;;
599
600 -libdir | --libdir | --libdi | --libd)
601 ac_prev=libdir ;;
602 -libdir=* | --libdir=* | --libdi=* | --libd=*)
603 libdir=$ac_optarg ;;
604
605 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
606 | --libexe | --libex | --libe)
607 ac_prev=libexecdir ;;
608 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
609 | --libexe=* | --libex=* | --libe=*)
610 libexecdir=$ac_optarg ;;
611
612 -localstatedir | --localstatedir | --localstatedi | --localstated \
613 | --localstate | --localstat | --localsta | --localst \
614 | --locals | --local | --loca | --loc | --lo)
615 ac_prev=localstatedir ;;
616 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
617 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
618 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
619 localstatedir=$ac_optarg ;;
620
621 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
622 ac_prev=mandir ;;
623 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
624 mandir=$ac_optarg ;;
625
626 -nfp | --nfp | --nf)
627 # Obsolete; use --without-fp.
628 with_fp=no ;;
629
630 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
631 | --no-cr | --no-c | -n)
632 no_create=yes ;;
633
634 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
635 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
636 no_recursion=yes ;;
637
638 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
639 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
640 | --oldin | --oldi | --old | --ol | --o)
641 ac_prev=oldincludedir ;;
642 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
643 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
644 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
645 oldincludedir=$ac_optarg ;;
646
647 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
648 ac_prev=prefix ;;
649 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
650 prefix=$ac_optarg ;;
651
652 -program-prefix | --program-prefix | --program-prefi | --program-pref \
653 | --program-pre | --program-pr | --program-p)
654 ac_prev=program_prefix ;;
655 -program-prefix=* | --program-prefix=* | --program-prefi=* \
656 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
657 program_prefix=$ac_optarg ;;
658
659 -program-suffix | --program-suffix | --program-suffi | --program-suff \
660 | --program-suf | --program-su | --program-s)
661 ac_prev=program_suffix ;;
662 -program-suffix=* | --program-suffix=* | --program-suffi=* \
663 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
664 program_suffix=$ac_optarg ;;
665
666 -program-transform-name | --program-transform-name \
667 | --program-transform-nam | --program-transform-na \
668 | --program-transform-n | --program-transform- \
669 | --program-transform | --program-transfor \
670 | --program-transfo | --program-transf \
671 | --program-trans | --program-tran \
672 | --progr-tra | --program-tr | --program-t)
673 ac_prev=program_transform_name ;;
674 -program-transform-name=* | --program-transform-name=* \
675 | --program-transform-nam=* | --program-transform-na=* \
676 | --program-transform-n=* | --program-transform-=* \
677 | --program-transform=* | --program-transfor=* \
678 | --program-transfo=* | --program-transf=* \
679 | --program-trans=* | --program-tran=* \
680 | --progr-tra=* | --program-tr=* | --program-t=*)
681 program_transform_name=$ac_optarg ;;
682
683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
684 | -silent | --silent | --silen | --sile | --sil)
685 silent=yes ;;
686
687 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
688 ac_prev=sbindir ;;
689 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
690 | --sbi=* | --sb=*)
691 sbindir=$ac_optarg ;;
692
693 -sharedstatedir | --sharedstatedir | --sharedstatedi \
694 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
695 | --sharedst | --shareds | --shared | --share | --shar \
696 | --sha | --sh)
697 ac_prev=sharedstatedir ;;
698 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
699 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
700 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
701 | --sha=* | --sh=*)
702 sharedstatedir=$ac_optarg ;;
703
704 -site | --site | --sit)
705 ac_prev=site ;;
706 -site=* | --site=* | --sit=*)
707 site=$ac_optarg ;;
708
709 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
710 ac_prev=srcdir ;;
711 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
712 srcdir=$ac_optarg ;;
713
714 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
715 | --syscon | --sysco | --sysc | --sys | --sy)
716 ac_prev=sysconfdir ;;
717 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
718 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
719 sysconfdir=$ac_optarg ;;
720
721 -target | --target | --targe | --targ | --tar | --ta | --t)
722 ac_prev=target_alias ;;
723 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
724 target_alias=$ac_optarg ;;
725
726 -v | -verbose | --verbose | --verbos | --verbo | --verb)
727 verbose=yes ;;
728
729 -version | --version | --versio | --versi | --vers | -V)
730 ac_init_version=: ;;
731
732 -with-* | --with-*)
733 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
734 # Reject names that are not valid shell variable names.
735 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
736 { echo "$as_me: error: invalid package name: $ac_package" >&2
737 { (exit 1); exit 1; }; }
738 ac_package=`echo $ac_package| sed 's/-/_/g'`
739 case $ac_option in
740 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
741 *) ac_optarg=yes ;;
742 esac
743 eval "with_$ac_package='$ac_optarg'" ;;
744
745 -without-* | --without-*)
746 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package | sed 's/-/_/g'`
752 eval "with_$ac_package=no" ;;
753
754 --x)
755 # Obsolete; use --with-x.
756 with_x=yes ;;
757
758 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
759 | --x-incl | --x-inc | --x-in | --x-i)
760 ac_prev=x_includes ;;
761 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
762 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
763 x_includes=$ac_optarg ;;
764
765 -x-libraries | --x-libraries | --x-librarie | --x-librari \
766 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
767 ac_prev=x_libraries ;;
768 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
769 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
770 x_libraries=$ac_optarg ;;
771
772 -*) { echo "$as_me: error: unrecognized option: $ac_option
773Try \`$0 --help' for more information." >&2
774 { (exit 1); exit 1; }; }
775 ;;
776
777 *=*)
778 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
779 # Reject names that are not valid shell variable names.
780 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
781 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
782 { (exit 1); exit 1; }; }
783 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
784 eval "$ac_envvar='$ac_optarg'"
785 export $ac_envvar ;;
786
787 *)
788 # FIXME: should be removed in autoconf 3.0.
789 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
790 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
791 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
792 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
793 ;;
794
795 esac
796done
797
798if test -n "$ac_prev"; then
799 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
800 { echo "$as_me: error: missing argument to $ac_option" >&2
801 { (exit 1); exit 1; }; }
802fi
803
804# Be sure to have absolute paths.
805for ac_var in exec_prefix prefix
806do
807 eval ac_val=$`echo $ac_var`
808 case $ac_val in
809 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
810 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
811 { (exit 1); exit 1; }; };;
812 esac
813done
814
815# Be sure to have absolute paths.
816for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
817 localstatedir libdir includedir oldincludedir infodir mandir
818do
819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
824 esac
825done
826
827# There might be people who depend on the old broken behavior: `$host'
828# used to hold the argument of --host etc.
829# FIXME: To remove some day.
830build=$build_alias
831host=$host_alias
832target=$target_alias
833
834# FIXME: To remove some day.
835if test "x$host_alias" != x; then
836 if test "x$build_alias" = x; then
837 cross_compiling=maybe
838 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
839 If a cross compiler is detected then cross compile mode will be used." >&2
840 elif test "x$build_alias" != "x$host_alias"; then
841 cross_compiling=yes
842 fi
843fi
844
845ac_tool_prefix=
846test -n "$host_alias" && ac_tool_prefix=$host_alias-
847
848test "$silent" = yes && exec 6>/dev/null
849
850
851# Find the source files, if location was not specified.
852if test -z "$srcdir"; then
853 ac_srcdir_defaulted=yes
854 # Try the directory containing this script, then its parent.
855 ac_confdir=`(dirname "$0") 2>/dev/null ||
856$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
857 X"$0" : 'X\(//\)[^/]' \| \
858 X"$0" : 'X\(//\)$' \| \
859 X"$0" : 'X\(/\)' \| \
860 . : '\(.\)' 2>/dev/null ||
861echo X"$0" |
862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
864 /^X\(\/\/\)$/{ s//\1/; q; }
865 /^X\(\/\).*/{ s//\1/; q; }
866 s/.*/./; q'`
867 srcdir=$ac_confdir
868 if test ! -r $srcdir/$ac_unique_file; then
869 srcdir=..
870 fi
871else
872 ac_srcdir_defaulted=no
873fi
874if test ! -r $srcdir/$ac_unique_file; then
875 if test "$ac_srcdir_defaulted" = yes; then
876 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
877 { (exit 1); exit 1; }; }
878 else
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
880 { (exit 1); exit 1; }; }
881 fi
882fi
883srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
884ac_env_build_alias_set=${build_alias+set}
885ac_env_build_alias_value=$build_alias
886ac_cv_env_build_alias_set=${build_alias+set}
887ac_cv_env_build_alias_value=$build_alias
888ac_env_host_alias_set=${host_alias+set}
889ac_env_host_alias_value=$host_alias
890ac_cv_env_host_alias_set=${host_alias+set}
891ac_cv_env_host_alias_value=$host_alias
892ac_env_target_alias_set=${target_alias+set}
893ac_env_target_alias_value=$target_alias
894ac_cv_env_target_alias_set=${target_alias+set}
895ac_cv_env_target_alias_value=$target_alias
896ac_env_CXX_set=${CXX+set}
897ac_env_CXX_value=$CXX
898ac_cv_env_CXX_set=${CXX+set}
899ac_cv_env_CXX_value=$CXX
900ac_env_CXXFLAGS_set=${CXXFLAGS+set}
901ac_env_CXXFLAGS_value=$CXXFLAGS
902ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
903ac_cv_env_CXXFLAGS_value=$CXXFLAGS
904ac_env_LDFLAGS_set=${LDFLAGS+set}
905ac_env_LDFLAGS_value=$LDFLAGS
906ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
907ac_cv_env_LDFLAGS_value=$LDFLAGS
908ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_env_CPPFLAGS_value=$CPPFLAGS
910ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912ac_env_CC_set=${CC+set}
913ac_env_CC_value=$CC
914ac_cv_env_CC_set=${CC+set}
915ac_cv_env_CC_value=$CC
916ac_env_CFLAGS_set=${CFLAGS+set}
917ac_env_CFLAGS_value=$CFLAGS
918ac_cv_env_CFLAGS_set=${CFLAGS+set}
919ac_cv_env_CFLAGS_value=$CFLAGS
920ac_env_CPP_set=${CPP+set}
921ac_env_CPP_value=$CPP
922ac_cv_env_CPP_set=${CPP+set}
923ac_cv_env_CPP_value=$CPP
924
925#
926# Report the --help message.
927#
928if test "$ac_init_help" = "long"; then
929 # Omit some internal or obsolete options to make the list less imposing.
930 # This message is too long to be a string in the A/UX 3.1 sh.
931 cat <<_ACEOF
932\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
933
934Usage: $0 [OPTION]... [VAR=VALUE]...
935
936To assign environment variables (e.g., CC, CFLAGS...), specify them as
937VAR=VALUE. See below for descriptions of some of the useful variables.
938
939Defaults for the options are specified in brackets.
940
941Configuration:
942 -h, --help display this help and exit
943 --help=short display options specific to this package
944 --help=recursive display the short help of all the included packages
945 -V, --version display version information and exit
946 -q, --quiet, --silent do not print \`checking...' messages
947 --cache-file=FILE cache test results in FILE [disabled]
948 -C, --config-cache alias for \`--cache-file=config.cache'
949 -n, --no-create do not create output files
950 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951
952_ACEOF
953
954 cat <<_ACEOF
955Installation directories:
956 --prefix=PREFIX install architecture-independent files in PREFIX
957 [$ac_default_prefix]
958 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
959 [PREFIX]
960
961By default, \`make install' will install all the files in
962\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
963an installation prefix other than \`$ac_default_prefix' using \`--prefix',
964for instance \`--prefix=\$HOME'.
965
966For better control, use the options below.
967
968Fine tuning of the installation directories:
969 --bindir=DIR user executables [EPREFIX/bin]
970 --sbindir=DIR system admin executables [EPREFIX/sbin]
971 --libexecdir=DIR program executables [EPREFIX/libexec]
972 --datadir=DIR read-only architecture-independent data [PREFIX/share]
973 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
974 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
975 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
976 --libdir=DIR object code libraries [EPREFIX/lib]
977 --includedir=DIR C header files [PREFIX/include]
978 --oldincludedir=DIR C header files for non-gcc [/usr/include]
979 --infodir=DIR info documentation [PREFIX/info]
980 --mandir=DIR man documentation [PREFIX/man]
981_ACEOF
982
983 cat <<\_ACEOF
984
985System types:
986 --build=BUILD configure for building on BUILD [guessed]
987 --host=HOST cross-compile to build programs to run on HOST [BUILD]
988 --target=TARGET configure for building compilers for TARGET [HOST]
989_ACEOF
990fi
991
992if test -n "$ac_init_help"; then
993 case $ac_init_help in
994 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
995 esac
996 cat <<\_ACEOF
997
998Optional Features:
999 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1000 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1001 --enable-shared=PKGS build shared libraries default=yes
1002 --enable-static=PKGS build static libraries default=yes
1003 --enable-fast-install=PKGS optimize for fast installation default=yes
1004 --disable-libtool-lock avoid locking (might break parallel builds)
1005 --enable-purify Compile with purify (default is NO)
1006 --enable-verbose Enable verbose compilation messages (default is NO)
1007 --enable-profiling Compile with profiling information (default is NO)
1008 --enable-optimized Compile with optimizations enabled (default is NO)
1009 --enable-spec Compile SPEC benchmarks (default is NO)
1010 --enable-precompiled_bytecode
1011 Use pre-compiled bytecode (default is NO)
1012 --enable-jit Enable Just In Time Compiling (default is NO)
1013
1014Optional Packages:
1015 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1016 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1017 --with-gnu-ld assume the C compiler uses GNU ld default=no
1018 --with-pic try to use only PIC/non-PIC objects default=use both
1019 --with-spec Location of SPEC benchmarks
1020 --with-llvmgccdir Location of LLVM GCC front-end
1021 --with-bcrepos Location of Bytecode Repository
1022 --with-papi Location of PAPI
1023 --with-objroot Location where object files should be placed
1024 (default is .)
1025 --with-purify Location of purify program
1026
1027Some influential environment variables:
1028 CXX C++ compiler command
1029 CXXFLAGS C++ compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 CPP C preprocessor
1037
1038Use these variables to override the choices made by `configure' or to help
1039it to find libraries and programs with nonstandard names/locations.
1040
1041Report bugs to <llvmbugs@cs.uiuc.edu>.
1042_ACEOF
1043fi
1044
1045if test "$ac_init_help" = "recursive"; then
1046 # If there are subdirs, report their specific --help.
1047 ac_popdir=`pwd`
1048 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049 test -d $ac_dir || continue
1050 ac_builddir=.
1051
1052if test "$ac_dir" != .; then
1053 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054 # A "../" for each directory in $ac_dir_suffix.
1055 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056else
1057 ac_dir_suffix= ac_top_builddir=
1058fi
1059
1060case $srcdir in
1061 .) # No --srcdir option. We are building in place.
1062 ac_srcdir=.
1063 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=.
1065 else
1066 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1067 fi ;;
1068 [\\/]* | ?:[\\/]* ) # Absolute path.
1069 ac_srcdir=$srcdir$ac_dir_suffix;
1070 ac_top_srcdir=$srcdir ;;
1071 *) # Relative path.
1072 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074esac
1075# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1076# absolute.
1077ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1078ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1079ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1080ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1081
1082 cd $ac_dir
1083 # Check for guested configure; otherwise get Cygnus style configure.
1084 if test -f $ac_srcdir/configure.gnu; then
1085 echo
1086 $SHELL $ac_srcdir/configure.gnu --help=recursive
1087 elif test -f $ac_srcdir/configure; then
1088 echo
1089 $SHELL $ac_srcdir/configure --help=recursive
1090 elif test -f $ac_srcdir/configure.ac ||
1091 test -f $ac_srcdir/configure.in; then
1092 echo
1093 $ac_configure --help
1094 else
1095 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1096 fi
1097 cd $ac_popdir
1098 done
1099fi
1100
1101test -n "$ac_init_help" && exit 0
1102if $ac_init_version; then
1103 cat <<\_ACEOF
1104[LLVM] configure [1.0]
1105generated by GNU Autoconf 2.53
1106
1107Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1108Free Software Foundation, Inc.
1109This configure script is free software; the Free Software Foundation
1110gives unlimited permission to copy, distribute and modify it.
1111_ACEOF
1112 exit 0
1113fi
1114exec 5>config.log
1115cat >&5 <<_ACEOF
1116This file contains any messages produced by compilers while
1117running configure, to aid debugging if configure makes a mistake.
1118
1119It was created by [LLVM] $as_me [1.0], which was
1120generated by GNU Autoconf 2.53. Invocation command line was
1121
1122 $ $0 $@
1123
1124_ACEOF
1125{
1126cat <<_ASUNAME
1127## --------- ##
1128## Platform. ##
1129## --------- ##
1130
1131hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1132uname -m = `(uname -m) 2>/dev/null || echo unknown`
1133uname -r = `(uname -r) 2>/dev/null || echo unknown`
1134uname -s = `(uname -s) 2>/dev/null || echo unknown`
1135uname -v = `(uname -v) 2>/dev/null || echo unknown`
1136
1137/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1138/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1139
1140/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1141/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1142/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1143hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1144/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1145/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1146/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1147
1148_ASUNAME
1149
1150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1151for as_dir in $PATH
1152do
1153 IFS=$as_save_IFS
1154 test -z "$as_dir" && as_dir=.
1155 echo "PATH: $as_dir"
1156done
1157
1158} >&5
1159
1160cat >&5 <<_ACEOF
1161
1162
1163## ----------- ##
1164## Core tests. ##
1165## ----------- ##
1166
1167_ACEOF
1168
1169
1170# Keep a trace of the command line.
1171# Strip out --no-create and --no-recursion so they do not pile up.
1172# Also quote any args containing shell meta-characters.
1173ac_configure_args=
1174ac_sep=
1175for ac_arg
1176do
1177 case $ac_arg in
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n ) continue ;;
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 continue ;;
1183 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1184 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1185 esac
1186 case " $ac_configure_args " in
1187 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1188 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1189 ac_sep=" " ;;
1190 esac
1191 # Get rid of the leading space.
1192done
1193
1194# When interrupted or exit'd, cleanup temporary files, and complete
1195# config.log. We remove comments because anyway the quotes in there
1196# would cause problems or look ugly.
1197# WARNING: Be sure not to use single quotes in there, as some shells,
1198# such as our DU 5.0 friend, will then `close' the trap.
1199trap 'exit_status=$?
1200 # Save into config.log some information that might help in debugging.
1201 {
1202 echo
1203 cat <<\_ASBOX
1204## ---------------- ##
1205## Cache variables. ##
1206## ---------------- ##
1207_ASBOX
1208 echo
1209 # The following way of writing the cache mishandles newlines in values,
1210{
1211 (set) 2>&1 |
1212 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1213 *ac_space=\ *)
1214 sed -n \
1215 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1217 ;;
1218 *)
1219 sed -n \
1220 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1221 ;;
1222 esac;
1223}
1224 echo
1225 if test -s confdefs.h; then
1226 cat <<\_ASBOX
1227## ----------- ##
1228## confdefs.h. ##
1229## ----------- ##
1230_ASBOX
1231 echo
1232 sed "/^$/d" confdefs.h
1233 echo
1234 fi
1235 test "$ac_signal" != 0 &&
1236 echo "$as_me: caught signal $ac_signal"
1237 echo "$as_me: exit $exit_status"
1238 } >&5
1239 rm -f core core.* *.core &&
1240 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1241 exit $exit_status
1242 ' 0
1243for ac_signal in 1 2 13 15; do
1244 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1245done
1246ac_signal=0
1247
1248# confdefs.h avoids OS command line length limits that DEFS can exceed.
1249rm -rf conftest* confdefs.h
1250# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1251echo >confdefs.h
1252
1253# Predefined preprocessor variables.
1254
1255cat >>confdefs.h <<_ACEOF
1256#define PACKAGE_NAME "$PACKAGE_NAME"
1257_ACEOF
1258
1259
1260cat >>confdefs.h <<_ACEOF
1261#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1262_ACEOF
1263
1264
1265cat >>confdefs.h <<_ACEOF
1266#define PACKAGE_VERSION "$PACKAGE_VERSION"
1267_ACEOF
1268
1269
1270cat >>confdefs.h <<_ACEOF
1271#define PACKAGE_STRING "$PACKAGE_STRING"
1272_ACEOF
1273
1274
1275cat >>confdefs.h <<_ACEOF
1276#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1277_ACEOF
1278
1279
1280# Let the site file select an alternate cache file if it wants to.
1281# Prefer explicitly selected file to automatically selected ones.
1282if test -z "$CONFIG_SITE"; then
1283 if test "x$prefix" != xNONE; then
1284 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1285 else
1286 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1287 fi
1288fi
1289for ac_site_file in $CONFIG_SITE; do
1290 if test -r "$ac_site_file"; then
1291 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1292echo "$as_me: loading site script $ac_site_file" >&6;}
1293 sed 's/^/| /' "$ac_site_file" >&5
1294 . "$ac_site_file"
1295 fi
1296done
1297
1298if test -r "$cache_file"; then
1299 # Some versions of bash will fail to source /dev/null (special
1300 # files actually), so we avoid doing that.
1301 if test -f "$cache_file"; then
1302 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1303echo "$as_me: loading cache $cache_file" >&6;}
1304 case $cache_file in
1305 [\\/]* | ?:[\\/]* ) . $cache_file;;
1306 *) . ./$cache_file;;
1307 esac
1308 fi
1309else
1310 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1311echo "$as_me: creating cache $cache_file" >&6;}
1312 >$cache_file
1313fi
1314
1315# Check that the precious variables saved in the cache have kept the same
1316# value.
1317ac_cache_corrupted=false
1318for ac_var in `(set) 2>&1 |
1319 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1321 eval ac_new_set=\$ac_env_${ac_var}_set
1322 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1323 eval ac_new_val="\$ac_env_${ac_var}_value"
1324 case $ac_old_set,$ac_new_set in
1325 set,)
1326 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1327echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1328 ac_cache_corrupted=: ;;
1329 ,set)
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1331echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1332 ac_cache_corrupted=: ;;
1333 ,);;
1334 *)
1335 if test "x$ac_old_val" != "x$ac_new_val"; then
1336 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1337echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1338 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1339echo "$as_me: former value: $ac_old_val" >&2;}
1340 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1341echo "$as_me: current value: $ac_new_val" >&2;}
1342 ac_cache_corrupted=:
1343 fi;;
1344 esac
1345 # Pass precious variables to config.status.
1346 if test "$ac_new_set" = set; then
1347 case $ac_new_val in
1348 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1349 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1350 *) ac_arg=$ac_var=$ac_new_val ;;
1351 esac
1352 case " $ac_configure_args " in
1353 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1354 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1355 esac
1356 fi
1357done
1358if $ac_cache_corrupted; then
1359 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1360echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1361 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1362echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1363 { (exit 1); exit 1; }; }
1364fi
1365
1366ac_ext=c
1367ac_cpp='$CPP $CPPFLAGS'
1368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398ac_config_headers="$ac_config_headers include/Config/config.h"
1399
1400
1401
1402ac_aux_dir=
1403for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1404 if test -f $ac_dir/install-sh; then
1405 ac_aux_dir=$ac_dir
1406 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 break
1408 elif test -f $ac_dir/install.sh; then
1409 ac_aux_dir=$ac_dir
1410 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 break
1412 elif test -f $ac_dir/shtool; then
1413 ac_aux_dir=$ac_dir
1414 ac_install_sh="$ac_aux_dir/shtool install -c"
1415 break
1416 fi
1417done
1418if test -z "$ac_aux_dir"; then
1419 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1420echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1421 { (exit 1); exit 1; }; }
1422fi
1423ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426
1427# Find a good install program. We prefer a C program (faster),
1428# so one script is as good as another. But avoid the broken or
1429# incompatible versions:
1430# SysV /etc/install, /usr/sbin/install
1431# SunOS /usr/etc/install
1432# IRIX /sbin/install
1433# AIX /bin/install
1434# AmigaOS /C/install, which installs bootblocks on floppy discs
1435# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1436# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1437# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1438# ./install, which can be erroneously created by make from ./install.sh.
1439echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1440echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1441if test -z "$INSTALL"; then
1442if test "${ac_cv_path_install+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 # Account for people who put trailing slashes in PATH elements.
1451case $as_dir/ in
1452 ./ | .// | /cC/* | \
1453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1454 /usr/ucb/* ) ;;
1455 *)
1456 # OSF1 and SCO ODT 3.0 have their own names for install.
1457 # Don't use installbsd from OSF since it installs stuff as root
1458 # by default.
1459 for ac_prog in ginstall scoinst install; do
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1462 if test $ac_prog = install &&
1463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1464 # AIX install. It has an incompatible calling convention.
1465 :
1466 elif test $ac_prog = install &&
1467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1468 # program-specific install script used by HP pwplus--don't use.
1469 :
1470 else
1471 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1472 break 3
1473 fi
1474 fi
1475 done
1476 done
1477 ;;
1478esac
1479done
1480
1481
1482fi
1483 if test "${ac_cv_path_install+set}" = set; then
1484 INSTALL=$ac_cv_path_install
1485 else
1486 # As a last resort, use the slow shell script. We don't cache a
1487 # path for INSTALL within a source directory, because that will
1488 # break other packages using the cache if that directory is
1489 # removed, or if the path is relative.
1490 INSTALL=$ac_install_sh
1491 fi
1492fi
1493echo "$as_me:$LINENO: result: $INSTALL" >&5
1494echo "${ECHO_T}$INSTALL" >&6
1495
1496# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1497# It thinks the first close brace ends the variable substitution.
1498test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1499
1500test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1501
1502test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1503
1504
1505# Make sure we can run config.sub.
1506$ac_config_sub sun4 >/dev/null 2>&1 ||
1507 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1508echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1509 { (exit 1); exit 1; }; }
1510
1511echo "$as_me:$LINENO: checking build system type" >&5
1512echo $ECHO_N "checking build system type... $ECHO_C" >&6
1513if test "${ac_cv_build+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1515else
1516 ac_cv_build_alias=$build_alias
1517test -z "$ac_cv_build_alias" &&
1518 ac_cv_build_alias=`$ac_config_guess`
1519test -z "$ac_cv_build_alias" &&
1520 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1521echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1522 { (exit 1); exit 1; }; }
1523ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1524 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1525echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1526 { (exit 1); exit 1; }; }
1527
1528fi
1529echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1530echo "${ECHO_T}$ac_cv_build" >&6
1531build=$ac_cv_build
1532build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1533build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1534build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1535
1536
1537echo "$as_me:$LINENO: checking host system type" >&5
1538echo $ECHO_N "checking host system type... $ECHO_C" >&6
1539if test "${ac_cv_host+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541else
1542 ac_cv_host_alias=$host_alias
1543test -z "$ac_cv_host_alias" &&
1544 ac_cv_host_alias=$ac_cv_build_alias
1545ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1547echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550fi
1551echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1552echo "${ECHO_T}$ac_cv_host" >&6
1553host=$ac_cv_host
1554host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559echo "$as_me:$LINENO: checking target system type" >&5
1560echo $ECHO_N "checking target system type... $ECHO_C" >&6
1561if test "${ac_cv_target+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_target_alias=$target_alias
1565test "x$ac_cv_target_alias" = "x" &&
1566 ac_cv_target_alias=$ac_cv_host_alias
1567ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1574echo "${ECHO_T}$ac_cv_target" >&6
1575target=$ac_cv_target
1576target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581# The aliases save the names the user supplied, while $host etc.
1582# will get canonicalized.
1583test -n "$target_alias" &&
1584 test "$program_prefix$program_suffix$program_transform_name" = \
1585 NONENONEs,x,x, &&
1586 program_prefix=${target_alias}-
1587
1588case $build in
1589 *i*86*) OS=Linux
1590
1591 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
1592
1593 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1594
1595 ;;
1596
1597 *sparc*) OS=SunOS
1598
1599 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1600
1601 ;;
1602
1603 *) OS=Unknown
1604
1605 ;;
1606esac
1607
1608case $target in
1609 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1610
1611 ;;
1612esac
1613
1614
1615ac_ext=cc
1616ac_cpp='$CXXCPP $CPPFLAGS'
1617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1620if test -n "$ac_tool_prefix"; then
1621 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1622 do
1623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1625echo "$as_me:$LINENO: checking for $ac_word" >&5
1626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627if test "${ac_cv_prog_CXX+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 if test -n "$CXX"; then
1631 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1632else
1633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634for as_dir in $PATH
1635do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 break 2
1643 fi
1644done
1645done
1646
1647fi
1648fi
1649CXX=$ac_cv_prog_CXX
1650if test -n "$CXX"; then
1651 echo "$as_me:$LINENO: result: $CXX" >&5
1652echo "${ECHO_T}$CXX" >&6
1653else
1654 echo "$as_me:$LINENO: result: no" >&5
1655echo "${ECHO_T}no" >&6
1656fi
1657
1658 test -n "$CXX" && break
1659 done
1660fi
1661if test -z "$CXX"; then
1662 ac_ct_CXX=$CXX
1663 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1664do
1665 # Extract the first word of "$ac_prog", so it can be a program name with args.
1666set dummy $ac_prog; ac_word=$2
1667echo "$as_me:$LINENO: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672 if test -n "$ac_ct_CXX"; then
1673 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1674else
1675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CXX="$ac_prog"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1685 fi
1686done
1687done
1688
1689fi
1690fi
1691ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1692if test -n "$ac_ct_CXX"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1694echo "${ECHO_T}$ac_ct_CXX" >&6
1695else
1696 echo "$as_me:$LINENO: result: no" >&5
1697echo "${ECHO_T}no" >&6
1698fi
1699
1700 test -n "$ac_ct_CXX" && break
1701done
1702test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1703
1704 CXX=$ac_ct_CXX
1705fi
1706
1707
1708# Provide some information about the compiler.
1709echo "$as_me:$LINENO:" \
1710 "checking for C++ compiler version" >&5
1711ac_compiler=`set X $ac_compile; echo $2`
1712{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1713 (eval $ac_compiler --version </dev/null >&5) 2>&5
1714 ac_status=$?
1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716 (exit $ac_status); }
1717{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1718 (eval $ac_compiler -v </dev/null >&5) 2>&5
1719 ac_status=$?
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }
1722{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1723 (eval $ac_compiler -V </dev/null >&5) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }
1727
1728cat >conftest.$ac_ext <<_ACEOF
1729#line $LINENO "configure"
1730#include "confdefs.h"
1731
1732#ifdef F77_DUMMY_MAIN
1733# ifdef __cplusplus
1734 extern "C"
1735# endif
1736 int F77_DUMMY_MAIN() { return 1; }
1737#endif
1738int
1739main ()
1740{
1741
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746ac_clean_files_save=$ac_clean_files
1747ac_clean_files="$ac_clean_files a.out a.exe"
1748# Try to create an executable without -o first, disregard a.out.
1749# It will help us diagnose broken compilers, and finding out an intuition
1750# of exeext.
1751echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1752echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1753ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # Find the output, starting from the most likely. This scheme is
1760# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761# resort.
1762
1763# Be careful to initialize this variable, since it used to be cached.
1764# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765ac_cv_exeext=
1766for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1767 ls a.out conftest 2>/dev/null;
1768 ls a.* conftest.* 2>/dev/null`; do
1769 case $ac_file in
1770 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1771 a.out ) # We found the default executable, but exeext='' is most
1772 # certainly right.
1773 break;;
1774 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1775 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1776 export ac_cv_exeext
1777 break;;
1778 * ) break;;
1779 esac
1780done
1781else
1782 echo "$as_me: failed program was:" >&5
1783cat conftest.$ac_ext >&5
1784{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1785echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1786 { (exit 77); exit 77; }; }
1787fi
1788
1789ac_exeext=$ac_cv_exeext
1790echo "$as_me:$LINENO: result: $ac_file" >&5
1791echo "${ECHO_T}$ac_file" >&6
1792
1793# Check the compiler produces executables we can run. If not, either
1794# the compiler is broken, or we cross compile.
1795echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1796echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1797# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1798# If not cross compiling, check that we can run a simple program.
1799if test "$cross_compiling" != yes; then
1800 if { ac_try='./$ac_file'
1801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802 (eval $ac_try) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1806 cross_compiling=no
1807 else
1808 if test "$cross_compiling" = maybe; then
1809 cross_compiling=yes
1810 else
1811 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1812If you meant to cross compile, use \`--host'." >&5
1813echo "$as_me: error: cannot run C++ compiled programs.
1814If you meant to cross compile, use \`--host'." >&2;}
1815 { (exit 1); exit 1; }; }
1816 fi
1817 fi
1818fi
1819echo "$as_me:$LINENO: result: yes" >&5
1820echo "${ECHO_T}yes" >&6
1821
1822rm -f a.out a.exe conftest$ac_cv_exeext
1823ac_clean_files=$ac_clean_files_save
1824# Check the compiler produces executables we can run. If not, either
1825# the compiler is broken, or we cross compile.
1826echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1827echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1828echo "$as_me:$LINENO: result: $cross_compiling" >&5
1829echo "${ECHO_T}$cross_compiling" >&6
1830
1831echo "$as_me:$LINENO: checking for suffix of executables" >&5
1832echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1834 (eval $ac_link) 2>&5
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; then
1838 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1839# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1840# work properly (i.e., refer to `conftest.exe'), while it won't with
1841# `rm'.
1842for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1843 case $ac_file in
1844 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 export ac_cv_exeext
1847 break;;
1848 * ) break;;
1849 esac
1850done
1851else
1852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1853echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1854 { (exit 1); exit 1; }; }
1855fi
1856
1857rm -f conftest$ac_cv_exeext
1858echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1859echo "${ECHO_T}$ac_cv_exeext" >&6
1860
1861rm -f conftest.$ac_ext
1862EXEEXT=$ac_cv_exeext
1863ac_exeext=$EXEEXT
1864echo "$as_me:$LINENO: checking for suffix of object files" >&5
1865echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1866if test "${ac_cv_objext+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869 cat >conftest.$ac_ext <<_ACEOF
1870#line $LINENO "configure"
1871#include "confdefs.h"
1872
1873#ifdef F77_DUMMY_MAIN
1874# ifdef __cplusplus
1875 extern "C"
1876# endif
1877 int F77_DUMMY_MAIN() { return 1; }
1878#endif
1879int
1880main ()
1881{
1882
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887rm -f conftest.o conftest.obj
1888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1889 (eval $ac_compile) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1894 case $ac_file in
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1896 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1897 break;;
1898 esac
1899done
1900else
1901 echo "$as_me: failed program was:" >&5
1902cat conftest.$ac_ext >&5
1903{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1904echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1905 { (exit 1); exit 1; }; }
1906fi
1907
1908rm -f conftest.$ac_cv_objext conftest.$ac_ext
1909fi
1910echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1911echo "${ECHO_T}$ac_cv_objext" >&6
1912OBJEXT=$ac_cv_objext
1913ac_objext=$OBJEXT
1914echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1915echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1916if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919 cat >conftest.$ac_ext <<_ACEOF
1920#line $LINENO "configure"
1921#include "confdefs.h"
1922
1923#ifdef F77_DUMMY_MAIN
1924# ifdef __cplusplus
1925 extern "C"
1926# endif
1927 int F77_DUMMY_MAIN() { return 1; }
1928#endif
1929int
1930main ()
1931{
1932#ifndef __GNUC__
1933 choke me
1934#endif
1935
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940rm -f conftest.$ac_objext
1941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); } &&
1946 { ac_try='test -s conftest.$ac_objext'
1947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948 (eval $ac_try) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1952 ac_compiler_gnu=yes
1953else
1954 echo "$as_me: failed program was:" >&5
1955cat conftest.$ac_ext >&5
1956ac_compiler_gnu=no
1957fi
1958rm -f conftest.$ac_objext conftest.$ac_ext
1959ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1960
1961fi
1962echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1963echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1964GXX=`test $ac_compiler_gnu = yes && echo yes`
1965ac_test_CXXFLAGS=${CXXFLAGS+set}
1966ac_save_CXXFLAGS=$CXXFLAGS
1967CXXFLAGS="-g"
1968echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1969echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1970if test "${ac_cv_prog_cxx_g+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
1974#line $LINENO "configure"
1975#include "confdefs.h"
1976
1977#ifdef F77_DUMMY_MAIN
1978# ifdef __cplusplus
1979 extern "C"
1980# endif
1981 int F77_DUMMY_MAIN() { return 1; }
1982#endif
1983int
1984main ()
1985{
1986
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991rm -f conftest.$ac_objext
1992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -s conftest.$ac_objext'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; }; then
2003 ac_cv_prog_cxx_g=yes
2004else
2005 echo "$as_me: failed program was:" >&5
2006cat conftest.$ac_ext >&5
2007ac_cv_prog_cxx_g=no
2008fi
2009rm -f conftest.$ac_objext conftest.$ac_ext
2010fi
2011echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2012echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2013if test "$ac_test_CXXFLAGS" = set; then
2014 CXXFLAGS=$ac_save_CXXFLAGS
2015elif test $ac_cv_prog_cxx_g = yes; then
2016 if test "$GXX" = yes; then
2017 CXXFLAGS="-g -O2"
2018 else
2019 CXXFLAGS="-g"
2020 fi
2021else
2022 if test "$GXX" = yes; then
2023 CXXFLAGS="-O2"
2024 else
2025 CXXFLAGS=
2026 fi
2027fi
2028for ac_declaration in \
2029 ''\
2030 '#include <stdlib.h>' \
2031 'extern "C" void std::exit (int) throw (); using std::exit;' \
2032 'extern "C" void std::exit (int); using std::exit;' \
2033 'extern "C" void exit (int) throw ();' \
2034 'extern "C" void exit (int);' \
2035 'void exit (int);'
2036do
2037 cat >conftest.$ac_ext <<_ACEOF
2038#line $LINENO "configure"
2039#include "confdefs.h"
2040#include <stdlib.h>
2041$ac_declaration
2042#ifdef F77_DUMMY_MAIN
2043# ifdef __cplusplus
2044 extern "C"
2045# endif
2046 int F77_DUMMY_MAIN() { return 1; }
2047#endif
2048int
2049main ()
2050{
2051exit (42);
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056rm -f conftest.$ac_objext
2057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2058 (eval $ac_compile) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 :
2069else
2070 echo "$as_me: failed program was:" >&5
2071cat conftest.$ac_ext >&5
2072continue
2073fi
2074rm -f conftest.$ac_objext conftest.$ac_ext
2075 cat >conftest.$ac_ext <<_ACEOF
2076#line $LINENO "configure"
2077#include "confdefs.h"
2078$ac_declaration
2079#ifdef F77_DUMMY_MAIN
2080# ifdef __cplusplus
2081 extern "C"
2082# endif
2083 int F77_DUMMY_MAIN() { return 1; }
2084#endif
2085int
2086main ()
2087{
2088exit (42);
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093rm -f conftest.$ac_objext
2094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 break
2106else
2107 echo "$as_me: failed program was:" >&5
2108cat conftest.$ac_ext >&5
2109fi
2110rm -f conftest.$ac_objext conftest.$ac_ext
2111done
2112rm -f conftest*
2113if test -n "$ac_declaration"; then
2114 echo '#ifdef __cplusplus' >>confdefs.h
2115 echo $ac_declaration >>confdefs.h
2116 echo '#endif' >>confdefs.h
2117fi
2118
2119ac_ext=c
2120ac_cpp='$CPP $CPPFLAGS'
2121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124
2125ac_ext=c
2126ac_cpp='$CPP $CPPFLAGS'
2127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130if test -n "$ac_tool_prefix"; then
2131 for ac_prog in gcc
2132 do
2133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 break 2
2153 fi
2154done
2155done
2156
2157fi
2158fi
2159CC=$ac_cv_prog_CC
2160if test -n "$CC"; then
2161 echo "$as_me:$LINENO: result: $CC" >&5
2162echo "${ECHO_T}$CC" >&6
2163else
2164 echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168 test -n "$CC" && break
2169 done
2170fi
2171if test -z "$CC"; then
2172 ac_ct_CC=$CC
2173 for ac_prog in gcc
2174do
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176set dummy $ac_prog; ac_word=$2
2177echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 if test -n "$ac_ct_CC"; then
2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184else
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_ac_ct_CC="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196done
2197done
2198
2199fi
2200fi
2201ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202if test -n "$ac_ct_CC"; then
2203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204echo "${ECHO_T}$ac_ct_CC" >&6
2205else
2206 echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6
2208fi
2209
2210 test -n "$ac_ct_CC" && break
2211done
2212
2213 CC=$ac_ct_CC
2214fi
2215
2216
2217test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2218echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2219 { (exit 1); exit 1; }; }
2220
2221# Provide some information about the compiler.
2222echo "$as_me:$LINENO:" \
2223 "checking for C compiler version" >&5
2224ac_compiler=`set X $ac_compile; echo $2`
2225{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2226 (eval $ac_compiler --version </dev/null >&5) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }
2230{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2231 (eval $ac_compiler -v </dev/null >&5) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }
2235{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2236 (eval $ac_compiler -V </dev/null >&5) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }
2240
2241echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2242echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2243if test "${ac_cv_c_compiler_gnu+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246 cat >conftest.$ac_ext <<_ACEOF
2247#line $LINENO "configure"
2248#include "confdefs.h"
2249
2250#ifdef F77_DUMMY_MAIN
2251# ifdef __cplusplus
2252 extern "C"
2253# endif
2254 int F77_DUMMY_MAIN() { return 1; }
2255#endif
2256int
2257main ()
2258{
2259#ifndef __GNUC__
2260 choke me
2261#endif
2262
2263 ;
2264 return 0;
2265}
2266_ACEOF
2267rm -f conftest.$ac_objext
2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 ac_compiler_gnu=yes
2280else
2281 echo "$as_me: failed program was:" >&5
2282cat conftest.$ac_ext >&5
2283ac_compiler_gnu=no
2284fi
2285rm -f conftest.$ac_objext conftest.$ac_ext
2286ac_cv_c_compiler_gnu=$ac_compiler_gnu
2287
2288fi
2289echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291GCC=`test $ac_compiler_gnu = yes && echo yes`
2292ac_test_CFLAGS=${CFLAGS+set}
2293ac_save_CFLAGS=$CFLAGS
2294CFLAGS="-g"
2295echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297if test "${ac_cv_prog_cc_g+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300 cat >conftest.$ac_ext <<_ACEOF
2301#line $LINENO "configure"
2302#include "confdefs.h"
2303
2304#ifdef F77_DUMMY_MAIN
2305# ifdef __cplusplus
2306 extern "C"
2307# endif
2308 int F77_DUMMY_MAIN() { return 1; }
2309#endif
2310int
2311main ()
2312{
2313
2314 ;
2315 return 0;
2316}
2317_ACEOF
2318rm -f conftest.$ac_objext
2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -s conftest.$ac_objext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 ac_cv_prog_cc_g=yes
2331else
2332 echo "$as_me: failed program was:" >&5
2333cat conftest.$ac_ext >&5
2334ac_cv_prog_cc_g=no
2335fi
2336rm -f conftest.$ac_objext conftest.$ac_ext
2337fi
2338echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2339echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2340if test "$ac_test_CFLAGS" = set; then
2341 CFLAGS=$ac_save_CFLAGS
2342elif test $ac_cv_prog_cc_g = yes; then
2343 if test "$GCC" = yes; then
2344 CFLAGS="-g -O2"
2345 else
2346 CFLAGS="-g"
2347 fi
2348else
2349 if test "$GCC" = yes; then
2350 CFLAGS="-O2"
2351 else
2352 CFLAGS=
2353 fi
2354fi
2355# Some people use a C++ compiler to compile C. Since we use `exit',
2356# in C++ we need to declare it. In case someone uses the same compiler
2357# for both compiling C and C++ we need to have the C++ compiler decide
2358# the declaration of exit, since it's the most demanding environment.
2359cat >conftest.$ac_ext <<_ACEOF
2360#ifndef __cplusplus
2361 choke me
2362#endif
2363_ACEOF
2364rm -f conftest.$ac_objext
2365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 for ac_declaration in \
2377 ''\
2378 '#include <stdlib.h>' \
2379 'extern "C" void std::exit (int) throw (); using std::exit;' \
2380 'extern "C" void std::exit (int); using std::exit;' \
2381 'extern "C" void exit (int) throw ();' \
2382 'extern "C" void exit (int);' \
2383 'void exit (int);'
2384do
2385 cat >conftest.$ac_ext <<_ACEOF
2386#line $LINENO "configure"
2387#include "confdefs.h"
2388#include <stdlib.h>
2389$ac_declaration
2390#ifdef F77_DUMMY_MAIN
2391# ifdef __cplusplus
2392 extern "C"
2393# endif
2394 int F77_DUMMY_MAIN() { return 1; }
2395#endif
2396int
2397main ()
2398{
2399exit (42);
2400 ;
2401 return 0;
2402}
2403_ACEOF
2404rm -f conftest.$ac_objext
2405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 :
2417else
2418 echo "$as_me: failed program was:" >&5
2419cat conftest.$ac_ext >&5
2420continue
2421fi
2422rm -f conftest.$ac_objext conftest.$ac_ext
2423 cat >conftest.$ac_ext <<_ACEOF
2424#line $LINENO "configure"
2425#include "confdefs.h"
2426$ac_declaration
2427#ifdef F77_DUMMY_MAIN
2428# ifdef __cplusplus
2429 extern "C"
2430# endif
2431 int F77_DUMMY_MAIN() { return 1; }
2432#endif
2433int
2434main ()
2435{
2436exit (42);
2437 ;
2438 return 0;
2439}
2440_ACEOF
2441rm -f conftest.$ac_objext
2442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 break
2454else
2455 echo "$as_me: failed program was:" >&5
2456cat conftest.$ac_ext >&5
2457fi
2458rm -f conftest.$ac_objext conftest.$ac_ext
2459done
2460rm -f conftest*
2461if test -n "$ac_declaration"; then
2462 echo '#ifdef __cplusplus' >>confdefs.h
2463 echo $ac_declaration >>confdefs.h
2464 echo '#endif' >>confdefs.h
2465fi
2466
2467else
2468 echo "$as_me: failed program was:" >&5
2469cat conftest.$ac_ext >&5
2470fi
2471rm -f conftest.$ac_objext conftest.$ac_ext
2472ac_ext=c
2473ac_cpp='$CPP $CPPFLAGS'
2474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477
2478ac_ext=c
2479ac_cpp='$CPP $CPPFLAGS'
2480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2484echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2485# On Suns, sometimes $CPP names a directory.
2486if test -n "$CPP" && test -d "$CPP"; then
2487 CPP=
2488fi
2489if test -z "$CPP"; then
2490 if test "${ac_cv_prog_CPP+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493 # Double quotes because CPP needs to be expanded
2494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2495 do
2496 ac_preproc_ok=false
2497for ac_c_preproc_warn_flag in '' yes
2498do
2499 # Use a header file that comes with gcc, so configuring glibc
2500 # with a fresh cross-compiler works.
2501 # On the NeXT, cc -E runs the code through the compiler's parser,
2502 # not just through cpp. "Syntax error" is here to catch this case.
2503 cat >conftest.$ac_ext <<_ACEOF
2504#line $LINENO "configure"
2505#include "confdefs.h"
2506#include <assert.h>
2507 Syntax error
2508_ACEOF
2509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2511 ac_status=$?
2512 egrep -v '^ *\+' conftest.er1 >conftest.err
2513 rm -f conftest.er1
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } >/dev/null; then
2517 if test -s conftest.err; then
2518 ac_cpp_err=$ac_c_preproc_warn_flag
2519 else
2520 ac_cpp_err=
2521 fi
2522else
2523 ac_cpp_err=yes
2524fi
2525if test -z "$ac_cpp_err"; then
2526 :
2527else
2528 echo "$as_me: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2530 # Broken: fails on valid input.
2531continue
2532fi
2533rm -f conftest.err conftest.$ac_ext
2534
2535 # OK, works on sane cases. Now check whether non-existent headers
2536 # can be detected and how.
2537 cat >conftest.$ac_ext <<_ACEOF
2538#line $LINENO "configure"
2539#include "confdefs.h"
2540#include <ac_nonexistent.h>
2541_ACEOF
2542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2544 ac_status=$?
2545 egrep -v '^ *\+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } >/dev/null; then
2550 if test -s conftest.err; then
2551 ac_cpp_err=$ac_c_preproc_warn_flag
2552 else
2553 ac_cpp_err=
2554 fi
2555else
2556 ac_cpp_err=yes
2557fi
2558if test -z "$ac_cpp_err"; then
2559 # Broken: success on invalid input.
2560continue
2561else
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 # Passes both tests.
2565ac_preproc_ok=:
2566break
2567fi
2568rm -f conftest.err conftest.$ac_ext
2569
2570done
2571# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2572rm -f conftest.err conftest.$ac_ext
2573if $ac_preproc_ok; then
2574 break
2575fi
2576
2577 done
2578 ac_cv_prog_CPP=$CPP
2579
2580fi
2581 CPP=$ac_cv_prog_CPP
2582else
2583 ac_cv_prog_CPP=$CPP
2584fi
2585echo "$as_me:$LINENO: result: $CPP" >&5
2586echo "${ECHO_T}$CPP" >&6
2587ac_preproc_ok=false
2588for ac_c_preproc_warn_flag in '' yes
2589do
2590 # Use a header file that comes with gcc, so configuring glibc
2591 # with a fresh cross-compiler works.
2592 # On the NeXT, cc -E runs the code through the compiler's parser,
2593 # not just through cpp. "Syntax error" is here to catch this case.
2594 cat >conftest.$ac_ext <<_ACEOF
2595#line $LINENO "configure"
2596#include "confdefs.h"
2597#include <assert.h>
2598 Syntax error
2599_ACEOF
2600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2602 ac_status=$?
2603 egrep -v '^ *\+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } >/dev/null; then
2608 if test -s conftest.err; then
2609 ac_cpp_err=$ac_c_preproc_warn_flag
2610 else
2611 ac_cpp_err=
2612 fi
2613else
2614 ac_cpp_err=yes
2615fi
2616if test -z "$ac_cpp_err"; then
2617 :
2618else
2619 echo "$as_me: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2621 # Broken: fails on valid input.
2622continue
2623fi
2624rm -f conftest.err conftest.$ac_ext
2625
2626 # OK, works on sane cases. Now check whether non-existent headers
2627 # can be detected and how.
2628 cat >conftest.$ac_ext <<_ACEOF
2629#line $LINENO "configure"
2630#include "confdefs.h"
2631#include <ac_nonexistent.h>
2632_ACEOF
2633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2635 ac_status=$?
2636 egrep -v '^ *\+' conftest.er1 >conftest.err
2637 rm -f conftest.er1
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } >/dev/null; then
2641 if test -s conftest.err; then
2642 ac_cpp_err=$ac_c_preproc_warn_flag
2643 else
2644 ac_cpp_err=
2645 fi
2646else
2647 ac_cpp_err=yes
2648fi
2649if test -z "$ac_cpp_err"; then
2650 # Broken: success on invalid input.
2651continue
2652else
2653 echo "$as_me: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2655 # Passes both tests.
2656ac_preproc_ok=:
2657break
2658fi
2659rm -f conftest.err conftest.$ac_ext
2660
2661done
2662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2663rm -f conftest.err conftest.$ac_ext
2664if $ac_preproc_ok; then
2665 :
2666else
2667 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2668echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2669 { (exit 1); exit 1; }; }
2670fi
2671
2672ac_ext=c
2673ac_cpp='$CPP $CPPFLAGS'
2674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677
2678
2679if test "$GCC" != "yes"
2680then
2681 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2682echo "$as_me: error: gcc required but not found" >&2;}
2683 { (exit 1); exit 1; }; }
2684fi
2685
2686if test "$GXX" != "yes"
2687then
2688 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2689echo "$as_me: error: g++ required but not found" >&2;}
2690 { (exit 1); exit 1; }; }
2691fi
2692
2693 echo "$as_me:$LINENO: checking for GNU make" >&5
2694echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2695if test "${_cv_gnu_make_command+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698 _cv_gnu_make_command='' ;
2699 for a in "$MAKE" make gmake gnumake ; do
2700 if test -z "$a" ; then continue ; fi ;
2701 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2702 _cv_gnu_make_command=$a ;
2703 break;
2704 fi
2705 done ;
2706
2707fi
2708echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2709echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2710 if test "x$_cv_gnu_make_command" != "x" ; then
2711 ifGNUmake='' ;
2712 else
2713 ifGNUmake='#' ;
2714 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2715echo "${ECHO_T}\"Not found\"" >&6;
2716 fi
2717
2718
2719if test -z "$_cv_gnu_make_command"
2720then
2721 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2722echo "$as_me: error: GNU Make required but not found" >&2;}
2723 { (exit 1); exit 1; }; }
2724fi
2725
2726
2727echo "$as_me:$LINENO: checking " >&5
2728echo $ECHO_N "checking ... $ECHO_C" >&6
2729if test "${ac_cv_has_flex+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731else
2732 for ac_prog in flex lex
2733do
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735set dummy $ac_prog; ac_word=$2
2736echo "$as_me:$LINENO: checking for $ac_word" >&5
2737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738if test "${ac_cv_prog_LEX+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 if test -n "$LEX"; then
2742 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_LEX="$ac_prog"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755done
2756done
2757
2758fi
2759fi
2760LEX=$ac_cv_prog_LEX
2761if test -n "$LEX"; then
2762 echo "$as_me:$LINENO: result: $LEX" >&5
2763echo "${ECHO_T}$LEX" >&6
2764else
2765 echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6
2767fi
2768
2769 test -n "$LEX" && break
2770done
2771test -n "$LEX" || LEX=":"
2772
2773if test -z "$LEXLIB"
2774then
2775 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2776echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2777if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780 ac_check_lib_save_LIBS=$LIBS
2781LIBS="-lfl $LIBS"
2782cat >conftest.$ac_ext <<_ACEOF
2783#line $LINENO "configure"
2784#include "confdefs.h"
2785
2786/* Override any gcc2 internal prototype to avoid an error. */
2787#ifdef __cplusplus
2788extern "C"
2789#endif
2790/* We use char because int might match the return type of a gcc2
2791 builtin and then its argument prototype would still apply. */
2792char yywrap ();
2793#ifdef F77_DUMMY_MAIN
2794# ifdef __cplusplus
2795 extern "C"
2796# endif
2797 int F77_DUMMY_MAIN() { return 1; }
2798#endif
2799int
2800main ()
2801{
2802yywrap ();
2803 ;
2804 return 0;
2805}
2806_ACEOF
2807rm -f conftest.$ac_objext conftest$ac_exeext
2808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2809 (eval $ac_link) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest$ac_exeext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 ac_cv_lib_fl_yywrap=yes
2820else
2821 echo "$as_me: failed program was:" >&5
2822cat conftest.$ac_ext >&5
2823ac_cv_lib_fl_yywrap=no
2824fi
2825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2826LIBS=$ac_check_lib_save_LIBS
2827fi
2828echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2829echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2830if test $ac_cv_lib_fl_yywrap = yes; then
2831 LEXLIB="-lfl"
2832else
2833 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2834echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2835if test "${ac_cv_lib_l_yywrap+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838 ac_check_lib_save_LIBS=$LIBS
2839LIBS="-ll $LIBS"
2840cat >conftest.$ac_ext <<_ACEOF
2841#line $LINENO "configure"
2842#include "confdefs.h"
2843
2844/* Override any gcc2 internal prototype to avoid an error. */
2845#ifdef __cplusplus
2846extern "C"
2847#endif
2848/* We use char because int might match the return type of a gcc2
2849 builtin and then its argument prototype would still apply. */
2850char yywrap ();
2851#ifdef F77_DUMMY_MAIN
2852# ifdef __cplusplus
2853 extern "C"
2854# endif
2855 int F77_DUMMY_MAIN() { return 1; }
2856#endif
2857int
2858main ()
2859{
2860yywrap ();
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865rm -f conftest.$ac_objext conftest$ac_exeext
2866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2867 (eval $ac_link) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 { ac_try='test -s conftest$ac_exeext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_cv_lib_l_yywrap=yes
2878else
2879 echo "$as_me: failed program was:" >&5
2880cat conftest.$ac_ext >&5
2881ac_cv_lib_l_yywrap=no
2882fi
2883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2884LIBS=$ac_check_lib_save_LIBS
2885fi
2886echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2887echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2888if test $ac_cv_lib_l_yywrap = yes; then
2889 LEXLIB="-ll"
2890fi
2891
2892fi
2893
2894fi
2895
2896if test "x$LEX" != "x:"; then
2897 echo "$as_me:$LINENO: checking lex output file root" >&5
2898echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2899if test "${ac_cv_prog_lex_root+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901else
2902 # The minimal lex program is just a single line: %%. But some broken lexes
2903# (Solaris, I think it was) want two %% lines, so accommodate them.
2904cat >conftest.l <<_ACEOF
2905%%
2906%%
2907_ACEOF
2908{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2909 (eval $LEX conftest.l) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913if test -f lex.yy.c; then
2914 ac_cv_prog_lex_root=lex.yy
2915elif test -f lexyy.c; then
2916 ac_cv_prog_lex_root=lexyy
2917else
2918 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2919echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2920 { (exit 1); exit 1; }; }
2921fi
2922fi
2923echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2924echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2925rm -f conftest.l
2926LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2927
2928echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2929echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2930if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933 # POSIX says lex can declare yytext either as a pointer or an array; the
2934# default is implementation-dependent. Figure out which it is, since
2935# not all implementations provide the %pointer and %array declarations.
2936ac_cv_prog_lex_yytext_pointer=no
2937echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2938ac_save_LIBS=$LIBS
2939LIBS="$LIBS $LEXLIB"
2940cat >conftest.$ac_ext <<_ACEOF
2941`cat $LEX_OUTPUT_ROOT.c`
2942_ACEOF
2943rm -f conftest.$ac_objext conftest$ac_exeext
2944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945 (eval $ac_link) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest$ac_exeext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 ac_cv_prog_lex_yytext_pointer=yes
2956else
2957 echo "$as_me: failed program was:" >&5
2958cat conftest.$ac_ext >&5
2959fi
2960rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2961LIBS=$ac_save_LIBS
2962rm -f "${LEX_OUTPUT_ROOT}.c"
2963
2964fi
2965echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2966echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2967if test $ac_cv_prog_lex_yytext_pointer = yes; then
2968
2969cat >>confdefs.h <<\_ACEOF
2970#define YYTEXT_POINTER 1
2971_ACEOF
2972
2973fi
2974
2975fi
2976
2977fi
2978echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
2979echo "${ECHO_T}$ac_cv_has_flex" >&6
2980if test "$LEX" != "flex"; then
2981 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
2982echo "$as_me: error: flex not found but required" >&2;}
2983 { (exit 1); exit 1; }; }
2984fi
2985
2986echo "$as_me:$LINENO: checking " >&5
2987echo $ECHO_N "checking ... $ECHO_C" >&6
2988if test "${ac_cv_has_bison+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 for ac_prog in 'bison -y' byacc
2992do
2993 # Extract the first word of "$ac_prog", so it can be a program name with args.
2994set dummy $ac_prog; ac_word=$2
2995echo "$as_me:$LINENO: checking for $ac_word" >&5
2996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2997if test "${ac_cv_prog_YACC+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
3000 if test -n "$YACC"; then
3001 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_YACC="$ac_prog"
3011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014done
3015done
3016
3017fi
3018fi
3019YACC=$ac_cv_prog_YACC
3020if test -n "$YACC"; then
3021 echo "$as_me:$LINENO: result: $YACC" >&5
3022echo "${ECHO_T}$YACC" >&6
3023else
3024 echo "$as_me:$LINENO: result: no" >&5
3025echo "${ECHO_T}no" >&6
3026fi
3027
3028 test -n "$YACC" && break
3029done
3030test -n "$YACC" || YACC="yacc"
3031
3032
3033fi
3034echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3035echo "${ECHO_T}$ac_cv_has_bison" >&6
3036if test "$YACC" != "bison -y"; then
3037 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3038echo "$as_me: error: bison not found but required" >&2;}
3039 { (exit 1); exit 1; }; }
3040else
3041 YACC=bison
3042
3043fi
3044
3045
3046# Check whether --enable-shared or --disable-shared was given.
3047if test "${enable_shared+set}" = set; then
3048 enableval="$enable_shared"
3049 p=${PACKAGE-default}
3050case $enableval in
3051yes) enable_shared=yes ;;
3052no) enable_shared=no ;;
3053*)
3054 enable_shared=no
3055 # Look at the argument we got. We use all the common list separators.
3056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3057 for pkg in $enableval; do
3058 if test "X$pkg" = "X$p"; then
3059 enable_shared=yes
3060 fi
3061 done
3062 IFS="$ac_save_ifs"
3063 ;;
3064esac
3065else
3066 enable_shared=yes
3067fi;
3068# Check whether --enable-static or --disable-static was given.
3069if test "${enable_static+set}" = set; then
3070 enableval="$enable_static"
3071 p=${PACKAGE-default}
3072case $enableval in
3073yes) enable_static=yes ;;
3074no) enable_static=no ;;
3075*)
3076 enable_static=no
3077 # Look at the argument we got. We use all the common list separators.
3078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3079 for pkg in $enableval; do
3080 if test "X$pkg" = "X$p"; then
3081 enable_static=yes
3082 fi
3083 done
3084 IFS="$ac_save_ifs"
3085 ;;
3086esac
3087else
3088 enable_static=yes
3089fi;
3090# Check whether --enable-fast-install or --disable-fast-install was given.
3091if test "${enable_fast_install+set}" = set; then
3092 enableval="$enable_fast_install"
3093 p=${PACKAGE-default}
3094case $enableval in
3095yes) enable_fast_install=yes ;;
3096no) enable_fast_install=no ;;
3097*)
3098 enable_fast_install=no
3099 # Look at the argument we got. We use all the common list separators.
3100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3101 for pkg in $enableval; do
3102 if test "X$pkg" = "X$p"; then
3103 enable_fast_install=yes
3104 fi
3105 done
3106 IFS="$ac_save_ifs"
3107 ;;
3108esac
3109else
3110 enable_fast_install=yes
3111fi;
3112# Find the correct PATH separator. Usually this is `:', but
3113# DJGPP uses `;' like DOS.
3114if test "X${PATH_SEPARATOR+set}" != Xset; then
3115 UNAME=${UNAME-`uname 2>/dev/null`}
3116 case X$UNAME in
3117 *-DOS) lt_cv_sys_path_separator=';' ;;
3118 *) lt_cv_sys_path_separator=':' ;;
3119 esac
3120 PATH_SEPARATOR=$lt_cv_sys_path_separator
3121fi
3122
3123
3124# Check whether --with-gnu-ld or --without-gnu-ld was given.
3125if test "${with_gnu_ld+set}" = set; then
3126 withval="$with_gnu_ld"
3127 test "$withval" = no || with_gnu_ld=yes
3128else
3129 with_gnu_ld=no
3130fi;
3131ac_prog=ld
3132if test "$GCC" = yes; then
3133 # Check if gcc -print-prog-name=ld gives a path.
3134 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3135echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3136 case $host in
3137 *-*-mingw*)
3138 # gcc leaves a trailing carriage return which upsets mingw
3139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3140 *)
3141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3142 esac
3143 case $ac_prog in
3144 # Accept absolute paths.
3145 [\\/]* | [A-Za-z]:[\\/]*)
3146 re_direlt='/[^/][^/]*/\.\./'
3147 # Canonicalize the path of ld
3148 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3150 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3151 done
3152 test -z "$LD" && LD="$ac_prog"
3153 ;;
3154 "")
3155 # If it fails, then pretend we aren't using GCC.
3156 ac_prog=ld
3157 ;;
3158 *)
3159 # If it is relative, then search for the first ld in PATH.
3160 with_gnu_ld=unknown
3161 ;;
3162 esac
3163elif test "$with_gnu_ld" = yes; then
3164 echo "$as_me:$LINENO: checking for GNU ld" >&5
3165echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3166else
3167 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3168echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3169fi
3170if test "${lt_cv_path_LD+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 if test -z "$LD"; then
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3175 for ac_dir in $PATH; do
3176 test -z "$ac_dir" && ac_dir=.
3177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3178 lt_cv_path_LD="$ac_dir/$ac_prog"
3179 # Check to see if the program is GNU ld. I'd rather use --version,
3180 # but apparently some GNU ld's only accept -v.
3181 # Break only if it was the GNU/non-GNU ld that we prefer.
3182 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3183 test "$with_gnu_ld" != no && break
3184 else
3185 test "$with_gnu_ld" != yes && break
3186 fi
3187 fi
3188 done
3189 IFS="$ac_save_ifs"
3190else
3191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3192fi
3193fi
3194
3195LD="$lt_cv_path_LD"
3196if test -n "$LD"; then
3197 echo "$as_me:$LINENO: result: $LD" >&5
3198echo "${ECHO_T}$LD" >&6
3199else
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202fi
3203test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3204echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3205 { (exit 1); exit 1; }; }
3206echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3207echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3208if test "${lt_cv_prog_gnu_ld+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3212if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3213 lt_cv_prog_gnu_ld=yes
3214else
3215 lt_cv_prog_gnu_ld=no
3216fi
3217fi
3218echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3219echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3220with_gnu_ld=$lt_cv_prog_gnu_ld
3221
3222
3223echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3224echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3225if test "${lt_cv_ld_reload_flag+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228 lt_cv_ld_reload_flag='-r'
3229fi
3230echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3231echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3232reload_flag=$lt_cv_ld_reload_flag
3233test -n "$reload_flag" && reload_flag=" $reload_flag"
3234
3235echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3236echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3237if test "${lt_cv_path_NM+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239else
3240 if test -n "$NM"; then
3241 # Let the user override the test.
3242 lt_cv_path_NM="$NM"
3243else
3244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3245 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3246 test -z "$ac_dir" && ac_dir=.
3247 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3248 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3249 # Check to see if the nm accepts a BSD-compat flag.
3250 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3251 # nm: unknown option "B" ignored
3252 # Tru64's nm complains that /dev/null is an invalid object file
3253 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3254 lt_cv_path_NM="$tmp_nm -B"
3255 break
3256 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3257 lt_cv_path_NM="$tmp_nm -p"
3258 break
3259 else
3260 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3261 continue # so that we can try to find one that supports BSD flags
3262 fi
3263 fi
3264 done
3265 IFS="$ac_save_ifs"
3266 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3267fi
3268fi
3269
3270NM="$lt_cv_path_NM"
3271echo "$as_me:$LINENO: result: $NM" >&5
3272echo "${ECHO_T}$NM" >&6
3273
3274echo "$as_me:$LINENO: checking whether ln -s works" >&5
3275echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3276LN_S=$as_ln_s
3277if test "$LN_S" = "ln -s"; then
3278 echo "$as_me:$LINENO: result: yes" >&5
3279echo "${ECHO_T}yes" >&6
3280else
3281 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3282echo "${ECHO_T}no, using $LN_S" >&6
3283fi
3284
3285echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3286echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3287if test "${lt_cv_deplibs_check_method+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290 lt_cv_file_magic_cmd='$MAGIC_CMD'
3291lt_cv_file_magic_test_file=
3292lt_cv_deplibs_check_method='unknown'
3293# Need to set the preceding variable on all platforms that support
3294# interlibrary dependencies.
3295# 'none' -- dependencies not supported.
3296# `unknown' -- same as none, but documents that we really don't know.
3297# 'pass_all' -- all dependencies passed with no checks.
3298# 'test_compile' -- check by making test program.
3299# 'file_magic [[regex]]' -- check by looking for files in library path
3300# which responds to the $file_magic_cmd with a given egrep regex.
3301# If you have `file' or equivalent on your system and you're not sure
3302# whether `pass_all' will *always* work, you probably want this one.
3303
3304case $host_os in
3305aix4* | aix5*)
3306 lt_cv_deplibs_check_method=pass_all
3307 ;;
3308
3309beos*)
3310 lt_cv_deplibs_check_method=pass_all
3311 ;;
3312
3313bsdi4*)
3314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3315 lt_cv_file_magic_cmd='/usr/bin/file -L'
3316 lt_cv_file_magic_test_file=/shlib/libc.so
3317 ;;
3318
3319cygwin* | mingw* | pw32*)
3320 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3321 lt_cv_file_magic_cmd='$OBJDUMP -f'
3322 ;;
3323
3324darwin* | rhapsody*)
3325 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3326 lt_cv_file_magic_cmd='/usr/bin/file -L'
3327 case "$host_os" in
3328 rhapsody* | darwin1.[012])
3329 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3330 ;;
3331 *) # Darwin 1.3 on
3332 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3333 ;;
3334 esac
3335 ;;
3336
3337freebsd*)
3338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3339 case $host_cpu in
3340 i*86 )
3341 # Not sure whether the presence of OpenBSD here was a mistake.
3342 # Let's accept both of them until this is cleared up.
3343 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3344 lt_cv_file_magic_cmd=/usr/bin/file
3345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3346 ;;
3347 esac
3348 else
3349 lt_cv_deplibs_check_method=pass_all
3350 fi
3351 ;;
3352
3353gnu*)
3354 lt_cv_deplibs_check_method=pass_all
3355 ;;
3356
3357hpux10.20*|hpux11*)
3358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3359 lt_cv_file_magic_cmd=/usr/bin/file
3360 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3361 ;;
3362
3363irix5* | irix6*)
3364 case $host_os in
3365 irix5*)
3366 # this will be overridden with pass_all, but let us keep it just in case
3367 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3368 ;;
3369 *)
3370 case $LD in
3371 *-32|*"-32 ") libmagic=32-bit;;
3372 *-n32|*"-n32 ") libmagic=N32;;
3373 *-64|*"-64 ") libmagic=64-bit;;
3374 *) libmagic=never-match;;
3375 esac
3376 # this will be overridden with pass_all, but let us keep it just in case
3377 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3378 ;;
3379 esac
3380 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3381 lt_cv_deplibs_check_method=pass_all
3382 ;;
3383
3384# This must be Linux ELF.
3385linux-gnu*)
3386 case $host_cpu in
3387 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3388 lt_cv_deplibs_check_method=pass_all ;;
3389 *)
3390 # glibc up to 2.1.1 does not perform some relocations on ARM
3391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3392 esac
3393 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3394 ;;
3395
3396netbsd*)
3397 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3398 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3399 else
3400 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3401 fi
3402 ;;
3403
3404newos6*)
3405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3406 lt_cv_file_magic_cmd=/usr/bin/file
3407 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3408 ;;
3409
3410openbsd*)
3411 lt_cv_file_magic_cmd=/usr/bin/file
3412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3415 else
3416 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3417 fi
3418 ;;
3419
3420osf3* | osf4* | osf5*)
3421 # this will be overridden with pass_all, but let us keep it just in case
3422 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3423 lt_cv_file_magic_test_file=/shlib/libc.so
3424 lt_cv_deplibs_check_method=pass_all
3425 ;;
3426
3427sco3.2v5*)
3428 lt_cv_deplibs_check_method=pass_all
3429 ;;
3430
3431solaris*)
3432 lt_cv_deplibs_check_method=pass_all
3433 lt_cv_file_magic_test_file=/lib/libc.so
3434 ;;
3435
3436sysv5uw[78]* | sysv4*uw2*)
3437 lt_cv_deplibs_check_method=pass_all
3438 ;;
3439
3440sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3441 case $host_vendor in
3442 motorola)
3443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3445 ;;
3446 ncr)
3447 lt_cv_deplibs_check_method=pass_all
3448 ;;
3449 sequent)
3450 lt_cv_file_magic_cmd='/bin/file'
3451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3452 ;;
3453 sni)
3454 lt_cv_file_magic_cmd='/bin/file'
3455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3456 lt_cv_file_magic_test_file=/lib/libc.so
3457 ;;
3458 esac
3459 ;;
3460esac
3461
3462fi
3463echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3465file_magic_cmd=$lt_cv_file_magic_cmd
3466deplibs_check_method=$lt_cv_deplibs_check_method
3467
3468
3469
3470
3471
3472
3473
3474# Check for command to grab the raw symbol name followed by C symbol from nm.
3475echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3476echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3477if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480
3481# These are sane defaults that work on at least a few old systems.
3482# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3483
3484# Character class describing NM global symbol codes.
3485symcode='[BCDEGRST]'
3486
3487# Regexp to match symbols that can be accessed directly from C.
3488sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3489
3490# Transform the above into a raw symbol and a C symbol.
3491symxfrm='\1 \2\3 \3'
3492
3493# Transform an extracted symbol line into a proper C declaration
3494lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3495
3496# Transform an extracted symbol line into symbol name and symbol address
3497lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3498
3499# Define system-specific variables.
3500case $host_os in
3501aix*)
3502 symcode='[BCDT]'
3503 ;;
3504cygwin* | mingw* | pw32*)
3505 symcode='[ABCDGISTW]'
3506 ;;
3507hpux*) # Its linker distinguishes data from code symbols
3508 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3509 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3510 ;;
3511irix*)
3512 symcode='[BCDEGRST]'
3513 ;;
3514solaris* | sysv5*)
3515 symcode='[BDT]'
3516 ;;
3517sysv4)
3518 symcode='[DFNSTU]'
3519 ;;
3520esac
3521
3522# Handle CRLF in mingw tool chain
3523opt_cr=
3524case $host_os in
3525mingw*)
3526 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3527 ;;
3528esac
3529
3530# If we're using GNU nm, then use its standard symbol codes.
3531if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3532 symcode='[ABCDGISTW]'
3533fi
3534
3535# Try without a prefix undercore, then with it.
3536for ac_symprfx in "" "_"; do
3537
3538 # Write the raw and C identifiers.
3539lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3540
3541 # Check to see that the pipe works correctly.
3542 pipe_works=no
3543 rm -f conftest*
3544 cat > conftest.$ac_ext <<EOF
3545#ifdef __cplusplus
3546extern "C" {
3547#endif
3548char nm_test_var;
3549void nm_test_func(){}
3550#ifdef __cplusplus
3551}
3552#endif
3553int main(){nm_test_var='a';nm_test_func();return(0);}
3554EOF
3555
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; then
3561 # Now try to grab the symbols.
3562 nlist=conftest.nm
3563 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3564 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && test -s "$nlist"; then
3568 # Try sorting and uniquifying the output.
3569 if sort "$nlist" | uniq > "$nlist"T; then
3570 mv -f "$nlist"T "$nlist"
3571 else
3572 rm -f "$nlist"T
3573 fi
3574
3575 # Make sure that we snagged all the symbols we need.
3576 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3577 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3578 cat <<EOF > conftest.$ac_ext
3579#ifdef __cplusplus
3580extern "C" {
3581#endif
3582
3583EOF
3584 # Now generate the symbol file.
3585 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3586
3587 cat <<EOF >> conftest.$ac_ext
3588#if defined (__STDC__) && __STDC__
3589# define lt_ptr void *
3590#else
3591# define lt_ptr char *
3592# define const
3593#endif
3594
3595/* The mapping between symbol names and symbols. */
3596const struct {
3597 const char *name;
3598 lt_ptr address;
3599}
3600lt_preloaded_symbols[] =
3601{
3602EOF
3603 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3604 cat <<\EOF >> conftest.$ac_ext
3605 {0, (lt_ptr) 0}
3606};
3607
3608#ifdef __cplusplus
3609}
3610#endif
3611EOF
3612 # Now try linking the two files.
3613 mv conftest.$ac_objext conftstm.$ac_objext
3614 save_LIBS="$LIBS"
3615 save_CFLAGS="$CFLAGS"
3616 LIBS="conftstm.$ac_objext"
3617 CFLAGS="$CFLAGS$no_builtin_flag"
3618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619 (eval $ac_link) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && test -s conftest; then
3623 pipe_works=yes
3624 fi
3625 LIBS="$save_LIBS"
3626 CFLAGS="$save_CFLAGS"
3627 else
3628 echo "cannot find nm_test_func in $nlist" >&5
3629 fi
3630 else
3631 echo "cannot find nm_test_var in $nlist" >&5
3632 fi
3633 else
3634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3635 fi
3636 else
3637 echo "$progname: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 fi
3640 rm -f conftest* conftst*
3641
3642 # Do not use the global_symbol_pipe unless it works.
3643 if test "$pipe_works" = yes; then
3644 break
3645 else
3646 lt_cv_sys_global_symbol_pipe=
3647 fi
3648done
3649
3650fi
3651
3652global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3653if test -z "$lt_cv_sys_global_symbol_pipe"; then
3654 global_symbol_to_cdecl=
3655 global_symbol_to_c_name_address=
3656else
3657 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3658 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3659fi
3660if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3661then
3662 echo "$as_me:$LINENO: result: failed" >&5
3663echo "${ECHO_T}failed" >&6
3664else
3665 echo "$as_me:$LINENO: result: ok" >&5
3666echo "${ECHO_T}ok" >&6
3667fi
3668
3669
3670echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3671echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3672if test "${ac_cv_header_stdc+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 cat >conftest.$ac_ext <<_ACEOF
3676#line $LINENO "configure"
3677#include "confdefs.h"
3678#include <stdlib.h>
3679#include <stdarg.h>
3680#include <string.h>
3681#include <float.h>
3682
3683_ACEOF
3684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3686 ac_status=$?
3687 egrep -v '^ *\+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } >/dev/null; then
3692 if test -s conftest.err; then
3693 ac_cpp_err=$ac_c_preproc_warn_flag
3694 else
3695 ac_cpp_err=
3696 fi
3697else
3698 ac_cpp_err=yes
3699fi
3700if test -z "$ac_cpp_err"; then
3701 ac_cv_header_stdc=yes
3702else
3703 echo "$as_me: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3705 ac_cv_header_stdc=no
3706fi
3707rm -f conftest.err conftest.$ac_ext
3708
3709if test $ac_cv_header_stdc = yes; then
3710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3711 cat >conftest.$ac_ext <<_ACEOF
3712#line $LINENO "configure"
3713#include "confdefs.h"
3714#include <string.h>
3715
3716_ACEOF
3717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718 egrep "memchr" >/dev/null 2>&1; then
3719 :
3720else
3721 ac_cv_header_stdc=no
3722fi
3723rm -f conftest*
3724
3725fi
3726
3727if test $ac_cv_header_stdc = yes; then
3728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3729 cat >conftest.$ac_ext <<_ACEOF
3730#line $LINENO "configure"
3731#include "confdefs.h"
3732#include <stdlib.h>
3733
3734_ACEOF
3735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3736 egrep "free" >/dev/null 2>&1; then
3737 :
3738else
3739 ac_cv_header_stdc=no
3740fi
3741rm -f conftest*
3742
3743fi
3744
3745if test $ac_cv_header_stdc = yes; then
3746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3747 if test "$cross_compiling" = yes; then
3748 :
3749else
3750 cat >conftest.$ac_ext <<_ACEOF
3751#line $LINENO "configure"
3752#include "confdefs.h"
3753#include <ctype.h>
3754#if ((' ' & 0x0FF) == 0x020)
3755# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3756# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3757#else
3758# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3759 || ('j' <= (c) && (c) <= 'r') \
3760 || ('s' <= (c) && (c) <= 'z'))
3761# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3762#endif
3763
3764#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3765int
3766main ()
3767{
3768 int i;
3769 for (i = 0; i < 256; i++)
3770 if (XOR (islower (i), ISLOWER (i))
3771 || toupper (i) != TOUPPER (i))
3772 exit(2);
3773 exit (0);
3774}
3775_ACEOF
3776rm -f conftest$ac_exeext
3777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 :
3788else
3789 echo "$as_me: program exited with status $ac_status" >&5
3790echo "$as_me: failed program was:" >&5
3791cat conftest.$ac_ext >&5
3792( exit $ac_status )
3793ac_cv_header_stdc=no
3794fi
3795rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3796fi
3797fi
3798fi
3799echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3800echo "${ECHO_T}$ac_cv_header_stdc" >&6
3801if test $ac_cv_header_stdc = yes; then
3802
3803cat >>confdefs.h <<\_ACEOF
3804#define STDC_HEADERS 1
3805_ACEOF
3806
3807fi
3808
3809# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3820 inttypes.h stdint.h unistd.h
3821do
3822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3823echo "$as_me:$LINENO: checking for $ac_header" >&5
3824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3825if eval "test \"\${$as_ac_Header+set}\" = set"; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828 cat >conftest.$ac_ext <<_ACEOF
3829#line $LINENO "configure"
3830#include "confdefs.h"
3831$ac_includes_default
3832
3833#include <$ac_header>
3834_ACEOF
3835rm -f conftest.$ac_objext
3836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 eval "$as_ac_Header=yes"
3848else
3849 echo "$as_me: failed program was:" >&5
3850cat conftest.$ac_ext >&5
3851eval "$as_ac_Header=no"
3852fi
3853rm -f conftest.$ac_objext conftest.$ac_ext
3854fi
3855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3857if test `eval echo '${'$as_ac_Header'}'` = yes; then
3858 cat >>confdefs.h <<_ACEOF
3859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3860_ACEOF
3861
3862fi
3863
3864done
3865
3866
3867
3868for ac_header in dlfcn.h
3869do
3870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3871if eval "test \"\${$as_ac_Header+set}\" = set"; then
3872 echo "$as_me:$LINENO: checking for $ac_header" >&5
3873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3874if eval "test \"\${$as_ac_Header+set}\" = set"; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876fi
3877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3879else
3880 # Is the header compilable?
3881echo "$as_me:$LINENO: checking $ac_header usability" >&5
3882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3883cat >conftest.$ac_ext <<_ACEOF
3884#line $LINENO "configure"
3885#include "confdefs.h"
3886$ac_includes_default
3887#include <$ac_header>
3888_ACEOF
3889rm -f conftest.$ac_objext
3890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -s conftest.$ac_objext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 ac_header_compiler=yes
3902else
3903 echo "$as_me: failed program was:" >&5
3904cat conftest.$ac_ext >&5
3905ac_header_compiler=no
3906fi
3907rm -f conftest.$ac_objext conftest.$ac_ext
3908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3909echo "${ECHO_T}$ac_header_compiler" >&6
3910
3911# Is the header present?
3912echo "$as_me:$LINENO: checking $ac_header presence" >&5
3913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3914cat >conftest.$ac_ext <<_ACEOF
3915#line $LINENO "configure"
3916#include "confdefs.h"
3917#include <$ac_header>
3918_ACEOF
3919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3921 ac_status=$?
3922 egrep -v '^ *\+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } >/dev/null; then
3927 if test -s conftest.err; then
3928 ac_cpp_err=$ac_c_preproc_warn_flag
3929 else
3930 ac_cpp_err=
3931 fi
3932else
3933 ac_cpp_err=yes
3934fi
3935if test -z "$ac_cpp_err"; then
3936 ac_header_preproc=yes
3937else
3938 echo "$as_me: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 ac_header_preproc=no
3941fi
3942rm -f conftest.err conftest.$ac_ext
3943echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3944echo "${ECHO_T}$ac_header_preproc" >&6
3945
3946# So? What about this header?
3947case $ac_header_compiler:$ac_header_preproc in
3948 yes:no )
3949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3953 no:yes )
3954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3960esac
3961echo "$as_me:$LINENO: checking for $ac_header" >&5
3962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3963if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966 eval "$as_ac_Header=$ac_header_preproc"
3967fi
3968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3970
3971fi
3972if test `eval echo '${'$as_ac_Header'}'` = yes; then
3973 cat >>confdefs.h <<_ACEOF
3974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975_ACEOF
3976
3977fi
3978
3979done
3980
3981
3982
3983
3984
3985# Only perform the check for file, if the check method requires it
3986case $deplibs_check_method in
3987file_magic*)
3988 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3989 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3990echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3991if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993else
3994 case $MAGIC_CMD in
3995 /*)
3996 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3997 ;;
3998 ?:/*)
3999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4000 ;;
4001 *)
4002 ac_save_MAGIC_CMD="$MAGIC_CMD"
4003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4004 ac_dummy="/usr/bin:$PATH"
4005 for ac_dir in $ac_dummy; do
4006 test -z "$ac_dir" && ac_dir=.
4007 if test -f $ac_dir/${ac_tool_prefix}file; then
4008 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4009 if test -n "$file_magic_test_file"; then
4010 case $deplibs_check_method in
4011 "file_magic "*)
4012 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4015 egrep "$file_magic_regex" > /dev/null; then
4016 :
4017 else
4018 cat <<EOF 1>&2
4019
4020*** Warning: the command libtool uses to detect shared libraries,
4021*** $file_magic_cmd, produces output that libtool cannot recognize.
4022*** The result is that libtool may fail to recognize shared libraries
4023*** as such. This will affect the creation of libtool libraries that
4024*** depend on shared libraries, but programs linked with such libtool
4025*** libraries will work regardless of this problem. Nevertheless, you
4026*** may want to report the problem to your system manager and/or to
4027*** bug-libtool@gnu.org
4028
4029EOF
4030 fi ;;
4031 esac
4032 fi
4033 break
4034 fi
4035 done
4036 IFS="$ac_save_ifs"
4037 MAGIC_CMD="$ac_save_MAGIC_CMD"
4038 ;;
4039esac
4040fi
4041
4042MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4043if test -n "$MAGIC_CMD"; then
4044 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4045echo "${ECHO_T}$MAGIC_CMD" >&6
4046else
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049fi
4050
4051if test -z "$lt_cv_path_MAGIC_CMD"; then
4052 if test -n "$ac_tool_prefix"; then
4053 echo "$as_me:$LINENO: checking for file" >&5
4054echo $ECHO_N "checking for file... $ECHO_C" >&6
4055if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 case $MAGIC_CMD in
4059 /*)
4060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4061 ;;
4062 ?:/*)
4063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4064 ;;
4065 *)
4066 ac_save_MAGIC_CMD="$MAGIC_CMD"
4067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4068 ac_dummy="/usr/bin:$PATH"
4069 for ac_dir in $ac_dummy; do
4070 test -z "$ac_dir" && ac_dir=.
4071 if test -f $ac_dir/file; then
4072 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4073 if test -n "$file_magic_test_file"; then
4074 case $deplibs_check_method in
4075 "file_magic "*)
4076 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4079 egrep "$file_magic_regex" > /dev/null; then
4080 :
4081 else
4082 cat <<EOF 1>&2
4083
4084*** Warning: the command libtool uses to detect shared libraries,
4085*** $file_magic_cmd, produces output that libtool cannot recognize.
4086*** The result is that libtool may fail to recognize shared libraries
4087*** as such. This will affect the creation of libtool libraries that
4088*** depend on shared libraries, but programs linked with such libtool
4089*** libraries will work regardless of this problem. Nevertheless, you
4090*** may want to report the problem to your system manager and/or to
4091*** bug-libtool@gnu.org
4092
4093EOF
4094 fi ;;
4095 esac
4096 fi
4097 break
4098 fi
4099 done
4100 IFS="$ac_save_ifs"
4101 MAGIC_CMD="$ac_save_MAGIC_CMD"
4102 ;;
4103esac
4104fi
4105
4106MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4107if test -n "$MAGIC_CMD"; then
4108 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4109echo "${ECHO_T}$MAGIC_CMD" >&6
4110else
4111 echo "$as_me:$LINENO: result: no" >&5
4112echo "${ECHO_T}no" >&6
4113fi
4114
4115 else
4116 MAGIC_CMD=:
4117 fi
4118fi
4119
4120 fi
4121 ;;
4122esac
4123
4124if test -n "$ac_tool_prefix"; then
4125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4126set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4127echo "$as_me:$LINENO: checking for $ac_word" >&5
4128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129if test "${ac_cv_prog_RANLIB+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132 if test -n "$RANLIB"; then
4133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4134else
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146done
4147done
4148
4149fi
4150fi
4151RANLIB=$ac_cv_prog_RANLIB
4152if test -n "$RANLIB"; then
4153 echo "$as_me:$LINENO: result: $RANLIB" >&5
4154echo "${ECHO_T}$RANLIB" >&6
4155else
4156 echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
4158fi
4159
4160fi
4161if test -z "$ac_cv_prog_RANLIB"; then
4162 ac_ct_RANLIB=$RANLIB
4163 # Extract the first word of "ranlib", so it can be a program name with args.
4164set dummy ranlib; ac_word=$2
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170 if test -n "$ac_ct_RANLIB"; then
4171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_RANLIB="ranlib"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184done
4185done
4186
4187 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4188fi
4189fi
4190ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4191if test -n "$ac_ct_RANLIB"; then
4192 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4193echo "${ECHO_T}$ac_ct_RANLIB" >&6
4194else
4195 echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197fi
4198
4199 RANLIB=$ac_ct_RANLIB
4200else
4201 RANLIB="$ac_cv_prog_RANLIB"
4202fi
4203
4204if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4206set dummy ${ac_tool_prefix}strip; ac_word=$2
4207echo "$as_me:$LINENO: checking for $ac_word" >&5
4208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209if test "${ac_cv_prog_STRIP+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212 if test -n "$STRIP"; then
4213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226done
4227done
4228
4229fi
4230fi
4231STRIP=$ac_cv_prog_STRIP
4232if test -n "$STRIP"; then
4233 echo "$as_me:$LINENO: result: $STRIP" >&5
4234echo "${ECHO_T}$STRIP" >&6
4235else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238fi
4239
4240fi
4241if test -z "$ac_cv_prog_STRIP"; then
4242 ac_ct_STRIP=$STRIP
4243 # Extract the first word of "strip", so it can be a program name with args.
4244set dummy strip; ac_word=$2
4245echo "$as_me:$LINENO: checking for $ac_word" >&5
4246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 if test -n "$ac_ct_STRIP"; then
4251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_STRIP="strip"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4263 fi
4264done
4265done
4266
4267 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4268fi
4269fi
4270ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4271if test -n "$ac_ct_STRIP"; then
4272 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4273echo "${ECHO_T}$ac_ct_STRIP" >&6
4274else
4275 echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277fi
4278
4279 STRIP=$ac_ct_STRIP
4280else
4281 STRIP="$ac_cv_prog_STRIP"
4282fi
4283
4284
4285enable_dlopen=no
4286enable_win32_dll=no
4287
4288# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4289if test "${enable_libtool_lock+set}" = set; then
4290 enableval="$enable_libtool_lock"
4291
4292fi;
4293test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4294
4295# Some flags need to be propagated to the compiler or linker for good
4296# libtool support.
4297case $host in
4298*-*-irix6*)
4299 # Find out which ABI we are using.
4300 echo '#line 4300 "configure"' > conftest.$ac_ext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302 (eval $ac_compile) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; then
4306 case `/usr/bin/file conftest.$ac_objext` in
4307 *32-bit*)
4308 LD="${LD-ld} -32"
4309 ;;
4310 *N32*)
4311 LD="${LD-ld} -n32"
4312 ;;
4313 *64-bit*)
4314 LD="${LD-ld} -64"
4315 ;;
4316 esac
4317 fi
4318 rm -rf conftest*
4319 ;;
4320
4321*-*-sco3.2v5*)
4322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4323 SAVE_CFLAGS="$CFLAGS"
4324 CFLAGS="$CFLAGS -belf"
4325 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4326echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4327if test "${lt_cv_cc_needs_belf+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330
4331
4332 ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338 cat >conftest.$ac_ext <<_ACEOF
4339#line $LINENO "configure"
4340#include "confdefs.h"
4341
4342#ifdef F77_DUMMY_MAIN
4343# ifdef __cplusplus
4344 extern "C"
4345# endif
4346 int F77_DUMMY_MAIN() { return 1; }
4347#endif
4348int
4349main ()
4350{
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
4356rm -f conftest.$ac_objext conftest$ac_exeext
4357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358 (eval $ac_link) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -s conftest$ac_exeext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 lt_cv_cc_needs_belf=yes
4369else
4370 echo "$as_me: failed program was:" >&5
4371cat conftest.$ac_ext >&5
4372lt_cv_cc_needs_belf=no
4373fi
4374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4375 ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381fi
4382echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4383echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4386 CFLAGS="$SAVE_CFLAGS"
4387 fi
4388 ;;
4389
4390
4391esac
4392
4393# Sed substitution that helps us do robust quoting. It backslashifies
4394# metacharacters that are still active within double-quoted strings.
4395Xsed='sed -e s/^X//'
4396sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4397
4398# Same as above, but do not quote variable references.
4399double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4400
4401# Sed substitution to delay expansion of an escaped shell variable in a
4402# double_quote_subst'ed string.
4403delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4404
4405# Constants:
4406rm="rm -f"
4407
4408# Global variables:
4409default_ofile=libtool
4410can_build_shared=yes
4411
4412# All known linkers require a `.a' archive for static linking (except M$VC,
4413# which needs '.lib').
4414libext=a
4415ltmain="$ac_aux_dir/ltmain.sh"
4416ofile="$default_ofile"
4417with_gnu_ld="$lt_cv_prog_gnu_ld"
4418need_locks="$enable_libtool_lock"
4419
4420old_CC="$CC"
4421old_CFLAGS="$CFLAGS"
4422
4423# Set sane defaults for various variables
4424test -z "$AR" && AR=ar
4425test -z "$AR_FLAGS" && AR_FLAGS=cru
4426test -z "$AS" && AS=as
4427test -z "$CC" && CC=cc
4428test -z "$DLLTOOL" && DLLTOOL=dlltool
4429test -z "$LD" && LD=ld
4430test -z "$LN_S" && LN_S="ln -s"
4431test -z "$MAGIC_CMD" && MAGIC_CMD=file
4432test -z "$NM" && NM=nm
4433test -z "$OBJDUMP" && OBJDUMP=objdump
4434test -z "$RANLIB" && RANLIB=:
4435test -z "$STRIP" && STRIP=:
4436test -z "$ac_objext" && ac_objext=o
4437
4438if test x"$host" != x"$build"; then
4439 ac_tool_prefix=${host_alias}-
4440else
4441 ac_tool_prefix=
4442fi
4443
4444# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4445case $host_os in
4446linux-gnu*) ;;
4447linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4448esac
4449
4450case $host_os in
4451aix3*)
4452 # AIX sometimes has problems with the GCC collect2 program. For some
4453 # reason, if we set the COLLECT_NAMES environment variable, the problems
4454 # vanish in a puff of smoke.
4455 if test "X${COLLECT_NAMES+set}" != Xset; then
4456 COLLECT_NAMES=
4457 export COLLECT_NAMES
4458 fi
4459 ;;
4460esac
4461
4462# Determine commands to create old-style static archives.
4463old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4464old_postinstall_cmds='chmod 644 $oldlib'
4465old_postuninstall_cmds=
4466
4467if test -n "$RANLIB"; then
4468 case $host_os in
4469 openbsd*)
4470 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4471 ;;
4472 *)
4473 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4474 ;;
4475 esac
4476 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4477fi
4478
4479# Allow CC to be a program name with arguments.
4480set dummy $CC
4481compiler="$2"
4482
4483## FIXME: this should be a separate macro
4484##
4485echo "$as_me:$LINENO: checking for objdir" >&5
4486echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4487rm -f .libs 2>/dev/null
4488mkdir .libs 2>/dev/null
4489if test -d .libs; then
4490 objdir=.libs
4491else
4492 # MS-DOS does not allow filenames that begin with a dot.
4493 objdir=_libs
4494fi
4495rmdir .libs 2>/dev/null
4496echo "$as_me:$LINENO: result: $objdir" >&5
4497echo "${ECHO_T}$objdir" >&6
4498##
4499## END FIXME
4500
4501
4502## FIXME: this should be a separate macro
4503##
4504
4505# Check whether --with-pic or --without-pic was given.
4506if test "${with_pic+set}" = set; then
4507 withval="$with_pic"
4508 pic_mode="$withval"
4509else
4510 pic_mode=default
4511fi;
4512test -z "$pic_mode" && pic_mode=default
4513
4514# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4515# in isolation, and that seeing it set (from the cache) indicates that
4516# the associated values are set (in the cache) correctly too.
4517echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4518echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4519if test "${lt_cv_prog_cc_pic+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522 lt_cv_prog_cc_pic=
4523 lt_cv_prog_cc_shlib=
4524 lt_cv_prog_cc_wl=
4525 lt_cv_prog_cc_static=
4526 lt_cv_prog_cc_no_builtin=
4527 lt_cv_prog_cc_can_build_shared=$can_build_shared
4528
4529 if test "$GCC" = yes; then
4530 lt_cv_prog_cc_wl='-Wl,'
4531 lt_cv_prog_cc_static='-static'
4532
4533 case $host_os in
4534 aix*)
4535 # Below there is a dirty hack to force normal static linking with -ldl
4536 # The problem is because libdl dynamically linked with both libc and
4537 # libC (AIX C++ library), which obviously doesn't included in libraries
4538 # list by gcc. This cause undefined symbols with -static flags.
4539 # This hack allows C programs to be linked with "-static -ldl", but
4540 # not sure about C++ programs.
4541 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4542 ;;
4543 amigaos*)
4544 # FIXME: we need at least 68020 code to build shared libraries, but
4545 # adding the `-m68020' flag to GCC prevents building anything better,
4546 # like `-m68040'.
4547 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4548 ;;
4549 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4550 # PIC is the default for these OSes.
4551 ;;
4552 darwin* | rhapsody*)
4553 # PIC is the default on this platform
4554 # Common symbols not allowed in MH_DYLIB files
4555 lt_cv_prog_cc_pic='-fno-common'
4556 ;;
4557 cygwin* | mingw* | pw32* | os2*)
4558 # This hack is so that the source file can tell whether it is being
4559 # built for inclusion in a dll (and should export symbols for example).
4560 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4561 ;;
4562 sysv4*MP*)
4563 if test -d /usr/nec; then
4564 lt_cv_prog_cc_pic=-Kconform_pic
4565 fi
4566 ;;
4567 *)
4568 lt_cv_prog_cc_pic='-fPIC'
4569 ;;
4570 esac
4571 else
4572 # PORTME Check for PIC flags for the system compiler.
4573 case $host_os in
4574 aix3* | aix4* | aix5*)
4575 lt_cv_prog_cc_wl='-Wl,'
4576 # All AIX code is PIC.
4577 if test "$host_cpu" = ia64; then
4578 # AIX 5 now supports IA64 processor
4579 lt_cv_prog_cc_static='-Bstatic'
4580 else
4581 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4582 fi
4583 ;;
4584
4585 hpux9* | hpux10* | hpux11*)
4586 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4587 lt_cv_prog_cc_wl='-Wl,'
4588 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4589 lt_cv_prog_cc_pic='+Z'
4590 ;;
4591
4592 irix5* | irix6*)
4593 lt_cv_prog_cc_wl='-Wl,'
4594 lt_cv_prog_cc_static='-non_shared'
4595 # PIC (with -KPIC) is the default.
4596 ;;
4597
4598 cygwin* | mingw* | pw32* | os2*)
4599 # This hack is so that the source file can tell whether it is being
4600 # built for inclusion in a dll (and should export symbols for example).
4601 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4602 ;;
4603
4604 newsos6)
4605 lt_cv_prog_cc_pic='-KPIC'
4606 lt_cv_prog_cc_static='-Bstatic'
4607 ;;
4608
4609 osf3* | osf4* | osf5*)
4610 # All OSF/1 code is PIC.
4611 lt_cv_prog_cc_wl='-Wl,'
4612 lt_cv_prog_cc_static='-non_shared'
4613 ;;
4614
4615 sco3.2v5*)
4616 lt_cv_prog_cc_pic='-Kpic'
4617 lt_cv_prog_cc_static='-dn'
4618 lt_cv_prog_cc_shlib='-belf'
4619 ;;
4620
4621 solaris*)
4622 lt_cv_prog_cc_pic='-KPIC'
4623 lt_cv_prog_cc_static='-Bstatic'
4624 lt_cv_prog_cc_wl='-Wl,'
4625 ;;
4626
4627 sunos4*)
4628 lt_cv_prog_cc_pic='-PIC'
4629 lt_cv_prog_cc_static='-Bstatic'
4630 lt_cv_prog_cc_wl='-Qoption ld '
4631 ;;
4632
4633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4634 lt_cv_prog_cc_pic='-KPIC'
4635 lt_cv_prog_cc_static='-Bstatic'
4636 if test "x$host_vendor" = xsni; then
4637 lt_cv_prog_cc_wl='-LD'
4638 else
4639 lt_cv_prog_cc_wl='-Wl,'
4640 fi
4641 ;;
4642
4643 uts4*)
4644 lt_cv_prog_cc_pic='-pic'
4645 lt_cv_prog_cc_static='-Bstatic'
4646 ;;
4647
4648 sysv4*MP*)
4649 if test -d /usr/nec ;then
4650 lt_cv_prog_cc_pic='-Kconform_pic'
4651 lt_cv_prog_cc_static='-Bstatic'
4652 fi
4653 ;;
4654
4655 *)
4656 lt_cv_prog_cc_can_build_shared=no
4657 ;;
4658 esac
4659 fi
4660
4661fi
4662
4663if test -z "$lt_cv_prog_cc_pic"; then
4664 echo "$as_me:$LINENO: result: none" >&5
4665echo "${ECHO_T}none" >&6
4666else
4667 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4668echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4669
4670 # Check to make sure the pic_flag actually works.
4671 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4672echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4673 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675else
4676 save_CFLAGS="$CFLAGS"
4677 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4678 cat >conftest.$ac_ext <<_ACEOF
4679#line $LINENO "configure"
4680#include "confdefs.h"
4681
4682#ifdef F77_DUMMY_MAIN
4683# ifdef __cplusplus
4684 extern "C"
4685# endif
4686 int F77_DUMMY_MAIN() { return 1; }
4687#endif
4688int
4689main ()
4690{
4691
4692 ;
4693 return 0;
4694}
4695_ACEOF
4696rm -f conftest.$ac_objext
4697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 case $host_os in
4709 hpux9* | hpux10* | hpux11*)
4710 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4711 # they create non-PIC objects. So, if there were any warnings, we
4712 # assume that PIC is not supported.
4713 if test -s conftest.err; then
4714 lt_cv_prog_cc_pic_works=no
4715 else
4716 lt_cv_prog_cc_pic_works=yes
4717 fi
4718 ;;
4719 *)
4720 lt_cv_prog_cc_pic_works=yes
4721 ;;
4722 esac
4723
4724else
4725 echo "$as_me: failed program was:" >&5
4726cat conftest.$ac_ext >&5
4727 lt_cv_prog_cc_pic_works=no
4728
4729fi
4730rm -f conftest.$ac_objext conftest.$ac_ext
4731 CFLAGS="$save_CFLAGS"
4732
4733fi
4734
4735
4736 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4737 lt_cv_prog_cc_pic=
4738 lt_cv_prog_cc_can_build_shared=no
4739 else
4740 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4741 fi
4742
4743 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4744echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4745fi
4746##
4747## END FIXME
4748
4749# Check for any special shared library compilation flags.
4750if test -n "$lt_cv_prog_cc_shlib"; then
4751 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4752echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4753 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4754 else
4755 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4756echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4757 lt_cv_prog_cc_can_build_shared=no
4758 fi
4759fi
4760
4761## FIXME: this should be a separate macro
4762##
4763echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4764echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4765if test "${lt_cv_prog_cc_static_works+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768 lt_cv_prog_cc_static_works=no
4769 save_LDFLAGS="$LDFLAGS"
4770 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4771 cat >conftest.$ac_ext <<_ACEOF
4772#line $LINENO "configure"
4773#include "confdefs.h"
4774
4775#ifdef F77_DUMMY_MAIN
4776# ifdef __cplusplus
4777 extern "C"
4778# endif
4779 int F77_DUMMY_MAIN() { return 1; }
4780#endif
4781int
4782main ()
4783{
4784
4785 ;
4786 return 0;
4787}
4788_ACEOF
4789rm -f conftest.$ac_objext conftest$ac_exeext
4790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791 (eval $ac_link) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -s conftest$ac_exeext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 lt_cv_prog_cc_static_works=yes
4802else
4803 echo "$as_me: failed program was:" >&5
4804cat conftest.$ac_ext >&5
4805fi
4806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4807 LDFLAGS="$save_LDFLAGS"
4808
4809fi
4810
4811
4812# Belt *and* braces to stop my trousers falling down:
4813test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4814echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4815echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4816
4817pic_flag="$lt_cv_prog_cc_pic"
4818special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4819wl="$lt_cv_prog_cc_wl"
4820link_static_flag="$lt_cv_prog_cc_static"
4821no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4822can_build_shared="$lt_cv_prog_cc_can_build_shared"
4823##
4824## END FIXME
4825
4826
4827## FIXME: this should be a separate macro
4828##
4829# Check to see if options -o and -c are simultaneously supported by compiler
4830echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4831echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4832if test "${lt_cv_compiler_c_o+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835
4836$rm -r conftest 2>/dev/null
4837mkdir conftest
4838cd conftest
4839echo "int some_variable = 0;" > conftest.$ac_ext
4840mkdir out
4841# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4842# that will create temporary files in the current directory regardless of
4843# the output directory. Thus, making CWD read-only will cause this test
4844# to fail, enabling locking or at least warning the user not to do parallel
4845# builds.
4846chmod -w .
4847save_CFLAGS="$CFLAGS"
4848CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4849compiler_c_o=no
4850if { (eval echo configure:4850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4851 # The compiler can only warn and ignore the option if not recognized
4852 # So say no if there are warnings
4853 if test -s out/conftest.err; then
4854 lt_cv_compiler_c_o=no
4855 else
4856 lt_cv_compiler_c_o=yes
4857 fi
4858else
4859 # Append any errors to the config.log.
4860 cat out/conftest.err 1>&5
4861 lt_cv_compiler_c_o=no
4862fi
4863CFLAGS="$save_CFLAGS"
4864chmod u+w .
4865$rm conftest* out/*
4866rmdir out
4867cd ..
4868rmdir conftest
4869$rm -r conftest 2>/dev/null
4870
4871fi
4872
4873compiler_c_o=$lt_cv_compiler_c_o
4874echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4875echo "${ECHO_T}$compiler_c_o" >&6
4876
4877if test x"$compiler_c_o" = x"yes"; then
4878 # Check to see if we can write to a .lo
4879 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4880echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4881 if test "${lt_cv_compiler_o_lo+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883else
4884
4885 lt_cv_compiler_o_lo=no
4886 save_CFLAGS="$CFLAGS"
4887 CFLAGS="$CFLAGS -c -o conftest.lo"
4888 save_objext="$ac_objext"
4889 ac_objext=lo
4890 cat >conftest.$ac_ext <<_ACEOF
4891#line $LINENO "configure"
4892#include "confdefs.h"
4893
4894#ifdef F77_DUMMY_MAIN
4895# ifdef __cplusplus
4896 extern "C"
4897# endif
4898 int F77_DUMMY_MAIN() { return 1; }
4899#endif
4900int
4901main ()
4902{
4903int some_variable = 0;
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908rm -f conftest.$ac_objext
4909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 # The compiler can only warn and ignore the option if not recognized
4921 # So say no if there are warnings
4922 if test -s conftest.err; then
4923 lt_cv_compiler_o_lo=no
4924 else
4925 lt_cv_compiler_o_lo=yes
4926 fi
4927
4928else
4929 echo "$as_me: failed program was:" >&5
4930cat conftest.$ac_ext >&5
4931fi
4932rm -f conftest.$ac_objext conftest.$ac_ext
4933 ac_objext="$save_objext"
4934 CFLAGS="$save_CFLAGS"
4935
4936fi
4937
4938 compiler_o_lo=$lt_cv_compiler_o_lo
4939 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4940echo "${ECHO_T}$compiler_o_lo" >&6
4941else
4942 compiler_o_lo=no
4943fi
4944##
4945## END FIXME
4946
4947## FIXME: this should be a separate macro
4948##
4949# Check to see if we can do hard links to lock some files if needed
4950hard_links="nottested"
4951if test "$compiler_c_o" = no && test "$need_locks" != no; then
4952 # do not overwrite the value of need_locks provided by the user
4953 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4954echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4955 hard_links=yes
4956 $rm conftest*
4957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4958 touch conftest.a
4959 ln conftest.a conftest.b 2>&5 || hard_links=no
4960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4961 echo "$as_me:$LINENO: result: $hard_links" >&5
4962echo "${ECHO_T}$hard_links" >&6
4963 if test "$hard_links" = no; then
4964 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4965echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4966 need_locks=warn
4967 fi
4968else
4969 need_locks=no
4970fi
4971##
4972## END FIXME
4973
4974## FIXME: this should be a separate macro
4975##
4976if test "$GCC" = yes; then
4977 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4978 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4979echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4980 echo "int some_variable = 0;" > conftest.$ac_ext
4981 save_CFLAGS="$CFLAGS"
4982 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4983 compiler_rtti_exceptions=no
4984 cat >conftest.$ac_ext <<_ACEOF
4985#line $LINENO "configure"
4986#include "confdefs.h"
4987
4988#ifdef F77_DUMMY_MAIN
4989# ifdef __cplusplus
4990 extern "C"
4991# endif
4992 int F77_DUMMY_MAIN() { return 1; }
4993#endif
4994int
4995main ()
4996{
4997int some_variable = 0;
4998 ;
4999 return 0;
5000}
5001_ACEOF
5002rm -f conftest.$ac_objext
5003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 # The compiler can only warn and ignore the option if not recognized
5015 # So say no if there are warnings
5016 if test -s conftest.err; then
5017 compiler_rtti_exceptions=no
5018 else
5019 compiler_rtti_exceptions=yes
5020 fi
5021
5022else
5023 echo "$as_me: failed program was:" >&5
5024cat conftest.$ac_ext >&5
5025fi
5026rm -f conftest.$ac_objext conftest.$ac_ext
5027 CFLAGS="$save_CFLAGS"
5028 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5029echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5030
5031 if test "$compiler_rtti_exceptions" = "yes"; then
5032 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5033 else
5034 no_builtin_flag=' -fno-builtin'
5035 fi
5036fi
5037##
5038## END FIXME
5039
5040## FIXME: this should be a separate macro
5041##
5042# See if the linker supports building shared libraries.
5043echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5044echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5045
5046allow_undefined_flag=
5047no_undefined_flag=
5048need_lib_prefix=unknown
5049need_version=unknown
5050# when you set need_version to no, make sure it does not cause -set_version
5051# flags to be left without arguments
5052archive_cmds=
5053archive_expsym_cmds=
5054old_archive_from_new_cmds=
5055old_archive_from_expsyms_cmds=
5056export_dynamic_flag_spec=
5057whole_archive_flag_spec=
5058thread_safe_flag_spec=
5059hardcode_into_libs=no
5060hardcode_libdir_flag_spec=
5061hardcode_libdir_separator=
5062hardcode_direct=no
5063hardcode_minus_L=no
5064hardcode_shlibpath_var=unsupported
5065runpath_var=
5066link_all_deplibs=unknown
5067always_export_symbols=no
5068export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5069# include_expsyms should be a list of space-separated symbols to be *always*
5070# included in the symbol list
5071include_expsyms=
5072# exclude_expsyms can be an egrep regular expression of symbols to exclude
5073# it will be wrapped by ` (' and `)$', so one must not match beginning or
5074# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5075# as well as any symbol that contains `d'.
5076exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5077# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5078# platforms (ab)use it in PIC code, but their linkers get confused if
5079# the symbol is explicitly referenced. Since portable code cannot
5080# rely on this symbol name, it's probably fine to never include it in
5081# preloaded symbol tables.
5082extract_expsyms_cmds=
5083
5084case $host_os in
5085cygwin* | mingw* | pw32*)
5086 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5087 # When not using gcc, we currently assume that we are using
5088 # Microsoft Visual C++.
5089 if test "$GCC" != yes; then
5090 with_gnu_ld=no
5091 fi
5092 ;;
5093openbsd*)
5094 with_gnu_ld=no
5095 ;;
5096esac
5097
5098ld_shlibs=yes
5099if test "$with_gnu_ld" = yes; then
5100 # If archive_cmds runs LD, not CC, wlarc should be empty
5101 wlarc='${wl}'
5102
5103 # See if GNU ld supports shared libraries.
5104 case $host_os in
5105 aix3* | aix4* | aix5*)
5106 # On AIX, the GNU linker is very broken
5107 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5108 ld_shlibs=no
5109 cat <<EOF 1>&2
5110
5111*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5112*** to be unable to reliably create shared libraries on AIX.
5113*** Therefore, libtool is disabling shared libraries support. If you
5114*** really care for shared libraries, you may want to modify your PATH
5115*** so that a non-GNU linker is found, and then restart.
5116
5117EOF
5118 ;;
5119
5120 amigaos*)
5121 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5122 hardcode_libdir_flag_spec='-L$libdir'
5123 hardcode_minus_L=yes
5124
5125 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5126 # that the semantics of dynamic libraries on AmigaOS, at least up
5127 # to version 4, is to share data among multiple programs linked
5128 # with the same dynamic library. Since this doesn't match the
5129 # behavior of shared libraries on other platforms, we can use
5130 # them.
5131 ld_shlibs=no
5132 ;;
5133
5134 beos*)
5135 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5136 allow_undefined_flag=unsupported
5137 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5138 # support --undefined. This deserves some investigation. FIXME
5139 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5140 else
5141 ld_shlibs=no
5142 fi
5143 ;;
5144
5145 cygwin* | mingw* | pw32*)
5146 # hardcode_libdir_flag_spec is actually meaningless, as there is
5147 # no search path for DLLs.
5148 hardcode_libdir_flag_spec='-L$libdir'
5149 allow_undefined_flag=unsupported
5150 always_export_symbols=yes
5151
5152 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5153 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5154 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5155 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5156 else $CC -o impgen impgen.c ; fi)~
5157 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5158
5159 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5160
5161 # cygwin and mingw dlls have different entry points and sets of symbols
5162 # to exclude.
5163 # FIXME: what about values for MSVC?
5164 dll_entry=__cygwin_dll_entry@12
5165 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5166 case $host_os in
5167 mingw*)
5168 # mingw values
5169 dll_entry=_DllMainCRTStartup@12
5170 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5171 ;;
5172 esac
5173
5174 # mingw and cygwin differ, and it's simplest to just exclude the union
5175 # of the two symbol sets.
5176 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5177
5178 # recent cygwin and mingw systems supply a stub DllMain which the user
5179 # can override, but on older systems we have to supply one (in ltdll.c)
5180 if test "x$lt_cv_need_dllmain" = "xyes"; then
5181 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5182 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5183 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5184 else
5185 ltdll_obj=
5186 ltdll_cmds=
5187 fi
5188
5189 # Extract the symbol export list from an `--export-all' def file,
5190 # then regenerate the def file from the symbol export list, so that
5191 # the compiled dll only exports the symbol export list.
5192 # Be careful not to strip the DATA tag left be newer dlltools.
5193 export_symbols_cmds="$ltdll_cmds"'
5194 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5195 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5196
5197 # If the export-symbols file already is a .def file (1st line
5198 # is EXPORTS), use it as is.
5199 # If DATA tags from a recent dlltool are present, honour them!
5200 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5201 cp $export_symbols $output_objdir/$soname-def;
5202 else
5203 echo EXPORTS > $output_objdir/$soname-def;
5204 _lt_hint=1;
5205 cat $export_symbols | while read symbol; do
5206 set dummy \$symbol;
5207 case \$# in
5208 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5209 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5210 esac;
5211 _lt_hint=`expr 1 + \$_lt_hint`;
5212 done;
5213 fi~
5214 '"$ltdll_cmds"'
5215 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5216 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5217 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5218 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5219 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5220 ;;
5221
5222 netbsd*)
5223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5224 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5225 wlarc=
5226 else
5227 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5228 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5229 fi
5230 ;;
5231
5232 solaris* | sysv5*)
5233 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5234 ld_shlibs=no
5235 cat <<EOF 1>&2
5236
5237*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5238*** create shared libraries on Solaris systems. Therefore, libtool
5239*** is disabling shared libraries support. We urge you to upgrade GNU
5240*** binutils to release 2.9.1 or newer. Another option is to modify
5241*** your PATH or compiler configuration so that the native linker is
5242*** used, and then restart.
5243
5244EOF
5245 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5248 else
5249 ld_shlibs=no
5250 fi
5251 ;;
5252
5253 sunos4*)
5254 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5255 wlarc=
5256 hardcode_direct=yes
5257 hardcode_shlibpath_var=no
5258 ;;
5259
5260 *)
5261 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5264 else
5265 ld_shlibs=no
5266 fi
5267 ;;
5268 esac
5269
5270 if test "$ld_shlibs" = yes; then
5271 runpath_var=LD_RUN_PATH
5272 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5273 export_dynamic_flag_spec='${wl}--export-dynamic'
5274 case $host_os in
5275 cygwin* | mingw* | pw32*)
5276 # dlltool doesn't understand --whole-archive et. al.
5277 whole_archive_flag_spec=
5278 ;;
5279 *)
5280 # ancient GNU ld didn't support --whole-archive et. al.
5281 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5282 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5283 else
5284 whole_archive_flag_spec=
5285 fi
5286 ;;
5287 esac
5288 fi
5289else
5290 # PORTME fill in a description of your system's linker (not GNU ld)
5291 case $host_os in
5292 aix3*)
5293 allow_undefined_flag=unsupported
5294 always_export_symbols=yes
5295 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5296 # Note: this linker hardcodes the directories in LIBPATH if there
5297 # are no directories specified by -L.
5298 hardcode_minus_L=yes
5299 if test "$GCC" = yes && test -z "$link_static_flag"; then
5300 # Neither direct hardcoding nor static linking is supported with a
5301 # broken collect2.
5302 hardcode_direct=unsupported
5303 fi
5304 ;;
5305
5306 aix4* | aix5*)
5307 if test "$host_cpu" = ia64; then
5308 # On IA64, the linker does run time linking by default, so we don't
5309 # have to do anything special.
5310 aix_use_runtimelinking=no
5311 exp_sym_flag='-Bexport'
5312 no_entry_flag=""
5313 else
5314 aix_use_runtimelinking=no
5315
5316 # Test if we are trying to use run time linking or normal
5317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5318 # need to do runtime linking.
5319 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5320 for ld_flag in $LDFLAGS; do
5321 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5322 aix_use_runtimelinking=yes
5323 break
5324 fi
5325 done
5326 esac
5327
5328 exp_sym_flag='-bexport'
5329 no_entry_flag='-bnoentry'
5330 fi
5331
5332 # When large executables or shared objects are built, AIX ld can
5333 # have problems creating the table of contents. If linking a library
5334 # or program results in "error TOC overflow" add -mminimal-toc to
5335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5337
5338 hardcode_direct=yes
5339 archive_cmds=''
5340 hardcode_libdir_separator=':'
5341 if test "$GCC" = yes; then
5342 case $host_os in aix4.[012]|aix4.[012].*)
5343 collect2name=`${CC} -print-prog-name=collect2`
5344 if test -f "$collect2name" && \
5345 strings "$collect2name" | grep resolve_lib_name >/dev/null
5346 then
5347 # We have reworked collect2
5348 hardcode_direct=yes
5349 else
5350 # We have old collect2
5351 hardcode_direct=unsupported
5352 # It fails to find uninstalled libraries when the uninstalled
5353 # path is not listed in the libpath. Setting hardcode_minus_L
5354 # to unsupported forces relinking
5355 hardcode_minus_L=yes
5356 hardcode_libdir_flag_spec='-L$libdir'
5357 hardcode_libdir_separator=
5358 fi
5359 esac
5360
5361 shared_flag='-shared'
5362 else
5363 # not using gcc
5364 if test "$host_cpu" = ia64; then
5365 shared_flag='${wl}-G'
5366 else
5367 if test "$aix_use_runtimelinking" = yes; then
5368 shared_flag='${wl}-G'
5369 else
5370 shared_flag='${wl}-bM:SRE'
5371 fi
5372 fi
5373 fi
5374
5375 # It seems that -bexpall can do strange things, so it is better to
5376 # generate a list of symbols to export.
5377 always_export_symbols=yes
5378 if test "$aix_use_runtimelinking" = yes; then
5379 # Warning - without using the other runtime loading flags (-brtl),
5380 # -berok will link without error, but may produce a broken library.
5381 allow_undefined_flag='-berok'
5382 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5383 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5384 else
5385 if test "$host_cpu" = ia64; then
5386 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5387 allow_undefined_flag="-z nodefs"
5388 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5389 else
5390 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5391 # Warning - without using the other run time loading flags,
5392 # -berok will link without error, but may produce a broken library.
5393 allow_undefined_flag='${wl}-berok'
5394 # This is a bit strange, but is similar to how AIX traditionally builds
5395 # it's shared libraries.
5396 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5397 fi
5398 fi
5399 ;;
5400
5401 amigaos*)
5402 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5403 hardcode_libdir_flag_spec='-L$libdir'
5404 hardcode_minus_L=yes
5405 # see comment about different semantics on the GNU ld section
5406 ld_shlibs=no
5407 ;;
5408
5409 cygwin* | mingw* | pw32*)
5410 # When not using gcc, we currently assume that we are using
5411 # Microsoft Visual C++.
5412 # hardcode_libdir_flag_spec is actually meaningless, as there is
5413 # no search path for DLLs.
5414 hardcode_libdir_flag_spec=' '
5415 allow_undefined_flag=unsupported
5416 # Tell ltmain to make .lib files, not .a files.
5417 libext=lib
5418 # FIXME: Setting linknames here is a bad hack.
5419 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5420 # The linker will automatically build a .lib file if we build a DLL.
5421 old_archive_from_new_cmds='true'
5422 # FIXME: Should let the user specify the lib program.
5423 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5424 fix_srcfile_path='`cygpath -w "$srcfile"`'
5425 ;;
5426
5427 darwin* | rhapsody*)
5428 case "$host_os" in
5429 rhapsody* | darwin1.[012])
5430 allow_undefined_flag='-undefined suppress'
5431 ;;
5432 *) # Darwin 1.3 on
5433 allow_undefined_flag='-flat_namespace -undefined suppress'
5434 ;;
5435 esac
5436 # FIXME: Relying on posixy $() will cause problems for
5437 # cross-compilation, but unfortunately the echo tests do not
5438 # yet detect zsh echo's removal of \ escapes.
5439 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5440 # We need to add '_' to the symbols in $export_symbols first
5441 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5442 hardcode_direct=yes
5443 hardcode_shlibpath_var=no
5444 whole_archive_flag_spec='-all_load $convenience'
5445 ;;
5446
5447 freebsd1*)
5448 ld_shlibs=no
5449 ;;
5450
5451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5452 # support. Future versions do this automatically, but an explicit c++rt0.o
5453 # does not break anything, and helps significantly (at the cost of a little
5454 # extra space).
5455 freebsd2.2*)
5456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5457 hardcode_libdir_flag_spec='-R$libdir'
5458 hardcode_direct=yes
5459 hardcode_shlibpath_var=no
5460 ;;
5461
5462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5463 freebsd2*)
5464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5465 hardcode_direct=yes
5466 hardcode_minus_L=yes
5467 hardcode_shlibpath_var=no
5468 ;;
5469
5470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5471 freebsd*)
5472 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5473 hardcode_libdir_flag_spec='-R$libdir'
5474 hardcode_direct=yes
5475 hardcode_shlibpath_var=no
5476 ;;
5477
5478 hpux9* | hpux10* | hpux11*)
5479 case $host_os in
5480 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5481 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5482 esac
5483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5484 hardcode_libdir_separator=:
5485 hardcode_direct=yes
5486 hardcode_minus_L=yes # Not in the search PATH, but as the default
5487 # location of the library.
5488 export_dynamic_flag_spec='${wl}-E'
5489 ;;
5490
5491 irix5* | irix6*)
5492 if test "$GCC" = yes; then
5493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5494 else
5495 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5496 fi
5497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5498 hardcode_libdir_separator=:
5499 link_all_deplibs=yes
5500 ;;
5501
5502 netbsd*)
5503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5505 else
5506 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5507 fi
5508 hardcode_libdir_flag_spec='-R$libdir'
5509 hardcode_direct=yes
5510 hardcode_shlibpath_var=no
5511 ;;
5512
5513 newsos6)
5514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5515 hardcode_direct=yes
5516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5517 hardcode_libdir_separator=:
5518 hardcode_shlibpath_var=no
5519 ;;
5520
5521 openbsd*)
5522 hardcode_direct=yes
5523 hardcode_shlibpath_var=no
5524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5526 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5527 export_dynamic_flag_spec='${wl}-E'
5528 else
5529 case "$host_os" in
5530 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5532 hardcode_libdir_flag_spec='-R$libdir'
5533 ;;
5534 *)
5535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5537 ;;
5538 esac
5539 fi
5540 ;;
5541
5542 os2*)
5543 hardcode_libdir_flag_spec='-L$libdir'
5544 hardcode_minus_L=yes
5545 allow_undefined_flag=unsupported
5546 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5547 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5548 ;;
5549
5550 osf3*)
5551 if test "$GCC" = yes; then
5552 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5553 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5554 else
5555 allow_undefined_flag=' -expect_unresolved \*'
5556 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5557 fi
5558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5559 hardcode_libdir_separator=:
5560 ;;
5561
5562 osf4* | osf5*) # as osf3* with the addition of -msym flag
5563 if test "$GCC" = yes; then
5564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5565 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5567 else
5568 allow_undefined_flag=' -expect_unresolved \*'
5569 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5570 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5571 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5572
5573 #Both c and cxx compiler support -rpath directly
5574 hardcode_libdir_flag_spec='-rpath $libdir'
5575 fi
5576 hardcode_libdir_separator=:
5577 ;;
5578
5579 sco3.2v5*)
5580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5581 hardcode_shlibpath_var=no
5582 runpath_var=LD_RUN_PATH
5583 hardcode_runpath_var=yes
5584 export_dynamic_flag_spec='${wl}-Bexport'
5585 ;;
5586
5587 solaris*)
5588 # gcc --version < 3.0 without binutils cannot create self contained
5589 # shared libraries reliably, requiring libgcc.a to resolve some of
5590 # the object symbols generated in some cases. Libraries that use
5591 # assert need libgcc.a to resolve __eprintf, for example. Linking
5592 # a copy of libgcc.a into every shared library to guarantee resolving
5593 # such symbols causes other problems: According to Tim Van Holder
5594 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5595 # (to the application) exception stack for one thing.
5596 no_undefined_flag=' -z defs'
5597 if test "$GCC" = yes; then
5598 case `$CC --version 2>/dev/null` in
5599 [12].*)
5600 cat <<EOF 1>&2
5601
5602*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5603*** create self contained shared libraries on Solaris systems, without
5604*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5605*** -no-undefined support, which will at least allow you to build shared
5606*** libraries. However, you may find that when you link such libraries
5607*** into an application without using GCC, you have to manually add
5608*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5609*** upgrade to a newer version of GCC. Another option is to rebuild your
5610*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5611
5612EOF
5613 no_undefined_flag=
5614 ;;
5615 esac
5616 fi
5617 # $CC -shared without GNU ld will not create a library from C++
5618 # object files and a static libstdc++, better avoid it by now
5619 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5620 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5622 hardcode_libdir_flag_spec='-R$libdir'
5623 hardcode_shlibpath_var=no
5624 case $host_os in
5625 solaris2.[0-5] | solaris2.[0-5].*) ;;
5626 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5627 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5628 esac
5629 link_all_deplibs=yes
5630 ;;
5631
5632 sunos4*)
5633 if test "x$host_vendor" = xsequent; then
5634 # Use $CC to link under sequent, because it throws in some extra .o
5635 # files that make .init and .fini sections work.
5636 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5637 else
5638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5639 fi
5640 hardcode_libdir_flag_spec='-L$libdir'
5641 hardcode_direct=yes
5642 hardcode_minus_L=yes
5643 hardcode_shlibpath_var=no
5644 ;;
5645
5646 sysv4)
5647 if test "x$host_vendor" = xsno; then
5648 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5649 hardcode_direct=yes # is this really true???
5650 else
5651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5652 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5653 fi
5654 runpath_var='LD_RUN_PATH'
5655 hardcode_shlibpath_var=no
5656 ;;
5657
5658 sysv4.3*)
5659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5660 hardcode_shlibpath_var=no
5661 export_dynamic_flag_spec='-Bexport'
5662 ;;
5663
5664 sysv5*)
5665 no_undefined_flag=' -z text'
5666 # $CC -shared without GNU ld will not create a library from C++
5667 # object files and a static libstdc++, better avoid it by now
5668 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5669 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5670 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5671 hardcode_libdir_flag_spec=
5672 hardcode_shlibpath_var=no
5673 runpath_var='LD_RUN_PATH'
5674 ;;
5675
5676 uts4*)
5677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5678 hardcode_libdir_flag_spec='-L$libdir'
5679 hardcode_shlibpath_var=no
5680 ;;
5681
5682 dgux*)
5683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5684 hardcode_libdir_flag_spec='-L$libdir'
5685 hardcode_shlibpath_var=no
5686 ;;
5687
5688 sysv4*MP*)
5689 if test -d /usr/nec; then
5690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5691 hardcode_shlibpath_var=no
5692 runpath_var=LD_RUN_PATH
5693 hardcode_runpath_var=yes
5694 ld_shlibs=yes
5695 fi
5696 ;;
5697
5698 sysv4.2uw2*)
5699 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5700 hardcode_direct=yes
5701 hardcode_minus_L=no
5702 hardcode_shlibpath_var=no
5703 hardcode_runpath_var=yes
5704 runpath_var=LD_RUN_PATH
5705 ;;
5706
5707 sysv5uw7* | unixware7*)
5708 no_undefined_flag='${wl}-z ${wl}text'
5709 if test "$GCC" = yes; then
5710 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5711 else
5712 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5713 fi
5714 runpath_var='LD_RUN_PATH'
5715 hardcode_shlibpath_var=no
5716 ;;
5717
5718 *)
5719 ld_shlibs=no
5720 ;;
5721 esac
5722fi
5723echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5724echo "${ECHO_T}$ld_shlibs" >&6
5725test "$ld_shlibs" = no && can_build_shared=no
5726##
5727## END FIXME
5728
5729## FIXME: this should be a separate macro
5730##
5731# Check hardcoding attributes.
5732echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5733echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5734hardcode_action=
5735if test -n "$hardcode_libdir_flag_spec" || \
5736 test -n "$runpath_var"; then
5737
5738 # We can hardcode non-existant directories.
5739 if test "$hardcode_direct" != no &&
5740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5741 # have to relink, otherwise we might link with an installed library
5742 # when we should be linking with a yet-to-be-installed one
5743 ## test "$hardcode_shlibpath_var" != no &&
5744 test "$hardcode_minus_L" != no; then
5745 # Linking always hardcodes the temporary library directory.
5746 hardcode_action=relink
5747 else
5748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5749 hardcode_action=immediate
5750 fi
5751else
5752 # We cannot hardcode anything, or else we can only hardcode existing
5753 # directories.
5754 hardcode_action=unsupported
5755fi
5756echo "$as_me:$LINENO: result: $hardcode_action" >&5
5757echo "${ECHO_T}$hardcode_action" >&6
5758##
5759## END FIXME
5760
5761## FIXME: this should be a separate macro
5762##
5763striplib=
5764old_striplib=
5765echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5766echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5767if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5768 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5769 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5770 echo "$as_me:$LINENO: result: yes" >&5
5771echo "${ECHO_T}yes" >&6
5772else
5773 echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6
5775fi
5776##
5777## END FIXME
5778
5779reload_cmds='$LD$reload_flag -o $output$reload_objs'
5780test -z "$deplibs_check_method" && deplibs_check_method=unknown
5781
5782## FIXME: this should be a separate macro
5783##
5784# PORTME Fill in your ld.so characteristics
5785echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5786echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5787library_names_spec=
5788libname_spec='lib$name'
5789soname_spec=
5790postinstall_cmds=
5791postuninstall_cmds=
5792finish_cmds=
5793finish_eval=
5794shlibpath_var=
5795shlibpath_overrides_runpath=unknown
5796version_type=none
5797dynamic_linker="$host_os ld.so"
5798sys_lib_dlsearch_path_spec="/lib /usr/lib"
5799sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5800
5801case $host_os in
5802aix3*)
5803 version_type=linux
5804 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5805 shlibpath_var=LIBPATH
5806
5807 # AIX has no versioning support, so we append a major version to the name.
5808 soname_spec='${libname}${release}.so$major'
5809 ;;
5810
5811aix4* | aix5*)
5812 version_type=linux
5813 if test "$host_cpu" = ia64; then
5814 # AIX 5 supports IA64
5815 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5816 shlibpath_var=LD_LIBRARY_PATH
5817 else
5818 # With GCC up to 2.95.x, collect2 would create an import file
5819 # for dependence libraries. The import file would start with
5820 # the line `#! .'. This would cause the generated library to
5821 # depend on `.', always an invalid library. This was fixed in
5822 # development snapshots of GCC prior to 3.0.
5823 case $host_os in
5824 aix4 | aix4.[01] | aix4.[01].*)
5825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5826 echo ' yes '
5827 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5828 :
5829 else
5830 can_build_shared=no
5831 fi
5832 ;;
5833 esac
5834 # AIX (on Power*) has no versioning support, so currently we can
5835 # not hardcode correct soname into executable. Probably we can
5836 # add versioning support to collect2, so additional links can
5837 # be useful in future.
5838 if test "$aix_use_runtimelinking" = yes; then
5839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5840 # instead of lib<name>.a to let people know that these are not
5841 # typical AIX shared libraries.
5842 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5843 else
5844 # We preserve .a as extension for shared libraries through AIX4.2
5845 # and later when we are not doing run time linking.
5846 library_names_spec='${libname}${release}.a $libname.a'
5847 soname_spec='${libname}${release}.so$major'
5848 fi
5849 shlibpath_var=LIBPATH
5850 fi
5851 ;;
5852
5853amigaos*)
5854 library_names_spec='$libname.ixlibrary $libname.a'
5855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5856 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5857 ;;
5858
5859beos*)
5860 library_names_spec='${libname}.so'
5861 dynamic_linker="$host_os ld.so"
5862 shlibpath_var=LIBRARY_PATH
5863 ;;
5864
5865bsdi4*)
5866 version_type=linux
5867 need_version=no
5868 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5869 soname_spec='${libname}${release}.so$major'
5870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5871 shlibpath_var=LD_LIBRARY_PATH
5872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5874 export_dynamic_flag_spec=-rdynamic
5875 # the default ld.so.conf also contains /usr/contrib/lib and
5876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5877 # libtool to hard-code these into programs
5878 ;;
5879
5880cygwin* | mingw* | pw32*)
5881 version_type=windows
5882 need_version=no
5883 need_lib_prefix=no
5884 case $GCC,$host_os in
5885 yes,cygwin*)
5886 library_names_spec='$libname.dll.a'
5887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5888 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5889 dldir=$destdir/`dirname \$dlpath`~
5890 test -d \$dldir || mkdir -p \$dldir~
5891 $install_prog .libs/$dlname \$dldir/$dlname'
5892 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5893 dlpath=$dir/\$dldll~
5894 $rm \$dlpath'
5895 ;;
5896 yes,mingw*)
5897 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5899 ;;
5900 yes,pw32*)
5901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5902 ;;
5903 *)
5904 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5905 ;;
5906 esac
5907 dynamic_linker='Win32 ld.exe'
5908 # FIXME: first we should search . and the directory the executable is in
5909 shlibpath_var=PATH
5910 ;;
5911
5912darwin* | rhapsody*)
5913 dynamic_linker="$host_os dyld"
5914 version_type=darwin
5915 need_lib_prefix=no
5916 need_version=no
5917 # FIXME: Relying on posixy $() will cause problems for
5918 # cross-compilation, but unfortunately the echo tests do not
5919 # yet detect zsh echo's removal of \ escapes.
5920 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5921 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5922 shlibpath_overrides_runpath=yes
5923 shlibpath_var=DYLD_LIBRARY_PATH
5924 ;;
5925
5926freebsd1*)
5927 dynamic_linker=no
5928 ;;
5929
5930freebsd*)
5931 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5932 version_type=freebsd-$objformat
5933 case $version_type in
5934 freebsd-elf*)
5935 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5936 need_version=no
5937 need_lib_prefix=no
5938 ;;
5939 freebsd-*)
5940 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5941 need_version=yes
5942 ;;
5943 esac
5944 shlibpath_var=LD_LIBRARY_PATH
5945 case $host_os in
5946 freebsd2*)
5947 shlibpath_overrides_runpath=yes
5948 ;;
5949 *)
5950 shlibpath_overrides_runpath=no
5951 hardcode_into_libs=yes
5952 ;;
5953 esac
5954 ;;
5955
5956gnu*)
5957 version_type=linux
5958 need_lib_prefix=no
5959 need_version=no
5960 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5961 soname_spec='${libname}${release}.so$major'
5962 shlibpath_var=LD_LIBRARY_PATH
5963 hardcode_into_libs=yes
5964 ;;
5965
5966hpux9* | hpux10* | hpux11*)
5967 # Give a soname corresponding to the major version so that dld.sl refuses to
5968 # link against other versions.
5969 dynamic_linker="$host_os dld.sl"
5970 version_type=sunos
5971 need_lib_prefix=no
5972 need_version=no
5973 shlibpath_var=SHLIB_PATH
5974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5975 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5976 soname_spec='${libname}${release}.sl$major'
5977 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5978 postinstall_cmds='chmod 555 $lib'
5979 ;;
5980
5981irix5* | irix6*)
5982 version_type=irix
5983 need_lib_prefix=no
5984 need_version=no
5985 soname_spec='${libname}${release}.so$major'
5986 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5987 case $host_os in
5988 irix5*)
5989 libsuff= shlibsuff=
5990 ;;
5991 *)
5992 case $LD in # libtool.m4 will add one of these switches to LD
5993 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5994 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5995 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5996 *) libsuff= shlibsuff= libmagic=never-match;;
5997 esac
5998 ;;
5999 esac
6000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6001 shlibpath_overrides_runpath=no
6002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6004 ;;
6005
6006# No shared lib support for Linux oldld, aout, or coff.
6007linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6008 dynamic_linker=no
6009 ;;
6010
6011# This must be Linux ELF.
6012linux-gnu*)
6013 version_type=linux
6014 need_lib_prefix=no
6015 need_version=no
6016 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6017 soname_spec='${libname}${release}.so$major'
6018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6019 shlibpath_var=LD_LIBRARY_PATH
6020 shlibpath_overrides_runpath=no
6021 # This implies no fast_install, which is unacceptable.
6022 # Some rework will be needed to allow for fast_install
6023 # before this can be enabled.
6024 hardcode_into_libs=yes
6025
6026 # We used to test for /lib/ld.so.1 and disable shared libraries on
6027 # powerpc, because MkLinux only supported shared libraries with the
6028 # GNU dynamic linker. Since this was broken with cross compilers,
6029 # most powerpc-linux boxes support dynamic linking these days and
6030 # people can always --disable-shared, the test was removed, and we
6031 # assume the GNU/Linux dynamic linker is in use.
6032 dynamic_linker='GNU/Linux ld.so'
6033 ;;
6034
6035netbsd*)
6036 version_type=sunos
6037 need_lib_prefix=no
6038 need_version=no
6039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6040 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6042 dynamic_linker='NetBSD (a.out) ld.so'
6043 else
6044 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6045 soname_spec='${libname}${release}.so$major'
6046 dynamic_linker='NetBSD ld.elf_so'
6047 fi
6048 shlibpath_var=LD_LIBRARY_PATH
6049 shlibpath_overrides_runpath=yes
6050 hardcode_into_libs=yes
6051 ;;
6052
6053newsos6)
6054 version_type=linux
6055 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6056 shlibpath_var=LD_LIBRARY_PATH
6057 shlibpath_overrides_runpath=yes
6058 ;;
6059
6060openbsd*)
6061 version_type=sunos
6062 need_lib_prefix=no
6063 need_version=no
6064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6065 case "$host_os" in
6066 openbsd2.[89] | openbsd2.[89].*)
6067 shlibpath_overrides_runpath=no
6068 ;;
6069 *)
6070 shlibpath_overrides_runpath=yes
6071 ;;
6072 esac
6073 else
6074 shlibpath_overrides_runpath=yes
6075 fi
6076 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6078 shlibpath_var=LD_LIBRARY_PATH
6079 ;;
6080
6081os2*)
6082 libname_spec='$name'
6083 need_lib_prefix=no
6084 library_names_spec='$libname.dll $libname.a'
6085 dynamic_linker='OS/2 ld.exe'
6086 shlibpath_var=LIBPATH
6087 ;;
6088
6089osf3* | osf4* | osf5*)
6090 version_type=osf
6091 need_version=no
6092 soname_spec='${libname}${release}.so'
6093 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6094 shlibpath_var=LD_LIBRARY_PATH
6095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6097 ;;
6098
6099sco3.2v5*)
6100 version_type=osf
6101 soname_spec='${libname}${release}.so$major'
6102 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6103 shlibpath_var=LD_LIBRARY_PATH
6104 ;;
6105
6106solaris*)
6107 version_type=linux
6108 need_lib_prefix=no
6109 need_version=no
6110 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6111 soname_spec='${libname}${release}.so$major'
6112 shlibpath_var=LD_LIBRARY_PATH
6113 shlibpath_overrides_runpath=yes
6114 hardcode_into_libs=yes
6115 # ldd complains unless libraries are executable
6116 postinstall_cmds='chmod +x $lib'
6117 ;;
6118
6119sunos4*)
6120 version_type=sunos
6121 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6123 shlibpath_var=LD_LIBRARY_PATH
6124 shlibpath_overrides_runpath=yes
6125 if test "$with_gnu_ld" = yes; then
6126 need_lib_prefix=no
6127 fi
6128 need_version=yes
6129 ;;
6130
6131sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6132 version_type=linux
6133 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6134 soname_spec='${libname}${release}.so$major'
6135 shlibpath_var=LD_LIBRARY_PATH
6136 case $host_vendor in
6137 sni)
6138 shlibpath_overrides_runpath=no
6139 ;;
6140 motorola)
6141 need_lib_prefix=no
6142 need_version=no
6143 shlibpath_overrides_runpath=no
6144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6145 ;;
6146 esac
6147 ;;
6148
6149uts4*)
6150 version_type=linux
6151 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6152 soname_spec='${libname}${release}.so$major'
6153 shlibpath_var=LD_LIBRARY_PATH
6154 ;;
6155
6156dgux*)
6157 version_type=linux
6158 need_lib_prefix=no
6159 need_version=no
6160 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6161 soname_spec='${libname}${release}.so$major'
6162 shlibpath_var=LD_LIBRARY_PATH
6163 ;;
6164
6165sysv4*MP*)
6166 if test -d /usr/nec ;then
6167 version_type=linux
6168 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6169 soname_spec='$libname.so.$major'
6170 shlibpath_var=LD_LIBRARY_PATH
6171 fi
6172 ;;
6173
6174*)
6175 dynamic_linker=no
6176 ;;
6177esac
6178echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6179echo "${ECHO_T}$dynamic_linker" >&6
6180test "$dynamic_linker" = no && can_build_shared=no
6181##
6182## END FIXME
6183
6184## FIXME: this should be a separate macro
6185##
6186# Report the final consequences.
6187echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6188echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6189echo "$as_me:$LINENO: result: $can_build_shared" >&5
6190echo "${ECHO_T}$can_build_shared" >&6
6191##
6192## END FIXME
6193
6194## FIXME: this should be a separate macro
6195##
6196echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6197echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6198test "$can_build_shared" = "no" && enable_shared=no
6199
6200# On AIX, shared libraries and static libraries use the same namespace, and
6201# are all built from PIC.
6202case "$host_os" in
6203aix3*)
6204 test "$enable_shared" = yes && enable_static=no
6205 if test -n "$RANLIB"; then
6206 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6207 postinstall_cmds='$RANLIB $lib'
6208 fi
6209 ;;
6210
6211aix4*)
6212 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6213 test "$enable_shared" = yes && enable_static=no
6214 fi
6215 ;;
6216esac
6217echo "$as_me:$LINENO: result: $enable_shared" >&5
6218echo "${ECHO_T}$enable_shared" >&6
6219##
6220## END FIXME
6221
6222## FIXME: this should be a separate macro
6223##
6224echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6225echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6226# Make sure either enable_shared or enable_static is yes.
6227test "$enable_shared" = yes || enable_static=yes
6228echo "$as_me:$LINENO: result: $enable_static" >&5
6229echo "${ECHO_T}$enable_static" >&6
6230##
6231## END FIXME
6232
6233if test "$hardcode_action" = relink; then
6234 # Fast installation is not supported
6235 enable_fast_install=no
6236elif test "$shlibpath_overrides_runpath" = yes ||
6237 test "$enable_shared" = no; then
6238 # Fast installation is not necessary
6239 enable_fast_install=needless
6240fi
6241
6242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6243if test "$GCC" = yes; then
6244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6245fi
6246
6247if test "x$enable_dlopen" != xyes; then
6248 enable_dlopen=unknown
6249 enable_dlopen_self=unknown
6250 enable_dlopen_self_static=unknown
6251else
6252 lt_cv_dlopen=no
6253 lt_cv_dlopen_libs=
6254
6255 case $host_os in
6256 beos*)
6257 lt_cv_dlopen="load_add_on"
6258 lt_cv_dlopen_libs=
6259 lt_cv_dlopen_self=yes
6260 ;;
6261
6262 cygwin* | mingw* | pw32*)
6263 lt_cv_dlopen="LoadLibrary"
6264 lt_cv_dlopen_libs=
6265 ;;
6266
6267 *)
6268 echo "$as_me:$LINENO: checking for shl_load" >&5
6269echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6270if test "${ac_cv_func_shl_load+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273 cat >conftest.$ac_ext <<_ACEOF
6274#line $LINENO "configure"
6275#include "confdefs.h"
6276/* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char shl_load (); below. */
6278#include <assert.h>
6279/* Override any gcc2 internal prototype to avoid an error. */
6280#ifdef __cplusplus
6281extern "C"
6282#endif
6283/* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6285char shl_load ();
6286char (*f) ();
6287
6288#ifdef F77_DUMMY_MAIN
6289# ifdef __cplusplus
6290 extern "C"
6291# endif
6292 int F77_DUMMY_MAIN() { return 1; }
6293#endif
6294int
6295main ()
6296{
6297/* The GNU C library defines this for functions which it implements
6298 to always fail with ENOSYS. Some functions are actually named
6299 something starting with __ and the normal name is an alias. */
6300#if defined (__stub_shl_load) || defined (__stub___shl_load)
6301choke me
6302#else
6303f = shl_load;
6304#endif
6305
6306 ;
6307 return 0;
6308}
6309_ACEOF
6310rm -f conftest.$ac_objext conftest$ac_exeext
6311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312 (eval $ac_link) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_func_shl_load=yes
6323else
6324 echo "$as_me: failed program was:" >&5
6325cat conftest.$ac_ext >&5
6326ac_cv_func_shl_load=no
6327fi
6328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329fi
6330echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6331echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6332if test $ac_cv_func_shl_load = yes; then
6333 lt_cv_dlopen="shl_load"
6334else
6335 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6336echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6337if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340 ac_check_lib_save_LIBS=$LIBS
6341LIBS="-ldld $LIBS"
6342cat >conftest.$ac_ext <<_ACEOF
6343#line $LINENO "configure"
6344#include "confdefs.h"
6345
6346/* Override any gcc2 internal prototype to avoid an error. */
6347#ifdef __cplusplus
6348extern "C"
6349#endif
6350/* We use char because int might match the return type of a gcc2
6351 builtin and then its argument prototype would still apply. */
6352char shl_load ();
6353#ifdef F77_DUMMY_MAIN
6354# ifdef __cplusplus
6355 extern "C"
6356# endif
6357 int F77_DUMMY_MAIN() { return 1; }
6358#endif
6359int
6360main ()
6361{
6362shl_load ();
6363 ;
6364 return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext conftest$ac_exeext
6368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 ac_cv_lib_dld_shl_load=yes
6380else
6381 echo "$as_me: failed program was:" >&5
6382cat conftest.$ac_ext >&5
6383ac_cv_lib_dld_shl_load=no
6384fi
6385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6386LIBS=$ac_check_lib_save_LIBS
6387fi
6388echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6389echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6390if test $ac_cv_lib_dld_shl_load = yes; then
6391 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6392else
6393 echo "$as_me:$LINENO: checking for dlopen" >&5
6394echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6395if test "${ac_cv_func_dlopen+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398 cat >conftest.$ac_ext <<_ACEOF
6399#line $LINENO "configure"
6400#include "confdefs.h"
6401/* System header to define __stub macros and hopefully few prototypes,
6402 which can conflict with char dlopen (); below. */
6403#include <assert.h>
6404/* Override any gcc2 internal prototype to avoid an error. */
6405#ifdef __cplusplus
6406extern "C"
6407#endif
6408/* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6410char dlopen ();
6411char (*f) ();
6412
6413#ifdef F77_DUMMY_MAIN
6414# ifdef __cplusplus
6415 extern "C"
6416# endif
6417 int F77_DUMMY_MAIN() { return 1; }
6418#endif
6419int
6420main ()
6421{
6422/* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425#if defined (__stub_dlopen) || defined (__stub___dlopen)
6426choke me
6427#else
6428f = dlopen;
6429#endif
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext conftest$ac_exeext
6436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437 (eval $ac_link) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -s conftest$ac_exeext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_cv_func_dlopen=yes
6448else
6449 echo "$as_me: failed program was:" >&5
6450cat conftest.$ac_ext >&5
6451ac_cv_func_dlopen=no
6452fi
6453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6454fi
6455echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6456echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6457if test $ac_cv_func_dlopen = yes; then
6458 lt_cv_dlopen="dlopen"
6459else
6460 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6461echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6462if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465 ac_check_lib_save_LIBS=$LIBS
6466LIBS="-ldl $LIBS"
6467cat >conftest.$ac_ext <<_ACEOF
6468#line $LINENO "configure"
6469#include "confdefs.h"
6470
6471/* Override any gcc2 internal prototype to avoid an error. */
6472#ifdef __cplusplus
6473extern "C"
6474#endif
6475/* We use char because int might match the return type of a gcc2
6476 builtin and then its argument prototype would still apply. */
6477char dlopen ();
6478#ifdef F77_DUMMY_MAIN
6479# ifdef __cplusplus
6480 extern "C"
6481# endif
6482 int F77_DUMMY_MAIN() { return 1; }
6483#endif
6484int
6485main ()
6486{
6487dlopen ();
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492rm -f conftest.$ac_objext conftest$ac_exeext
6493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494 (eval $ac_link) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -s conftest$ac_exeext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_lib_dl_dlopen=yes
6505else
6506 echo "$as_me: failed program was:" >&5
6507cat conftest.$ac_ext >&5
6508ac_cv_lib_dl_dlopen=no
6509fi
6510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511LIBS=$ac_check_lib_save_LIBS
6512fi
6513echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6514echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6515if test $ac_cv_lib_dl_dlopen = yes; then
6516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6517else
6518 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6519echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6520if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523 ac_check_lib_save_LIBS=$LIBS
6524LIBS="-lsvld $LIBS"
6525cat >conftest.$ac_ext <<_ACEOF
6526#line $LINENO "configure"
6527#include "confdefs.h"
6528
6529/* Override any gcc2 internal prototype to avoid an error. */
6530#ifdef __cplusplus
6531extern "C"
6532#endif
6533/* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6535char dlopen ();
6536#ifdef F77_DUMMY_MAIN
6537# ifdef __cplusplus
6538 extern "C"
6539# endif
6540 int F77_DUMMY_MAIN() { return 1; }
6541#endif
6542int
6543main ()
6544{
6545dlopen ();
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext conftest$ac_exeext
6551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_lib_svld_dlopen=yes
6563else
6564 echo "$as_me: failed program was:" >&5
6565cat conftest.$ac_ext >&5
6566ac_cv_lib_svld_dlopen=no
6567fi
6568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6569LIBS=$ac_check_lib_save_LIBS
6570fi
6571echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6572echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6573if test $ac_cv_lib_svld_dlopen = yes; then
6574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6575else
6576 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6577echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6578if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581 ac_check_lib_save_LIBS=$LIBS
6582LIBS="-ldld $LIBS"
6583cat >conftest.$ac_ext <<_ACEOF
6584#line $LINENO "configure"
6585#include "confdefs.h"
6586
6587/* Override any gcc2 internal prototype to avoid an error. */
6588#ifdef __cplusplus
6589extern "C"
6590#endif
6591/* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6593char dld_link ();
6594#ifdef F77_DUMMY_MAIN
6595# ifdef __cplusplus
6596 extern "C"
6597# endif
6598 int F77_DUMMY_MAIN() { return 1; }
6599#endif
6600int
6601main ()
6602{
6603dld_link ();
6604 ;
6605 return 0;
6606}
6607_ACEOF
6608rm -f conftest.$ac_objext conftest$ac_exeext
6609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_lib_dld_dld_link=yes
6621else
6622 echo "$as_me: failed program was:" >&5
6623cat conftest.$ac_ext >&5
6624ac_cv_lib_dld_dld_link=no
6625fi
6626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6627LIBS=$ac_check_lib_save_LIBS
6628fi
6629echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6630echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6631if test $ac_cv_lib_dld_dld_link = yes; then
6632 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6633fi
6634
6635
6636fi
6637
6638
6639fi
6640
6641
6642fi
6643
6644
6645fi
6646
6647
6648fi
6649
6650 ;;
6651 esac
6652
6653 if test "x$lt_cv_dlopen" != xno; then
6654 enable_dlopen=yes
6655 else
6656 enable_dlopen=no
6657 fi
6658
6659 case $lt_cv_dlopen in
6660 dlopen)
6661 save_CPPFLAGS="$CPPFLAGS"
6662 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6663
6664 save_LDFLAGS="$LDFLAGS"
6665 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6666
6667 save_LIBS="$LIBS"
6668 LIBS="$lt_cv_dlopen_libs $LIBS"
6669
6670 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6671echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6672if test "${lt_cv_dlopen_self+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675 if test "$cross_compiling" = yes; then :
6676 lt_cv_dlopen_self=cross
6677else
6678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6679 lt_status=$lt_dlunknown
6680 cat > conftest.$ac_ext <<EOF
6681#line 6681 "configure"
6682#include "confdefs.h"
6683
6684#if HAVE_DLFCN_H
6685#include <dlfcn.h>
6686#endif
6687
6688#include <stdio.h>
6689
6690#ifdef RTLD_GLOBAL
6691# define LT_DLGLOBAL RTLD_GLOBAL
6692#else
6693# ifdef DL_GLOBAL
6694# define LT_DLGLOBAL DL_GLOBAL
6695# else
6696# define LT_DLGLOBAL 0
6697# endif
6698#endif
6699
6700/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6701 find out it does not work in some platform. */
6702#ifndef LT_DLLAZY_OR_NOW
6703# ifdef RTLD_LAZY
6704# define LT_DLLAZY_OR_NOW RTLD_LAZY
6705# else
6706# ifdef DL_LAZY
6707# define LT_DLLAZY_OR_NOW DL_LAZY
6708# else
6709# ifdef RTLD_NOW
6710# define LT_DLLAZY_OR_NOW RTLD_NOW
6711# else
6712# ifdef DL_NOW
6713# define LT_DLLAZY_OR_NOW DL_NOW
6714# else
6715# define LT_DLLAZY_OR_NOW 0
6716# endif
6717# endif
6718# endif
6719# endif
6720#endif
6721
6722#ifdef __cplusplus
6723extern "C" void exit (int);
6724#endif
6725
6726void fnord() { int i=42;}
6727int main ()
6728{
6729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6730 int status = $lt_dlunknown;
6731
6732 if (self)
6733 {
6734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6736 /* dlclose (self); */
6737 }
6738
6739 exit (status);
6740}
6741EOF
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6747 (./conftest; exit; ) 2>/dev/null
6748 lt_status=$?
6749 case x$lt_status in
6750 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6751 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6752 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6753 esac
6754 else :
6755 # compilation failed
6756 lt_cv_dlopen_self=no
6757 fi
6758fi
6759rm -fr conftest*
6760
6761
6762fi
6763echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6764echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6765
6766 if test "x$lt_cv_dlopen_self" = xyes; then
6767 LDFLAGS="$LDFLAGS $link_static_flag"
6768 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6769echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6770if test "${lt_cv_dlopen_self_static+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773 if test "$cross_compiling" = yes; then :
6774 lt_cv_dlopen_self_static=cross
6775else
6776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6777 lt_status=$lt_dlunknown
6778 cat > conftest.$ac_ext <<EOF
6779#line 6779 "configure"
6780#include "confdefs.h"
6781
6782#if HAVE_DLFCN_H
6783#include <dlfcn.h>
6784#endif
6785
6786#include <stdio.h>
6787
6788#ifdef RTLD_GLOBAL
6789# define LT_DLGLOBAL RTLD_GLOBAL
6790#else
6791# ifdef DL_GLOBAL
6792# define LT_DLGLOBAL DL_GLOBAL
6793# else
6794# define LT_DLGLOBAL 0
6795# endif
6796#endif
6797
6798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6799 find out it does not work in some platform. */
6800#ifndef LT_DLLAZY_OR_NOW
6801# ifdef RTLD_LAZY
6802# define LT_DLLAZY_OR_NOW RTLD_LAZY
6803# else
6804# ifdef DL_LAZY
6805# define LT_DLLAZY_OR_NOW DL_LAZY
6806# else
6807# ifdef RTLD_NOW
6808# define LT_DLLAZY_OR_NOW RTLD_NOW
6809# else
6810# ifdef DL_NOW
6811# define LT_DLLAZY_OR_NOW DL_NOW
6812# else
6813# define LT_DLLAZY_OR_NOW 0
6814# endif
6815# endif
6816# endif
6817# endif
6818#endif
6819
6820#ifdef __cplusplus
6821extern "C" void exit (int);
6822#endif
6823
6824void fnord() { int i=42;}
6825int main ()
6826{
6827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6828 int status = $lt_dlunknown;
6829
6830 if (self)
6831 {
6832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6834 /* dlclose (self); */
6835 }
6836
6837 exit (status);
6838}
6839EOF
6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841 (eval $ac_link) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6845 (./conftest; exit; ) 2>/dev/null
6846 lt_status=$?
6847 case x$lt_status in
6848 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6849 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6850 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6851 esac
6852 else :
6853 # compilation failed
6854 lt_cv_dlopen_self_static=no
6855 fi
6856fi
6857rm -fr conftest*
6858
6859
6860fi
6861echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6862echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6863 fi
6864
6865 CPPFLAGS="$save_CPPFLAGS"
6866 LDFLAGS="$save_LDFLAGS"
6867 LIBS="$save_LIBS"
6868 ;;
6869 esac
6870
6871 case $lt_cv_dlopen_self in
6872 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6873 *) enable_dlopen_self=unknown ;;
6874 esac
6875
6876 case $lt_cv_dlopen_self_static in
6877 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6878 *) enable_dlopen_self_static=unknown ;;
6879 esac
6880fi
6881
6882
6883## FIXME: this should be a separate macro
6884##
6885if test "$enable_shared" = yes && test "$GCC" = yes; then
6886 case $archive_cmds in
6887 *'~'*)
6888 # FIXME: we may have to deal with multi-command sequences.
6889 ;;
6890 '$CC '*)
6891 # Test whether the compiler implicitly links with -lc since on some
6892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6893 # to ld, don't add -lc before -lgcc.
6894 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6895echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6896 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898else
6899 $rm conftest*
6900 echo 'static int dummy;' > conftest.$ac_ext
6901
6902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; then
6907 soname=conftest
6908 lib=conftest
6909 libobjs=conftest.$ac_objext
6910 deplibs=
6911 wl=$lt_cv_prog_cc_wl
6912 compiler_flags=-v
6913 linker_flags=-v
6914 verstring=
6915 output_objdir=.
6916 libname=conftest
6917 save_allow_undefined_flag=$allow_undefined_flag
6918 allow_undefined_flag=
6919 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6920 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }
6924 then
6925 lt_cv_archive_cmds_need_lc=no
6926 else
6927 lt_cv_archive_cmds_need_lc=yes
6928 fi
6929 allow_undefined_flag=$save_allow_undefined_flag
6930 else
6931 cat conftest.err 1>&5
6932 fi
6933fi
6934
6935 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6936echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6937 ;;
6938 esac
6939fi
6940need_lc=${lt_cv_archive_cmds_need_lc-yes}
6941##
6942## END FIXME
6943
6944## FIXME: this should be a separate macro
6945##
6946# The second clause should only fire when bootstrapping the
6947# libtool distribution, otherwise you forgot to ship ltmain.sh
6948# with your package, and you will get complaints that there are
6949# no rules to generate ltmain.sh.
6950if test -f "$ltmain"; then
6951 :
6952else
6953 # If there is no Makefile yet, we rely on a make rule to execute
6954 # `config.status --recheck' to rerun these tests and create the
6955 # libtool script then.
6956 test -f Makefile && make "$ltmain"
6957fi
6958
6959if test -f "$ltmain"; then
6960 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6961 $rm -f "${ofile}T"
6962
6963 echo creating $ofile
6964
6965 # Now quote all the things that may contain metacharacters while being
6966 # careful not to overquote the AC_SUBSTed values. We take copies of the
6967 # variables and quote the copies for generation of the libtool script.
6968 for var in echo old_CC old_CFLAGS \
6969 AR AR_FLAGS CC LD LN_S NM SHELL \
6970 reload_flag reload_cmds wl \
6971 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6972 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6973 library_names_spec soname_spec \
6974 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6975 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6976 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6977 old_striplib striplib file_magic_cmd export_symbols_cmds \
6978 deplibs_check_method allow_undefined_flag no_undefined_flag \
6979 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6980 global_symbol_to_c_name_address \
6981 hardcode_libdir_flag_spec hardcode_libdir_separator \
6982 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6983 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6984
6985 case $var in
6986 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6987 old_postinstall_cmds | old_postuninstall_cmds | \
6988 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6989 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6990 postinstall_cmds | postuninstall_cmds | \
6991 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6992 # Double-quote double-evaled strings.
6993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6994 ;;
6995 *)
6996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6997 ;;
6998 esac
6999 done
7000
7001 cat <<__EOF__ > "${ofile}T"
7002#! $SHELL
7003
7004# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7005# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7006# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7007#
7008# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7009# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7010#
7011# This program is free software; you can redistribute it and/or modify
7012# it under the terms of the GNU General Public License as published by
7013# the Free Software Foundation; either version 2 of the License, or
7014# (at your option) any later version.
7015#
7016# This program is distributed in the hope that it will be useful, but
7017# WITHOUT ANY WARRANTY; without even the implied warranty of
7018# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7019# General Public License for more details.
7020#
7021# You should have received a copy of the GNU General Public License
7022# along with this program; if not, write to the Free Software
7023# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7024#
7025# As a special exception to the GNU General Public License, if you
7026# distribute this file as part of a program that contains a
7027# configuration script generated by Autoconf, you may include it under
7028# the same distribution terms that you use for the rest of that program.
7029
7030# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7031Xsed="sed -e s/^X//"
7032
7033# The HP-UX ksh and POSIX shell print the target directory to stdout
7034# if CDPATH is set.
7035if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7036
7037# ### BEGIN LIBTOOL CONFIG
7038
7039# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7040
7041# Shell to use when invoking shell scripts.
7042SHELL=$lt_SHELL
7043
7044# Whether or not to build shared libraries.
7045build_libtool_libs=$enable_shared
7046
7047# Whether or not to build static libraries.
7048build_old_libs=$enable_static
7049
7050# Whether or not to add -lc for building shared libraries.
7051build_libtool_need_lc=$need_lc
7052
7053# Whether or not to optimize for fast installation.
7054fast_install=$enable_fast_install
7055
7056# The host system.
7057host_alias=$host_alias
7058host=$host
7059
7060# An echo program that does not interpret backslashes.
7061echo=$lt_echo
7062
7063# The archiver.
7064AR=$lt_AR
7065AR_FLAGS=$lt_AR_FLAGS
7066
7067# The default C compiler.
7068CC=$lt_CC
7069
7070# Is the compiler the GNU C compiler?
7071with_gcc=$GCC
7072
7073# The linker used to build libraries.
7074LD=$lt_LD
7075
7076# Whether we need hard or soft links.
7077LN_S=$lt_LN_S
7078
7079# A BSD-compatible nm program.
7080NM=$lt_NM
7081
7082# A symbol stripping program
7083STRIP=$STRIP
7084
7085# Used to examine libraries when file_magic_cmd begins "file"
7086MAGIC_CMD=$MAGIC_CMD
7087
7088# Used on cygwin: DLL creation program.
7089DLLTOOL="$DLLTOOL"
7090
7091# Used on cygwin: object dumper.
7092OBJDUMP="$OBJDUMP"
7093
7094# Used on cygwin: assembler.
7095AS="$AS"
7096
7097# The name of the directory that contains temporary libtool files.
7098objdir=$objdir
7099
7100# How to create reloadable object files.
7101reload_flag=$lt_reload_flag
7102reload_cmds=$lt_reload_cmds
7103
7104# How to pass a linker flag through the compiler.
7105wl=$lt_wl
7106
7107# Object file suffix (normally "o").
7108objext="$ac_objext"
7109
7110# Old archive suffix (normally "a").
7111libext="$libext"
7112
7113# Executable file suffix (normally "").
7114exeext="$exeext"
7115
7116# Additional compiler flags for building library objects.
7117pic_flag=$lt_pic_flag
7118pic_mode=$pic_mode
7119
7120# Does compiler simultaneously support -c and -o options?
7121compiler_c_o=$lt_compiler_c_o
7122
7123# Can we write directly to a .lo ?
7124compiler_o_lo=$lt_compiler_o_lo
7125
7126# Must we lock files when doing compilation ?
7127need_locks=$lt_need_locks
7128
7129# Do we need the lib prefix for modules?
7130need_lib_prefix=$need_lib_prefix
7131
7132# Do we need a version for libraries?
7133need_version=$need_version
7134
7135# Whether dlopen is supported.
7136dlopen_support=$enable_dlopen
7137
7138# Whether dlopen of programs is supported.
7139dlopen_self=$enable_dlopen_self
7140
7141# Whether dlopen of statically linked programs is supported.
7142dlopen_self_static=$enable_dlopen_self_static
7143
7144# Compiler flag to prevent dynamic linking.
7145link_static_flag=$lt_link_static_flag
7146
7147# Compiler flag to turn off builtin functions.
7148no_builtin_flag=$lt_no_builtin_flag
7149
7150# Compiler flag to allow reflexive dlopens.
7151export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7152
7153# Compiler flag to generate shared objects directly from archives.
7154whole_archive_flag_spec=$lt_whole_archive_flag_spec
7155
7156# Compiler flag to generate thread-safe objects.
7157thread_safe_flag_spec=$lt_thread_safe_flag_spec
7158
7159# Library versioning type.
7160version_type=$version_type
7161
7162# Format of library name prefix.
7163libname_spec=$lt_libname_spec
7164
7165# List of archive names. First name is the real one, the rest are links.
7166# The last name is the one that the linker finds with -lNAME.
7167library_names_spec=$lt_library_names_spec
7168
7169# The coded name of the library, if different from the real name.
7170soname_spec=$lt_soname_spec
7171
7172# Commands used to build and install an old-style archive.
7173RANLIB=$lt_RANLIB
7174old_archive_cmds=$lt_old_archive_cmds
7175old_postinstall_cmds=$lt_old_postinstall_cmds
7176old_postuninstall_cmds=$lt_old_postuninstall_cmds
7177
7178# Create an old-style archive from a shared archive.
7179old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7180
7181# Create a temporary old-style archive to link instead of a shared archive.
7182old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7183
7184# Commands used to build and install a shared archive.
7185archive_cmds=$lt_archive_cmds
7186archive_expsym_cmds=$lt_archive_expsym_cmds
7187postinstall_cmds=$lt_postinstall_cmds
7188postuninstall_cmds=$lt_postuninstall_cmds
7189
7190# Commands to strip libraries.
7191old_striplib=$lt_old_striplib
7192striplib=$lt_striplib
7193
7194# Method to check whether dependent libraries are shared objects.
7195deplibs_check_method=$lt_deplibs_check_method
7196
7197# Command to use when deplibs_check_method == file_magic.
7198file_magic_cmd=$lt_file_magic_cmd
7199
7200# Flag that allows shared libraries with undefined symbols to be built.
7201allow_undefined_flag=$lt_allow_undefined_flag
7202
7203# Flag that forces no undefined symbols.
7204no_undefined_flag=$lt_no_undefined_flag
7205
7206# Commands used to finish a libtool library installation in a directory.
7207finish_cmds=$lt_finish_cmds
7208
7209# Same as above, but a single script fragment to be evaled but not shown.
7210finish_eval=$lt_finish_eval
7211
7212# Take the output of nm and produce a listing of raw symbols and C names.
7213global_symbol_pipe=$lt_global_symbol_pipe
7214
7215# Transform the output of nm in a proper C declaration
7216global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7217
7218# Transform the output of nm in a C name address pair
7219global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7220
7221# This is the shared library runtime path variable.
7222runpath_var=$runpath_var
7223
7224# This is the shared library path variable.
7225shlibpath_var=$shlibpath_var
7226
7227# Is shlibpath searched before the hard-coded library search path?
7228shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7229
7230# How to hardcode a shared library path into an executable.
7231hardcode_action=$hardcode_action
7232
7233# Whether we should hardcode library paths into libraries.
7234hardcode_into_libs=$hardcode_into_libs
7235
7236# Flag to hardcode \$libdir into a binary during linking.
7237# This must work even if \$libdir does not exist.
7238hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7239
7240# Whether we need a single -rpath flag with a separated argument.
7241hardcode_libdir_separator=$lt_hardcode_libdir_separator
7242
7243# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7244# resulting binary.
7245hardcode_direct=$hardcode_direct
7246
7247# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7248# resulting binary.
7249hardcode_minus_L=$hardcode_minus_L
7250
7251# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7252# the resulting binary.
7253hardcode_shlibpath_var=$hardcode_shlibpath_var
7254
7255# Variables whose values should be saved in libtool wrapper scripts and
7256# restored at relink time.
7257variables_saved_for_relink="$variables_saved_for_relink"
7258
7259# Whether libtool must link a program against all its dependency libraries.
7260link_all_deplibs=$link_all_deplibs
7261
7262# Compile-time system search path for libraries
7263sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7264
7265# Run-time system search path for libraries
7266sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7267
7268# Fix the shell variable \$srcfile for the compiler.
7269fix_srcfile_path="$fix_srcfile_path"
7270
7271# Set to yes if exported symbols are required.
7272always_export_symbols=$always_export_symbols
7273
7274# The commands to list exported symbols.
7275export_symbols_cmds=$lt_export_symbols_cmds
7276
7277# The commands to extract the exported symbol list from a shared archive.
7278extract_expsyms_cmds=$lt_extract_expsyms_cmds
7279
7280# Symbols that should not be listed in the preloaded symbols.
7281exclude_expsyms=$lt_exclude_expsyms
7282
7283# Symbols that must always be exported.
7284include_expsyms=$lt_include_expsyms
7285
7286# ### END LIBTOOL CONFIG
7287
7288__EOF__
7289
7290 case $host_os in
7291 aix3*)
7292 cat <<\EOF >> "${ofile}T"
7293
7294# AIX sometimes has problems with the GCC collect2 program. For some
7295# reason, if we set the COLLECT_NAMES environment variable, the problems
7296# vanish in a puff of smoke.
7297if test "X${COLLECT_NAMES+set}" != Xset; then
7298 COLLECT_NAMES=
7299 export COLLECT_NAMES
7300fi
7301EOF
7302 ;;
7303 esac
7304
7305 case $host_os in
7306 cygwin* | mingw* | pw32* | os2*)
7307 cat <<'EOF' >> "${ofile}T"
7308 # This is a source program that is used to create dlls on Windows
7309 # Don't remove nor modify the starting and closing comments
7310# /* ltdll.c starts here */
7311# #define WIN32_LEAN_AND_MEAN
7312# #include <windows.h>
7313# #undef WIN32_LEAN_AND_MEAN
7314# #include <stdio.h>
7315#
7316# #ifndef __CYGWIN__
7317# # ifdef __CYGWIN32__
7318# # define __CYGWIN__ __CYGWIN32__
7319# # endif
7320# #endif
7321#
7322# #ifdef __cplusplus
7323# extern "C" {
7324# #endif
7325# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7326# #ifdef __cplusplus
7327# }
7328# #endif
7329#
7330# #ifdef __CYGWIN__
7331# #include <cygwin/cygwin_dll.h>
7332# DECLARE_CYGWIN_DLL( DllMain );
7333# #endif
7334# HINSTANCE __hDllInstance_base;
7335#
7336# BOOL APIENTRY
7337# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7338# {
7339# __hDllInstance_base = hInst;
7340# return TRUE;
7341# }
7342# /* ltdll.c ends here */
7343 # This is a source program that is used to create import libraries
7344 # on Windows for dlls which lack them. Don't remove nor modify the
7345 # starting and closing comments
7346# /* impgen.c starts here */
7347# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7348#
7349# This file is part of GNU libtool.
7350#
7351# This program is free software; you can redistribute it and/or modify
7352# it under the terms of the GNU General Public License as published by
7353# the Free Software Foundation; either version 2 of the License, or
7354# (at your option) any later version.
7355#
7356# This program is distributed in the hope that it will be useful,
7357# but WITHOUT ANY WARRANTY; without even the implied warranty of
7358# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7359# GNU General Public License for more details.
7360#
7361# You should have received a copy of the GNU General Public License
7362# along with this program; if not, write to the Free Software
7363# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7364# */
7365#
7366# #include <stdio.h> /* for printf() */
7367# #include <unistd.h> /* for open(), lseek(), read() */
7368# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7369# #include <string.h> /* for strdup() */
7370#
7371# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7372# #ifndef O_BINARY
7373# #define O_BINARY 0
7374# #endif
7375#
7376# static unsigned int
7377# pe_get16 (fd, offset)
7378# int fd;
7379# int offset;
7380# {
7381# unsigned char b[2];
7382# lseek (fd, offset, SEEK_SET);
7383# read (fd, b, 2);
7384# return b[0] + (b[1]<<8);
7385# }
7386#
7387# static unsigned int
7388# pe_get32 (fd, offset)
7389# int fd;
7390# int offset;
7391# {
7392# unsigned char b[4];
7393# lseek (fd, offset, SEEK_SET);
7394# read (fd, b, 4);
7395# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7396# }
7397#
7398# static unsigned int
7399# pe_as32 (ptr)
7400# void *ptr;
7401# {
7402# unsigned char *b = ptr;
7403# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7404# }
7405#
7406# int
7407# main (argc, argv)
7408# int argc;
7409# char *argv[];
7410# {
7411# int dll;
7412# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7413# unsigned long export_rva, export_size, nsections, secptr, expptr;
7414# unsigned long name_rvas, nexp;
7415# unsigned char *expdata, *erva;
7416# char *filename, *dll_name;
7417#
7418# filename = argv[1];
7419#
7420# dll = open(filename, O_RDONLY|O_BINARY);
7421# if (dll < 1)
7422# return 1;
7423#
7424# dll_name = filename;
7425#
7426# for (i=0; filename[i]; i++)
7427# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7428# dll_name = filename + i +1;
7429#
7430# pe_header_offset = pe_get32 (dll, 0x3c);
7431# opthdr_ofs = pe_header_offset + 4 + 20;
7432# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7433#
7434# if (num_entries < 1) /* no exports */
7435# return 1;
7436#
7437# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7438# export_size = pe_get32 (dll, opthdr_ofs + 100);
7439# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7440# secptr = (pe_header_offset + 4 + 20 +
7441# pe_get16 (dll, pe_header_offset + 4 + 16));
7442#
7443# expptr = 0;
7444# for (i = 0; i < nsections; i++)
7445# {
7446# char sname[8];
7447# unsigned long secptr1 = secptr + 40 * i;
7448# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7449# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7450# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7451# lseek(dll, secptr1, SEEK_SET);
7452# read(dll, sname, 8);
7453# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7454# {
7455# expptr = fptr + (export_rva - vaddr);
7456# if (export_rva + export_size > vaddr + vsize)
7457# export_size = vsize - (export_rva - vaddr);
7458# break;
7459# }
7460# }
7461#
7462# expdata = (unsigned char*)malloc(export_size);
7463# lseek (dll, expptr, SEEK_SET);
7464# read (dll, expdata, export_size);
7465# erva = expdata - export_rva;
7466#
7467# nexp = pe_as32 (expdata+24);
7468# name_rvas = pe_as32 (expdata+32);
7469#
7470# printf ("EXPORTS\n");
7471# for (i = 0; i<nexp; i++)
7472# {
7473# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7474# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7475# }
7476#
7477# return 0;
7478# }
7479# /* impgen.c ends here */
7480
7481EOF
7482 ;;
7483 esac
7484
7485 # We use sed instead of cat because bash on DJGPP gets confused if
7486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7487 # text mode, it properly converts lines to CR/LF. This bash problem
7488 # is reportedly fixed, but why not run on old versions too?
7489 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7490
7491 mv -f "${ofile}T" "$ofile" || \
7492 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7493 chmod +x "$ofile"
7494fi
7495##
7496## END FIXME
7497
7498
7499
7500
7501
7502# This can be used to rebuild libtool when needed
7503LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7504
7505# Always use our own libtool.
7506LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7507
7508# Prevent multiple expansion
7509
7510
7511
7512# Extract the first word of "ar", so it can be a program name with args.
7513set dummy ar; ac_word=$2
7514echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516if test "${ac_cv_path_AR+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519 case $AR in
7520 [\\/]* | ?:[\\/]*)
7521 ac_cv_path_AR="$AR" # Let the user override the test with a path.
7522 ;;
7523 *)
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535done
7536done
7537
7538 ;;
7539esac
7540fi
7541AR=$ac_cv_path_AR
7542
7543if test -n "$AR"; then
7544 echo "$as_me:$LINENO: result: $AR" >&5
7545echo "${ECHO_T}$AR" >&6
7546else
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549fi
7550
7551# Extract the first word of "sed", so it can be a program name with args.
7552set dummy sed; ac_word=$2
7553echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7555if test "${ac_cv_path_SED+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558 case $SED in
7559 [\\/]* | ?:[\\/]*)
7560 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7561 ;;
7562 *)
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574done
7575done
7576
7577 ;;
7578esac
7579fi
7580SED=$ac_cv_path_SED
7581
7582if test -n "$SED"; then
7583 echo "$as_me:$LINENO: result: $SED" >&5
7584echo "${ECHO_T}$SED" >&6
7585else
7586 echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6
7588fi
7589
7590# Extract the first word of "rm", so it can be a program name with args.
7591set dummy rm; ac_word=$2
7592echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594if test "${ac_cv_path_RM+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597 case $RM in
7598 [\\/]* | ?:[\\/]*)
7599 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7600 ;;
7601 *)
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7612 fi
7613done
7614done
7615
7616 ;;
7617esac
7618fi
7619RM=$ac_cv_path_RM
7620
7621if test -n "$RM"; then
7622 echo "$as_me:$LINENO: result: $RM" >&5
7623echo "${ECHO_T}$RM" >&6
7624else
7625 echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6
7627fi
7628
7629# Extract the first word of "echo", so it can be a program name with args.
7630set dummy echo; ac_word=$2
7631echo "$as_me:$LINENO: checking for $ac_word" >&5
7632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7633if test "${ac_cv_path_ECHO+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 case $ECHO in
7637 [\\/]* | ?:[\\/]*)
7638 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7639 ;;
7640 *)
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652done
7653done
7654
7655 ;;
7656esac
7657fi
7658ECHO=$ac_cv_path_ECHO
7659
7660if test -n "$ECHO"; then
7661 echo "$as_me:$LINENO: result: $ECHO" >&5
7662echo "${ECHO_T}$ECHO" >&6
7663else
7664 echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
7666fi
7667
7668# Extract the first word of "mkdir", so it can be a program name with args.
7669set dummy mkdir; ac_word=$2
7670echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7672if test "${ac_cv_path_MKDIR+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675 case $MKDIR in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7678 ;;
7679 *)
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691done
7692done
7693
7694 ;;
7695esac
7696fi
7697MKDIR=$ac_cv_path_MKDIR
7698
7699if test -n "$MKDIR"; then
7700 echo "$as_me:$LINENO: result: $MKDIR" >&5
7701echo "${ECHO_T}$MKDIR" >&6
7702else
7703 echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
7705fi
7706
7707# Extract the first word of "date", so it can be a program name with args.
7708set dummy date; ac_word=$2
7709echo "$as_me:$LINENO: checking for $ac_word" >&5
7710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7711if test "${ac_cv_path_DATE+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714 case $DATE in
7715 [\\/]* | ?:[\\/]*)
7716 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7717 ;;
7718 *)
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730done
7731done
7732
7733 ;;
7734esac
7735fi
7736DATE=$ac_cv_path_DATE
7737
7738if test -n "$DATE"; then
7739 echo "$as_me:$LINENO: result: $DATE" >&5
7740echo "${ECHO_T}$DATE" >&6
7741else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744fi
7745
7746# Extract the first word of "mv", so it can be a program name with args.
7747set dummy mv; ac_word=$2
7748echo "$as_me:$LINENO: checking for $ac_word" >&5
7749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7750if test "${ac_cv_path_MV+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753 case $MV in
7754 [\\/]* | ?:[\\/]*)
7755 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7756 ;;
7757 *)
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759for as_dir in $PATH
7760do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7768 fi
7769done
7770done
7771
7772 ;;
7773esac
7774fi
7775MV=$ac_cv_path_MV
7776
7777if test -n "$MV"; then
7778 echo "$as_me:$LINENO: result: $MV" >&5
7779echo "${ECHO_T}$MV" >&6
7780else
7781 echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
7783fi
7784
7785# Extract the first word of "dot", so it can be a program name with args.
7786set dummy dot; ac_word=$2
7787echo "$as_me:$LINENO: checking for $ac_word" >&5
7788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789if test "${ac_cv_path_DOT+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792 case $DOT in
7793 [\\/]* | ?:[\\/]*)
7794 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7795 ;;
7796 *)
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7807 fi
7808done
7809done
7810
7811 ;;
7812esac
7813fi
7814DOT=$ac_cv_path_DOT
7815
7816if test -n "$DOT"; then
7817 echo "$as_me:$LINENO: result: $DOT" >&5
7818echo "${ECHO_T}$DOT" >&6
7819else
7820 echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
7822fi
7823
7824# Extract the first word of "etags", so it can be a program name with args.
7825set dummy etags; ac_word=$2
7826echo "$as_me:$LINENO: checking for $ac_word" >&5
7827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7828if test "${ac_cv_path_ETAGS+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830else
7831 case $ETAGS in
7832 [\\/]* | ?:[\\/]*)
7833 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
7834 ;;
7835 *)
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837for as_dir in $PATH
7838do
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847done
7848done
7849
7850 ;;
7851esac
7852fi
7853ETAGS=$ac_cv_path_ETAGS
7854
7855if test -n "$ETAGS"; then
7856 echo "$as_me:$LINENO: result: $ETAGS" >&5
7857echo "${ECHO_T}$ETAGS" >&6
7858else
7859 echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6
7861fi
7862
7863# Extract the first word of "purify", so it can be a program name with args.
7864set dummy purify; ac_word=$2
7865echo "$as_me:$LINENO: checking for $ac_word" >&5
7866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7867if test "${ac_cv_path_PURIFY+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869else
7870 case $PURIFY in
7871 [\\/]* | ?:[\\/]*)
7872 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
7873 ;;
7874 *)
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876for as_dir in $PATH
7877do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
7883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886done
7887done
7888
7889 ;;
7890esac
7891fi
7892PURIFY=$ac_cv_path_PURIFY
7893
7894if test -n "$PURIFY"; then
7895 echo "$as_me:$LINENO: result: $PURIFY" >&5
7896echo "${ECHO_T}$PURIFY" >&6
7897else
7898 echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6
7900fi
7901
7902
7903
7904
7905
7906
7907echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
7908echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7909if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 ac_check_lib_save_LIBS=$LIBS
7913LIBS="-lelf $LIBS"
7914cat >conftest.$ac_ext <<_ACEOF
7915#line $LINENO "configure"
7916#include "confdefs.h"
7917
7918/* Override any gcc2 internal prototype to avoid an error. */
7919#ifdef __cplusplus
7920extern "C"
7921#endif
7922/* We use char because int might match the return type of a gcc2
7923 builtin and then its argument prototype would still apply. */
7924char elf_begin ();
7925#ifdef F77_DUMMY_MAIN
7926# ifdef __cplusplus
7927 extern "C"
7928# endif
7929 int F77_DUMMY_MAIN() { return 1; }
7930#endif
7931int
7932main ()
7933{
7934elf_begin ();
7935 ;
7936 return 0;
7937}
7938_ACEOF
7939rm -f conftest.$ac_objext conftest$ac_exeext
7940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>&5
7942 ac_status=$?
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 ac_cv_lib_elf_elf_begin=yes
7952else
7953 echo "$as_me: failed program was:" >&5
7954cat conftest.$ac_ext >&5
7955ac_cv_lib_elf_elf_begin=no
7956fi
7957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7958LIBS=$ac_check_lib_save_LIBS
7959fi
7960echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
7961echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7962if test $ac_cv_lib_elf_elf_begin = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964#define HAVE_LIBELF 1
7965_ACEOF
7966
7967 LIBS="-lelf $LIBS"
7968
7969fi
7970
7971
7972echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7973echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
7974if test "${ac_cv_search_dlopen+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976else
7977 ac_func_search_save_LIBS=$LIBS
7978ac_cv_search_dlopen=no
7979cat >conftest.$ac_ext <<_ACEOF
7980#line $LINENO "configure"
7981#include "confdefs.h"
7982
7983/* Override any gcc2 internal prototype to avoid an error. */
7984#ifdef __cplusplus
7985extern "C"
7986#endif
7987/* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989char dlopen ();
7990#ifdef F77_DUMMY_MAIN
7991# ifdef __cplusplus
7992 extern "C"
7993# endif
7994 int F77_DUMMY_MAIN() { return 1; }
7995#endif
7996int
7997main ()
7998{
7999dlopen ();
8000 ;
8001 return 0;
8002}
8003_ACEOF
8004rm -f conftest.$ac_objext conftest$ac_exeext
8005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_cv_search_dlopen="none required"
8017else
8018 echo "$as_me: failed program was:" >&5
8019cat conftest.$ac_ext >&5
8020fi
8021rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8022if test "$ac_cv_search_dlopen" = no; then
8023 for ac_lib in dl; do
8024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8025 cat >conftest.$ac_ext <<_ACEOF
8026#line $LINENO "configure"
8027#include "confdefs.h"
8028
8029/* Override any gcc2 internal prototype to avoid an error. */
8030#ifdef __cplusplus
8031extern "C"
8032#endif
8033/* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8035char dlopen ();
8036#ifdef F77_DUMMY_MAIN
8037# ifdef __cplusplus
8038 extern "C"
8039# endif
8040 int F77_DUMMY_MAIN() { return 1; }
8041#endif
8042int
8043main ()
8044{
8045dlopen ();
8046 ;
8047 return 0;
8048}
8049_ACEOF
8050rm -f conftest.$ac_objext conftest$ac_exeext
8051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052 (eval $ac_link) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_search_dlopen="-l$ac_lib"
8063break
8064else
8065 echo "$as_me: failed program was:" >&5
8066cat conftest.$ac_ext >&5
8067fi
8068rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8069 done
8070fi
8071LIBS=$ac_func_search_save_LIBS
8072fi
8073echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8074echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8075if test "$ac_cv_search_dlopen" != no; then
8076 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8077
8078else
8079 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
8080echo "$as_me: error: dlopen() required but not found" >&2;}
8081 { (exit 1); exit 1; }; }
8082fi
8083
8084
8085echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
8086echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
8087if test "${ac_cv_search_mallinfo+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090 ac_func_search_save_LIBS=$LIBS
8091ac_cv_search_mallinfo=no
8092cat >conftest.$ac_ext <<_ACEOF
8093#line $LINENO "configure"
8094#include "confdefs.h"
8095
8096/* Override any gcc2 internal prototype to avoid an error. */
8097#ifdef __cplusplus
8098extern "C"
8099#endif
8100/* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8102char mallinfo ();
8103#ifdef F77_DUMMY_MAIN
8104# ifdef __cplusplus
8105 extern "C"
8106# endif
8107 int F77_DUMMY_MAIN() { return 1; }
8108#endif
8109int
8110main ()
8111{
8112mallinfo ();
8113 ;
8114 return 0;
8115}
8116_ACEOF
8117rm -f conftest.$ac_objext conftest$ac_exeext
8118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119 (eval $ac_link) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try='test -s conftest$ac_exeext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 ac_cv_search_mallinfo="none required"
8130else
8131 echo "$as_me: failed program was:" >&5
8132cat conftest.$ac_ext >&5
8133fi
8134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8135if test "$ac_cv_search_mallinfo" = no; then
8136 for ac_lib in malloc; do
8137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8138 cat >conftest.$ac_ext <<_ACEOF
8139#line $LINENO "configure"
8140#include "confdefs.h"
8141
8142/* Override any gcc2 internal prototype to avoid an error. */
8143#ifdef __cplusplus
8144extern "C"
8145#endif
8146/* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8148char mallinfo ();
8149#ifdef F77_DUMMY_MAIN
8150# ifdef __cplusplus
8151 extern "C"
8152# endif
8153 int F77_DUMMY_MAIN() { return 1; }
8154#endif
8155int
8156main ()
8157{
8158mallinfo ();
8159 ;
8160 return 0;
8161}
8162_ACEOF
8163rm -f conftest.$ac_objext conftest$ac_exeext
8164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165 (eval $ac_link) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -s conftest$ac_exeext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_cv_search_mallinfo="-l$ac_lib"
8176break
8177else
8178 echo "$as_me: failed program was:" >&5
8179cat conftest.$ac_ext >&5
8180fi
8181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8182 done
8183fi
8184LIBS=$ac_func_search_save_LIBS
8185fi
8186echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
8187echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
8188if test "$ac_cv_search_mallinfo" != no; then
8189 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
8190 cat >>confdefs.h <<\_ACEOF
8191#define HAVE_MALLINFO 1
8192_ACEOF
8193
8194fi
8195
8196
8197
8198echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8199echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8200if test "${ac_cv_header_stdc+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 cat >conftest.$ac_ext <<_ACEOF
8204#line $LINENO "configure"
8205#include "confdefs.h"
8206#include <stdlib.h>
8207#include <stdarg.h>
8208#include <string.h>
8209#include <float.h>
8210
8211_ACEOF
8212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8214 ac_status=$?
8215 egrep -v '^ *\+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } >/dev/null; then
8220 if test -s conftest.err; then
8221 ac_cpp_err=$ac_c_preproc_warn_flag
8222 else
8223 ac_cpp_err=
8224 fi
8225else
8226 ac_cpp_err=yes
8227fi
8228if test -z "$ac_cpp_err"; then
8229 ac_cv_header_stdc=yes
8230else
8231 echo "$as_me: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 ac_cv_header_stdc=no
8234fi
8235rm -f conftest.err conftest.$ac_ext
8236
8237if test $ac_cv_header_stdc = yes; then
8238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8239 cat >conftest.$ac_ext <<_ACEOF
8240#line $LINENO "configure"
8241#include "confdefs.h"
8242#include <string.h>
8243
8244_ACEOF
8245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246 egrep "memchr" >/dev/null 2>&1; then
8247 :
8248else
8249 ac_cv_header_stdc=no
8250fi
8251rm -f conftest*
8252
8253fi
8254
8255if test $ac_cv_header_stdc = yes; then
8256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8257 cat >conftest.$ac_ext <<_ACEOF
8258#line $LINENO "configure"
8259#include "confdefs.h"
8260#include <stdlib.h>
8261
8262_ACEOF
8263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264 egrep "free" >/dev/null 2>&1; then
8265 :
8266else
8267 ac_cv_header_stdc=no
8268fi
8269rm -f conftest*
8270
8271fi
8272
8273if test $ac_cv_header_stdc = yes; then
8274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8275 if test "$cross_compiling" = yes; then
8276 :
8277else
8278 cat >conftest.$ac_ext <<_ACEOF
8279#line $LINENO "configure"
8280#include "confdefs.h"
8281#include <ctype.h>
8282#if ((' ' & 0x0FF) == 0x020)
8283# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8284# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8285#else
8286# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8287 || ('j' <= (c) && (c) <= 'r') \
8288 || ('s' <= (c) && (c) <= 'z'))
8289# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8290#endif
8291
8292#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8293int
8294main ()
8295{
8296 int i;
8297 for (i = 0; i < 256; i++)
8298 if (XOR (islower (i), ISLOWER (i))
8299 || toupper (i) != TOUPPER (i))
8300 exit(2);
8301 exit (0);
8302}
8303_ACEOF
8304rm -f conftest$ac_exeext
8305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 :
8316else
8317 echo "$as_me: program exited with status $ac_status" >&5
8318echo "$as_me: failed program was:" >&5
8319cat conftest.$ac_ext >&5
8320( exit $ac_status )
8321ac_cv_header_stdc=no
8322fi
8323rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8324fi
8325fi
8326fi
8327echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8328echo "${ECHO_T}$ac_cv_header_stdc" >&6
8329if test $ac_cv_header_stdc = yes; then
8330
8331cat >>confdefs.h <<\_ACEOF
8332#define STDC_HEADERS 1
8333_ACEOF
8334
8335fi
8336
8337echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8338echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8339if test "${ac_cv_header_sys_wait_h+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 cat >conftest.$ac_ext <<_ACEOF
8343#line $LINENO "configure"
8344#include "confdefs.h"
8345#include <sys/types.h>
8346#include <sys/wait.h>
8347#ifndef WEXITSTATUS
8348# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8349#endif
8350#ifndef WIFEXITED
8351# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8352#endif
8353
8354#ifdef F77_DUMMY_MAIN
8355# ifdef __cplusplus
8356 extern "C"
8357# endif
8358 int F77_DUMMY_MAIN() { return 1; }
8359#endif
8360int
8361main ()
8362{
8363 int s;
8364 wait (&s);
8365 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext
8371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372 (eval $ac_compile) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -s conftest.$ac_objext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_header_sys_wait_h=yes
8383else
8384 echo "$as_me: failed program was:" >&5
8385cat conftest.$ac_ext >&5
8386ac_cv_header_sys_wait_h=no
8387fi
8388rm -f conftest.$ac_objext conftest.$ac_ext
8389fi
8390echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8391echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8392if test $ac_cv_header_sys_wait_h = yes; then
8393
8394cat >>confdefs.h <<\_ACEOF
8395#define HAVE_SYS_WAIT_H 1
8396_ACEOF
8397
8398fi
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
8410do
8411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8412if eval "test \"\${$as_ac_Header+set}\" = set"; then
8413 echo "$as_me:$LINENO: checking for $ac_header" >&5
8414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8415if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417fi
8418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8420else
8421 # Is the header compilable?
8422echo "$as_me:$LINENO: checking $ac_header usability" >&5
8423echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8424cat >conftest.$ac_ext <<_ACEOF
8425#line $LINENO "configure"
8426#include "confdefs.h"
8427$ac_includes_default
8428#include <$ac_header>
8429_ACEOF
8430rm -f conftest.$ac_objext
8431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -s conftest.$ac_objext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 (eval $ac_try) 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_header_compiler=yes
8443else
8444 echo "$as_me: failed program was:" >&5
8445cat conftest.$ac_ext >&5
8446ac_header_compiler=no
8447fi
8448rm -f conftest.$ac_objext conftest.$ac_ext
8449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8450echo "${ECHO_T}$ac_header_compiler" >&6
8451
8452# Is the header present?
8453echo "$as_me:$LINENO: checking $ac_header presence" >&5
8454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8455cat >conftest.$ac_ext <<_ACEOF
8456#line $LINENO "configure"
8457#include "confdefs.h"
8458#include <$ac_header>
8459_ACEOF
8460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8462 ac_status=$?
8463 egrep -v '^ *\+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } >/dev/null; then
8468 if test -s conftest.err; then
8469 ac_cpp_err=$ac_c_preproc_warn_flag
8470 else
8471 ac_cpp_err=
8472 fi
8473else
8474 ac_cpp_err=yes
8475fi
8476if test -z "$ac_cpp_err"; then
8477 ac_header_preproc=yes
8478else
8479 echo "$as_me: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8481 ac_header_preproc=no
8482fi
8483rm -f conftest.err conftest.$ac_ext
8484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485echo "${ECHO_T}$ac_header_preproc" >&6
8486
8487# So? What about this header?
8488case $ac_header_compiler:$ac_header_preproc in
8489 yes:no )
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8494 no:yes )
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8501esac
8502echo "$as_me:$LINENO: checking for $ac_header" >&5
8503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507 eval "$as_ac_Header=$ac_header_preproc"
8508fi
8509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511
8512fi
8513if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514 cat >>confdefs.h <<_ACEOF
8515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516_ACEOF
8517
8518fi
8519
8520done
8521
8522
8523
8524
8525
8526
8527for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
8528do
8529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8530if eval "test \"\${$as_ac_Header+set}\" = set"; then
8531 echo "$as_me:$LINENO: checking for $ac_header" >&5
8532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8533if eval "test \"\${$as_ac_Header+set}\" = set"; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535fi
8536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8538else
8539 # Is the header compilable?
8540echo "$as_me:$LINENO: checking $ac_header usability" >&5
8541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8542cat >conftest.$ac_ext <<_ACEOF
8543#line $LINENO "configure"
8544#include "confdefs.h"
8545$ac_includes_default
8546#include <$ac_header>
8547_ACEOF
8548rm -f conftest.$ac_objext
8549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_header_compiler=yes
8561else
8562 echo "$as_me: failed program was:" >&5
8563cat conftest.$ac_ext >&5
8564ac_header_compiler=no
8565fi
8566rm -f conftest.$ac_objext conftest.$ac_ext
8567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8568echo "${ECHO_T}$ac_header_compiler" >&6
8569
8570# Is the header present?
8571echo "$as_me:$LINENO: checking $ac_header presence" >&5
8572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8573cat >conftest.$ac_ext <<_ACEOF
8574#line $LINENO "configure"
8575#include "confdefs.h"
8576#include <$ac_header>
8577_ACEOF
8578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8580 ac_status=$?
8581 egrep -v '^ *\+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } >/dev/null; then
8586 if test -s conftest.err; then
8587 ac_cpp_err=$ac_c_preproc_warn_flag
8588 else
8589 ac_cpp_err=
8590 fi
8591else
8592 ac_cpp_err=yes
8593fi
8594if test -z "$ac_cpp_err"; then
8595 ac_header_preproc=yes
8596else
8597 echo "$as_me: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 ac_header_preproc=no
8600fi
8601rm -f conftest.err conftest.$ac_ext
8602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8603echo "${ECHO_T}$ac_header_preproc" >&6
8604
8605# So? What about this header?
8606case $ac_header_compiler:$ac_header_preproc in
8607 yes:no )
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8612 no:yes )
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8619esac
8620echo "$as_me:$LINENO: checking for $ac_header" >&5
8621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8622if eval "test \"\${$as_ac_Header+set}\" = set"; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625 eval "$as_ac_Header=$ac_header_preproc"
8626fi
8627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8629
8630fi
8631if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632 cat >>confdefs.h <<_ACEOF
8633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634_ACEOF
8635
8636fi
8637
8638done
8639
8640
8641
8642
8643for ac_header in dlfcn.h link.h
8644do
8645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8646if eval "test \"\${$as_ac_Header+set}\" = set"; then
8647 echo "$as_me:$LINENO: checking for $ac_header" >&5
8648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8649if eval "test \"\${$as_ac_Header+set}\" = set"; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651fi
8652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8654else
8655 # Is the header compilable?
8656echo "$as_me:$LINENO: checking $ac_header usability" >&5
8657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8658cat >conftest.$ac_ext <<_ACEOF
8659#line $LINENO "configure"
8660#include "confdefs.h"
8661$ac_includes_default
8662#include <$ac_header>
8663_ACEOF
8664rm -f conftest.$ac_objext
8665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -s conftest.$ac_objext'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 ac_header_compiler=yes
8677else
8678 echo "$as_me: failed program was:" >&5
8679cat conftest.$ac_ext >&5
8680ac_header_compiler=no
8681fi
8682rm -f conftest.$ac_objext conftest.$ac_ext
8683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8684echo "${ECHO_T}$ac_header_compiler" >&6
8685
8686# Is the header present?
8687echo "$as_me:$LINENO: checking $ac_header presence" >&5
8688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8689cat >conftest.$ac_ext <<_ACEOF
8690#line $LINENO "configure"
8691#include "confdefs.h"
8692#include <$ac_header>
8693_ACEOF
8694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8696 ac_status=$?
8697 egrep -v '^ *\+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } >/dev/null; then
8702 if test -s conftest.err; then
8703 ac_cpp_err=$ac_c_preproc_warn_flag
8704 else
8705 ac_cpp_err=
8706 fi
8707else
8708 ac_cpp_err=yes
8709fi
8710if test -z "$ac_cpp_err"; then
8711 ac_header_preproc=yes
8712else
8713 echo "$as_me: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 ac_header_preproc=no
8716fi
8717rm -f conftest.err conftest.$ac_ext
8718echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8719echo "${ECHO_T}$ac_header_preproc" >&6
8720
8721# So? What about this header?
8722case $ac_header_compiler:$ac_header_preproc in
8723 yes:no )
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8728 no:yes )
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8730echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8732echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8735esac
8736echo "$as_me:$LINENO: checking for $ac_header" >&5
8737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740else
8741 eval "$as_ac_Header=$ac_header_preproc"
8742fi
8743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745
8746fi
8747if test `eval echo '${'$as_ac_Header'}'` = yes; then
8748 cat >>confdefs.h <<_ACEOF
8749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8750_ACEOF
8751
8752fi
8753
8754done
8755
8756
8757
8758echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8759echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8760if test "${ac_cv_prog_cc_stdc+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762else
8763 ac_cv_prog_cc_stdc=no
8764ac_save_CC=$CC
8765cat >conftest.$ac_ext <<_ACEOF
8766#line $LINENO "configure"
8767#include "confdefs.h"
8768#include <stdarg.h>
8769#include <stdio.h>
8770#include <sys/types.h>
8771#include <sys/stat.h>
8772/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8773struct buf { int x; };
8774FILE * (*rcsopen) (struct buf *, struct stat *, int);
8775static char *e (p, i)
8776 char **p;
8777 int i;
8778{
8779 return p[i];
8780}
8781static char *f (char * (*g) (char **, int), char **p, ...)
8782{
8783 char *s;
8784 va_list v;
8785 va_start (v,p);
8786 s = g (p, va_arg (v,int));
8787 va_end (v);
8788 return s;
8789}
8790int test (int i, double x);
8791struct s1 {int (*f) (int a);};
8792struct s2 {int (*f) (double a);};
8793int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8794int argc;
8795char **argv;
8796#ifdef F77_DUMMY_MAIN
8797# ifdef __cplusplus
8798 extern "C"
8799# endif
8800 int F77_DUMMY_MAIN() { return 1; }
8801#endif
8802int
8803main ()
8804{
8805return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8806 ;
8807 return 0;
8808}
8809_ACEOF
8810# Don't try gcc -ansi; that turns off useful extensions and
8811# breaks some systems' header files.
8812# AIX -qlanglvl=ansi
8813# Ultrix and OSF/1 -std1
8814# HP-UX 10.20 and later -Ae
8815# HP-UX older versions -Aa -D_HPUX_SOURCE
8816# SVR4 -Xc -D__EXTENSIONS__
8817for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8818do
8819 CC="$ac_save_CC $ac_arg"
8820 rm -f conftest.$ac_objext
8821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8822 (eval $ac_compile) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_prog_cc_stdc=$ac_arg
8833break
8834else
8835 echo "$as_me: failed program was:" >&5
8836cat conftest.$ac_ext >&5
8837fi
8838rm -f conftest.$ac_objext
8839done
8840rm -f conftest.$ac_ext conftest.$ac_objext
8841CC=$ac_save_CC
8842
8843fi
8844
8845case "x$ac_cv_prog_cc_stdc" in
8846 x|xno)
8847 echo "$as_me:$LINENO: result: none needed" >&5
8848echo "${ECHO_T}none needed" >&6 ;;
8849 *)
8850 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8851echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8852 CC="$CC $ac_cv_prog_cc_stdc" ;;
8853esac
8854
8855echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8856echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8857if test "${ac_cv_c_const+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860 cat >conftest.$ac_ext <<_ACEOF
8861#line $LINENO "configure"
8862#include "confdefs.h"
8863
8864#ifdef F77_DUMMY_MAIN
8865# ifdef __cplusplus
8866 extern "C"
8867# endif
8868 int F77_DUMMY_MAIN() { return 1; }
8869#endif
8870int
8871main ()
8872{
8873/* FIXME: Include the comments suggested by Paul. */
8874#ifndef __cplusplus
8875 /* Ultrix mips cc rejects this. */
8876 typedef int charset[2];
8877 const charset x;
8878 /* SunOS 4.1.1 cc rejects this. */
8879 char const *const *ccp;
8880 char **p;
8881 /* NEC SVR4.0.2 mips cc rejects this. */
8882 struct point {int x, y;};
8883 static struct point const zero = {0,0};
8884 /* AIX XL C 1.02.0.0 rejects this.
8885 It does not let you subtract one const X* pointer from another in
8886 an arm of an if-expression whose if-part is not a constant
8887 expression */
8888 const char *g = "string";
8889 ccp = &g + (g ? g-g : 0);
8890 /* HPUX 7.0 cc rejects these. */
8891 ++ccp;
8892 p = (char**) ccp;
8893 ccp = (char const *const *) p;
8894 { /* SCO 3.2v4 cc rejects this. */
8895 char *t;
8896 char const *s = 0 ? (char *) 0 : (char const *) 0;
8897
8898 *t++ = 0;
8899 }
8900 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8901 int x[] = {25, 17};
8902 const int *foo = &x[0];
8903 ++foo;
8904 }
8905 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8906 typedef const int *iptr;
8907 iptr p = 0;
8908 ++p;
8909 }
8910 { /* AIX XL C 1.02.0.0 rejects this saying
8911 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8912 struct s { int j; const int *ap[3]; };
8913 struct s *b; b->j = 5;
8914 }
8915 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8916 const int foo = 10;
8917 }
8918#endif
8919
8920 ;
8921 return 0;
8922}
8923_ACEOF
8924rm -f conftest.$ac_objext
8925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -s conftest.$ac_objext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_c_const=yes
8937else
8938 echo "$as_me: failed program was:" >&5
8939cat conftest.$ac_ext >&5
8940ac_cv_c_const=no
8941fi
8942rm -f conftest.$ac_objext conftest.$ac_ext
8943fi
8944echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8945echo "${ECHO_T}$ac_cv_c_const" >&6
8946if test $ac_cv_c_const = no; then
8947
8948cat >>confdefs.h <<\_ACEOF
8949#define const
8950_ACEOF
8951
8952fi
8953
8954echo "$as_me:$LINENO: checking for inline" >&5
8955echo $ECHO_N "checking for inline... $ECHO_C" >&6
8956if test "${ac_cv_c_inline+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958else
8959 ac_cv_c_inline=no
8960for ac_kw in inline __inline__ __inline; do
8961 cat >conftest.$ac_ext <<_ACEOF
8962#line $LINENO "configure"
8963#include "confdefs.h"
8964#ifndef __cplusplus
8965static $ac_kw int static_foo () {return 0; }
8966$ac_kw int foo () {return 0; }
8967#endif
8968
8969_ACEOF
8970rm -f conftest.$ac_objext
8971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_c_inline=$ac_kw; break
8983else
8984 echo "$as_me: failed program was:" >&5
8985cat conftest.$ac_ext >&5
8986fi
8987rm -f conftest.$ac_objext conftest.$ac_ext
8988done
8989
8990fi
8991echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8992echo "${ECHO_T}$ac_cv_c_inline" >&6
8993case $ac_cv_c_inline in
8994 inline | yes) ;;
8995 no)
8996cat >>confdefs.h <<\_ACEOF
8997#define inline
8998_ACEOF
8999 ;;
9000 *) cat >>confdefs.h <<_ACEOF
9001#define inline $ac_cv_c_inline
9002_ACEOF
9003 ;;
9004esac
9005
9006
9007echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9008echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9009if test "${ac_cv_c_bigendian+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
9012 # See if sys/param.h defines the BYTE_ORDER macro.
9013cat >conftest.$ac_ext <<_ACEOF
9014#line $LINENO "configure"
9015#include "confdefs.h"
9016#include <sys/types.h>
9017#include <sys/param.h>
9018
9019#ifdef F77_DUMMY_MAIN
9020# ifdef __cplusplus
9021 extern "C"
9022# endif
9023 int F77_DUMMY_MAIN() { return 1; }
9024#endif
9025int
9026main ()
9027{
9028#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9029 bogus endian macros
9030#endif
9031
9032 ;
9033 return 0;
9034}
9035_ACEOF
9036rm -f conftest.$ac_objext
9037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038 (eval $ac_compile) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 # It does; now see whether it defined to BIG_ENDIAN or not.
9049cat >conftest.$ac_ext <<_ACEOF
9050#line $LINENO "configure"
9051#include "confdefs.h"
9052#include <sys/types.h>
9053#include <sys/param.h>
9054
9055#ifdef F77_DUMMY_MAIN
9056# ifdef __cplusplus
9057 extern "C"
9058# endif
9059 int F77_DUMMY_MAIN() { return 1; }
9060#endif
9061int
9062main ()
9063{
9064#if BYTE_ORDER != BIG_ENDIAN
9065 not big endian
9066#endif
9067
9068 ;
9069 return 0;
9070}
9071_ACEOF
9072rm -f conftest.$ac_objext
9073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074 (eval $ac_compile) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_c_bigendian=yes
9085else
9086 echo "$as_me: failed program was:" >&5
9087cat conftest.$ac_ext >&5
9088ac_cv_c_bigendian=no
9089fi
9090rm -f conftest.$ac_objext conftest.$ac_ext
9091else
9092 echo "$as_me: failed program was:" >&5
9093cat conftest.$ac_ext >&5
9094# It does not; compile a test program.
9095if test "$cross_compiling" = yes; then
9096 # try to guess the endianess by grep'ing values into an object file
9097 ac_cv_c_bigendian=unknown
9098 cat >conftest.$ac_ext <<_ACEOF
9099#line $LINENO "configure"
9100#include "confdefs.h"
9101short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9102short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9103void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9104short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9105short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9106void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9107#ifdef F77_DUMMY_MAIN
9108# ifdef __cplusplus
9109 extern "C"
9110# endif
9111 int F77_DUMMY_MAIN() { return 1; }
9112#endif
9113int
9114main ()
9115{
9116 _ascii (); _ebcdic ();
9117 ;
9118 return 0;
9119}
9120_ACEOF
9121rm -f conftest.$ac_objext
9122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123 (eval $ac_compile) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -s conftest.$ac_objext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9134 ac_cv_c_bigendian=yes
9135fi
9136if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9137 if test "$ac_cv_c_bigendian" = unknown; then
9138 ac_cv_c_bigendian=no
9139 else
9140 # finding both strings is unlikely to happen, but who knows?
9141 ac_cv_c_bigendian=unknown
9142 fi
9143fi
9144else
9145 echo "$as_me: failed program was:" >&5
9146cat conftest.$ac_ext >&5
9147fi
9148rm -f conftest.$ac_objext conftest.$ac_ext
9149else
9150 cat >conftest.$ac_ext <<_ACEOF
9151#line $LINENO "configure"
9152#include "confdefs.h"
9153int
9154main ()
9155{
9156 /* Are we little or big endian? From Harbison&Steele. */
9157 union
9158 {
9159 long l;
9160 char c[sizeof (long)];
9161 } u;
9162 u.l = 1;
9163 exit (u.c[sizeof (long) - 1] == 1);
9164}
9165_ACEOF
9166rm -f conftest$ac_exeext
9167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168 (eval $ac_link) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_cv_c_bigendian=no
9178else
9179 echo "$as_me: program exited with status $ac_status" >&5
9180echo "$as_me: failed program was:" >&5
9181cat conftest.$ac_ext >&5
9182( exit $ac_status )
9183ac_cv_c_bigendian=yes
9184fi
9185rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9186fi
9187fi
9188rm -f conftest.$ac_objext conftest.$ac_ext
9189fi
9190echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9191echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9192case $ac_cv_c_bigendian in
9193 yes)
9194 cat >>confdefs.h <<\_ACEOF
9195#define ENDIAN_BIG 1
9196_ACEOF
9197 ;;
9198 no)
9199 cat >>confdefs.h <<\_ACEOF
9200#define ENDIAN_LITTLE 1
9201_ACEOF
9202 ;;
9203 *)
9204 { { echo "$as_me:$LINENO: error: unknown endianess
9205presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9206echo "$as_me: error: unknown endianess
9207presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9208 { (exit 1); exit 1; }; } ;;
9209esac
9210
9211
9212echo "$as_me:$LINENO: checking for pid_t" >&5
9213echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9214if test "${ac_cv_type_pid_t+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217 cat >conftest.$ac_ext <<_ACEOF
9218#line $LINENO "configure"
9219#include "confdefs.h"
9220$ac_includes_default
9221#ifdef F77_DUMMY_MAIN
9222# ifdef __cplusplus
9223 extern "C"
9224# endif
9225 int F77_DUMMY_MAIN() { return 1; }
9226#endif
9227int
9228main ()
9229{
9230if ((pid_t *) 0)
9231 return 0;
9232if (sizeof (pid_t))
9233 return 0;
9234 ;
9235 return 0;
9236}
9237_ACEOF
9238rm -f conftest.$ac_objext
9239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest.$ac_objext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_type_pid_t=yes
9251else
9252 echo "$as_me: failed program was:" >&5
9253cat conftest.$ac_ext >&5
9254ac_cv_type_pid_t=no
9255fi
9256rm -f conftest.$ac_objext conftest.$ac_ext
9257fi
9258echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9259echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9260if test $ac_cv_type_pid_t = yes; then
9261 :
9262else
9263
9264cat >>confdefs.h <<_ACEOF
9265#define pid_t int
9266_ACEOF
9267
9268fi
9269
9270echo "$as_me:$LINENO: checking for size_t" >&5
9271echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9272if test "${ac_cv_type_size_t+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275 cat >conftest.$ac_ext <<_ACEOF
9276#line $LINENO "configure"
9277#include "confdefs.h"
9278$ac_includes_default
9279#ifdef F77_DUMMY_MAIN
9280# ifdef __cplusplus
9281 extern "C"
9282# endif
9283 int F77_DUMMY_MAIN() { return 1; }
9284#endif
9285int
9286main ()
9287{
9288if ((size_t *) 0)
9289 return 0;
9290if (sizeof (size_t))
9291 return 0;
9292 ;
9293 return 0;
9294}
9295_ACEOF
9296rm -f conftest.$ac_objext
9297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298 (eval $ac_compile) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -s conftest.$ac_objext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_cv_type_size_t=yes
9309else
9310 echo "$as_me: failed program was:" >&5
9311cat conftest.$ac_ext >&5
9312ac_cv_type_size_t=no
9313fi
9314rm -f conftest.$ac_objext conftest.$ac_ext
9315fi
9316echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9317echo "${ECHO_T}$ac_cv_type_size_t" >&6
9318if test $ac_cv_type_size_t = yes; then
9319 :
9320else
9321
9322cat >>confdefs.h <<_ACEOF
9323#define size_t unsigned
9324_ACEOF
9325
9326fi
9327
9328echo "$as_me:$LINENO: checking for int64_t" >&5
9329echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
9330if test "${ac_cv_type_int64_t+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332else
9333 cat >conftest.$ac_ext <<_ACEOF
9334#line $LINENO "configure"
9335#include "confdefs.h"
9336$ac_includes_default
9337#ifdef F77_DUMMY_MAIN
9338# ifdef __cplusplus
9339 extern "C"
9340# endif
9341 int F77_DUMMY_MAIN() { return 1; }
9342#endif
9343int
9344main ()
9345{
9346if ((int64_t *) 0)
9347 return 0;
9348if (sizeof (int64_t))
9349 return 0;
9350 ;
9351 return 0;
9352}
9353_ACEOF
9354rm -f conftest.$ac_objext
9355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356 (eval $ac_compile) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -s conftest.$ac_objext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_type_int64_t=yes
9367else
9368 echo "$as_me: failed program was:" >&5
9369cat conftest.$ac_ext >&5
9370ac_cv_type_int64_t=no
9371fi
9372rm -f conftest.$ac_objext conftest.$ac_ext
9373fi
9374echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9375echo "${ECHO_T}$ac_cv_type_int64_t" >&6
9376if test $ac_cv_type_int64_t = yes; then
9377
9378cat >>confdefs.h <<_ACEOF
9379#define HAVE_INT64_T 1
9380_ACEOF
9381
9382
9383else
9384 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
9385echo "$as_me: error: Type int64_t required but not found" >&2;}
9386 { (exit 1); exit 1; }; }
9387fi
9388
9389echo "$as_me:$LINENO: checking for uint64_t" >&5
9390echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
9391if test "${ac_cv_type_uint64_t+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9393else
9394 cat >conftest.$ac_ext <<_ACEOF
9395#line $LINENO "configure"
9396#include "confdefs.h"
9397$ac_includes_default
9398#ifdef F77_DUMMY_MAIN
9399# ifdef __cplusplus
9400 extern "C"
9401# endif
9402 int F77_DUMMY_MAIN() { return 1; }
9403#endif
9404int
9405main ()
9406{
9407if ((uint64_t *) 0)
9408 return 0;
9409if (sizeof (uint64_t))
9410 return 0;
9411 ;
9412 return 0;
9413}
9414_ACEOF
9415rm -f conftest.$ac_objext
9416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417 (eval $ac_compile) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_type_uint64_t=yes
9428else
9429 echo "$as_me: failed program was:" >&5
9430cat conftest.$ac_ext >&5
9431ac_cv_type_uint64_t=no
9432fi
9433rm -f conftest.$ac_objext conftest.$ac_ext
9434fi
9435echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9436echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
9437if test $ac_cv_type_uint64_t = yes; then
9438
9439cat >>confdefs.h <<_ACEOF
9440#define HAVE_UINT64_T 1
9441_ACEOF
9442
9443
9444else
9445 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
9446echo "$as_me: error: Type uint64_t required but not found" >&2;}
9447 { (exit 1); exit 1; }; }
9448fi
9449
9450echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9451echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9452if test "${ac_cv_header_time+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454else
9455 cat >conftest.$ac_ext <<_ACEOF
9456#line $LINENO "configure"
9457#include "confdefs.h"
9458#include <sys/types.h>
9459#include <sys/time.h>
9460#include <time.h>
9461
9462#ifdef F77_DUMMY_MAIN
9463# ifdef __cplusplus
9464 extern "C"
9465# endif
9466 int F77_DUMMY_MAIN() { return 1; }
9467#endif
9468int
9469main ()
9470{
9471if ((struct tm *) 0)
9472return 0;
9473 ;
9474 return 0;
9475}
9476_ACEOF
9477rm -f conftest.$ac_objext
9478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479 (eval $ac_compile) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -s conftest.$ac_objext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_header_time=yes
9490else
9491 echo "$as_me: failed program was:" >&5
9492cat conftest.$ac_ext >&5
9493ac_cv_header_time=no
9494fi
9495rm -f conftest.$ac_objext conftest.$ac_ext
9496fi
9497echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9498echo "${ECHO_T}$ac_cv_header_time" >&6
9499if test $ac_cv_header_time = yes; then
9500
9501cat >>confdefs.h <<\_ACEOF
9502#define TIME_WITH_SYS_TIME 1
9503_ACEOF
9504
9505fi
9506
9507echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9508echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9509if test "${ac_cv_struct_tm+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511else
9512 cat >conftest.$ac_ext <<_ACEOF
9513#line $LINENO "configure"
9514#include "confdefs.h"
9515#include <sys/types.h>
9516#include <time.h>
9517
9518#ifdef F77_DUMMY_MAIN
9519# ifdef __cplusplus
9520 extern "C"
9521# endif
9522 int F77_DUMMY_MAIN() { return 1; }
9523#endif
9524int
9525main ()
9526{
9527struct tm *tp; tp->tm_sec;
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext
9533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -s conftest.$ac_objext'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 (eval $ac_try) 2>&5
9541 ac_status=$?
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 ac_cv_struct_tm=time.h
9545else
9546 echo "$as_me: failed program was:" >&5
9547cat conftest.$ac_ext >&5
9548ac_cv_struct_tm=sys/time.h
9549fi
9550rm -f conftest.$ac_objext conftest.$ac_ext
9551fi
9552echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9553echo "${ECHO_T}$ac_cv_struct_tm" >&6
9554if test $ac_cv_struct_tm = sys/time.h; then
9555
9556cat >>confdefs.h <<\_ACEOF
9557#define TM_IN_SYS_TIME 1
9558_ACEOF
9559
9560fi
9561
9562
9563
9564echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
9565echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
9566if test "${ac_cv_cxx_namespaces+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568else
9569
9570
9571 ac_ext=cc
9572ac_cpp='$CXXCPP $CPPFLAGS'
9573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9576
9577 cat >conftest.$ac_ext <<_ACEOF
9578#line $LINENO "configure"
9579#include "confdefs.h"
9580namespace Outer { namespace Inner { int i = 0; }}
9581#ifdef F77_DUMMY_MAIN
9582# ifdef __cplusplus
9583 extern "C"
9584# endif
9585 int F77_DUMMY_MAIN() { return 1; }
9586#endif
9587int
9588main ()
9589{
9590using namespace Outer::Inner; return i;
9591 ;
9592 return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext
9596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_cxx_namespaces=yes
9608else
9609 echo "$as_me: failed program was:" >&5
9610cat conftest.$ac_ext >&5
9611ac_cv_cxx_namespaces=no
9612fi
9613rm -f conftest.$ac_objext conftest.$ac_ext
9614 ac_ext=c
9615ac_cpp='$CPP $CPPFLAGS'
9616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619
9620
9621fi
9622echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
9623echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
9624if test "$ac_cv_cxx_namespaces" = yes; then
9625
9626cat >>confdefs.h <<\_ACEOF
9627#define HAVE_NAMESPACES
9628_ACEOF
9629
9630fi
9631
9632echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
9633echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
9634if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637
9638
9639
9640 ac_ext=cc
9641ac_cpp='$CXXCPP $CPPFLAGS'
9642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9645
9646 cat >conftest.$ac_ext <<_ACEOF
9647#line $LINENO "configure"
9648#include "confdefs.h"
9649#include <ext/hash_map>
9650#ifdef HAVE_NAMESPACES
9651using namespace std;
9652#endif
9653#ifdef F77_DUMMY_MAIN
9654# ifdef __cplusplus
9655 extern "C"
9656# endif
9657 int F77_DUMMY_MAIN() { return 1; }
9658#endif
9659int
9660main ()
9661{
9662hash_map<int, int> t; return 0;
9663 ;
9664 return 0;
9665}
9666_ACEOF
9667rm -f conftest.$ac_objext
9668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_cxx_have_ext_hash_map=std
9680else
9681 echo "$as_me: failed program was:" >&5
9682cat conftest.$ac_ext >&5
9683ac_cv_cxx_have_ext_hash_map=no
9684fi
9685rm -f conftest.$ac_objext conftest.$ac_ext
9686 cat >conftest.$ac_ext <<_ACEOF
9687#line $LINENO "configure"
9688#include "confdefs.h"
9689#include <ext/hash_map>
9690#ifdef HAVE_NAMESPACES
9691using namespace __gnu_cxx;
9692#endif
9693#ifdef F77_DUMMY_MAIN
9694# ifdef __cplusplus
9695 extern "C"
9696# endif
9697 int F77_DUMMY_MAIN() { return 1; }
9698#endif
9699int
9700main ()
9701{
9702hash_map<int, int> t; return 0;
9703 ;
9704 return 0;
9705}
9706_ACEOF
9707rm -f conftest.$ac_objext
9708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9709 (eval $ac_compile) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -s conftest.$ac_objext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_cxx_have_ext_hash_map=gnu
9720else
9721 echo "$as_me: failed program was:" >&5
9722cat conftest.$ac_ext >&5
9723ac_cv_cxx_have_ext_hash_map=no
9724fi
9725rm -f conftest.$ac_objext conftest.$ac_ext
9726 ac_ext=c
9727ac_cpp='$CPP $CPPFLAGS'
9728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9730ac_compiler_gnu=$ac_cv_c_compiler_gnu
9731
9732
9733fi
9734echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
9735echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
9736if test "$ac_cv_cxx_have_ext_hash_map" = std; then
9737
9738cat >>confdefs.h <<\_ACEOF
9739#define HAVE_STD_EXT_HASH_MAP
9740_ACEOF
9741
9742fi
9743if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
9744
9745cat >>confdefs.h <<\_ACEOF
9746#define HAVE_GNU_EXT_HASH_MAP
9747_ACEOF
9748
9749fi
9750
9751echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
9752echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
9753if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755else
9756
9757
9758
9759 ac_ext=cc
9760ac_cpp='$CXXCPP $CPPFLAGS'
9761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9764
9765 cat >conftest.$ac_ext <<_ACEOF
9766#line $LINENO "configure"
9767#include "confdefs.h"
9768#include <ext/hash_set>
9769#ifdef HAVE_NAMESPACES
9770using namespace std;
9771#endif
9772#ifdef F77_DUMMY_MAIN
9773# ifdef __cplusplus
9774 extern "C"
9775# endif
9776 int F77_DUMMY_MAIN() { return 1; }
9777#endif
9778int
9779main ()
9780{
9781hash_set<int> t; return 0;
9782 ;
9783 return 0;
9784}
9785_ACEOF
9786rm -f conftest.$ac_objext
9787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9788 (eval $ac_compile) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -s conftest.$ac_objext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_cxx_have_ext_hash_set=std
9799else
9800 echo "$as_me: failed program was:" >&5
9801cat conftest.$ac_ext >&5
9802ac_cv_cxx_have_ext_hash_set=no
9803fi
9804rm -f conftest.$ac_objext conftest.$ac_ext
9805 cat >conftest.$ac_ext <<_ACEOF
9806#line $LINENO "configure"
9807#include "confdefs.h"
9808#include <ext/hash_set>
9809#ifdef HAVE_NAMESPACES
9810using namespace __gnu_cxx;
9811#endif
9812#ifdef F77_DUMMY_MAIN
9813# ifdef __cplusplus
9814 extern "C"
9815# endif
9816 int F77_DUMMY_MAIN() { return 1; }
9817#endif
9818int
9819main ()
9820{
9821hash_set<int> t; return 0;
9822 ;
9823 return 0;
9824}
9825_ACEOF
9826rm -f conftest.$ac_objext
9827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_cv_cxx_have_ext_hash_set=gnu
9839else
9840 echo "$as_me: failed program was:" >&5
9841cat conftest.$ac_ext >&5
9842ac_cv_cxx_have_ext_hash_set=no
9843fi
9844rm -f conftest.$ac_objext conftest.$ac_ext
9845 ac_ext=c
9846ac_cpp='$CPP $CPPFLAGS'
9847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849ac_compiler_gnu=$ac_cv_c_compiler_gnu
9850
9851
9852fi
9853echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
9854echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
9855if test "$ac_cv_cxx_have_ext_hash_set" = std; then
9856
9857cat >>confdefs.h <<\_ACEOF
9858#define HAVE_STD_EXT_HASH_SET
9859_ACEOF
9860
9861fi
9862if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
9863
9864cat >>confdefs.h <<\_ACEOF
9865#define HAVE_GNU_EXT_HASH_SET
9866_ACEOF
9867
9868fi
9869
9870echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
9871echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
9872if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875
9876
9877
9878 ac_ext=cc
9879ac_cpp='$CXXCPP $CPPFLAGS'
9880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9883
9884 cat >conftest.$ac_ext <<_ACEOF
9885#line $LINENO "configure"
9886#include "confdefs.h"
9887#include <ext/slist>
9888#ifdef HAVE_NAMESPACES
9889using namespace std;
9890#endif
9891#ifdef F77_DUMMY_MAIN
9892# ifdef __cplusplus
9893 extern "C"
9894# endif
9895 int F77_DUMMY_MAIN() { return 1; }
9896#endif
9897int
9898main ()
9899{
9900slist<int> s; return 0;
9901 ;
9902 return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext
9906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -s conftest.$ac_objext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_cxx_have_ext_slist=std
9918else
9919 echo "$as_me: failed program was:" >&5
9920cat conftest.$ac_ext >&5
9921ac_cv_cxx_have_ext_slist=no
9922fi
9923rm -f conftest.$ac_objext conftest.$ac_ext
9924 cat >conftest.$ac_ext <<_ACEOF
9925#line $LINENO "configure"
9926#include "confdefs.h"
9927#include <ext/slist>
9928#ifdef HAVE_NAMESPACES
9929using namespace __gnu_cxx;
9930#endif
9931#ifdef F77_DUMMY_MAIN
9932# ifdef __cplusplus
9933 extern "C"
9934# endif
9935 int F77_DUMMY_MAIN() { return 1; }
9936#endif
9937int
9938main ()
9939{
9940slist<int> s; return 0;
9941 ;
9942 return 0;
9943}
9944_ACEOF
9945rm -f conftest.$ac_objext
9946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947 (eval $ac_compile) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -s conftest.$ac_objext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 (eval $ac_try) 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_cxx_have_ext_slist=gnu
9958else
9959 echo "$as_me: failed program was:" >&5
9960cat conftest.$ac_ext >&5
9961ac_cv_cxx_have_ext_slist=no
9962fi
9963rm -f conftest.$ac_objext conftest.$ac_ext
9964
9965 ac_ext=c
9966ac_cpp='$CPP $CPPFLAGS'
9967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9969ac_compiler_gnu=$ac_cv_c_compiler_gnu
9970
9971
9972fi
9973echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
9974echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
9975if test "$ac_cv_cxx_have_ext_slist" = std; then
9976
9977cat >>confdefs.h <<\_ACEOF
9978#define HAVE_EXT_SLIST std
9979_ACEOF
9980
9981fi
9982if test "$ac_cv_cxx_have_ext_slist" = gnu; then
9983
9984cat >>confdefs.h <<\_ACEOF
9985#define HAVE_EXT_SLIST gnu
9986_ACEOF
9987
9988fi
9989
9990echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
9991echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
9992if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994else
9995
9996
9997
9998 ac_ext=cc
9999ac_cpp='$CXXCPP $CPPFLAGS'
10000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10003
10004 cat >conftest.$ac_ext <<_ACEOF
10005#line $LINENO "configure"
10006#include "confdefs.h"
10007#include <iterator>
10008#ifdef HAVE_NAMESPACES
10009using namespace std;
10010#endif
10011#ifdef F77_DUMMY_MAIN
10012# ifdef __cplusplus
10013 extern "C"
10014# endif
10015 int F77_DUMMY_MAIN() { return 1; }
10016#endif
10017int
10018main ()
10019{
10020iterator<int,int,int> t; return 0;
10021 ;
10022 return 0;
10023}
10024_ACEOF
10025rm -f conftest.$ac_objext
10026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_cv_cxx_have_std_iterator=yes
10038else
10039 echo "$as_me: failed program was:" >&5
10040cat conftest.$ac_ext >&5
10041ac_cv_cxx_have_std_iterator=no
10042fi
10043rm -f conftest.$ac_objext conftest.$ac_ext
10044 ac_ext=c
10045ac_cpp='$CPP $CPPFLAGS'
10046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10048ac_compiler_gnu=$ac_cv_c_compiler_gnu
10049
10050
10051fi
10052echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
10053echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
10054if test "$ac_cv_cxx_have_std_iterator" = yes; then
10055
10056cat >>confdefs.h <<\_ACEOF
10057#define HAVE_STD_ITERATOR
10058_ACEOF
10059
10060fi
10061
10062echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
10063echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
10064if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066else
10067
10068
10069
10070 ac_ext=cc
10071ac_cpp='$CXXCPP $CPPFLAGS'
10072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10075
10076 cat >conftest.$ac_ext <<_ACEOF
10077#line $LINENO "configure"
10078#include "confdefs.h"
10079#include <iterator>
10080#ifdef HAVE_NAMESPACES
10081using namespace std;
10082#endif
10083#ifdef F77_DUMMY_MAIN
10084# ifdef __cplusplus
10085 extern "C"
10086# endif
10087 int F77_DUMMY_MAIN() { return 1; }
10088#endif
10089int
10090main ()
10091{
10092bidirectional_iterator<int,int,int> t; return 0;
10093 ;
10094 return 0;
10095}
10096_ACEOF
10097rm -f conftest.$ac_objext
10098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_cxx_have_bi_iterator=yes
10110else
10111 echo "$as_me: failed program was:" >&5
10112cat conftest.$ac_ext >&5
10113ac_cv_cxx_have_bi_iterator=no
10114fi
10115rm -f conftest.$ac_objext conftest.$ac_ext
10116 ac_ext=c
10117ac_cpp='$CPP $CPPFLAGS'
10118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10120ac_compiler_gnu=$ac_cv_c_compiler_gnu
10121
10122
10123fi
10124echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
10125echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
10126if test "$ac_cv_cxx_have_bi_iterator" = yes; then
10127
10128cat >>confdefs.h <<\_ACEOF
10129#define HAVE_BI_ITERATOR
10130_ACEOF
10131
10132fi
10133
10134echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
10135echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
10136if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139
10140
10141
10142 ac_ext=cc
10143ac_cpp='$CXXCPP $CPPFLAGS'
10144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10147
10148 cat >conftest.$ac_ext <<_ACEOF
10149#line $LINENO "configure"
10150#include "confdefs.h"
10151#include <iterator>
10152#ifdef HAVE_NAMESPACES
10153using namespace std;
10154#endif
10155#ifdef F77_DUMMY_MAIN
10156# ifdef __cplusplus
10157 extern "C"
10158# endif
10159 int F77_DUMMY_MAIN() { return 1; }
10160#endif
10161int
10162main ()
10163{
10164forward_iterator<int,int,int> t; return 0;
10165 ;
10166 return 0;
10167}
10168_ACEOF
10169rm -f conftest.$ac_objext
10170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -s conftest.$ac_objext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_cv_cxx_have_fwd_iterator=yes
10182else
10183 echo "$as_me: failed program was:" >&5
10184cat conftest.$ac_ext >&5
10185ac_cv_cxx_have_fwd_iterator=no
10186fi
10187rm -f conftest.$ac_objext conftest.$ac_ext
10188 ac_ext=c
10189ac_cpp='$CPP $CPPFLAGS'
10190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10192ac_compiler_gnu=$ac_cv_c_compiler_gnu
10193
10194
10195fi
10196echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
10197echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
10198if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
10199
10200cat >>confdefs.h <<\_ACEOF
10201#define HAVE_FWD_ITERATOR
10202_ACEOF
10203
10204fi
10205
10206
10207# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10208# for constant arguments. Useless!
10209echo "$as_me:$LINENO: checking for working alloca.h" >&5
10210echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10211if test "${ac_cv_working_alloca_h+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213else
10214 cat >conftest.$ac_ext <<_ACEOF
10215#line $LINENO "configure"
10216#include "confdefs.h"
10217#include <alloca.h>
10218#ifdef F77_DUMMY_MAIN
10219# ifdef __cplusplus
10220 extern "C"
10221# endif
10222 int F77_DUMMY_MAIN() { return 1; }
10223#endif
10224int
10225main ()
10226{
10227char *p = (char *) alloca (2 * sizeof (int));
10228 ;
10229 return 0;
10230}
10231_ACEOF
10232rm -f conftest.$ac_objext conftest$ac_exeext
10233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_working_alloca_h=yes
10245else
10246 echo "$as_me: failed program was:" >&5
10247cat conftest.$ac_ext >&5
10248ac_cv_working_alloca_h=no
10249fi
10250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10251fi
10252echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10253echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10254if test $ac_cv_working_alloca_h = yes; then
10255
10256cat >>confdefs.h <<\_ACEOF
10257#define HAVE_ALLOCA_H 1
10258_ACEOF
10259
10260fi
10261
10262echo "$as_me:$LINENO: checking for alloca" >&5
10263echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10264if test "${ac_cv_func_alloca_works+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10266else
10267 cat >conftest.$ac_ext <<_ACEOF
10268#line $LINENO "configure"
10269#include "confdefs.h"
10270#ifdef __GNUC__
10271# define alloca __builtin_alloca
10272#else
10273# ifdef _MSC_VER
10274# include <malloc.h>
10275# define alloca _alloca
10276# else
10277# if HAVE_ALLOCA_H
10278# include <alloca.h>
10279# else
10280# ifdef _AIX
10281 #pragma alloca
10282# else
10283# ifndef alloca /* predefined by HP cc +Olibcalls */
10284char *alloca ();
10285# endif
10286# endif
10287# endif
10288# endif
10289#endif
10290
10291#ifdef F77_DUMMY_MAIN
10292# ifdef __cplusplus
10293 extern "C"
10294# endif
10295 int F77_DUMMY_MAIN() { return 1; }
10296#endif
10297int
10298main ()
10299{
10300char *p = (char *) alloca (1);
10301 ;
10302 return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext conftest$ac_exeext
10306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10307 (eval $ac_link) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -s conftest$ac_exeext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_cv_func_alloca_works=yes
10318else
10319 echo "$as_me: failed program was:" >&5
10320cat conftest.$ac_ext >&5
10321ac_cv_func_alloca_works=no
10322fi
10323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10324fi
10325echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10326echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10327
10328if test $ac_cv_func_alloca_works = yes; then
10329
10330cat >>confdefs.h <<\_ACEOF
10331#define HAVE_ALLOCA 1
10332_ACEOF
10333
10334else
10335 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10336# that cause trouble. Some versions do not even contain alloca or
10337# contain a buggy version. If you still want to use their alloca,
10338# use ar to extract alloca.o from them instead of compiling alloca.c.
10339
10340ALLOCA=alloca.$ac_objext
10341
10342cat >>confdefs.h <<\_ACEOF
10343#define C_ALLOCA 1
10344_ACEOF
10345
10346
10347echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10348echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10349if test "${ac_cv_os_cray+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352 cat >conftest.$ac_ext <<_ACEOF
10353#line $LINENO "configure"
10354#include "confdefs.h"
10355#if defined(CRAY) && ! defined(CRAY2)
10356webecray
10357#else
10358wenotbecray
10359#endif
10360
10361_ACEOF
10362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10363 egrep "webecray" >/dev/null 2>&1; then
10364 ac_cv_os_cray=yes
10365else
10366 ac_cv_os_cray=no
10367fi
10368rm -f conftest*
10369
10370fi
10371echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10372echo "${ECHO_T}$ac_cv_os_cray" >&6
10373if test $ac_cv_os_cray = yes; then
10374 for ac_func in _getb67 GETB67 getb67; do
10375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10376echo "$as_me:$LINENO: checking for $ac_func" >&5
10377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10378if eval "test \"\${$as_ac_var+set}\" = set"; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380else
10381 cat >conftest.$ac_ext <<_ACEOF
10382#line $LINENO "configure"
10383#include "confdefs.h"
10384/* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func (); below. */
10386#include <assert.h>
10387/* Override any gcc2 internal prototype to avoid an error. */
10388#ifdef __cplusplus
10389extern "C"
10390#endif
10391/* We use char because int might match the return type of a gcc2
10392 builtin and then its argument prototype would still apply. */
10393char $ac_func ();
10394char (*f) ();
10395
10396#ifdef F77_DUMMY_MAIN
10397# ifdef __cplusplus
10398 extern "C"
10399# endif
10400 int F77_DUMMY_MAIN() { return 1; }
10401#endif
10402int
10403main ()
10404{
10405/* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10409choke me
10410#else
10411f = $ac_func;
10412#endif
10413
10414 ;
10415 return 0;
10416}
10417_ACEOF
10418rm -f conftest.$ac_objext conftest$ac_exeext
10419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 eval "$as_ac_var=yes"
10431else
10432 echo "$as_me: failed program was:" >&5
10433cat conftest.$ac_ext >&5
10434eval "$as_ac_var=no"
10435fi
10436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10437fi
10438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10440if test `eval echo '${'$as_ac_var'}'` = yes; then
10441
10442cat >>confdefs.h <<_ACEOF
10443#define CRAY_STACKSEG_END $ac_func
10444_ACEOF
10445
10446 break
10447fi
10448
10449 done
10450fi
10451
10452echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10453echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10454if test "${ac_cv_c_stack_direction+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456else
10457 if test "$cross_compiling" = yes; then
10458 ac_cv_c_stack_direction=0
10459else
10460 cat >conftest.$ac_ext <<_ACEOF
10461#line $LINENO "configure"
10462#include "confdefs.h"
10463int
10464find_stack_direction ()
10465{
10466 static char *addr = 0;
10467 auto char dummy;
10468 if (addr == 0)
10469 {
10470 addr = &dummy;
10471 return find_stack_direction ();
10472 }
10473 else
10474 return (&dummy > addr) ? 1 : -1;
10475}
10476
10477int
10478main ()
10479{
10480 exit (find_stack_direction () < 0);
10481}
10482_ACEOF
10483rm -f conftest$ac_exeext
10484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10485 (eval $ac_link) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_c_stack_direction=1
10495else
10496 echo "$as_me: program exited with status $ac_status" >&5
10497echo "$as_me: failed program was:" >&5
10498cat conftest.$ac_ext >&5
10499( exit $ac_status )
10500ac_cv_c_stack_direction=-1
10501fi
10502rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10503fi
10504fi
10505echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10506echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10507
10508cat >>confdefs.h <<_ACEOF
10509#define STACK_DIRECTION $ac_cv_c_stack_direction
10510_ACEOF
10511
10512
10513fi
10514
10515if test $ac_cv_c_compiler_gnu = yes; then
10516 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10517echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10518if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520else
10521 ac_pattern="Autoconf.*'x'"
10522 cat >conftest.$ac_ext <<_ACEOF
10523#line $LINENO "configure"
10524#include "confdefs.h"
10525#include <sgtty.h>
10526Autoconf TIOCGETP
10527_ACEOF
10528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10529 egrep "$ac_pattern" >/dev/null 2>&1; then
10530 ac_cv_prog_gcc_traditional=yes
10531else
10532 ac_cv_prog_gcc_traditional=no
10533fi
10534rm -f conftest*
10535
10536
10537 if test $ac_cv_prog_gcc_traditional = no; then
10538 cat >conftest.$ac_ext <<_ACEOF
10539#line $LINENO "configure"
10540#include "confdefs.h"
10541#include <termio.h>
10542Autoconf TCGETA
10543_ACEOF
10544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10545 egrep "$ac_pattern" >/dev/null 2>&1; then
10546 ac_cv_prog_gcc_traditional=yes
10547fi
10548rm -f conftest*
10549
10550 fi
10551fi
10552echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10553echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10554 if test $ac_cv_prog_gcc_traditional = yes; then
10555 CC="$CC -traditional"
10556 fi
10557fi
10558
10559echo "$as_me:$LINENO: checking for working memcmp" >&5
10560echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10561if test "${ac_cv_func_memcmp_working+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563else
10564 if test "$cross_compiling" = yes; then
10565 ac_cv_func_memcmp_working=no
10566else
10567 cat >conftest.$ac_ext <<_ACEOF
10568#line $LINENO "configure"
10569#include "confdefs.h"
10570
10571#ifdef F77_DUMMY_MAIN
10572# ifdef __cplusplus
10573 extern "C"
10574# endif
10575 int F77_DUMMY_MAIN() { return 1; }
10576#endif
10577int
10578main ()
10579{
10580
10581 /* Some versions of memcmp are not 8-bit clean. */
10582 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10583 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10584 exit (1);
10585
10586 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10587 or more and with at least one buffer not starting on a 4-byte boundary.
10588 William Lewis provided this test program. */
10589 {
10590 char foo[21];
10591 char bar[21];
10592 int i;
10593 for (i = 0; i < 4; i++)
10594 {
10595 char *a = foo + i;
10596 char *b = bar + i;
10597 strcpy (a, "--------01111111");
10598 strcpy (b, "--------10000000");
10599 if (memcmp (a, b, 16) >= 0)
10600 exit (1);
10601 }
10602 exit (0);
10603 }
10604
10605 ;
10606 return 0;
10607}
10608_ACEOF
10609rm -f conftest$ac_exeext
10610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 ac_cv_func_memcmp_working=yes
10621else
10622 echo "$as_me: program exited with status $ac_status" >&5
10623echo "$as_me: failed program was:" >&5
10624cat conftest.$ac_ext >&5
10625( exit $ac_status )
10626ac_cv_func_memcmp_working=no
10627fi
10628rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10629fi
10630fi
10631echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10632echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10633test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10634
10635
10636
10637for ac_header in stdlib.h unistd.h
10638do
10639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10640if eval "test \"\${$as_ac_Header+set}\" = set"; then
10641 echo "$as_me:$LINENO: checking for $ac_header" >&5
10642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10643if eval "test \"\${$as_ac_Header+set}\" = set"; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645fi
10646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10648else
10649 # Is the header compilable?
10650echo "$as_me:$LINENO: checking $ac_header usability" >&5
10651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10652cat >conftest.$ac_ext <<_ACEOF
10653#line $LINENO "configure"
10654#include "confdefs.h"
10655$ac_includes_default
10656#include <$ac_header>
10657_ACEOF
10658rm -f conftest.$ac_objext
10659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest.$ac_objext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_header_compiler=yes
10671else
10672 echo "$as_me: failed program was:" >&5
10673cat conftest.$ac_ext >&5
10674ac_header_compiler=no
10675fi
10676rm -f conftest.$ac_objext conftest.$ac_ext
10677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10678echo "${ECHO_T}$ac_header_compiler" >&6
10679
10680# Is the header present?
10681echo "$as_me:$LINENO: checking $ac_header presence" >&5
10682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10683cat >conftest.$ac_ext <<_ACEOF
10684#line $LINENO "configure"
10685#include "confdefs.h"
10686#include <$ac_header>
10687_ACEOF
10688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10690 ac_status=$?
10691 egrep -v '^ *\+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } >/dev/null; then
10696 if test -s conftest.err; then
10697 ac_cpp_err=$ac_c_preproc_warn_flag
10698 else
10699 ac_cpp_err=
10700 fi
10701else
10702 ac_cpp_err=yes
10703fi
10704if test -z "$ac_cpp_err"; then
10705 ac_header_preproc=yes
10706else
10707 echo "$as_me: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 ac_header_preproc=no
10710fi
10711rm -f conftest.err conftest.$ac_ext
10712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10713echo "${ECHO_T}$ac_header_preproc" >&6
10714
10715# So? What about this header?
10716case $ac_header_compiler:$ac_header_preproc in
10717 yes:no )
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10722 no:yes )
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10726echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10729esac
10730echo "$as_me:$LINENO: checking for $ac_header" >&5
10731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10732if eval "test \"\${$as_ac_Header+set}\" = set"; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734else
10735 eval "$as_ac_Header=$ac_header_preproc"
10736fi
10737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10739
10740fi
10741if test `eval echo '${'$as_ac_Header'}'` = yes; then
10742 cat >>confdefs.h <<_ACEOF
10743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10744_ACEOF
10745
10746fi
10747
10748done
10749
10750
10751for ac_func in getpagesize
10752do
10753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10754echo "$as_me:$LINENO: checking for $ac_func" >&5
10755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10756if eval "test \"\${$as_ac_var+set}\" = set"; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10758else
10759 cat >conftest.$ac_ext <<_ACEOF
10760#line $LINENO "configure"
10761#include "confdefs.h"
10762/* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char $ac_func (); below. */
10764#include <assert.h>
10765/* Override any gcc2 internal prototype to avoid an error. */
10766#ifdef __cplusplus
10767extern "C"
10768#endif
10769/* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10771char $ac_func ();
10772char (*f) ();
10773
10774#ifdef F77_DUMMY_MAIN
10775# ifdef __cplusplus
10776 extern "C"
10777# endif
10778 int F77_DUMMY_MAIN() { return 1; }
10779#endif
10780int
10781main ()
10782{
10783/* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10787choke me
10788#else
10789f = $ac_func;
10790#endif
10791
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext conftest$ac_exeext
10797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798 (eval $ac_link) 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -s conftest$ac_exeext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 eval "$as_ac_var=yes"
10809else
10810 echo "$as_me: failed program was:" >&5
10811cat conftest.$ac_ext >&5
10812eval "$as_ac_var=no"
10813fi
10814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10815fi
10816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10817echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10818if test `eval echo '${'$as_ac_var'}'` = yes; then
10819 cat >>confdefs.h <<_ACEOF
10820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10821_ACEOF
10822
10823fi
10824done
10825
10826echo "$as_me:$LINENO: checking for working mmap" >&5
10827echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10828if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 if test "$cross_compiling" = yes; then
10832 ac_cv_func_mmap_fixed_mapped=no
10833else
10834 cat >conftest.$ac_ext <<_ACEOF
10835#line $LINENO "configure"
10836#include "confdefs.h"
10837$ac_includes_default
10838/* malloc might have been renamed as rpl_malloc. */
10839#undef malloc
10840
10841/* Thanks to Mike Haertel and Jim Avera for this test.
10842 Here is a matrix of mmap possibilities:
10843 mmap private not fixed
10844 mmap private fixed at somewhere currently unmapped
10845 mmap private fixed at somewhere already mapped
10846 mmap shared not fixed
10847 mmap shared fixed at somewhere currently unmapped
10848 mmap shared fixed at somewhere already mapped
10849 For private mappings, we should verify that changes cannot be read()
10850 back from the file, nor mmap's back from the file at a different
10851 address. (There have been systems where private was not correctly
10852 implemented like the infamous i386 svr4.0, and systems where the
10853 VM page cache was not coherent with the file system buffer cache
10854 like early versions of FreeBSD and possibly contemporary NetBSD.)
10855 For shared mappings, we should conversely verify that changes get
10856 propagated back to all the places they're supposed to be.
10857
10858 Grep wants private fixed already mapped.
10859 The main things grep needs to know about mmap are:
10860 * does it exist and is it safe to write into the mmap'd area
10861 * how to use it (BSD variants) */
10862
10863#include <fcntl.h>
10864#include <sys/mman.h>
10865
10866#if !STDC_HEADERS && !HAVE_STDLIB_H
10867char *malloc ();
10868#endif
10869
10870/* This mess was copied from the GNU getpagesize.h. */
10871#if !HAVE_GETPAGESIZE
10872/* Assume that all systems that can run configure have sys/param.h. */
10873# if !HAVE_SYS_PARAM_H
10874# define HAVE_SYS_PARAM_H 1
10875# endif
10876
10877# ifdef _SC_PAGESIZE
10878# define getpagesize() sysconf(_SC_PAGESIZE)
10879# else /* no _SC_PAGESIZE */
10880# if HAVE_SYS_PARAM_H
10881# include <sys/param.h>
10882# ifdef EXEC_PAGESIZE
10883# define getpagesize() EXEC_PAGESIZE
10884# else /* no EXEC_PAGESIZE */
10885# ifdef NBPG
10886# define getpagesize() NBPG * CLSIZE
10887# ifndef CLSIZE
10888# define CLSIZE 1
10889# endif /* no CLSIZE */
10890# else /* no NBPG */
10891# ifdef NBPC
10892# define getpagesize() NBPC
10893# else /* no NBPC */
10894# ifdef PAGESIZE
10895# define getpagesize() PAGESIZE
10896# endif /* PAGESIZE */
10897# endif /* no NBPC */
10898# endif /* no NBPG */
10899# endif /* no EXEC_PAGESIZE */
10900# else /* no HAVE_SYS_PARAM_H */
10901# define getpagesize() 8192 /* punt totally */
10902# endif /* no HAVE_SYS_PARAM_H */
10903# endif /* no _SC_PAGESIZE */
10904
10905#endif /* no HAVE_GETPAGESIZE */
10906
10907int
10908main ()
10909{
10910 char *data, *data2, *data3;
10911 int i, pagesize;
10912 int fd;
10913
10914 pagesize = getpagesize ();
10915
10916 /* First, make a file with some known garbage in it. */
10917 data = (char *) malloc (pagesize);
10918 if (!data)
10919 exit (1);
10920 for (i = 0; i < pagesize; ++i)
10921 *(data + i) = rand ();
10922 umask (0);
10923 fd = creat ("conftest.mmap", 0600);
10924 if (fd < 0)
10925 exit (1);
10926 if (write (fd, data, pagesize) != pagesize)
10927 exit (1);
10928 close (fd);
10929
10930 /* Next, try to mmap the file at a fixed address which already has
10931 something else allocated at it. If we can, also make sure that
10932 we see the same garbage. */
10933 fd = open ("conftest.mmap", O_RDWR);
10934 if (fd < 0)
10935 exit (1);
10936 data2 = (char *) malloc (2 * pagesize);
10937 if (!data2)
10938 exit (1);
10939 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10940 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10941 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10942 exit (1);
10943 for (i = 0; i < pagesize; ++i)
10944 if (*(data + i) != *(data2 + i))
10945 exit (1);
10946
10947 /* Finally, make sure that changes to the mapped area do not
10948 percolate back to the file as seen by read(). (This is a bug on
10949 some variants of i386 svr4.0.) */
10950 for (i = 0; i < pagesize; ++i)
10951 *(data2 + i) = *(data2 + i) + 1;
10952 data3 = (char *) malloc (pagesize);
10953 if (!data3)
10954 exit (1);
10955 if (read (fd, data3, pagesize) != pagesize)
10956 exit (1);
10957 for (i = 0; i < pagesize; ++i)
10958 if (*(data + i) != *(data3 + i))
10959 exit (1);
10960 close (fd);
10961 exit (0);
10962}
10963_ACEOF
10964rm -f conftest$ac_exeext
10965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_cv_func_mmap_fixed_mapped=yes
10976else
10977 echo "$as_me: program exited with status $ac_status" >&5
10978echo "$as_me: failed program was:" >&5
10979cat conftest.$ac_ext >&5
10980( exit $ac_status )
10981ac_cv_func_mmap_fixed_mapped=no
10982fi
10983rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10984fi
10985fi
10986echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10987echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10988if test $ac_cv_func_mmap_fixed_mapped = yes; then
10989
10990cat >>confdefs.h <<\_ACEOF
10991#define HAVE_MMAP 1
10992_ACEOF
10993
10994fi
10995rm -f conftest.mmap
10996
10997echo "$as_me:$LINENO: checking for mmap of files" >&5
10998echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
10999if test "${ac_cv_func_mmap_file+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001else
11002
11003
11004 ac_ext=c
11005ac_cpp='$CPP $CPPFLAGS'
11006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008ac_compiler_gnu=$ac_cv_c_compiler_gnu
11009
11010 if test "$cross_compiling" = yes; then
11011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11012echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11013 { (exit 1); exit 1; }; }
11014else
11015 cat >conftest.$ac_ext <<_ACEOF
11016#line $LINENO "configure"
11017#include "confdefs.h"
11018
11019#ifdef HAVE_SYS_MMAN_H
11020#include <sys/mman.h>
11021#endif
11022
11023#ifdef HAVE_SYS_TYPES_H
11024#include <sys/types.h>
11025#endif
11026
11027#ifdef HAVE_FCNTL_H
11028#include <fcntl.h>
11029#endif
11030
11031 int fd;
11032 int main () {
11033 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
11034_ACEOF
11035rm -f conftest$ac_exeext
11036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_cv_func_mmap_file=yes
11047else
11048 echo "$as_me: program exited with status $ac_status" >&5
11049echo "$as_me: failed program was:" >&5
11050cat conftest.$ac_ext >&5
11051( exit $ac_status )
11052ac_cv_func_mmap_file=no
11053fi
11054rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11055fi
11056 ac_ext=c
11057ac_cpp='$CPP $CPPFLAGS'
11058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11060ac_compiler_gnu=$ac_cv_c_compiler_gnu
11061
11062
11063fi
11064echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
11065echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
11066if test "$ac_cv_func_mmap_file" = yes; then
11067 cat >>confdefs.h <<\_ACEOF
11068#define HAVE_MMAP_FILE 1
11069_ACEOF
11070
11071 MMAP_FILE=yes
11072
11073fi
11074
11075if test ${ac_cv_func_mmap_file} = "no"
11076then
11077 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
11078echo "$as_me: error: mmap() of files required but not found" >&2;}
11079 { (exit 1); exit 1; }; }
11080fi
11081echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11082echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
11083if test "${ac_cv_header_mmap_anon+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086
11087
11088 ac_ext=c
11089ac_cpp='$CPP $CPPFLAGS'
11090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092ac_compiler_gnu=$ac_cv_c_compiler_gnu
11093
11094 cat >conftest.$ac_ext <<_ACEOF
11095#line $LINENO "configure"
11096#include "confdefs.h"
11097#include <sys/mman.h>
11098 #include <unistd.h>
11099 #include <fcntl.h>
11100#ifdef F77_DUMMY_MAIN
11101# ifdef __cplusplus
11102 extern "C"
11103# endif
11104 int F77_DUMMY_MAIN() { return 1; }
11105#endif
11106int
11107main ()
11108{
11109mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11110 ;
11111 return 0;
11112}
11113_ACEOF
11114rm -f conftest.$ac_objext
11115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116 (eval $ac_compile) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -s conftest.$ac_objext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 ac_cv_header_mmap_anon=yes
11127else
11128 echo "$as_me: failed program was:" >&5
11129cat conftest.$ac_ext >&5
11130ac_cv_header_mmap_anon=no
11131fi
11132rm -f conftest.$ac_objext conftest.$ac_ext
11133 ac_ext=c
11134ac_cpp='$CPP $CPPFLAGS'
11135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137ac_compiler_gnu=$ac_cv_c_compiler_gnu
11138
11139
11140fi
11141echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11142echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
11143if test "$ac_cv_header_mmap_anon" = yes; then
11144 cat >>confdefs.h <<\_ACEOF
11145#define HAVE_MMAP_ANONYMOUS 1
11146_ACEOF
11147
11148fi
11149
11150echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11151echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11152if test "${ac_cv_type_signal+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155 cat >conftest.$ac_ext <<_ACEOF
11156#line $LINENO "configure"
11157#include "confdefs.h"
11158#include <sys/types.h>
11159#include <signal.h>
11160#ifdef signal
11161# undef signal
11162#endif
11163#ifdef __cplusplus
11164extern "C" void (*signal (int, void (*)(int)))(int);
11165#else
11166void (*signal ()) ();
11167#endif
11168
11169#ifdef F77_DUMMY_MAIN
11170# ifdef __cplusplus
11171 extern "C"
11172# endif
11173 int F77_DUMMY_MAIN() { return 1; }
11174#endif
11175int
11176main ()
11177{
11178int i;
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext
11184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_type_signal=void
11196else
11197 echo "$as_me: failed program was:" >&5
11198cat conftest.$ac_ext >&5
11199ac_cv_type_signal=int
11200fi
11201rm -f conftest.$ac_objext conftest.$ac_ext
11202fi
11203echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11204echo "${ECHO_T}$ac_cv_type_signal" >&6
11205
11206cat >>confdefs.h <<_ACEOF
11207#define RETSIGTYPE $ac_cv_type_signal
11208_ACEOF
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
11221do
11222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11223echo "$as_me:$LINENO: checking for $ac_func" >&5
11224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11225if eval "test \"\${$as_ac_var+set}\" = set"; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11227else
11228 cat >conftest.$ac_ext <<_ACEOF
11229#line $LINENO "configure"
11230#include "confdefs.h"
11231/* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below. */
11233#include <assert.h>
11234/* Override any gcc2 internal prototype to avoid an error. */
11235#ifdef __cplusplus
11236extern "C"
11237#endif
11238/* We use char because int might match the return type of a gcc2
11239 builtin and then its argument prototype would still apply. */
11240char $ac_func ();
11241char (*f) ();
11242
11243#ifdef F77_DUMMY_MAIN
11244# ifdef __cplusplus
11245 extern "C"
11246# endif
11247 int F77_DUMMY_MAIN() { return 1; }
11248#endif
11249int
11250main ()
11251{
11252/* The GNU C library defines this for functions which it implements
11253 to always fail with ENOSYS. Some functions are actually named
11254 something starting with __ and the normal name is an alias. */
11255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11256choke me
11257#else
11258f = $ac_func;
11259#endif
11260
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265rm -f conftest.$ac_objext conftest$ac_exeext
11266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267 (eval $ac_link) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -s conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 eval "$as_ac_var=yes"
11278else
11279 echo "$as_me: failed program was:" >&5
11280cat conftest.$ac_ext >&5
11281eval "$as_ac_var=no"
11282fi
11283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11284fi
11285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11287if test `eval echo '${'$as_ac_var'}'` = yes; then
11288 cat >>confdefs.h <<_ACEOF
11289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290_ACEOF
11291
11292fi
11293done
11294
11295
11296
11297echo "$as_me:$LINENO: checking for mmap" >&5
11298echo $ECHO_N "checking for mmap... $ECHO_C" >&6
11299if test "${ac_cv_func_mmap+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302 cat >conftest.$ac_ext <<_ACEOF
11303#line $LINENO "configure"
11304#include "confdefs.h"
11305/* System header to define __stub macros and hopefully few prototypes,
11306 which can conflict with char mmap (); below. */
11307#include <assert.h>
11308/* Override any gcc2 internal prototype to avoid an error. */
11309#ifdef __cplusplus
11310extern "C"
11311#endif
11312/* We use char because int might match the return type of a gcc2
11313 builtin and then its argument prototype would still apply. */
11314char mmap ();
11315char (*f) ();
11316
11317#ifdef F77_DUMMY_MAIN
11318# ifdef __cplusplus
11319 extern "C"
11320# endif
11321 int F77_DUMMY_MAIN() { return 1; }
11322#endif
11323int
11324main ()
11325{
11326/* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329#if defined (__stub_mmap) || defined (__stub___mmap)
11330choke me
11331#else
11332f = mmap;
11333#endif
11334
11335 ;
11336 return 0;
11337}
11338_ACEOF
11339rm -f conftest.$ac_objext conftest$ac_exeext
11340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341 (eval $ac_link) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -s conftest$ac_exeext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_func_mmap=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354cat conftest.$ac_ext >&5
11355ac_cv_func_mmap=no
11356fi
11357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11358fi
11359echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11360echo "${ECHO_T}$ac_cv_func_mmap" >&6
11361if test $ac_cv_func_mmap = yes; then
11362 :
11363else
11364 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
11365echo "$as_me: error: Function mmap() required but not found" >&2;}
11366 { (exit 1); exit 1; }; }
11367fi
11368
11369echo "$as_me:$LINENO: checking for mprotect" >&5
11370echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
11371if test "${ac_cv_func_mprotect+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373else
11374 cat >conftest.$ac_ext <<_ACEOF
11375#line $LINENO "configure"
11376#include "confdefs.h"
11377/* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char mprotect (); below. */
11379#include <assert.h>
11380/* Override any gcc2 internal prototype to avoid an error. */
11381#ifdef __cplusplus
11382extern "C"
11383#endif
11384/* We use char because int might match the return type of a gcc2
11385 builtin and then its argument prototype would still apply. */
11386char mprotect ();
11387char (*f) ();
11388
11389#ifdef F77_DUMMY_MAIN
11390# ifdef __cplusplus
11391 extern "C"
11392# endif
11393 int F77_DUMMY_MAIN() { return 1; }
11394#endif
11395int
11396main ()
11397{
11398/* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401#if defined (__stub_mprotect) || defined (__stub___mprotect)
11402choke me
11403#else
11404f = mprotect;
11405#endif
11406
11407 ;
11408 return 0;
11409}
11410_ACEOF
11411rm -f conftest.$ac_objext conftest$ac_exeext
11412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11413 (eval $ac_link) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_func_mprotect=yes
11424else
11425 echo "$as_me: failed program was:" >&5
11426cat conftest.$ac_ext >&5
11427ac_cv_func_mprotect=no
11428fi
11429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11430fi
11431echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
11432echo "${ECHO_T}$ac_cv_func_mprotect" >&6
11433if test $ac_cv_func_mprotect = yes; then
11434 :
11435else
11436 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
11437echo "$as_me: error: Function mprotect() required but not found" >&2;}
11438 { (exit 1); exit 1; }; }
11439fi
11440
11441
11442# Check whether --enable-purify or --disable-purify was given.
11443if test "${enable_purify+set}" = set; then
11444 enableval="$enable_purify"
11445 ENABLE_PURIFY=ENABLE_PURIFY=1
11446
11447else
11448 ENABLE_PURIFY=
11449
11450fi;
11451# Check whether --enable-verbose or --disable-verbose was given.
11452if test "${enable_verbose+set}" = set; then
11453 enableval="$enable_verbose"
11454 ENABLE_VERBOSE=VERBOSE=1
11455
11456else
11457 ENABLE_VERBOSE=
11458
11459fi;
11460# Check whether --enable-profiling or --disable-profiling was given.
11461if test "${enable_profiling+set}" = set; then
11462 enableval="$enable_profiling"
11463 ENABLE_PROFILING=ENABLE_PROFILING=1
11464
11465else
11466 ENABLE_PROFILING=
11467
11468fi;
11469# Check whether --enable-optimized or --disable-optimized was given.
11470if test "${enable_optimized+set}" = set; then
11471 enableval="$enable_optimized"
11472 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
11473
11474else
11475 ENABLE_OPTIMIZED=
11476
11477fi;
11478# Check whether --enable-spec or --disable-spec was given.
11479if test "${enable_spec+set}" = set; then
11480 enableval="$enable_spec"
11481 USE_SPEC=USE_SPEC=1
11482
11483else
11484 USE_SPEC=
11485
11486fi;
11487# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
11488if test "${enable_precompiled_bytecode+set}" = set; then
11489 enableval="$enable_precompiled_bytecode"
11490 UPB=USE_PRECOMPILED_BYTECODE=1
11491
11492else
11493 UPB=
11494
11495fi;
11496case $build in
11497 *i*86*) # Check whether --enable-jit or --disable-jit was given.
11498if test "${enable_jit+set}" = set; then
11499 enableval="$enable_jit"
11500 JIT=TARGET_HAS_JIT=1
11501
11502else
11503 JIT=
11504
11505fi;
11506 ;;
11507 *)
11508 ;;
11509esac
11510
11511
11512# Check whether --with-spec or --without-spec was given.
11513if test "${with_spec+set}" = set; then
11514 withval="$with_spec"
11515 SPEC_ROOT=$withval
11516
11517else
11518 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
11519
11520fi;
11521
11522# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
11523if test "${with_llvmgccdir+set}" = set; then
11524 withval="$with_llvmgccdir"
11525 LLVMGCCDIR=$withval
11526
11527fi;
11528
11529# Check whether --with-bcrepos or --without-bcrepos was given.
11530if test "${with_bcrepos+set}" = set; then
11531 withval="$with_bcrepos"
11532 BCR=$withval
11533
11534else
11535 BCR=/home/vadve/lattner/LLVMPrograms
11536
11537fi;
11538
11539# Check whether --with-papi or --without-papi was given.
11540if test "${with_papi+set}" = set; then
11541 withval="$with_papi"
11542 PAPIDIR=$withval
11543
11544else
11545 PAPIDIR=/home/vadve/shared/papi-2.3.4.1
11546
11547fi;
11548
11549# Check whether --with-objroot or --without-objroot was given.
11550if test "${with_objroot+set}" = set; then
11551 withval="$with_objroot"
11552 OBJROOT=$withval
11553
11554else
11555 OBJROOT=.
11556
11557fi;
11558
11559# Check whether --with-purify or --without-purify was given.
11560if test "${with_purify+set}" = set; then
11561 withval="$with_purify"
11562 PURIFY=$withval
11563
11564fi;
11565
11566ac_config_files="$ac_config_files Makefile.config"
11567cat >confcache <<\_ACEOF
11568# This file is a shell script that caches the results of configure
11569# tests run on this system so they can be shared between configure
11570# scripts and configure runs, see configure's option --config-cache.
11571# It is not useful on other systems. If it contains results you don't
11572# want to keep, you may remove or edit it.
11573#
11574# config.status only pays attention to the cache file if you give it
11575# the --recheck option to rerun configure.
11576#
11577# `ac_cv_env_foo' variables (set or unset) will be overriden when
11578# loading this file, other *unset* `ac_cv_foo' will be assigned the
11579# following values.
11580
11581_ACEOF
11582
11583# The following way of writing the cache mishandles newlines in values,
11584# but we know of no workaround that is simple, portable, and efficient.
11585# So, don't put newlines in cache variables' values.
11586# Ultrix sh set writes to stderr and can't be redirected directly,
11587# and sets the high bit in the cache file unless we assign to the vars.
11588{
11589 (set) 2>&1 |
11590 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11591 *ac_space=\ *)
11592 # `set' does not quote correctly, so add quotes (double-quote
11593 # substitution turns \\\\ into \\, and sed turns \\ into \).
11594 sed -n \
11595 "s/'/'\\\\''/g;
11596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11597 ;;
11598 *)
11599 # `set' quotes correctly as required by POSIX, so do not add quotes.
11600 sed -n \
11601 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11602 ;;
11603 esac;
11604} |
11605 sed '
11606 t clear
11607 : clear
11608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11609 t end
11610 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11611 : end' >>confcache
11612if cmp -s $cache_file confcache; then :; else
11613 if test -w $cache_file; then
11614 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11615 cat confcache >$cache_file
11616 else
11617 echo "not updating unwritable cache $cache_file"
11618 fi
11619fi
11620rm -f confcache
11621
11622test "x$prefix" = xNONE && prefix=$ac_default_prefix
11623# Let make expand exec_prefix.
11624test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11625
11626# VPATH may cause trouble with some makes, so we remove $(srcdir),
11627# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11628# trailing colons and then remove the whole line if VPATH becomes empty
11629# (actually we leave an empty line to preserve line numbers).
11630if test "x$srcdir" = x.; then
11631 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11632s/:*\$(srcdir):*/:/;
11633s/:*\${srcdir}:*/:/;
11634s/:*@srcdir@:*/:/;
11635s/^\([^=]*=[ ]*\):*/\1/;
11636s/:*$//;
11637s/^[^=]*=[ ]*$//;
11638}'
11639fi
11640
11641DEFS=-DHAVE_CONFIG_H
11642
11643
11644: ${CONFIG_STATUS=./config.status}
11645ac_clean_files_save=$ac_clean_files
11646ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11647{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11648echo "$as_me: creating $CONFIG_STATUS" >&6;}
11649cat >$CONFIG_STATUS <<_ACEOF
11650#! $SHELL
11651# Generated by $as_me.
11652# Run this file to recreate the current configuration.
11653# Compiler output produced by configure, useful for debugging
11654# configure, is in config.log if it exists.
11655
11656debug=false
11657SHELL=\${CONFIG_SHELL-$SHELL}
11658_ACEOF
11659
11660cat >>$CONFIG_STATUS <<\_ACEOF
11661
11662## --------------------- ##
11663## M4sh Initialization. ##
11664## --------------------- ##
11665
11666# Be Bourne compatible
11667if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11668 emulate sh
11669 NULLCMD=:
11670elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11671 set -o posix
11672fi
11673
11674# NLS nuisances.
11675# Support unset when possible.
11676if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11677 as_unset=unset
11678else
11679 as_unset=false
11680fi
11681
11682(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11683 { $as_unset LANG || test "${LANG+set}" != set; } ||
11684 { LANG=C; export LANG; }
11685(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11686 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11687 { LC_ALL=C; export LC_ALL; }
11688(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11689 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11690 { LC_TIME=C; export LC_TIME; }
11691(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11692 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11693 { LC_CTYPE=C; export LC_CTYPE; }
11694(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11695 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11696 { LANGUAGE=C; export LANGUAGE; }
11697(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11698 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11699 { LC_COLLATE=C; export LC_COLLATE; }
11700(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11701 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11702 { LC_NUMERIC=C; export LC_NUMERIC; }
11703(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11704 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11705 { LC_MESSAGES=C; export LC_MESSAGES; }
11706
11707
11708# Name of the executable.
11709as_me=`(basename "$0") 2>/dev/null ||
11710$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11711 X"$0" : 'X\(//\)$' \| \
11712 X"$0" : 'X\(/\)$' \| \
11713 . : '\(.\)' 2>/dev/null ||
11714echo X/"$0" |
11715 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11716 /^X\/\(\/\/\)$/{ s//\1/; q; }
11717 /^X\/\(\/\).*/{ s//\1/; q; }
11718 s/.*/./; q'`
11719
11720# PATH needs CR, and LINENO needs CR and PATH.
11721# Avoid depending upon Character Ranges.
11722as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11723as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11724as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11725as_cr_digits='0123456789'
11726as_cr_alnum=$as_cr_Letters$as_cr_digits
11727
11728# The user is always right.
11729if test "${PATH_SEPARATOR+set}" != set; then
11730 echo "#! /bin/sh" >conftest.sh
11731 echo "exit 0" >>conftest.sh
11732 chmod +x conftest.sh
11733 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11734 PATH_SEPARATOR=';'
11735 else
11736 PATH_SEPARATOR=:
11737 fi
11738 rm -f conftest.sh
11739fi
11740
11741
11742 as_lineno_1=$LINENO
11743 as_lineno_2=$LINENO
11744 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11745 test "x$as_lineno_1" != "x$as_lineno_2" &&
11746 test "x$as_lineno_3" = "x$as_lineno_2" || {
11747 # Find who we are. Look in the path if we contain no path at all
11748 # relative or not.
11749 case $0 in
11750 *[\\/]* ) as_myself=$0 ;;
11751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11757done
11758
11759 ;;
11760 esac
11761 # We did not find ourselves, most probably we were run as `sh COMMAND'
11762 # in which case we are not to be found in the path.
11763 if test "x$as_myself" = x; then
11764 as_myself=$0
11765 fi
11766 if test ! -f "$as_myself"; then
11767 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11768echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11769 { (exit 1); exit 1; }; }
11770 fi
11771 case $CONFIG_SHELL in
11772 '')
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for as_base in sh bash ksh sh5; do
11779 case $as_dir in
11780 /*)
11781 if ("$as_dir/$as_base" -c '
11782 as_lineno_1=$LINENO
11783 as_lineno_2=$LINENO
11784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11785 test "x$as_lineno_1" != "x$as_lineno_2" &&
11786 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11787 CONFIG_SHELL=$as_dir/$as_base
11788 export CONFIG_SHELL
11789 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11790 fi;;
11791 esac
11792 done
11793done
11794;;
11795 esac
11796
11797 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11798 # uniformly replaced by the line number. The first 'sed' inserts a
11799 # line-number line before each line; the second 'sed' does the real
11800 # work. The second script uses 'N' to pair each line-number line
11801 # with the numbered line, and appends trailing '-' during
11802 # substitution so that $LINENO is not a special case at line end.
11803 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11804 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11805 sed '=' <$as_myself |
11806 sed '
11807 N
11808 s,$,-,
11809 : loop
11810 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11811 t loop
11812 s,-$,,
11813 s,^['$as_cr_digits']*\n,,
11814 ' >$as_me.lineno &&
11815 chmod +x $as_me.lineno ||
11816 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11817echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11818 { (exit 1); exit 1; }; }
11819
11820 # Don't try to exec as it changes $[0], causing all sort of problems
11821 # (the dirname of $[0] is not the place where we might find the
11822 # original and so on. Autoconf is especially sensible to this).
11823 . ./$as_me.lineno
11824 # Exit status is that of the last command.
11825 exit
11826}
11827
11828
11829case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11830 *c*,-n*) ECHO_N= ECHO_C='
11831' ECHO_T=' ' ;;
11832 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11833 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11834esac
11835
11836if expr a : '\(a\)' >/dev/null 2>&1; then
11837 as_expr=expr
11838else
11839 as_expr=false
11840fi
11841
11842rm -f conf$$ conf$$.exe conf$$.file
11843echo >conf$$.file
11844if ln -s conf$$.file conf$$ 2>/dev/null; then
11845 # We could just check for DJGPP; but this test a) works b) is more generic
11846 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11847 if test -f conf$$.exe; then
11848 # Don't use ln at all; we don't have any links
11849 as_ln_s='cp -p'
11850 else
11851 as_ln_s='ln -s'
11852 fi
11853elif ln conf$$.file conf$$ 2>/dev/null; then
11854 as_ln_s=ln
11855else
11856 as_ln_s='cp -p'
11857fi
11858rm -f conf$$ conf$$.exe conf$$.file
11859
11860as_executable_p="test -f"
11861
11862# Sed expression to map a string onto a valid CPP name.
11863as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11864
11865# Sed expression to map a string onto a valid variable name.
11866as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11867
11868
11869# IFS
11870# We need space, tab and new line, in precisely that order.
11871as_nl='
11872'
11873IFS=" $as_nl"
11874
11875# CDPATH.
11876$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11877
11878exec 6>&1
11879
11880# Open the log real soon, to keep \$[0] and so on meaningful, and to
11881# report actual input values of CONFIG_FILES etc. instead of their
11882# values after options handling. Logging --version etc. is OK.
11883exec 5>>config.log
11884{
11885 echo
11886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11887## Running $as_me. ##
11888_ASBOX
11889} >&5
11890cat >&5 <<_CSEOF
11891
11892This file was extended by [LLVM] $as_me [1.0], which was
11893generated by GNU Autoconf 2.53. Invocation command line was
11894
11895 CONFIG_FILES = $CONFIG_FILES
11896 CONFIG_HEADERS = $CONFIG_HEADERS
11897 CONFIG_LINKS = $CONFIG_LINKS
11898 CONFIG_COMMANDS = $CONFIG_COMMANDS
11899 $ $0 $@
11900
11901_CSEOF
11902echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11903echo >&5
11904_ACEOF
11905
11906# Files that config.status was made for.
11907if test -n "$ac_config_files"; then
11908 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11909fi
11910
11911if test -n "$ac_config_headers"; then
11912 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11913fi
11914
11915if test -n "$ac_config_links"; then
11916 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11917fi
11918
11919if test -n "$ac_config_commands"; then
11920 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11921fi
11922
11923cat >>$CONFIG_STATUS <<\_ACEOF
11924
11925ac_cs_usage="\
11926\`$as_me' instantiates files from templates according to the
11927current configuration.
11928
11929Usage: $0 [OPTIONS] [FILE]...
11930
11931 -h, --help print this help, then exit
11932 -V, --version print version number, then exit
11933 -d, --debug don't remove temporary files
11934 --recheck update $as_me by reconfiguring in the same conditions
11935 --file=FILE[:TEMPLATE]
11936 instantiate the configuration file FILE
11937 --header=FILE[:TEMPLATE]
11938 instantiate the configuration header FILE
11939
11940Configuration files:
11941$config_files
11942
11943Configuration headers:
11944$config_headers
11945
11946Report bugs to <bug-autoconf@gnu.org>."
11947_ACEOF
11948
11949cat >>$CONFIG_STATUS <<_ACEOF
11950ac_cs_version="\\
11951[LLVM] config.status [1.0]
11952configured by $0, generated by GNU Autoconf 2.53,
11953 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11954
11955Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11956Free Software Foundation, Inc.
11957This config.status script is free software; the Free Software Foundation
11958gives unlimited permission to copy, distribute and modify it."
11959srcdir=$srcdir
11960INSTALL="$INSTALL"
11961_ACEOF
11962
11963cat >>$CONFIG_STATUS <<\_ACEOF
11964# If no file are specified by the user, then we need to provide default
11965# value. By we need to know if files were specified by the user.
11966ac_need_defaults=:
11967while test $# != 0
11968do
11969 case $1 in
11970 --*=*)
11971 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11972 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11973 shift
11974 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11975 shift
11976 ;;
11977 -*);;
11978 *) # This is not an option, so the user has probably given explicit
11979 # arguments.
11980 ac_need_defaults=false;;
11981 esac
11982
11983 case $1 in
11984 # Handling of the options.
11985_ACEOF
11986cat >>$CONFIG_STATUS <<_ACEOF
11987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11988 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11989 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11990_ACEOF
11991cat >>$CONFIG_STATUS <<\_ACEOF
11992 --version | --vers* | -V )
11993 echo "$ac_cs_version"; exit 0 ;;
11994 --he | --h)
11995 # Conflict between --help and --header
11996 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11997Try \`$0 --help' for more information." >&5
11998echo "$as_me: error: ambiguous option: $1
11999Try \`$0 --help' for more information." >&2;}
12000 { (exit 1); exit 1; }; };;
12001 --help | --hel | -h )
12002 echo "$ac_cs_usage"; exit 0 ;;
12003 --debug | --d* | -d )
12004 debug=: ;;
12005 --file | --fil | --fi | --f )
12006 shift
12007 CONFIG_FILES="$CONFIG_FILES $1"
12008 ac_need_defaults=false;;
12009 --header | --heade | --head | --hea )
12010 shift
12011 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12012 ac_need_defaults=false;;
12013
12014 # This is an error.
12015 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12016Try \`$0 --help' for more information." >&5
12017echo "$as_me: error: unrecognized option: $1
12018Try \`$0 --help' for more information." >&2;}
12019 { (exit 1); exit 1; }; } ;;
12020
12021 *) ac_config_targets="$ac_config_targets $1" ;;
12022
12023 esac
12024 shift
12025done
12026
12027_ACEOF
12028
12029
12030
12031
12032
12033cat >>$CONFIG_STATUS <<\_ACEOF
12034for ac_config_target in $ac_config_targets
12035do
12036 case "$ac_config_target" in
12037 # Handling of arguments.
12038 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
12039 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
12040 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12041echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12042 { (exit 1); exit 1; }; };;
12043 esac
12044done
12045
12046# If the user did not use the arguments to specify the items to instantiate,
12047# then the envvar interface is used. Set only those that are not.
12048# We use the long form for the default assignment because of an extremely
12049# bizarre bug on SunOS 4.1.3.
12050if $ac_need_defaults; then
12051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12053fi
12054
12055# Create a temporary directory, and hook for its removal unless debugging.
12056$debug ||
12057{
12058 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12059 trap '{ (exit 1); exit 1; }' 1 2 13 15
12060}
12061
12062# Create a (secure) tmp directory for tmp files.
12063: ${TMPDIR=/tmp}
12064{
12065 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12066 test -n "$tmp" && test -d "$tmp"
12067} ||
12068{
12069 tmp=$TMPDIR/cs$$-$RANDOM
12070 (umask 077 && mkdir $tmp)
12071} ||
12072{
12073 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12074 { (exit 1); exit 1; }
12075}
12076
12077_ACEOF
12078
12079cat >>$CONFIG_STATUS <<_ACEOF
12080
12081#
12082# CONFIG_FILES section.
12083#
12084
12085# No need to generate the scripts if there are no CONFIG_FILES.
12086# This happens for instance when ./config.status config.h
12087if test -n "\$CONFIG_FILES"; then
12088 # Protect against being on the right side of a sed subst in config.status.
12089 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12090 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12091s,@SHELL@,$SHELL,;t t
12092s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12093s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12094s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12095s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12096s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12097s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12098s,@exec_prefix@,$exec_prefix,;t t
12099s,@prefix@,$prefix,;t t
12100s,@program_transform_name@,$program_transform_name,;t t
12101s,@bindir@,$bindir,;t t
12102s,@sbindir@,$sbindir,;t t
12103s,@libexecdir@,$libexecdir,;t t
12104s,@datadir@,$datadir,;t t
12105s,@sysconfdir@,$sysconfdir,;t t
12106s,@sharedstatedir@,$sharedstatedir,;t t
12107s,@localstatedir@,$localstatedir,;t t
12108s,@libdir@,$libdir,;t t
12109s,@includedir@,$includedir,;t t
12110s,@oldincludedir@,$oldincludedir,;t t
12111s,@infodir@,$infodir,;t t
12112s,@mandir@,$mandir,;t t
12113s,@build_alias@,$build_alias,;t t
12114s,@host_alias@,$host_alias,;t t
12115s,@target_alias@,$target_alias,;t t
12116s,@DEFS@,$DEFS,;t t
12117s,@ECHO_C@,$ECHO_C,;t t
12118s,@ECHO_N@,$ECHO_N,;t t
12119s,@ECHO_T@,$ECHO_T,;t t
12120s,@LIBS@,$LIBS,;t t
12121s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12122s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12123s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12124s,@build@,$build,;t t
12125s,@build_cpu@,$build_cpu,;t t
12126s,@build_vendor@,$build_vendor,;t t
12127s,@build_os@,$build_os,;t t
12128s,@host@,$host,;t t
12129s,@host_cpu@,$host_cpu,;t t
12130s,@host_vendor@,$host_vendor,;t t
12131s,@host_os@,$host_os,;t t
12132s,@target@,$target,;t t
12133s,@target_cpu@,$target_cpu,;t t
12134s,@target_vendor@,$target_vendor,;t t
12135s,@target_os@,$target_os,;t t
12136s,@OS@,$OS,;t t
12137s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
12138s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
12139s,@CXX@,$CXX,;t t
12140s,@CXXFLAGS@,$CXXFLAGS,;t t
12141s,@LDFLAGS@,$LDFLAGS,;t t
12142s,@CPPFLAGS@,$CPPFLAGS,;t t
12143s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12144s,@EXEEXT@,$EXEEXT,;t t
12145s,@OBJEXT@,$OBJEXT,;t t
12146s,@CC@,$CC,;t t
12147s,@CFLAGS@,$CFLAGS,;t t
12148s,@ac_ct_CC@,$ac_ct_CC,;t t
12149s,@CPP@,$CPP,;t t
12150s,@ifGNUmake@,$ifGNUmake,;t t
12151s,@LEX@,$LEX,;t t
12152s,@LEXLIB@,$LEXLIB,;t t
12153s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
12154s,@YACC@,$YACC,;t t
12155s,@LN_S@,$LN_S,;t t
12156s,@ECHO@,$ECHO,;t t
12157s,@RANLIB@,$RANLIB,;t t
12158s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12159s,@STRIP@,$STRIP,;t t
12160s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12161s,@LIBTOOL@,$LIBTOOL,;t t
12162s,@AR@,$AR,;t t
12163s,@SED@,$SED,;t t
12164s,@RM@,$RM,;t t
12165s,@MKDIR@,$MKDIR,;t t
12166s,@DATE@,$DATE,;t t
12167s,@MV@,$MV,;t t
12168s,@DOT@,$DOT,;t t
12169s,@ETAGS@,$ETAGS,;t t
12170s,@PURIFY@,$PURIFY,;t t
12171s,@ALLOCA@,$ALLOCA,;t t
12172s,@LIBOBJS@,$LIBOBJS,;t t
12173s,@MMAP_FILE@,$MMAP_FILE,;t t
12174s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
12175s,@ENABLE_VERBOSE@,$ENABLE_VERBOSE,;t t
12176s,@ENABLE_PROFILING@,$ENABLE_PROFILING,;t t
12177s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
12178s,@USE_SPEC@,$USE_SPEC,;t t
12179s,@UPB@,$UPB,;t t
12180s,@JIT@,$JIT,;t t
12181s,@SPEC_ROOT@,$SPEC_ROOT,;t t
12182s,@BCR@,$BCR,;t t
12183s,@PAPIDIR@,$PAPIDIR,;t t
12184s,@OBJROOT@,$OBJROOT,;t t
12185CEOF
12186
12187_ACEOF
12188
12189 cat >>$CONFIG_STATUS <<\_ACEOF
12190 # Split the substitutions into bite-sized pieces for seds with
12191 # small command number limits, like on Digital OSF/1 and HP-UX.
12192 ac_max_sed_lines=48
12193 ac_sed_frag=1 # Number of current file.
12194 ac_beg=1 # First line for current file.
12195 ac_end=$ac_max_sed_lines # Line after last line for current file.
12196 ac_more_lines=:
12197 ac_sed_cmds=
12198 while $ac_more_lines; do
12199 if test $ac_beg -gt 1; then
12200 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12201 else
12202 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12203 fi
12204 if test ! -s $tmp/subs.frag; then
12205 ac_more_lines=false
12206 else
12207 # The purpose of the label and of the branching condition is to
12208 # speed up the sed processing (if there are no `@' at all, there
12209 # is no need to browse any of the substitutions).
12210 # These are the two extra sed commands mentioned above.
12211 (echo ':t
12212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12213 if test -z "$ac_sed_cmds"; then
12214 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12215 else
12216 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12217 fi
12218 ac_sed_frag=`expr $ac_sed_frag + 1`
12219 ac_beg=$ac_end
12220 ac_end=`expr $ac_end + $ac_max_sed_lines`
12221 fi
12222 done
12223 if test -z "$ac_sed_cmds"; then
12224 ac_sed_cmds=cat
12225 fi
12226fi # test -n "$CONFIG_FILES"
12227
12228_ACEOF
12229cat >>$CONFIG_STATUS <<\_ACEOF
12230for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12232 case $ac_file in
12233 - | *:- | *:-:* ) # input from stdin
12234 cat >$tmp/stdin
12235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12239 * ) ac_file_in=$ac_file.in ;;
12240 esac
12241
12242 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12243 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12244$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245 X"$ac_file" : 'X\(//\)[^/]' \| \
12246 X"$ac_file" : 'X\(//\)$' \| \
12247 X"$ac_file" : 'X\(/\)' \| \
12248 . : '\(.\)' 2>/dev/null ||
12249echo X"$ac_file" |
12250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12252 /^X\(\/\/\)$/{ s//\1/; q; }
12253 /^X\(\/\).*/{ s//\1/; q; }
12254 s/.*/./; q'`
12255 { case "$ac_dir" in
12256 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12257 *) as_incr_dir=.;;
12258esac
12259as_dummy="$ac_dir"
12260for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12261 case $as_mkdir_dir in
12262 # Skip DOS drivespec
12263 ?:) as_incr_dir=$as_mkdir_dir ;;
12264 *)
12265 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12266 test -d "$as_incr_dir" ||
12267 mkdir "$as_incr_dir" ||
12268 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12269echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12270 { (exit 1); exit 1; }; }
12271 ;;
12272 esac
12273done; }
12274
12275 ac_builddir=.
12276
12277if test "$ac_dir" != .; then
12278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12279 # A "../" for each directory in $ac_dir_suffix.
12280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12281else
12282 ac_dir_suffix= ac_top_builddir=
12283fi
12284
12285case $srcdir in
12286 .) # No --srcdir option. We are building in place.
12287 ac_srcdir=.
12288 if test -z "$ac_top_builddir"; then
12289 ac_top_srcdir=.
12290 else
12291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12292 fi ;;
12293 [\\/]* | ?:[\\/]* ) # Absolute path.
12294 ac_srcdir=$srcdir$ac_dir_suffix;
12295 ac_top_srcdir=$srcdir ;;
12296 *) # Relative path.
12297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12299esac
12300# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12301# absolute.
12302ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12303ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12304ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12305ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12306
12307
12308 case $INSTALL in
12309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12310 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12311 esac
12312
12313 if test x"$ac_file" != x-; then
12314 { echo "$as_me:$LINENO: creating $ac_file" >&5
12315echo "$as_me: creating $ac_file" >&6;}
12316 rm -f "$ac_file"
12317 fi
12318 # Let's still pretend it is `configure' which instantiates (i.e., don't
12319 # use $as_me), people would be surprised to read:
12320 # /* config.h. Generated by config.status. */
12321 if test x"$ac_file" = x-; then
12322 configure_input=
12323 else
12324 configure_input="$ac_file. "
12325 fi
12326 configure_input=$configure_input"Generated from `echo $ac_file_in |
12327 sed 's,.*/,,'` by configure."
12328
12329 # First look for the input files in the build tree, otherwise in the
12330 # src tree.
12331 ac_file_inputs=`IFS=:
12332 for f in $ac_file_in; do
12333 case $f in
12334 -) echo $tmp/stdin ;;
12335 [\\/$]*)
12336 # Absolute (can't be DOS-style, as IFS=:)
12337 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12338echo "$as_me: error: cannot find input file: $f" >&2;}
12339 { (exit 1); exit 1; }; }
12340 echo $f;;
12341 *) # Relative
12342 if test -f "$f"; then
12343 # Build tree
12344 echo $f
12345 elif test -f "$srcdir/$f"; then
12346 # Source tree
12347 echo $srcdir/$f
12348 else
12349 # /dev/null tree
12350 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12351echo "$as_me: error: cannot find input file: $f" >&2;}
12352 { (exit 1); exit 1; }; }
12353 fi;;
12354 esac
12355 done` || { (exit 1); exit 1; }
12356_ACEOF
12357cat >>$CONFIG_STATUS <<_ACEOF
12358 sed "$ac_vpsub
12359$extrasub
12360_ACEOF
12361cat >>$CONFIG_STATUS <<\_ACEOF
12362:t
12363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12364s,@configure_input@,$configure_input,;t t
12365s,@srcdir@,$ac_srcdir,;t t
12366s,@abs_srcdir@,$ac_abs_srcdir,;t t
12367s,@top_srcdir@,$ac_top_srcdir,;t t
12368s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12369s,@builddir@,$ac_builddir,;t t
12370s,@abs_builddir@,$ac_abs_builddir,;t t
12371s,@top_builddir@,$ac_top_builddir,;t t
12372s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12373s,@INSTALL@,$ac_INSTALL,;t t
12374" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12375 rm -f $tmp/stdin
12376 if test x"$ac_file" != x-; then
12377 mv $tmp/out $ac_file
12378 else
12379 cat $tmp/out
12380 rm -f $tmp/out
12381 fi
12382
12383done
12384_ACEOF
12385cat >>$CONFIG_STATUS <<\_ACEOF
12386
12387#
12388# CONFIG_HEADER section.
12389#
12390
12391# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12392# NAME is the cpp macro being defined and VALUE is the value it is being given.
12393#
12394# ac_d sets the value in "#define NAME VALUE" lines.
12395ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12396ac_dB='[ ].*$,\1#\2'
12397ac_dC=' '
12398ac_dD=',;t'
12399# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12400ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12401ac_uB='$,\1#\2define\3'
12402ac_uC=' '
12403ac_uD=',;t'
12404
12405for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12406 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12407 case $ac_file in
12408 - | *:- | *:-:* ) # input from stdin
12409 cat >$tmp/stdin
12410 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12411 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12412 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12413 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12414 * ) ac_file_in=$ac_file.in ;;
12415 esac
12416
12417 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12418echo "$as_me: creating $ac_file" >&6;}
12419
12420 # First look for the input files in the build tree, otherwise in the
12421 # src tree.
12422 ac_file_inputs=`IFS=:
12423 for f in $ac_file_in; do
12424 case $f in
12425 -) echo $tmp/stdin ;;
12426 [\\/$]*)
12427 # Absolute (can't be DOS-style, as IFS=:)
12428 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12429echo "$as_me: error: cannot find input file: $f" >&2;}
12430 { (exit 1); exit 1; }; }
12431 echo $f;;
12432 *) # Relative
12433 if test -f "$f"; then
12434 # Build tree
12435 echo $f
12436 elif test -f "$srcdir/$f"; then
12437 # Source tree
12438 echo $srcdir/$f
12439 else
12440 # /dev/null tree
12441 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12442echo "$as_me: error: cannot find input file: $f" >&2;}
12443 { (exit 1); exit 1; }; }
12444 fi;;
12445 esac
12446 done` || { (exit 1); exit 1; }
12447 # Remove the trailing spaces.
12448 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12449
12450_ACEOF
12451
12452# Transform confdefs.h into two sed scripts, `conftest.defines' and
12453# `conftest.undefs', that substitutes the proper values into
12454# config.h.in to produce config.h. The first handles `#define'
12455# templates, and the second `#undef' templates.
12456# And first: Protect against being on the right side of a sed subst in
12457# config.status. Protect against being in an unquoted here document
12458# in config.status.
12459rm -f conftest.defines conftest.undefs
12460# Using a here document instead of a string reduces the quoting nightmare.
12461# Putting comments in sed scripts is not portable.
12462#
12463# `end' is used to avoid that the second main sed command (meant for
12464# 0-ary CPP macros) applies to n-ary macro definitions.
12465# See the Autoconf documentation for `clear'.
12466cat >confdef2sed.sed <<\_ACEOF
12467s/[\\&,]/\\&/g
12468s,[\\$`],\\&,g
12469t clear
12470: clear
12471s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12472t end
12473s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12474: end
12475_ACEOF
12476# If some macros were called several times there might be several times
12477# the same #defines, which is useless. Nevertheless, we may not want to
12478# sort them, since we want the *last* AC-DEFINE to be honored.
12479uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12480sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12481rm -f confdef2sed.sed
12482
12483# This sed command replaces #undef with comments. This is necessary, for
12484# example, in the case of _POSIX_SOURCE, which is predefined and required
12485# on some systems where configure will not decide to define it.
12486cat >>conftest.undefs <<\_ACEOF
12487s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12488_ACEOF
12489
12490# Break up conftest.defines because some shells have a limit on the size
12491# of here documents, and old seds have small limits too (100 cmds).
12492echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12493echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12494echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12495echo ' :' >>$CONFIG_STATUS
12496rm -f conftest.tail
12497while grep . conftest.defines >/dev/null
12498do
12499 # Write a limited-size here document to $tmp/defines.sed.
12500 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12501 # Speed up: don't consider the non `#define' lines.
12502 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12503 # Work around the forget-to-reset-the-flag bug.
12504 echo 't clr' >>$CONFIG_STATUS
12505 echo ': clr' >>$CONFIG_STATUS
12506 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12507 echo 'CEOF
12508 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12509 rm -f $tmp/in
12510 mv $tmp/out $tmp/in
12511' >>$CONFIG_STATUS
12512 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12513 rm -f conftest.defines
12514 mv conftest.tail conftest.defines
12515done
12516rm -f conftest.defines
12517echo ' fi # egrep' >>$CONFIG_STATUS
12518echo >>$CONFIG_STATUS
12519
12520# Break up conftest.undefs because some shells have a limit on the size
12521# of here documents, and old seds have small limits too (100 cmds).
12522echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12523rm -f conftest.tail
12524while grep . conftest.undefs >/dev/null
12525do
12526 # Write a limited-size here document to $tmp/undefs.sed.
12527 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12528 # Speed up: don't consider the non `#undef'
12529 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12530 # Work around the forget-to-reset-the-flag bug.
12531 echo 't clr' >>$CONFIG_STATUS
12532 echo ': clr' >>$CONFIG_STATUS
12533 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12534 echo 'CEOF
12535 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12536 rm -f $tmp/in
12537 mv $tmp/out $tmp/in
12538' >>$CONFIG_STATUS
12539 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12540 rm -f conftest.undefs
12541 mv conftest.tail conftest.undefs
12542done
12543rm -f conftest.undefs
12544
12545cat >>$CONFIG_STATUS <<\_ACEOF
12546 # Let's still pretend it is `configure' which instantiates (i.e., don't
12547 # use $as_me), people would be surprised to read:
12548 # /* config.h. Generated by config.status. */
12549 if test x"$ac_file" = x-; then
12550 echo "/* Generated by configure. */" >$tmp/config.h
12551 else
12552 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12553 fi
12554 cat $tmp/in >>$tmp/config.h
12555 rm -f $tmp/in
12556 if test x"$ac_file" != x-; then
12557 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12558 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12559echo "$as_me: $ac_file is unchanged" >&6;}
12560 else
12561 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12562$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12563 X"$ac_file" : 'X\(//\)[^/]' \| \
12564 X"$ac_file" : 'X\(//\)$' \| \
12565 X"$ac_file" : 'X\(/\)' \| \
12566 . : '\(.\)' 2>/dev/null ||
12567echo X"$ac_file" |
12568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12570 /^X\(\/\/\)$/{ s//\1/; q; }
12571 /^X\(\/\).*/{ s//\1/; q; }
12572 s/.*/./; q'`
12573 { case "$ac_dir" in
12574 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12575 *) as_incr_dir=.;;
12576esac
12577as_dummy="$ac_dir"
12578for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12579 case $as_mkdir_dir in
12580 # Skip DOS drivespec
12581 ?:) as_incr_dir=$as_mkdir_dir ;;
12582 *)
12583 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12584 test -d "$as_incr_dir" ||
12585 mkdir "$as_incr_dir" ||
12586 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12587echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12588 { (exit 1); exit 1; }; }
12589 ;;
12590 esac
12591done; }
12592
12593 rm -f $ac_file
12594 mv $tmp/config.h $ac_file
12595 fi
12596 else
12597 cat $tmp/config.h
12598 rm -f $tmp/config.h
12599 fi
12600done
12601_ACEOF
12602
12603cat >>$CONFIG_STATUS <<\_ACEOF
12604
12605{ (exit 0); exit 0; }
12606_ACEOF
12607chmod +x $CONFIG_STATUS
12608ac_clean_files=$ac_clean_files_save
12609
12610
12611# configure is writing to config.log, and then calls config.status.
12612# config.status does its own redirection, appending to config.log.
12613# Unfortunately, on DOS this fails, as config.log is still kept open
12614# by configure, so config.status won't be able to write to it; its
12615# output is simply discarded. So we exec the FD to /dev/null,
12616# effectively closing config.log, so it can be properly (re)opened and
12617# appended to by config.status. When coming back to configure, we
12618# need to make the FD available again.
12619if test "$no_create" != yes; then
12620 ac_cs_success=:
12621 exec 5>/dev/null
12622 $SHELL $CONFIG_STATUS || ac_cs_success=false
12623 exec 5>>config.log
12624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12625 # would make configure fail if this is the last instruction.
12626 $ac_cs_success || { (exit 1); exit 1; }
12627fi
12628