blob: 468bc9d442bca2a26001d51492b599254a0e2dfe [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +00003# Generated by GNU Autoconf 2.59 for llvm 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000428PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000429PACKAGE_STRING='llvm 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000438ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswelle96aa1c2004-10-28 13:35:00 +0000441ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencercda35f82004-12-02 04:17:20 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001040 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
Reid Spencer0fcb9412004-11-30 08:11:54 +00001053 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1056 both]
1057 --with-tags[=TAGS]
1058 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001059
1060Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001061 CC C compiler command
1062 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001067 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <llvmbugs@cs.uiuc.edu>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093 ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001111
1112# Do not use `cd foo && pwd` to compute absolute paths, because
1113# the directories may not exist.
1114case `pwd` in
1115.) ac_abs_builddir="$ac_dir";;
1116*)
1117 case "$ac_dir" in
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 esac;;
1149esac
John Criswell7a73b802003-06-30 21:59:07 +00001150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001160 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168fi
1169
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001173llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001174generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001175
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001179
1180$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001181_ACEOF
1182 exit 0
1183fi
1184exec 5>config.log
1185cat >&5 <<_ACEOF
1186This file contains any messages produced by compilers while
1187running configure, to aid debugging if configure makes a mistake.
1188
Reid Spencerabec8f92004-10-27 23:03:44 +00001189It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001190generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001191
1192 $ $0 $@
1193
1194_ACEOF
1195{
1196cat <<_ASUNAME
1197## --------- ##
1198## Platform. ##
1199## --------- ##
1200
1201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209
1210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217
1218_ASUNAME
1219
1220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221for as_dir in $PATH
1222do
1223 IFS=$as_save_IFS
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1226done
1227
1228} >&5
1229
1230cat >&5 <<_ACEOF
1231
1232
1233## ----------- ##
1234## Core tests. ##
1235## ----------- ##
1236
1237_ACEOF
1238
1239
1240# Keep a trace of the command line.
1241# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001242# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001243# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001245ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001246ac_configure_args0=
1247ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001248ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001249ac_must_keep_next=false
1250for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001251do
John Criswell0c38eaf2003-09-10 15:17:25 +00001252 for ac_arg
1253 do
1254 case $ac_arg in
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 continue ;;
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 esac
1262 case $ac_pass in
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 2)
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001267 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001268 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 case $ac_arg in
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276 esac
1277 ;;
1278 -* ) ac_must_keep_next=true ;;
1279 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001280 fi
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1283 ac_sep=" "
1284 ;;
1285 esac
1286 done
John Criswell7a73b802003-06-30 21:59:07 +00001287done
John Criswell0c38eaf2003-09-10 15:17:25 +00001288$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001290
1291# When interrupted or exit'd, cleanup temporary files, and complete
1292# config.log. We remove comments because anyway the quotes in there
1293# would cause problems or look ugly.
1294# WARNING: Be sure not to use single quotes in there, as some shells,
1295# such as our DU 5.0 friend, will then `close' the trap.
1296trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1298 {
1299 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001300
John Criswell7a73b802003-06-30 21:59:07 +00001301 cat <<\_ASBOX
1302## ---------------- ##
1303## Cache variables. ##
1304## ---------------- ##
1305_ASBOX
1306 echo
1307 # The following way of writing the cache mishandles newlines in values,
1308{
1309 (set) 2>&1 |
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311 *ac_space=\ *)
1312 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001315 ;;
1316 *)
1317 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001319 ;;
1320 esac;
1321}
1322 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001323
1324 cat <<\_ASBOX
1325## ----------------- ##
1326## Output variables. ##
1327## ----------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_vars
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336
1337 if test -n "$ac_subst_files"; then
1338 cat <<\_ASBOX
1339## ------------- ##
1340## Output files. ##
1341## ------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_files
1345 do
1346 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001347 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001348 done | sort
1349 echo
1350 fi
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352 if test -s confdefs.h; then
1353 cat <<\_ASBOX
1354## ----------- ##
1355## confdefs.h. ##
1356## ----------- ##
1357_ASBOX
1358 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001359 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001360 echo
1361 fi
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1365 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001366 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368 exit $exit_status
1369 ' 0
1370for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372done
1373ac_signal=0
1374
1375# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376rm -rf conftest* confdefs.h
1377# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378echo >confdefs.h
1379
1380# Predefined preprocessor variables.
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_NAME "$PACKAGE_NAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_VERSION "$PACKAGE_VERSION"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_STRING "$PACKAGE_STRING"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404_ACEOF
1405
1406
1407# Let the site file select an alternate cache file if it wants to.
1408# Prefer explicitly selected file to automatically selected ones.
1409if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 else
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414 fi
1415fi
1416for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1421 . "$ac_site_file"
1422 fi
1423done
1424
1425if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430echo "$as_me: loading cache $cache_file" >&6;}
1431 case $cache_file in
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1434 esac
1435 fi
1436else
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438echo "$as_me: creating cache $cache_file" >&6;}
1439 >$cache_file
1440fi
1441
1442# Check that the precious variables saved in the cache have kept the same
1443# value.
1444ac_cache_corrupted=false
1445for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1452 set,)
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1456 ,set)
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1460 ,);;
1461 *)
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001464echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001470 fi;;
1471 esac
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1474 case $ac_new_val in
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1478 esac
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 esac
1483 fi
1484done
1485if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493ac_ext=c
1494ac_cpp='$CPP $CPPFLAGS'
1495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
John Criswell0c38eaf2003-09-10 15:17:25 +00001525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001526LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1527
1528
1529
1530
1531
1532
1533
John Criswell7a73b802003-06-30 21:59:07 +00001534ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001535for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001536 if test -f $ac_dir/install-sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 break
1540 elif test -f $ac_dir/install.sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 break
1544 elif test -f $ac_dir/shtool; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 break
1548 fi
1549done
1550if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001553 { (exit 1); exit 1; }; }
1554fi
1555ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
John Criswell392aaa32003-07-22 19:18:09 +00001559
Reid Spencer2706f8c2004-09-19 23:53:36 +00001560if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001563echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565 fi
John Criswell93e1c722003-09-15 17:04:06 +00001566fi
1567
John Criswell33a911a2003-11-25 20:36:46 +00001568for i in `ls ${srcdir}/projects`
1569do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001570 if test -d ${srcdir}/projects/${i} ; then
1571 case ${i} in
1572 "CVS") ;;
1573 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001574
Reid Spencer4d68ba22004-09-07 16:35:45 +00001575subdirs="$subdirs projects/sample"
1576 ;;
1577 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001578
Reid Spencer4d68ba22004-09-07 16:35:45 +00001579subdirs="$subdirs projects/Stacker"
1580 ;;
1581 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/llvm-test"
1584 ;;
1585 "llvm-reopt")
1586
1587subdirs="$subdirs projects/llvm-reopt"
1588;;
1589 "llvm-gcc")
1590
1591subdirs="$subdirs projects/llvm-gcc"
1592 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001593 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594
Reid Spencer641f7ef2004-09-20 22:14:56 +00001595subdirs="$subdirs projects/Java"
1596 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001597 "llvm-tv")
1598
1599subdirs="$subdirs projects/llvm-tv"
1600 ;;
1601 "llvm-fefw")
1602
1603subdirs="$subdirs projects/llvm-fefw"
1604 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001605 "poolalloc")
1606
1607subdirs="$subdirs projects/poolalloc"
1608 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001609 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001610 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001612 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001613 esac
John Criswell33a911a2003-11-25 20:36:46 +00001614 fi
1615done
John Criswell559a6c12003-09-30 16:31:48 +00001616
John Criswell7a73b802003-06-30 21:59:07 +00001617
1618# Make sure we can run config.sub.
1619$ac_config_sub sun4 >/dev/null 2>&1 ||
1620 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624echo "$as_me:$LINENO: checking build system type" >&5
1625echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626if test "${ac_cv_build+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_build_alias=$build_alias
1630test -z "$ac_cv_build_alias" &&
1631 ac_cv_build_alias=`$ac_config_guess`
1632test -z "$ac_cv_build_alias" &&
1633 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635 { (exit 1); exit 1; }; }
1636ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643echo "${ECHO_T}$ac_cv_build" >&6
1644build=$ac_cv_build
1645build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650echo "$as_me:$LINENO: checking host system type" >&5
1651echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652if test "${ac_cv_host+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 ac_cv_host_alias=$host_alias
1656test -z "$ac_cv_host_alias" &&
1657 ac_cv_host_alias=$ac_cv_build_alias
1658ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1662
1663fi
1664echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665echo "${ECHO_T}$ac_cv_host" >&6
1666host=$ac_cv_host
1667host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672echo "$as_me:$LINENO: checking target system type" >&5
1673echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674if test "${ac_cv_target+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 ac_cv_target_alias=$target_alias
1678test "x$ac_cv_target_alias" = "x" &&
1679 ac_cv_target_alias=$ac_cv_host_alias
1680ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685fi
1686echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687echo "${ECHO_T}$ac_cv_target" >&6
1688target=$ac_cv_target
1689target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694# The aliases save the names the user supplied, while $host etc.
1695# will get canonicalized.
1696test -n "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1698 NONENONEs,x,x, &&
1699 program_prefix=${target_alias}-
1700
Reid Spencer73fb5482004-08-31 14:20:36 +00001701echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001703if test "${llvm_cv_platform_type+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 case $build in
1707 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001717esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001718fi
1719echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001721
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001722if test "$llvm_cv_platform_type" = "Unknown" ; then
1723 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001725 { (exit 1); exit 1; }; }
1726fi
1727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001728OS=$llvm_cv_platform_type
1729
1730
Reid Spenceredd01b92004-11-25 06:03:14 +00001731 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001732
1733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001734case $target in
1735 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1736
1737 ;;
1738esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001739
1740echo "$as_me:$LINENO: checking target architecture" >&5
1741echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001742if test "${llvm_cv_target_arch+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 case $target in
1746 i*86-*) llvm_cv_target_arch="x86" ;;
1747 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1748 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1749 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001750esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001751fi
1752echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001755if test "$llvm_cv_target_arch" = "Unknown" ; then
1756 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758fi
John Criswell76595452003-07-01 22:07:39 +00001759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001760ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001761
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001762
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001763ac_ext=c
1764ac_cpp='$CPP $CPPFLAGS'
1765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001768if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
1793fi
1794fi
1795CC=$ac_cv_prog_CC
1796if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798echo "${ECHO_T}$CC" >&6
1799else
1800 echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804fi
1805if test -z "$ac_cv_prog_CC"; then
1806 ac_ct_CC=$CC
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808set dummy gcc; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1827 fi
1828done
1829done
1830
1831fi
1832fi
1833ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836echo "${ECHO_T}$ac_ct_CC" >&6
1837else
1838 echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842 CC=$ac_ct_CC
1843else
1844 CC="$ac_cv_prog_CC"
1845fi
1846
1847if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850set dummy ${ac_tool_prefix}cc; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875CC=$ac_cv_prog_CC
1876if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878echo "${ECHO_T}$CC" >&6
1879else
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884fi
1885if test -z "$ac_cv_prog_CC"; then
1886 ac_ct_CC=$CC
1887 # Extract the first word of "cc", so it can be a program name with args.
1888set dummy cc; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908done
1909done
1910
1911fi
1912fi
1913ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916echo "${ECHO_T}$ac_ct_CC" >&6
1917else
1918 echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922 CC=$ac_ct_CC
1923else
1924 CC="$ac_cv_prog_CC"
1925fi
1926
1927fi
1928if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930set dummy cc; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938else
1939 ac_prog_rejected=no
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1949 continue
1950 fi
1951 ac_cv_prog_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
1957
1958if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1961 shift
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1966 shift
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968 fi
1969fi
1970fi
1971fi
1972CC=$ac_cv_prog_CC
1973if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975echo "${ECHO_T}$CC" >&6
1976else
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981fi
1982if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001985 do
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001990if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001995else
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2006 fi
2007done
2008done
2009
2010fi
2011fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002016else
2017 echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002022 done
2023fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024if test -z "$CC"; then
2025 ac_ct_CC=$CC
2026 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002027do
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002045 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2048 fi
2049done
2050done
2051
2052fi
2053fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002058else
2059 echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002064done
John Criswell7a73b802003-06-30 21:59:07 +00002065
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066 CC=$ac_ct_CC
2067fi
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069fi
2070
2071
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Provide some information about the compiler.
2079echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002081ac_compiler=`set X $ac_compile; echo $2`
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097
2098cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002099/* confdefs.h. */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002104
John Criswell7a73b802003-06-30 21:59:07 +00002105int
2106main ()
2107{
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002114ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002115# Try to create an executable without -o first, disregard a.out.
2116# It will help us diagnose broken compilers, and finding out an intuition
2117# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002120ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128# resort.
2129
2130# Be careful to initialize this variable, since it used to be cached.
2131# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002133# b.out is created by i960 compilers.
2134for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135do
2136 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002137 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002139 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002140 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002141 # This is the source file.
2142 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002143 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002144 # We found the default executable, but exeext='' is most
2145 # certainly right.
2146 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002147 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2152 export ac_cv_exeext
2153 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002154 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002155 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002156 esac
2157done
2158else
2159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002160sed 's/^/| /' conftest.$ac_ext >&5
2161
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002162{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002163See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002164echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002165See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 77); exit 77; }; }
2167fi
2168
2169ac_exeext=$ac_cv_exeext
2170echo "$as_me:$LINENO: result: $ac_file" >&5
2171echo "${ECHO_T}$ac_file" >&6
2172
2173# Check the compiler produces executables we can run. If not, either
2174# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002175echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002177# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178# If not cross compiling, check that we can run a simple program.
2179if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 cross_compiling=no
2187 else
2188 if test "$cross_compiling" = maybe; then
2189 cross_compiling=yes
2190 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002194echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002195If you meant to cross compile, use \`--host'.
2196See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
2198 fi
2199 fi
2200fi
2201echo "$as_me:$LINENO: result: yes" >&5
2202echo "${ECHO_T}yes" >&6
2203
John Criswell0c38eaf2003-09-10 15:17:25 +00002204rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002205ac_clean_files=$ac_clean_files_save
2206# Check the compiler produces executables we can run. If not, either
2207# the compiler is broken, or we cross compile.
2208echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211echo "${ECHO_T}$cross_compiling" >&6
2212
2213echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222# work properly (i.e., refer to `conftest.exe'), while it won't with
2223# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002224for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002226 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002229 export ac_cv_exeext
2230 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002231 * ) break;;
2232 esac
2233done
2234else
John Criswell0c38eaf2003-09-10 15:17:25 +00002235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002239 { (exit 1); exit 1; }; }
2240fi
2241
2242rm -f conftest$ac_cv_exeext
2243echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246rm -f conftest.$ac_ext
2247EXEEXT=$ac_cv_exeext
2248ac_exeext=$EXEEXT
2249echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002255/* confdefs.h. */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002260
John Criswell7a73b802003-06-30 21:59:07 +00002261int
2262main ()
2263{
2264
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.o conftest.obj
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 break;;
2280 esac
2281done
2282else
2283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002290 { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294fi
2295echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296echo "${ECHO_T}$ac_cv_objext" >&6
2297OBJEXT=$ac_cv_objext
2298ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002299echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002310
John Criswell7a73b802003-06-30 21:59:07 +00002311int
2312main ()
2313{
2314#ifndef __GNUC__
2315 choke me
2316#endif
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322rm -f conftest.$ac_objext
2323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002324 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_compiler_gnu=yes
2345else
2346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002347sed 's/^/| /' conftest.$ac_ext >&5
2348
John Criswell7a73b802003-06-30 21:59:07 +00002349ac_compiler_gnu=no
2350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002353
2354fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357GCC=`test $ac_compiler_gnu = yes && echo yes`
2358ac_test_CFLAGS=${CFLAGS+set}
2359ac_save_CFLAGS=$CFLAGS
2360CFLAGS="-g"
2361echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002372
John Criswell7a73b802003-06-30 21:59:07 +00002373int
2374main ()
2375{
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002404else
2405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002409fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2418 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002419 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002421 fi
2422else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423 if test "$GCC" = yes; then
2424 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002425 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002427 fi
2428fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 ac_cv_prog_cc_stdc=no
2435ac_save_CC=$CC
2436cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442#include <stdarg.h>
2443#include <stdio.h>
2444#include <sys/types.h>
2445#include <sys/stat.h>
2446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447struct buf { int x; };
2448FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449static char *e (p, i)
2450 char **p;
2451 int i;
2452{
2453 return p[i];
2454}
2455static char *f (char * (*g) (char **, int), char **p, ...)
2456{
2457 char *s;
2458 va_list v;
2459 va_start (v,p);
2460 s = g (p, va_arg (v,int));
2461 va_end (v);
2462 return s;
2463}
2464
2465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474int test (int i, double x);
2475struct s1 {int (*f) (int a);};
2476struct s2 {int (*f) (double a);};
2477int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478int argc;
2479char **argv;
2480int
2481main ()
2482{
2483return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488# Don't try gcc -ansi; that turns off useful extensions and
2489# breaks some systems' header files.
2490# AIX -qlanglvl=ansi
2491# Ultrix and OSF/1 -std1
2492# HP-UX 10.20 and later -Ae
2493# HP-UX older versions -Aa -D_HPUX_SOURCE
2494# SVR4 -Xc -D__EXTENSIONS__
2495for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496do
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2521break
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext
2528done
2529rm -f conftest.$ac_ext conftest.$ac_objext
2530CC=$ac_save_CC
2531
2532fi
2533
2534case "x$ac_cv_prog_cc_stdc" in
2535 x|xno)
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537echo "${ECHO_T}none needed" >&6 ;;
2538 *)
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2542esac
2543
2544# Some people use a C++ compiler to compile C. Since we use `exit',
2545# in C++ we need to declare it. In case someone uses the same compiler
2546# for both compiling C and C++ we need to have the C++ compiler decide
2547# the declaration of exit, since it's the most demanding environment.
2548cat >conftest.$ac_ext <<_ACEOF
2549#ifndef __cplusplus
2550 choke me
2551#endif
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002576 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2581 'void exit (int);'
2582do
2583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002589$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002590#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002591int
2592main ()
2593{
2594exit (42);
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002601 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 :
2622else
2623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002624sed 's/^/| /' conftest.$ac_ext >&5
2625
John Criswell7a73b802003-06-30 21:59:07 +00002626continue
2627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002635$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002636int
2637main ()
2638{
2639exit (42);
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 break
2667else
2668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002669sed 's/^/| /' conftest.$ac_ext >&5
2670
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002673done
2674rm -f conftest*
2675if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2679fi
2680
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696if test "${ac_cv_c_bigendian+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 # See if sys/param.h defines the BYTE_ORDER macro.
2700cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h. */
2706#include <sys/types.h>
2707#include <sys/param.h>
2708
2709int
2710main ()
2711{
2712#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2713 bogus endian macros
2714#endif
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 # It does; now see whether it defined to BIG_ENDIAN or not.
2743cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749#include <sys/types.h>
2750#include <sys/param.h>
2751
2752int
2753main ()
2754{
2755#if BYTE_ORDER != BIG_ENDIAN
2756 not big endian
2757#endif
2758
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_c_bigendian=yes
2786else
2787 echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790ac_cv_c_bigendian=no
2791fi
2792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793else
2794 echo "$as_me: failed program was:" >&5
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797# It does not; compile a test program.
2798if test "$cross_compiling" = yes; then
2799 # try to guess the endianness by grepping values into an object file
2800 ac_cv_c_bigendian=unknown
2801 cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813int
2814main ()
2815{
2816 _ascii (); _ebcdic ();
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext
2822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844 ac_cv_c_bigendian=yes
2845fi
2846if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847 if test "$ac_cv_c_bigendian" = unknown; then
2848 ac_cv_c_bigendian=no
2849 else
2850 # finding both strings is unlikely to happen, but who knows?
2851 ac_cv_c_bigendian=unknown
2852 fi
2853fi
2854else
2855 echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858fi
2859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860else
2861 cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
2867int
2868main ()
2869{
2870 /* Are we little or big endian? From Harbison&Steele. */
2871 union
2872 {
2873 long l;
2874 char c[sizeof (long)];
2875 } u;
2876 u.l = 1;
2877 exit (u.c[sizeof (long) - 1] == 1);
2878}
2879_ACEOF
2880rm -f conftest$ac_exeext
2881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_c_bigendian=no
2892else
2893 echo "$as_me: program exited with status $ac_status" >&5
2894echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897( exit $ac_status )
2898ac_cv_c_bigendian=yes
2899fi
2900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901fi
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904fi
2905echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907case $ac_cv_c_bigendian in
2908 yes)
2909 ENDIAN=big
2910 ;;
2911 no)
2912 ENDIAN=little
2913 ;;
2914 *)
2915 { { echo "$as_me:$LINENO: error: unknown endianness
2916presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917echo "$as_me: error: unknown endianness
2918presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919 { (exit 1); exit 1; }; } ;;
2920esac
2921
2922
2923
2924# Check whether --enable-optimized or --disable-optimized was given.
2925if test "${enable_optimized+set}" = set; then
2926 enableval="$enable_optimized"
2927
2928else
2929 enableval=no
2930fi;
2931if test ${enableval} = "no" ; then
2932 ENABLE_OPTIMIZED=
2933
2934else
2935 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936
2937fi
2938
2939# Check whether --enable-jit or --disable-jit was given.
2940if test "${enable_jit+set}" = set; then
2941 enableval="$enable_jit"
2942
2943else
2944 enableval=default
2945fi;
2946if test ${enableval} = "no"
2947then
2948 JIT=
2949
2950else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002951 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002952 x86) JIT=TARGET_HAS_JIT=1
2953 ;;
2954 Sparc) JIT=TARGET_HAS_JIT=1
2955 ;;
2956 PowerPC) JIT=TARGET_HAS_JIT=1
2957 ;;
2958 *) JIT=
2959 ;;
2960 esac
2961fi
2962
Reid Spencer1f319422004-11-29 04:56:35 +00002963# Check whether --enable-doxygen or --disable-doxygen was given.
2964if test "${enable_doxygen+set}" = set; then
2965 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002966
Reid Spencer1f319422004-11-29 04:56:35 +00002967else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002968 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00002969fi;
2970case "$enableval" in
2971 yes) ENABLE_DOXYGEN=1
2972 ;;
2973 no) ENABLE_DOXYGEN=0
2974 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002975 default) ENABLE_DOXYGEN=0
2976 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00002977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979 { (exit 1); exit 1; }; } ;;
2980esac
2981
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002982
2983# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984if test "${with_llvmgccdir+set}" = set; then
2985 withval="$with_llvmgccdir"
2986 LLVMGCCDIR=$withval
2987
2988fi;
2989
2990if test "x$LLVMGCCDIR" = x ; then
2991 case "$llvm_cv_platform_type" in
2992 Linux)
2993 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995
2996 fi
2997 ;;
2998 SunOS)
2999 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3001
3002 fi
3003 ;;
3004 esac
3005fi
3006
3007
3008ac_ext=c
3009ac_cpp='$CPP $CPPFLAGS'
3010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015# On Suns, sometimes $CPP names a directory.
3016if test -n "$CPP" && test -d "$CPP"; then
3017 CPP=
3018fi
3019if test -z "$CPP"; then
3020 if test "${ac_cv_prog_CPP+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 # Double quotes because CPP needs to be expanded
3024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025 do
3026 ac_preproc_ok=false
3027for ac_c_preproc_warn_flag in '' yes
3028do
3029 # Use a header file that comes with gcc, so configuring glibc
3030 # with a fresh cross-compiler works.
3031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032 # <limits.h> exists even on freestanding compilers.
3033 # On the NeXT, cc -E runs the code through the compiler's parser,
3034 # not just through cpp. "Syntax error" is here to catch this case.
3035 cat >conftest.$ac_ext <<_ACEOF
3036/* confdefs.h. */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h. */
3041#ifdef __STDC__
3042# include <limits.h>
3043#else
3044# include <assert.h>
3045#endif
3046 Syntax error
3047_ACEOF
3048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3059 else
3060 ac_cpp_err=
3061 fi
3062else
3063 ac_cpp_err=yes
3064fi
3065if test -z "$ac_cpp_err"; then
3066 :
3067else
3068 echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 # Broken: fails on valid input.
3072continue
3073fi
3074rm -f conftest.err conftest.$ac_ext
3075
3076 # OK, works on sane cases. Now check whether non-existent headers
3077 # can be detected and how.
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084#include <ac_nonexistent.h>
3085_ACEOF
3086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 else
3098 ac_cpp_err=
3099 fi
3100else
3101 ac_cpp_err=yes
3102fi
3103if test -z "$ac_cpp_err"; then
3104 # Broken: success on invalid input.
3105continue
3106else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 # Passes both tests.
3111ac_preproc_ok=:
3112break
3113fi
3114rm -f conftest.err conftest.$ac_ext
3115
3116done
3117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118rm -f conftest.err conftest.$ac_ext
3119if $ac_preproc_ok; then
3120 break
3121fi
3122
3123 done
3124 ac_cv_prog_CPP=$CPP
3125
3126fi
3127 CPP=$ac_cv_prog_CPP
3128else
3129 ac_cv_prog_CPP=$CPP
3130fi
3131echo "$as_me:$LINENO: result: $CPP" >&5
3132echo "${ECHO_T}$CPP" >&6
3133ac_preproc_ok=false
3134for ac_c_preproc_warn_flag in '' yes
3135do
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h. */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h. */
3148#ifdef __STDC__
3149# include <limits.h>
3150#else
3151# include <assert.h>
3152#endif
3153 Syntax error
3154_ACEOF
3155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166 else
3167 ac_cpp_err=
3168 fi
3169else
3170 ac_cpp_err=yes
3171fi
3172if test -z "$ac_cpp_err"; then
3173 :
3174else
3175 echo "$as_me: failed program was:" >&5
3176sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 # Broken: fails on valid input.
3179continue
3180fi
3181rm -f conftest.err conftest.$ac_ext
3182
3183 # OK, works on sane cases. Now check whether non-existent headers
3184 # can be detected and how.
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191#include <ac_nonexistent.h>
3192_ACEOF
3193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204 else
3205 ac_cpp_err=
3206 fi
3207else
3208 ac_cpp_err=yes
3209fi
3210if test -z "$ac_cpp_err"; then
3211 # Broken: success on invalid input.
3212continue
3213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 # Passes both tests.
3218ac_preproc_ok=:
3219break
3220fi
3221rm -f conftest.err conftest.$ac_ext
3222
3223done
3224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225rm -f conftest.err conftest.$ac_ext
3226if $ac_preproc_ok; then
3227 :
3228else
3229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230See \`config.log' for more details." >&5
3231echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }
3234fi
3235
John Criswell7a73b802003-06-30 21:59:07 +00003236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242ac_ext=c
3243ac_cpp='$CPP $CPPFLAGS'
3244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247if test -n "$ac_tool_prefix"; then
3248 for ac_prog in gcc
3249 do
3250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252echo "$as_me:$LINENO: checking for $ac_word" >&5
3253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271done
3272done
3273
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
3278 echo "$as_me:$LINENO: result: $CC" >&5
3279echo "${ECHO_T}$CC" >&6
3280else
3281 echo "$as_me:$LINENO: result: no" >&5
3282echo "${ECHO_T}no" >&6
3283fi
3284
3285 test -n "$CC" && break
3286 done
3287fi
3288if test -z "$CC"; then
3289 ac_ct_CC=$CC
3290 for ac_prog in gcc
3291do
3292 # Extract the first word of "$ac_prog", so it can be a program name with args.
3293set dummy $ac_prog; ac_word=$2
3294echo "$as_me:$LINENO: checking for $ac_word" >&5
3295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299 if test -n "$ac_ct_CC"; then
3300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_ac_ct_CC="$ac_prog"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313done
3314done
3315
3316fi
3317fi
3318ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319if test -n "$ac_ct_CC"; then
3320 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3321echo "${ECHO_T}$ac_ct_CC" >&6
3322else
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325fi
3326
3327 test -n "$ac_ct_CC" && break
3328done
3329
3330 CC=$ac_ct_CC
3331fi
3332
3333
John Criswell0c38eaf2003-09-10 15:17:25 +00003334test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335See \`config.log' for more details." >&5
3336echo "$as_me: error: no acceptable C compiler found in \$PATH
3337See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003338 { (exit 1); exit 1; }; }
3339
3340# Provide some information about the compiler.
3341echo "$as_me:$LINENO:" \
3342 "checking for C compiler version" >&5
3343ac_compiler=`set X $ac_compile; echo $2`
3344{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3345 (eval $ac_compiler --version </dev/null >&5) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3350 (eval $ac_compiler -v </dev/null >&5) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3355 (eval $ac_compiler -V </dev/null >&5) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }
3359
3360echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3362if test "${ac_cv_c_compiler_gnu+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003371
John Criswell7a73b802003-06-30 21:59:07 +00003372int
3373main ()
3374{
3375#ifndef __GNUC__
3376 choke me
3377#endif
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext
3384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003385 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_compiler_gnu=yes
3406else
3407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003408sed 's/^/| /' conftest.$ac_ext >&5
3409
John Criswell7a73b802003-06-30 21:59:07 +00003410ac_compiler_gnu=no
3411fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003413ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414
3415fi
3416echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3418GCC=`test $ac_compiler_gnu = yes && echo yes`
3419ac_test_CFLAGS=${CFLAGS+set}
3420ac_save_CFLAGS=$CFLAGS
3421CFLAGS="-g"
3422echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3424if test "${ac_cv_prog_cc_g+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003433
John Criswell7a73b802003-06-30 21:59:07 +00003434int
3435main ()
3436{
3437
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext
3443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003444 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_prog_cc_g=yes
3465else
3466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003467sed 's/^/| /' conftest.$ac_ext >&5
3468
John Criswell7a73b802003-06-30 21:59:07 +00003469ac_cv_prog_cc_g=no
3470fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003472fi
3473echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3475if test "$ac_test_CFLAGS" = set; then
3476 CFLAGS=$ac_save_CFLAGS
3477elif test $ac_cv_prog_cc_g = yes; then
3478 if test "$GCC" = yes; then
3479 CFLAGS="-g -O2"
3480 else
3481 CFLAGS="-g"
3482 fi
3483else
3484 if test "$GCC" = yes; then
3485 CFLAGS="-O2"
3486 else
3487 CFLAGS=
3488 fi
3489fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003490echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3491echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3492if test "${ac_cv_prog_cc_stdc+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494else
3495 ac_cv_prog_cc_stdc=no
3496ac_save_CC=$CC
3497cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003498/* confdefs.h. */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h. */
3503#include <stdarg.h>
3504#include <stdio.h>
3505#include <sys/types.h>
3506#include <sys/stat.h>
3507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3508struct buf { int x; };
3509FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510static char *e (p, i)
3511 char **p;
3512 int i;
3513{
3514 return p[i];
3515}
3516static char *f (char * (*g) (char **, int), char **p, ...)
3517{
3518 char *s;
3519 va_list v;
3520 va_start (v,p);
3521 s = g (p, va_arg (v,int));
3522 va_end (v);
3523 return s;
3524}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003525
3526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3527 function prototypes and stuff, but not '\xHH' hex character constants.
3528 These don't provoke an error unfortunately, instead are silently treated
3529 as 'x'. The following induces an error, until -std1 is added to get
3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3531 array size at least. It's necessary to write '\x00'==0 to get something
3532 that's true only with -std1. */
3533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
John Criswell0c38eaf2003-09-10 15:17:25 +00003535int test (int i, double x);
3536struct s1 {int (*f) (int a);};
3537struct s2 {int (*f) (double a);};
3538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539int argc;
3540char **argv;
3541int
3542main ()
3543{
3544return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549# Don't try gcc -ansi; that turns off useful extensions and
3550# breaks some systems' header files.
3551# AIX -qlanglvl=ansi
3552# Ultrix and OSF/1 -std1
3553# HP-UX 10.20 and later -Ae
3554# HP-UX older versions -Aa -D_HPUX_SOURCE
3555# SVR4 -Xc -D__EXTENSIONS__
3556for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3557do
3558 CC="$ac_save_CC $ac_arg"
3559 rm -f conftest.$ac_objext
3560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003561 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_cv_prog_cc_stdc=$ac_arg
3582break
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003588rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003589done
3590rm -f conftest.$ac_ext conftest.$ac_objext
3591CC=$ac_save_CC
3592
3593fi
3594
3595case "x$ac_cv_prog_cc_stdc" in
3596 x|xno)
3597 echo "$as_me:$LINENO: result: none needed" >&5
3598echo "${ECHO_T}none needed" >&6 ;;
3599 *)
3600 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3601echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3602 CC="$CC $ac_cv_prog_cc_stdc" ;;
3603esac
3604
John Criswell7a73b802003-06-30 21:59:07 +00003605# Some people use a C++ compiler to compile C. Since we use `exit',
3606# in C++ we need to declare it. In case someone uses the same compiler
3607# for both compiling C and C++ we need to have the C++ compiler decide
3608# the declaration of exit, since it's the most demanding environment.
3609cat >conftest.$ac_ext <<_ACEOF
3610#ifndef __cplusplus
3611 choke me
3612#endif
3613_ACEOF
3614rm -f conftest.$ac_objext
3615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003616 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003637 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003638 'extern "C" void std::exit (int) throw (); using std::exit;' \
3639 'extern "C" void std::exit (int); using std::exit;' \
3640 'extern "C" void exit (int) throw ();' \
3641 'extern "C" void exit (int);' \
3642 'void exit (int);'
3643do
3644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003650$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003651#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003652int
3653main ()
3654{
3655exit (42);
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003662 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 :
3683else
3684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003685sed 's/^/| /' conftest.$ac_ext >&5
3686
John Criswell7a73b802003-06-30 21:59:07 +00003687continue
3688fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003696$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003697int
3698main ()
3699{
3700exit (42);
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705rm -f conftest.$ac_objext
3706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003707 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 break
3728else
3729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003730sed 's/^/| /' conftest.$ac_ext >&5
3731
John Criswell7a73b802003-06-30 21:59:07 +00003732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003734done
3735rm -f conftest*
3736if test -n "$ac_declaration"; then
3737 echo '#ifdef __cplusplus' >>confdefs.h
3738 echo $ac_declaration >>confdefs.h
3739 echo '#endif' >>confdefs.h
3740fi
3741
3742else
3743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003744sed 's/^/| /' conftest.$ac_ext >&5
3745
John Criswell7a73b802003-06-30 21:59:07 +00003746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003748ac_ext=c
3749ac_cpp='$CPP $CPPFLAGS'
3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003754ac_ext=cc
3755ac_cpp='$CXXCPP $CPPFLAGS'
3756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759if test -n "$ac_tool_prefix"; then
3760 for ac_prog in $CCC g++
3761 do
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764echo "$as_me:$LINENO: checking for $ac_word" >&5
3765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003769 if test -n "$CXX"; then
3770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003774do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784done
3785
3786fi
3787fi
3788CXX=$ac_cv_prog_CXX
3789if test -n "$CXX"; then
3790 echo "$as_me:$LINENO: result: $CXX" >&5
3791echo "${ECHO_T}$CXX" >&6
3792else
3793 echo "$as_me:$LINENO: result: no" >&5
3794echo "${ECHO_T}no" >&6
3795fi
3796
3797 test -n "$CXX" && break
3798 done
3799fi
3800if test -z "$CXX"; then
3801 ac_ct_CXX=$CXX
3802 for ac_prog in $CCC g++
3803do
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805set dummy $ac_prog; ac_word=$2
3806echo "$as_me:$LINENO: checking for $ac_word" >&5
3807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 if test -n "$ac_ct_CXX"; then
3812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_CXX="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825done
3826done
3827
3828fi
3829fi
3830ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831if test -n "$ac_ct_CXX"; then
3832 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833echo "${ECHO_T}$ac_ct_CXX" >&6
3834else
3835 echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6
3837fi
3838
3839 test -n "$ac_ct_CXX" && break
3840done
3841test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3842
3843 CXX=$ac_ct_CXX
3844fi
3845
3846
3847# Provide some information about the compiler.
3848echo "$as_me:$LINENO:" \
3849 "checking for C++ compiler version" >&5
3850ac_compiler=`set X $ac_compile; echo $2`
3851{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852 (eval $ac_compiler --version </dev/null >&5) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857 (eval $ac_compiler -v </dev/null >&5) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }
3861{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862 (eval $ac_compiler -V </dev/null >&5) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3866
3867echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
John Criswell7a73b802003-06-30 21:59:07 +00003872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003878
3879int
3880main ()
3881{
3882#ifndef __GNUC__
3883 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003884#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003885
3886 ;
3887 return 0;
3888}
John Criswell7a73b802003-06-30 21:59:07 +00003889_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003890rm -f conftest.$ac_objext
3891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003893 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003894 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_cxx_werror_flag"
3900 || test ! -s conftest.err'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_compiler_gnu=yes
3913else
3914 echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917ac_compiler_gnu=no
3918fi
3919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3921
3922fi
3923echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925GXX=`test $ac_compiler_gnu = yes && echo yes`
3926ac_test_CXXFLAGS=${CXXFLAGS+set}
3927ac_save_CXXFLAGS=$CXXFLAGS
3928CXXFLAGS="-g"
3929echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931if test "${ac_cv_prog_cxx_g+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940
3941int
3942main ()
3943{
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_prog_cxx_g=yes
3972else
3973 echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976ac_cv_prog_cxx_g=no
3977fi
3978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979fi
3980echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982if test "$ac_test_CXXFLAGS" = set; then
3983 CXXFLAGS=$ac_save_CXXFLAGS
3984elif test $ac_cv_prog_cxx_g = yes; then
3985 if test "$GXX" = yes; then
3986 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003987 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003988 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003989 fi
3990else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003991 if test "$GXX" = yes; then
3992 CXXFLAGS="-O2"
3993 else
3994 CXXFLAGS=
3995 fi
John Criswell7a73b802003-06-30 21:59:07 +00003996fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003997for ac_declaration in \
3998 '' \
3999 'extern "C" void std::exit (int) throw (); using std::exit;' \
4000 'extern "C" void std::exit (int); using std::exit;' \
4001 'extern "C" void exit (int) throw ();' \
4002 'extern "C" void exit (int);' \
4003 'void exit (int);'
4004do
4005 cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h. */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h. */
4011$ac_declaration
4012#include <stdlib.h>
4013int
4014main ()
4015{
4016exit (42);
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_cxx_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004043 :
4044else
4045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004046sed 's/^/| /' conftest.$ac_ext >&5
4047
John Criswell7a73b802003-06-30 21:59:07 +00004048continue
4049fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004052/* confdefs.h. */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004057$ac_declaration
4058int
4059main ()
4060{
4061exit (42);
4062 ;
4063 return 0;
4064}
John Criswell7a73b802003-06-30 21:59:07 +00004065_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004066rm -f conftest.$ac_objext
4067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004069 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004070 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_cxx_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004088 break
John Criswell7a73b802003-06-30 21:59:07 +00004089else
4090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004091sed 's/^/| /' conftest.$ac_ext >&5
4092
John Criswell7a73b802003-06-30 21:59:07 +00004093fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004095done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004096rm -f conftest*
4097if test -n "$ac_declaration"; then
4098 echo '#ifdef __cplusplus' >>confdefs.h
4099 echo $ac_declaration >>confdefs.h
4100 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004101fi
4102
4103ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
John Criswell7a73b802003-06-30 21:59:07 +00004109echo "$as_me:$LINENO: checking " >&5
4110echo $ECHO_N "checking ... $ECHO_C" >&6
4111if test "${ac_cv_has_flex+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 for ac_prog in flex lex
4115do
4116 # Extract the first word of "$ac_prog", so it can be a program name with args.
4117set dummy $ac_prog; ac_word=$2
4118echo "$as_me:$LINENO: checking for $ac_word" >&5
4119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120if test "${ac_cv_prog_LEX+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 if test -n "$LEX"; then
4124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_LEX="$ac_prog"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137done
4138done
4139
4140fi
4141fi
4142LEX=$ac_cv_prog_LEX
4143if test -n "$LEX"; then
4144 echo "$as_me:$LINENO: result: $LEX" >&5
4145echo "${ECHO_T}$LEX" >&6
4146else
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
4149fi
4150
4151 test -n "$LEX" && break
4152done
4153test -n "$LEX" || LEX=":"
4154
4155if test -z "$LEXLIB"
4156then
4157 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162 ac_check_lib_save_LIBS=$LIBS
4163LIBS="-lfl $LIBS"
4164cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004170
4171/* Override any gcc2 internal prototype to avoid an error. */
4172#ifdef __cplusplus
4173extern "C"
4174#endif
4175/* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4177char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004178int
4179main ()
4180{
4181yywrap ();
4182 ;
4183 return 0;
4184}
4185_ACEOF
4186rm -f conftest.$ac_objext conftest$ac_exeext
4187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004188 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004189 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_cv_lib_fl_yywrap=yes
4209else
4210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004211sed 's/^/| /' conftest.$ac_ext >&5
4212
John Criswell7a73b802003-06-30 21:59:07 +00004213ac_cv_lib_fl_yywrap=no
4214fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004215rm -f conftest.err conftest.$ac_objext \
4216 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004217LIBS=$ac_check_lib_save_LIBS
4218fi
4219echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4220echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4221if test $ac_cv_lib_fl_yywrap = yes; then
4222 LEXLIB="-lfl"
4223else
4224 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4225echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4226if test "${ac_cv_lib_l_yywrap+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 ac_check_lib_save_LIBS=$LIBS
4230LIBS="-ll $LIBS"
4231cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004237
4238/* Override any gcc2 internal prototype to avoid an error. */
4239#ifdef __cplusplus
4240extern "C"
4241#endif
4242/* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004245int
4246main ()
4247{
4248yywrap ();
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext conftest$ac_exeext
4254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004255 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_lib_l_yywrap=yes
4276else
4277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004278sed 's/^/| /' conftest.$ac_ext >&5
4279
John Criswell7a73b802003-06-30 21:59:07 +00004280ac_cv_lib_l_yywrap=no
4281fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004282rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004284LIBS=$ac_check_lib_save_LIBS
4285fi
4286echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4287echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4288if test $ac_cv_lib_l_yywrap = yes; then
4289 LEXLIB="-ll"
4290fi
4291
4292fi
4293
4294fi
4295
4296if test "x$LEX" != "x:"; then
4297 echo "$as_me:$LINENO: checking lex output file root" >&5
4298echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4299if test "${ac_cv_prog_lex_root+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302 # The minimal lex program is just a single line: %%. But some broken lexes
4303# (Solaris, I think it was) want two %% lines, so accommodate them.
4304cat >conftest.l <<_ACEOF
4305%%
4306%%
4307_ACEOF
4308{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4309 (eval $LEX conftest.l) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }
4313if test -f lex.yy.c; then
4314 ac_cv_prog_lex_root=lex.yy
4315elif test -f lexyy.c; then
4316 ac_cv_prog_lex_root=lexyy
4317else
4318 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4319echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4320 { (exit 1); exit 1; }; }
4321fi
4322fi
4323echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4324echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4325rm -f conftest.l
4326LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4327
4328echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4329echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4330if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332else
4333 # POSIX says lex can declare yytext either as a pointer or an array; the
4334# default is implementation-dependent. Figure out which it is, since
4335# not all implementations provide the %pointer and %array declarations.
4336ac_cv_prog_lex_yytext_pointer=no
4337echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4338ac_save_LIBS=$LIBS
4339LIBS="$LIBS $LEXLIB"
4340cat >conftest.$ac_ext <<_ACEOF
4341`cat $LEX_OUTPUT_ROOT.c`
4342_ACEOF
4343rm -f conftest.$ac_objext conftest$ac_exeext
4344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004345 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004347 grep -v '^ *+' conftest.er1 >conftest.err
4348 rm -f conftest.er1
4349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_prog_lex_yytext_pointer=yes
4366else
4367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004368sed 's/^/| /' conftest.$ac_ext >&5
4369
John Criswell7a73b802003-06-30 21:59:07 +00004370fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004371rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004373LIBS=$ac_save_LIBS
4374rm -f "${LEX_OUTPUT_ROOT}.c"
4375
4376fi
4377echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4378echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4379if test $ac_cv_prog_lex_yytext_pointer = yes; then
4380
4381cat >>confdefs.h <<\_ACEOF
4382#define YYTEXT_POINTER 1
4383_ACEOF
4384
4385fi
4386
4387fi
4388
4389fi
4390echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4391echo "${ECHO_T}$ac_cv_has_flex" >&6
4392if test "$LEX" != "flex"; then
4393 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4394echo "$as_me: error: flex not found but required" >&2;}
4395 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004396else
4397 FLEX=flex
4398
John Criswell7a73b802003-06-30 21:59:07 +00004399fi
4400
4401echo "$as_me:$LINENO: checking " >&5
4402echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004403if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406 for ac_prog in 'bison -y' byacc
4407do
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409set dummy $ac_prog; ac_word=$2
4410echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412if test "${ac_cv_prog_YACC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 if test -n "$YACC"; then
4416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_YACC="$ac_prog"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429done
4430done
4431
4432fi
4433fi
4434YACC=$ac_cv_prog_YACC
4435if test -n "$YACC"; then
4436 echo "$as_me:$LINENO: result: $YACC" >&5
4437echo "${ECHO_T}$YACC" >&6
4438else
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
4441fi
4442
4443 test -n "$YACC" && break
4444done
4445test -n "$YACC" || YACC="yacc"
4446
4447
4448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004449echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004451if test "$YACC" != "bison -y"; then
4452 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453echo "$as_me: error: bison not found but required" >&2;}
4454 { (exit 1); exit 1; }; }
4455else
Brian Gaeke12810632004-01-13 06:52:10 +00004456 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004457
4458fi
4459
Reid Spencer17795972004-11-18 09:47:37 +00004460
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004461echo "$as_me:$LINENO: checking for GNU make" >&5
4462echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4463if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004466 llvm_cv_gnu_make_command=''
4467 for a in "$MAKE" make gmake gnumake ; do
4468 if test -z "$a" ; then continue ; fi ;
4469 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470 then
4471 llvm_cv_gnu_make_command=$a ;
4472 break;
John Criswell47fdd832003-07-14 16:52:07 +00004473 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004474 done
John Criswell7a73b802003-06-30 21:59:07 +00004475fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004476echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4477echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4478 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4479 ifGNUmake='' ;
4480 else
4481 ifGNUmake='#' ;
4482 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4483echo "${ECHO_T}\"Not found\"" >&6;
4484 fi
John Criswell7a73b802003-06-30 21:59:07 +00004485
John Criswell7a73b802003-06-30 21:59:07 +00004486
4487echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489LN_S=$as_ln_s
4490if test "$LN_S" = "ln -s"; then
4491 echo "$as_me:$LINENO: result: yes" >&5
4492echo "${ECHO_T}yes" >&6
4493else
4494 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495echo "${ECHO_T}no, using $LN_S" >&6
4496fi
4497
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004498# Extract the first word of "date", so it can be a program name with args.
4499set dummy date; ac_word=$2
4500echo "$as_me:$LINENO: checking for $ac_word" >&5
4501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004505 case $DATE in
4506 [\\/]* | ?:[\\/]*)
4507 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004508 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004509 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004520 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004521done
4522done
John Criswell7a73b802003-06-30 21:59:07 +00004523
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004524 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004525 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004526esac
John Criswell7a73b802003-06-30 21:59:07 +00004527fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004528DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004529
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004530if test -n "$DATE"; then
4531 echo "$as_me:$LINENO: result: $DATE" >&5
4532echo "${ECHO_T}$DATE" >&6
4533else
4534 echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6
4536fi
John Criswell7a73b802003-06-30 21:59:07 +00004537
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004538# Extract the first word of "find", so it can be a program name with args.
4539set dummy find; ac_word=$2
4540echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004545 case $FIND in
4546 [\\/]* | ?:[\\/]*)
4547 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4548 ;;
4549 *)
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
4562done
4563
4564 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4565 ;;
4566esac
4567fi
4568FIND=$ac_cv_path_FIND
4569
4570if test -n "$FIND"; then
4571 echo "$as_me:$LINENO: result: $FIND" >&5
4572echo "${ECHO_T}$FIND" >&6
4573else
4574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576fi
4577
4578# Extract the first word of "grep", so it can be a program name with args.
4579set dummy grep; ac_word=$2
4580echo "$as_me:$LINENO: checking for $ac_word" >&5
4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582if test "${ac_cv_path_GREP+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 case $GREP in
4586 [\\/]* | ?:[\\/]*)
4587 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4588 ;;
4589 *)
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602done
4603
4604 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4605 ;;
4606esac
4607fi
4608GREP=$ac_cv_path_GREP
4609
4610if test -n "$GREP"; then
4611 echo "$as_me:$LINENO: result: $GREP" >&5
4612echo "${ECHO_T}$GREP" >&6
4613else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
4617
4618# Extract the first word of "mkdir", so it can be a program name with args.
4619set dummy mkdir; ac_word=$2
4620echo "$as_me:$LINENO: checking for $ac_word" >&5
4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622if test "${ac_cv_path_MKDIR+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625 case $MKDIR in
4626 [\\/]* | ?:[\\/]*)
4627 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4628 ;;
4629 *)
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641done
4642done
4643
4644 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4645 ;;
4646esac
4647fi
4648MKDIR=$ac_cv_path_MKDIR
4649
4650if test -n "$MKDIR"; then
4651 echo "$as_me:$LINENO: result: $MKDIR" >&5
4652echo "${ECHO_T}$MKDIR" >&6
4653else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656fi
4657
4658# Extract the first word of "mv", so it can be a program name with args.
4659set dummy mv; ac_word=$2
4660echo "$as_me:$LINENO: checking for $ac_word" >&5
4661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662if test "${ac_cv_path_MV+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665 case $MV in
4666 [\\/]* | ?:[\\/]*)
4667 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4668 ;;
4669 *)
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682done
4683
4684 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4685 ;;
4686esac
4687fi
4688MV=$ac_cv_path_MV
4689
4690if test -n "$MV"; then
4691 echo "$as_me:$LINENO: result: $MV" >&5
4692echo "${ECHO_T}$MV" >&6
4693else
4694 echo "$as_me:$LINENO: result: no" >&5
4695echo "${ECHO_T}no" >&6
4696fi
4697
4698# Extract the first word of "pax", so it can be a program name with args.
4699set dummy pax; ac_word=$2
4700echo "$as_me:$LINENO: checking for $ac_word" >&5
4701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702if test "${ac_cv_path_PAX+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705 case $PAX in
4706 [\\/]* | ?:[\\/]*)
4707 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4708 ;;
4709 *)
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721done
4722done
4723
4724 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4725 ;;
4726esac
4727fi
4728PAX=$ac_cv_path_PAX
4729
4730if test -n "$PAX"; then
4731 echo "$as_me:$LINENO: result: $PAX" >&5
4732echo "${ECHO_T}$PAX" >&6
4733else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736fi
4737
4738if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743if test "${ac_cv_prog_RANLIB+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 if test -n "$RANLIB"; then
4747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763fi
4764fi
4765RANLIB=$ac_cv_prog_RANLIB
4766if test -n "$RANLIB"; then
4767 echo "$as_me:$LINENO: result: $RANLIB" >&5
4768echo "${ECHO_T}$RANLIB" >&6
4769else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774fi
4775if test -z "$ac_cv_prog_RANLIB"; then
4776 ac_ct_RANLIB=$RANLIB
4777 # Extract the first word of "ranlib", so it can be a program name with args.
4778set dummy ranlib; ac_word=$2
4779echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 if test -n "$ac_ct_RANLIB"; then
4785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_ac_ct_RANLIB="ranlib"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799done
4800
4801 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4802fi
4803fi
4804ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805if test -n "$ac_ct_RANLIB"; then
4806 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4807echo "${ECHO_T}$ac_ct_RANLIB" >&6
4808else
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811fi
4812
4813 RANLIB=$ac_ct_RANLIB
4814else
4815 RANLIB="$ac_cv_prog_RANLIB"
4816fi
4817
4818# Extract the first word of "rm", so it can be a program name with args.
4819set dummy rm; ac_word=$2
4820echo "$as_me:$LINENO: checking for $ac_word" >&5
4821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822if test "${ac_cv_path_RM+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825 case $RM in
4826 [\\/]* | ?:[\\/]*)
4827 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4828 ;;
4829 *)
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842done
4843
4844 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4845 ;;
4846esac
4847fi
4848RM=$ac_cv_path_RM
4849
4850if test -n "$RM"; then
4851 echo "$as_me:$LINENO: result: $RM" >&5
4852echo "${ECHO_T}$RM" >&6
4853else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856fi
4857
4858# Extract the first word of "sed", so it can be a program name with args.
4859set dummy sed; ac_word=$2
4860echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862if test "${ac_cv_path_SED+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 case $SED in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883
4884 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4885 ;;
4886esac
4887fi
4888SED=$ac_cv_path_SED
4889
4890if test -n "$SED"; then
4891 echo "$as_me:$LINENO: result: $SED" >&5
4892echo "${ECHO_T}$SED" >&6
4893else
4894 echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6
4896fi
4897
4898# Extract the first word of "tar", so it can be a program name with args.
4899set dummy tar; ac_word=$2
4900echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902if test "${ac_cv_path_TAR+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 case $TAR in
4906 [\\/]* | ?:[\\/]*)
4907 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4908 ;;
4909 *)
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922done
4923
4924 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4925 ;;
4926esac
4927fi
4928TAR=$ac_cv_path_TAR
4929
4930if test -n "$TAR"; then
4931 echo "$as_me:$LINENO: result: $TAR" >&5
4932echo "${ECHO_T}$TAR" >&6
4933else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938
4939# Find a good install program. We prefer a C program (faster),
4940# so one script is as good as another. But avoid the broken or
4941# incompatible versions:
4942# SysV /etc/install, /usr/sbin/install
4943# SunOS /usr/etc/install
4944# IRIX /sbin/install
4945# AIX /bin/install
4946# AmigaOS /C/install, which installs bootblocks on floppy discs
4947# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950# OS/2's system install, which has a completely different semantic
4951# ./install, which can be erroneously created by make from ./install.sh.
4952echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4953echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4954if test -z "$INSTALL"; then
4955if test "${ac_cv_path_install+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 # Account for people who put trailing slashes in PATH elements.
4964case $as_dir/ in
4965 ./ | .// | /cC/* | \
4966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4968 /usr/ucb/* ) ;;
4969 *)
4970 # OSF1 and SCO ODT 3.0 have their own names for install.
4971 # Don't use installbsd from OSF since it installs stuff as root
4972 # by default.
4973 for ac_prog in ginstall scoinst install; do
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4976 if test $ac_prog = install &&
4977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978 # AIX install. It has an incompatible calling convention.
4979 :
4980 elif test $ac_prog = install &&
4981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4982 # program-specific install script used by HP pwplus--don't use.
4983 :
4984 else
4985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4986 break 3
4987 fi
4988 fi
4989 done
4990 done
4991 ;;
4992esac
4993done
4994
4995
4996fi
4997 if test "${ac_cv_path_install+set}" = set; then
4998 INSTALL=$ac_cv_path_install
4999 else
5000 # As a last resort, use the slow shell script. We don't cache a
5001 # path for INSTALL within a source directory, because that will
5002 # break other packages using the cache if that directory is
5003 # removed, or if the path is relative.
5004 INSTALL=$ac_install_sh
5005 fi
5006fi
5007echo "$as_me:$LINENO: result: $INSTALL" >&5
5008echo "${ECHO_T}$INSTALL" >&6
5009
5010# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5011# It thinks the first close brace ends the variable substitution.
5012test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5013
5014test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5015
5016test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5017
5018
5019# Extract the first word of "bzip2", so it can be a program name with args.
5020set dummy bzip2; ac_word=$2
5021echo "$as_me:$LINENO: checking for $ac_word" >&5
5022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023if test "${ac_cv_path_BZIP2+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 case $BZIP2 in
5027 [\\/]* | ?:[\\/]*)
5028 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5029 ;;
5030 *)
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043done
5044
5045 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5046 ;;
5047esac
5048fi
5049BZIP2=$ac_cv_path_BZIP2
5050
5051if test -n "$BZIP2"; then
5052 echo "$as_me:$LINENO: result: $BZIP2" >&5
5053echo "${ECHO_T}$BZIP2" >&6
5054else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057fi
5058
5059# Extract the first word of "dot", so it can be a program name with args.
5060set dummy dot; ac_word=$2
5061echo "$as_me:$LINENO: checking for $ac_word" >&5
5062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063if test "${ac_cv_path_DOT+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 case $DOT in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5069 ;;
5070 *)
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082done
5083done
5084
5085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5086 ;;
5087esac
5088fi
5089DOT=$ac_cv_path_DOT
5090
5091if test -n "$DOT"; then
5092 echo "$as_me:$LINENO: result: $DOT" >&5
5093echo "${ECHO_T}$DOT" >&6
5094else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097fi
5098
5099# Extract the first word of "doxygen", so it can be a program name with args.
5100set dummy doxygen; ac_word=$2
5101echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103if test "${ac_cv_path_DOXYGEN+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106 case $DOXYGEN in
5107 [\\/]* | ?:[\\/]*)
5108 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5109 ;;
5110 *)
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122done
5123done
5124
5125 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5126 ;;
5127esac
5128fi
5129DOXYGEN=$ac_cv_path_DOXYGEN
5130
5131if test -n "$DOXYGEN"; then
5132 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5133echo "${ECHO_T}$DOXYGEN" >&6
5134else
5135 echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137fi
5138
5139# Extract the first word of "etags", so it can be a program name with args.
5140set dummy etags; ac_word=$2
5141echo "$as_me:$LINENO: checking for $ac_word" >&5
5142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143if test "${ac_cv_path_ETAGS+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 case $ETAGS in
5147 [\\/]* | ?:[\\/]*)
5148 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5149 ;;
5150 *)
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163done
5164
5165 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5166 ;;
5167esac
5168fi
5169ETAGS=$ac_cv_path_ETAGS
5170
5171if test -n "$ETAGS"; then
5172 echo "$as_me:$LINENO: result: $ETAGS" >&5
5173echo "${ECHO_T}$ETAGS" >&6
5174else
5175 echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177fi
5178
5179# Extract the first word of "groff", so it can be a program name with args.
5180set dummy groff; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_path_GROFF+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 case $GROFF in
5187 [\\/]* | ?:[\\/]*)
5188 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5189 ;;
5190 *)
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203done
5204
5205 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5206 ;;
5207esac
5208fi
5209GROFF=$ac_cv_path_GROFF
5210
5211if test -n "$GROFF"; then
5212 echo "$as_me:$LINENO: result: $GROFF" >&5
5213echo "${ECHO_T}$GROFF" >&6
5214else
5215 echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6
5217fi
5218
5219# Extract the first word of "gzip", so it can be a program name with args.
5220set dummy gzip; ac_word=$2
5221echo "$as_me:$LINENO: checking for $ac_word" >&5
5222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223if test "${ac_cv_path_GZIP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226 case $GZIP in
5227 [\\/]* | ?:[\\/]*)
5228 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5229 ;;
5230 *)
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244
5245 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5246 ;;
5247esac
5248fi
5249GZIP=$ac_cv_path_GZIP
5250
5251if test -n "$GZIP"; then
5252 echo "$as_me:$LINENO: result: $GZIP" >&5
5253echo "${ECHO_T}$GZIP" >&6
5254else
5255 echo "$as_me:$LINENO: result: no" >&5
5256echo "${ECHO_T}no" >&6
5257fi
5258
5259# Extract the first word of "pod2html", so it can be a program name with args.
5260set dummy pod2html; ac_word=$2
5261echo "$as_me:$LINENO: checking for $ac_word" >&5
5262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263if test "${ac_cv_path_POD2HTML+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266 case $POD2HTML in
5267 [\\/]* | ?:[\\/]*)
5268 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5269 ;;
5270 *)
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282done
5283done
5284
5285 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5286 ;;
5287esac
5288fi
5289POD2HTML=$ac_cv_path_POD2HTML
5290
5291if test -n "$POD2HTML"; then
5292 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5293echo "${ECHO_T}$POD2HTML" >&6
5294else
5295 echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297fi
5298
5299# Extract the first word of "pod2man", so it can be a program name with args.
5300set dummy pod2man; ac_word=$2
5301echo "$as_me:$LINENO: checking for $ac_word" >&5
5302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303if test "${ac_cv_path_POD2MAN+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306 case $POD2MAN in
5307 [\\/]* | ?:[\\/]*)
5308 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5309 ;;
5310 *)
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322done
5323done
5324
5325 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5326 ;;
5327esac
5328fi
5329POD2MAN=$ac_cv_path_POD2MAN
5330
5331if test -n "$POD2MAN"; then
5332 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5333echo "${ECHO_T}$POD2MAN" >&6
5334else
5335 echo "$as_me:$LINENO: result: no" >&5
5336echo "${ECHO_T}no" >&6
5337fi
5338
5339# Extract the first word of "python", so it can be a program name with args.
5340set dummy python; ac_word=$2
5341echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343if test "${ac_cv_path_PYTHON+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346 case $PYTHON in
5347 [\\/]* | ?:[\\/]*)
5348 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5349 ;;
5350 *)
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362done
5363done
5364
5365 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
5366 ;;
5367esac
5368fi
5369PYTHON=$ac_cv_path_PYTHON
5370
5371if test -n "$PYTHON"; then
5372 echo "$as_me:$LINENO: result: $PYTHON" >&5
5373echo "${ECHO_T}$PYTHON" >&6
5374else
5375 echo "$as_me:$LINENO: result: no" >&5
5376echo "${ECHO_T}no" >&6
5377fi
5378
5379# Extract the first word of "qmtest", so it can be a program name with args.
5380set dummy qmtest; ac_word=$2
5381echo "$as_me:$LINENO: checking for $ac_word" >&5
5382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383if test "${ac_cv_path_QMTEST+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386 case $QMTEST in
5387 [\\/]* | ?:[\\/]*)
5388 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
5389 ;;
5390 *)
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402done
5403done
5404
5405 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
5406 ;;
5407esac
5408fi
5409QMTEST=$ac_cv_path_QMTEST
5410
5411if test -n "$QMTEST"; then
5412 echo "$as_me:$LINENO: result: $QMTEST" >&5
5413echo "${ECHO_T}$QMTEST" >&6
5414else
5415 echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417fi
5418
5419# Extract the first word of "runtest", so it can be a program name with args.
5420set dummy runtest; ac_word=$2
5421echo "$as_me:$LINENO: checking for $ac_word" >&5
5422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423if test "${ac_cv_path_RUNTEST+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426 case $RUNTEST in
5427 [\\/]* | ?:[\\/]*)
5428 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5429 ;;
5430 *)
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442done
5443done
5444
5445 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5446 ;;
5447esac
5448fi
5449RUNTEST=$ac_cv_path_RUNTEST
5450
5451if test -n "$RUNTEST"; then
5452 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5453echo "${ECHO_T}$RUNTEST" >&6
5454else
5455 echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6
5457fi
5458
Reid Spencer0fcb9412004-11-30 08:11:54 +00005459
Reid Spencer0fcb9412004-11-30 08:11:54 +00005460no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005461echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5462echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005463
5464# Check whether --with-tclinclude or --without-tclinclude was given.
5465if test "${with_tclinclude+set}" = set; then
5466 withval="$with_tclinclude"
5467 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005468else
5469 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005470fi;
5471if test "${ac_cv_path_tclsh+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474
5475if test x"${with_tclinclude}" != x ; then
5476 if test -f ${with_tclinclude}/tclsh ; then
5477 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5478 elif test -f ${with_tclinclude}/src/tclsh ; then
5479 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5480 else
5481 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5482echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5483 { (exit 1); exit 1; }; }
5484 fi
5485fi
5486
Reid Spencer0fcb9412004-11-30 08:11:54 +00005487if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005488 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005489echo "${ECHO_T}none" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005490 for ac_prog in tclsh tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 .tclsh8.3.2 tclsh8.3.1 tclsh8.3.0
5491do
5492 # Extract the first word of "$ac_prog", so it can be a program name with args.
5493set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005494echo "$as_me:$LINENO: checking for $ac_word" >&5
5495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005496if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498else
Reid Spencercda35f82004-12-02 04:17:20 +00005499 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005500 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005501 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005502 ;;
5503 *)
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005511 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515done
5516done
5517
5518 ;;
5519esac
5520fi
Reid Spencercda35f82004-12-02 04:17:20 +00005521TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005522
Reid Spencercda35f82004-12-02 04:17:20 +00005523if test -n "$TCLSH"; then
5524 echo "$as_me:$LINENO: result: $TCLSH" >&5
5525echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005526else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529fi
5530
Reid Spencercda35f82004-12-02 04:17:20 +00005531 test -n "$TCLSH" && break
5532done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005533
Reid Spencercda35f82004-12-02 04:17:20 +00005534 if test x"${TCLSH}" = x ; then
5535 ac_cv_path_tclsh='';
5536 else
5537 ac_cv_path_tclsh="${TCLSH}";
5538 fi
5539else
5540 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5541echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5542 TCLSH="${ac_cv_path_tclsh}"
5543
5544fi
5545
5546fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005547
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005548# Extract the first word of "zip", so it can be a program name with args.
5549set dummy zip; ac_word=$2
5550echo "$as_me:$LINENO: checking for $ac_word" >&5
5551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552if test "${ac_cv_path_ZIP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555 case $ZIP in
5556 [\\/]* | ?:[\\/]*)
5557 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5558 ;;
5559 *)
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571done
5572done
5573
5574 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5575 ;;
5576esac
5577fi
5578ZIP=$ac_cv_path_ZIP
5579
5580if test -n "$ZIP"; then
5581 echo "$as_me:$LINENO: result: $ZIP" >&5
5582echo "${ECHO_T}$ZIP" >&6
5583else
5584 echo "$as_me:$LINENO: result: no" >&5
5585echo "${ECHO_T}no" >&6
5586fi
5587
5588
5589echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5590echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5591if test "${llvm_cv_link_use_r+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005595ac_cpp='$CPP $CPPFLAGS'
5596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598ac_compiler_gnu=$ac_cv_c_compiler_gnu
5599
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005600 oldcflags="$CFLAGS"
5601 CFLAGS="$CFLAGS -Wl,-R."
5602 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005603/* confdefs.h. */
5604_ACEOF
5605cat confdefs.h >>conftest.$ac_ext
5606cat >>conftest.$ac_ext <<_ACEOF
5607/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005608
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005609int
5610main ()
5611{
5612int main() { return 0; }
5613 ;
5614 return 0;
5615}
John Criswell47fdd832003-07-14 16:52:07 +00005616_ACEOF
5617rm -f conftest.$ac_objext conftest$ac_exeext
5618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005619 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005626 { ac_try='test -z "$ac_c_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005639 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005640else
John Criswell47fdd832003-07-14 16:52:07 +00005641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005642sed 's/^/| /' conftest.$ac_ext >&5
5643
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005644llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005645fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005646rm -f conftest.err conftest.$ac_objext \
5647 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005648 CFLAGS="$oldcflags"
5649 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005650ac_cpp='$CPP $CPPFLAGS'
5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005655
John Criswell7a73b802003-06-30 21:59:07 +00005656fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005657echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5658echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5659if test "$llvm_cv_link_use_r" = yes ; then
5660
5661cat >>confdefs.h <<\_ACEOF
5662#define HAVE_LINK_R 1
5663_ACEOF
5664
John Criswell47fdd832003-07-14 16:52:07 +00005665 fi
John Criswell47fdd832003-07-14 16:52:07 +00005666
John Criswell47fdd832003-07-14 16:52:07 +00005667
John Criswell47fdd832003-07-14 16:52:07 +00005668
John Criswell7a73b802003-06-30 21:59:07 +00005669
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005670echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5671echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5672if test "${ac_cv_c_const+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675 cat >conftest.$ac_ext <<_ACEOF
5676/* confdefs.h. */
5677_ACEOF
5678cat confdefs.h >>conftest.$ac_ext
5679cat >>conftest.$ac_ext <<_ACEOF
5680/* end confdefs.h. */
5681
5682int
5683main ()
5684{
5685/* FIXME: Include the comments suggested by Paul. */
5686#ifndef __cplusplus
5687 /* Ultrix mips cc rejects this. */
5688 typedef int charset[2];
5689 const charset x;
5690 /* SunOS 4.1.1 cc rejects this. */
5691 char const *const *ccp;
5692 char **p;
5693 /* NEC SVR4.0.2 mips cc rejects this. */
5694 struct point {int x, y;};
5695 static struct point const zero = {0,0};
5696 /* AIX XL C 1.02.0.0 rejects this.
5697 It does not let you subtract one const X* pointer from another in
5698 an arm of an if-expression whose if-part is not a constant
5699 expression */
5700 const char *g = "string";
5701 ccp = &g + (g ? g-g : 0);
5702 /* HPUX 7.0 cc rejects these. */
5703 ++ccp;
5704 p = (char**) ccp;
5705 ccp = (char const *const *) p;
5706 { /* SCO 3.2v4 cc rejects this. */
5707 char *t;
5708 char const *s = 0 ? (char *) 0 : (char const *) 0;
5709
5710 *t++ = 0;
5711 }
5712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5713 int x[] = {25, 17};
5714 const int *foo = &x[0];
5715 ++foo;
5716 }
5717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5718 typedef const int *iptr;
5719 iptr p = 0;
5720 ++p;
5721 }
5722 { /* AIX XL C 1.02.0.0 rejects this saying
5723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5724 struct s { int j; const int *ap[3]; };
5725 struct s *b; b->j = 5;
5726 }
5727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5728 const int foo = 10;
5729 }
5730#endif
5731
5732 ;
5733 return 0;
5734}
5735_ACEOF
5736rm -f conftest.$ac_objext
5737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest.$ac_objext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_c_const=yes
5759else
5760 echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763ac_cv_c_const=no
5764fi
5765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766fi
5767echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5768echo "${ECHO_T}$ac_cv_c_const" >&6
5769if test $ac_cv_c_const = no; then
5770
5771cat >>confdefs.h <<\_ACEOF
5772#define const
5773_ACEOF
5774
5775fi
5776
5777
5778echo "$as_me:$LINENO: checking for egrep" >&5
5779echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5780if test "${ac_cv_prog_egrep+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5784 then ac_cv_prog_egrep='grep -E'
5785 else ac_cv_prog_egrep='egrep'
5786 fi
5787fi
5788echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5789echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5790 EGREP=$ac_cv_prog_egrep
5791
John Criswell7a73b802003-06-30 21:59:07 +00005792
5793echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5794echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5795if test "${ac_cv_header_stdc+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005799/* confdefs.h. */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005804#include <stdlib.h>
5805#include <stdarg.h>
5806#include <string.h>
5807#include <float.h>
5808
John Criswell0c38eaf2003-09-10 15:17:25 +00005809int
5810main ()
5811{
5812
5813 ;
5814 return 0;
5815}
John Criswell7a73b802003-06-30 21:59:07 +00005816_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005817rm -f conftest.$ac_objext
5818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005819 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005820 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005825 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005826 { ac_try='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005839 ac_cv_header_stdc=yes
5840else
5841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005845fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005847
5848if test $ac_cv_header_stdc = yes; then
5849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5850 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005856#include <string.h>
5857
5858_ACEOF
5859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005860 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005861 :
5862else
5863 ac_cv_header_stdc=no
5864fi
5865rm -f conftest*
5866
5867fi
5868
5869if test $ac_cv_header_stdc = yes; then
5870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5871 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005872/* confdefs.h. */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
5876/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005877#include <stdlib.h>
5878
5879_ACEOF
5880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005881 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005882 :
5883else
5884 ac_cv_header_stdc=no
5885fi
5886rm -f conftest*
5887
5888fi
5889
5890if test $ac_cv_header_stdc = yes; then
5891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5892 if test "$cross_compiling" = yes; then
5893 :
5894else
5895 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005901#include <ctype.h>
5902#if ((' ' & 0x0FF) == 0x020)
5903# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5904# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5905#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005906# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005907 (('a' <= (c) && (c) <= 'i') \
5908 || ('j' <= (c) && (c) <= 'r') \
5909 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005910# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5911#endif
5912
5913#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5914int
5915main ()
5916{
5917 int i;
5918 for (i = 0; i < 256; i++)
5919 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005920 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005921 exit(2);
5922 exit (0);
5923}
5924_ACEOF
5925rm -f conftest$ac_exeext
5926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5927 (eval $ac_link) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 :
5937else
5938 echo "$as_me: program exited with status $ac_status" >&5
5939echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005940sed 's/^/| /' conftest.$ac_ext >&5
5941
John Criswell7a73b802003-06-30 21:59:07 +00005942( exit $ac_status )
5943ac_cv_header_stdc=no
5944fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005946fi
5947fi
5948fi
5949echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5950echo "${ECHO_T}$ac_cv_header_stdc" >&6
5951if test $ac_cv_header_stdc = yes; then
5952
5953cat >>confdefs.h <<\_ACEOF
5954#define STDC_HEADERS 1
5955_ACEOF
5956
5957fi
5958
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005959
5960
5961
5962
5963
5964ac_header_dirent=no
5965for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5966 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5967echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5968echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5969if eval "test \"\${$as_ac_Header+set}\" = set"; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972 cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h. */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h. */
5978#include <sys/types.h>
5979#include <$ac_hdr>
5980
5981int
5982main ()
5983{
5984if ((DIR *) 0)
5985return 0;
5986 ;
5987 return 0;
5988}
5989_ACEOF
5990rm -f conftest.$ac_objext
5991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 eval "$as_ac_Header=yes"
6013else
6014 echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017eval "$as_ac_Header=no"
6018fi
6019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020fi
6021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6023if test `eval echo '${'$as_ac_Header'}'` = yes; then
6024 cat >>confdefs.h <<_ACEOF
6025#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6026_ACEOF
6027
6028ac_header_dirent=$ac_hdr; break
6029fi
6030
6031done
6032# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6033if test $ac_header_dirent = dirent.h; then
6034 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6035echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6036if test "${ac_cv_search_opendir+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039 ac_func_search_save_LIBS=$LIBS
6040ac_cv_search_opendir=no
6041cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047
6048/* Override any gcc2 internal prototype to avoid an error. */
6049#ifdef __cplusplus
6050extern "C"
6051#endif
6052/* We use char because int might match the return type of a gcc2
6053 builtin and then its argument prototype would still apply. */
6054char opendir ();
6055int
6056main ()
6057{
6058opendir ();
6059 ;
6060 return 0;
6061}
6062_ACEOF
6063rm -f conftest.$ac_objext conftest$ac_exeext
6064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_c_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest$ac_exeext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_search_opendir="none required"
6086else
6087 echo "$as_me: failed program was:" >&5
6088sed 's/^/| /' conftest.$ac_ext >&5
6089
6090fi
6091rm -f conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6093if test "$ac_cv_search_opendir" = no; then
6094 for ac_lib in dir; do
6095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6096 cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h. */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h. */
6102
6103/* Override any gcc2 internal prototype to avoid an error. */
6104#ifdef __cplusplus
6105extern "C"
6106#endif
6107/* We use char because int might match the return type of a gcc2
6108 builtin and then its argument prototype would still apply. */
6109char opendir ();
6110int
6111main ()
6112{
6113opendir ();
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
6119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest$ac_exeext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_search_opendir="-l$ac_lib"
6141break
6142else
6143 echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146fi
6147rm -f conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6149 done
6150fi
6151LIBS=$ac_func_search_save_LIBS
6152fi
6153echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6154echo "${ECHO_T}$ac_cv_search_opendir" >&6
6155if test "$ac_cv_search_opendir" != no; then
6156 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6157
6158fi
6159
6160else
6161 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6162echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6163if test "${ac_cv_search_opendir+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166 ac_func_search_save_LIBS=$LIBS
6167ac_cv_search_opendir=no
6168cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h. */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h. */
6174
6175/* Override any gcc2 internal prototype to avoid an error. */
6176#ifdef __cplusplus
6177extern "C"
6178#endif
6179/* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6181char opendir ();
6182int
6183main ()
6184{
6185opendir ();
6186 ;
6187 return 0;
6188}
6189_ACEOF
6190rm -f conftest.$ac_objext conftest$ac_exeext
6191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -z "$ac_c_werror_flag"
6200 || test ! -s conftest.err'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; } &&
6206 { ac_try='test -s conftest$ac_exeext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6212 ac_cv_search_opendir="none required"
6213else
6214 echo "$as_me: failed program was:" >&5
6215sed 's/^/| /' conftest.$ac_ext >&5
6216
6217fi
6218rm -f conftest.err conftest.$ac_objext \
6219 conftest$ac_exeext conftest.$ac_ext
6220if test "$ac_cv_search_opendir" = no; then
6221 for ac_lib in x; do
6222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6223 cat >conftest.$ac_ext <<_ACEOF
6224/* confdefs.h. */
6225_ACEOF
6226cat confdefs.h >>conftest.$ac_ext
6227cat >>conftest.$ac_ext <<_ACEOF
6228/* end confdefs.h. */
6229
6230/* Override any gcc2 internal prototype to avoid an error. */
6231#ifdef __cplusplus
6232extern "C"
6233#endif
6234/* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6236char opendir ();
6237int
6238main ()
6239{
6240opendir ();
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245rm -f conftest.$ac_objext conftest$ac_exeext
6246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest$ac_exeext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_cv_search_opendir="-l$ac_lib"
6268break
6269else
6270 echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273fi
6274rm -f conftest.err conftest.$ac_objext \
6275 conftest$ac_exeext conftest.$ac_ext
6276 done
6277fi
6278LIBS=$ac_func_search_save_LIBS
6279fi
6280echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6281echo "${ECHO_T}$ac_cv_search_opendir" >&6
6282if test "$ac_cv_search_opendir" != no; then
6283 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6284
6285fi
6286
6287fi
6288
John Criswell7a73b802003-06-30 21:59:07 +00006289# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006300 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006301do
6302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6303echo "$as_me:$LINENO: checking for $ac_header" >&5
6304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006309/* confdefs.h. */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006314$ac_includes_default
6315
6316#include <$ac_header>
6317_ACEOF
6318rm -f conftest.$ac_objext
6319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006320 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006327 { ac_try='test -z "$ac_c_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 eval "$as_ac_Header=yes"
6341else
6342 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006343sed 's/^/| /' conftest.$ac_ext >&5
6344
John Criswell7a73b802003-06-30 21:59:07 +00006345eval "$as_ac_Header=no"
6346fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006348fi
6349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6351if test `eval echo '${'$as_ac_Header'}'` = yes; then
6352 cat >>confdefs.h <<_ACEOF
6353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6354_ACEOF
6355
6356fi
6357
6358done
6359
6360
6361
6362for ac_header in dlfcn.h
6363do
6364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006365if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6368if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006370fi
6371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006373else
Brian Gaeke0a621332004-09-08 20:38:05 +00006374 # Is the header compilable?
6375echo "$as_me:$LINENO: checking $ac_header usability" >&5
6376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6377cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006383$ac_includes_default
6384#include <$ac_header>
6385_ACEOF
6386rm -f conftest.$ac_objext
6387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006388 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006408 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006409else
6410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006411sed 's/^/| /' conftest.$ac_ext >&5
6412
Brian Gaeke0a621332004-09-08 20:38:05 +00006413ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006414fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417echo "${ECHO_T}$ac_header_compiler" >&6
6418
6419# Is the header present?
6420echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
6428#include <$ac_header>
6429_ACEOF
6430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } >/dev/null; then
6438 if test -s conftest.err; then
6439 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006441 else
6442 ac_cpp_err=
6443 fi
6444else
6445 ac_cpp_err=yes
6446fi
6447if test -z "$ac_cpp_err"; then
6448 ac_header_preproc=yes
6449else
6450 echo "$as_me: failed program was:" >&5
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ac_header_preproc=no
6454fi
6455rm -f conftest.err conftest.$ac_ext
6456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457echo "${ECHO_T}$ac_header_preproc" >&6
6458
6459# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6461 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006467 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006468 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006481 (
6482 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006483## ----------------------------------- ##
6484## Report this to llvmbugs@cs.uiuc.edu ##
6485## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006486_ASBOX
6487 ) |
6488 sed "s/^/$as_me: WARNING: /" >&2
6489 ;;
6490esac
6491echo "$as_me:$LINENO: checking for $ac_header" >&5
6492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006496 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006497fi
6498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006500
6501fi
John Criswell7a73b802003-06-30 21:59:07 +00006502if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505_ACEOF
6506
6507fi
6508
6509done
6510
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006511# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6512if test "${enable_ltdl_install+set}" = set; then
6513 enableval="$enable_ltdl_install"
6514
6515fi;
6516
6517
6518
6519if test x"${enable_ltdl_install-no}" != xno; then
6520 INSTALL_LTDL_TRUE=
6521 INSTALL_LTDL_FALSE='#'
6522else
6523 INSTALL_LTDL_TRUE='#'
6524 INSTALL_LTDL_FALSE=
6525fi
6526
6527
6528
6529if test x"${enable_ltdl_convenience-no}" != xno; then
6530 CONVENIENCE_LTDL_TRUE=
6531 CONVENIENCE_LTDL_FALSE='#'
6532else
6533 CONVENIENCE_LTDL_TRUE='#'
6534 CONVENIENCE_LTDL_FALSE=
6535fi
6536
6537
6538echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6539echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6540library_names_spec=
6541libname_spec='lib$name'
6542soname_spec=
6543shrext_cmds=".so"
6544postinstall_cmds=
6545postuninstall_cmds=
6546finish_cmds=
6547finish_eval=
6548shlibpath_var=
6549shlibpath_overrides_runpath=unknown
6550version_type=none
6551dynamic_linker="$host_os ld.so"
6552sys_lib_dlsearch_path_spec="/lib /usr/lib"
6553if test "$GCC" = yes; then
6554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6555 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6556 # if the path contains ";" then we assume it to be the separator
6557 # otherwise default to the standard path separator (i.e. ":") - it is
6558 # assumed that no part of a normal pathname contains ";" but that should
6559 # okay in the real world where ";" in dirpaths is itself problematic.
6560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6561 else
6562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6563 fi
6564else
6565 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6566fi
6567need_lib_prefix=unknown
6568hardcode_into_libs=no
6569
6570# when you set need_version to no, make sure it does not cause -set_version
6571# flags to be left without arguments
6572need_version=unknown
6573
6574case $host_os in
6575aix3*)
6576 version_type=linux
6577 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6578 shlibpath_var=LIBPATH
6579
6580 # AIX 3 has no versioning support, so we append a major version to the name.
6581 soname_spec='${libname}${release}${shared_ext}$major'
6582 ;;
6583
6584aix4* | aix5*)
6585 version_type=linux
6586 need_lib_prefix=no
6587 need_version=no
6588 hardcode_into_libs=yes
6589 if test "$host_cpu" = ia64; then
6590 # AIX 5 supports IA64
6591 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6592 shlibpath_var=LD_LIBRARY_PATH
6593 else
6594 # With GCC up to 2.95.x, collect2 would create an import file
6595 # for dependence libraries. The import file would start with
6596 # the line `#! .'. This would cause the generated library to
6597 # depend on `.', always an invalid library. This was fixed in
6598 # development snapshots of GCC prior to 3.0.
6599 case $host_os in
6600 aix4 | aix4.[01] | aix4.[01].*)
6601 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6602 echo ' yes '
6603 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6604 :
6605 else
6606 can_build_shared=no
6607 fi
6608 ;;
6609 esac
6610 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6611 # soname into executable. Probably we can add versioning support to
6612 # collect2, so additional links can be useful in future.
6613 if test "$aix_use_runtimelinking" = yes; then
6614 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6615 # instead of lib<name>.a to let people know that these are not
6616 # typical AIX shared libraries.
6617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6618 else
6619 # We preserve .a as extension for shared libraries through AIX4.2
6620 # and later when we are not doing run time linking.
6621 library_names_spec='${libname}${release}.a $libname.a'
6622 soname_spec='${libname}${release}${shared_ext}$major'
6623 fi
6624 shlibpath_var=LIBPATH
6625 fi
6626 ;;
6627
6628amigaos*)
6629 library_names_spec='$libname.ixlibrary $libname.a'
6630 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6631 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'
6632 ;;
6633
6634beos*)
6635 library_names_spec='${libname}${shared_ext}'
6636 dynamic_linker="$host_os ld.so"
6637 shlibpath_var=LIBRARY_PATH
6638 ;;
6639
6640bsdi[45]*)
6641 version_type=linux
6642 need_version=no
6643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6644 soname_spec='${libname}${release}${shared_ext}$major'
6645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6646 shlibpath_var=LD_LIBRARY_PATH
6647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6649 # the default ld.so.conf also contains /usr/contrib/lib and
6650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6651 # libtool to hard-code these into programs
6652 ;;
6653
6654cygwin* | mingw* | pw32*)
6655 version_type=windows
6656 shrext_cmds=".dll"
6657 need_version=no
6658 need_lib_prefix=no
6659
6660 case $GCC,$host_os in
6661 yes,cygwin* | yes,mingw* | yes,pw32*)
6662 library_names_spec='$libname.dll.a'
6663 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6664 postinstall_cmds='base_file=`basename \${file}`~
6665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6666 dldir=$destdir/`dirname \$dlpath`~
6667 test -d \$dldir || mkdir -p \$dldir~
6668 $install_prog $dir/$dlname \$dldir/$dlname'
6669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6670 dlpath=$dir/\$dldll~
6671 $rm \$dlpath'
6672 shlibpath_overrides_runpath=yes
6673
6674 case $host_os in
6675 cygwin*)
6676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6679 ;;
6680 mingw*)
6681 # MinGW DLLs use traditional 'lib' prefix
6682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6685 # It is most probably a Windows format PATH printed by
6686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6687 # path with ; separators, and with drive letters. We can handle the
6688 # drive letters (cygwin fileutils understands them), so leave them,
6689 # especially as we might pass files found there to a mingw objdump,
6690 # which wouldn't understand a cygwinified path. Ahh.
6691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6692 else
6693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6694 fi
6695 ;;
6696 pw32*)
6697 # pw32 DLLs use 'pw' prefix rather than 'lib'
6698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6699 ;;
6700 esac
6701 ;;
6702
6703 *)
6704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6705 ;;
6706 esac
6707 dynamic_linker='Win32 ld.exe'
6708 # FIXME: first we should search . and the directory the executable is in
6709 shlibpath_var=PATH
6710 ;;
6711
6712darwin* | rhapsody*)
6713 dynamic_linker="$host_os dyld"
6714 version_type=darwin
6715 need_lib_prefix=no
6716 need_version=no
6717 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6718 soname_spec='${libname}${release}${major}$shared_ext'
6719 shlibpath_overrides_runpath=yes
6720 shlibpath_var=DYLD_LIBRARY_PATH
6721 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6722 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6723 if test "$GCC" = yes; then
6724 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6725 else
6726 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6727 fi
6728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6729 ;;
6730
6731dgux*)
6732 version_type=linux
6733 need_lib_prefix=no
6734 need_version=no
6735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6736 soname_spec='${libname}${release}${shared_ext}$major'
6737 shlibpath_var=LD_LIBRARY_PATH
6738 ;;
6739
6740freebsd1*)
6741 dynamic_linker=no
6742 ;;
6743
6744kfreebsd*-gnu)
6745 version_type=linux
6746 need_lib_prefix=no
6747 need_version=no
6748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6749 soname_spec='${libname}${release}${shared_ext}$major'
6750 shlibpath_var=LD_LIBRARY_PATH
6751 shlibpath_overrides_runpath=no
6752 hardcode_into_libs=yes
6753 dynamic_linker='GNU ld.so'
6754 ;;
6755
6756freebsd*)
6757 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6758 version_type=freebsd-$objformat
6759 case $version_type in
6760 freebsd-elf*)
6761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6762 need_version=no
6763 need_lib_prefix=no
6764 ;;
6765 freebsd-*)
6766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6767 need_version=yes
6768 ;;
6769 esac
6770 shlibpath_var=LD_LIBRARY_PATH
6771 case $host_os in
6772 freebsd2*)
6773 shlibpath_overrides_runpath=yes
6774 ;;
6775 freebsd3.01* | freebsdelf3.01*)
6776 shlibpath_overrides_runpath=yes
6777 hardcode_into_libs=yes
6778 ;;
6779 *) # from 3.2 on
6780 shlibpath_overrides_runpath=no
6781 hardcode_into_libs=yes
6782 ;;
6783 esac
6784 ;;
6785
6786gnu*)
6787 version_type=linux
6788 need_lib_prefix=no
6789 need_version=no
6790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6791 soname_spec='${libname}${release}${shared_ext}$major'
6792 shlibpath_var=LD_LIBRARY_PATH
6793 hardcode_into_libs=yes
6794 ;;
6795
6796hpux9* | hpux10* | hpux11*)
6797 # Give a soname corresponding to the major version so that dld.sl refuses to
6798 # link against other versions.
6799 version_type=sunos
6800 need_lib_prefix=no
6801 need_version=no
6802 case "$host_cpu" in
6803 ia64*)
6804 shrext_cmds='.so'
6805 hardcode_into_libs=yes
6806 dynamic_linker="$host_os dld.so"
6807 shlibpath_var=LD_LIBRARY_PATH
6808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6810 soname_spec='${libname}${release}${shared_ext}$major'
6811 if test "X$HPUX_IA64_MODE" = X32; then
6812 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6813 else
6814 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6815 fi
6816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6817 ;;
6818 hppa*64*)
6819 shrext_cmds='.sl'
6820 hardcode_into_libs=yes
6821 dynamic_linker="$host_os dld.sl"
6822 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6825 soname_spec='${libname}${release}${shared_ext}$major'
6826 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6828 ;;
6829 *)
6830 shrext_cmds='.sl'
6831 dynamic_linker="$host_os dld.sl"
6832 shlibpath_var=SHLIB_PATH
6833 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6835 soname_spec='${libname}${release}${shared_ext}$major'
6836 ;;
6837 esac
6838 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6839 postinstall_cmds='chmod 555 $lib'
6840 ;;
6841
6842irix5* | irix6* | nonstopux*)
6843 case $host_os in
6844 nonstopux*) version_type=nonstopux ;;
6845 *)
6846 if test "$lt_cv_prog_gnu_ld" = yes; then
6847 version_type=linux
6848 else
6849 version_type=irix
6850 fi ;;
6851 esac
6852 need_lib_prefix=no
6853 need_version=no
6854 soname_spec='${libname}${release}${shared_ext}$major'
6855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6856 case $host_os in
6857 irix5* | nonstopux*)
6858 libsuff= shlibsuff=
6859 ;;
6860 *)
6861 case $LD in # libtool.m4 will add one of these switches to LD
6862 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6863 libsuff= shlibsuff= libmagic=32-bit;;
6864 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6865 libsuff=32 shlibsuff=N32 libmagic=N32;;
6866 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6867 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6868 *) libsuff= shlibsuff= libmagic=never-match;;
6869 esac
6870 ;;
6871 esac
6872 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6873 shlibpath_overrides_runpath=no
6874 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6875 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6876 hardcode_into_libs=yes
6877 ;;
6878
6879# No shared lib support for Linux oldld, aout, or coff.
6880linux*oldld* | linux*aout* | linux*coff*)
6881 dynamic_linker=no
6882 ;;
6883
6884# This must be Linux ELF.
6885linux*)
6886 version_type=linux
6887 need_lib_prefix=no
6888 need_version=no
6889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6890 soname_spec='${libname}${release}${shared_ext}$major'
6891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6892 shlibpath_var=LD_LIBRARY_PATH
6893 shlibpath_overrides_runpath=no
6894 # This implies no fast_install, which is unacceptable.
6895 # Some rework will be needed to allow for fast_install
6896 # before this can be enabled.
6897 hardcode_into_libs=yes
6898
6899 # Append ld.so.conf contents to the search path
6900 if test -f /etc/ld.so.conf; then
6901 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6902 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6903 fi
6904
6905 # We used to test for /lib/ld.so.1 and disable shared libraries on
6906 # powerpc, because MkLinux only supported shared libraries with the
6907 # GNU dynamic linker. Since this was broken with cross compilers,
6908 # most powerpc-linux boxes support dynamic linking these days and
6909 # people can always --disable-shared, the test was removed, and we
6910 # assume the GNU/Linux dynamic linker is in use.
6911 dynamic_linker='GNU/Linux ld.so'
6912 ;;
6913
6914knetbsd*-gnu)
6915 version_type=linux
6916 need_lib_prefix=no
6917 need_version=no
6918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6919 soname_spec='${libname}${release}${shared_ext}$major'
6920 shlibpath_var=LD_LIBRARY_PATH
6921 shlibpath_overrides_runpath=no
6922 hardcode_into_libs=yes
6923 dynamic_linker='GNU ld.so'
6924 ;;
6925
6926netbsd*)
6927 version_type=sunos
6928 need_lib_prefix=no
6929 need_version=no
6930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6933 dynamic_linker='NetBSD (a.out) ld.so'
6934 else
6935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6936 soname_spec='${libname}${release}${shared_ext}$major'
6937 dynamic_linker='NetBSD ld.elf_so'
6938 fi
6939 shlibpath_var=LD_LIBRARY_PATH
6940 shlibpath_overrides_runpath=yes
6941 hardcode_into_libs=yes
6942 ;;
6943
6944newsos6)
6945 version_type=linux
6946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6947 shlibpath_var=LD_LIBRARY_PATH
6948 shlibpath_overrides_runpath=yes
6949 ;;
6950
6951nto-qnx*)
6952 version_type=linux
6953 need_lib_prefix=no
6954 need_version=no
6955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6956 soname_spec='${libname}${release}${shared_ext}$major'
6957 shlibpath_var=LD_LIBRARY_PATH
6958 shlibpath_overrides_runpath=yes
6959 ;;
6960
6961openbsd*)
6962 version_type=sunos
6963 need_lib_prefix=no
6964 need_version=no
6965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6967 shlibpath_var=LD_LIBRARY_PATH
6968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6969 case $host_os in
6970 openbsd2.[89] | openbsd2.[89].*)
6971 shlibpath_overrides_runpath=no
6972 ;;
6973 *)
6974 shlibpath_overrides_runpath=yes
6975 ;;
6976 esac
6977 else
6978 shlibpath_overrides_runpath=yes
6979 fi
6980 ;;
6981
6982os2*)
6983 libname_spec='$name'
6984 shrext_cmds=".dll"
6985 need_lib_prefix=no
6986 library_names_spec='$libname${shared_ext} $libname.a'
6987 dynamic_linker='OS/2 ld.exe'
6988 shlibpath_var=LIBPATH
6989 ;;
6990
6991osf3* | osf4* | osf5*)
6992 version_type=osf
6993 need_lib_prefix=no
6994 need_version=no
6995 soname_spec='${libname}${release}${shared_ext}$major'
6996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6997 shlibpath_var=LD_LIBRARY_PATH
6998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7000 ;;
7001
7002sco3.2v5*)
7003 version_type=osf
7004 soname_spec='${libname}${release}${shared_ext}$major'
7005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7006 shlibpath_var=LD_LIBRARY_PATH
7007 ;;
7008
7009solaris*)
7010 version_type=linux
7011 need_lib_prefix=no
7012 need_version=no
7013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7014 soname_spec='${libname}${release}${shared_ext}$major'
7015 shlibpath_var=LD_LIBRARY_PATH
7016 shlibpath_overrides_runpath=yes
7017 hardcode_into_libs=yes
7018 # ldd complains unless libraries are executable
7019 postinstall_cmds='chmod +x $lib'
7020 ;;
7021
7022sunos4*)
7023 version_type=sunos
7024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7026 shlibpath_var=LD_LIBRARY_PATH
7027 shlibpath_overrides_runpath=yes
7028 if test "$with_gnu_ld" = yes; then
7029 need_lib_prefix=no
7030 fi
7031 need_version=yes
7032 ;;
7033
7034sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7035 version_type=linux
7036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7037 soname_spec='${libname}${release}${shared_ext}$major'
7038 shlibpath_var=LD_LIBRARY_PATH
7039 case $host_vendor in
7040 sni)
7041 shlibpath_overrides_runpath=no
7042 need_lib_prefix=no
7043 export_dynamic_flag_spec='${wl}-Blargedynsym'
7044 runpath_var=LD_RUN_PATH
7045 ;;
7046 siemens)
7047 need_lib_prefix=no
7048 ;;
7049 motorola)
7050 need_lib_prefix=no
7051 need_version=no
7052 shlibpath_overrides_runpath=no
7053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7054 ;;
7055 esac
7056 ;;
7057
7058sysv4*MP*)
7059 if test -d /usr/nec ;then
7060 version_type=linux
7061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7062 soname_spec='$libname${shared_ext}.$major'
7063 shlibpath_var=LD_LIBRARY_PATH
7064 fi
7065 ;;
7066
7067uts4*)
7068 version_type=linux
7069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7070 soname_spec='${libname}${release}${shared_ext}$major'
7071 shlibpath_var=LD_LIBRARY_PATH
7072 ;;
7073
7074*)
7075 dynamic_linker=no
7076 ;;
7077esac
7078echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7079echo "${ECHO_T}$dynamic_linker" >&6
7080test "$dynamic_linker" = no && can_build_shared=no
7081
7082
7083echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7084echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7085if test "${libltdl_cv_shlibext+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087else
7088
7089module=yes
7090eval libltdl_cv_shlibext=$shrext_cmds
7091
7092fi
7093echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7094echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7095if test -n "$libltdl_cv_shlibext"; then
7096
7097cat >>confdefs.h <<_ACEOF
7098#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7099_ACEOF
7100
7101fi
7102
7103
7104echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7105echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7106if test "${libltdl_cv_shlibpath_var+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109 libltdl_cv_shlibpath_var="$shlibpath_var"
7110fi
7111echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7112echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7113if test -n "$libltdl_cv_shlibpath_var"; then
7114
7115cat >>confdefs.h <<_ACEOF
7116#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7117_ACEOF
7118
7119fi
7120
7121
7122echo "$as_me:$LINENO: checking for the default library search path" >&5
7123echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7124if test "${libltdl_cv_sys_search_path+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7128fi
7129echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7130echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7131if test -n "$libltdl_cv_sys_search_path"; then
7132 sys_search_path=
7133 for dir in $libltdl_cv_sys_search_path; do
7134 if test -z "$sys_search_path"; then
7135 sys_search_path="$dir"
7136 else
7137 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7138 fi
7139 done
7140
7141cat >>confdefs.h <<_ACEOF
7142#define LTDL_SYSSEARCHPATH "$sys_search_path"
7143_ACEOF
7144
7145fi
7146
7147echo "$as_me:$LINENO: checking for objdir" >&5
7148echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7149if test "${libltdl_cv_objdir+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 libltdl_cv_objdir="$objdir"
7153 if test -n "$objdir"; then
7154 :
7155 else
7156 rm -f .libs 2>/dev/null
7157 mkdir .libs 2>/dev/null
7158 if test -d .libs; then
7159 libltdl_cv_objdir=.libs
7160 else
7161 # MS-DOS does not allow filenames that begin with a dot.
7162 libltdl_cv_objdir=_libs
7163 fi
7164 rmdir .libs 2>/dev/null
7165 fi
7166
7167fi
7168echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7169echo "${ECHO_T}$libltdl_cv_objdir" >&6
7170
7171cat >>confdefs.h <<_ACEOF
7172#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7173_ACEOF
7174
7175
7176echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7177echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7178if test "${lt_cv_path_NM+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181 if test -n "$NM"; then
7182 # Let the user override the test.
7183 lt_cv_path_NM="$NM"
7184else
7185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7186 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7187 IFS="$lt_save_ifs"
7188 test -z "$ac_dir" && ac_dir=.
7189 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7190 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7191 # Check to see if the nm accepts a BSD-compat flag.
7192 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7193 # nm: unknown option "B" ignored
7194 # Tru64's nm complains that /dev/null is an invalid object file
7195 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7196 */dev/null* | *'Invalid file or object type'*)
7197 lt_cv_path_NM="$tmp_nm -B"
7198 break
7199 ;;
7200 *)
7201 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7202 */dev/null*)
7203 lt_cv_path_NM="$tmp_nm -p"
7204 break
7205 ;;
7206 *)
7207 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7208 continue # so that we can try to find one that supports BSD flags
7209 ;;
7210 esac
7211 esac
7212 fi
7213 done
7214 IFS="$lt_save_ifs"
7215 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7216fi
7217fi
7218echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7219echo "${ECHO_T}$lt_cv_path_NM" >&6
7220NM="$lt_cv_path_NM"
7221
7222
7223
7224
7225
7226# Check for command to grab the raw symbol name followed by C symbol from nm.
7227echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7228echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7229if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232
7233# These are sane defaults that work on at least a few old systems.
7234# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7235
7236# Character class describing NM global symbol codes.
7237symcode='[BCDEGRST]'
7238
7239# Regexp to match symbols that can be accessed directly from C.
7240sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7241
7242# Transform the above into a raw symbol and a C symbol.
7243symxfrm='\1 \2\3 \3'
7244
7245# Transform an extracted symbol line into a proper C declaration
7246lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7247
7248# Transform an extracted symbol line into symbol name and symbol address
7249lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7250
7251# Define system-specific variables.
7252case $host_os in
7253aix*)
7254 symcode='[BCDT]'
7255 ;;
7256cygwin* | mingw* | pw32*)
7257 symcode='[ABCDGISTW]'
7258 ;;
7259hpux*) # Its linker distinguishes data from code symbols
7260 if test "$host_cpu" = ia64; then
7261 symcode='[ABCDEGRST]'
7262 fi
7263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7264 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7265 ;;
7266linux*)
7267 if test "$host_cpu" = ia64; then
7268 symcode='[ABCDGIRSTW]'
7269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7270 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7271 fi
7272 ;;
7273irix* | nonstopux*)
7274 symcode='[BCDEGRST]'
7275 ;;
7276osf*)
7277 symcode='[BCDEGQRST]'
7278 ;;
7279solaris* | sysv5*)
7280 symcode='[BDRT]'
7281 ;;
7282sysv4)
7283 symcode='[DFNSTU]'
7284 ;;
7285esac
7286
7287# Handle CRLF in mingw tool chain
7288opt_cr=
7289case $build_os in
7290mingw*)
7291 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7292 ;;
7293esac
7294
7295# If we're using GNU nm, then use its standard symbol codes.
7296case `$NM -V 2>&1` in
7297*GNU* | *'with BFD'*)
7298 symcode='[ABCDGIRSTW]' ;;
7299esac
7300
7301# Try without a prefix undercore, then with it.
7302for ac_symprfx in "" "_"; do
7303
7304 # Write the raw and C identifiers.
7305 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7306
7307 # Check to see that the pipe works correctly.
7308 pipe_works=no
7309
7310 rm -f conftest*
7311 cat > conftest.$ac_ext <<EOF
7312#ifdef __cplusplus
7313extern "C" {
7314#endif
7315char nm_test_var;
7316void nm_test_func(){}
7317#ifdef __cplusplus
7318}
7319#endif
7320int main(){nm_test_var='a';nm_test_func();return(0);}
7321EOF
7322
7323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; then
7328 # Now try to grab the symbols.
7329 nlist=conftest.nm
7330 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7331 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && test -s "$nlist"; then
7335 # Try sorting and uniquifying the output.
7336 if sort "$nlist" | uniq > "$nlist"T; then
7337 mv -f "$nlist"T "$nlist"
7338 else
7339 rm -f "$nlist"T
7340 fi
7341
7342 # Make sure that we snagged all the symbols we need.
7343 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7344 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7345 cat <<EOF > conftest.$ac_ext
7346#ifdef __cplusplus
7347extern "C" {
7348#endif
7349
7350EOF
7351 # Now generate the symbol file.
7352 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7353
7354 cat <<EOF >> conftest.$ac_ext
7355#if defined (__STDC__) && __STDC__
7356# define lt_ptr_t void *
7357#else
7358# define lt_ptr_t char *
7359# define const
7360#endif
7361
7362/* The mapping between symbol names and symbols. */
7363const struct {
7364 const char *name;
7365 lt_ptr_t address;
7366}
7367lt_preloaded_symbols[] =
7368{
7369EOF
7370 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7371 cat <<\EOF >> conftest.$ac_ext
7372 {0, (lt_ptr_t) 0}
7373};
7374
7375#ifdef __cplusplus
7376}
7377#endif
7378EOF
7379 # Now try linking the two files.
7380 mv conftest.$ac_objext conftstm.$ac_objext
7381 lt_save_LIBS="$LIBS"
7382 lt_save_CFLAGS="$CFLAGS"
7383 LIBS="conftstm.$ac_objext"
7384 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7390 pipe_works=yes
7391 fi
7392 LIBS="$lt_save_LIBS"
7393 CFLAGS="$lt_save_CFLAGS"
7394 else
7395 echo "cannot find nm_test_func in $nlist" >&5
7396 fi
7397 else
7398 echo "cannot find nm_test_var in $nlist" >&5
7399 fi
7400 else
7401 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7402 fi
7403 else
7404 echo "$progname: failed program was:" >&5
7405 cat conftest.$ac_ext >&5
7406 fi
7407 rm -f conftest* conftst*
7408
7409 # Do not use the global_symbol_pipe unless it works.
7410 if test "$pipe_works" = yes; then
7411 break
7412 else
7413 lt_cv_sys_global_symbol_pipe=
7414 fi
7415done
7416
7417fi
7418
7419if test -z "$lt_cv_sys_global_symbol_pipe"; then
7420 lt_cv_sys_global_symbol_to_cdecl=
7421fi
7422if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7423 echo "$as_me:$LINENO: result: failed" >&5
7424echo "${ECHO_T}failed" >&6
7425else
7426 echo "$as_me:$LINENO: result: ok" >&5
7427echo "${ECHO_T}ok" >&6
7428fi
7429
7430
7431echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7432echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7433if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7437 libltdl_cv_preloaded_symbols=yes
7438 else
7439 libltdl_cv_preloaded_symbols=no
7440 fi
7441
7442fi
7443echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7444echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7445if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7446
7447cat >>confdefs.h <<\_ACEOF
7448#define HAVE_PRELOADED_SYMBOLS 1
7449_ACEOF
7450
7451fi
7452
7453LIBADD_DL=
7454
7455ac_ext=c
7456ac_cpp='$CPP $CPPFLAGS'
7457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
7461
7462echo "$as_me:$LINENO: checking for shl_load" >&5
7463echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7464if test "${ac_cv_func_shl_load+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466else
7467 cat >conftest.$ac_ext <<_ACEOF
7468/* confdefs.h. */
7469_ACEOF
7470cat confdefs.h >>conftest.$ac_ext
7471cat >>conftest.$ac_ext <<_ACEOF
7472/* end confdefs.h. */
7473/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7475#define shl_load innocuous_shl_load
7476
7477/* System header to define __stub macros and hopefully few prototypes,
7478 which can conflict with char shl_load (); below.
7479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480 <limits.h> exists even on freestanding compilers. */
7481
7482#ifdef __STDC__
7483# include <limits.h>
7484#else
7485# include <assert.h>
7486#endif
7487
7488#undef shl_load
7489
7490/* Override any gcc2 internal prototype to avoid an error. */
7491#ifdef __cplusplus
7492extern "C"
7493{
7494#endif
7495/* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497char shl_load ();
7498/* The GNU C library defines this for functions which it implements
7499 to always fail with ENOSYS. Some functions are actually named
7500 something starting with __ and the normal name is an alias. */
7501#if defined (__stub_shl_load) || defined (__stub___shl_load)
7502choke me
7503#else
7504char (*f) () = shl_load;
7505#endif
7506#ifdef __cplusplus
7507}
7508#endif
7509
7510int
7511main ()
7512{
7513return f != shl_load;
7514 ;
7515 return 0;
7516}
7517_ACEOF
7518rm -f conftest.$ac_objext conftest$ac_exeext
7519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7520 (eval $ac_link) 2>conftest.er1
7521 ac_status=$?
7522 grep -v '^ *+' conftest.er1 >conftest.err
7523 rm -f conftest.er1
7524 cat conftest.err >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } &&
7527 { ac_try='test -z "$ac_c_werror_flag"
7528 || test ! -s conftest.err'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 (eval $ac_try) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; } &&
7534 { ac_try='test -s conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 ac_cv_func_shl_load=yes
7541else
7542 echo "$as_me: failed program was:" >&5
7543sed 's/^/| /' conftest.$ac_ext >&5
7544
7545ac_cv_func_shl_load=no
7546fi
7547rm -f conftest.err conftest.$ac_objext \
7548 conftest$ac_exeext conftest.$ac_ext
7549fi
7550echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7551echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7552if test $ac_cv_func_shl_load = yes; then
7553
7554cat >>confdefs.h <<\_ACEOF
7555#define HAVE_SHL_LOAD 1
7556_ACEOF
7557
7558else
7559 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7560echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7561if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564 ac_check_lib_save_LIBS=$LIBS
7565LIBS="-ldld $LIBS"
7566cat >conftest.$ac_ext <<_ACEOF
7567/* confdefs.h. */
7568_ACEOF
7569cat confdefs.h >>conftest.$ac_ext
7570cat >>conftest.$ac_ext <<_ACEOF
7571/* end confdefs.h. */
7572
7573/* Override any gcc2 internal prototype to avoid an error. */
7574#ifdef __cplusplus
7575extern "C"
7576#endif
7577/* We use char because int might match the return type of a gcc2
7578 builtin and then its argument prototype would still apply. */
7579char shl_load ();
7580int
7581main ()
7582{
7583shl_load ();
7584 ;
7585 return 0;
7586}
7587_ACEOF
7588rm -f conftest.$ac_objext conftest$ac_exeext
7589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590 (eval $ac_link) 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag"
7598 || test ! -s conftest.err'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest$ac_exeext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 ac_cv_lib_dld_shl_load=yes
7611else
7612 echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615ac_cv_lib_dld_shl_load=no
7616fi
7617rm -f conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7619LIBS=$ac_check_lib_save_LIBS
7620fi
7621echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7622echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7623if test $ac_cv_lib_dld_shl_load = yes; then
7624
7625cat >>confdefs.h <<\_ACEOF
7626#define HAVE_SHL_LOAD 1
7627_ACEOF
7628
7629 LIBADD_DL="$LIBADD_DL -ldld"
7630else
7631 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7632echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7633if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 ac_check_lib_save_LIBS=$LIBS
7637LIBS="-ldl $LIBS"
7638cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644
7645/* Override any gcc2 internal prototype to avoid an error. */
7646#ifdef __cplusplus
7647extern "C"
7648#endif
7649/* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651char dlopen ();
7652int
7653main ()
7654{
7655dlopen ();
7656 ;
7657 return 0;
7658}
7659_ACEOF
7660rm -f conftest.$ac_objext conftest$ac_exeext
7661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>conftest.er1
7663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -z "$ac_c_werror_flag"
7670 || test ! -s conftest.err'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; } &&
7676 { ac_try='test -s conftest$ac_exeext'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 ac_cv_lib_dl_dlopen=yes
7683else
7684 echo "$as_me: failed program was:" >&5
7685sed 's/^/| /' conftest.$ac_ext >&5
7686
7687ac_cv_lib_dl_dlopen=no
7688fi
7689rm -f conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext
7691LIBS=$ac_check_lib_save_LIBS
7692fi
7693echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7694echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7695if test $ac_cv_lib_dl_dlopen = yes; then
7696
7697cat >>confdefs.h <<\_ACEOF
7698#define HAVE_LIBDL 1
7699_ACEOF
7700
7701 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7702else
7703 cat >conftest.$ac_ext <<_ACEOF
7704/* confdefs.h. */
7705_ACEOF
7706cat confdefs.h >>conftest.$ac_ext
7707cat >>conftest.$ac_ext <<_ACEOF
7708/* end confdefs.h. */
7709#if HAVE_DLFCN_H
7710# include <dlfcn.h>
7711#endif
7712
7713int
7714main ()
7715{
7716dlopen(0, 0);
7717 ;
7718 return 0;
7719}
7720_ACEOF
7721rm -f conftest.$ac_objext conftest$ac_exeext
7722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723 (eval $ac_link) 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -z "$ac_c_werror_flag"
7731 || test ! -s conftest.err'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7743
7744cat >>confdefs.h <<\_ACEOF
7745#define HAVE_LIBDL 1
7746_ACEOF
7747 libltdl_cv_func_dlopen="yes"
7748else
7749 echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7753echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7754if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757 ac_check_lib_save_LIBS=$LIBS
7758LIBS="-lsvld $LIBS"
7759cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h. */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h. */
7765
7766/* Override any gcc2 internal prototype to avoid an error. */
7767#ifdef __cplusplus
7768extern "C"
7769#endif
7770/* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7772char dlopen ();
7773int
7774main ()
7775{
7776dlopen ();
7777 ;
7778 return 0;
7779}
7780_ACEOF
7781rm -f conftest.$ac_objext conftest$ac_exeext
7782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7783 (eval $ac_link) 2>conftest.er1
7784 ac_status=$?
7785 grep -v '^ *+' conftest.er1 >conftest.err
7786 rm -f conftest.er1
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -z "$ac_c_werror_flag"
7791 || test ! -s conftest.err'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 (eval $ac_try) 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; } &&
7797 { ac_try='test -s conftest$ac_exeext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_cv_lib_svld_dlopen=yes
7804else
7805 echo "$as_me: failed program was:" >&5
7806sed 's/^/| /' conftest.$ac_ext >&5
7807
7808ac_cv_lib_svld_dlopen=no
7809fi
7810rm -f conftest.err conftest.$ac_objext \
7811 conftest$ac_exeext conftest.$ac_ext
7812LIBS=$ac_check_lib_save_LIBS
7813fi
7814echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7815echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7816if test $ac_cv_lib_svld_dlopen = yes; then
7817
7818cat >>confdefs.h <<\_ACEOF
7819#define HAVE_LIBDL 1
7820_ACEOF
7821
7822 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7823else
7824 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7825echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7826if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828else
7829 ac_check_lib_save_LIBS=$LIBS
7830LIBS="-ldld $LIBS"
7831cat >conftest.$ac_ext <<_ACEOF
7832/* confdefs.h. */
7833_ACEOF
7834cat confdefs.h >>conftest.$ac_ext
7835cat >>conftest.$ac_ext <<_ACEOF
7836/* end confdefs.h. */
7837
7838/* Override any gcc2 internal prototype to avoid an error. */
7839#ifdef __cplusplus
7840extern "C"
7841#endif
7842/* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7844char dld_link ();
7845int
7846main ()
7847{
7848dld_link ();
7849 ;
7850 return 0;
7851}
7852_ACEOF
7853rm -f conftest.$ac_objext conftest$ac_exeext
7854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag"
7863 || test ! -s conftest.err'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; } &&
7869 { ac_try='test -s conftest$ac_exeext'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 (eval $ac_try) 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_lib_dld_dld_link=yes
7876else
7877 echo "$as_me: failed program was:" >&5
7878sed 's/^/| /' conftest.$ac_ext >&5
7879
7880ac_cv_lib_dld_dld_link=no
7881fi
7882rm -f conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884LIBS=$ac_check_lib_save_LIBS
7885fi
7886echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7887echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7888if test $ac_cv_lib_dld_dld_link = yes; then
7889
7890cat >>confdefs.h <<\_ACEOF
7891#define HAVE_DLD 1
7892_ACEOF
7893
7894 LIBADD_DL="$LIBADD_DL -ldld"
7895else
7896 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7897echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7898if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900else
7901 cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h. */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h. */
7907/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7909#define _dyld_func_lookup innocuous__dyld_func_lookup
7910
7911/* System header to define __stub macros and hopefully few prototypes,
7912 which can conflict with char _dyld_func_lookup (); below.
7913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7914 <limits.h> exists even on freestanding compilers. */
7915
7916#ifdef __STDC__
7917# include <limits.h>
7918#else
7919# include <assert.h>
7920#endif
7921
7922#undef _dyld_func_lookup
7923
7924/* Override any gcc2 internal prototype to avoid an error. */
7925#ifdef __cplusplus
7926extern "C"
7927{
7928#endif
7929/* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7931char _dyld_func_lookup ();
7932/* The GNU C library defines this for functions which it implements
7933 to always fail with ENOSYS. Some functions are actually named
7934 something starting with __ and the normal name is an alias. */
7935#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7936choke me
7937#else
7938char (*f) () = _dyld_func_lookup;
7939#endif
7940#ifdef __cplusplus
7941}
7942#endif
7943
7944int
7945main ()
7946{
7947return f != _dyld_func_lookup;
7948 ;
7949 return 0;
7950}
7951_ACEOF
7952rm -f conftest.$ac_objext conftest$ac_exeext
7953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7954 (eval $ac_link) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_func__dyld_func_lookup=yes
7975else
7976 echo "$as_me: failed program was:" >&5
7977sed 's/^/| /' conftest.$ac_ext >&5
7978
7979ac_cv_func__dyld_func_lookup=no
7980fi
7981rm -f conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983fi
7984echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7985echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7986if test $ac_cv_func__dyld_func_lookup = yes; then
7987
7988cat >>confdefs.h <<\_ACEOF
7989#define HAVE_DYLD 1
7990_ACEOF
7991
7992fi
7993
7994
7995fi
7996
7997
7998fi
7999
8000
8001fi
8002rm -f conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8004
8005fi
8006
8007
8008fi
8009
8010
8011fi
8012
8013
8014if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8015then
8016 lt_save_LIBS="$LIBS"
8017 LIBS="$LIBS $LIBADD_DL"
8018
8019for ac_func in dlerror
8020do
8021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8022echo "$as_me:$LINENO: checking for $ac_func" >&5
8023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8024if eval "test \"\${$as_ac_var+set}\" = set"; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027 cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
8033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8035#define $ac_func innocuous_$ac_func
8036
8037/* System header to define __stub macros and hopefully few prototypes,
8038 which can conflict with char $ac_func (); below.
8039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8040 <limits.h> exists even on freestanding compilers. */
8041
8042#ifdef __STDC__
8043# include <limits.h>
8044#else
8045# include <assert.h>
8046#endif
8047
8048#undef $ac_func
8049
8050/* Override any gcc2 internal prototype to avoid an error. */
8051#ifdef __cplusplus
8052extern "C"
8053{
8054#endif
8055/* We use char because int might match the return type of a gcc2
8056 builtin and then its argument prototype would still apply. */
8057char $ac_func ();
8058/* The GNU C library defines this for functions which it implements
8059 to always fail with ENOSYS. Some functions are actually named
8060 something starting with __ and the normal name is an alias. */
8061#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8062choke me
8063#else
8064char (*f) () = $ac_func;
8065#endif
8066#ifdef __cplusplus
8067}
8068#endif
8069
8070int
8071main ()
8072{
8073return f != $ac_func;
8074 ;
8075 return 0;
8076}
8077_ACEOF
8078rm -f conftest.$ac_objext conftest$ac_exeext
8079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 (eval $ac_try) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 eval "$as_ac_var=yes"
8101else
8102 echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
8105eval "$as_ac_var=no"
8106fi
8107rm -f conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109fi
8110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8111echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8112if test `eval echo '${'$as_ac_var'}'` = yes; then
8113 cat >>confdefs.h <<_ACEOF
8114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8115_ACEOF
8116
8117fi
8118done
8119
8120 LIBS="$lt_save_LIBS"
8121fi
8122ac_ext=c
8123ac_cpp='$CPP $CPPFLAGS'
8124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128
8129
8130echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8131echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8132if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 ac_cv_sys_symbol_underscore=no
8136 cat > conftest.$ac_ext <<EOF
8137void nm_test_func(){}
8138int main(){nm_test_func;return 0;}
8139EOF
8140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8141 (eval $ac_compile) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; then
8145 # Now try to grab the symbols.
8146 ac_nlist=conftest.nm
8147 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8148 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && test -s "$ac_nlist"; then
8152 # See whether the symbols have a leading underscore.
8153 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8154 ac_cv_sys_symbol_underscore=yes
8155 else
8156 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8157 :
8158 else
8159 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8160 fi
8161 fi
8162 else
8163 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8164 fi
8165 else
8166 echo "configure: failed program was:" >&5
8167 cat conftest.c >&5
8168 fi
8169 rm -rf conftest*
8170
8171fi
8172echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8173echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8174
8175
8176if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8177 if test x"$libltdl_cv_func_dlopen" = xyes ||
8178 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8179 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8180echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8181if test "${libltdl_cv_need_uscore+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184 libltdl_cv_need_uscore=unknown
8185 save_LIBS="$LIBS"
8186 LIBS="$LIBS $LIBADD_DL"
8187 if test "$cross_compiling" = yes; then :
8188 libltdl_cv_need_uscore=cross
8189else
8190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8191 lt_status=$lt_dlunknown
8192 cat > conftest.$ac_ext <<EOF
Reid Spencercda35f82004-12-02 04:17:20 +00008193#line 8193 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008194#include "confdefs.h"
8195
8196#if HAVE_DLFCN_H
8197#include <dlfcn.h>
8198#endif
8199
8200#include <stdio.h>
8201
8202#ifdef RTLD_GLOBAL
8203# define LT_DLGLOBAL RTLD_GLOBAL
8204#else
8205# ifdef DL_GLOBAL
8206# define LT_DLGLOBAL DL_GLOBAL
8207# else
8208# define LT_DLGLOBAL 0
8209# endif
8210#endif
8211
8212/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8213 find out it does not work in some platform. */
8214#ifndef LT_DLLAZY_OR_NOW
8215# ifdef RTLD_LAZY
8216# define LT_DLLAZY_OR_NOW RTLD_LAZY
8217# else
8218# ifdef DL_LAZY
8219# define LT_DLLAZY_OR_NOW DL_LAZY
8220# else
8221# ifdef RTLD_NOW
8222# define LT_DLLAZY_OR_NOW RTLD_NOW
8223# else
8224# ifdef DL_NOW
8225# define LT_DLLAZY_OR_NOW DL_NOW
8226# else
8227# define LT_DLLAZY_OR_NOW 0
8228# endif
8229# endif
8230# endif
8231# endif
8232#endif
8233
8234#ifdef __cplusplus
8235extern "C" void exit (int);
8236#endif
8237
8238void fnord() { int i=42;}
8239int main ()
8240{
8241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8242 int status = $lt_dlunknown;
8243
8244 if (self)
8245 {
8246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8247 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8248 /* dlclose (self); */
8249 }
8250
8251 exit (status);
8252}
8253EOF
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8259 (./conftest; exit; ) 2>/dev/null
8260 lt_status=$?
8261 case x$lt_status in
8262 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8263 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8264 x$lt_unknown|x*) ;;
8265 esac
8266 else :
8267 # compilation failed
8268
8269 fi
8270fi
8271rm -fr conftest*
8272
8273 LIBS="$save_LIBS"
8274
8275fi
8276echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8277echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8278 fi
8279fi
8280
8281if test x"$libltdl_cv_need_uscore" = xyes; then
8282
8283cat >>confdefs.h <<\_ACEOF
8284#define NEED_USCORE 1
8285_ACEOF
8286
8287fi
8288
8289
8290echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8291echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8292if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295 # PORTME does your system automatically load deplibs for dlopen?
8296 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8297 # For now, we just catch OSes we know something about -- in the
8298 # future, we'll try test this programmatically.
8299 libltdl_cv_sys_dlopen_deplibs=unknown
8300 case "$host_os" in
8301 aix3*|aix4.1.*|aix4.2.*)
8302 # Unknown whether this is true for these versions of AIX, but
8303 # we want this `case' here to explicitly catch those versions.
8304 libltdl_cv_sys_dlopen_deplibs=unknown
8305 ;;
8306 aix[45]*)
8307 libltdl_cv_sys_dlopen_deplibs=yes
8308 ;;
8309 darwin*)
8310 # Assuming the user has installed a libdl from somewhere, this is true
8311 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8312 libltdl_cv_sys_dlopen_deplibs=yes
8313 ;;
8314 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8315 # GNU and its variants, using gnu ld.so (Glibc)
8316 libltdl_cv_sys_dlopen_deplibs=yes
8317 ;;
8318 hpux10*|hpux11*)
8319 libltdl_cv_sys_dlopen_deplibs=yes
8320 ;;
8321 irix[12345]*|irix6.[01]*)
8322 # Catch all versions of IRIX before 6.2, and indicate that we don't
8323 # know how it worked for any of those versions.
8324 libltdl_cv_sys_dlopen_deplibs=unknown
8325 ;;
8326 irix*)
8327 # The case above catches anything before 6.2, and it's known that
8328 # at 6.2 and later dlopen does load deplibs.
8329 libltdl_cv_sys_dlopen_deplibs=yes
8330 ;;
8331 netbsd*)
8332 libltdl_cv_sys_dlopen_deplibs=yes
8333 ;;
8334 openbsd*)
8335 libltdl_cv_sys_dlopen_deplibs=yes
8336 ;;
8337 osf[1234]*)
8338 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8339 # it did *not* use an RPATH in a shared library to find objects the
8340 # library depends on, so we explictly say `no'.
8341 libltdl_cv_sys_dlopen_deplibs=no
8342 ;;
8343 osf5.0|osf5.0a|osf5.1)
8344 # dlopen *does* load deplibs and with the right loader patch applied
8345 # it even uses RPATH in a shared library to search for shared objects
8346 # that the library depends on, but there's no easy way to know if that
8347 # patch is installed. Since this is the case, all we can really
8348 # say is unknown -- it depends on the patch being installed. If
8349 # it is, this changes to `yes'. Without it, it would be `no'.
8350 libltdl_cv_sys_dlopen_deplibs=unknown
8351 ;;
8352 osf*)
8353 # the two cases above should catch all versions of osf <= 5.1. Read
8354 # the comments above for what we know about them.
8355 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8356 # is used to find them so we can finally say `yes'.
8357 libltdl_cv_sys_dlopen_deplibs=yes
8358 ;;
8359 solaris*)
8360 libltdl_cv_sys_dlopen_deplibs=yes
8361 ;;
8362 esac
8363
8364fi
8365echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8366echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8367if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8368
8369cat >>confdefs.h <<\_ACEOF
8370#define LTDL_DLOPEN_DEPLIBS 1
8371_ACEOF
8372
8373fi
8374
8375
8376for ac_header in argz.h
8377do
8378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8379if eval "test \"\${$as_ac_Header+set}\" = set"; then
8380 echo "$as_me:$LINENO: checking for $ac_header" >&5
8381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8382if eval "test \"\${$as_ac_Header+set}\" = set"; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384fi
8385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8387else
8388 # Is the header compilable?
8389echo "$as_me:$LINENO: checking $ac_header usability" >&5
8390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8391cat >conftest.$ac_ext <<_ACEOF
8392/* confdefs.h. */
8393_ACEOF
8394cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h. */
8397$ac_includes_default
8398#include <$ac_header>
8399_ACEOF
8400rm -f conftest.$ac_objext
8401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_header_compiler=yes
8423else
8424 echo "$as_me: failed program was:" >&5
8425sed 's/^/| /' conftest.$ac_ext >&5
8426
8427ac_header_compiler=no
8428fi
8429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8431echo "${ECHO_T}$ac_header_compiler" >&6
8432
8433# Is the header present?
8434echo "$as_me:$LINENO: checking $ac_header presence" >&5
8435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8436cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
8442#include <$ac_header>
8443_ACEOF
8444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } >/dev/null; then
8452 if test -s conftest.err; then
8453 ac_cpp_err=$ac_c_preproc_warn_flag
8454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8455 else
8456 ac_cpp_err=
8457 fi
8458else
8459 ac_cpp_err=yes
8460fi
8461if test -z "$ac_cpp_err"; then
8462 ac_header_preproc=yes
8463else
8464 echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467 ac_header_preproc=no
8468fi
8469rm -f conftest.err conftest.$ac_ext
8470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8471echo "${ECHO_T}$ac_header_preproc" >&6
8472
8473# So? What about this header?
8474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8475 yes:no: )
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8480 ac_header_preproc=yes
8481 ;;
8482 no:yes:* )
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8495 (
8496 cat <<\_ASBOX
8497## ----------------------------------- ##
8498## Report this to llvmbugs@cs.uiuc.edu ##
8499## ----------------------------------- ##
8500_ASBOX
8501 ) |
8502 sed "s/^/$as_me: WARNING: /" >&2
8503 ;;
8504esac
8505echo "$as_me:$LINENO: checking for $ac_header" >&5
8506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8507if eval "test \"\${$as_ac_Header+set}\" = set"; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510 eval "$as_ac_Header=\$ac_header_preproc"
8511fi
8512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514
8515fi
8516if test `eval echo '${'$as_ac_Header'}'` = yes; then
8517 cat >>confdefs.h <<_ACEOF
8518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8519_ACEOF
8520
8521fi
8522
8523done
8524
8525
8526echo "$as_me:$LINENO: checking for error_t" >&5
8527echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8528if test "${ac_cv_type_error_t+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530else
8531 cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
8537#if HAVE_ARGZ_H
8538# include <argz.h>
8539#endif
8540
8541int
8542main ()
8543{
8544if ((error_t *) 0)
8545 return 0;
8546if (sizeof (error_t))
8547 return 0;
8548 ;
8549 return 0;
8550}
8551_ACEOF
8552rm -f conftest.$ac_objext
8553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag"
8562 || test ! -s conftest.err'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest.$ac_objext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_type_error_t=yes
8575else
8576 echo "$as_me: failed program was:" >&5
8577sed 's/^/| /' conftest.$ac_ext >&5
8578
8579ac_cv_type_error_t=no
8580fi
8581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582fi
8583echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8584echo "${ECHO_T}$ac_cv_type_error_t" >&6
8585if test $ac_cv_type_error_t = yes; then
8586
8587cat >>confdefs.h <<_ACEOF
8588#define HAVE_ERROR_T 1
8589_ACEOF
8590
8591
8592else
8593
8594cat >>confdefs.h <<\_ACEOF
8595#define error_t int
8596_ACEOF
8597
8598fi
8599
8600
8601
8602
8603
8604
8605
8606for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8607do
8608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8609echo "$as_me:$LINENO: checking for $ac_func" >&5
8610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8611if eval "test \"\${$as_ac_var+set}\" = set"; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613else
8614 cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h. */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
8619/* end confdefs.h. */
8620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8622#define $ac_func innocuous_$ac_func
8623
8624/* System header to define __stub macros and hopefully few prototypes,
8625 which can conflict with char $ac_func (); below.
8626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8627 <limits.h> exists even on freestanding compilers. */
8628
8629#ifdef __STDC__
8630# include <limits.h>
8631#else
8632# include <assert.h>
8633#endif
8634
8635#undef $ac_func
8636
8637/* Override any gcc2 internal prototype to avoid an error. */
8638#ifdef __cplusplus
8639extern "C"
8640{
8641#endif
8642/* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8644char $ac_func ();
8645/* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649choke me
8650#else
8651char (*f) () = $ac_func;
8652#endif
8653#ifdef __cplusplus
8654}
8655#endif
8656
8657int
8658main ()
8659{
8660return f != $ac_func;
8661 ;
8662 return 0;
8663}
8664_ACEOF
8665rm -f conftest.$ac_objext conftest$ac_exeext
8666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -z "$ac_c_werror_flag"
8675 || test ! -s conftest.err'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; } &&
8681 { ac_try='test -s conftest$ac_exeext'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 eval "$as_ac_var=yes"
8688else
8689 echo "$as_me: failed program was:" >&5
8690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692eval "$as_ac_var=no"
8693fi
8694rm -f conftest.err conftest.$ac_objext \
8695 conftest$ac_exeext conftest.$ac_ext
8696fi
8697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8699if test `eval echo '${'$as_ac_var'}'` = yes; then
8700 cat >>confdefs.h <<_ACEOF
8701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8702_ACEOF
8703
8704fi
8705done
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8735 stdio.h unistd.h
8736do
8737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8738if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739 echo "$as_me:$LINENO: checking for $ac_header" >&5
8740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8741if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743fi
8744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8746else
8747 # Is the header compilable?
8748echo "$as_me:$LINENO: checking $ac_header usability" >&5
8749echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8750cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h. */
8756$ac_includes_default
8757#include <$ac_header>
8758_ACEOF
8759rm -f conftest.$ac_objext
8760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761 (eval $ac_compile) 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag"
8769 || test ! -s conftest.err'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try='test -s conftest.$ac_objext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_header_compiler=yes
8782else
8783 echo "$as_me: failed program was:" >&5
8784sed 's/^/| /' conftest.$ac_ext >&5
8785
8786ac_header_compiler=no
8787fi
8788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8790echo "${ECHO_T}$ac_header_compiler" >&6
8791
8792# Is the header present?
8793echo "$as_me:$LINENO: checking $ac_header presence" >&5
8794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8795cat >conftest.$ac_ext <<_ACEOF
8796/* confdefs.h. */
8797_ACEOF
8798cat confdefs.h >>conftest.$ac_ext
8799cat >>conftest.$ac_ext <<_ACEOF
8800/* end confdefs.h. */
8801#include <$ac_header>
8802_ACEOF
8803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8805 ac_status=$?
8806 grep -v '^ *+' conftest.er1 >conftest.err
8807 rm -f conftest.er1
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } >/dev/null; then
8811 if test -s conftest.err; then
8812 ac_cpp_err=$ac_c_preproc_warn_flag
8813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8814 else
8815 ac_cpp_err=
8816 fi
8817else
8818 ac_cpp_err=yes
8819fi
8820if test -z "$ac_cpp_err"; then
8821 ac_header_preproc=yes
8822else
8823 echo "$as_me: failed program was:" >&5
8824sed 's/^/| /' conftest.$ac_ext >&5
8825
8826 ac_header_preproc=no
8827fi
8828rm -f conftest.err conftest.$ac_ext
8829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8830echo "${ECHO_T}$ac_header_preproc" >&6
8831
8832# So? What about this header?
8833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8834 yes:no: )
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8839 ac_header_preproc=yes
8840 ;;
8841 no:yes:* )
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8854 (
8855 cat <<\_ASBOX
8856## ----------------------------------- ##
8857## Report this to llvmbugs@cs.uiuc.edu ##
8858## ----------------------------------- ##
8859_ASBOX
8860 ) |
8861 sed "s/^/$as_me: WARNING: /" >&2
8862 ;;
8863esac
8864echo "$as_me:$LINENO: checking for $ac_header" >&5
8865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8866if eval "test \"\${$as_ac_Header+set}\" = set"; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869 eval "$as_ac_Header=\$ac_header_preproc"
8870fi
8871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8873
8874fi
8875if test `eval echo '${'$as_ac_Header'}'` = yes; then
8876 cat >>confdefs.h <<_ACEOF
8877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8878_ACEOF
8879
8880fi
8881
8882done
8883
8884
8885
8886
8887
8888for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8889do
8890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896fi
8897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899else
8900 # Is the header compilable?
8901echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8903cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h. */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h. */
8909$ac_includes_default
8910#include <$ac_header>
8911_ACEOF
8912rm -f conftest.$ac_objext
8913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_header_compiler=yes
8935else
8936 echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939ac_header_compiler=no
8940fi
8941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943echo "${ECHO_T}$ac_header_compiler" >&6
8944
8945# Is the header present?
8946echo "$as_me:$LINENO: checking $ac_header presence" >&5
8947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8948cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h. */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h. */
8954#include <$ac_header>
8955_ACEOF
8956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } >/dev/null; then
8964 if test -s conftest.err; then
8965 ac_cpp_err=$ac_c_preproc_warn_flag
8966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8967 else
8968 ac_cpp_err=
8969 fi
8970else
8971 ac_cpp_err=yes
8972fi
8973if test -z "$ac_cpp_err"; then
8974 ac_header_preproc=yes
8975else
8976 echo "$as_me: failed program was:" >&5
8977sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 ac_header_preproc=no
8980fi
8981rm -f conftest.err conftest.$ac_ext
8982echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983echo "${ECHO_T}$ac_header_preproc" >&6
8984
8985# So? What about this header?
8986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8987 yes:no: )
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8992 ac_header_preproc=yes
8993 ;;
8994 no:yes:* )
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9007 (
9008 cat <<\_ASBOX
9009## ----------------------------------- ##
9010## Report this to llvmbugs@cs.uiuc.edu ##
9011## ----------------------------------- ##
9012_ASBOX
9013 ) |
9014 sed "s/^/$as_me: WARNING: /" >&2
9015 ;;
9016esac
9017echo "$as_me:$LINENO: checking for $ac_header" >&5
9018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022 eval "$as_ac_Header=\$ac_header_preproc"
9023fi
9024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9026
9027fi
9028if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029 cat >>confdefs.h <<_ACEOF
9030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031_ACEOF
9032
9033fi
9034
9035done
9036
9037
9038
9039for ac_header in string.h strings.h
9040do
9041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9042if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043 echo "$as_me:$LINENO: checking for $ac_header" >&5
9044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047fi
9048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050else
9051 # Is the header compilable?
9052echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9054cat >conftest.$ac_ext <<_ACEOF
9055/* confdefs.h. */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */
9060$ac_includes_default
9061#include <$ac_header>
9062_ACEOF
9063rm -f conftest.$ac_objext
9064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest.$ac_objext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_header_compiler=yes
9086else
9087 echo "$as_me: failed program was:" >&5
9088sed 's/^/| /' conftest.$ac_ext >&5
9089
9090ac_header_compiler=no
9091fi
9092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094echo "${ECHO_T}$ac_header_compiler" >&6
9095
9096# Is the header present?
9097echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9099cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h. */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h. */
9105#include <$ac_header>
9106_ACEOF
9107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } >/dev/null; then
9115 if test -s conftest.err; then
9116 ac_cpp_err=$ac_c_preproc_warn_flag
9117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9118 else
9119 ac_cpp_err=
9120 fi
9121else
9122 ac_cpp_err=yes
9123fi
9124if test -z "$ac_cpp_err"; then
9125 ac_header_preproc=yes
9126else
9127 echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_header_preproc=no
9131fi
9132rm -f conftest.err conftest.$ac_ext
9133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9134echo "${ECHO_T}$ac_header_preproc" >&6
9135
9136# So? What about this header?
9137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138 yes:no: )
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9143 ac_header_preproc=yes
9144 ;;
9145 no:yes:* )
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9149echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9153echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9158 (
9159 cat <<\_ASBOX
9160## ----------------------------------- ##
9161## Report this to llvmbugs@cs.uiuc.edu ##
9162## ----------------------------------- ##
9163_ASBOX
9164 ) |
9165 sed "s/^/$as_me: WARNING: /" >&2
9166 ;;
9167esac
9168echo "$as_me:$LINENO: checking for $ac_header" >&5
9169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9170if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172else
9173 eval "$as_ac_Header=\$ac_header_preproc"
9174fi
9175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177
9178fi
9179if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182_ACEOF
9183 break
9184fi
9185
9186done
9187
9188
9189
9190
9191for ac_func in strchr index
9192do
9193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9194echo "$as_me:$LINENO: checking for $ac_func" >&5
9195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9196if eval "test \"\${$as_ac_var+set}\" = set"; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198else
9199 cat >conftest.$ac_ext <<_ACEOF
9200/* confdefs.h. */
9201_ACEOF
9202cat confdefs.h >>conftest.$ac_ext
9203cat >>conftest.$ac_ext <<_ACEOF
9204/* end confdefs.h. */
9205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9207#define $ac_func innocuous_$ac_func
9208
9209/* System header to define __stub macros and hopefully few prototypes,
9210 which can conflict with char $ac_func (); below.
9211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212 <limits.h> exists even on freestanding compilers. */
9213
9214#ifdef __STDC__
9215# include <limits.h>
9216#else
9217# include <assert.h>
9218#endif
9219
9220#undef $ac_func
9221
9222/* Override any gcc2 internal prototype to avoid an error. */
9223#ifdef __cplusplus
9224extern "C"
9225{
9226#endif
9227/* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */
9229char $ac_func ();
9230/* The GNU C library defines this for functions which it implements
9231 to always fail with ENOSYS. Some functions are actually named
9232 something starting with __ and the normal name is an alias. */
9233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9234choke me
9235#else
9236char (*f) () = $ac_func;
9237#endif
9238#ifdef __cplusplus
9239}
9240#endif
9241
9242int
9243main ()
9244{
9245return f != $ac_func;
9246 ;
9247 return 0;
9248}
9249_ACEOF
9250rm -f conftest.$ac_objext conftest$ac_exeext
9251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 eval "$as_ac_var=yes"
9273else
9274 echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
9277eval "$as_ac_var=no"
9278fi
9279rm -f conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281fi
9282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9284if test `eval echo '${'$as_ac_var'}'` = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9287_ACEOF
9288 break
9289fi
9290done
9291
9292
9293
9294for ac_func in strrchr rindex
9295do
9296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9297echo "$as_me:$LINENO: checking for $ac_func" >&5
9298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9299if eval "test \"\${$as_ac_var+set}\" = set"; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301else
9302 cat >conftest.$ac_ext <<_ACEOF
9303/* confdefs.h. */
9304_ACEOF
9305cat confdefs.h >>conftest.$ac_ext
9306cat >>conftest.$ac_ext <<_ACEOF
9307/* end confdefs.h. */
9308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9310#define $ac_func innocuous_$ac_func
9311
9312/* System header to define __stub macros and hopefully few prototypes,
9313 which can conflict with char $ac_func (); below.
9314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9315 <limits.h> exists even on freestanding compilers. */
9316
9317#ifdef __STDC__
9318# include <limits.h>
9319#else
9320# include <assert.h>
9321#endif
9322
9323#undef $ac_func
9324
9325/* Override any gcc2 internal prototype to avoid an error. */
9326#ifdef __cplusplus
9327extern "C"
9328{
9329#endif
9330/* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9332char $ac_func ();
9333/* The GNU C library defines this for functions which it implements
9334 to always fail with ENOSYS. Some functions are actually named
9335 something starting with __ and the normal name is an alias. */
9336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9337choke me
9338#else
9339char (*f) () = $ac_func;
9340#endif
9341#ifdef __cplusplus
9342}
9343#endif
9344
9345int
9346main ()
9347{
9348return f != $ac_func;
9349 ;
9350 return 0;
9351}
9352_ACEOF
9353rm -f conftest.$ac_objext conftest$ac_exeext
9354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355 (eval $ac_link) 2>conftest.er1
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try='test -z "$ac_c_werror_flag"
9363 || test ! -s conftest.err'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest$ac_exeext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 eval "$as_ac_var=yes"
9376else
9377 echo "$as_me: failed program was:" >&5
9378sed 's/^/| /' conftest.$ac_ext >&5
9379
9380eval "$as_ac_var=no"
9381fi
9382rm -f conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384fi
9385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9387if test `eval echo '${'$as_ac_var'}'` = yes; then
9388 cat >>confdefs.h <<_ACEOF
9389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9390_ACEOF
9391 break
9392fi
9393done
9394
9395
9396
9397for ac_func in memcpy bcopy
9398do
9399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9400echo "$as_me:$LINENO: checking for $ac_func" >&5
9401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9402if eval "test \"\${$as_ac_var+set}\" = set"; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405 cat >conftest.$ac_ext <<_ACEOF
9406/* confdefs.h. */
9407_ACEOF
9408cat confdefs.h >>conftest.$ac_ext
9409cat >>conftest.$ac_ext <<_ACEOF
9410/* end confdefs.h. */
9411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9413#define $ac_func innocuous_$ac_func
9414
9415/* System header to define __stub macros and hopefully few prototypes,
9416 which can conflict with char $ac_func (); below.
9417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9418 <limits.h> exists even on freestanding compilers. */
9419
9420#ifdef __STDC__
9421# include <limits.h>
9422#else
9423# include <assert.h>
9424#endif
9425
9426#undef $ac_func
9427
9428/* Override any gcc2 internal prototype to avoid an error. */
9429#ifdef __cplusplus
9430extern "C"
9431{
9432#endif
9433/* We use char because int might match the return type of a gcc2
9434 builtin and then its argument prototype would still apply. */
9435char $ac_func ();
9436/* The GNU C library defines this for functions which it implements
9437 to always fail with ENOSYS. Some functions are actually named
9438 something starting with __ and the normal name is an alias. */
9439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9440choke me
9441#else
9442char (*f) () = $ac_func;
9443#endif
9444#ifdef __cplusplus
9445}
9446#endif
9447
9448int
9449main ()
9450{
9451return f != $ac_func;
9452 ;
9453 return 0;
9454}
9455_ACEOF
9456rm -f conftest.$ac_objext conftest$ac_exeext
9457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458 (eval $ac_link) 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -z "$ac_c_werror_flag"
9466 || test ! -s conftest.err'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest$ac_exeext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 eval "$as_ac_var=yes"
9479else
9480 echo "$as_me: failed program was:" >&5
9481sed 's/^/| /' conftest.$ac_ext >&5
9482
9483eval "$as_ac_var=no"
9484fi
9485rm -f conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487fi
9488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9490if test `eval echo '${'$as_ac_var'}'` = yes; then
9491 cat >>confdefs.h <<_ACEOF
9492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9493_ACEOF
9494 break
9495fi
9496done
9497
9498
9499
9500for ac_func in memmove strcmp
9501do
9502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9503echo "$as_me:$LINENO: checking for $ac_func" >&5
9504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9505if eval "test \"\${$as_ac_var+set}\" = set"; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507else
9508 cat >conftest.$ac_ext <<_ACEOF
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */
9514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9516#define $ac_func innocuous_$ac_func
9517
9518/* System header to define __stub macros and hopefully few prototypes,
9519 which can conflict with char $ac_func (); below.
9520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9521 <limits.h> exists even on freestanding compilers. */
9522
9523#ifdef __STDC__
9524# include <limits.h>
9525#else
9526# include <assert.h>
9527#endif
9528
9529#undef $ac_func
9530
9531/* Override any gcc2 internal prototype to avoid an error. */
9532#ifdef __cplusplus
9533extern "C"
9534{
9535#endif
9536/* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9538char $ac_func ();
9539/* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
9542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9543choke me
9544#else
9545char (*f) () = $ac_func;
9546#endif
9547#ifdef __cplusplus
9548}
9549#endif
9550
9551int
9552main ()
9553{
9554return f != $ac_func;
9555 ;
9556 return 0;
9557}
9558_ACEOF
9559rm -f conftest.$ac_objext conftest$ac_exeext
9560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag"
9569 || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 eval "$as_ac_var=yes"
9582else
9583 echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9585
9586eval "$as_ac_var=no"
9587fi
9588rm -f conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590fi
9591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9592echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9593if test `eval echo '${'$as_ac_var'}'` = yes; then
9594 cat >>confdefs.h <<_ACEOF
9595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9596_ACEOF
9597
9598fi
9599done
9600
9601
9602
9603
9604for ac_func in closedir opendir readdir
9605do
9606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9607echo "$as_me:$LINENO: checking for $ac_func" >&5
9608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9609if eval "test \"\${$as_ac_var+set}\" = set"; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611else
9612 cat >conftest.$ac_ext <<_ACEOF
9613/* confdefs.h. */
9614_ACEOF
9615cat confdefs.h >>conftest.$ac_ext
9616cat >>conftest.$ac_ext <<_ACEOF
9617/* end confdefs.h. */
9618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9620#define $ac_func innocuous_$ac_func
9621
9622/* System header to define __stub macros and hopefully few prototypes,
9623 which can conflict with char $ac_func (); below.
9624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9625 <limits.h> exists even on freestanding compilers. */
9626
9627#ifdef __STDC__
9628# include <limits.h>
9629#else
9630# include <assert.h>
9631#endif
9632
9633#undef $ac_func
9634
9635/* Override any gcc2 internal prototype to avoid an error. */
9636#ifdef __cplusplus
9637extern "C"
9638{
9639#endif
9640/* We use char because int might match the return type of a gcc2
9641 builtin and then its argument prototype would still apply. */
9642char $ac_func ();
9643/* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9647choke me
9648#else
9649char (*f) () = $ac_func;
9650#endif
9651#ifdef __cplusplus
9652}
9653#endif
9654
9655int
9656main ()
9657{
9658return f != $ac_func;
9659 ;
9660 return 0;
9661}
9662_ACEOF
9663rm -f conftest.$ac_objext conftest$ac_exeext
9664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag"
9673 || test ! -s conftest.err'
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); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 eval "$as_ac_var=yes"
9686else
9687 echo "$as_me: failed program was:" >&5
9688sed 's/^/| /' conftest.$ac_ext >&5
9689
9690eval "$as_ac_var=no"
9691fi
9692rm -f conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694fi
9695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9697if test `eval echo '${'$as_ac_var'}'` = yes; then
9698 cat >>confdefs.h <<_ACEOF
9699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9700_ACEOF
9701
9702fi
9703done
9704
9705
9706# Check whether --enable-shared or --disable-shared was given.
9707if test "${enable_shared+set}" = set; then
9708 enableval="$enable_shared"
9709 p=${PACKAGE-default}
9710 case $enableval in
9711 yes) enable_shared=yes ;;
9712 no) enable_shared=no ;;
9713 *)
9714 enable_shared=no
9715 # Look at the argument we got. We use all the common list separators.
9716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9717 for pkg in $enableval; do
9718 IFS="$lt_save_ifs"
9719 if test "X$pkg" = "X$p"; then
9720 enable_shared=yes
9721 fi
9722 done
9723 IFS="$lt_save_ifs"
9724 ;;
9725 esac
9726else
9727 enable_shared=yes
9728fi;
9729
9730# Check whether --enable-static or --disable-static was given.
9731if test "${enable_static+set}" = set; then
9732 enableval="$enable_static"
9733 p=${PACKAGE-default}
9734 case $enableval in
9735 yes) enable_static=yes ;;
9736 no) enable_static=no ;;
9737 *)
9738 enable_static=no
9739 # Look at the argument we got. We use all the common list separators.
9740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9741 for pkg in $enableval; do
9742 IFS="$lt_save_ifs"
9743 if test "X$pkg" = "X$p"; then
9744 enable_static=yes
9745 fi
9746 done
9747 IFS="$lt_save_ifs"
9748 ;;
9749 esac
9750else
9751 enable_static=yes
9752fi;
9753
9754# Check whether --enable-fast-install or --disable-fast-install was given.
9755if test "${enable_fast_install+set}" = set; then
9756 enableval="$enable_fast_install"
9757 p=${PACKAGE-default}
9758 case $enableval in
9759 yes) enable_fast_install=yes ;;
9760 no) enable_fast_install=no ;;
9761 *)
9762 enable_fast_install=no
9763 # Look at the argument we got. We use all the common list separators.
9764 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9765 for pkg in $enableval; do
9766 IFS="$lt_save_ifs"
9767 if test "X$pkg" = "X$p"; then
9768 enable_fast_install=yes
9769 fi
9770 done
9771 IFS="$lt_save_ifs"
9772 ;;
9773 esac
9774else
9775 enable_fast_install=yes
9776fi;
9777
9778echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9779echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9780if test "${lt_cv_path_SED+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782else
9783 # Loop through the user's path and test for sed and gsed.
9784# Then use that list of sed's as ones to test for truncation.
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for lt_ac_prog in sed gsed; do
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9793 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9794 fi
9795 done
9796 done
9797done
9798lt_ac_max=0
9799lt_ac_count=0
9800# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9801# along with /bin/sed that truncates output.
9802for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9803 test ! -f $lt_ac_sed && break
9804 cat /dev/null > conftest.in
9805 lt_ac_count=0
9806 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9807 # Check for GNU sed and select it if it is found.
9808 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9809 lt_cv_path_SED=$lt_ac_sed
9810 break
9811 fi
9812 while true; do
9813 cat conftest.in conftest.in >conftest.tmp
9814 mv conftest.tmp conftest.in
9815 cp conftest.in conftest.nl
9816 echo >>conftest.nl
9817 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9818 cmp -s conftest.out conftest.nl || break
9819 # 10000 chars as input seems more than enough
9820 test $lt_ac_count -gt 10 && break
9821 lt_ac_count=`expr $lt_ac_count + 1`
9822 if test $lt_ac_count -gt $lt_ac_max; then
9823 lt_ac_max=$lt_ac_count
9824 lt_cv_path_SED=$lt_ac_sed
9825 fi
9826 done
9827done
9828
9829fi
9830
9831SED=$lt_cv_path_SED
9832echo "$as_me:$LINENO: result: $SED" >&5
9833echo "${ECHO_T}$SED" >&6
9834
9835
9836# Check whether --with-gnu-ld or --without-gnu-ld was given.
9837if test "${with_gnu_ld+set}" = set; then
9838 withval="$with_gnu_ld"
9839 test "$withval" = no || with_gnu_ld=yes
9840else
9841 with_gnu_ld=no
9842fi;
9843ac_prog=ld
9844if test "$GCC" = yes; then
9845 # Check if gcc -print-prog-name=ld gives a path.
9846 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9847echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9848 case $host in
9849 *-*-mingw*)
9850 # gcc leaves a trailing carriage return which upsets mingw
9851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9852 *)
9853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9854 esac
9855 case $ac_prog in
9856 # Accept absolute paths.
9857 [\\/]* | ?:[\\/]*)
9858 re_direlt='/[^/][^/]*/\.\./'
9859 # Canonicalize the pathname of ld
9860 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9861 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9862 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9863 done
9864 test -z "$LD" && LD="$ac_prog"
9865 ;;
9866 "")
9867 # If it fails, then pretend we aren't using GCC.
9868 ac_prog=ld
9869 ;;
9870 *)
9871 # If it is relative, then search for the first ld in PATH.
9872 with_gnu_ld=unknown
9873 ;;
9874 esac
9875elif test "$with_gnu_ld" = yes; then
9876 echo "$as_me:$LINENO: checking for GNU ld" >&5
9877echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9878else
9879 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9880echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9881fi
9882if test "${lt_cv_path_LD+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884else
9885 if test -z "$LD"; then
9886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9887 for ac_dir in $PATH; do
9888 IFS="$lt_save_ifs"
9889 test -z "$ac_dir" && ac_dir=.
9890 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9891 lt_cv_path_LD="$ac_dir/$ac_prog"
9892 # Check to see if the program is GNU ld. I'd rather use --version,
9893 # but apparently some GNU ld's only accept -v.
9894 # Break only if it was the GNU/non-GNU ld that we prefer.
9895 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9896 *GNU* | *'with BFD'*)
9897 test "$with_gnu_ld" != no && break
9898 ;;
9899 *)
9900 test "$with_gnu_ld" != yes && break
9901 ;;
9902 esac
9903 fi
9904 done
9905 IFS="$lt_save_ifs"
9906else
9907 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9908fi
9909fi
9910
9911LD="$lt_cv_path_LD"
9912if test -n "$LD"; then
9913 echo "$as_me:$LINENO: result: $LD" >&5
9914echo "${ECHO_T}$LD" >&6
9915else
9916 echo "$as_me:$LINENO: result: no" >&5
9917echo "${ECHO_T}no" >&6
9918fi
9919test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9920echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9921 { (exit 1); exit 1; }; }
9922echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9923echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9924if test "${lt_cv_prog_gnu_ld+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
9927 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9928case `$LD -v 2>&1 </dev/null` in
9929*GNU* | *'with BFD'*)
9930 lt_cv_prog_gnu_ld=yes
9931 ;;
9932*)
9933 lt_cv_prog_gnu_ld=no
9934 ;;
9935esac
9936fi
9937echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9938echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9939with_gnu_ld=$lt_cv_prog_gnu_ld
9940
9941
9942echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9943echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9944if test "${lt_cv_ld_reload_flag+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946else
9947 lt_cv_ld_reload_flag='-r'
9948fi
9949echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9950echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9951reload_flag=$lt_cv_ld_reload_flag
9952case $reload_flag in
9953"" | " "*) ;;
9954*) reload_flag=" $reload_flag" ;;
9955esac
9956reload_cmds='$LD$reload_flag -o $output$reload_objs'
9957case $host_os in
9958 darwin*)
9959 if test "$GCC" = yes; then
9960 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9961 else
9962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9963 fi
9964 ;;
9965esac
9966
9967echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9968echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9969if test "${lt_cv_deplibs_check_method+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971else
9972 lt_cv_file_magic_cmd='$MAGIC_CMD'
9973lt_cv_file_magic_test_file=
9974lt_cv_deplibs_check_method='unknown'
9975# Need to set the preceding variable on all platforms that support
9976# interlibrary dependencies.
9977# 'none' -- dependencies not supported.
9978# `unknown' -- same as none, but documents that we really don't know.
9979# 'pass_all' -- all dependencies passed with no checks.
9980# 'test_compile' -- check by making test program.
9981# 'file_magic [[regex]]' -- check by looking for files in library path
9982# which responds to the $file_magic_cmd with a given extended regex.
9983# If you have `file' or equivalent on your system and you're not sure
9984# whether `pass_all' will *always* work, you probably want this one.
9985
9986case $host_os in
9987aix4* | aix5*)
9988 lt_cv_deplibs_check_method=pass_all
9989 ;;
9990
9991beos*)
9992 lt_cv_deplibs_check_method=pass_all
9993 ;;
9994
9995bsdi[45]*)
9996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9997 lt_cv_file_magic_cmd='/usr/bin/file -L'
9998 lt_cv_file_magic_test_file=/shlib/libc.so
9999 ;;
10000
10001cygwin*)
10002 # func_win32_libid is a shell function defined in ltmain.sh
10003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10004 lt_cv_file_magic_cmd='func_win32_libid'
10005 ;;
10006
10007mingw* | pw32*)
10008 # Base MSYS/MinGW do not provide the 'file' command needed by
10009 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10010 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10011 lt_cv_file_magic_cmd='$OBJDUMP -f'
10012 ;;
10013
10014darwin* | rhapsody*)
10015 lt_cv_deplibs_check_method=pass_all
10016 ;;
10017
10018freebsd* | kfreebsd*-gnu)
10019 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10020 case $host_cpu in
10021 i*86 )
10022 # Not sure whether the presence of OpenBSD here was a mistake.
10023 # Let's accept both of them until this is cleared up.
10024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10025 lt_cv_file_magic_cmd=/usr/bin/file
10026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10027 ;;
10028 esac
10029 else
10030 lt_cv_deplibs_check_method=pass_all
10031 fi
10032 ;;
10033
10034gnu*)
10035 lt_cv_deplibs_check_method=pass_all
10036 ;;
10037
10038hpux10.20* | hpux11*)
10039 lt_cv_file_magic_cmd=/usr/bin/file
10040 case "$host_cpu" in
10041 ia64*)
10042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10044 ;;
10045 hppa*64*)
10046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10048 ;;
10049 *)
10050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10052 ;;
10053 esac
10054 ;;
10055
10056irix5* | irix6* | nonstopux*)
10057 case $LD in
10058 *-32|*"-32 ") libmagic=32-bit;;
10059 *-n32|*"-n32 ") libmagic=N32;;
10060 *-64|*"-64 ") libmagic=64-bit;;
10061 *) libmagic=never-match;;
10062 esac
10063 lt_cv_deplibs_check_method=pass_all
10064 ;;
10065
10066# This must be Linux ELF.
10067linux*)
10068 lt_cv_deplibs_check_method=pass_all
10069 ;;
10070
10071netbsd*)
10072 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10074 else
10075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10076 fi
10077 ;;
10078
10079newos6*)
10080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10081 lt_cv_file_magic_cmd=/usr/bin/file
10082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10083 ;;
10084
10085nto-qnx*)
10086 lt_cv_deplibs_check_method=unknown
10087 ;;
10088
10089openbsd*)
10090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10092 else
10093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10094 fi
10095 ;;
10096
10097osf3* | osf4* | osf5*)
10098 lt_cv_deplibs_check_method=pass_all
10099 ;;
10100
10101sco3.2v5*)
10102 lt_cv_deplibs_check_method=pass_all
10103 ;;
10104
10105solaris*)
10106 lt_cv_deplibs_check_method=pass_all
10107 ;;
10108
10109sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10110 case $host_vendor in
10111 motorola)
10112 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]'
10113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10114 ;;
10115 ncr)
10116 lt_cv_deplibs_check_method=pass_all
10117 ;;
10118 sequent)
10119 lt_cv_file_magic_cmd='/bin/file'
10120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10121 ;;
10122 sni)
10123 lt_cv_file_magic_cmd='/bin/file'
10124 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10125 lt_cv_file_magic_test_file=/lib/libc.so
10126 ;;
10127 siemens)
10128 lt_cv_deplibs_check_method=pass_all
10129 ;;
10130 esac
10131 ;;
10132
10133sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10134 lt_cv_deplibs_check_method=pass_all
10135 ;;
10136esac
10137
10138fi
10139echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10140echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10141file_magic_cmd=$lt_cv_file_magic_cmd
10142deplibs_check_method=$lt_cv_deplibs_check_method
10143test -z "$deplibs_check_method" && deplibs_check_method=unknown
10144
10145
10146
10147# If no C compiler was specified, use CC.
10148LTCC=${LTCC-"$CC"}
10149
10150# Allow CC to be a program name with arguments.
10151compiler=$CC
10152
10153# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10154if test "${enable_libtool_lock+set}" = set; then
10155 enableval="$enable_libtool_lock"
10156
10157fi;
10158test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10159
10160# Some flags need to be propagated to the compiler or linker for good
10161# libtool support.
10162case $host in
10163ia64-*-hpux*)
10164 # Find out which ABI we are using.
10165 echo 'int i;' > conftest.$ac_ext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; then
10171 case `/usr/bin/file conftest.$ac_objext` in
10172 *ELF-32*)
10173 HPUX_IA64_MODE="32"
10174 ;;
10175 *ELF-64*)
10176 HPUX_IA64_MODE="64"
10177 ;;
10178 esac
10179 fi
10180 rm -rf conftest*
10181 ;;
10182*-*-irix6*)
10183 # Find out which ABI we are using.
Reid Spencercda35f82004-12-02 04:17:20 +000010184 echo '#line 10184 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; then
10190 if test "$lt_cv_prog_gnu_ld" = yes; then
10191 case `/usr/bin/file conftest.$ac_objext` in
10192 *32-bit*)
10193 LD="${LD-ld} -melf32bsmip"
10194 ;;
10195 *N32*)
10196 LD="${LD-ld} -melf32bmipn32"
10197 ;;
10198 *64-bit*)
10199 LD="${LD-ld} -melf64bmip"
10200 ;;
10201 esac
10202 else
10203 case `/usr/bin/file conftest.$ac_objext` in
10204 *32-bit*)
10205 LD="${LD-ld} -32"
10206 ;;
10207 *N32*)
10208 LD="${LD-ld} -n32"
10209 ;;
10210 *64-bit*)
10211 LD="${LD-ld} -64"
10212 ;;
10213 esac
10214 fi
10215 fi
10216 rm -rf conftest*
10217 ;;
10218
10219x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10220 # Find out which ABI we are using.
10221 echo 'int i;' > conftest.$ac_ext
10222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223 (eval $ac_compile) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; then
10227 case "`/usr/bin/file conftest.o`" in
10228 *32-bit*)
10229 case $host in
10230 x86_64-*linux*)
10231 LD="${LD-ld} -m elf_i386"
10232 ;;
10233 ppc64-*linux*|powerpc64-*linux*)
10234 LD="${LD-ld} -m elf32ppclinux"
10235 ;;
10236 s390x-*linux*)
10237 LD="${LD-ld} -m elf_s390"
10238 ;;
10239 sparc64-*linux*)
10240 LD="${LD-ld} -m elf32_sparc"
10241 ;;
10242 esac
10243 ;;
10244 *64-bit*)
10245 case $host in
10246 x86_64-*linux*)
10247 LD="${LD-ld} -m elf_x86_64"
10248 ;;
10249 ppc*-*linux*|powerpc*-*linux*)
10250 LD="${LD-ld} -m elf64ppc"
10251 ;;
10252 s390*-*linux*)
10253 LD="${LD-ld} -m elf64_s390"
10254 ;;
10255 sparc*-*linux*)
10256 LD="${LD-ld} -m elf64_sparc"
10257 ;;
10258 esac
10259 ;;
10260 esac
10261 fi
10262 rm -rf conftest*
10263 ;;
10264
10265*-*-sco3.2v5*)
10266 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10267 SAVE_CFLAGS="$CFLAGS"
10268 CFLAGS="$CFLAGS -belf"
10269 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10270echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10271if test "${lt_cv_cc_needs_belf+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 ac_ext=c
10275ac_cpp='$CPP $CPPFLAGS'
10276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10278ac_compiler_gnu=$ac_cv_c_compiler_gnu
10279
10280 cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h. */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h. */
10286
10287_ACEOF
10288rm -f conftest.$ac_objext conftest$ac_exeext
10289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290 (eval $ac_link) 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -z "$ac_c_werror_flag"
10298 || test ! -s conftest.err'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 lt_cv_cc_needs_belf=yes
10311else
10312 echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315lt_cv_cc_needs_belf=no
10316fi
10317rm -f conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 ac_ext=c
10320ac_cpp='$CPP $CPPFLAGS'
10321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10323ac_compiler_gnu=$ac_cv_c_compiler_gnu
10324
10325fi
10326echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10327echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10329 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10330 CFLAGS="$SAVE_CFLAGS"
10331 fi
10332 ;;
10333
10334esac
10335
10336need_locks="$enable_libtool_lock"
10337
10338
Reid Spencer2706f8c2004-09-19 23:53:36 +000010339
10340
10341if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10342 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10343 (test "X$CXX" != "Xg++"))) ; then
10344 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010345ac_cpp='$CXXCPP $CPPFLAGS'
10346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10349echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10350echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10351if test -z "$CXXCPP"; then
10352 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
John Criswell47fdd832003-07-14 16:52:07 +000010355 # Double quotes because CXXCPP needs to be expanded
10356 for CXXCPP in "$CXX -E" "/lib/cpp"
10357 do
10358 ac_preproc_ok=false
10359for ac_cxx_preproc_warn_flag in '' yes
10360do
10361 # Use a header file that comes with gcc, so configuring glibc
10362 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10364 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010365 # On the NeXT, cc -E runs the code through the compiler's parser,
10366 # not just through cpp. "Syntax error" is here to catch this case.
10367 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010368/* confdefs.h. */
10369_ACEOF
10370cat confdefs.h >>conftest.$ac_ext
10371cat >>conftest.$ac_ext <<_ACEOF
10372/* end confdefs.h. */
10373#ifdef __STDC__
10374# include <limits.h>
10375#else
10376# include <assert.h>
10377#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010378 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010379_ACEOF
10380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10382 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010383 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } >/dev/null; then
10388 if test -s conftest.err; then
10389 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010390 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010391 else
John Criswell47fdd832003-07-14 16:52:07 +000010392 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010393 fi
John Criswell47fdd832003-07-14 16:52:07 +000010394else
10395 ac_cpp_err=yes
10396fi
10397if test -z "$ac_cpp_err"; then
10398 :
10399else
10400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010401sed 's/^/| /' conftest.$ac_ext >&5
10402
John Criswell47fdd832003-07-14 16:52:07 +000010403 # Broken: fails on valid input.
10404continue
10405fi
10406rm -f conftest.err conftest.$ac_ext
10407
10408 # OK, works on sane cases. Now check whether non-existent headers
10409 # can be detected and how.
10410 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010411/* confdefs.h. */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010416#include <ac_nonexistent.h>
10417_ACEOF
10418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10420 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010421 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } >/dev/null; then
10426 if test -s conftest.err; then
10427 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010428 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010429 else
10430 ac_cpp_err=
10431 fi
10432else
10433 ac_cpp_err=yes
10434fi
10435if test -z "$ac_cpp_err"; then
10436 # Broken: success on invalid input.
10437continue
10438else
10439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010440sed 's/^/| /' conftest.$ac_ext >&5
10441
John Criswell47fdd832003-07-14 16:52:07 +000010442 # Passes both tests.
10443ac_preproc_ok=:
10444break
10445fi
10446rm -f conftest.err conftest.$ac_ext
10447
10448done
10449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10450rm -f conftest.err conftest.$ac_ext
10451if $ac_preproc_ok; then
10452 break
John Criswell7a73b802003-06-30 21:59:07 +000010453fi
10454
John Criswell47fdd832003-07-14 16:52:07 +000010455 done
10456 ac_cv_prog_CXXCPP=$CXXCPP
10457
10458fi
10459 CXXCPP=$ac_cv_prog_CXXCPP
10460else
10461 ac_cv_prog_CXXCPP=$CXXCPP
10462fi
10463echo "$as_me:$LINENO: result: $CXXCPP" >&5
10464echo "${ECHO_T}$CXXCPP" >&6
10465ac_preproc_ok=false
10466for ac_cxx_preproc_warn_flag in '' yes
10467do
10468 # Use a header file that comes with gcc, so configuring glibc
10469 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10471 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010472 # On the NeXT, cc -E runs the code through the compiler's parser,
10473 # not just through cpp. "Syntax error" is here to catch this case.
10474 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010475/* confdefs.h. */
10476_ACEOF
10477cat confdefs.h >>conftest.$ac_ext
10478cat >>conftest.$ac_ext <<_ACEOF
10479/* end confdefs.h. */
10480#ifdef __STDC__
10481# include <limits.h>
10482#else
10483# include <assert.h>
10484#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010485 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010486_ACEOF
10487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10489 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010490 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } >/dev/null; then
10495 if test -s conftest.err; then
10496 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010497 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010498 else
10499 ac_cpp_err=
10500 fi
10501else
10502 ac_cpp_err=yes
10503fi
10504if test -z "$ac_cpp_err"; then
10505 :
10506else
10507 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010508sed 's/^/| /' conftest.$ac_ext >&5
10509
John Criswell47fdd832003-07-14 16:52:07 +000010510 # Broken: fails on valid input.
10511continue
10512fi
10513rm -f conftest.err conftest.$ac_ext
10514
10515 # OK, works on sane cases. Now check whether non-existent headers
10516 # can be detected and how.
10517 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010518/* confdefs.h. */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010523#include <ac_nonexistent.h>
10524_ACEOF
10525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10527 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010528 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } >/dev/null; then
10533 if test -s conftest.err; then
10534 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010535 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010536 else
10537 ac_cpp_err=
10538 fi
10539else
10540 ac_cpp_err=yes
10541fi
10542if test -z "$ac_cpp_err"; then
10543 # Broken: success on invalid input.
10544continue
10545else
10546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010547sed 's/^/| /' conftest.$ac_ext >&5
10548
John Criswell47fdd832003-07-14 16:52:07 +000010549 # Passes both tests.
10550ac_preproc_ok=:
10551break
10552fi
10553rm -f conftest.err conftest.$ac_ext
10554
10555done
10556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10557rm -f conftest.err conftest.$ac_ext
10558if $ac_preproc_ok; then
10559 :
10560else
John Criswell0c38eaf2003-09-10 15:17:25 +000010561 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10562See \`config.log' for more details." >&5
10563echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10564See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010565 { (exit 1); exit 1; }; }
10566fi
10567
10568ac_ext=cc
10569ac_cpp='$CXXCPP $CPPFLAGS'
10570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10573
Reid Spencer2706f8c2004-09-19 23:53:36 +000010574fi
10575
John Criswell47fdd832003-07-14 16:52:07 +000010576
10577ac_ext=f
10578ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10579ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10581if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010582 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +000010583 do
10584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10585set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10586echo "$as_me:$LINENO: checking for $ac_word" >&5
10587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10588if test "${ac_cv_prog_F77+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590else
10591 if test -n "$F77"; then
10592 ac_cv_prog_F77="$F77" # Let the user override the test.
10593else
10594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595for as_dir in $PATH
10596do
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10604 fi
10605done
10606done
10607
10608fi
10609fi
10610F77=$ac_cv_prog_F77
10611if test -n "$F77"; then
10612 echo "$as_me:$LINENO: result: $F77" >&5
10613echo "${ECHO_T}$F77" >&6
10614else
10615 echo "$as_me:$LINENO: result: no" >&5
10616echo "${ECHO_T}no" >&6
10617fi
10618
10619 test -n "$F77" && break
10620 done
10621fi
10622if test -z "$F77"; then
10623 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010624 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +000010625do
10626 # Extract the first word of "$ac_prog", so it can be a program name with args.
10627set dummy $ac_prog; ac_word=$2
10628echo "$as_me:$LINENO: checking for $ac_word" >&5
10629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10630if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632else
10633 if test -n "$ac_ct_F77"; then
10634 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10635else
10636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637for as_dir in $PATH
10638do
10639 IFS=$as_save_IFS
10640 test -z "$as_dir" && as_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
10642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10643 ac_cv_prog_ac_ct_F77="$ac_prog"
10644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 break 2
10646 fi
10647done
10648done
10649
10650fi
10651fi
10652ac_ct_F77=$ac_cv_prog_ac_ct_F77
10653if test -n "$ac_ct_F77"; then
10654 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10655echo "${ECHO_T}$ac_ct_F77" >&6
10656else
10657 echo "$as_me:$LINENO: result: no" >&5
10658echo "${ECHO_T}no" >&6
10659fi
10660
10661 test -n "$ac_ct_F77" && break
10662done
10663
10664 F77=$ac_ct_F77
10665fi
10666
10667
10668# Provide some information about the compiler.
Reid Spencercda35f82004-12-02 04:17:20 +000010669echo "$as_me:10669:" \
John Criswell47fdd832003-07-14 16:52:07 +000010670 "checking for Fortran 77 compiler version" >&5
10671ac_compiler=`set X $ac_compile; echo $2`
10672{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10673 (eval $ac_compiler --version </dev/null >&5) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }
10677{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10678 (eval $ac_compiler -v </dev/null >&5) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }
10682{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10683 (eval $ac_compiler -V </dev/null >&5) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010687rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010688
10689# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010690# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010691ac_save_ext=$ac_ext
10692ac_ext=F
10693echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10694echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10695if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 program main
10700#ifndef __GNUC__
10701 choke me
10702#endif
10703
10704 end
10705_ACEOF
10706rm -f conftest.$ac_objext
10707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010708 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010715 { ac_try='test -z "$ac_f77_werror_flag"
10716 || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10728 ac_compiler_gnu=yes
10729else
10730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010731sed 's/^/| /' conftest.$ac_ext >&5
10732
John Criswell47fdd832003-07-14 16:52:07 +000010733ac_compiler_gnu=no
10734fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010736ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10737
10738fi
10739echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10740echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10741ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010742ac_test_FFLAGS=${FFLAGS+set}
10743ac_save_FFLAGS=$FFLAGS
10744FFLAGS=
10745echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10746echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10747if test "${ac_cv_prog_f77_g+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749else
10750 FFLAGS=-g
10751cat >conftest.$ac_ext <<_ACEOF
10752 program main
10753
10754 end
10755_ACEOF
10756rm -f conftest.$ac_objext
10757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010758 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010765 { ac_try='test -z "$ac_f77_werror_flag"
10766 || test ! -s conftest.err'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_prog_f77_g=yes
10779else
10780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010781sed 's/^/| /' conftest.$ac_ext >&5
10782
John Criswell47fdd832003-07-14 16:52:07 +000010783ac_cv_prog_f77_g=no
10784fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010786
10787fi
10788echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10789echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10790if test "$ac_test_FFLAGS" = set; then
10791 FFLAGS=$ac_save_FFLAGS
10792elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010793 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010794 FFLAGS="-g -O2"
10795 else
10796 FFLAGS="-g"
10797 fi
10798else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010799 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010800 FFLAGS="-O2"
10801 else
10802 FFLAGS=
10803 fi
10804fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010805
10806G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010807ac_ext=c
10808ac_cpp='$CPP $CPPFLAGS'
10809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811ac_compiler_gnu=$ac_cv_c_compiler_gnu
10812
10813
10814
10815# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10816
10817# find the maximum length of command line arguments
10818echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10819echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10820if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010824 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010825
10826 case $build_os in
10827 msdosdjgpp*)
10828 # On DJGPP, this test can blow up pretty badly due to problems in libc
10829 # (any single argument exceeding 2000 bytes causes a buffer overrun
10830 # during glob expansion). Even if it were fixed, the result of this
10831 # check would be larger than it should be.
10832 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10833 ;;
10834
10835 gnu*)
10836 # Under GNU Hurd, this test is not required because there is
10837 # no limit to the length of command line arguments.
10838 # Libtool will interpret -1 as no limit whatsoever
10839 lt_cv_sys_max_cmd_len=-1;
10840 ;;
10841
10842 cygwin* | mingw*)
10843 # On Win9x/ME, this test blows up -- it succeeds, but takes
10844 # about 5 minutes as the teststring grows exponentially.
10845 # Worse, since 9x/ME are not pre-emptively multitasking,
10846 # you end up with a "frozen" computer, even though with patience
10847 # the test eventually succeeds (with a max line length of 256k).
10848 # Instead, let's just punt: use the minimum linelength reported by
10849 # all of the supported platforms: 8192 (on NT/2K/XP).
10850 lt_cv_sys_max_cmd_len=8192;
10851 ;;
10852
Reid Spencer2706f8c2004-09-19 23:53:36 +000010853 amigaos*)
10854 # On AmigaOS with pdksh, this test takes hours, literally.
10855 # So we just punt and use a minimum line length of 8192.
10856 lt_cv_sys_max_cmd_len=8192;
10857 ;;
10858
10859 netbsd* | freebsd* | openbsd* | darwin* )
10860 # This has been around since 386BSD, at least. Likely further.
10861 if test -x /sbin/sysctl; then
10862 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10863 elif test -x /usr/sbin/sysctl; then
10864 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10865 else
10866 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10867 fi
10868 # And add a safety zone
10869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10870 ;;
10871
John Criswell47fdd832003-07-14 16:52:07 +000010872 *)
10873 # If test is not a shell built-in, we'll probably end up computing a
10874 # maximum length that is only half of the actual maximum length, but
10875 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010876 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10877 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10878 = "XX$teststring") >/dev/null 2>&1 &&
10879 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010880 lt_cv_sys_max_cmd_len=$new_result &&
10881 test $i != 17 # 1/2 MB should be enough
10882 do
10883 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010884 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010885 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010886 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010887 # Add a significant safety factor because C++ compilers can tack on massive
10888 # amounts of additional arguments before passing them to the linker.
10889 # It appears as though 1/2 is a usable value.
10890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10891 ;;
10892 esac
10893
10894fi
10895
10896if test -n $lt_cv_sys_max_cmd_len ; then
10897 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10898echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10899else
10900 echo "$as_me:$LINENO: result: none" >&5
10901echo "${ECHO_T}none" >&6
10902fi
10903
10904
10905
10906
10907# Check for command to grab the raw symbol name followed by C symbol from nm.
10908echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10909echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10910if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913
10914# These are sane defaults that work on at least a few old systems.
10915# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10916
10917# Character class describing NM global symbol codes.
10918symcode='[BCDEGRST]'
10919
10920# Regexp to match symbols that can be accessed directly from C.
10921sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10922
10923# Transform the above into a raw symbol and a C symbol.
10924symxfrm='\1 \2\3 \3'
10925
10926# Transform an extracted symbol line into a proper C declaration
10927lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10928
10929# Transform an extracted symbol line into symbol name and symbol address
10930lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10931
10932# Define system-specific variables.
10933case $host_os in
10934aix*)
10935 symcode='[BCDT]'
10936 ;;
10937cygwin* | mingw* | pw32*)
10938 symcode='[ABCDGISTW]'
10939 ;;
10940hpux*) # Its linker distinguishes data from code symbols
10941 if test "$host_cpu" = ia64; then
10942 symcode='[ABCDEGRST]'
10943 fi
10944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10946 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010947linux*)
10948 if test "$host_cpu" = ia64; then
10949 symcode='[ABCDGIRSTW]'
10950 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10951 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10952 fi
10953 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010954irix* | nonstopux*)
10955 symcode='[BCDEGRST]'
10956 ;;
10957osf*)
10958 symcode='[BCDEGQRST]'
10959 ;;
10960solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010961 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010962 ;;
10963sysv4)
10964 symcode='[DFNSTU]'
10965 ;;
10966esac
10967
10968# Handle CRLF in mingw tool chain
10969opt_cr=
10970case $build_os in
10971mingw*)
10972 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10973 ;;
10974esac
10975
10976# If we're using GNU nm, then use its standard symbol codes.
10977case `$NM -V 2>&1` in
10978*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010979 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000010980esac
10981
10982# Try without a prefix undercore, then with it.
10983for ac_symprfx in "" "_"; do
10984
10985 # Write the raw and C identifiers.
10986 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10987
10988 # Check to see that the pipe works correctly.
10989 pipe_works=no
10990
10991 rm -f conftest*
10992 cat > conftest.$ac_ext <<EOF
10993#ifdef __cplusplus
10994extern "C" {
10995#endif
10996char nm_test_var;
10997void nm_test_func(){}
10998#ifdef __cplusplus
10999}
11000#endif
11001int main(){nm_test_var='a';nm_test_func();return(0);}
11002EOF
11003
11004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005 (eval $ac_compile) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; then
11009 # Now try to grab the symbols.
11010 nlist=conftest.nm
11011 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11012 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && test -s "$nlist"; then
11016 # Try sorting and uniquifying the output.
11017 if sort "$nlist" | uniq > "$nlist"T; then
11018 mv -f "$nlist"T "$nlist"
11019 else
11020 rm -f "$nlist"T
11021 fi
11022
11023 # Make sure that we snagged all the symbols we need.
11024 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11025 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11026 cat <<EOF > conftest.$ac_ext
11027#ifdef __cplusplus
11028extern "C" {
11029#endif
11030
11031EOF
11032 # Now generate the symbol file.
11033 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11034
11035 cat <<EOF >> conftest.$ac_ext
11036#if defined (__STDC__) && __STDC__
11037# define lt_ptr_t void *
11038#else
11039# define lt_ptr_t char *
11040# define const
11041#endif
11042
11043/* The mapping between symbol names and symbols. */
11044const struct {
11045 const char *name;
11046 lt_ptr_t address;
11047}
11048lt_preloaded_symbols[] =
11049{
11050EOF
11051 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11052 cat <<\EOF >> conftest.$ac_ext
11053 {0, (lt_ptr_t) 0}
11054};
11055
11056#ifdef __cplusplus
11057}
11058#endif
11059EOF
11060 # Now try linking the two files.
11061 mv conftest.$ac_objext conftstm.$ac_objext
11062 lt_save_LIBS="$LIBS"
11063 lt_save_CFLAGS="$CFLAGS"
11064 LIBS="conftstm.$ac_objext"
11065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067 (eval $ac_link) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11071 pipe_works=yes
11072 fi
11073 LIBS="$lt_save_LIBS"
11074 CFLAGS="$lt_save_CFLAGS"
11075 else
11076 echo "cannot find nm_test_func in $nlist" >&5
11077 fi
11078 else
11079 echo "cannot find nm_test_var in $nlist" >&5
11080 fi
11081 else
11082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11083 fi
11084 else
11085 echo "$progname: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 fi
11088 rm -f conftest* conftst*
11089
11090 # Do not use the global_symbol_pipe unless it works.
11091 if test "$pipe_works" = yes; then
11092 break
11093 else
11094 lt_cv_sys_global_symbol_pipe=
11095 fi
11096done
11097
11098fi
11099
11100if test -z "$lt_cv_sys_global_symbol_pipe"; then
11101 lt_cv_sys_global_symbol_to_cdecl=
11102fi
11103if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11104 echo "$as_me:$LINENO: result: failed" >&5
11105echo "${ECHO_T}failed" >&6
11106else
11107 echo "$as_me:$LINENO: result: ok" >&5
11108echo "${ECHO_T}ok" >&6
11109fi
11110
11111echo "$as_me:$LINENO: checking for objdir" >&5
11112echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11113if test "${lt_cv_objdir+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115else
11116 rm -f .libs 2>/dev/null
11117mkdir .libs 2>/dev/null
11118if test -d .libs; then
11119 lt_cv_objdir=.libs
11120else
11121 # MS-DOS does not allow filenames that begin with a dot.
11122 lt_cv_objdir=_libs
11123fi
11124rmdir .libs 2>/dev/null
11125fi
11126echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11127echo "${ECHO_T}$lt_cv_objdir" >&6
11128objdir=$lt_cv_objdir
11129
11130
11131
11132
11133
11134case $host_os in
11135aix3*)
11136 # AIX sometimes has problems with the GCC collect2 program. For some
11137 # reason, if we set the COLLECT_NAMES environment variable, the problems
11138 # vanish in a puff of smoke.
11139 if test "X${COLLECT_NAMES+set}" != Xset; then
11140 COLLECT_NAMES=
11141 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011142 fi
11143 ;;
11144esac
11145
John Criswell47fdd832003-07-14 16:52:07 +000011146# Sed substitution that helps us do robust quoting. It backslashifies
11147# metacharacters that are still active within double-quoted strings.
11148Xsed='sed -e s/^X//'
11149sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11150
11151# Same as above, but do not quote variable references.
11152double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11153
11154# Sed substitution to delay expansion of an escaped shell variable in a
11155# double_quote_subst'ed string.
11156delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11157
11158# Sed substitution to avoid accidental globbing in evaled expressions
11159no_glob_subst='s/\*/\\\*/g'
11160
11161# Constants:
11162rm="rm -f"
11163
11164# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011165default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011166can_build_shared=yes
11167
11168# All known linkers require a `.a' archive for static linking (except M$VC,
11169# which needs '.lib').
11170libext=a
11171ltmain="$ac_aux_dir/ltmain.sh"
11172ofile="$default_ofile"
11173with_gnu_ld="$lt_cv_prog_gnu_ld"
11174
11175if test -n "$ac_tool_prefix"; then
11176 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11177set dummy ${ac_tool_prefix}ar; ac_word=$2
11178echo "$as_me:$LINENO: checking for $ac_word" >&5
11179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11180if test "${ac_cv_prog_AR+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182else
11183 if test -n "$AR"; then
11184 ac_cv_prog_AR="$AR" # Let the user override the test.
11185else
11186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187for as_dir in $PATH
11188do
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193 ac_cv_prog_AR="${ac_tool_prefix}ar"
11194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11196 fi
11197done
11198done
11199
11200fi
11201fi
11202AR=$ac_cv_prog_AR
11203if test -n "$AR"; then
11204 echo "$as_me:$LINENO: result: $AR" >&5
11205echo "${ECHO_T}$AR" >&6
11206else
11207 echo "$as_me:$LINENO: result: no" >&5
11208echo "${ECHO_T}no" >&6
11209fi
11210
11211fi
11212if test -z "$ac_cv_prog_AR"; then
11213 ac_ct_AR=$AR
11214 # Extract the first word of "ar", so it can be a program name with args.
11215set dummy ar; ac_word=$2
11216echo "$as_me:$LINENO: checking for $ac_word" >&5
11217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11218if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221 if test -n "$ac_ct_AR"; then
11222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11223else
11224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225for as_dir in $PATH
11226do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_ac_ct_AR="ar"
11232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11234 fi
11235done
11236done
11237
11238 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11239fi
11240fi
11241ac_ct_AR=$ac_cv_prog_ac_ct_AR
11242if test -n "$ac_ct_AR"; then
11243 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11244echo "${ECHO_T}$ac_ct_AR" >&6
11245else
11246 echo "$as_me:$LINENO: result: no" >&5
11247echo "${ECHO_T}no" >&6
11248fi
11249
11250 AR=$ac_ct_AR
11251else
11252 AR="$ac_cv_prog_AR"
11253fi
11254
John Criswell7a73b802003-06-30 21:59:07 +000011255if test -n "$ac_tool_prefix"; then
11256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11257set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11258echo "$as_me:$LINENO: checking for $ac_word" >&5
11259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11260if test "${ac_cv_prog_RANLIB+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262else
11263 if test -n "$RANLIB"; then
11264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11265else
11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267for as_dir in $PATH
11268do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11276 fi
11277done
11278done
11279
11280fi
11281fi
11282RANLIB=$ac_cv_prog_RANLIB
11283if test -n "$RANLIB"; then
11284 echo "$as_me:$LINENO: result: $RANLIB" >&5
11285echo "${ECHO_T}$RANLIB" >&6
11286else
11287 echo "$as_me:$LINENO: result: no" >&5
11288echo "${ECHO_T}no" >&6
11289fi
11290
11291fi
11292if test -z "$ac_cv_prog_RANLIB"; then
11293 ac_ct_RANLIB=$RANLIB
11294 # Extract the first word of "ranlib", so it can be a program name with args.
11295set dummy ranlib; ac_word=$2
11296echo "$as_me:$LINENO: checking for $ac_word" >&5
11297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11298if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300else
11301 if test -n "$ac_ct_RANLIB"; then
11302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11303else
11304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305for as_dir in $PATH
11306do
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311 ac_cv_prog_ac_ct_RANLIB="ranlib"
11312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 break 2
11314 fi
11315done
11316done
11317
11318 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11319fi
11320fi
11321ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11322if test -n "$ac_ct_RANLIB"; then
11323 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11324echo "${ECHO_T}$ac_ct_RANLIB" >&6
11325else
11326 echo "$as_me:$LINENO: result: no" >&5
11327echo "${ECHO_T}no" >&6
11328fi
11329
11330 RANLIB=$ac_ct_RANLIB
11331else
11332 RANLIB="$ac_cv_prog_RANLIB"
11333fi
11334
11335if test -n "$ac_tool_prefix"; then
11336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11337set dummy ${ac_tool_prefix}strip; ac_word=$2
11338echo "$as_me:$LINENO: checking for $ac_word" >&5
11339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11340if test "${ac_cv_prog_STRIP+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342else
11343 if test -n "$STRIP"; then
11344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11345else
11346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $PATH
11348do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11356 fi
11357done
11358done
11359
11360fi
11361fi
11362STRIP=$ac_cv_prog_STRIP
11363if test -n "$STRIP"; then
11364 echo "$as_me:$LINENO: result: $STRIP" >&5
11365echo "${ECHO_T}$STRIP" >&6
11366else
11367 echo "$as_me:$LINENO: result: no" >&5
11368echo "${ECHO_T}no" >&6
11369fi
11370
11371fi
11372if test -z "$ac_cv_prog_STRIP"; then
11373 ac_ct_STRIP=$STRIP
11374 # Extract the first word of "strip", so it can be a program name with args.
11375set dummy strip; ac_word=$2
11376echo "$as_me:$LINENO: checking for $ac_word" >&5
11377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11378if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
11381 if test -n "$ac_ct_STRIP"; then
11382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11383else
11384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385for as_dir in $PATH
11386do
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11391 ac_cv_prog_ac_ct_STRIP="strip"
11392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11393 break 2
11394 fi
11395done
11396done
11397
11398 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11399fi
11400fi
11401ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11402if test -n "$ac_ct_STRIP"; then
11403 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11404echo "${ECHO_T}$ac_ct_STRIP" >&6
11405else
11406 echo "$as_me:$LINENO: result: no" >&5
11407echo "${ECHO_T}no" >&6
11408fi
11409
11410 STRIP=$ac_ct_STRIP
11411else
11412 STRIP="$ac_cv_prog_STRIP"
11413fi
11414
11415
John Criswell7a73b802003-06-30 21:59:07 +000011416old_CC="$CC"
11417old_CFLAGS="$CFLAGS"
11418
11419# Set sane defaults for various variables
11420test -z "$AR" && AR=ar
11421test -z "$AR_FLAGS" && AR_FLAGS=cru
11422test -z "$AS" && AS=as
11423test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011424test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011425test -z "$DLLTOOL" && DLLTOOL=dlltool
11426test -z "$LD" && LD=ld
11427test -z "$LN_S" && LN_S="ln -s"
11428test -z "$MAGIC_CMD" && MAGIC_CMD=file
11429test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011430test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011431test -z "$OBJDUMP" && OBJDUMP=objdump
11432test -z "$RANLIB" && RANLIB=:
11433test -z "$STRIP" && STRIP=:
11434test -z "$ac_objext" && ac_objext=o
11435
John Criswell7a73b802003-06-30 21:59:07 +000011436# Determine commands to create old-style static archives.
11437old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11438old_postinstall_cmds='chmod 644 $oldlib'
11439old_postuninstall_cmds=
11440
11441if test -n "$RANLIB"; then
11442 case $host_os in
11443 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011444 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011445 ;;
11446 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011447 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011448 ;;
11449 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011450 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011451fi
11452
Reid Spencer2706f8c2004-09-19 23:53:36 +000011453cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11454
John Criswell47fdd832003-07-14 16:52:07 +000011455# Only perform the check for file, if the check method requires it
11456case $deplibs_check_method in
11457file_magic*)
11458 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11459 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11460echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11461if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011463else
John Criswell47fdd832003-07-14 16:52:07 +000011464 case $MAGIC_CMD in
11465[\\/*] | ?:[\\/]*)
11466 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11467 ;;
11468*)
11469 lt_save_MAGIC_CMD="$MAGIC_CMD"
11470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11471 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11472 for ac_dir in $ac_dummy; do
11473 IFS="$lt_save_ifs"
11474 test -z "$ac_dir" && ac_dir=.
11475 if test -f $ac_dir/${ac_tool_prefix}file; then
11476 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11477 if test -n "$file_magic_test_file"; then
11478 case $deplibs_check_method in
11479 "file_magic "*)
11480 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11483 $EGREP "$file_magic_regex" > /dev/null; then
11484 :
11485 else
11486 cat <<EOF 1>&2
11487
11488*** Warning: the command libtool uses to detect shared libraries,
11489*** $file_magic_cmd, produces output that libtool cannot recognize.
11490*** The result is that libtool may fail to recognize shared libraries
11491*** as such. This will affect the creation of libtool libraries that
11492*** depend on shared libraries, but programs linked with such libtool
11493*** libraries will work regardless of this problem. Nevertheless, you
11494*** may want to report the problem to your system manager and/or to
11495*** bug-libtool@gnu.org
11496
11497EOF
11498 fi ;;
11499 esac
11500 fi
11501 break
11502 fi
11503 done
11504 IFS="$lt_save_ifs"
11505 MAGIC_CMD="$lt_save_MAGIC_CMD"
11506 ;;
11507esac
John Criswell7a73b802003-06-30 21:59:07 +000011508fi
John Criswell7a73b802003-06-30 21:59:07 +000011509
John Criswell47fdd832003-07-14 16:52:07 +000011510MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11511if test -n "$MAGIC_CMD"; then
11512 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11513echo "${ECHO_T}$MAGIC_CMD" >&6
11514else
11515 echo "$as_me:$LINENO: result: no" >&5
11516echo "${ECHO_T}no" >&6
11517fi
John Criswell7a73b802003-06-30 21:59:07 +000011518
John Criswell47fdd832003-07-14 16:52:07 +000011519if test -z "$lt_cv_path_MAGIC_CMD"; then
11520 if test -n "$ac_tool_prefix"; then
11521 echo "$as_me:$LINENO: checking for file" >&5
11522echo $ECHO_N "checking for file... $ECHO_C" >&6
11523if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11525else
11526 case $MAGIC_CMD in
11527[\\/*] | ?:[\\/]*)
11528 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11529 ;;
11530*)
11531 lt_save_MAGIC_CMD="$MAGIC_CMD"
11532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11534 for ac_dir in $ac_dummy; do
11535 IFS="$lt_save_ifs"
11536 test -z "$ac_dir" && ac_dir=.
11537 if test -f $ac_dir/file; then
11538 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11539 if test -n "$file_magic_test_file"; then
11540 case $deplibs_check_method in
11541 "file_magic "*)
11542 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11545 $EGREP "$file_magic_regex" > /dev/null; then
11546 :
11547 else
11548 cat <<EOF 1>&2
11549
11550*** Warning: the command libtool uses to detect shared libraries,
11551*** $file_magic_cmd, produces output that libtool cannot recognize.
11552*** The result is that libtool may fail to recognize shared libraries
11553*** as such. This will affect the creation of libtool libraries that
11554*** depend on shared libraries, but programs linked with such libtool
11555*** libraries will work regardless of this problem. Nevertheless, you
11556*** may want to report the problem to your system manager and/or to
11557*** bug-libtool@gnu.org
11558
11559EOF
11560 fi ;;
11561 esac
11562 fi
11563 break
11564 fi
11565 done
11566 IFS="$lt_save_ifs"
11567 MAGIC_CMD="$lt_save_MAGIC_CMD"
11568 ;;
11569esac
11570fi
11571
11572MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11573if test -n "$MAGIC_CMD"; then
11574 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11575echo "${ECHO_T}$MAGIC_CMD" >&6
11576else
11577 echo "$as_me:$LINENO: result: no" >&5
11578echo "${ECHO_T}no" >&6
11579fi
11580
11581 else
11582 MAGIC_CMD=:
11583 fi
11584fi
11585
11586 fi
11587 ;;
11588esac
11589
Reid Spencer17795972004-11-18 09:47:37 +000011590enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011591enable_win32_dll=no
11592
11593# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11594if test "${enable_libtool_lock+set}" = set; then
11595 enableval="$enable_libtool_lock"
11596
11597fi;
11598test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11599
John Criswell7a73b802003-06-30 21:59:07 +000011600
11601# Check whether --with-pic or --without-pic was given.
11602if test "${with_pic+set}" = set; then
11603 withval="$with_pic"
11604 pic_mode="$withval"
11605else
11606 pic_mode=default
11607fi;
11608test -z "$pic_mode" && pic_mode=default
11609
John Criswell47fdd832003-07-14 16:52:07 +000011610# Use C for the default configuration in the libtool script
11611tagname=
11612lt_save_CC="$CC"
11613ac_ext=c
11614ac_cpp='$CPP $CPPFLAGS'
11615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618
11619
11620# Source file extension for C test sources.
11621ac_ext=c
11622
11623# Object file extension for compiled C test sources.
11624objext=o
11625objext=$objext
11626
11627# Code to be used in simple compile tests
11628lt_simple_compile_test_code="int some_variable = 0;\n"
11629
11630# Code to be used in simple link tests
11631lt_simple_link_test_code='int main(){return(0);}\n'
11632
11633
11634# If no C compiler was specified, use CC.
11635LTCC=${LTCC-"$CC"}
11636
11637# Allow CC to be a program name with arguments.
11638compiler=$CC
11639
11640
11641#
11642# Check for any special shared library compilation flags.
11643#
11644lt_prog_cc_shlib=
11645if test "$GCC" = no; then
11646 case $host_os in
11647 sco3.2v5*)
11648 lt_prog_cc_shlib='-belf'
11649 ;;
11650 esac
11651fi
11652if test -n "$lt_prog_cc_shlib"; then
11653 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11654echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11655 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11656 else
11657 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11658echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11659 lt_cv_prog_cc_can_build_shared=no
11660 fi
11661fi
11662
11663
11664#
11665# Check to make sure the static flag actually works.
11666#
11667echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11668echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11669if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
John Criswell47fdd832003-07-14 16:52:07 +000011672 lt_prog_compiler_static_works=no
11673 save_LDFLAGS="$LDFLAGS"
11674 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11675 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11676 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11677 # The compiler can only warn and ignore the option if not recognized
11678 # So say no if there are warnings
11679 if test -s conftest.err; then
11680 # Append any errors to the config.log.
11681 cat conftest.err 1>&5
11682 else
11683 lt_prog_compiler_static_works=yes
11684 fi
11685 fi
11686 $rm conftest*
11687 LDFLAGS="$save_LDFLAGS"
11688
11689fi
11690echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11691echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11692
11693if test x"$lt_prog_compiler_static_works" = xyes; then
11694 :
11695else
11696 lt_prog_compiler_static=
11697fi
11698
11699
11700
John Criswell47fdd832003-07-14 16:52:07 +000011701
11702lt_prog_compiler_no_builtin_flag=
11703
11704if test "$GCC" = yes; then
11705 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11706
Reid Spencer2706f8c2004-09-19 23:53:36 +000011707
11708echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011709echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11710if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712else
11713 lt_cv_prog_compiler_rtti_exceptions=no
11714 ac_outfile=conftest.$ac_objext
11715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11716 lt_compiler_flag="-fno-rtti -fno-exceptions"
11717 # Insert the option either (1) after the last *FLAGS variable, or
11718 # (2) before a word containing "conftest.", or (3) at the end.
11719 # Note that $ac_compile itself does not contain backslashes and begins
11720 # with a dollar sign (not a hyphen), so the echo should work correctly.
11721 # The option is referenced via a variable to avoid confusing sed.
11722 lt_compile=`echo "$ac_compile" | $SED \
11723 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11725 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000011726 (eval echo "\"\$as_me:11726: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011727 (eval "$lt_compile" 2>conftest.err)
11728 ac_status=$?
11729 cat conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000011730 echo "$as_me:11730: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011731 if (exit $ac_status) && test -s "$ac_outfile"; then
11732 # The compiler can only warn and ignore the option if not recognized
11733 # So say no if there are warnings
11734 if test ! -s conftest.err; then
11735 lt_cv_prog_compiler_rtti_exceptions=yes
11736 fi
11737 fi
11738 $rm conftest*
11739
11740fi
11741echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11742echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11743
11744if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11745 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11746else
11747 :
11748fi
11749
11750fi
11751
11752lt_prog_compiler_wl=
11753lt_prog_compiler_pic=
11754lt_prog_compiler_static=
11755
11756echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11757echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011758
11759 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011760 lt_prog_compiler_wl='-Wl,'
11761 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011762
11763 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011764 aix*)
11765 # All AIX code is PIC.
11766 if test "$host_cpu" = ia64; then
11767 # AIX 5 now supports IA64 processor
11768 lt_prog_compiler_static='-Bstatic'
11769 fi
John Criswell7a73b802003-06-30 21:59:07 +000011770 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011771
John Criswell7a73b802003-06-30 21:59:07 +000011772 amigaos*)
11773 # FIXME: we need at least 68020 code to build shared libraries, but
11774 # adding the `-m68020' flag to GCC prevents building anything better,
11775 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011776 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011777 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011778
11779 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011780 # PIC is the default for these OSes.
11781 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011782
11783 mingw* | pw32* | os2*)
11784 # This hack is so that the source file can tell whether it is being
11785 # built for inclusion in a dll (and should export symbols for example).
11786 lt_prog_compiler_pic='-DDLL_EXPORT'
11787 ;;
11788
John Criswell7a73b802003-06-30 21:59:07 +000011789 darwin* | rhapsody*)
11790 # PIC is the default on this platform
11791 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011792 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011793 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011794
11795 msdosdjgpp*)
11796 # Just because we use GCC doesn't mean we suddenly get shared libraries
11797 # on systems that don't support them.
11798 lt_prog_compiler_can_build_shared=no
11799 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011800 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011801
John Criswell7a73b802003-06-30 21:59:07 +000011802 sysv4*MP*)
11803 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011804 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011805 fi
11806 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011807
11808 hpux*)
11809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11810 # not for PA HP-UX.
11811 case "$host_cpu" in
11812 hppa*64*|ia64*)
11813 # +Z the default
11814 ;;
11815 *)
11816 lt_prog_compiler_pic='-fPIC'
11817 ;;
11818 esac
11819 ;;
11820
John Criswell7a73b802003-06-30 21:59:07 +000011821 *)
John Criswell47fdd832003-07-14 16:52:07 +000011822 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011823 ;;
11824 esac
11825 else
John Criswell47fdd832003-07-14 16:52:07 +000011826 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011827 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011828 aix*)
11829 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011830 if test "$host_cpu" = ia64; then
11831 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011832 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011833 else
John Criswell47fdd832003-07-14 16:52:07 +000011834 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011835 fi
11836 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011837 darwin*)
11838 # PIC is the default on this platform
11839 # Common symbols not allowed in MH_DYLIB files
11840 case "$cc_basename" in
11841 xlc*)
11842 lt_prog_compiler_pic='-qnocommon'
11843 lt_prog_compiler_wl='-Wl,'
11844 ;;
11845 esac
11846 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011847
John Criswell47fdd832003-07-14 16:52:07 +000011848 mingw* | pw32* | os2*)
11849 # This hack is so that the source file can tell whether it is being
11850 # built for inclusion in a dll (and should export symbols for example).
11851 lt_prog_compiler_pic='-DDLL_EXPORT'
11852 ;;
11853
John Criswell7a73b802003-06-30 21:59:07 +000011854 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011855 lt_prog_compiler_wl='-Wl,'
11856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11857 # not for PA HP-UX.
11858 case "$host_cpu" in
11859 hppa*64*|ia64*)
11860 # +Z the default
11861 ;;
11862 *)
11863 lt_prog_compiler_pic='+Z'
11864 ;;
11865 esac
11866 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11867 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011868 ;;
11869
John Criswell47fdd832003-07-14 16:52:07 +000011870 irix5* | irix6* | nonstopux*)
11871 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011872 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011873 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011874 ;;
11875
11876 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011877 lt_prog_compiler_pic='-KPIC'
11878 lt_prog_compiler_static='-Bstatic'
11879 ;;
11880
11881 linux*)
11882 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011883 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011884 lt_prog_compiler_wl='-Wl,'
11885 lt_prog_compiler_pic='-KPIC'
11886 lt_prog_compiler_static='-static'
11887 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011888 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011889 lt_prog_compiler_wl='-Wl,'
11890 # All Alpha code is PIC.
11891 lt_prog_compiler_static='-non_shared'
11892 ;;
11893 esac
John Criswell7a73b802003-06-30 21:59:07 +000011894 ;;
11895
11896 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011897 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011898 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011899 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011900 ;;
11901
11902 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011903 lt_prog_compiler_pic='-Kpic'
11904 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011905 ;;
11906
11907 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011908 lt_prog_compiler_wl='-Wl,'
11909 lt_prog_compiler_pic='-KPIC'
11910 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011911 ;;
11912
11913 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011914 lt_prog_compiler_wl='-Qoption ld '
11915 lt_prog_compiler_pic='-PIC'
11916 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011917 ;;
11918
11919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011920 lt_prog_compiler_wl='-Wl,'
11921 lt_prog_compiler_pic='-KPIC'
11922 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011923 ;;
11924
11925 sysv4*MP*)
11926 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011927 lt_prog_compiler_pic='-Kconform_pic'
11928 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011929 fi
11930 ;;
11931
John Criswell47fdd832003-07-14 16:52:07 +000011932 uts4*)
11933 lt_prog_compiler_pic='-pic'
11934 lt_prog_compiler_static='-Bstatic'
11935 ;;
11936
John Criswell7a73b802003-06-30 21:59:07 +000011937 *)
John Criswell47fdd832003-07-14 16:52:07 +000011938 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011939 ;;
11940 esac
11941 fi
11942
John Criswell47fdd832003-07-14 16:52:07 +000011943echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11944echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011945
John Criswell47fdd832003-07-14 16:52:07 +000011946#
11947# Check to make sure the PIC flag actually works.
11948#
11949if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011950
11951echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011952echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11953if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955else
John Criswell47fdd832003-07-14 16:52:07 +000011956 lt_prog_compiler_pic_works=no
11957 ac_outfile=conftest.$ac_objext
11958 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11959 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11960 # Insert the option either (1) after the last *FLAGS variable, or
11961 # (2) before a word containing "conftest.", or (3) at the end.
11962 # Note that $ac_compile itself does not contain backslashes and begins
11963 # with a dollar sign (not a hyphen), so the echo should work correctly.
11964 # The option is referenced via a variable to avoid confusing sed.
11965 lt_compile=`echo "$ac_compile" | $SED \
11966 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11968 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000011969 (eval echo "\"\$as_me:11969: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011970 (eval "$lt_compile" 2>conftest.err)
11971 ac_status=$?
11972 cat conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000011973 echo "$as_me:11973: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011974 if (exit $ac_status) && test -s "$ac_outfile"; then
11975 # The compiler can only warn and ignore the option if not recognized
11976 # So say no if there are warnings
11977 if test ! -s conftest.err; then
11978 lt_prog_compiler_pic_works=yes
11979 fi
11980 fi
11981 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011982
John Criswell47fdd832003-07-14 16:52:07 +000011983fi
11984echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11985echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011986
John Criswell47fdd832003-07-14 16:52:07 +000011987if test x"$lt_prog_compiler_pic_works" = xyes; then
11988 case $lt_prog_compiler_pic in
11989 "" | " "*) ;;
11990 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11991 esac
John Criswell7a73b802003-06-30 21:59:07 +000011992else
John Criswell47fdd832003-07-14 16:52:07 +000011993 lt_prog_compiler_pic=
11994 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011995fi
11996
John Criswell7a73b802003-06-30 21:59:07 +000011997fi
John Criswell47fdd832003-07-14 16:52:07 +000011998case "$host_os" in
11999 # For platforms which do not support PIC, -DPIC is meaningless:
12000 *djgpp*)
12001 lt_prog_compiler_pic=
12002 ;;
12003 *)
12004 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12005 ;;
12006esac
John Criswell7a73b802003-06-30 21:59:07 +000012007
John Criswell7a73b802003-06-30 21:59:07 +000012008echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12009echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012010if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012else
John Criswell47fdd832003-07-14 16:52:07 +000012013 lt_cv_prog_compiler_c_o=no
12014 $rm -r conftest 2>/dev/null
12015 mkdir conftest
12016 cd conftest
12017 mkdir out
12018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012019
John Criswell47fdd832003-07-14 16:52:07 +000012020 lt_compiler_flag="-o out/conftest2.$ac_objext"
12021 # Insert the option either (1) after the last *FLAGS variable, or
12022 # (2) before a word containing "conftest.", or (3) at the end.
12023 # Note that $ac_compile itself does not contain backslashes and begins
12024 # with a dollar sign (not a hyphen), so the echo should work correctly.
12025 lt_compile=`echo "$ac_compile" | $SED \
12026 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12028 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000012029 (eval echo "\"\$as_me:12029: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012030 (eval "$lt_compile" 2>out/conftest.err)
12031 ac_status=$?
12032 cat out/conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000012033 echo "$as_me:12033: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12035 then
12036 # The compiler can only warn and ignore the option if not recognized
12037 # So say no if there are warnings
12038 if test ! -s out/conftest.err; then
12039 lt_cv_prog_compiler_c_o=yes
12040 fi
12041 fi
12042 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012043 $rm conftest*
12044 # SGI C++ compiler will create directory out/ii_files/ for
12045 # template instantiation
12046 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12047 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012048 cd ..
12049 rmdir conftest
12050 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012051
12052fi
John Criswell47fdd832003-07-14 16:52:07 +000012053echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12054echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012055
John Criswell7a73b802003-06-30 21:59:07 +000012056
John Criswell7a73b802003-06-30 21:59:07 +000012057hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012058if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012059 # do not overwrite the value of need_locks provided by the user
12060 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12061echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12062 hard_links=yes
12063 $rm conftest*
12064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12065 touch conftest.a
12066 ln conftest.a conftest.b 2>&5 || hard_links=no
12067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12068 echo "$as_me:$LINENO: result: $hard_links" >&5
12069echo "${ECHO_T}$hard_links" >&6
12070 if test "$hard_links" = no; then
12071 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12072echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12073 need_locks=warn
12074 fi
12075else
12076 need_locks=no
12077fi
John Criswell7a73b802003-06-30 21:59:07 +000012078
John Criswell47fdd832003-07-14 16:52:07 +000012079echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12080echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12081
12082 runpath_var=
12083 allow_undefined_flag=
12084 enable_shared_with_static_runtimes=no
12085 archive_cmds=
12086 archive_expsym_cmds=
12087 old_archive_From_new_cmds=
12088 old_archive_from_expsyms_cmds=
12089 export_dynamic_flag_spec=
12090 whole_archive_flag_spec=
12091 thread_safe_flag_spec=
12092 hardcode_libdir_flag_spec=
12093 hardcode_libdir_flag_spec_ld=
12094 hardcode_libdir_separator=
12095 hardcode_direct=no
12096 hardcode_minus_L=no
12097 hardcode_shlibpath_var=unsupported
12098 link_all_deplibs=unknown
12099 hardcode_automatic=no
12100 module_cmds=
12101 module_expsym_cmds=
12102 always_export_symbols=no
12103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12104 # include_expsyms should be a list of space-separated symbols to be *always*
12105 # included in the symbol list
12106 include_expsyms=
12107 # exclude_expsyms can be an extended regexp of symbols to exclude
12108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12110 # as well as any symbol that contains `d'.
12111 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12113 # platforms (ab)use it in PIC code, but their linkers get confused if
12114 # the symbol is explicitly referenced. Since portable code cannot
12115 # rely on this symbol name, it's probably fine to never include it in
12116 # preloaded symbol tables.
12117 extract_expsyms_cmds=
12118
12119 case $host_os in
12120 cygwin* | mingw* | pw32*)
12121 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12122 # When not using gcc, we currently assume that we are using
12123 # Microsoft Visual C++.
12124 if test "$GCC" != yes; then
12125 with_gnu_ld=no
12126 fi
12127 ;;
12128 openbsd*)
12129 with_gnu_ld=no
12130 ;;
12131 esac
12132
12133 ld_shlibs=yes
12134 if test "$with_gnu_ld" = yes; then
12135 # If archive_cmds runs LD, not CC, wlarc should be empty
12136 wlarc='${wl}'
12137
12138 # See if GNU ld supports shared libraries.
12139 case $host_os in
12140 aix3* | aix4* | aix5*)
12141 # On AIX/PPC, the GNU linker is very broken
12142 if test "$host_cpu" != ia64; then
12143 ld_shlibs=no
12144 cat <<EOF 1>&2
12145
12146*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12147*** to be unable to reliably create shared libraries on AIX.
12148*** Therefore, libtool is disabling shared libraries support. If you
12149*** really care for shared libraries, you may want to modify your PATH
12150*** so that a non-GNU linker is found, and then restart.
12151
12152EOF
12153 fi
12154 ;;
12155
12156 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012157 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)'
John Criswell47fdd832003-07-14 16:52:07 +000012158 hardcode_libdir_flag_spec='-L$libdir'
12159 hardcode_minus_L=yes
12160
12161 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12162 # that the semantics of dynamic libraries on AmigaOS, at least up
12163 # to version 4, is to share data among multiple programs linked
12164 # with the same dynamic library. Since this doesn't match the
12165 # behavior of shared libraries on other platforms, we can't use
12166 # them.
12167 ld_shlibs=no
12168 ;;
12169
12170 beos*)
12171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12172 allow_undefined_flag=unsupported
12173 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12174 # support --undefined. This deserves some investigation. FIXME
12175 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12176 else
12177 ld_shlibs=no
12178 fi
12179 ;;
12180
12181 cygwin* | mingw* | pw32*)
12182 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12183 # as there is no search path for DLLs.
12184 hardcode_libdir_flag_spec='-L$libdir'
12185 allow_undefined_flag=unsupported
12186 always_export_symbols=no
12187 enable_shared_with_static_runtimes=yes
12188 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12189
12190 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12192 # If the export-symbols file already is a .def file (1st line
12193 # is EXPORTS), use it as is; otherwise, prepend...
12194 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12195 cp $export_symbols $output_objdir/$soname.def;
12196 else
12197 echo EXPORTS > $output_objdir/$soname.def;
12198 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012199 fi~
12200 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000012201 else
12202 ld_shlibs=no
12203 fi
12204 ;;
12205
12206 netbsd*)
12207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12208 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12209 wlarc=
12210 else
12211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12213 fi
12214 ;;
12215
12216 solaris* | sysv5*)
12217 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12218 ld_shlibs=no
12219 cat <<EOF 1>&2
12220
12221*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12222*** create shared libraries on Solaris systems. Therefore, libtool
12223*** is disabling shared libraries support. We urge you to upgrade GNU
12224*** binutils to release 2.9.1 or newer. Another option is to modify
12225*** your PATH or compiler configuration so that the native linker is
12226*** used, and then restart.
12227
12228EOF
12229 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12232 else
12233 ld_shlibs=no
12234 fi
12235 ;;
12236
12237 sunos4*)
12238 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12239 wlarc=
12240 hardcode_direct=yes
12241 hardcode_shlibpath_var=no
12242 ;;
12243
Reid Spencer2706f8c2004-09-19 23:53:36 +000012244 linux*)
12245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12246 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 archive_cmds="$tmp_archive_cmds"
12248 supports_anon_versioning=no
12249 case `$LD -v 2>/dev/null` in
12250 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12253 *\ 2.11.*) ;; # other 2.11 versions
12254 *) supports_anon_versioning=yes ;;
12255 esac
12256 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012257 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12258cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12259$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012260 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12261 else
12262 archive_expsym_cmds="$tmp_archive_cmds"
12263 fi
12264 else
12265 ld_shlibs=no
12266 fi
12267 ;;
12268
John Criswell47fdd832003-07-14 16:52:07 +000012269 *)
12270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12273 else
12274 ld_shlibs=no
12275 fi
12276 ;;
12277 esac
12278
12279 if test "$ld_shlibs" = yes; then
12280 runpath_var=LD_RUN_PATH
12281 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12282 export_dynamic_flag_spec='${wl}--export-dynamic'
12283 # ancient GNU ld didn't support --whole-archive et. al.
12284 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12285 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12286 else
12287 whole_archive_flag_spec=
12288 fi
12289 fi
12290 else
12291 # PORTME fill in a description of your system's linker (not GNU ld)
12292 case $host_os in
12293 aix3*)
12294 allow_undefined_flag=unsupported
12295 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012296 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'
John Criswell47fdd832003-07-14 16:52:07 +000012297 # Note: this linker hardcodes the directories in LIBPATH if there
12298 # are no directories specified by -L.
12299 hardcode_minus_L=yes
12300 if test "$GCC" = yes && test -z "$link_static_flag"; then
12301 # Neither direct hardcoding nor static linking is supported with a
12302 # broken collect2.
12303 hardcode_direct=unsupported
12304 fi
12305 ;;
12306
12307 aix4* | aix5*)
12308 if test "$host_cpu" = ia64; then
12309 # On IA64, the linker does run time linking by default, so we don't
12310 # have to do anything special.
12311 aix_use_runtimelinking=no
12312 exp_sym_flag='-Bexport'
12313 no_entry_flag=""
12314 else
12315 # If we're using GNU nm, then we don't want the "-C" option.
12316 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12317 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12318 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12319 else
12320 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12321 fi
12322 aix_use_runtimelinking=no
12323
12324 # Test if we are trying to use run time linking or normal
12325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12326 # need to do runtime linking.
12327 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12328 for ld_flag in $LDFLAGS; do
12329 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12330 aix_use_runtimelinking=yes
12331 break
12332 fi
12333 done
12334 esac
12335
12336 exp_sym_flag='-bexport'
12337 no_entry_flag='-bnoentry'
12338 fi
12339
12340 # When large executables or shared objects are built, AIX ld can
12341 # have problems creating the table of contents. If linking a library
12342 # or program results in "error TOC overflow" add -mminimal-toc to
12343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12345
12346 archive_cmds=''
12347 hardcode_direct=yes
12348 hardcode_libdir_separator=':'
12349 link_all_deplibs=yes
12350
12351 if test "$GCC" = yes; then
12352 case $host_os in aix4.012|aix4.012.*)
12353 # We only want to do this on AIX 4.2 and lower, the check
12354 # below for broken collect2 doesn't work under 4.3+
12355 collect2name=`${CC} -print-prog-name=collect2`
12356 if test -f "$collect2name" && \
12357 strings "$collect2name" | grep resolve_lib_name >/dev/null
12358 then
12359 # We have reworked collect2
12360 hardcode_direct=yes
12361 else
12362 # We have old collect2
12363 hardcode_direct=unsupported
12364 # It fails to find uninstalled libraries when the uninstalled
12365 # path is not listed in the libpath. Setting hardcode_minus_L
12366 # to unsupported forces relinking
12367 hardcode_minus_L=yes
12368 hardcode_libdir_flag_spec='-L$libdir'
12369 hardcode_libdir_separator=
12370 fi
12371 esac
12372 shared_flag='-shared'
12373 else
12374 # not using gcc
12375 if test "$host_cpu" = ia64; then
12376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12377 # chokes on -Wl,-G. The following line is correct:
12378 shared_flag='-G'
12379 else
12380 if test "$aix_use_runtimelinking" = yes; then
12381 shared_flag='${wl}-G'
12382 else
12383 shared_flag='${wl}-bM:SRE'
12384 fi
12385 fi
12386 fi
12387
12388 # It seems that -bexpall does not export symbols beginning with
12389 # underscore (_), so it is better to generate a list of symbols to export.
12390 always_export_symbols=yes
12391 if test "$aix_use_runtimelinking" = yes; then
12392 # Warning - without using the other runtime loading flags (-brtl),
12393 # -berok will link without error, but may produce a broken library.
12394 allow_undefined_flag='-berok'
12395 # Determine the default libpath from the value encoded in an empty executable.
12396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012402
John Criswell7a73b802003-06-30 21:59:07 +000012403int
12404main ()
12405{
John Criswell47fdd832003-07-14 16:52:07 +000012406
John Criswell7a73b802003-06-30 21:59:07 +000012407 ;
12408 return 0;
12409}
12410_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012411rm -f conftest.$ac_objext conftest$ac_exeext
12412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012413 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012420 { ac_try='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012433
John Criswell47fdd832003-07-14 16:52:07 +000012434aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12435}'`
12436# Check for a 64-bit object if we didn't find anything.
12437if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12438}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012439else
12440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012441sed 's/^/| /' conftest.$ac_ext >&5
12442
John Criswell7a73b802003-06-30 21:59:07 +000012443fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012444rm -f conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012446if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012447
John Criswell47fdd832003-07-14 16:52:07 +000012448 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12449 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"
12450 else
12451 if test "$host_cpu" = ia64; then
12452 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12453 allow_undefined_flag="-z nodefs"
12454 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12455 else
12456 # Determine the default libpath from the value encoded in an empty executable.
12457 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012458/* confdefs.h. */
12459_ACEOF
12460cat confdefs.h >>conftest.$ac_ext
12461cat >>conftest.$ac_ext <<_ACEOF
12462/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012463
John Criswell47fdd832003-07-14 16:52:07 +000012464int
12465main ()
12466{
John Criswell7a73b802003-06-30 21:59:07 +000012467
John Criswell47fdd832003-07-14 16:52:07 +000012468 ;
12469 return 0;
12470}
12471_ACEOF
12472rm -f conftest.$ac_objext conftest$ac_exeext
12473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012474 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012475 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012481 { ac_try='test -z "$ac_c_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012494
John Criswell47fdd832003-07-14 16:52:07 +000012495aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12496}'`
12497# Check for a 64-bit object if we didn't find anything.
12498if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12499}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012500else
John Criswell47fdd832003-07-14 16:52:07 +000012501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012502sed 's/^/| /' conftest.$ac_ext >&5
12503
John Criswell47fdd832003-07-14 16:52:07 +000012504fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012505rm -f conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012507if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012508
John Criswell47fdd832003-07-14 16:52:07 +000012509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12510 # Warning - without using the other run time loading flags,
12511 # -berok will link without error, but may produce a broken library.
12512 no_undefined_flag=' ${wl}-bernotok'
12513 allow_undefined_flag=' ${wl}-berok'
12514 # -bexpall does not export symbols beginning with underscore (_)
12515 always_export_symbols=yes
12516 # Exported symbols can be pulled into shared objects from archives
12517 whole_archive_flag_spec=' '
12518 archive_cmds_need_lc=yes
12519 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012520 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell7a73b802003-06-30 21:59:07 +000012521 fi
12522 fi
John Criswell7a73b802003-06-30 21:59:07 +000012523 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012524
12525 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012526 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)'
John Criswell47fdd832003-07-14 16:52:07 +000012527 hardcode_libdir_flag_spec='-L$libdir'
12528 hardcode_minus_L=yes
12529 # see comment about different semantics on the GNU ld section
12530 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012531 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012532
Reid Spencer2706f8c2004-09-19 23:53:36 +000012533 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012534 export_dynamic_flag_spec=-rdynamic
12535 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012536
John Criswell47fdd832003-07-14 16:52:07 +000012537 cygwin* | mingw* | pw32*)
12538 # When not using gcc, we currently assume that we are using
12539 # Microsoft Visual C++.
12540 # hardcode_libdir_flag_spec is actually meaningless, as there is
12541 # no search path for DLLs.
12542 hardcode_libdir_flag_spec=' '
12543 allow_undefined_flag=unsupported
12544 # Tell ltmain to make .lib files, not .a files.
12545 libext=lib
12546 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012547 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012548 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012550 # The linker will automatically build a .lib file if we build a DLL.
12551 old_archive_From_new_cmds='true'
12552 # FIXME: Should let the user specify the lib program.
12553 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12554 fix_srcfile_path='`cygpath -w "$srcfile"`'
12555 enable_shared_with_static_runtimes=yes
12556 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012557
John Criswell47fdd832003-07-14 16:52:07 +000012558 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012559 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012560 rhapsody* | darwin1.[012])
12561 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12562 ;;
12563 *) # Darwin 1.3 on
12564 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12565 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12566 else
12567 case ${MACOSX_DEPLOYMENT_TARGET} in
12568 10.[012])
12569 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12570 ;;
12571 10.*)
12572 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12573 ;;
12574 esac
12575 fi
12576 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012577 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012578 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012579 hardcode_direct=no
12580 hardcode_automatic=yes
12581 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012582 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012583 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012584 if test "$GCC" = yes ; then
12585 output_verbose_link_cmd='echo'
12586 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12587 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000012589 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12590 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012591 else
12592 case "$cc_basename" in
12593 xlc*)
12594 output_verbose_link_cmd='echo'
12595 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12596 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12597 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000012598 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12599 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012600 ;;
12601 *)
12602 ld_shlibs=no
12603 ;;
12604 esac
John Criswell7a73b802003-06-30 21:59:07 +000012605 fi
John Criswell47fdd832003-07-14 16:52:07 +000012606 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012607
John Criswell47fdd832003-07-14 16:52:07 +000012608 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012610 hardcode_libdir_flag_spec='-L$libdir'
12611 hardcode_shlibpath_var=no
12612 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012613
John Criswell47fdd832003-07-14 16:52:07 +000012614 freebsd1*)
12615 ld_shlibs=no
12616 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012617
John Criswell47fdd832003-07-14 16:52:07 +000012618 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12619 # support. Future versions do this automatically, but an explicit c++rt0.o
12620 # does not break anything, and helps significantly (at the cost of a little
12621 # extra space).
12622 freebsd2.2*)
12623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12624 hardcode_libdir_flag_spec='-R$libdir'
12625 hardcode_direct=yes
12626 hardcode_shlibpath_var=no
12627 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012628
John Criswell47fdd832003-07-14 16:52:07 +000012629 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12630 freebsd2*)
12631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12632 hardcode_direct=yes
12633 hardcode_minus_L=yes
12634 hardcode_shlibpath_var=no
12635 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012636
John Criswell47fdd832003-07-14 16:52:07 +000012637 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012638 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012639 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12640 hardcode_libdir_flag_spec='-R$libdir'
12641 hardcode_direct=yes
12642 hardcode_shlibpath_var=no
12643 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012644
John Criswell47fdd832003-07-14 16:52:07 +000012645 hpux9*)
12646 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012647 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000012648 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012649 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'
John Criswell47fdd832003-07-14 16:52:07 +000012650 fi
12651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12652 hardcode_libdir_separator=:
12653 hardcode_direct=yes
12654
12655 # hardcode_minus_L: Not really in the search PATH,
12656 # but as the default location of the library.
12657 hardcode_minus_L=yes
12658 export_dynamic_flag_spec='${wl}-E'
12659 ;;
12660
12661 hpux10* | hpux11*)
12662 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12663 case "$host_cpu" in
12664 hppa*64*|ia64*)
12665 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12666 ;;
12667 *)
12668 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12669 ;;
12670 esac
12671 else
12672 case "$host_cpu" in
12673 hppa*64*|ia64*)
12674 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12675 ;;
12676 *)
12677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12678 ;;
12679 esac
12680 fi
12681 if test "$with_gnu_ld" = no; then
12682 case "$host_cpu" in
12683 hppa*64*)
12684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12685 hardcode_libdir_flag_spec_ld='+b $libdir'
12686 hardcode_libdir_separator=:
12687 hardcode_direct=no
12688 hardcode_shlibpath_var=no
12689 ;;
12690 ia64*)
12691 hardcode_libdir_flag_spec='-L$libdir'
12692 hardcode_direct=no
12693 hardcode_shlibpath_var=no
12694
12695 # hardcode_minus_L: Not really in the search PATH,
12696 # but as the default location of the library.
12697 hardcode_minus_L=yes
12698 ;;
12699 *)
12700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12701 hardcode_libdir_separator=:
12702 hardcode_direct=yes
12703 export_dynamic_flag_spec='${wl}-E'
12704
12705 # hardcode_minus_L: Not really in the search PATH,
12706 # but as the default location of the library.
12707 hardcode_minus_L=yes
12708 ;;
12709 esac
12710 fi
12711 ;;
12712
12713 irix5* | irix6* | nonstopux*)
12714 if test "$GCC" = yes; then
12715 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'
12716 else
12717 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'
12718 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12719 fi
12720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12721 hardcode_libdir_separator=:
12722 link_all_deplibs=yes
12723 ;;
12724
12725 netbsd*)
12726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12728 else
12729 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12730 fi
12731 hardcode_libdir_flag_spec='-R$libdir'
12732 hardcode_direct=yes
12733 hardcode_shlibpath_var=no
12734 ;;
12735
12736 newsos6)
12737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12738 hardcode_direct=yes
12739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12740 hardcode_libdir_separator=:
12741 hardcode_shlibpath_var=no
12742 ;;
12743
12744 openbsd*)
12745 hardcode_direct=yes
12746 hardcode_shlibpath_var=no
12747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012749 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000012750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12751 export_dynamic_flag_spec='${wl}-E'
12752 else
12753 case $host_os in
12754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12756 hardcode_libdir_flag_spec='-R$libdir'
12757 ;;
12758 *)
12759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12761 ;;
12762 esac
12763 fi
12764 ;;
12765
12766 os2*)
12767 hardcode_libdir_flag_spec='-L$libdir'
12768 hardcode_minus_L=yes
12769 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012770 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'
John Criswell47fdd832003-07-14 16:52:07 +000012771 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12772 ;;
12773
12774 osf3*)
12775 if test "$GCC" = yes; then
12776 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12777 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'
12778 else
12779 allow_undefined_flag=' -expect_unresolved \*'
12780 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'
12781 fi
12782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12783 hardcode_libdir_separator=:
12784 ;;
12785
12786 osf4* | osf5*) # as osf3* with the addition of -msym flag
12787 if test "$GCC" = yes; then
12788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12789 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'
12790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12791 else
12792 allow_undefined_flag=' -expect_unresolved \*'
12793 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000012794 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12795 $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'
12796
John Criswell47fdd832003-07-14 16:52:07 +000012797 # Both c and cxx compiler support -rpath directly
12798 hardcode_libdir_flag_spec='-rpath $libdir'
12799 fi
12800 hardcode_libdir_separator=:
12801 ;;
12802
12803 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12805 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012806 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012807 runpath_var=LD_RUN_PATH
12808 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012809 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012810
John Criswell47fdd832003-07-14 16:52:07 +000012811 solaris*)
12812 no_undefined_flag=' -z text'
12813 if test "$GCC" = yes; then
12814 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012815 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000012817 else
12818 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012819 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000012821 fi
12822 hardcode_libdir_flag_spec='-R$libdir'
12823 hardcode_shlibpath_var=no
12824 case $host_os in
12825 solaris2.[0-5] | solaris2.[0-5].*) ;;
12826 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12827 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12828 esac
12829 link_all_deplibs=yes
12830 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012831
John Criswell47fdd832003-07-14 16:52:07 +000012832 sunos4*)
12833 if test "x$host_vendor" = xsequent; then
12834 # Use $CC to link under sequent, because it throws in some extra .o
12835 # files that make .init and .fini sections work.
12836 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12837 else
12838 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12839 fi
12840 hardcode_libdir_flag_spec='-L$libdir'
12841 hardcode_direct=yes
12842 hardcode_minus_L=yes
12843 hardcode_shlibpath_var=no
12844 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012845
John Criswell47fdd832003-07-14 16:52:07 +000012846 sysv4)
12847 case $host_vendor in
12848 sni)
12849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12850 hardcode_direct=yes # is this really true???
12851 ;;
12852 siemens)
12853 ## LD is ld it makes a PLAMLIB
12854 ## CC just makes a GrossModule.
12855 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12856 reload_cmds='$CC -r -o $output$reload_objs'
12857 hardcode_direct=no
12858 ;;
12859 motorola)
12860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12862 ;;
12863 esac
12864 runpath_var='LD_RUN_PATH'
12865 hardcode_shlibpath_var=no
12866 ;;
12867
12868 sysv4.3*)
12869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12870 hardcode_shlibpath_var=no
12871 export_dynamic_flag_spec='-Bexport'
12872 ;;
12873
12874 sysv4*MP*)
12875 if test -d /usr/nec; then
12876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12877 hardcode_shlibpath_var=no
12878 runpath_var=LD_RUN_PATH
12879 hardcode_runpath_var=yes
12880 ld_shlibs=yes
12881 fi
12882 ;;
12883
12884 sysv4.2uw2*)
12885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12886 hardcode_direct=yes
12887 hardcode_minus_L=no
12888 hardcode_shlibpath_var=no
12889 hardcode_runpath_var=yes
12890 runpath_var=LD_RUN_PATH
12891 ;;
12892
12893 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12894 no_undefined_flag='${wl}-z ${wl}text'
12895 if test "$GCC" = yes; then
12896 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12897 else
12898 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12899 fi
12900 runpath_var='LD_RUN_PATH'
12901 hardcode_shlibpath_var=no
12902 ;;
12903
12904 sysv5*)
12905 no_undefined_flag=' -z text'
12906 # $CC -shared without GNU ld will not create a library from C++
12907 # object files and a static libstdc++, better avoid it by now
12908 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012909 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000012911 hardcode_libdir_flag_spec=
12912 hardcode_shlibpath_var=no
12913 runpath_var='LD_RUN_PATH'
12914 ;;
12915
12916 uts4*)
12917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12918 hardcode_libdir_flag_spec='-L$libdir'
12919 hardcode_shlibpath_var=no
12920 ;;
12921
12922 *)
12923 ld_shlibs=no
12924 ;;
12925 esac
12926 fi
12927
John Criswell7a73b802003-06-30 21:59:07 +000012928echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12929echo "${ECHO_T}$ld_shlibs" >&6
12930test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012931
John Criswell47fdd832003-07-14 16:52:07 +000012932variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12933if test "$GCC" = yes; then
12934 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12935fi
12936
12937#
12938# Do we need to explicitly link libc?
12939#
12940case "x$archive_cmds_need_lc" in
12941x|xyes)
12942 # Assume -lc should be added
12943 archive_cmds_need_lc=yes
12944
12945 if test "$enable_shared" = yes && test "$GCC" = yes; then
12946 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012947 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012948 # FIXME: we may have to deal with multi-command sequences.
12949 ;;
12950 '$CC '*)
12951 # Test whether the compiler implicitly links with -lc since on some
12952 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12953 # to ld, don't add -lc before -lgcc.
12954 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12955echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12956 $rm conftest*
12957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12958
12959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960 (eval $ac_compile) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } 2>conftest.err; then
12964 soname=conftest
12965 lib=conftest
12966 libobjs=conftest.$ac_objext
12967 deplibs=
12968 wl=$lt_prog_compiler_wl
12969 compiler_flags=-v
12970 linker_flags=-v
12971 verstring=
12972 output_objdir=.
12973 libname=conftest
12974 lt_save_allow_undefined_flag=$allow_undefined_flag
12975 allow_undefined_flag=
12976 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12977 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }
12981 then
12982 archive_cmds_need_lc=no
12983 else
12984 archive_cmds_need_lc=yes
12985 fi
12986 allow_undefined_flag=$lt_save_allow_undefined_flag
12987 else
12988 cat conftest.err 1>&5
12989 fi
12990 $rm conftest*
12991 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12992echo "${ECHO_T}$archive_cmds_need_lc" >&6
12993 ;;
12994 esac
12995 fi
12996 ;;
12997esac
12998
John Criswell7a73b802003-06-30 21:59:07 +000012999echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13000echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13001library_names_spec=
13002libname_spec='lib$name'
13003soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013004shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013005postinstall_cmds=
13006postuninstall_cmds=
13007finish_cmds=
13008finish_eval=
13009shlibpath_var=
13010shlibpath_overrides_runpath=unknown
13011version_type=none
13012dynamic_linker="$host_os ld.so"
13013sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013014if test "$GCC" = yes; then
13015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13016 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13017 # if the path contains ";" then we assume it to be the separator
13018 # otherwise default to the standard path separator (i.e. ":") - it is
13019 # assumed that no part of a normal pathname contains ";" but that should
13020 # okay in the real world where ";" in dirpaths is itself problematic.
13021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13022 else
13023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13024 fi
13025else
13026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13027fi
13028need_lib_prefix=unknown
13029hardcode_into_libs=no
13030
13031# when you set need_version to no, make sure it does not cause -set_version
13032# flags to be left without arguments
13033need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013034
13035case $host_os in
13036aix3*)
13037 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013039 shlibpath_var=LIBPATH
13040
John Criswell47fdd832003-07-14 16:52:07 +000013041 # AIX 3 has no versioning support, so we append a major version to the name.
13042 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013043 ;;
13044
13045aix4* | aix5*)
13046 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013047 need_lib_prefix=no
13048 need_version=no
13049 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013050 if test "$host_cpu" = ia64; then
13051 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013052 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013053 shlibpath_var=LD_LIBRARY_PATH
13054 else
13055 # With GCC up to 2.95.x, collect2 would create an import file
13056 # for dependence libraries. The import file would start with
13057 # the line `#! .'. This would cause the generated library to
13058 # depend on `.', always an invalid library. This was fixed in
13059 # development snapshots of GCC prior to 3.0.
13060 case $host_os in
13061 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013062 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13063 echo ' yes '
13064 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13065 :
13066 else
13067 can_build_shared=no
13068 fi
13069 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013070 esac
John Criswell47fdd832003-07-14 16:52:07 +000013071 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13072 # soname into executable. Probably we can add versioning support to
13073 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013074 if test "$aix_use_runtimelinking" = yes; then
13075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13076 # instead of lib<name>.a to let people know that these are not
13077 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013079 else
13080 # We preserve .a as extension for shared libraries through AIX4.2
13081 # and later when we are not doing run time linking.
13082 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013083 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013084 fi
13085 shlibpath_var=LIBPATH
13086 fi
13087 ;;
13088
13089amigaos*)
13090 library_names_spec='$libname.ixlibrary $libname.a'
13091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013092 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'
John Criswell7a73b802003-06-30 21:59:07 +000013093 ;;
13094
13095beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013096 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013097 dynamic_linker="$host_os ld.so"
13098 shlibpath_var=LIBRARY_PATH
13099 ;;
13100
Reid Spencer2706f8c2004-09-19 23:53:36 +000013101bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013102 version_type=linux
13103 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13107 shlibpath_var=LD_LIBRARY_PATH
13108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013110 # the default ld.so.conf also contains /usr/contrib/lib and
13111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13112 # libtool to hard-code these into programs
13113 ;;
13114
13115cygwin* | mingw* | pw32*)
13116 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013117 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013118 need_version=no
13119 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013120
John Criswell7a73b802003-06-30 21:59:07 +000013121 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013122 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013123 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013125 postinstall_cmds='base_file=`basename \${file}`~
13126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13127 dldir=$destdir/`dirname \$dlpath`~
13128 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013129 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13131 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013132 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013133 shlibpath_overrides_runpath=yes
13134
13135 case $host_os in
13136 cygwin*)
13137 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13138 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013139 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013140 ;;
13141 mingw*)
13142 # MinGW DLLs use traditional 'lib' prefix
13143 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13144 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13145 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13146 # It is most probably a Windows format PATH printed by
13147 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13148 # path with ; separators, and with drive letters. We can handle the
13149 # drive letters (cygwin fileutils understands them), so leave them,
13150 # especially as we might pass files found there to a mingw objdump,
13151 # which wouldn't understand a cygwinified path. Ahh.
13152 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13153 else
13154 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13155 fi
13156 ;;
13157 pw32*)
13158 # pw32 DLLs use 'pw' prefix rather than 'lib'
13159 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13160 ;;
13161 esac
John Criswell7a73b802003-06-30 21:59:07 +000013162 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013163
John Criswell7a73b802003-06-30 21:59:07 +000013164 *)
John Criswell47fdd832003-07-14 16:52:07 +000013165 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013166 ;;
13167 esac
13168 dynamic_linker='Win32 ld.exe'
13169 # FIXME: first we should search . and the directory the executable is in
13170 shlibpath_var=PATH
13171 ;;
13172
13173darwin* | rhapsody*)
13174 dynamic_linker="$host_os dyld"
13175 version_type=darwin
13176 need_lib_prefix=no
13177 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013178 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013179 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013180 shlibpath_overrides_runpath=yes
13181 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013182 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013183 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013184 if test "$GCC" = yes; then
13185 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13186 else
13187 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013188 fi
13189 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13190 ;;
13191
13192dgux*)
13193 version_type=linux
13194 need_lib_prefix=no
13195 need_version=no
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13197 soname_spec='${libname}${release}${shared_ext}$major'
13198 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013199 ;;
13200
13201freebsd1*)
13202 dynamic_linker=no
13203 ;;
13204
Reid Spencer2706f8c2004-09-19 23:53:36 +000013205kfreebsd*-gnu)
13206 version_type=linux
13207 need_lib_prefix=no
13208 need_version=no
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13210 soname_spec='${libname}${release}${shared_ext}$major'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=no
13213 hardcode_into_libs=yes
13214 dynamic_linker='GNU ld.so'
13215 ;;
13216
John Criswell7a73b802003-06-30 21:59:07 +000013217freebsd*)
13218 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13219 version_type=freebsd-$objformat
13220 case $version_type in
13221 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013223 need_version=no
13224 need_lib_prefix=no
13225 ;;
13226 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013228 need_version=yes
13229 ;;
13230 esac
13231 shlibpath_var=LD_LIBRARY_PATH
13232 case $host_os in
13233 freebsd2*)
13234 shlibpath_overrides_runpath=yes
13235 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013236 freebsd3.01* | freebsdelf3.01*)
13237 shlibpath_overrides_runpath=yes
13238 hardcode_into_libs=yes
13239 ;;
13240 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013241 shlibpath_overrides_runpath=no
13242 hardcode_into_libs=yes
13243 ;;
13244 esac
13245 ;;
13246
13247gnu*)
13248 version_type=linux
13249 need_lib_prefix=no
13250 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13252 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013253 shlibpath_var=LD_LIBRARY_PATH
13254 hardcode_into_libs=yes
13255 ;;
13256
13257hpux9* | hpux10* | hpux11*)
13258 # Give a soname corresponding to the major version so that dld.sl refuses to
13259 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013260 version_type=sunos
13261 need_lib_prefix=no
13262 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013263 case "$host_cpu" in
13264 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013265 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013266 hardcode_into_libs=yes
13267 dynamic_linker="$host_os dld.so"
13268 shlibpath_var=LD_LIBRARY_PATH
13269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271 soname_spec='${libname}${release}${shared_ext}$major'
13272 if test "X$HPUX_IA64_MODE" = X32; then
13273 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13274 else
13275 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13276 fi
13277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13278 ;;
13279 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013280 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013281 hardcode_into_libs=yes
13282 dynamic_linker="$host_os dld.sl"
13283 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13286 soname_spec='${libname}${release}${shared_ext}$major'
13287 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13289 ;;
13290 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013291 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013292 dynamic_linker="$host_os dld.sl"
13293 shlibpath_var=SHLIB_PATH
13294 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13296 soname_spec='${libname}${release}${shared_ext}$major'
13297 ;;
13298 esac
John Criswell7a73b802003-06-30 21:59:07 +000013299 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13300 postinstall_cmds='chmod 555 $lib'
13301 ;;
13302
John Criswell47fdd832003-07-14 16:52:07 +000013303irix5* | irix6* | nonstopux*)
13304 case $host_os in
13305 nonstopux*) version_type=nonstopux ;;
13306 *)
13307 if test "$lt_cv_prog_gnu_ld" = yes; then
13308 version_type=linux
13309 else
13310 version_type=irix
13311 fi ;;
13312 esac
John Criswell7a73b802003-06-30 21:59:07 +000013313 need_lib_prefix=no
13314 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013315 soname_spec='${libname}${release}${shared_ext}$major'
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013317 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013318 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013319 libsuff= shlibsuff=
13320 ;;
13321 *)
13322 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13324 libsuff= shlibsuff= libmagic=32-bit;;
13325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13326 libsuff=32 shlibsuff=N32 libmagic=N32;;
13327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013329 *) libsuff= shlibsuff= libmagic=never-match;;
13330 esac
13331 ;;
13332 esac
13333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13334 shlibpath_overrides_runpath=no
13335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013337 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013338 ;;
13339
13340# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013341linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013342 dynamic_linker=no
13343 ;;
13344
13345# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013346linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013347 version_type=linux
13348 need_lib_prefix=no
13349 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=no
13355 # This implies no fast_install, which is unacceptable.
13356 # Some rework will be needed to allow for fast_install
13357 # before this can be enabled.
13358 hardcode_into_libs=yes
13359
Reid Spencer2706f8c2004-09-19 23:53:36 +000013360 # Append ld.so.conf contents to the search path
13361 if test -f /etc/ld.so.conf; then
13362 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13364 fi
13365
John Criswell7a73b802003-06-30 21:59:07 +000013366 # We used to test for /lib/ld.so.1 and disable shared libraries on
13367 # powerpc, because MkLinux only supported shared libraries with the
13368 # GNU dynamic linker. Since this was broken with cross compilers,
13369 # most powerpc-linux boxes support dynamic linking these days and
13370 # people can always --disable-shared, the test was removed, and we
13371 # assume the GNU/Linux dynamic linker is in use.
13372 dynamic_linker='GNU/Linux ld.so'
13373 ;;
13374
Reid Spencer2706f8c2004-09-19 23:53:36 +000013375knetbsd*-gnu)
13376 version_type=linux
13377 need_lib_prefix=no
13378 need_version=no
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 shlibpath_overrides_runpath=no
13383 hardcode_into_libs=yes
13384 dynamic_linker='GNU ld.so'
13385 ;;
13386
John Criswell7a73b802003-06-30 21:59:07 +000013387netbsd*)
13388 version_type=sunos
13389 need_lib_prefix=no
13390 need_version=no
13391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13394 dynamic_linker='NetBSD (a.out) ld.so'
13395 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013397 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013398 dynamic_linker='NetBSD ld.elf_so'
13399 fi
13400 shlibpath_var=LD_LIBRARY_PATH
13401 shlibpath_overrides_runpath=yes
13402 hardcode_into_libs=yes
13403 ;;
13404
13405newsos6)
13406 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=yes
13410 ;;
13411
Reid Spencer2706f8c2004-09-19 23:53:36 +000013412nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013413 version_type=linux
13414 need_lib_prefix=no
13415 need_version=no
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013418 shlibpath_var=LD_LIBRARY_PATH
13419 shlibpath_overrides_runpath=yes
13420 ;;
13421
13422openbsd*)
13423 version_type=sunos
13424 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013425 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13428 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +000013430 case $host_os in
13431 openbsd2.[89] | openbsd2.[89].*)
13432 shlibpath_overrides_runpath=no
13433 ;;
13434 *)
13435 shlibpath_overrides_runpath=yes
13436 ;;
13437 esac
John Criswell7a73b802003-06-30 21:59:07 +000013438 else
13439 shlibpath_overrides_runpath=yes
13440 fi
John Criswell7a73b802003-06-30 21:59:07 +000013441 ;;
13442
13443os2*)
13444 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013445 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013446 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013447 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013448 dynamic_linker='OS/2 ld.exe'
13449 shlibpath_var=LIBPATH
13450 ;;
13451
13452osf3* | osf4* | osf5*)
13453 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013454 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013455 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013456 soname_spec='${libname}${release}${shared_ext}$major'
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013458 shlibpath_var=LD_LIBRARY_PATH
13459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13460 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13461 ;;
13462
13463sco3.2v5*)
13464 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013465 soname_spec='${libname}${release}${shared_ext}$major'
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013467 shlibpath_var=LD_LIBRARY_PATH
13468 ;;
13469
13470solaris*)
13471 version_type=linux
13472 need_lib_prefix=no
13473 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013476 shlibpath_var=LD_LIBRARY_PATH
13477 shlibpath_overrides_runpath=yes
13478 hardcode_into_libs=yes
13479 # ldd complains unless libraries are executable
13480 postinstall_cmds='chmod +x $lib'
13481 ;;
13482
13483sunos4*)
13484 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=yes
13489 if test "$with_gnu_ld" = yes; then
13490 need_lib_prefix=no
13491 fi
13492 need_version=yes
13493 ;;
13494
13495sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13496 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013499 shlibpath_var=LD_LIBRARY_PATH
13500 case $host_vendor in
13501 sni)
13502 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013503 need_lib_prefix=no
13504 export_dynamic_flag_spec='${wl}-Blargedynsym'
13505 runpath_var=LD_RUN_PATH
13506 ;;
13507 siemens)
13508 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013509 ;;
13510 motorola)
13511 need_lib_prefix=no
13512 need_version=no
13513 shlibpath_overrides_runpath=no
13514 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13515 ;;
13516 esac
13517 ;;
13518
John Criswell7a73b802003-06-30 21:59:07 +000013519sysv4*MP*)
13520 if test -d /usr/nec ;then
13521 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013522 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13523 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013524 shlibpath_var=LD_LIBRARY_PATH
13525 fi
13526 ;;
13527
John Criswell47fdd832003-07-14 16:52:07 +000013528uts4*)
13529 version_type=linux
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531 soname_spec='${libname}${release}${shared_ext}$major'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 ;;
13534
John Criswell7a73b802003-06-30 21:59:07 +000013535*)
13536 dynamic_linker=no
13537 ;;
13538esac
13539echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13540echo "${ECHO_T}$dynamic_linker" >&6
13541test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013542
Reid Spencer2706f8c2004-09-19 23:53:36 +000013543echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13544echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13545hardcode_action=
13546if test -n "$hardcode_libdir_flag_spec" || \
13547 test -n "$runpath_var" || \
13548 test "X$hardcode_automatic" = "Xyes" ; then
13549
13550 # We can hardcode non-existant directories.
13551 if test "$hardcode_direct" != no &&
13552 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13553 # have to relink, otherwise we might link with an installed library
13554 # when we should be linking with a yet-to-be-installed one
13555 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13556 test "$hardcode_minus_L" != no; then
13557 # Linking always hardcodes the temporary library directory.
13558 hardcode_action=relink
13559 else
13560 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13561 hardcode_action=immediate
13562 fi
13563else
13564 # We cannot hardcode anything, or else we can only hardcode existing
13565 # directories.
13566 hardcode_action=unsupported
13567fi
13568echo "$as_me:$LINENO: result: $hardcode_action" >&5
13569echo "${ECHO_T}$hardcode_action" >&6
13570
13571if test "$hardcode_action" = relink; then
13572 # Fast installation is not supported
13573 enable_fast_install=no
13574elif test "$shlibpath_overrides_runpath" = yes ||
13575 test "$enable_shared" = no; then
13576 # Fast installation is not necessary
13577 enable_fast_install=needless
13578fi
13579
13580striplib=
13581old_striplib=
13582echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13583echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13584if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13585 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13586 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13587 echo "$as_me:$LINENO: result: yes" >&5
13588echo "${ECHO_T}yes" >&6
13589else
13590# FIXME - insert some real tests, host_os isn't really good enough
13591 case $host_os in
13592 darwin*)
13593 if test -n "$STRIP" ; then
13594 striplib="$STRIP -x"
13595 echo "$as_me:$LINENO: result: yes" >&5
13596echo "${ECHO_T}yes" >&6
13597 else
13598 echo "$as_me:$LINENO: result: no" >&5
13599echo "${ECHO_T}no" >&6
13600fi
13601 ;;
13602 *)
13603 echo "$as_me:$LINENO: result: no" >&5
13604echo "${ECHO_T}no" >&6
13605 ;;
13606 esac
13607fi
13608
John Criswell7a73b802003-06-30 21:59:07 +000013609if test "x$enable_dlopen" != xyes; then
13610 enable_dlopen=unknown
13611 enable_dlopen_self=unknown
13612 enable_dlopen_self_static=unknown
13613else
13614 lt_cv_dlopen=no
13615 lt_cv_dlopen_libs=
13616
13617 case $host_os in
13618 beos*)
13619 lt_cv_dlopen="load_add_on"
13620 lt_cv_dlopen_libs=
13621 lt_cv_dlopen_self=yes
13622 ;;
13623
John Criswell47fdd832003-07-14 16:52:07 +000013624 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013625 lt_cv_dlopen="LoadLibrary"
13626 lt_cv_dlopen_libs=
13627 ;;
13628
John Criswell47fdd832003-07-14 16:52:07 +000013629 cygwin*)
13630 lt_cv_dlopen="dlopen"
13631 lt_cv_dlopen_libs=
13632 ;;
13633
13634 darwin*)
13635 # if libdl is installed we need to link against it
13636 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13637echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13638if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640else
13641 ac_check_lib_save_LIBS=$LIBS
13642LIBS="-ldl $LIBS"
13643cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013644/* confdefs.h. */
13645_ACEOF
13646cat confdefs.h >>conftest.$ac_ext
13647cat >>conftest.$ac_ext <<_ACEOF
13648/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013649
13650/* Override any gcc2 internal prototype to avoid an error. */
13651#ifdef __cplusplus
13652extern "C"
13653#endif
13654/* We use char because int might match the return type of a gcc2
13655 builtin and then its argument prototype would still apply. */
13656char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013657int
13658main ()
13659{
13660dlopen ();
13661 ;
13662 return 0;
13663}
13664_ACEOF
13665rm -f conftest.$ac_objext conftest$ac_exeext
13666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013667 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013668 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013674 { ac_try='test -z "$ac_c_werror_flag"
13675 || test ! -s conftest.err'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_cv_lib_dl_dlopen=yes
13688else
13689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013690sed 's/^/| /' conftest.$ac_ext >&5
13691
John Criswell47fdd832003-07-14 16:52:07 +000013692ac_cv_lib_dl_dlopen=no
13693fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013694rm -f conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013696LIBS=$ac_check_lib_save_LIBS
13697fi
13698echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13699echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13700if test $ac_cv_lib_dl_dlopen = yes; then
13701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13702else
13703
13704 lt_cv_dlopen="dyld"
13705 lt_cv_dlopen_libs=
13706 lt_cv_dlopen_self=yes
13707
13708fi
13709
13710 ;;
13711
John Criswell7a73b802003-06-30 21:59:07 +000013712 *)
13713 echo "$as_me:$LINENO: checking for shl_load" >&5
13714echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13715if test "${ac_cv_func_shl_load+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717else
13718 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013719/* confdefs.h. */
13720_ACEOF
13721cat confdefs.h >>conftest.$ac_ext
13722cat >>conftest.$ac_ext <<_ACEOF
13723/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013724/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13726#define shl_load innocuous_shl_load
13727
John Criswell7a73b802003-06-30 21:59:07 +000013728/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013729 which can conflict with char shl_load (); below.
13730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13731 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013732
John Criswell0c38eaf2003-09-10 15:17:25 +000013733#ifdef __STDC__
13734# include <limits.h>
13735#else
13736# include <assert.h>
13737#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013738
13739#undef shl_load
13740
John Criswell7a73b802003-06-30 21:59:07 +000013741/* Override any gcc2 internal prototype to avoid an error. */
13742#ifdef __cplusplus
13743extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013744{
John Criswell7a73b802003-06-30 21:59:07 +000013745#endif
13746/* We use char because int might match the return type of a gcc2
13747 builtin and then its argument prototype would still apply. */
13748char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013749/* The GNU C library defines this for functions which it implements
13750 to always fail with ENOSYS. Some functions are actually named
13751 something starting with __ and the normal name is an alias. */
13752#if defined (__stub_shl_load) || defined (__stub___shl_load)
13753choke me
13754#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013755char (*f) () = shl_load;
13756#endif
13757#ifdef __cplusplus
13758}
John Criswell7a73b802003-06-30 21:59:07 +000013759#endif
13760
John Criswell0c38eaf2003-09-10 15:17:25 +000013761int
13762main ()
13763{
13764return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013765 ;
13766 return 0;
13767}
13768_ACEOF
13769rm -f conftest.$ac_objext conftest$ac_exeext
13770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013771 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013772 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013773 grep -v '^ *+' conftest.er1 >conftest.err
13774 rm -f conftest.er1
13775 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013778 { ac_try='test -z "$ac_c_werror_flag"
13779 || test ! -s conftest.err'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; } &&
13785 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 ac_cv_func_shl_load=yes
13792else
13793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013794sed 's/^/| /' conftest.$ac_ext >&5
13795
John Criswell7a73b802003-06-30 21:59:07 +000013796ac_cv_func_shl_load=no
13797fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013798rm -f conftest.err conftest.$ac_objext \
13799 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013800fi
13801echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13802echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13803if test $ac_cv_func_shl_load = yes; then
13804 lt_cv_dlopen="shl_load"
13805else
13806 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13807echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13808if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811 ac_check_lib_save_LIBS=$LIBS
13812LIBS="-ldld $LIBS"
13813cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013814/* confdefs.h. */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013819
13820/* Override any gcc2 internal prototype to avoid an error. */
13821#ifdef __cplusplus
13822extern "C"
13823#endif
13824/* We use char because int might match the return type of a gcc2
13825 builtin and then its argument prototype would still apply. */
13826char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013827int
13828main ()
13829{
13830shl_load ();
13831 ;
13832 return 0;
13833}
13834_ACEOF
13835rm -f conftest.$ac_objext conftest$ac_exeext
13836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013837 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013838 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013844 { ac_try='test -z "$ac_c_werror_flag"
13845 || test ! -s conftest.err'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 ac_cv_lib_dld_shl_load=yes
13858else
13859 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013860sed 's/^/| /' conftest.$ac_ext >&5
13861
John Criswell7a73b802003-06-30 21:59:07 +000013862ac_cv_lib_dld_shl_load=no
13863fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013864rm -f conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013866LIBS=$ac_check_lib_save_LIBS
13867fi
13868echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13869echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13870if test $ac_cv_lib_dld_shl_load = yes; then
13871 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13872else
13873 echo "$as_me:$LINENO: checking for dlopen" >&5
13874echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13875if test "${ac_cv_func_dlopen+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877else
13878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013884/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13886#define dlopen innocuous_dlopen
13887
John Criswell7a73b802003-06-30 21:59:07 +000013888/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013889 which can conflict with char dlopen (); below.
13890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13891 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013892
John Criswell0c38eaf2003-09-10 15:17:25 +000013893#ifdef __STDC__
13894# include <limits.h>
13895#else
13896# include <assert.h>
13897#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013898
13899#undef dlopen
13900
John Criswell7a73b802003-06-30 21:59:07 +000013901/* Override any gcc2 internal prototype to avoid an error. */
13902#ifdef __cplusplus
13903extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013904{
John Criswell7a73b802003-06-30 21:59:07 +000013905#endif
13906/* We use char because int might match the return type of a gcc2
13907 builtin and then its argument prototype would still apply. */
13908char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013909/* The GNU C library defines this for functions which it implements
13910 to always fail with ENOSYS. Some functions are actually named
13911 something starting with __ and the normal name is an alias. */
13912#if defined (__stub_dlopen) || defined (__stub___dlopen)
13913choke me
13914#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013915char (*f) () = dlopen;
13916#endif
13917#ifdef __cplusplus
13918}
John Criswell7a73b802003-06-30 21:59:07 +000013919#endif
13920
John Criswell0c38eaf2003-09-10 15:17:25 +000013921int
13922main ()
13923{
13924return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013925 ;
13926 return 0;
13927}
13928_ACEOF
13929rm -f conftest.$ac_objext conftest$ac_exeext
13930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013931 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013932 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013938 { ac_try='test -z "$ac_c_werror_flag"
13939 || test ! -s conftest.err'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_func_dlopen=yes
13952else
13953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013954sed 's/^/| /' conftest.$ac_ext >&5
13955
John Criswell7a73b802003-06-30 21:59:07 +000013956ac_cv_func_dlopen=no
13957fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013958rm -f conftest.err conftest.$ac_objext \
13959 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013960fi
13961echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13962echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13963if test $ac_cv_func_dlopen = yes; then
13964 lt_cv_dlopen="dlopen"
13965else
13966 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13967echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13968if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13970else
13971 ac_check_lib_save_LIBS=$LIBS
13972LIBS="-ldl $LIBS"
13973cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013974/* confdefs.h. */
13975_ACEOF
13976cat confdefs.h >>conftest.$ac_ext
13977cat >>conftest.$ac_ext <<_ACEOF
13978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013979
13980/* Override any gcc2 internal prototype to avoid an error. */
13981#ifdef __cplusplus
13982extern "C"
13983#endif
13984/* We use char because int might match the return type of a gcc2
13985 builtin and then its argument prototype would still apply. */
13986char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013987int
13988main ()
13989{
13990dlopen ();
13991 ;
13992 return 0;
13993}
13994_ACEOF
13995rm -f conftest.$ac_objext conftest$ac_exeext
13996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013997 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013998 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_cv_lib_dl_dlopen=yes
14018else
14019 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014020sed 's/^/| /' conftest.$ac_ext >&5
14021
John Criswell7a73b802003-06-30 21:59:07 +000014022ac_cv_lib_dl_dlopen=no
14023fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014024rm -f conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014026LIBS=$ac_check_lib_save_LIBS
14027fi
14028echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14029echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14030if test $ac_cv_lib_dl_dlopen = yes; then
14031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14032else
14033 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14034echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14035if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037else
14038 ac_check_lib_save_LIBS=$LIBS
14039LIBS="-lsvld $LIBS"
14040cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014046
14047/* Override any gcc2 internal prototype to avoid an error. */
14048#ifdef __cplusplus
14049extern "C"
14050#endif
14051/* We use char because int might match the return type of a gcc2
14052 builtin and then its argument prototype would still apply. */
14053char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014054int
14055main ()
14056{
14057dlopen ();
14058 ;
14059 return 0;
14060}
14061_ACEOF
14062rm -f conftest.$ac_objext conftest$ac_exeext
14063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014064 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014065 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014071 { ac_try='test -z "$ac_c_werror_flag"
14072 || test ! -s conftest.err'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; } &&
14078 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 ac_cv_lib_svld_dlopen=yes
14085else
14086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014087sed 's/^/| /' conftest.$ac_ext >&5
14088
John Criswell7a73b802003-06-30 21:59:07 +000014089ac_cv_lib_svld_dlopen=no
14090fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014091rm -f conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014093LIBS=$ac_check_lib_save_LIBS
14094fi
14095echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14096echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14097if test $ac_cv_lib_svld_dlopen = yes; then
14098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14099else
14100 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14101echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14102if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104else
14105 ac_check_lib_save_LIBS=$LIBS
14106LIBS="-ldld $LIBS"
14107cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014108/* confdefs.h. */
14109_ACEOF
14110cat confdefs.h >>conftest.$ac_ext
14111cat >>conftest.$ac_ext <<_ACEOF
14112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014113
14114/* Override any gcc2 internal prototype to avoid an error. */
14115#ifdef __cplusplus
14116extern "C"
14117#endif
14118/* We use char because int might match the return type of a gcc2
14119 builtin and then its argument prototype would still apply. */
14120char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014121int
14122main ()
14123{
14124dld_link ();
14125 ;
14126 return 0;
14127}
14128_ACEOF
14129rm -f conftest.$ac_objext conftest$ac_exeext
14130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014131 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014132 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014138 { ac_try='test -z "$ac_c_werror_flag"
14139 || test ! -s conftest.err'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; } &&
14145 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14151 ac_cv_lib_dld_dld_link=yes
14152else
14153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014154sed 's/^/| /' conftest.$ac_ext >&5
14155
John Criswell7a73b802003-06-30 21:59:07 +000014156ac_cv_lib_dld_dld_link=no
14157fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014158rm -f conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014160LIBS=$ac_check_lib_save_LIBS
14161fi
14162echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14163echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14164if test $ac_cv_lib_dld_dld_link = yes; then
14165 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14166fi
14167
14168
14169fi
14170
14171
14172fi
14173
14174
14175fi
14176
14177
14178fi
14179
14180
14181fi
14182
14183 ;;
14184 esac
14185
14186 if test "x$lt_cv_dlopen" != xno; then
14187 enable_dlopen=yes
14188 else
14189 enable_dlopen=no
14190 fi
14191
14192 case $lt_cv_dlopen in
14193 dlopen)
14194 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014195 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014196
14197 save_LDFLAGS="$LDFLAGS"
14198 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14199
14200 save_LIBS="$LIBS"
14201 LIBS="$lt_cv_dlopen_libs $LIBS"
14202
14203 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14204echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14205if test "${lt_cv_dlopen_self+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207else
14208 if test "$cross_compiling" = yes; then :
14209 lt_cv_dlopen_self=cross
14210else
John Criswell47fdd832003-07-14 16:52:07 +000014211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014212 lt_status=$lt_dlunknown
14213 cat > conftest.$ac_ext <<EOF
Reid Spencercda35f82004-12-02 04:17:20 +000014214#line 14214 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014215#include "confdefs.h"
14216
14217#if HAVE_DLFCN_H
14218#include <dlfcn.h>
14219#endif
14220
14221#include <stdio.h>
14222
14223#ifdef RTLD_GLOBAL
14224# define LT_DLGLOBAL RTLD_GLOBAL
14225#else
14226# ifdef DL_GLOBAL
14227# define LT_DLGLOBAL DL_GLOBAL
14228# else
14229# define LT_DLGLOBAL 0
14230# endif
14231#endif
14232
14233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14234 find out it does not work in some platform. */
14235#ifndef LT_DLLAZY_OR_NOW
14236# ifdef RTLD_LAZY
14237# define LT_DLLAZY_OR_NOW RTLD_LAZY
14238# else
14239# ifdef DL_LAZY
14240# define LT_DLLAZY_OR_NOW DL_LAZY
14241# else
14242# ifdef RTLD_NOW
14243# define LT_DLLAZY_OR_NOW RTLD_NOW
14244# else
14245# ifdef DL_NOW
14246# define LT_DLLAZY_OR_NOW DL_NOW
14247# else
14248# define LT_DLLAZY_OR_NOW 0
14249# endif
14250# endif
14251# endif
14252# endif
14253#endif
14254
14255#ifdef __cplusplus
14256extern "C" void exit (int);
14257#endif
14258
14259void fnord() { int i=42;}
14260int main ()
14261{
14262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14263 int status = $lt_dlunknown;
14264
14265 if (self)
14266 {
14267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14269 /* dlclose (self); */
14270 }
14271
14272 exit (status);
14273}
14274EOF
14275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14276 (eval $ac_link) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14280 (./conftest; exit; ) 2>/dev/null
14281 lt_status=$?
14282 case x$lt_status in
14283 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14284 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14285 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14286 esac
14287 else :
14288 # compilation failed
14289 lt_cv_dlopen_self=no
14290 fi
14291fi
14292rm -fr conftest*
14293
14294
14295fi
14296echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14297echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14298
14299 if test "x$lt_cv_dlopen_self" = xyes; then
14300 LDFLAGS="$LDFLAGS $link_static_flag"
14301 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14302echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14303if test "${lt_cv_dlopen_self_static+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306 if test "$cross_compiling" = yes; then :
14307 lt_cv_dlopen_self_static=cross
14308else
John Criswell47fdd832003-07-14 16:52:07 +000014309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014310 lt_status=$lt_dlunknown
14311 cat > conftest.$ac_ext <<EOF
Reid Spencercda35f82004-12-02 04:17:20 +000014312#line 14312 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014313#include "confdefs.h"
14314
14315#if HAVE_DLFCN_H
14316#include <dlfcn.h>
14317#endif
14318
14319#include <stdio.h>
14320
14321#ifdef RTLD_GLOBAL
14322# define LT_DLGLOBAL RTLD_GLOBAL
14323#else
14324# ifdef DL_GLOBAL
14325# define LT_DLGLOBAL DL_GLOBAL
14326# else
14327# define LT_DLGLOBAL 0
14328# endif
14329#endif
14330
14331/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14332 find out it does not work in some platform. */
14333#ifndef LT_DLLAZY_OR_NOW
14334# ifdef RTLD_LAZY
14335# define LT_DLLAZY_OR_NOW RTLD_LAZY
14336# else
14337# ifdef DL_LAZY
14338# define LT_DLLAZY_OR_NOW DL_LAZY
14339# else
14340# ifdef RTLD_NOW
14341# define LT_DLLAZY_OR_NOW RTLD_NOW
14342# else
14343# ifdef DL_NOW
14344# define LT_DLLAZY_OR_NOW DL_NOW
14345# else
14346# define LT_DLLAZY_OR_NOW 0
14347# endif
14348# endif
14349# endif
14350# endif
14351#endif
14352
14353#ifdef __cplusplus
14354extern "C" void exit (int);
14355#endif
14356
14357void fnord() { int i=42;}
14358int main ()
14359{
14360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14361 int status = $lt_dlunknown;
14362
14363 if (self)
14364 {
14365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14366 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14367 /* dlclose (self); */
14368 }
14369
14370 exit (status);
14371}
14372EOF
14373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14374 (eval $ac_link) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14378 (./conftest; exit; ) 2>/dev/null
14379 lt_status=$?
14380 case x$lt_status in
14381 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14382 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14383 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14384 esac
14385 else :
14386 # compilation failed
14387 lt_cv_dlopen_self_static=no
14388 fi
14389fi
14390rm -fr conftest*
14391
14392
14393fi
14394echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14395echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14396 fi
14397
14398 CPPFLAGS="$save_CPPFLAGS"
14399 LDFLAGS="$save_LDFLAGS"
14400 LIBS="$save_LIBS"
14401 ;;
14402 esac
14403
14404 case $lt_cv_dlopen_self in
14405 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14406 *) enable_dlopen_self=unknown ;;
14407 esac
14408
14409 case $lt_cv_dlopen_self_static in
14410 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14411 *) enable_dlopen_self_static=unknown ;;
14412 esac
14413fi
14414
14415
John Criswell47fdd832003-07-14 16:52:07 +000014416# Report which librarie types wil actually be built
14417echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14418echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14419echo "$as_me:$LINENO: result: $can_build_shared" >&5
14420echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014421
John Criswell47fdd832003-07-14 16:52:07 +000014422echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14423echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14424test "$can_build_shared" = "no" && enable_shared=no
14425
14426# On AIX, shared libraries and static libraries use the same namespace, and
14427# are all built from PIC.
14428case "$host_os" in
14429aix3*)
14430 test "$enable_shared" = yes && enable_static=no
14431 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014432 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014433 postinstall_cmds='$RANLIB $lib'
14434 fi
14435 ;;
14436
Reid Spencer2706f8c2004-09-19 23:53:36 +000014437aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014438 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14439 test "$enable_shared" = yes && enable_static=no
14440 fi
John Criswell7a73b802003-06-30 21:59:07 +000014441 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014442esac
14443echo "$as_me:$LINENO: result: $enable_shared" >&5
14444echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014445
John Criswell47fdd832003-07-14 16:52:07 +000014446echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14447echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14448# Make sure either enable_shared or enable_static is yes.
14449test "$enable_shared" = yes || enable_static=yes
14450echo "$as_me:$LINENO: result: $enable_static" >&5
14451echo "${ECHO_T}$enable_static" >&6
14452
14453# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014454# libtool distribution, otherwise you forgot to ship ltmain.sh
14455# with your package, and you will get complaints that there are
14456# no rules to generate ltmain.sh.
14457if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014458 # See if we are running on zsh, and set the options which allow our commands through
14459 # without removal of \ escapes.
14460 if test -n "${ZSH_VERSION+set}" ; then
14461 setopt NO_GLOB_SUBST
14462 fi
John Criswell7a73b802003-06-30 21:59:07 +000014463 # Now quote all the things that may contain metacharacters while being
14464 # careful not to overquote the AC_SUBSTed values. We take copies of the
14465 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14467 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014468 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14469 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14470 deplibs_check_method reload_flag reload_cmds need_locks \
14471 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14472 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014473 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014474 old_postinstall_cmds old_postuninstall_cmds \
14475 compiler \
14476 CC \
14477 LD \
14478 lt_prog_compiler_wl \
14479 lt_prog_compiler_pic \
14480 lt_prog_compiler_static \
14481 lt_prog_compiler_no_builtin_flag \
14482 export_dynamic_flag_spec \
14483 thread_safe_flag_spec \
14484 whole_archive_flag_spec \
14485 enable_shared_with_static_runtimes \
14486 old_archive_cmds \
14487 old_archive_from_new_cmds \
14488 predep_objects \
14489 postdep_objects \
14490 predeps \
14491 postdeps \
14492 compiler_lib_search_path \
14493 archive_cmds \
14494 archive_expsym_cmds \
14495 postinstall_cmds \
14496 postuninstall_cmds \
14497 old_archive_from_expsyms_cmds \
14498 allow_undefined_flag \
14499 no_undefined_flag \
14500 export_symbols_cmds \
14501 hardcode_libdir_flag_spec \
14502 hardcode_libdir_flag_spec_ld \
14503 hardcode_libdir_separator \
14504 hardcode_automatic \
14505 module_cmds \
14506 module_expsym_cmds \
14507 lt_cv_prog_compiler_c_o \
14508 exclude_expsyms \
14509 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014510
14511 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014512 old_archive_cmds | \
14513 old_archive_from_new_cmds | \
14514 archive_cmds | \
14515 archive_expsym_cmds | \
14516 module_cmds | \
14517 module_expsym_cmds | \
14518 old_archive_from_expsyms_cmds | \
14519 export_symbols_cmds | \
14520 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014521 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014522 old_postinstall_cmds | old_postuninstall_cmds | \
14523 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014524 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +000014526 ;;
14527 *)
14528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14529 ;;
14530 esac
14531 done
14532
John Criswell47fdd832003-07-14 16:52:07 +000014533 case $lt_echo in
14534 *'\$0 --fallback-echo"')
14535 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14536 ;;
14537 esac
14538
14539cfgfile="${ofile}T"
14540 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14541 $rm -f "$cfgfile"
14542 { echo "$as_me:$LINENO: creating $ofile" >&5
14543echo "$as_me: creating $ofile" >&6;}
14544
14545 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014546#! $SHELL
14547
John Criswell47fdd832003-07-14 16:52:07 +000014548# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014549# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14550# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14551#
John Criswell47fdd832003-07-14 16:52:07 +000014552# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14553# Free Software Foundation, Inc.
14554#
14555# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014556# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14557#
14558# This program is free software; you can redistribute it and/or modify
14559# it under the terms of the GNU General Public License as published by
14560# the Free Software Foundation; either version 2 of the License, or
14561# (at your option) any later version.
14562#
14563# This program is distributed in the hope that it will be useful, but
14564# WITHOUT ANY WARRANTY; without even the implied warranty of
14565# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14566# General Public License for more details.
14567#
14568# You should have received a copy of the GNU General Public License
14569# along with this program; if not, write to the Free Software
14570# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14571#
14572# As a special exception to the GNU General Public License, if you
14573# distribute this file as part of a program that contains a
14574# configuration script generated by Autoconf, you may include it under
14575# the same distribution terms that you use for the rest of that program.
14576
John Criswell47fdd832003-07-14 16:52:07 +000014577# A sed program that does not truncate output.
14578SED=$lt_SED
14579
John Criswell7a73b802003-06-30 21:59:07 +000014580# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014581Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014582
14583# The HP-UX ksh and POSIX shell print the target directory to stdout
14584# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014585(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014586
John Criswell47fdd832003-07-14 16:52:07 +000014587# The names of the tagged configurations supported by this script.
14588available_tags=
14589
John Criswell7a73b802003-06-30 21:59:07 +000014590# ### BEGIN LIBTOOL CONFIG
14591
14592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14593
14594# Shell to use when invoking shell scripts.
14595SHELL=$lt_SHELL
14596
14597# Whether or not to build shared libraries.
14598build_libtool_libs=$enable_shared
14599
14600# Whether or not to build static libraries.
14601build_old_libs=$enable_static
14602
14603# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014604build_libtool_need_lc=$archive_cmds_need_lc
14605
14606# Whether or not to disallow shared libs when runtime libs are static
14607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014608
14609# Whether or not to optimize for fast installation.
14610fast_install=$enable_fast_install
14611
14612# The host system.
14613host_alias=$host_alias
14614host=$host
14615
14616# An echo program that does not interpret backslashes.
14617echo=$lt_echo
14618
14619# The archiver.
14620AR=$lt_AR
14621AR_FLAGS=$lt_AR_FLAGS
14622
John Criswell47fdd832003-07-14 16:52:07 +000014623# A C compiler.
14624LTCC=$lt_LTCC
14625
14626# A language-specific compiler.
14627CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014628
14629# Is the compiler the GNU C compiler?
14630with_gcc=$GCC
14631
John Criswell47fdd832003-07-14 16:52:07 +000014632# An ERE matcher.
14633EGREP=$lt_EGREP
14634
John Criswell7a73b802003-06-30 21:59:07 +000014635# The linker used to build libraries.
14636LD=$lt_LD
14637
14638# Whether we need hard or soft links.
14639LN_S=$lt_LN_S
14640
14641# A BSD-compatible nm program.
14642NM=$lt_NM
14643
14644# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014645STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014646
14647# Used to examine libraries when file_magic_cmd begins "file"
14648MAGIC_CMD=$MAGIC_CMD
14649
14650# Used on cygwin: DLL creation program.
14651DLLTOOL="$DLLTOOL"
14652
14653# Used on cygwin: object dumper.
14654OBJDUMP="$OBJDUMP"
14655
14656# Used on cygwin: assembler.
14657AS="$AS"
14658
14659# The name of the directory that contains temporary libtool files.
14660objdir=$objdir
14661
14662# How to create reloadable object files.
14663reload_flag=$lt_reload_flag
14664reload_cmds=$lt_reload_cmds
14665
14666# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014667wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014668
14669# Object file suffix (normally "o").
14670objext="$ac_objext"
14671
14672# Old archive suffix (normally "a").
14673libext="$libext"
14674
John Criswell47fdd832003-07-14 16:52:07 +000014675# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014676shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014677
John Criswell7a73b802003-06-30 21:59:07 +000014678# Executable file suffix (normally "").
14679exeext="$exeext"
14680
14681# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014682pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014683pic_mode=$pic_mode
14684
John Criswell47fdd832003-07-14 16:52:07 +000014685# What is the maximum length of a command?
14686max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014687
John Criswell47fdd832003-07-14 16:52:07 +000014688# Does compiler simultaneously support -c and -o options?
14689compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014690
14691# Must we lock files when doing compilation ?
14692need_locks=$lt_need_locks
14693
14694# Do we need the lib prefix for modules?
14695need_lib_prefix=$need_lib_prefix
14696
14697# Do we need a version for libraries?
14698need_version=$need_version
14699
14700# Whether dlopen is supported.
14701dlopen_support=$enable_dlopen
14702
14703# Whether dlopen of programs is supported.
14704dlopen_self=$enable_dlopen_self
14705
14706# Whether dlopen of statically linked programs is supported.
14707dlopen_self_static=$enable_dlopen_self_static
14708
14709# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014710link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014711
14712# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014713no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014714
14715# Compiler flag to allow reflexive dlopens.
14716export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14717
14718# Compiler flag to generate shared objects directly from archives.
14719whole_archive_flag_spec=$lt_whole_archive_flag_spec
14720
14721# Compiler flag to generate thread-safe objects.
14722thread_safe_flag_spec=$lt_thread_safe_flag_spec
14723
14724# Library versioning type.
14725version_type=$version_type
14726
14727# Format of library name prefix.
14728libname_spec=$lt_libname_spec
14729
14730# List of archive names. First name is the real one, the rest are links.
14731# The last name is the one that the linker finds with -lNAME.
14732library_names_spec=$lt_library_names_spec
14733
14734# The coded name of the library, if different from the real name.
14735soname_spec=$lt_soname_spec
14736
14737# Commands used to build and install an old-style archive.
14738RANLIB=$lt_RANLIB
14739old_archive_cmds=$lt_old_archive_cmds
14740old_postinstall_cmds=$lt_old_postinstall_cmds
14741old_postuninstall_cmds=$lt_old_postuninstall_cmds
14742
14743# Create an old-style archive from a shared archive.
14744old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14745
14746# Create a temporary old-style archive to link instead of a shared archive.
14747old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14748
14749# Commands used to build and install a shared archive.
14750archive_cmds=$lt_archive_cmds
14751archive_expsym_cmds=$lt_archive_expsym_cmds
14752postinstall_cmds=$lt_postinstall_cmds
14753postuninstall_cmds=$lt_postuninstall_cmds
14754
John Criswell47fdd832003-07-14 16:52:07 +000014755# Commands used to build a loadable module (assumed same as above if empty)
14756module_cmds=$lt_module_cmds
14757module_expsym_cmds=$lt_module_expsym_cmds
14758
John Criswell7a73b802003-06-30 21:59:07 +000014759# Commands to strip libraries.
14760old_striplib=$lt_old_striplib
14761striplib=$lt_striplib
14762
John Criswell47fdd832003-07-14 16:52:07 +000014763# Dependencies to place before the objects being linked to create a
14764# shared library.
14765predep_objects=$lt_predep_objects
14766
14767# Dependencies to place after the objects being linked to create a
14768# shared library.
14769postdep_objects=$lt_postdep_objects
14770
14771# Dependencies to place before the objects being linked to create a
14772# shared library.
14773predeps=$lt_predeps
14774
14775# Dependencies to place after the objects being linked to create a
14776# shared library.
14777postdeps=$lt_postdeps
14778
14779# The library search path used internally by the compiler when linking
14780# a shared library.
14781compiler_lib_search_path=$lt_compiler_lib_search_path
14782
John Criswell7a73b802003-06-30 21:59:07 +000014783# Method to check whether dependent libraries are shared objects.
14784deplibs_check_method=$lt_deplibs_check_method
14785
14786# Command to use when deplibs_check_method == file_magic.
14787file_magic_cmd=$lt_file_magic_cmd
14788
14789# Flag that allows shared libraries with undefined symbols to be built.
14790allow_undefined_flag=$lt_allow_undefined_flag
14791
14792# Flag that forces no undefined symbols.
14793no_undefined_flag=$lt_no_undefined_flag
14794
14795# Commands used to finish a libtool library installation in a directory.
14796finish_cmds=$lt_finish_cmds
14797
14798# Same as above, but a single script fragment to be evaled but not shown.
14799finish_eval=$lt_finish_eval
14800
14801# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014802global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014803
14804# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014805global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014806
14807# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014808global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014809
14810# This is the shared library runtime path variable.
14811runpath_var=$runpath_var
14812
14813# This is the shared library path variable.
14814shlibpath_var=$shlibpath_var
14815
14816# Is shlibpath searched before the hard-coded library search path?
14817shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14818
14819# How to hardcode a shared library path into an executable.
14820hardcode_action=$hardcode_action
14821
14822# Whether we should hardcode library paths into libraries.
14823hardcode_into_libs=$hardcode_into_libs
14824
14825# Flag to hardcode \$libdir into a binary during linking.
14826# This must work even if \$libdir does not exist.
14827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14828
John Criswell47fdd832003-07-14 16:52:07 +000014829# If ld is used when linking, flag to hardcode \$libdir into
14830# a binary during linking. This must work even if \$libdir does
14831# not exist.
14832hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14833
John Criswell7a73b802003-06-30 21:59:07 +000014834# Whether we need a single -rpath flag with a separated argument.
14835hardcode_libdir_separator=$lt_hardcode_libdir_separator
14836
John Criswell47fdd832003-07-14 16:52:07 +000014837# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014838# resulting binary.
14839hardcode_direct=$hardcode_direct
14840
14841# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14842# resulting binary.
14843hardcode_minus_L=$hardcode_minus_L
14844
14845# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14846# the resulting binary.
14847hardcode_shlibpath_var=$hardcode_shlibpath_var
14848
John Criswell47fdd832003-07-14 16:52:07 +000014849# Set to yes if building a shared library automatically hardcodes DIR into the library
14850# and all subsequent libraries and executables linked against it.
14851hardcode_automatic=$hardcode_automatic
14852
John Criswell7a73b802003-06-30 21:59:07 +000014853# Variables whose values should be saved in libtool wrapper scripts and
14854# restored at relink time.
14855variables_saved_for_relink="$variables_saved_for_relink"
14856
14857# Whether libtool must link a program against all its dependency libraries.
14858link_all_deplibs=$link_all_deplibs
14859
14860# Compile-time system search path for libraries
14861sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14862
14863# Run-time system search path for libraries
14864sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14865
14866# Fix the shell variable \$srcfile for the compiler.
14867fix_srcfile_path="$fix_srcfile_path"
14868
14869# Set to yes if exported symbols are required.
14870always_export_symbols=$always_export_symbols
14871
14872# The commands to list exported symbols.
14873export_symbols_cmds=$lt_export_symbols_cmds
14874
14875# The commands to extract the exported symbol list from a shared archive.
14876extract_expsyms_cmds=$lt_extract_expsyms_cmds
14877
14878# Symbols that should not be listed in the preloaded symbols.
14879exclude_expsyms=$lt_exclude_expsyms
14880
14881# Symbols that must always be exported.
14882include_expsyms=$lt_include_expsyms
14883
14884# ### END LIBTOOL CONFIG
14885
14886__EOF__
14887
John Criswell47fdd832003-07-14 16:52:07 +000014888
John Criswell7a73b802003-06-30 21:59:07 +000014889 case $host_os in
14890 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014891 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014892
14893# AIX sometimes has problems with the GCC collect2 program. For some
14894# reason, if we set the COLLECT_NAMES environment variable, the problems
14895# vanish in a puff of smoke.
14896if test "X${COLLECT_NAMES+set}" != Xset; then
14897 COLLECT_NAMES=
14898 export COLLECT_NAMES
14899fi
14900EOF
14901 ;;
14902 esac
14903
John Criswell7a73b802003-06-30 21:59:07 +000014904 # We use sed instead of cat because bash on DJGPP gets confused if
14905 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14906 # text mode, it properly converts lines to CR/LF. This bash problem
14907 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014908 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014909
John Criswell47fdd832003-07-14 16:52:07 +000014910 mv -f "$cfgfile" "$ofile" || \
14911 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014912 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014913
14914else
14915 # If there is no Makefile yet, we rely on a make rule to execute
14916 # `config.status --recheck' to rerun these tests and create the
14917 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14919 if test -f "$ltmain_in"; then
14920 test -f Makefile && make "$ltmain"
14921 fi
John Criswell7a73b802003-06-30 21:59:07 +000014922fi
John Criswell7a73b802003-06-30 21:59:07 +000014923
14924
John Criswell47fdd832003-07-14 16:52:07 +000014925ac_ext=c
14926ac_cpp='$CPP $CPPFLAGS'
14927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14929ac_compiler_gnu=$ac_cv_c_compiler_gnu
14930
14931CC="$lt_save_CC"
14932
14933
14934# Check whether --with-tags or --without-tags was given.
14935if test "${with_tags+set}" = set; then
14936 withval="$with_tags"
14937 tagnames="$withval"
14938fi;
14939
14940if test -f "$ltmain" && test -n "$tagnames"; then
14941 if test ! -f "${ofile}"; then
14942 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14943echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14944 fi
14945
14946 if test -z "$LTCC"; then
14947 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14948 if test -z "$LTCC"; then
14949 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14950echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14951 else
14952 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14953echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14954 fi
14955 fi
14956
14957 # Extract list of available tagged configurations in $ofile.
14958 # Note that this assumes the entire list is on one line.
14959 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14960
14961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14962 for tagname in $tagnames; do
14963 IFS="$lt_save_ifs"
14964 # Check whether tagname contains only valid characters
14965 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14966 "") ;;
14967 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14968echo "$as_me: error: invalid tag name: $tagname" >&2;}
14969 { (exit 1); exit 1; }; }
14970 ;;
14971 esac
14972
14973 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14974 then
14975 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14976echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14977 { (exit 1); exit 1; }; }
14978 fi
14979
14980 # Update the list of available tags.
14981 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014982 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000014983
14984 case $tagname in
14985 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014986 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14987 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14988 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000014989 ac_ext=cc
14990ac_cpp='$CXXCPP $CPPFLAGS'
14991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14994
14995
14996
14997
14998archive_cmds_need_lc_CXX=no
14999allow_undefined_flag_CXX=
15000always_export_symbols_CXX=no
15001archive_expsym_cmds_CXX=
15002export_dynamic_flag_spec_CXX=
15003hardcode_direct_CXX=no
15004hardcode_libdir_flag_spec_CXX=
15005hardcode_libdir_flag_spec_ld_CXX=
15006hardcode_libdir_separator_CXX=
15007hardcode_minus_L_CXX=no
15008hardcode_automatic_CXX=no
15009module_cmds_CXX=
15010module_expsym_cmds_CXX=
15011link_all_deplibs_CXX=unknown
15012old_archive_cmds_CXX=$old_archive_cmds
15013no_undefined_flag_CXX=
15014whole_archive_flag_spec_CXX=
15015enable_shared_with_static_runtimes_CXX=no
15016
15017# Dependencies to place before and after the object being linked:
15018predep_objects_CXX=
15019postdep_objects_CXX=
15020predeps_CXX=
15021postdeps_CXX=
15022compiler_lib_search_path_CXX=
15023
15024# Source file extension for C++ test sources.
15025ac_ext=cc
15026
15027# Object file extension for compiled C++ test sources.
15028objext=o
15029objext_CXX=$objext
15030
15031# Code to be used in simple compile tests
15032lt_simple_compile_test_code="int some_variable = 0;\n"
15033
15034# Code to be used in simple link tests
15035lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15036
15037# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15038
15039# If no C compiler was specified, use CC.
15040LTCC=${LTCC-"$CC"}
15041
15042# Allow CC to be a program name with arguments.
15043compiler=$CC
15044
15045
15046# Allow CC to be a program name with arguments.
15047lt_save_CC=$CC
15048lt_save_LD=$LD
15049lt_save_GCC=$GCC
15050GCC=$GXX
15051lt_save_with_gnu_ld=$with_gnu_ld
15052lt_save_path_LD=$lt_cv_path_LD
15053if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15054 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15055else
15056 unset lt_cv_prog_gnu_ld
15057fi
15058if test -n "${lt_cv_path_LDCXX+set}"; then
15059 lt_cv_path_LD=$lt_cv_path_LDCXX
15060else
15061 unset lt_cv_path_LD
15062fi
15063test -z "${LDCXX+set}" || LD=$LDCXX
15064CC=${CXX-"c++"}
15065compiler=$CC
15066compiler_CXX=$CC
15067cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15068
15069# We don't want -fno-exception wen compiling C++ code, so set the
15070# no_builtin_flag separately
15071if test "$GXX" = yes; then
15072 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15073else
15074 lt_prog_compiler_no_builtin_flag_CXX=
15075fi
15076
15077if test "$GXX" = yes; then
15078 # Set up default GNU C++ configuration
15079
15080
15081# Check whether --with-gnu-ld or --without-gnu-ld was given.
15082if test "${with_gnu_ld+set}" = set; then
15083 withval="$with_gnu_ld"
15084 test "$withval" = no || with_gnu_ld=yes
15085else
15086 with_gnu_ld=no
15087fi;
15088ac_prog=ld
15089if test "$GCC" = yes; then
15090 # Check if gcc -print-prog-name=ld gives a path.
15091 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15092echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15093 case $host in
15094 *-*-mingw*)
15095 # gcc leaves a trailing carriage return which upsets mingw
15096 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15097 *)
15098 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15099 esac
15100 case $ac_prog in
15101 # Accept absolute paths.
15102 [\\/]* | ?:[\\/]*)
15103 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015104 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015105 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15106 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15107 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15108 done
15109 test -z "$LD" && LD="$ac_prog"
15110 ;;
15111 "")
15112 # If it fails, then pretend we aren't using GCC.
15113 ac_prog=ld
15114 ;;
15115 *)
15116 # If it is relative, then search for the first ld in PATH.
15117 with_gnu_ld=unknown
15118 ;;
15119 esac
15120elif test "$with_gnu_ld" = yes; then
15121 echo "$as_me:$LINENO: checking for GNU ld" >&5
15122echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15123else
15124 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15125echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15126fi
15127if test "${lt_cv_path_LD+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129else
15130 if test -z "$LD"; then
15131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15132 for ac_dir in $PATH; do
15133 IFS="$lt_save_ifs"
15134 test -z "$ac_dir" && ac_dir=.
15135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15136 lt_cv_path_LD="$ac_dir/$ac_prog"
15137 # Check to see if the program is GNU ld. I'd rather use --version,
15138 # but apparently some GNU ld's only accept -v.
15139 # Break only if it was the GNU/non-GNU ld that we prefer.
15140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15141 *GNU* | *'with BFD'*)
15142 test "$with_gnu_ld" != no && break
15143 ;;
15144 *)
15145 test "$with_gnu_ld" != yes && break
15146 ;;
15147 esac
15148 fi
15149 done
15150 IFS="$lt_save_ifs"
15151else
15152 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15153fi
15154fi
15155
15156LD="$lt_cv_path_LD"
15157if test -n "$LD"; then
15158 echo "$as_me:$LINENO: result: $LD" >&5
15159echo "${ECHO_T}$LD" >&6
15160else
15161 echo "$as_me:$LINENO: result: no" >&5
15162echo "${ECHO_T}no" >&6
15163fi
15164test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15165echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15166 { (exit 1); exit 1; }; }
15167echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15168echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15169if test "${lt_cv_prog_gnu_ld+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
15172 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015173case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015174*GNU* | *'with BFD'*)
15175 lt_cv_prog_gnu_ld=yes
15176 ;;
15177*)
15178 lt_cv_prog_gnu_ld=no
15179 ;;
15180esac
15181fi
15182echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15183echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15184with_gnu_ld=$lt_cv_prog_gnu_ld
15185
15186
15187
15188 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15189 # archiving commands below assume that GNU ld is being used.
15190 if test "$with_gnu_ld" = yes; then
15191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15192 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15193
15194 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15195 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15196
15197 # If archive_cmds runs LD, not CC, wlarc should be empty
15198 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15199 # investigate it a little bit more. (MM)
15200 wlarc='${wl}'
15201
15202 # ancient GNU ld didn't support --whole-archive et. al.
15203 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15204 grep 'no-whole-archive' > /dev/null; then
15205 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15206 else
15207 whole_archive_flag_spec_CXX=
15208 fi
15209 else
15210 with_gnu_ld=no
15211 wlarc=
15212
15213 # A generic and very simple default shared library creation
15214 # command for GNU C++ for the case where it uses the native
15215 # linker, instead of GNU ld. If possible, this setting should
15216 # overridden to take advantage of the native linker features on
15217 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015218 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015219 fi
15220
15221 # Commands to make compiler produce verbose output that lists
15222 # what "hidden" libraries, object files and flags are used when
15223 # linking a shared library.
15224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15225
15226else
15227 GXX=no
15228 with_gnu_ld=no
15229 wlarc=
15230fi
15231
15232# PORTME: fill in a description of your system's C++ link characteristics
15233echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15234echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15235ld_shlibs_CXX=yes
15236case $host_os in
15237 aix3*)
15238 # FIXME: insert proper C++ library support
15239 ld_shlibs_CXX=no
15240 ;;
15241 aix4* | aix5*)
15242 if test "$host_cpu" = ia64; then
15243 # On IA64, the linker does run time linking by default, so we don't
15244 # have to do anything special.
15245 aix_use_runtimelinking=no
15246 exp_sym_flag='-Bexport'
15247 no_entry_flag=""
15248 else
15249 aix_use_runtimelinking=no
15250
15251 # Test if we are trying to use run time linking or normal
15252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15253 # need to do runtime linking.
15254 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15255 for ld_flag in $LDFLAGS; do
15256 case $ld_flag in
15257 *-brtl*)
15258 aix_use_runtimelinking=yes
15259 break
15260 ;;
15261 esac
15262 done
15263 esac
15264
15265 exp_sym_flag='-bexport'
15266 no_entry_flag='-bnoentry'
15267 fi
15268
15269 # When large executables or shared objects are built, AIX ld can
15270 # have problems creating the table of contents. If linking a library
15271 # or program results in "error TOC overflow" add -mminimal-toc to
15272 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15273 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15274
15275 archive_cmds_CXX=''
15276 hardcode_direct_CXX=yes
15277 hardcode_libdir_separator_CXX=':'
15278 link_all_deplibs_CXX=yes
15279
15280 if test "$GXX" = yes; then
15281 case $host_os in aix4.012|aix4.012.*)
15282 # We only want to do this on AIX 4.2 and lower, the check
15283 # below for broken collect2 doesn't work under 4.3+
15284 collect2name=`${CC} -print-prog-name=collect2`
15285 if test -f "$collect2name" && \
15286 strings "$collect2name" | grep resolve_lib_name >/dev/null
15287 then
15288 # We have reworked collect2
15289 hardcode_direct_CXX=yes
15290 else
15291 # We have old collect2
15292 hardcode_direct_CXX=unsupported
15293 # It fails to find uninstalled libraries when the uninstalled
15294 # path is not listed in the libpath. Setting hardcode_minus_L
15295 # to unsupported forces relinking
15296 hardcode_minus_L_CXX=yes
15297 hardcode_libdir_flag_spec_CXX='-L$libdir'
15298 hardcode_libdir_separator_CXX=
15299 fi
15300 esac
15301 shared_flag='-shared'
15302 else
15303 # not using gcc
15304 if test "$host_cpu" = ia64; then
15305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15306 # chokes on -Wl,-G. The following line is correct:
15307 shared_flag='-G'
15308 else
15309 if test "$aix_use_runtimelinking" = yes; then
15310 shared_flag='${wl}-G'
15311 else
15312 shared_flag='${wl}-bM:SRE'
15313 fi
15314 fi
15315 fi
15316
15317 # It seems that -bexpall does not export symbols beginning with
15318 # underscore (_), so it is better to generate a list of symbols to export.
15319 always_export_symbols_CXX=yes
15320 if test "$aix_use_runtimelinking" = yes; then
15321 # Warning - without using the other runtime loading flags (-brtl),
15322 # -berok will link without error, but may produce a broken library.
15323 allow_undefined_flag_CXX='-berok'
15324 # Determine the default libpath from the value encoded in an empty executable.
15325 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015326/* confdefs.h. */
15327_ACEOF
15328cat confdefs.h >>conftest.$ac_ext
15329cat >>conftest.$ac_ext <<_ACEOF
15330/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015331
John Criswell47fdd832003-07-14 16:52:07 +000015332int
15333main ()
15334{
15335
15336 ;
15337 return 0;
15338}
15339_ACEOF
15340rm -f conftest.$ac_objext conftest$ac_exeext
15341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015342 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015349 { ac_try='test -z "$ac_cxx_werror_flag"
15350 || test ! -s conftest.err'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362
15363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15364}'`
15365# Check for a 64-bit object if we didn't find anything.
15366if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15367}'`; fi
15368else
15369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015370sed 's/^/| /' conftest.$ac_ext >&5
15371
John Criswell47fdd832003-07-14 16:52:07 +000015372fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015373rm -f conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15376
15377 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15378
15379 archive_expsym_cmds_CXX="\$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"
15380 else
15381 if test "$host_cpu" = ia64; then
15382 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15383 allow_undefined_flag_CXX="-z nodefs"
15384 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15385 else
15386 # Determine the default libpath from the value encoded in an empty executable.
15387 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015388/* confdefs.h. */
15389_ACEOF
15390cat confdefs.h >>conftest.$ac_ext
15391cat >>conftest.$ac_ext <<_ACEOF
15392/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015393
John Criswell47fdd832003-07-14 16:52:07 +000015394int
15395main ()
15396{
15397
15398 ;
15399 return 0;
15400}
15401_ACEOF
15402rm -f conftest.$ac_objext conftest$ac_exeext
15403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015404 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015411 { ac_try='test -z "$ac_cxx_werror_flag"
15412 || test ! -s conftest.err'
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; } &&
15418 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424
15425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15426}'`
15427# Check for a 64-bit object if we didn't find anything.
15428if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15429}'`; fi
15430else
15431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015432sed 's/^/| /' conftest.$ac_ext >&5
15433
John Criswell47fdd832003-07-14 16:52:07 +000015434fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015435rm -f conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15438
15439 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15440 # Warning - without using the other run time loading flags,
15441 # -berok will link without error, but may produce a broken library.
15442 no_undefined_flag_CXX=' ${wl}-bernotok'
15443 allow_undefined_flag_CXX=' ${wl}-berok'
15444 # -bexpall does not export symbols beginning with underscore (_)
15445 always_export_symbols_CXX=yes
15446 # Exported symbols can be pulled into shared objects from archives
15447 whole_archive_flag_spec_CXX=' '
15448 archive_cmds_need_lc_CXX=yes
15449 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015450 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000015451 fi
15452 fi
15453 ;;
15454 chorus*)
15455 case $cc_basename in
15456 *)
15457 # FIXME: insert proper C++ library support
15458 ld_shlibs_CXX=no
15459 ;;
15460 esac
15461 ;;
15462
Reid Spencer2706f8c2004-09-19 23:53:36 +000015463
John Criswell47fdd832003-07-14 16:52:07 +000015464 cygwin* | mingw* | pw32*)
15465 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15466 # as there is no search path for DLLs.
15467 hardcode_libdir_flag_spec_CXX='-L$libdir'
15468 allow_undefined_flag_CXX=unsupported
15469 always_export_symbols_CXX=no
15470 enable_shared_with_static_runtimes_CXX=yes
15471
15472 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15473 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15474 # If the export-symbols file already is a .def file (1st line
15475 # is EXPORTS), use it as is; otherwise, prepend...
15476 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15477 cp $export_symbols $output_objdir/$soname.def;
15478 else
15479 echo EXPORTS > $output_objdir/$soname.def;
15480 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015481 fi~
15482 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000015483 else
15484 ld_shlibs_CXX=no
15485 fi
15486 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015487 darwin* | rhapsody*)
15488 case "$host_os" in
15489 rhapsody* | darwin1.[012])
15490 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15491 ;;
15492 *) # Darwin 1.3 on
15493 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15494 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15495 else
15496 case ${MACOSX_DEPLOYMENT_TARGET} in
15497 10.[012])
15498 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15499 ;;
15500 10.*)
15501 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15502 ;;
15503 esac
15504 fi
15505 ;;
15506 esac
15507 archive_cmds_need_lc_CXX=no
15508 hardcode_direct_CXX=no
15509 hardcode_automatic_CXX=yes
15510 hardcode_shlibpath_var_CXX=unsupported
15511 whole_archive_flag_spec_CXX=''
15512 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015513
Reid Spencer2706f8c2004-09-19 23:53:36 +000015514 if test "$GXX" = yes ; then
15515 lt_int_apple_cc_single_mod=no
15516 output_verbose_link_cmd='echo'
15517 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15518 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015519 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015520 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015521 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Brian Gaeke0a621332004-09-08 20:38:05 +000015522 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015523 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015524 fi
15525 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15527 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015528 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015529 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015530 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015531 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015532 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015533 else
15534 case "$cc_basename" in
15535 xlc*)
15536 output_verbose_link_cmd='echo'
15537 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15538 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15539 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000015540 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15541 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015542 ;;
15543 *)
15544 ld_shlibs_CXX=no
15545 ;;
15546 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015547 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015548 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015549
15550 dgux*)
15551 case $cc_basename in
15552 ec++)
15553 # FIXME: insert proper C++ library support
15554 ld_shlibs_CXX=no
15555 ;;
15556 ghcx)
15557 # Green Hills C++ Compiler
15558 # FIXME: insert proper C++ library support
15559 ld_shlibs_CXX=no
15560 ;;
15561 *)
15562 # FIXME: insert proper C++ library support
15563 ld_shlibs_CXX=no
15564 ;;
15565 esac
15566 ;;
15567 freebsd12*)
15568 # C++ shared libraries reported to be fairly broken before switch to ELF
15569 ld_shlibs_CXX=no
15570 ;;
15571 freebsd-elf*)
15572 archive_cmds_need_lc_CXX=no
15573 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015574 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015575 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15576 # conventions
15577 ld_shlibs_CXX=yes
15578 ;;
15579 gnu*)
15580 ;;
15581 hpux9*)
15582 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15583 hardcode_libdir_separator_CXX=:
15584 export_dynamic_flag_spec_CXX='${wl}-E'
15585 hardcode_direct_CXX=yes
15586 hardcode_minus_L_CXX=yes # Not in the search PATH,
15587 # but as the default
15588 # location of the library.
15589
15590 case $cc_basename in
15591 CC)
15592 # FIXME: insert proper C++ library support
15593 ld_shlibs_CXX=no
15594 ;;
15595 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015596 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015597 # Commands to make compiler produce verbose output that lists
15598 # what "hidden" libraries, object files and flags are used when
15599 # linking a shared library.
15600 #
15601 # There doesn't appear to be a way to prevent this compiler from
15602 # explicitly linking system object files so we need to strip them
15603 # from the output so that they don't get included in the library
15604 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015605 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
John Criswell47fdd832003-07-14 16:52:07 +000015606 ;;
15607 *)
15608 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015609 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015610 else
15611 # FIXME: insert proper C++ library support
15612 ld_shlibs_CXX=no
15613 fi
15614 ;;
15615 esac
15616 ;;
15617 hpux10*|hpux11*)
15618 if test $with_gnu_ld = no; then
15619 case "$host_cpu" in
15620 hppa*64*)
15621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15622 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15623 hardcode_libdir_separator_CXX=:
15624 ;;
15625 ia64*)
15626 hardcode_libdir_flag_spec_CXX='-L$libdir'
15627 ;;
15628 *)
15629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15630 hardcode_libdir_separator_CXX=:
15631 export_dynamic_flag_spec_CXX='${wl}-E'
15632 ;;
15633 esac
15634 fi
15635 case "$host_cpu" in
15636 hppa*64*)
15637 hardcode_direct_CXX=no
15638 hardcode_shlibpath_var_CXX=no
15639 ;;
15640 ia64*)
15641 hardcode_direct_CXX=no
15642 hardcode_shlibpath_var_CXX=no
15643 hardcode_minus_L_CXX=yes # Not in the search PATH,
15644 # but as the default
15645 # location of the library.
15646 ;;
15647 *)
15648 hardcode_direct_CXX=yes
15649 hardcode_minus_L_CXX=yes # Not in the search PATH,
15650 # but as the default
15651 # location of the library.
15652 ;;
15653 esac
15654
15655 case $cc_basename in
15656 CC)
15657 # FIXME: insert proper C++ library support
15658 ld_shlibs_CXX=no
15659 ;;
15660 aCC)
15661 case "$host_cpu" in
15662 hppa*64*|ia64*)
15663 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15664 ;;
15665 *)
15666 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15667 ;;
15668 esac
15669 # Commands to make compiler produce verbose output that lists
15670 # what "hidden" libraries, object files and flags are used when
15671 # linking a shared library.
15672 #
15673 # There doesn't appear to be a way to prevent this compiler from
15674 # explicitly linking system object files so we need to strip them
15675 # from the output so that they don't get included in the library
15676 # dependencies.
15677 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15678 ;;
15679 *)
15680 if test "$GXX" = yes; then
15681 if test $with_gnu_ld = no; then
15682 case "$host_cpu" in
15683 ia64*|hppa*64*)
15684 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15685 ;;
15686 *)
15687 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15688 ;;
15689 esac
15690 fi
15691 else
15692 # FIXME: insert proper C++ library support
15693 ld_shlibs_CXX=no
15694 fi
15695 ;;
15696 esac
15697 ;;
15698 irix5* | irix6*)
15699 case $cc_basename in
15700 CC)
15701 # SGI C++
15702 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
15703
15704 # Archives containing C++ object files must be created using
15705 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15706 # necessary to make sure instantiated templates are included
15707 # in the archive.
15708 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15709 ;;
15710 *)
15711 if test "$GXX" = yes; then
15712 if test "$with_gnu_ld" = no; then
15713 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15714 else
15715 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
15716 fi
15717 fi
15718 link_all_deplibs_CXX=yes
15719 ;;
15720 esac
15721 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15722 hardcode_libdir_separator_CXX=:
15723 ;;
15724 linux*)
15725 case $cc_basename in
15726 KCC)
15727 # Kuck and Associates, Inc. (KAI) C++ Compiler
15728
15729 # KCC will only create a shared library if the output file
15730 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15731 # to its proper name (with version) after linking.
15732 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15733 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15734 # Commands to make compiler produce verbose output that lists
15735 # what "hidden" libraries, object files and flags are used when
15736 # linking a shared library.
15737 #
15738 # There doesn't appear to be a way to prevent this compiler from
15739 # explicitly linking system object files so we need to strip them
15740 # from the output so that they don't get included in the library
15741 # dependencies.
15742 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15743
15744 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15746
15747 # Archives containing C++ object files must be created using
15748 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15749 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15750 ;;
15751 icpc)
15752 # Intel C++
15753 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015754 # version 8.0 and above of icpc choke on multiply defined symbols
15755 # if we add $predep_objects and $postdep_objects, however 7.1 and
15756 # earlier do not add the objects themselves.
15757 case `$CC -V 2>&1` in
15758 *"Version 7."*)
15759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15761 ;;
15762 *) # Version 8.0 or newer
15763 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15764 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15765 ;;
15766 esac
John Criswell47fdd832003-07-14 16:52:07 +000015767 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015768 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15770 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15771 ;;
15772 cxx)
15773 # Compaq C++
15774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15775 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15776
15777 runpath_var=LD_RUN_PATH
15778 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15779 hardcode_libdir_separator_CXX=:
15780
15781 # Commands to make compiler produce verbose output that lists
15782 # what "hidden" libraries, object files and flags are used when
15783 # linking a shared library.
15784 #
15785 # There doesn't appear to be a way to prevent this compiler from
15786 # explicitly linking system object files so we need to strip them
15787 # from the output so that they don't get included in the library
15788 # dependencies.
15789 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15790 ;;
15791 esac
15792 ;;
15793 lynxos*)
15794 # FIXME: insert proper C++ library support
15795 ld_shlibs_CXX=no
15796 ;;
15797 m88k*)
15798 # FIXME: insert proper C++ library support
15799 ld_shlibs_CXX=no
15800 ;;
15801 mvs*)
15802 case $cc_basename in
15803 cxx)
15804 # FIXME: insert proper C++ library support
15805 ld_shlibs_CXX=no
15806 ;;
15807 *)
15808 # FIXME: insert proper C++ library support
15809 ld_shlibs_CXX=no
15810 ;;
15811 esac
15812 ;;
15813 netbsd*)
15814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15815 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15816 wlarc=
15817 hardcode_libdir_flag_spec_CXX='-R$libdir'
15818 hardcode_direct_CXX=yes
15819 hardcode_shlibpath_var_CXX=no
15820 fi
15821 # Workaround some broken pre-1.5 toolchains
15822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15823 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015824 openbsd2*)
15825 # C++ shared libraries are fairly broken
15826 ld_shlibs_CXX=no
15827 ;;
15828 openbsd*)
15829 hardcode_direct_CXX=yes
15830 hardcode_shlibpath_var_CXX=no
15831 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15833 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15834 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15835 export_dynamic_flag_spec_CXX='${wl}-E'
15836 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15837 fi
15838 output_verbose_link_cmd='echo'
15839 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015840 osf3*)
15841 case $cc_basename in
15842 KCC)
15843 # Kuck and Associates, Inc. (KAI) C++ Compiler
15844
15845 # KCC will only create a shared library if the output file
15846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15847 # to its proper name (with version) after linking.
15848 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15849
15850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15851 hardcode_libdir_separator_CXX=:
15852
15853 # Archives containing C++ object files must be created using
15854 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15855 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15856
15857 ;;
15858 RCC)
15859 # Rational C++ 2.4.1
15860 # FIXME: insert proper C++ library support
15861 ld_shlibs_CXX=no
15862 ;;
15863 cxx)
15864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15865 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
15866
15867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15868 hardcode_libdir_separator_CXX=:
15869
15870 # Commands to make compiler produce verbose output that lists
15871 # what "hidden" libraries, object files and flags are used when
15872 # linking a shared library.
15873 #
15874 # There doesn't appear to be a way to prevent this compiler from
15875 # explicitly linking system object files so we need to strip them
15876 # from the output so that they don't get included in the library
15877 # dependencies.
15878 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15879 ;;
15880 *)
15881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15883 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15884
15885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15886 hardcode_libdir_separator_CXX=:
15887
15888 # Commands to make compiler produce verbose output that lists
15889 # what "hidden" libraries, object files and flags are used when
15890 # linking a shared library.
15891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15892
15893 else
15894 # FIXME: insert proper C++ library support
15895 ld_shlibs_CXX=no
15896 fi
15897 ;;
15898 esac
15899 ;;
15900 osf4* | osf5*)
15901 case $cc_basename in
15902 KCC)
15903 # Kuck and Associates, Inc. (KAI) C++ Compiler
15904
15905 # KCC will only create a shared library if the output file
15906 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15907 # to its proper name (with version) after linking.
15908 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15909
15910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15911 hardcode_libdir_separator_CXX=:
15912
15913 # Archives containing C++ object files must be created using
15914 # the KAI C++ compiler.
15915 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15916 ;;
15917 RCC)
15918 # Rational C++ 2.4.1
15919 # FIXME: insert proper C++ library support
15920 ld_shlibs_CXX=no
15921 ;;
15922 cxx)
15923 allow_undefined_flag_CXX=' -expect_unresolved \*'
15924 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000015925 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15926 echo "-hidden">> $lib.exp~
15927 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
15928 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015929
15930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15931 hardcode_libdir_separator_CXX=:
15932
15933 # Commands to make compiler produce verbose output that lists
15934 # what "hidden" libraries, object files and flags are used when
15935 # linking a shared library.
15936 #
15937 # There doesn't appear to be a way to prevent this compiler from
15938 # explicitly linking system object files so we need to strip them
15939 # from the output so that they don't get included in the library
15940 # dependencies.
15941 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15942 ;;
15943 *)
15944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15946 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15947
15948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15949 hardcode_libdir_separator_CXX=:
15950
15951 # Commands to make compiler produce verbose output that lists
15952 # what "hidden" libraries, object files and flags are used when
15953 # linking a shared library.
15954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15955
15956 else
15957 # FIXME: insert proper C++ library support
15958 ld_shlibs_CXX=no
15959 fi
15960 ;;
15961 esac
15962 ;;
15963 psos*)
15964 # FIXME: insert proper C++ library support
15965 ld_shlibs_CXX=no
15966 ;;
15967 sco*)
15968 archive_cmds_need_lc_CXX=no
15969 case $cc_basename in
15970 CC)
15971 # FIXME: insert proper C++ library support
15972 ld_shlibs_CXX=no
15973 ;;
15974 *)
15975 # FIXME: insert proper C++ library support
15976 ld_shlibs_CXX=no
15977 ;;
15978 esac
15979 ;;
15980 sunos4*)
15981 case $cc_basename in
15982 CC)
15983 # Sun C++ 4.x
15984 # FIXME: insert proper C++ library support
15985 ld_shlibs_CXX=no
15986 ;;
15987 lcc)
15988 # Lucid
15989 # FIXME: insert proper C++ library support
15990 ld_shlibs_CXX=no
15991 ;;
15992 *)
15993 # FIXME: insert proper C++ library support
15994 ld_shlibs_CXX=no
15995 ;;
15996 esac
15997 ;;
15998 solaris*)
15999 case $cc_basename in
16000 CC)
16001 # Sun C++ 4.2, 5.x and Centerline C++
16002 no_undefined_flag_CXX=' -zdefs'
16003 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016004 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16005 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016006
16007 hardcode_libdir_flag_spec_CXX='-R$libdir'
16008 hardcode_shlibpath_var_CXX=no
16009 case $host_os in
16010 solaris2.0-5 | solaris2.0-5.*) ;;
16011 *)
16012 # The C++ compiler is used as linker so we must use $wl
16013 # flag to pass the commands to the underlying system
16014 # linker.
16015 # Supported since Solaris 2.6 (maybe 2.5.1?)
16016 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16017 ;;
16018 esac
16019 link_all_deplibs_CXX=yes
16020
16021 # Commands to make compiler produce verbose output that lists
16022 # what "hidden" libraries, object files and flags are used when
16023 # linking a shared library.
16024 #
16025 # There doesn't appear to be a way to prevent this compiler from
16026 # explicitly linking system object files so we need to strip them
16027 # from the output so that they don't get included in the library
16028 # dependencies.
16029 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16030
16031 # Archives containing C++ object files must be created using
16032 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16033 # necessary to make sure instantiated templates are included
16034 # in the archive.
16035 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16036 ;;
16037 gcx)
16038 # Green Hills C++ Compiler
16039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16040
16041 # The C++ compiler must be used to create the archive.
16042 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16043 ;;
16044 *)
16045 # GNU C++ compiler with Solaris linker
16046 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16047 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16048 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016049 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000016050 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16051 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16052
John Criswell47fdd832003-07-14 16:52:07 +000016053 # Commands to make compiler produce verbose output that lists
16054 # what "hidden" libraries, object files and flags are used when
16055 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016056 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016057 else
16058 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16059 # platform.
16060 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000016061 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16062 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016063
16064 # Commands to make compiler produce verbose output that lists
16065 # what "hidden" libraries, object files and flags are used when
16066 # linking a shared library.
16067 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16068 fi
16069
16070 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16071 fi
16072 ;;
16073 esac
16074 ;;
16075 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16076 archive_cmds_need_lc_CXX=no
16077 ;;
16078 tandem*)
16079 case $cc_basename in
16080 NCC)
16081 # NonStop-UX NCC 3.20
16082 # FIXME: insert proper C++ library support
16083 ld_shlibs_CXX=no
16084 ;;
16085 *)
16086 # FIXME: insert proper C++ library support
16087 ld_shlibs_CXX=no
16088 ;;
16089 esac
16090 ;;
16091 vxworks*)
16092 # FIXME: insert proper C++ library support
16093 ld_shlibs_CXX=no
16094 ;;
16095 *)
16096 # FIXME: insert proper C++ library support
16097 ld_shlibs_CXX=no
16098 ;;
16099esac
16100echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16101echo "${ECHO_T}$ld_shlibs_CXX" >&6
16102test "$ld_shlibs_CXX" = no && can_build_shared=no
16103
16104GCC_CXX="$GXX"
16105LD_CXX="$LD"
16106
John Criswell47fdd832003-07-14 16:52:07 +000016107
16108cat > conftest.$ac_ext <<EOF
16109class Foo
16110{
16111public:
16112 Foo (void) { a = 0; }
16113private:
16114 int a;
16115};
16116EOF
16117
16118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16119 (eval $ac_compile) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; then
16123 # Parse the compiler output and extract the necessary
16124 # objects, libraries and library flags.
16125
16126 # Sentinel used to keep track of whether or not we are before
16127 # the conftest object file.
16128 pre_test_object_deps_done=no
16129
16130 # The `*' in the case matches for architectures that use `case' in
16131 # $output_verbose_cmd can trigger glob expansion during the loop
16132 # eval without this substitution.
16133 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16134
16135 for p in `eval $output_verbose_link_cmd`; do
16136 case $p in
16137
16138 -L* | -R* | -l*)
16139 # Some compilers place space between "-{L,R}" and the path.
16140 # Remove the space.
16141 if test $p = "-L" \
16142 || test $p = "-R"; then
16143 prev=$p
16144 continue
16145 else
16146 prev=
16147 fi
16148
16149 if test "$pre_test_object_deps_done" = no; then
16150 case $p in
16151 -L* | -R*)
16152 # Internal compiler library paths should come after those
16153 # provided the user. The postdeps already come after the
16154 # user supplied libs so there is no need to process them.
16155 if test -z "$compiler_lib_search_path_CXX"; then
16156 compiler_lib_search_path_CXX="${prev}${p}"
16157 else
16158 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16159 fi
16160 ;;
16161 # The "-l" case would never come before the object being
16162 # linked, so don't bother handling this case.
16163 esac
16164 else
16165 if test -z "$postdeps_CXX"; then
16166 postdeps_CXX="${prev}${p}"
16167 else
16168 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16169 fi
16170 fi
16171 ;;
16172
16173 *.$objext)
16174 # This assumes that the test object file only shows up
16175 # once in the compiler output.
16176 if test "$p" = "conftest.$objext"; then
16177 pre_test_object_deps_done=yes
16178 continue
16179 fi
16180
16181 if test "$pre_test_object_deps_done" = no; then
16182 if test -z "$predep_objects_CXX"; then
16183 predep_objects_CXX="$p"
16184 else
16185 predep_objects_CXX="$predep_objects_CXX $p"
16186 fi
16187 else
16188 if test -z "$postdep_objects_CXX"; then
16189 postdep_objects_CXX="$p"
16190 else
16191 postdep_objects_CXX="$postdep_objects_CXX $p"
16192 fi
16193 fi
16194 ;;
16195
16196 *) ;; # Ignore the rest.
16197
16198 esac
16199 done
16200
16201 # Clean up.
16202 rm -f a.out a.exe
16203else
16204 echo "libtool.m4: error: problem compiling CXX test program"
16205fi
16206
16207$rm -f confest.$objext
16208
16209case " $postdeps_CXX " in
16210*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16211esac
16212
16213lt_prog_compiler_wl_CXX=
16214lt_prog_compiler_pic_CXX=
16215lt_prog_compiler_static_CXX=
16216
16217echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16218echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16219
16220 # C++ specific cases for pic, static, wl, etc.
16221 if test "$GXX" = yes; then
16222 lt_prog_compiler_wl_CXX='-Wl,'
16223 lt_prog_compiler_static_CXX='-static'
16224
16225 case $host_os in
16226 aix*)
16227 # All AIX code is PIC.
16228 if test "$host_cpu" = ia64; then
16229 # AIX 5 now supports IA64 processor
16230 lt_prog_compiler_static_CXX='-Bstatic'
16231 fi
16232 ;;
16233 amigaos*)
16234 # FIXME: we need at least 68020 code to build shared libraries, but
16235 # adding the `-m68020' flag to GCC prevents building anything better,
16236 # like `-m68040'.
16237 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16238 ;;
16239 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16240 # PIC is the default for these OSes.
16241 ;;
16242 mingw* | os2* | pw32*)
16243 # This hack is so that the source file can tell whether it is being
16244 # built for inclusion in a dll (and should export symbols for example).
16245 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16246 ;;
16247 darwin* | rhapsody*)
16248 # PIC is the default on this platform
16249 # Common symbols not allowed in MH_DYLIB files
16250 lt_prog_compiler_pic_CXX='-fno-common'
16251 ;;
16252 *djgpp*)
16253 # DJGPP does not support shared libraries at all
16254 lt_prog_compiler_pic_CXX=
16255 ;;
16256 sysv4*MP*)
16257 if test -d /usr/nec; then
16258 lt_prog_compiler_pic_CXX=-Kconform_pic
16259 fi
16260 ;;
16261 hpux*)
16262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16263 # not for PA HP-UX.
16264 case "$host_cpu" in
16265 hppa*64*|ia64*)
16266 ;;
16267 *)
16268 lt_prog_compiler_pic_CXX='-fPIC'
16269 ;;
16270 esac
16271 ;;
16272 *)
16273 lt_prog_compiler_pic_CXX='-fPIC'
16274 ;;
16275 esac
16276 else
16277 case $host_os in
16278 aix4* | aix5*)
16279 # All AIX code is PIC.
16280 if test "$host_cpu" = ia64; then
16281 # AIX 5 now supports IA64 processor
16282 lt_prog_compiler_static_CXX='-Bstatic'
16283 else
16284 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16285 fi
16286 ;;
16287 chorus*)
16288 case $cc_basename in
16289 cxch68)
16290 # Green Hills C++ Compiler
16291 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16292 ;;
16293 esac
16294 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016295 darwin*)
16296 # PIC is the default on this platform
16297 # Common symbols not allowed in MH_DYLIB files
16298 case "$cc_basename" in
16299 xlc*)
16300 lt_prog_compiler_pic_CXX='-qnocommon'
16301 lt_prog_compiler_wl_CXX='-Wl,'
16302 ;;
16303 esac
16304 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016305 dgux*)
16306 case $cc_basename in
16307 ec++)
16308 lt_prog_compiler_pic_CXX='-KPIC'
16309 ;;
16310 ghcx)
16311 # Green Hills C++ Compiler
16312 lt_prog_compiler_pic_CXX='-pic'
16313 ;;
16314 *)
16315 ;;
16316 esac
16317 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016318 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016319 # FreeBSD uses GNU C++
16320 ;;
16321 hpux9* | hpux10* | hpux11*)
16322 case $cc_basename in
16323 CC)
16324 lt_prog_compiler_wl_CXX='-Wl,'
16325 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16326 if test "$host_cpu" != ia64; then
16327 lt_prog_compiler_pic_CXX='+Z'
16328 fi
16329 ;;
16330 aCC)
16331 lt_prog_compiler_wl_CXX='-Wl,'
16332 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16333 case "$host_cpu" in
16334 hppa*64*|ia64*)
16335 # +Z the default
16336 ;;
16337 *)
16338 lt_prog_compiler_pic_CXX='+Z'
16339 ;;
16340 esac
16341 ;;
16342 *)
16343 ;;
16344 esac
16345 ;;
16346 irix5* | irix6* | nonstopux*)
16347 case $cc_basename in
16348 CC)
16349 lt_prog_compiler_wl_CXX='-Wl,'
16350 lt_prog_compiler_static_CXX='-non_shared'
16351 # CC pic flag -KPIC is the default.
16352 ;;
16353 *)
16354 ;;
16355 esac
16356 ;;
16357 linux*)
16358 case $cc_basename in
16359 KCC)
16360 # KAI C++ Compiler
16361 lt_prog_compiler_wl_CXX='--backend -Wl,'
16362 lt_prog_compiler_pic_CXX='-fPIC'
16363 ;;
16364 icpc)
16365 # Intel C++
16366 lt_prog_compiler_wl_CXX='-Wl,'
16367 lt_prog_compiler_pic_CXX='-KPIC'
16368 lt_prog_compiler_static_CXX='-static'
16369 ;;
16370 cxx)
16371 # Compaq C++
16372 # Make sure the PIC flag is empty. It appears that all Alpha
16373 # Linux and Compaq Tru64 Unix objects are PIC.
16374 lt_prog_compiler_pic_CXX=
16375 lt_prog_compiler_static_CXX='-non_shared'
16376 ;;
16377 *)
16378 ;;
16379 esac
16380 ;;
16381 lynxos*)
16382 ;;
16383 m88k*)
16384 ;;
16385 mvs*)
16386 case $cc_basename in
16387 cxx)
16388 lt_prog_compiler_pic_CXX='-W c,exportall'
16389 ;;
16390 *)
16391 ;;
16392 esac
16393 ;;
16394 netbsd*)
16395 ;;
16396 osf3* | osf4* | osf5*)
16397 case $cc_basename in
16398 KCC)
16399 lt_prog_compiler_wl_CXX='--backend -Wl,'
16400 ;;
16401 RCC)
16402 # Rational C++ 2.4.1
16403 lt_prog_compiler_pic_CXX='-pic'
16404 ;;
16405 cxx)
16406 # Digital/Compaq C++
16407 lt_prog_compiler_wl_CXX='-Wl,'
16408 # Make sure the PIC flag is empty. It appears that all Alpha
16409 # Linux and Compaq Tru64 Unix objects are PIC.
16410 lt_prog_compiler_pic_CXX=
16411 lt_prog_compiler_static_CXX='-non_shared'
16412 ;;
16413 *)
16414 ;;
16415 esac
16416 ;;
16417 psos*)
16418 ;;
16419 sco*)
16420 case $cc_basename in
16421 CC)
16422 lt_prog_compiler_pic_CXX='-fPIC'
16423 ;;
16424 *)
16425 ;;
16426 esac
16427 ;;
16428 solaris*)
16429 case $cc_basename in
16430 CC)
16431 # Sun C++ 4.2, 5.x and Centerline C++
16432 lt_prog_compiler_pic_CXX='-KPIC'
16433 lt_prog_compiler_static_CXX='-Bstatic'
16434 lt_prog_compiler_wl_CXX='-Qoption ld '
16435 ;;
16436 gcx)
16437 # Green Hills C++ Compiler
16438 lt_prog_compiler_pic_CXX='-PIC'
16439 ;;
16440 *)
16441 ;;
16442 esac
16443 ;;
16444 sunos4*)
16445 case $cc_basename in
16446 CC)
16447 # Sun C++ 4.x
16448 lt_prog_compiler_pic_CXX='-pic'
16449 lt_prog_compiler_static_CXX='-Bstatic'
16450 ;;
16451 lcc)
16452 # Lucid
16453 lt_prog_compiler_pic_CXX='-pic'
16454 ;;
16455 *)
16456 ;;
16457 esac
16458 ;;
16459 tandem*)
16460 case $cc_basename in
16461 NCC)
16462 # NonStop-UX NCC 3.20
16463 lt_prog_compiler_pic_CXX='-KPIC'
16464 ;;
16465 *)
16466 ;;
16467 esac
16468 ;;
16469 unixware*)
16470 ;;
16471 vxworks*)
16472 ;;
16473 *)
16474 lt_prog_compiler_can_build_shared_CXX=no
16475 ;;
16476 esac
16477 fi
16478
16479echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16480echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16481
16482#
16483# Check to make sure the PIC flag actually works.
16484#
16485if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016486
16487echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016488echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16489if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16491else
16492 lt_prog_compiler_pic_works_CXX=no
16493 ac_outfile=conftest.$ac_objext
16494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16495 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16496 # Insert the option either (1) after the last *FLAGS variable, or
16497 # (2) before a word containing "conftest.", or (3) at the end.
16498 # Note that $ac_compile itself does not contain backslashes and begins
16499 # with a dollar sign (not a hyphen), so the echo should work correctly.
16500 # The option is referenced via a variable to avoid confusing sed.
16501 lt_compile=`echo "$ac_compile" | $SED \
16502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16504 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000016505 (eval echo "\"\$as_me:16505: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016506 (eval "$lt_compile" 2>conftest.err)
16507 ac_status=$?
16508 cat conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000016509 echo "$as_me:16509: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016510 if (exit $ac_status) && test -s "$ac_outfile"; then
16511 # The compiler can only warn and ignore the option if not recognized
16512 # So say no if there are warnings
16513 if test ! -s conftest.err; then
16514 lt_prog_compiler_pic_works_CXX=yes
16515 fi
16516 fi
16517 $rm conftest*
16518
16519fi
16520echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16521echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16522
16523if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16524 case $lt_prog_compiler_pic_CXX in
16525 "" | " "*) ;;
16526 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16527 esac
16528else
16529 lt_prog_compiler_pic_CXX=
16530 lt_prog_compiler_can_build_shared_CXX=no
16531fi
16532
16533fi
16534case "$host_os" in
16535 # For platforms which do not support PIC, -DPIC is meaningless:
16536 *djgpp*)
16537 lt_prog_compiler_pic_CXX=
16538 ;;
16539 *)
16540 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16541 ;;
16542esac
16543
16544echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16545echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16546if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548else
16549 lt_cv_prog_compiler_c_o_CXX=no
16550 $rm -r conftest 2>/dev/null
16551 mkdir conftest
16552 cd conftest
16553 mkdir out
16554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16555
John Criswell47fdd832003-07-14 16:52:07 +000016556 lt_compiler_flag="-o out/conftest2.$ac_objext"
16557 # Insert the option either (1) after the last *FLAGS variable, or
16558 # (2) before a word containing "conftest.", or (3) at the end.
16559 # Note that $ac_compile itself does not contain backslashes and begins
16560 # with a dollar sign (not a hyphen), so the echo should work correctly.
16561 lt_compile=`echo "$ac_compile" | $SED \
16562 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16564 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000016565 (eval echo "\"\$as_me:16565: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016566 (eval "$lt_compile" 2>out/conftest.err)
16567 ac_status=$?
16568 cat out/conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000016569 echo "$as_me:16569: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16571 then
16572 # The compiler can only warn and ignore the option if not recognized
16573 # So say no if there are warnings
16574 if test ! -s out/conftest.err; then
16575 lt_cv_prog_compiler_c_o_CXX=yes
16576 fi
16577 fi
16578 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016579 $rm conftest*
16580 # SGI C++ compiler will create directory out/ii_files/ for
16581 # template instantiation
16582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16583 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016584 cd ..
16585 rmdir conftest
16586 $rm conftest*
16587
16588fi
16589echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16590echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16591
16592
16593hard_links="nottested"
16594if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16595 # do not overwrite the value of need_locks provided by the user
16596 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16597echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16598 hard_links=yes
16599 $rm conftest*
16600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601 touch conftest.a
16602 ln conftest.a conftest.b 2>&5 || hard_links=no
16603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16604 echo "$as_me:$LINENO: result: $hard_links" >&5
16605echo "${ECHO_T}$hard_links" >&6
16606 if test "$hard_links" = no; then
16607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16608echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16609 need_locks=warn
16610 fi
16611else
16612 need_locks=no
16613fi
16614
16615echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16616echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16617
16618 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16619 case $host_os in
16620 aix4* | aix5*)
16621 # If we're using GNU nm, then we don't want the "-C" option.
16622 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16623 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16624 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16625 else
16626 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16627 fi
16628 ;;
16629 pw32*)
16630 export_symbols_cmds_CXX="$ltdll_cmds"
16631 ;;
16632 cygwin* | mingw*)
16633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16634 ;;
16635 *)
16636 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16637 ;;
16638 esac
16639
16640echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16641echo "${ECHO_T}$ld_shlibs_CXX" >&6
16642test "$ld_shlibs_CXX" = no && can_build_shared=no
16643
16644variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16645if test "$GCC" = yes; then
16646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16647fi
16648
16649#
16650# Do we need to explicitly link libc?
16651#
16652case "x$archive_cmds_need_lc_CXX" in
16653x|xyes)
16654 # Assume -lc should be added
16655 archive_cmds_need_lc_CXX=yes
16656
16657 if test "$enable_shared" = yes && test "$GCC" = yes; then
16658 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016659 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016660 # FIXME: we may have to deal with multi-command sequences.
16661 ;;
16662 '$CC '*)
16663 # Test whether the compiler implicitly links with -lc since on some
16664 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16665 # to ld, don't add -lc before -lgcc.
16666 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16667echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16668 $rm conftest*
16669 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16670
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672 (eval $ac_compile) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } 2>conftest.err; then
16676 soname=conftest
16677 lib=conftest
16678 libobjs=conftest.$ac_objext
16679 deplibs=
16680 wl=$lt_prog_compiler_wl_CXX
16681 compiler_flags=-v
16682 linker_flags=-v
16683 verstring=
16684 output_objdir=.
16685 libname=conftest
16686 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16687 allow_undefined_flag_CXX=
16688 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16689 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }
16693 then
16694 archive_cmds_need_lc_CXX=no
16695 else
16696 archive_cmds_need_lc_CXX=yes
16697 fi
16698 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16699 else
16700 cat conftest.err 1>&5
16701 fi
16702 $rm conftest*
16703 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16704echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16705 ;;
16706 esac
16707 fi
16708 ;;
16709esac
16710
John Criswell47fdd832003-07-14 16:52:07 +000016711echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16712echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16713library_names_spec=
16714libname_spec='lib$name'
16715soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016716shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016717postinstall_cmds=
16718postuninstall_cmds=
16719finish_cmds=
16720finish_eval=
16721shlibpath_var=
16722shlibpath_overrides_runpath=unknown
16723version_type=none
16724dynamic_linker="$host_os ld.so"
16725sys_lib_dlsearch_path_spec="/lib /usr/lib"
16726if test "$GCC" = yes; then
16727 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16728 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16729 # if the path contains ";" then we assume it to be the separator
16730 # otherwise default to the standard path separator (i.e. ":") - it is
16731 # assumed that no part of a normal pathname contains ";" but that should
16732 # okay in the real world where ";" in dirpaths is itself problematic.
16733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16734 else
16735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16736 fi
16737else
16738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16739fi
16740need_lib_prefix=unknown
16741hardcode_into_libs=no
16742
16743# when you set need_version to no, make sure it does not cause -set_version
16744# flags to be left without arguments
16745need_version=unknown
16746
16747case $host_os in
16748aix3*)
16749 version_type=linux
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16751 shlibpath_var=LIBPATH
16752
16753 # AIX 3 has no versioning support, so we append a major version to the name.
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 ;;
16756
16757aix4* | aix5*)
16758 version_type=linux
16759 need_lib_prefix=no
16760 need_version=no
16761 hardcode_into_libs=yes
16762 if test "$host_cpu" = ia64; then
16763 # AIX 5 supports IA64
16764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16765 shlibpath_var=LD_LIBRARY_PATH
16766 else
16767 # With GCC up to 2.95.x, collect2 would create an import file
16768 # for dependence libraries. The import file would start with
16769 # the line `#! .'. This would cause the generated library to
16770 # depend on `.', always an invalid library. This was fixed in
16771 # development snapshots of GCC prior to 3.0.
16772 case $host_os in
16773 aix4 | aix4.[01] | aix4.[01].*)
16774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16775 echo ' yes '
16776 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16777 :
16778 else
16779 can_build_shared=no
16780 fi
16781 ;;
16782 esac
16783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16784 # soname into executable. Probably we can add versioning support to
16785 # collect2, so additional links can be useful in future.
16786 if test "$aix_use_runtimelinking" = yes; then
16787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16788 # instead of lib<name>.a to let people know that these are not
16789 # typical AIX shared libraries.
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791 else
16792 # We preserve .a as extension for shared libraries through AIX4.2
16793 # and later when we are not doing run time linking.
16794 library_names_spec='${libname}${release}.a $libname.a'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 fi
16797 shlibpath_var=LIBPATH
16798 fi
16799 ;;
16800
16801amigaos*)
16802 library_names_spec='$libname.ixlibrary $libname.a'
16803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016804 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'
John Criswell47fdd832003-07-14 16:52:07 +000016805 ;;
16806
16807beos*)
16808 library_names_spec='${libname}${shared_ext}'
16809 dynamic_linker="$host_os ld.so"
16810 shlibpath_var=LIBRARY_PATH
16811 ;;
16812
Reid Spencer2706f8c2004-09-19 23:53:36 +000016813bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016814 version_type=linux
16815 need_version=no
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817 soname_spec='${libname}${release}${shared_ext}$major'
16818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16822 # the default ld.so.conf also contains /usr/contrib/lib and
16823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16824 # libtool to hard-code these into programs
16825 ;;
16826
16827cygwin* | mingw* | pw32*)
16828 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016829 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016830 need_version=no
16831 need_lib_prefix=no
16832
16833 case $GCC,$host_os in
16834 yes,cygwin* | yes,mingw* | yes,pw32*)
16835 library_names_spec='$libname.dll.a'
16836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016837 postinstall_cmds='base_file=`basename \${file}`~
16838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16839 dldir=$destdir/`dirname \$dlpath`~
16840 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016841 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16843 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016844 $rm \$dlpath'
16845 shlibpath_overrides_runpath=yes
16846
16847 case $host_os in
16848 cygwin*)
16849 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16850 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016851 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016852 ;;
16853 mingw*)
16854 # MinGW DLLs use traditional 'lib' prefix
16855 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16856 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16857 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16858 # It is most probably a Windows format PATH printed by
16859 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16860 # path with ; separators, and with drive letters. We can handle the
16861 # drive letters (cygwin fileutils understands them), so leave them,
16862 # especially as we might pass files found there to a mingw objdump,
16863 # which wouldn't understand a cygwinified path. Ahh.
16864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16865 else
16866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16867 fi
16868 ;;
16869 pw32*)
16870 # pw32 DLLs use 'pw' prefix rather than 'lib'
16871 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16872 ;;
16873 esac
16874 ;;
16875
16876 *)
16877 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16878 ;;
16879 esac
16880 dynamic_linker='Win32 ld.exe'
16881 # FIXME: first we should search . and the directory the executable is in
16882 shlibpath_var=PATH
16883 ;;
16884
16885darwin* | rhapsody*)
16886 dynamic_linker="$host_os dyld"
16887 version_type=darwin
16888 need_lib_prefix=no
16889 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016890 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016891 soname_spec='${libname}${release}${major}$shared_ext'
16892 shlibpath_overrides_runpath=yes
16893 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016894 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016895 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896 if test "$GCC" = yes; then
16897 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16898 else
16899 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016900 fi
16901 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16902 ;;
16903
16904dgux*)
16905 version_type=linux
16906 need_lib_prefix=no
16907 need_version=no
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 ;;
16912
16913freebsd1*)
16914 dynamic_linker=no
16915 ;;
16916
Reid Spencer2706f8c2004-09-19 23:53:36 +000016917kfreebsd*-gnu)
16918 version_type=linux
16919 need_lib_prefix=no
16920 need_version=no
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 shlibpath_overrides_runpath=no
16925 hardcode_into_libs=yes
16926 dynamic_linker='GNU ld.so'
16927 ;;
16928
John Criswell47fdd832003-07-14 16:52:07 +000016929freebsd*)
16930 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16931 version_type=freebsd-$objformat
16932 case $version_type in
16933 freebsd-elf*)
16934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16935 need_version=no
16936 need_lib_prefix=no
16937 ;;
16938 freebsd-*)
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16940 need_version=yes
16941 ;;
16942 esac
16943 shlibpath_var=LD_LIBRARY_PATH
16944 case $host_os in
16945 freebsd2*)
16946 shlibpath_overrides_runpath=yes
16947 ;;
16948 freebsd3.01* | freebsdelf3.01*)
16949 shlibpath_overrides_runpath=yes
16950 hardcode_into_libs=yes
16951 ;;
16952 *) # from 3.2 on
16953 shlibpath_overrides_runpath=no
16954 hardcode_into_libs=yes
16955 ;;
16956 esac
16957 ;;
16958
16959gnu*)
16960 version_type=linux
16961 need_lib_prefix=no
16962 need_version=no
16963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16964 soname_spec='${libname}${release}${shared_ext}$major'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 hardcode_into_libs=yes
16967 ;;
16968
16969hpux9* | hpux10* | hpux11*)
16970 # Give a soname corresponding to the major version so that dld.sl refuses to
16971 # link against other versions.
16972 version_type=sunos
16973 need_lib_prefix=no
16974 need_version=no
16975 case "$host_cpu" in
16976 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016977 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016978 hardcode_into_libs=yes
16979 dynamic_linker="$host_os dld.so"
16980 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 if test "X$HPUX_IA64_MODE" = X32; then
16985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16986 else
16987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16988 fi
16989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16990 ;;
16991 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016992 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016993 hardcode_into_libs=yes
16994 dynamic_linker="$host_os dld.sl"
16995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 soname_spec='${libname}${release}${shared_ext}$major'
16999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17001 ;;
17002 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017003 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017004 dynamic_linker="$host_os dld.sl"
17005 shlibpath_var=SHLIB_PATH
17006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17008 soname_spec='${libname}${release}${shared_ext}$major'
17009 ;;
17010 esac
17011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17012 postinstall_cmds='chmod 555 $lib'
17013 ;;
17014
17015irix5* | irix6* | nonstopux*)
17016 case $host_os in
17017 nonstopux*) version_type=nonstopux ;;
17018 *)
17019 if test "$lt_cv_prog_gnu_ld" = yes; then
17020 version_type=linux
17021 else
17022 version_type=irix
17023 fi ;;
17024 esac
17025 need_lib_prefix=no
17026 need_version=no
17027 soname_spec='${libname}${release}${shared_ext}$major'
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17029 case $host_os in
17030 irix5* | nonstopux*)
17031 libsuff= shlibsuff=
17032 ;;
17033 *)
17034 case $LD in # libtool.m4 will add one of these switches to LD
17035 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17036 libsuff= shlibsuff= libmagic=32-bit;;
17037 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17038 libsuff=32 shlibsuff=N32 libmagic=N32;;
17039 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17040 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17041 *) libsuff= shlibsuff= libmagic=never-match;;
17042 esac
17043 ;;
17044 esac
17045 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17046 shlibpath_overrides_runpath=no
17047 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17048 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17049 hardcode_into_libs=yes
17050 ;;
17051
17052# No shared lib support for Linux oldld, aout, or coff.
17053linux*oldld* | linux*aout* | linux*coff*)
17054 dynamic_linker=no
17055 ;;
17056
17057# This must be Linux ELF.
17058linux*)
17059 version_type=linux
17060 need_lib_prefix=no
17061 need_version=no
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17065 shlibpath_var=LD_LIBRARY_PATH
17066 shlibpath_overrides_runpath=no
17067 # This implies no fast_install, which is unacceptable.
17068 # Some rework will be needed to allow for fast_install
17069 # before this can be enabled.
17070 hardcode_into_libs=yes
17071
Reid Spencer2706f8c2004-09-19 23:53:36 +000017072 # Append ld.so.conf contents to the search path
17073 if test -f /etc/ld.so.conf; then
17074 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17075 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17076 fi
17077
John Criswell47fdd832003-07-14 16:52:07 +000017078 # We used to test for /lib/ld.so.1 and disable shared libraries on
17079 # powerpc, because MkLinux only supported shared libraries with the
17080 # GNU dynamic linker. Since this was broken with cross compilers,
17081 # most powerpc-linux boxes support dynamic linking these days and
17082 # people can always --disable-shared, the test was removed, and we
17083 # assume the GNU/Linux dynamic linker is in use.
17084 dynamic_linker='GNU/Linux ld.so'
17085 ;;
17086
Reid Spencer2706f8c2004-09-19 23:53:36 +000017087knetbsd*-gnu)
17088 version_type=linux
17089 need_lib_prefix=no
17090 need_version=no
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath=no
17095 hardcode_into_libs=yes
17096 dynamic_linker='GNU ld.so'
17097 ;;
17098
John Criswell47fdd832003-07-14 16:52:07 +000017099netbsd*)
17100 version_type=sunos
17101 need_lib_prefix=no
17102 need_version=no
17103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17106 dynamic_linker='NetBSD (a.out) ld.so'
17107 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017109 soname_spec='${libname}${release}${shared_ext}$major'
17110 dynamic_linker='NetBSD ld.elf_so'
17111 fi
17112 shlibpath_var=LD_LIBRARY_PATH
17113 shlibpath_overrides_runpath=yes
17114 hardcode_into_libs=yes
17115 ;;
17116
17117newsos6)
17118 version_type=linux
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 shlibpath_overrides_runpath=yes
17122 ;;
17123
Reid Spencer2706f8c2004-09-19 23:53:36 +000017124nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017125 version_type=linux
17126 need_lib_prefix=no
17127 need_version=no
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 shlibpath_var=LD_LIBRARY_PATH
17131 shlibpath_overrides_runpath=yes
17132 ;;
17133
17134openbsd*)
17135 version_type=sunos
17136 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017137 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17142 case $host_os in
17143 openbsd2.[89] | openbsd2.[89].*)
17144 shlibpath_overrides_runpath=no
17145 ;;
17146 *)
17147 shlibpath_overrides_runpath=yes
17148 ;;
17149 esac
17150 else
17151 shlibpath_overrides_runpath=yes
17152 fi
17153 ;;
17154
17155os2*)
17156 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017157 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017158 need_lib_prefix=no
17159 library_names_spec='$libname${shared_ext} $libname.a'
17160 dynamic_linker='OS/2 ld.exe'
17161 shlibpath_var=LIBPATH
17162 ;;
17163
17164osf3* | osf4* | osf5*)
17165 version_type=osf
17166 need_lib_prefix=no
17167 need_version=no
17168 soname_spec='${libname}${release}${shared_ext}$major'
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 shlibpath_var=LD_LIBRARY_PATH
17171 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17172 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17173 ;;
17174
17175sco3.2v5*)
17176 version_type=osf
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 ;;
17181
17182solaris*)
17183 version_type=linux
17184 need_lib_prefix=no
17185 need_version=no
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 soname_spec='${libname}${release}${shared_ext}$major'
17188 shlibpath_var=LD_LIBRARY_PATH
17189 shlibpath_overrides_runpath=yes
17190 hardcode_into_libs=yes
17191 # ldd complains unless libraries are executable
17192 postinstall_cmds='chmod +x $lib'
17193 ;;
17194
17195sunos4*)
17196 version_type=sunos
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17198 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17199 shlibpath_var=LD_LIBRARY_PATH
17200 shlibpath_overrides_runpath=yes
17201 if test "$with_gnu_ld" = yes; then
17202 need_lib_prefix=no
17203 fi
17204 need_version=yes
17205 ;;
17206
17207sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17208 version_type=linux
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 case $host_vendor in
17213 sni)
17214 shlibpath_overrides_runpath=no
17215 need_lib_prefix=no
17216 export_dynamic_flag_spec='${wl}-Blargedynsym'
17217 runpath_var=LD_RUN_PATH
17218 ;;
17219 siemens)
17220 need_lib_prefix=no
17221 ;;
17222 motorola)
17223 need_lib_prefix=no
17224 need_version=no
17225 shlibpath_overrides_runpath=no
17226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17227 ;;
17228 esac
17229 ;;
17230
17231sysv4*MP*)
17232 if test -d /usr/nec ;then
17233 version_type=linux
17234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17235 soname_spec='$libname${shared_ext}.$major'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 fi
17238 ;;
17239
17240uts4*)
17241 version_type=linux
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 ;;
17246
17247*)
17248 dynamic_linker=no
17249 ;;
17250esac
17251echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17252echo "${ECHO_T}$dynamic_linker" >&6
17253test "$dynamic_linker" = no && can_build_shared=no
17254
Reid Spencer2706f8c2004-09-19 23:53:36 +000017255echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17256echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17257hardcode_action_CXX=
17258if test -n "$hardcode_libdir_flag_spec_CXX" || \
17259 test -n "$runpath_var_CXX" || \
17260 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17261
17262 # We can hardcode non-existant directories.
17263 if test "$hardcode_direct_CXX" != no &&
17264 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17265 # have to relink, otherwise we might link with an installed library
17266 # when we should be linking with a yet-to-be-installed one
17267 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17268 test "$hardcode_minus_L_CXX" != no; then
17269 # Linking always hardcodes the temporary library directory.
17270 hardcode_action_CXX=relink
17271 else
17272 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17273 hardcode_action_CXX=immediate
17274 fi
17275else
17276 # We cannot hardcode anything, or else we can only hardcode existing
17277 # directories.
17278 hardcode_action_CXX=unsupported
17279fi
17280echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17281echo "${ECHO_T}$hardcode_action_CXX" >&6
17282
17283if test "$hardcode_action_CXX" = relink; then
17284 # Fast installation is not supported
17285 enable_fast_install=no
17286elif test "$shlibpath_overrides_runpath" = yes ||
17287 test "$enable_shared" = no; then
17288 # Fast installation is not necessary
17289 enable_fast_install=needless
17290fi
17291
17292striplib=
17293old_striplib=
17294echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17295echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17296if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17297 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17298 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17299 echo "$as_me:$LINENO: result: yes" >&5
17300echo "${ECHO_T}yes" >&6
17301else
17302# FIXME - insert some real tests, host_os isn't really good enough
17303 case $host_os in
17304 darwin*)
17305 if test -n "$STRIP" ; then
17306 striplib="$STRIP -x"
17307 echo "$as_me:$LINENO: result: yes" >&5
17308echo "${ECHO_T}yes" >&6
17309 else
17310 echo "$as_me:$LINENO: result: no" >&5
17311echo "${ECHO_T}no" >&6
17312fi
17313 ;;
17314 *)
17315 echo "$as_me:$LINENO: result: no" >&5
17316echo "${ECHO_T}no" >&6
17317 ;;
17318 esac
17319fi
17320
John Criswell47fdd832003-07-14 16:52:07 +000017321if test "x$enable_dlopen" != xyes; then
17322 enable_dlopen=unknown
17323 enable_dlopen_self=unknown
17324 enable_dlopen_self_static=unknown
17325else
17326 lt_cv_dlopen=no
17327 lt_cv_dlopen_libs=
17328
17329 case $host_os in
17330 beos*)
17331 lt_cv_dlopen="load_add_on"
17332 lt_cv_dlopen_libs=
17333 lt_cv_dlopen_self=yes
17334 ;;
17335
17336 mingw* | pw32*)
17337 lt_cv_dlopen="LoadLibrary"
17338 lt_cv_dlopen_libs=
17339 ;;
17340
17341 cygwin*)
17342 lt_cv_dlopen="dlopen"
17343 lt_cv_dlopen_libs=
17344 ;;
17345
17346 darwin*)
17347 # if libdl is installed we need to link against it
17348 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17349echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17350if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352else
17353 ac_check_lib_save_LIBS=$LIBS
17354LIBS="-ldl $LIBS"
17355cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017356/* confdefs.h. */
17357_ACEOF
17358cat confdefs.h >>conftest.$ac_ext
17359cat >>conftest.$ac_ext <<_ACEOF
17360/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017361
17362/* Override any gcc2 internal prototype to avoid an error. */
17363#ifdef __cplusplus
17364extern "C"
17365#endif
17366/* We use char because int might match the return type of a gcc2
17367 builtin and then its argument prototype would still apply. */
17368char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017369int
17370main ()
17371{
17372dlopen ();
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377rm -f conftest.$ac_objext conftest$ac_exeext
17378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017379 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017380 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017386 { ac_try='test -z "$ac_cxx_werror_flag"
17387 || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_dl_dlopen=yes
17400else
17401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017402sed 's/^/| /' conftest.$ac_ext >&5
17403
John Criswell47fdd832003-07-14 16:52:07 +000017404ac_cv_lib_dl_dlopen=no
17405fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017406rm -f conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017408LIBS=$ac_check_lib_save_LIBS
17409fi
17410echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17411echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17412if test $ac_cv_lib_dl_dlopen = yes; then
17413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17414else
17415
17416 lt_cv_dlopen="dyld"
17417 lt_cv_dlopen_libs=
17418 lt_cv_dlopen_self=yes
17419
17420fi
17421
17422 ;;
17423
17424 *)
17425 echo "$as_me:$LINENO: checking for shl_load" >&5
17426echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17427if test "${ac_cv_func_shl_load+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429else
17430 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017431/* confdefs.h. */
17432_ACEOF
17433cat confdefs.h >>conftest.$ac_ext
17434cat >>conftest.$ac_ext <<_ACEOF
17435/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017436/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17438#define shl_load innocuous_shl_load
17439
John Criswell47fdd832003-07-14 16:52:07 +000017440/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017441 which can conflict with char shl_load (); below.
17442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017444
John Criswell0c38eaf2003-09-10 15:17:25 +000017445#ifdef __STDC__
17446# include <limits.h>
17447#else
17448# include <assert.h>
17449#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017450
17451#undef shl_load
17452
John Criswell47fdd832003-07-14 16:52:07 +000017453/* Override any gcc2 internal prototype to avoid an error. */
17454#ifdef __cplusplus
17455extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017456{
John Criswell47fdd832003-07-14 16:52:07 +000017457#endif
17458/* We use char because int might match the return type of a gcc2
17459 builtin and then its argument prototype would still apply. */
17460char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017461/* The GNU C library defines this for functions which it implements
17462 to always fail with ENOSYS. Some functions are actually named
17463 something starting with __ and the normal name is an alias. */
17464#if defined (__stub_shl_load) || defined (__stub___shl_load)
17465choke me
17466#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017467char (*f) () = shl_load;
17468#endif
17469#ifdef __cplusplus
17470}
John Criswell47fdd832003-07-14 16:52:07 +000017471#endif
17472
John Criswell0c38eaf2003-09-10 15:17:25 +000017473int
17474main ()
17475{
17476return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017477 ;
17478 return 0;
17479}
17480_ACEOF
17481rm -f conftest.$ac_objext conftest$ac_exeext
17482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017483 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017484 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017490 { ac_try='test -z "$ac_cxx_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_cv_func_shl_load=yes
17504else
17505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017506sed 's/^/| /' conftest.$ac_ext >&5
17507
John Criswell47fdd832003-07-14 16:52:07 +000017508ac_cv_func_shl_load=no
17509fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017510rm -f conftest.err conftest.$ac_objext \
17511 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017512fi
17513echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17514echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17515if test $ac_cv_func_shl_load = yes; then
17516 lt_cv_dlopen="shl_load"
17517else
17518 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17519echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17520if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523 ac_check_lib_save_LIBS=$LIBS
17524LIBS="-ldld $LIBS"
17525cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017531
17532/* Override any gcc2 internal prototype to avoid an error. */
17533#ifdef __cplusplus
17534extern "C"
17535#endif
17536/* We use char because int might match the return type of a gcc2
17537 builtin and then its argument prototype would still apply. */
17538char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017539int
17540main ()
17541{
17542shl_load ();
17543 ;
17544 return 0;
17545}
17546_ACEOF
17547rm -f conftest.$ac_objext conftest$ac_exeext
17548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017549 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017550 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017556 { ac_try='test -z "$ac_cxx_werror_flag"
17557 || test ! -s conftest.err'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; } &&
17563 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; }; then
17569 ac_cv_lib_dld_shl_load=yes
17570else
17571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017572sed 's/^/| /' conftest.$ac_ext >&5
17573
John Criswell47fdd832003-07-14 16:52:07 +000017574ac_cv_lib_dld_shl_load=no
17575fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017576rm -f conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017578LIBS=$ac_check_lib_save_LIBS
17579fi
17580echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17581echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17582if test $ac_cv_lib_dld_shl_load = yes; then
17583 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17584else
17585 echo "$as_me:$LINENO: checking for dlopen" >&5
17586echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17587if test "${ac_cv_func_dlopen+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589else
17590 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017591/* confdefs.h. */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017596/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17598#define dlopen innocuous_dlopen
17599
John Criswell47fdd832003-07-14 16:52:07 +000017600/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017601 which can conflict with char dlopen (); below.
17602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017604
John Criswell0c38eaf2003-09-10 15:17:25 +000017605#ifdef __STDC__
17606# include <limits.h>
17607#else
17608# include <assert.h>
17609#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017610
17611#undef dlopen
17612
John Criswell47fdd832003-07-14 16:52:07 +000017613/* Override any gcc2 internal prototype to avoid an error. */
17614#ifdef __cplusplus
17615extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017616{
John Criswell47fdd832003-07-14 16:52:07 +000017617#endif
17618/* We use char because int might match the return type of a gcc2
17619 builtin and then its argument prototype would still apply. */
17620char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017621/* The GNU C library defines this for functions which it implements
17622 to always fail with ENOSYS. Some functions are actually named
17623 something starting with __ and the normal name is an alias. */
17624#if defined (__stub_dlopen) || defined (__stub___dlopen)
17625choke me
17626#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017627char (*f) () = dlopen;
17628#endif
17629#ifdef __cplusplus
17630}
John Criswell47fdd832003-07-14 16:52:07 +000017631#endif
17632
John Criswell0c38eaf2003-09-10 15:17:25 +000017633int
17634main ()
17635{
17636return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017637 ;
17638 return 0;
17639}
17640_ACEOF
17641rm -f conftest.$ac_objext conftest$ac_exeext
17642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017643 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017644 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017650 { ac_try='test -z "$ac_cxx_werror_flag"
17651 || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_func_dlopen=yes
17664else
17665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017666sed 's/^/| /' conftest.$ac_ext >&5
17667
John Criswell47fdd832003-07-14 16:52:07 +000017668ac_cv_func_dlopen=no
17669fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017670rm -f conftest.err conftest.$ac_objext \
17671 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017672fi
17673echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17674echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17675if test $ac_cv_func_dlopen = yes; then
17676 lt_cv_dlopen="dlopen"
17677else
17678 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17679echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17680if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 ac_check_lib_save_LIBS=$LIBS
17684LIBS="-ldl $LIBS"
17685cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017686/* confdefs.h. */
17687_ACEOF
17688cat confdefs.h >>conftest.$ac_ext
17689cat >>conftest.$ac_ext <<_ACEOF
17690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017691
17692/* Override any gcc2 internal prototype to avoid an error. */
17693#ifdef __cplusplus
17694extern "C"
17695#endif
17696/* We use char because int might match the return type of a gcc2
17697 builtin and then its argument prototype would still apply. */
17698char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017699int
17700main ()
17701{
17702dlopen ();
17703 ;
17704 return 0;
17705}
17706_ACEOF
17707rm -f conftest.$ac_objext conftest$ac_exeext
17708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017709 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017716 { ac_try='test -z "$ac_cxx_werror_flag"
17717 || test ! -s conftest.err'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_lib_dl_dlopen=yes
17730else
17731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017732sed 's/^/| /' conftest.$ac_ext >&5
17733
John Criswell47fdd832003-07-14 16:52:07 +000017734ac_cv_lib_dl_dlopen=no
17735fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017736rm -f conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017738LIBS=$ac_check_lib_save_LIBS
17739fi
17740echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17741echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17742if test $ac_cv_lib_dl_dlopen = yes; then
17743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17744else
17745 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17746echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17747if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17749else
17750 ac_check_lib_save_LIBS=$LIBS
17751LIBS="-lsvld $LIBS"
17752cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017753/* confdefs.h. */
17754_ACEOF
17755cat confdefs.h >>conftest.$ac_ext
17756cat >>conftest.$ac_ext <<_ACEOF
17757/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017758
17759/* Override any gcc2 internal prototype to avoid an error. */
17760#ifdef __cplusplus
17761extern "C"
17762#endif
17763/* We use char because int might match the return type of a gcc2
17764 builtin and then its argument prototype would still apply. */
17765char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017766int
17767main ()
17768{
17769dlopen ();
17770 ;
17771 return 0;
17772}
17773_ACEOF
17774rm -f conftest.$ac_objext conftest$ac_exeext
17775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017776 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017777 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017783 { ac_try='test -z "$ac_cxx_werror_flag"
17784 || test ! -s conftest.err'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; } &&
17790 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796 ac_cv_lib_svld_dlopen=yes
17797else
17798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017799sed 's/^/| /' conftest.$ac_ext >&5
17800
John Criswell47fdd832003-07-14 16:52:07 +000017801ac_cv_lib_svld_dlopen=no
17802fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017803rm -f conftest.err conftest.$ac_objext \
17804 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017805LIBS=$ac_check_lib_save_LIBS
17806fi
17807echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17808echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17809if test $ac_cv_lib_svld_dlopen = yes; then
17810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17811else
17812 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17813echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17814if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816else
17817 ac_check_lib_save_LIBS=$LIBS
17818LIBS="-ldld $LIBS"
17819cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017820/* confdefs.h. */
17821_ACEOF
17822cat confdefs.h >>conftest.$ac_ext
17823cat >>conftest.$ac_ext <<_ACEOF
17824/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017825
17826/* Override any gcc2 internal prototype to avoid an error. */
17827#ifdef __cplusplus
17828extern "C"
17829#endif
17830/* We use char because int might match the return type of a gcc2
17831 builtin and then its argument prototype would still apply. */
17832char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017833int
17834main ()
17835{
17836dld_link ();
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext conftest$ac_exeext
17842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017843 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017844 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017850 { ac_try='test -z "$ac_cxx_werror_flag"
17851 || test ! -s conftest.err'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_cv_lib_dld_dld_link=yes
17864else
17865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017866sed 's/^/| /' conftest.$ac_ext >&5
17867
John Criswell47fdd832003-07-14 16:52:07 +000017868ac_cv_lib_dld_dld_link=no
17869fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017870rm -f conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017872LIBS=$ac_check_lib_save_LIBS
17873fi
17874echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17875echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17876if test $ac_cv_lib_dld_dld_link = yes; then
17877 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17878fi
17879
17880
17881fi
17882
17883
17884fi
17885
17886
17887fi
17888
17889
17890fi
17891
17892
17893fi
17894
17895 ;;
17896 esac
17897
17898 if test "x$lt_cv_dlopen" != xno; then
17899 enable_dlopen=yes
17900 else
17901 enable_dlopen=no
17902 fi
17903
17904 case $lt_cv_dlopen in
17905 dlopen)
17906 save_CPPFLAGS="$CPPFLAGS"
17907 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17908
17909 save_LDFLAGS="$LDFLAGS"
17910 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17911
17912 save_LIBS="$LIBS"
17913 LIBS="$lt_cv_dlopen_libs $LIBS"
17914
17915 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17916echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17917if test "${lt_cv_dlopen_self+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17919else
17920 if test "$cross_compiling" = yes; then :
17921 lt_cv_dlopen_self=cross
17922else
17923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17924 lt_status=$lt_dlunknown
17925 cat > conftest.$ac_ext <<EOF
Reid Spencercda35f82004-12-02 04:17:20 +000017926#line 17926 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017927#include "confdefs.h"
17928
17929#if HAVE_DLFCN_H
17930#include <dlfcn.h>
17931#endif
17932
17933#include <stdio.h>
17934
17935#ifdef RTLD_GLOBAL
17936# define LT_DLGLOBAL RTLD_GLOBAL
17937#else
17938# ifdef DL_GLOBAL
17939# define LT_DLGLOBAL DL_GLOBAL
17940# else
17941# define LT_DLGLOBAL 0
17942# endif
17943#endif
17944
17945/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17946 find out it does not work in some platform. */
17947#ifndef LT_DLLAZY_OR_NOW
17948# ifdef RTLD_LAZY
17949# define LT_DLLAZY_OR_NOW RTLD_LAZY
17950# else
17951# ifdef DL_LAZY
17952# define LT_DLLAZY_OR_NOW DL_LAZY
17953# else
17954# ifdef RTLD_NOW
17955# define LT_DLLAZY_OR_NOW RTLD_NOW
17956# else
17957# ifdef DL_NOW
17958# define LT_DLLAZY_OR_NOW DL_NOW
17959# else
17960# define LT_DLLAZY_OR_NOW 0
17961# endif
17962# endif
17963# endif
17964# endif
17965#endif
17966
17967#ifdef __cplusplus
17968extern "C" void exit (int);
17969#endif
17970
17971void fnord() { int i=42;}
17972int main ()
17973{
17974 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17975 int status = $lt_dlunknown;
17976
17977 if (self)
17978 {
17979 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17980 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17981 /* dlclose (self); */
17982 }
17983
17984 exit (status);
17985}
17986EOF
17987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17988 (eval $ac_link) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17992 (./conftest; exit; ) 2>/dev/null
17993 lt_status=$?
17994 case x$lt_status in
17995 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17996 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17997 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17998 esac
17999 else :
18000 # compilation failed
18001 lt_cv_dlopen_self=no
18002 fi
18003fi
18004rm -fr conftest*
18005
18006
18007fi
18008echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18009echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18010
18011 if test "x$lt_cv_dlopen_self" = xyes; then
18012 LDFLAGS="$LDFLAGS $link_static_flag"
18013 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18014echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18015if test "${lt_cv_dlopen_self_static+set}" = set; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18017else
18018 if test "$cross_compiling" = yes; then :
18019 lt_cv_dlopen_self_static=cross
18020else
18021 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18022 lt_status=$lt_dlunknown
18023 cat > conftest.$ac_ext <<EOF
Reid Spencercda35f82004-12-02 04:17:20 +000018024#line 18024 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018025#include "confdefs.h"
18026
18027#if HAVE_DLFCN_H
18028#include <dlfcn.h>
18029#endif
18030
18031#include <stdio.h>
18032
18033#ifdef RTLD_GLOBAL
18034# define LT_DLGLOBAL RTLD_GLOBAL
18035#else
18036# ifdef DL_GLOBAL
18037# define LT_DLGLOBAL DL_GLOBAL
18038# else
18039# define LT_DLGLOBAL 0
18040# endif
18041#endif
18042
18043/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18044 find out it does not work in some platform. */
18045#ifndef LT_DLLAZY_OR_NOW
18046# ifdef RTLD_LAZY
18047# define LT_DLLAZY_OR_NOW RTLD_LAZY
18048# else
18049# ifdef DL_LAZY
18050# define LT_DLLAZY_OR_NOW DL_LAZY
18051# else
18052# ifdef RTLD_NOW
18053# define LT_DLLAZY_OR_NOW RTLD_NOW
18054# else
18055# ifdef DL_NOW
18056# define LT_DLLAZY_OR_NOW DL_NOW
18057# else
18058# define LT_DLLAZY_OR_NOW 0
18059# endif
18060# endif
18061# endif
18062# endif
18063#endif
18064
18065#ifdef __cplusplus
18066extern "C" void exit (int);
18067#endif
18068
18069void fnord() { int i=42;}
18070int main ()
18071{
18072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18073 int status = $lt_dlunknown;
18074
18075 if (self)
18076 {
18077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18078 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18079 /* dlclose (self); */
18080 }
18081
18082 exit (status);
18083}
18084EOF
18085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18086 (eval $ac_link) 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18090 (./conftest; exit; ) 2>/dev/null
18091 lt_status=$?
18092 case x$lt_status in
18093 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18094 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18095 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18096 esac
18097 else :
18098 # compilation failed
18099 lt_cv_dlopen_self_static=no
18100 fi
18101fi
18102rm -fr conftest*
18103
18104
18105fi
18106echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18107echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18108 fi
18109
18110 CPPFLAGS="$save_CPPFLAGS"
18111 LDFLAGS="$save_LDFLAGS"
18112 LIBS="$save_LIBS"
18113 ;;
18114 esac
18115
18116 case $lt_cv_dlopen_self in
18117 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18118 *) enable_dlopen_self=unknown ;;
18119 esac
18120
18121 case $lt_cv_dlopen_self_static in
18122 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18123 *) enable_dlopen_self_static=unknown ;;
18124 esac
18125fi
18126
18127
18128# The else clause should only fire when bootstrapping the
18129# libtool distribution, otherwise you forgot to ship ltmain.sh
18130# with your package, and you will get complaints that there are
18131# no rules to generate ltmain.sh.
18132if test -f "$ltmain"; then
18133 # See if we are running on zsh, and set the options which allow our commands through
18134 # without removal of \ escapes.
18135 if test -n "${ZSH_VERSION+set}" ; then
18136 setopt NO_GLOB_SUBST
18137 fi
18138 # Now quote all the things that may contain metacharacters while being
18139 # careful not to overquote the AC_SUBSTed values. We take copies of the
18140 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018141 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18142 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018143 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18144 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18145 deplibs_check_method reload_flag reload_cmds need_locks \
18146 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18147 lt_cv_sys_global_symbol_to_c_name_address \
18148 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18149 old_postinstall_cmds old_postuninstall_cmds \
18150 compiler_CXX \
18151 CC_CXX \
18152 LD_CXX \
18153 lt_prog_compiler_wl_CXX \
18154 lt_prog_compiler_pic_CXX \
18155 lt_prog_compiler_static_CXX \
18156 lt_prog_compiler_no_builtin_flag_CXX \
18157 export_dynamic_flag_spec_CXX \
18158 thread_safe_flag_spec_CXX \
18159 whole_archive_flag_spec_CXX \
18160 enable_shared_with_static_runtimes_CXX \
18161 old_archive_cmds_CXX \
18162 old_archive_from_new_cmds_CXX \
18163 predep_objects_CXX \
18164 postdep_objects_CXX \
18165 predeps_CXX \
18166 postdeps_CXX \
18167 compiler_lib_search_path_CXX \
18168 archive_cmds_CXX \
18169 archive_expsym_cmds_CXX \
18170 postinstall_cmds_CXX \
18171 postuninstall_cmds_CXX \
18172 old_archive_from_expsyms_cmds_CXX \
18173 allow_undefined_flag_CXX \
18174 no_undefined_flag_CXX \
18175 export_symbols_cmds_CXX \
18176 hardcode_libdir_flag_spec_CXX \
18177 hardcode_libdir_flag_spec_ld_CXX \
18178 hardcode_libdir_separator_CXX \
18179 hardcode_automatic_CXX \
18180 module_cmds_CXX \
18181 module_expsym_cmds_CXX \
18182 lt_cv_prog_compiler_c_o_CXX \
18183 exclude_expsyms_CXX \
18184 include_expsyms_CXX; do
18185
18186 case $var in
18187 old_archive_cmds_CXX | \
18188 old_archive_from_new_cmds_CXX | \
18189 archive_cmds_CXX | \
18190 archive_expsym_cmds_CXX | \
18191 module_cmds_CXX | \
18192 module_expsym_cmds_CXX | \
18193 old_archive_from_expsyms_cmds_CXX | \
18194 export_symbols_cmds_CXX | \
18195 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18196 postinstall_cmds | postuninstall_cmds | \
18197 old_postinstall_cmds | old_postuninstall_cmds | \
18198 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18199 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000018201 ;;
18202 *)
18203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18204 ;;
18205 esac
18206 done
18207
18208 case $lt_echo in
18209 *'\$0 --fallback-echo"')
18210 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18211 ;;
18212 esac
18213
18214cfgfile="$ofile"
18215
18216 cat <<__EOF__ >> "$cfgfile"
18217# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18218
18219# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18220
18221# Shell to use when invoking shell scripts.
18222SHELL=$lt_SHELL
18223
18224# Whether or not to build shared libraries.
18225build_libtool_libs=$enable_shared
18226
18227# Whether or not to build static libraries.
18228build_old_libs=$enable_static
18229
18230# Whether or not to add -lc for building shared libraries.
18231build_libtool_need_lc=$archive_cmds_need_lc_CXX
18232
18233# Whether or not to disallow shared libs when runtime libs are static
18234allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18235
18236# Whether or not to optimize for fast installation.
18237fast_install=$enable_fast_install
18238
18239# The host system.
18240host_alias=$host_alias
18241host=$host
18242
18243# An echo program that does not interpret backslashes.
18244echo=$lt_echo
18245
18246# The archiver.
18247AR=$lt_AR
18248AR_FLAGS=$lt_AR_FLAGS
18249
18250# A C compiler.
18251LTCC=$lt_LTCC
18252
18253# A language-specific compiler.
18254CC=$lt_compiler_CXX
18255
18256# Is the compiler the GNU C compiler?
18257with_gcc=$GCC_CXX
18258
18259# An ERE matcher.
18260EGREP=$lt_EGREP
18261
18262# The linker used to build libraries.
18263LD=$lt_LD_CXX
18264
18265# Whether we need hard or soft links.
18266LN_S=$lt_LN_S
18267
18268# A BSD-compatible nm program.
18269NM=$lt_NM
18270
18271# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018272STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018273
18274# Used to examine libraries when file_magic_cmd begins "file"
18275MAGIC_CMD=$MAGIC_CMD
18276
18277# Used on cygwin: DLL creation program.
18278DLLTOOL="$DLLTOOL"
18279
18280# Used on cygwin: object dumper.
18281OBJDUMP="$OBJDUMP"
18282
18283# Used on cygwin: assembler.
18284AS="$AS"
18285
18286# The name of the directory that contains temporary libtool files.
18287objdir=$objdir
18288
18289# How to create reloadable object files.
18290reload_flag=$lt_reload_flag
18291reload_cmds=$lt_reload_cmds
18292
18293# How to pass a linker flag through the compiler.
18294wl=$lt_lt_prog_compiler_wl_CXX
18295
18296# Object file suffix (normally "o").
18297objext="$ac_objext"
18298
18299# Old archive suffix (normally "a").
18300libext="$libext"
18301
18302# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018303shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018304
18305# Executable file suffix (normally "").
18306exeext="$exeext"
18307
18308# Additional compiler flags for building library objects.
18309pic_flag=$lt_lt_prog_compiler_pic_CXX
18310pic_mode=$pic_mode
18311
18312# What is the maximum length of a command?
18313max_cmd_len=$lt_cv_sys_max_cmd_len
18314
18315# Does compiler simultaneously support -c and -o options?
18316compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18317
18318# Must we lock files when doing compilation ?
18319need_locks=$lt_need_locks
18320
18321# Do we need the lib prefix for modules?
18322need_lib_prefix=$need_lib_prefix
18323
18324# Do we need a version for libraries?
18325need_version=$need_version
18326
18327# Whether dlopen is supported.
18328dlopen_support=$enable_dlopen
18329
18330# Whether dlopen of programs is supported.
18331dlopen_self=$enable_dlopen_self
18332
18333# Whether dlopen of statically linked programs is supported.
18334dlopen_self_static=$enable_dlopen_self_static
18335
18336# Compiler flag to prevent dynamic linking.
18337link_static_flag=$lt_lt_prog_compiler_static_CXX
18338
18339# Compiler flag to turn off builtin functions.
18340no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18341
18342# Compiler flag to allow reflexive dlopens.
18343export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18344
18345# Compiler flag to generate shared objects directly from archives.
18346whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18347
18348# Compiler flag to generate thread-safe objects.
18349thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18350
18351# Library versioning type.
18352version_type=$version_type
18353
18354# Format of library name prefix.
18355libname_spec=$lt_libname_spec
18356
18357# List of archive names. First name is the real one, the rest are links.
18358# The last name is the one that the linker finds with -lNAME.
18359library_names_spec=$lt_library_names_spec
18360
18361# The coded name of the library, if different from the real name.
18362soname_spec=$lt_soname_spec
18363
18364# Commands used to build and install an old-style archive.
18365RANLIB=$lt_RANLIB
18366old_archive_cmds=$lt_old_archive_cmds_CXX
18367old_postinstall_cmds=$lt_old_postinstall_cmds
18368old_postuninstall_cmds=$lt_old_postuninstall_cmds
18369
18370# Create an old-style archive from a shared archive.
18371old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18372
18373# Create a temporary old-style archive to link instead of a shared archive.
18374old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18375
18376# Commands used to build and install a shared archive.
18377archive_cmds=$lt_archive_cmds_CXX
18378archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18379postinstall_cmds=$lt_postinstall_cmds
18380postuninstall_cmds=$lt_postuninstall_cmds
18381
18382# Commands used to build a loadable module (assumed same as above if empty)
18383module_cmds=$lt_module_cmds_CXX
18384module_expsym_cmds=$lt_module_expsym_cmds_CXX
18385
18386# Commands to strip libraries.
18387old_striplib=$lt_old_striplib
18388striplib=$lt_striplib
18389
18390# Dependencies to place before the objects being linked to create a
18391# shared library.
18392predep_objects=$lt_predep_objects_CXX
18393
18394# Dependencies to place after the objects being linked to create a
18395# shared library.
18396postdep_objects=$lt_postdep_objects_CXX
18397
18398# Dependencies to place before the objects being linked to create a
18399# shared library.
18400predeps=$lt_predeps_CXX
18401
18402# Dependencies to place after the objects being linked to create a
18403# shared library.
18404postdeps=$lt_postdeps_CXX
18405
18406# The library search path used internally by the compiler when linking
18407# a shared library.
18408compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18409
18410# Method to check whether dependent libraries are shared objects.
18411deplibs_check_method=$lt_deplibs_check_method
18412
18413# Command to use when deplibs_check_method == file_magic.
18414file_magic_cmd=$lt_file_magic_cmd
18415
18416# Flag that allows shared libraries with undefined symbols to be built.
18417allow_undefined_flag=$lt_allow_undefined_flag_CXX
18418
18419# Flag that forces no undefined symbols.
18420no_undefined_flag=$lt_no_undefined_flag_CXX
18421
18422# Commands used to finish a libtool library installation in a directory.
18423finish_cmds=$lt_finish_cmds
18424
18425# Same as above, but a single script fragment to be evaled but not shown.
18426finish_eval=$lt_finish_eval
18427
18428# Take the output of nm and produce a listing of raw symbols and C names.
18429global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18430
18431# Transform the output of nm in a proper C declaration
18432global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18433
18434# Transform the output of nm in a C name address pair
18435global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18436
18437# This is the shared library runtime path variable.
18438runpath_var=$runpath_var
18439
18440# This is the shared library path variable.
18441shlibpath_var=$shlibpath_var
18442
18443# Is shlibpath searched before the hard-coded library search path?
18444shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18445
18446# How to hardcode a shared library path into an executable.
18447hardcode_action=$hardcode_action_CXX
18448
18449# Whether we should hardcode library paths into libraries.
18450hardcode_into_libs=$hardcode_into_libs
18451
18452# Flag to hardcode \$libdir into a binary during linking.
18453# This must work even if \$libdir does not exist.
18454hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18455
18456# If ld is used when linking, flag to hardcode \$libdir into
18457# a binary during linking. This must work even if \$libdir does
18458# not exist.
18459hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18460
18461# Whether we need a single -rpath flag with a separated argument.
18462hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18463
18464# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18465# resulting binary.
18466hardcode_direct=$hardcode_direct_CXX
18467
18468# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18469# resulting binary.
18470hardcode_minus_L=$hardcode_minus_L_CXX
18471
18472# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18473# the resulting binary.
18474hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18475
18476# Set to yes if building a shared library automatically hardcodes DIR into the library
18477# and all subsequent libraries and executables linked against it.
18478hardcode_automatic=$hardcode_automatic_CXX
18479
18480# Variables whose values should be saved in libtool wrapper scripts and
18481# restored at relink time.
18482variables_saved_for_relink="$variables_saved_for_relink"
18483
18484# Whether libtool must link a program against all its dependency libraries.
18485link_all_deplibs=$link_all_deplibs_CXX
18486
18487# Compile-time system search path for libraries
18488sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18489
18490# Run-time system search path for libraries
18491sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18492
18493# Fix the shell variable \$srcfile for the compiler.
18494fix_srcfile_path="$fix_srcfile_path_CXX"
18495
18496# Set to yes if exported symbols are required.
18497always_export_symbols=$always_export_symbols_CXX
18498
18499# The commands to list exported symbols.
18500export_symbols_cmds=$lt_export_symbols_cmds_CXX
18501
18502# The commands to extract the exported symbol list from a shared archive.
18503extract_expsyms_cmds=$lt_extract_expsyms_cmds
18504
18505# Symbols that should not be listed in the preloaded symbols.
18506exclude_expsyms=$lt_exclude_expsyms_CXX
18507
18508# Symbols that must always be exported.
18509include_expsyms=$lt_include_expsyms_CXX
18510
18511# ### END LIBTOOL TAG CONFIG: $tagname
18512
18513__EOF__
18514
18515
18516else
18517 # If there is no Makefile yet, we rely on a make rule to execute
18518 # `config.status --recheck' to rerun these tests and create the
18519 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18521 if test -f "$ltmain_in"; then
18522 test -f Makefile && make "$ltmain"
18523 fi
John Criswell47fdd832003-07-14 16:52:07 +000018524fi
18525
18526
18527ac_ext=c
18528ac_cpp='$CPP $CPPFLAGS'
18529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531ac_compiler_gnu=$ac_cv_c_compiler_gnu
18532
18533CC=$lt_save_CC
18534LDCXX=$LD
18535LD=$lt_save_LD
18536GCC=$lt_save_GCC
18537with_gnu_ldcxx=$with_gnu_ld
18538with_gnu_ld=$lt_save_with_gnu_ld
18539lt_cv_path_LDCXX=$lt_cv_path_LD
18540lt_cv_path_LD=$lt_save_path_LD
18541lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18542lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18543
18544 else
18545 tagname=""
18546 fi
18547 ;;
18548
18549 F77)
18550 if test -n "$F77" && test "X$F77" != "Xno"; then
18551
18552ac_ext=f
18553ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18554ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18555ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18556
18557
18558archive_cmds_need_lc_F77=no
18559allow_undefined_flag_F77=
18560always_export_symbols_F77=no
18561archive_expsym_cmds_F77=
18562export_dynamic_flag_spec_F77=
18563hardcode_direct_F77=no
18564hardcode_libdir_flag_spec_F77=
18565hardcode_libdir_flag_spec_ld_F77=
18566hardcode_libdir_separator_F77=
18567hardcode_minus_L_F77=no
18568hardcode_automatic_F77=no
18569module_cmds_F77=
18570module_expsym_cmds_F77=
18571link_all_deplibs_F77=unknown
18572old_archive_cmds_F77=$old_archive_cmds
18573no_undefined_flag_F77=
18574whole_archive_flag_spec_F77=
18575enable_shared_with_static_runtimes_F77=no
18576
18577# Source file extension for f77 test sources.
18578ac_ext=f
18579
18580# Object file extension for compiled f77 test sources.
18581objext=o
18582objext_F77=$objext
18583
18584# Code to be used in simple compile tests
18585lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18586
18587# Code to be used in simple link tests
18588lt_simple_link_test_code=" program t\n end\n"
18589
18590# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18591
18592# If no C compiler was specified, use CC.
18593LTCC=${LTCC-"$CC"}
18594
18595# Allow CC to be a program name with arguments.
18596compiler=$CC
18597
18598
18599# Allow CC to be a program name with arguments.
18600lt_save_CC="$CC"
18601CC=${F77-"f77"}
18602compiler=$CC
18603compiler_F77=$CC
18604cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18605
18606echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18607echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18608echo "$as_me:$LINENO: result: $can_build_shared" >&5
18609echo "${ECHO_T}$can_build_shared" >&6
18610
18611echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18612echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18613test "$can_build_shared" = "no" && enable_shared=no
18614
18615# On AIX, shared libraries and static libraries use the same namespace, and
18616# are all built from PIC.
18617case "$host_os" in
18618aix3*)
18619 test "$enable_shared" = yes && enable_static=no
18620 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018621 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018622 postinstall_cmds='$RANLIB $lib'
18623 fi
18624 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018625aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018626 test "$enable_shared" = yes && enable_static=no
18627 ;;
18628esac
18629echo "$as_me:$LINENO: result: $enable_shared" >&5
18630echo "${ECHO_T}$enable_shared" >&6
18631
18632echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18633echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18634# Make sure either enable_shared or enable_static is yes.
18635test "$enable_shared" = yes || enable_static=yes
18636echo "$as_me:$LINENO: result: $enable_static" >&5
18637echo "${ECHO_T}$enable_static" >&6
18638
18639test "$ld_shlibs_F77" = no && can_build_shared=no
18640
18641GCC_F77="$G77"
18642LD_F77="$LD"
18643
18644lt_prog_compiler_wl_F77=
18645lt_prog_compiler_pic_F77=
18646lt_prog_compiler_static_F77=
18647
18648echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18649echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18650
18651 if test "$GCC" = yes; then
18652 lt_prog_compiler_wl_F77='-Wl,'
18653 lt_prog_compiler_static_F77='-static'
18654
18655 case $host_os in
18656 aix*)
18657 # All AIX code is PIC.
18658 if test "$host_cpu" = ia64; then
18659 # AIX 5 now supports IA64 processor
18660 lt_prog_compiler_static_F77='-Bstatic'
18661 fi
18662 ;;
18663
18664 amigaos*)
18665 # FIXME: we need at least 68020 code to build shared libraries, but
18666 # adding the `-m68020' flag to GCC prevents building anything better,
18667 # like `-m68040'.
18668 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18669 ;;
18670
18671 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18672 # PIC is the default for these OSes.
18673 ;;
18674
18675 mingw* | pw32* | os2*)
18676 # This hack is so that the source file can tell whether it is being
18677 # built for inclusion in a dll (and should export symbols for example).
18678 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18679 ;;
18680
18681 darwin* | rhapsody*)
18682 # PIC is the default on this platform
18683 # Common symbols not allowed in MH_DYLIB files
18684 lt_prog_compiler_pic_F77='-fno-common'
18685 ;;
18686
18687 msdosdjgpp*)
18688 # Just because we use GCC doesn't mean we suddenly get shared libraries
18689 # on systems that don't support them.
18690 lt_prog_compiler_can_build_shared_F77=no
18691 enable_shared=no
18692 ;;
18693
18694 sysv4*MP*)
18695 if test -d /usr/nec; then
18696 lt_prog_compiler_pic_F77=-Kconform_pic
18697 fi
18698 ;;
18699
18700 hpux*)
18701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18702 # not for PA HP-UX.
18703 case "$host_cpu" in
18704 hppa*64*|ia64*)
18705 # +Z the default
18706 ;;
18707 *)
18708 lt_prog_compiler_pic_F77='-fPIC'
18709 ;;
18710 esac
18711 ;;
18712
18713 *)
18714 lt_prog_compiler_pic_F77='-fPIC'
18715 ;;
18716 esac
18717 else
18718 # PORTME Check for flag to pass linker flags through the system compiler.
18719 case $host_os in
18720 aix*)
18721 lt_prog_compiler_wl_F77='-Wl,'
18722 if test "$host_cpu" = ia64; then
18723 # AIX 5 now supports IA64 processor
18724 lt_prog_compiler_static_F77='-Bstatic'
18725 else
18726 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18727 fi
18728 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018729 darwin*)
18730 # PIC is the default on this platform
18731 # Common symbols not allowed in MH_DYLIB files
18732 case "$cc_basename" in
18733 xlc*)
18734 lt_prog_compiler_pic_F77='-qnocommon'
18735 lt_prog_compiler_wl_F77='-Wl,'
18736 ;;
18737 esac
18738 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018739
18740 mingw* | pw32* | os2*)
18741 # This hack is so that the source file can tell whether it is being
18742 # built for inclusion in a dll (and should export symbols for example).
18743 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18744 ;;
18745
18746 hpux9* | hpux10* | hpux11*)
18747 lt_prog_compiler_wl_F77='-Wl,'
18748 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18749 # not for PA HP-UX.
18750 case "$host_cpu" in
18751 hppa*64*|ia64*)
18752 # +Z the default
18753 ;;
18754 *)
18755 lt_prog_compiler_pic_F77='+Z'
18756 ;;
18757 esac
18758 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18759 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18760 ;;
18761
18762 irix5* | irix6* | nonstopux*)
18763 lt_prog_compiler_wl_F77='-Wl,'
18764 # PIC (with -KPIC) is the default.
18765 lt_prog_compiler_static_F77='-non_shared'
18766 ;;
18767
18768 newsos6)
18769 lt_prog_compiler_pic_F77='-KPIC'
18770 lt_prog_compiler_static_F77='-Bstatic'
18771 ;;
18772
18773 linux*)
18774 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018775 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018776 lt_prog_compiler_wl_F77='-Wl,'
18777 lt_prog_compiler_pic_F77='-KPIC'
18778 lt_prog_compiler_static_F77='-static'
18779 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018780 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018781 lt_prog_compiler_wl_F77='-Wl,'
18782 # All Alpha code is PIC.
18783 lt_prog_compiler_static_F77='-non_shared'
18784 ;;
18785 esac
18786 ;;
18787
18788 osf3* | osf4* | osf5*)
18789 lt_prog_compiler_wl_F77='-Wl,'
18790 # All OSF/1 code is PIC.
18791 lt_prog_compiler_static_F77='-non_shared'
18792 ;;
18793
18794 sco3.2v5*)
18795 lt_prog_compiler_pic_F77='-Kpic'
18796 lt_prog_compiler_static_F77='-dn'
18797 ;;
18798
18799 solaris*)
18800 lt_prog_compiler_wl_F77='-Wl,'
18801 lt_prog_compiler_pic_F77='-KPIC'
18802 lt_prog_compiler_static_F77='-Bstatic'
18803 ;;
18804
18805 sunos4*)
18806 lt_prog_compiler_wl_F77='-Qoption ld '
18807 lt_prog_compiler_pic_F77='-PIC'
18808 lt_prog_compiler_static_F77='-Bstatic'
18809 ;;
18810
18811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18812 lt_prog_compiler_wl_F77='-Wl,'
18813 lt_prog_compiler_pic_F77='-KPIC'
18814 lt_prog_compiler_static_F77='-Bstatic'
18815 ;;
18816
18817 sysv4*MP*)
18818 if test -d /usr/nec ;then
18819 lt_prog_compiler_pic_F77='-Kconform_pic'
18820 lt_prog_compiler_static_F77='-Bstatic'
18821 fi
18822 ;;
18823
18824 uts4*)
18825 lt_prog_compiler_pic_F77='-pic'
18826 lt_prog_compiler_static_F77='-Bstatic'
18827 ;;
18828
18829 *)
18830 lt_prog_compiler_can_build_shared_F77=no
18831 ;;
18832 esac
18833 fi
18834
18835echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18836echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18837
18838#
18839# Check to make sure the PIC flag actually works.
18840#
18841if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018842
18843echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018844echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18845if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18847else
18848 lt_prog_compiler_pic_works_F77=no
18849 ac_outfile=conftest.$ac_objext
18850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18851 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18852 # Insert the option either (1) after the last *FLAGS variable, or
18853 # (2) before a word containing "conftest.", or (3) at the end.
18854 # Note that $ac_compile itself does not contain backslashes and begins
18855 # with a dollar sign (not a hyphen), so the echo should work correctly.
18856 # The option is referenced via a variable to avoid confusing sed.
18857 lt_compile=`echo "$ac_compile" | $SED \
18858 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18860 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000018861 (eval echo "\"\$as_me:18861: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018862 (eval "$lt_compile" 2>conftest.err)
18863 ac_status=$?
18864 cat conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000018865 echo "$as_me:18865: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018866 if (exit $ac_status) && test -s "$ac_outfile"; then
18867 # The compiler can only warn and ignore the option if not recognized
18868 # So say no if there are warnings
18869 if test ! -s conftest.err; then
18870 lt_prog_compiler_pic_works_F77=yes
18871 fi
18872 fi
18873 $rm conftest*
18874
18875fi
18876echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18877echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18878
18879if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18880 case $lt_prog_compiler_pic_F77 in
18881 "" | " "*) ;;
18882 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18883 esac
18884else
18885 lt_prog_compiler_pic_F77=
18886 lt_prog_compiler_can_build_shared_F77=no
18887fi
18888
18889fi
18890case "$host_os" in
18891 # For platforms which do not support PIC, -DPIC is meaningless:
18892 *djgpp*)
18893 lt_prog_compiler_pic_F77=
18894 ;;
18895 *)
18896 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18897 ;;
18898esac
18899
18900echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18901echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18902if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904else
18905 lt_cv_prog_compiler_c_o_F77=no
18906 $rm -r conftest 2>/dev/null
18907 mkdir conftest
18908 cd conftest
18909 mkdir out
18910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18911
John Criswell47fdd832003-07-14 16:52:07 +000018912 lt_compiler_flag="-o out/conftest2.$ac_objext"
18913 # Insert the option either (1) after the last *FLAGS variable, or
18914 # (2) before a word containing "conftest.", or (3) at the end.
18915 # Note that $ac_compile itself does not contain backslashes and begins
18916 # with a dollar sign (not a hyphen), so the echo should work correctly.
18917 lt_compile=`echo "$ac_compile" | $SED \
18918 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18920 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000018921 (eval echo "\"\$as_me:18921: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018922 (eval "$lt_compile" 2>out/conftest.err)
18923 ac_status=$?
18924 cat out/conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000018925 echo "$as_me:18925: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18927 then
18928 # The compiler can only warn and ignore the option if not recognized
18929 # So say no if there are warnings
18930 if test ! -s out/conftest.err; then
18931 lt_cv_prog_compiler_c_o_F77=yes
18932 fi
18933 fi
18934 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018935 $rm conftest*
18936 # SGI C++ compiler will create directory out/ii_files/ for
18937 # template instantiation
18938 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18939 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018940 cd ..
18941 rmdir conftest
18942 $rm conftest*
18943
18944fi
18945echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18946echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18947
18948
18949hard_links="nottested"
18950if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18951 # do not overwrite the value of need_locks provided by the user
18952 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18953echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18954 hard_links=yes
18955 $rm conftest*
18956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18957 touch conftest.a
18958 ln conftest.a conftest.b 2>&5 || hard_links=no
18959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18960 echo "$as_me:$LINENO: result: $hard_links" >&5
18961echo "${ECHO_T}$hard_links" >&6
18962 if test "$hard_links" = no; then
18963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18964echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18965 need_locks=warn
18966 fi
18967else
18968 need_locks=no
18969fi
18970
18971echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18972echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18973
18974 runpath_var=
18975 allow_undefined_flag_F77=
18976 enable_shared_with_static_runtimes_F77=no
18977 archive_cmds_F77=
18978 archive_expsym_cmds_F77=
18979 old_archive_From_new_cmds_F77=
18980 old_archive_from_expsyms_cmds_F77=
18981 export_dynamic_flag_spec_F77=
18982 whole_archive_flag_spec_F77=
18983 thread_safe_flag_spec_F77=
18984 hardcode_libdir_flag_spec_F77=
18985 hardcode_libdir_flag_spec_ld_F77=
18986 hardcode_libdir_separator_F77=
18987 hardcode_direct_F77=no
18988 hardcode_minus_L_F77=no
18989 hardcode_shlibpath_var_F77=unsupported
18990 link_all_deplibs_F77=unknown
18991 hardcode_automatic_F77=no
18992 module_cmds_F77=
18993 module_expsym_cmds_F77=
18994 always_export_symbols_F77=no
18995 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18996 # include_expsyms should be a list of space-separated symbols to be *always*
18997 # included in the symbol list
18998 include_expsyms_F77=
18999 # exclude_expsyms can be an extended regexp of symbols to exclude
19000 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19001 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19002 # as well as any symbol that contains `d'.
19003 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19005 # platforms (ab)use it in PIC code, but their linkers get confused if
19006 # the symbol is explicitly referenced. Since portable code cannot
19007 # rely on this symbol name, it's probably fine to never include it in
19008 # preloaded symbol tables.
19009 extract_expsyms_cmds=
19010
19011 case $host_os in
19012 cygwin* | mingw* | pw32*)
19013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19014 # When not using gcc, we currently assume that we are using
19015 # Microsoft Visual C++.
19016 if test "$GCC" != yes; then
19017 with_gnu_ld=no
19018 fi
19019 ;;
19020 openbsd*)
19021 with_gnu_ld=no
19022 ;;
19023 esac
19024
19025 ld_shlibs_F77=yes
19026 if test "$with_gnu_ld" = yes; then
19027 # If archive_cmds runs LD, not CC, wlarc should be empty
19028 wlarc='${wl}'
19029
19030 # See if GNU ld supports shared libraries.
19031 case $host_os in
19032 aix3* | aix4* | aix5*)
19033 # On AIX/PPC, the GNU linker is very broken
19034 if test "$host_cpu" != ia64; then
19035 ld_shlibs_F77=no
19036 cat <<EOF 1>&2
19037
19038*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19039*** to be unable to reliably create shared libraries on AIX.
19040*** Therefore, libtool is disabling shared libraries support. If you
19041*** really care for shared libraries, you may want to modify your PATH
19042*** so that a non-GNU linker is found, and then restart.
19043
19044EOF
19045 fi
19046 ;;
19047
19048 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019049 archive_cmds_F77='$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)'
John Criswell47fdd832003-07-14 16:52:07 +000019050 hardcode_libdir_flag_spec_F77='-L$libdir'
19051 hardcode_minus_L_F77=yes
19052
19053 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19054 # that the semantics of dynamic libraries on AmigaOS, at least up
19055 # to version 4, is to share data among multiple programs linked
19056 # with the same dynamic library. Since this doesn't match the
19057 # behavior of shared libraries on other platforms, we can't use
19058 # them.
19059 ld_shlibs_F77=no
19060 ;;
19061
19062 beos*)
19063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19064 allow_undefined_flag_F77=unsupported
19065 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19066 # support --undefined. This deserves some investigation. FIXME
19067 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19068 else
19069 ld_shlibs_F77=no
19070 fi
19071 ;;
19072
19073 cygwin* | mingw* | pw32*)
19074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19075 # as there is no search path for DLLs.
19076 hardcode_libdir_flag_spec_F77='-L$libdir'
19077 allow_undefined_flag_F77=unsupported
19078 always_export_symbols_F77=no
19079 enable_shared_with_static_runtimes_F77=yes
19080 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19081
19082 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19084 # If the export-symbols file already is a .def file (1st line
19085 # is EXPORTS), use it as is; otherwise, prepend...
19086 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19087 cp $export_symbols $output_objdir/$soname.def;
19088 else
19089 echo EXPORTS > $output_objdir/$soname.def;
19090 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019091 fi~
19092 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000019093 else
19094 ld_shlibs=no
19095 fi
19096 ;;
19097
19098 netbsd*)
19099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19100 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19101 wlarc=
19102 else
19103 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19104 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19105 fi
19106 ;;
19107
19108 solaris* | sysv5*)
19109 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19110 ld_shlibs_F77=no
19111 cat <<EOF 1>&2
19112
19113*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19114*** create shared libraries on Solaris systems. Therefore, libtool
19115*** is disabling shared libraries support. We urge you to upgrade GNU
19116*** binutils to release 2.9.1 or newer. Another option is to modify
19117*** your PATH or compiler configuration so that the native linker is
19118*** used, and then restart.
19119
19120EOF
19121 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19122 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19123 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19124 else
19125 ld_shlibs_F77=no
19126 fi
19127 ;;
19128
19129 sunos4*)
19130 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19131 wlarc=
19132 hardcode_direct_F77=yes
19133 hardcode_shlibpath_var_F77=no
19134 ;;
19135
Reid Spencer2706f8c2004-09-19 23:53:36 +000019136 linux*)
19137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19138 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19139 archive_cmds_F77="$tmp_archive_cmds"
19140 supports_anon_versioning=no
19141 case `$LD -v 2>/dev/null` in
19142 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19143 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19144 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19145 *\ 2.11.*) ;; # other 2.11 versions
19146 *) supports_anon_versioning=yes ;;
19147 esac
19148 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019149 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19150cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19151$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019152 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19153 else
19154 archive_expsym_cmds_F77="$tmp_archive_cmds"
19155 fi
19156 else
19157 ld_shlibs_F77=no
19158 fi
19159 ;;
19160
John Criswell47fdd832003-07-14 16:52:07 +000019161 *)
19162 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19163 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19165 else
19166 ld_shlibs_F77=no
19167 fi
19168 ;;
19169 esac
19170
19171 if test "$ld_shlibs_F77" = yes; then
19172 runpath_var=LD_RUN_PATH
19173 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19174 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19175 # ancient GNU ld didn't support --whole-archive et. al.
19176 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19177 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19178 else
19179 whole_archive_flag_spec_F77=
19180 fi
19181 fi
19182 else
19183 # PORTME fill in a description of your system's linker (not GNU ld)
19184 case $host_os in
19185 aix3*)
19186 allow_undefined_flag_F77=unsupported
19187 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019188 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000019189 # Note: this linker hardcodes the directories in LIBPATH if there
19190 # are no directories specified by -L.
19191 hardcode_minus_L_F77=yes
19192 if test "$GCC" = yes && test -z "$link_static_flag"; then
19193 # Neither direct hardcoding nor static linking is supported with a
19194 # broken collect2.
19195 hardcode_direct_F77=unsupported
19196 fi
19197 ;;
19198
19199 aix4* | aix5*)
19200 if test "$host_cpu" = ia64; then
19201 # On IA64, the linker does run time linking by default, so we don't
19202 # have to do anything special.
19203 aix_use_runtimelinking=no
19204 exp_sym_flag='-Bexport'
19205 no_entry_flag=""
19206 else
19207 # If we're using GNU nm, then we don't want the "-C" option.
19208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19209 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19210 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19211 else
19212 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19213 fi
19214 aix_use_runtimelinking=no
19215
19216 # Test if we are trying to use run time linking or normal
19217 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19218 # need to do runtime linking.
19219 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19220 for ld_flag in $LDFLAGS; do
19221 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19222 aix_use_runtimelinking=yes
19223 break
19224 fi
19225 done
19226 esac
19227
19228 exp_sym_flag='-bexport'
19229 no_entry_flag='-bnoentry'
19230 fi
19231
19232 # When large executables or shared objects are built, AIX ld can
19233 # have problems creating the table of contents. If linking a library
19234 # or program results in "error TOC overflow" add -mminimal-toc to
19235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19237
19238 archive_cmds_F77=''
19239 hardcode_direct_F77=yes
19240 hardcode_libdir_separator_F77=':'
19241 link_all_deplibs_F77=yes
19242
19243 if test "$GCC" = yes; then
19244 case $host_os in aix4.012|aix4.012.*)
19245 # We only want to do this on AIX 4.2 and lower, the check
19246 # below for broken collect2 doesn't work under 4.3+
19247 collect2name=`${CC} -print-prog-name=collect2`
19248 if test -f "$collect2name" && \
19249 strings "$collect2name" | grep resolve_lib_name >/dev/null
19250 then
19251 # We have reworked collect2
19252 hardcode_direct_F77=yes
19253 else
19254 # We have old collect2
19255 hardcode_direct_F77=unsupported
19256 # It fails to find uninstalled libraries when the uninstalled
19257 # path is not listed in the libpath. Setting hardcode_minus_L
19258 # to unsupported forces relinking
19259 hardcode_minus_L_F77=yes
19260 hardcode_libdir_flag_spec_F77='-L$libdir'
19261 hardcode_libdir_separator_F77=
19262 fi
19263 esac
19264 shared_flag='-shared'
19265 else
19266 # not using gcc
19267 if test "$host_cpu" = ia64; then
19268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19269 # chokes on -Wl,-G. The following line is correct:
19270 shared_flag='-G'
19271 else
19272 if test "$aix_use_runtimelinking" = yes; then
19273 shared_flag='${wl}-G'
19274 else
19275 shared_flag='${wl}-bM:SRE'
19276 fi
19277 fi
19278 fi
19279
19280 # It seems that -bexpall does not export symbols beginning with
19281 # underscore (_), so it is better to generate a list of symbols to export.
19282 always_export_symbols_F77=yes
19283 if test "$aix_use_runtimelinking" = yes; then
19284 # Warning - without using the other runtime loading flags (-brtl),
19285 # -berok will link without error, but may produce a broken library.
19286 allow_undefined_flag_F77='-berok'
19287 # Determine the default libpath from the value encoded in an empty executable.
19288 cat >conftest.$ac_ext <<_ACEOF
19289 program main
19290
19291 end
19292_ACEOF
19293rm -f conftest.$ac_objext conftest$ac_exeext
19294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019295 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019302 { ac_try='test -z "$ac_f77_werror_flag"
19303 || test ! -s conftest.err'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; } &&
19309 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315
19316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19317}'`
19318# Check for a 64-bit object if we didn't find anything.
19319if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19320}'`; fi
19321else
19322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019323sed 's/^/| /' conftest.$ac_ext >&5
19324
John Criswell47fdd832003-07-14 16:52:07 +000019325fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019326rm -f conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19329
19330 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19331 archive_expsym_cmds_F77="\$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"
19332 else
19333 if test "$host_cpu" = ia64; then
19334 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19335 allow_undefined_flag_F77="-z nodefs"
19336 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19337 else
19338 # Determine the default libpath from the value encoded in an empty executable.
19339 cat >conftest.$ac_ext <<_ACEOF
19340 program main
19341
19342 end
19343_ACEOF
19344rm -f conftest.$ac_objext conftest$ac_exeext
19345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019346 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019348 grep -v '^ *+' conftest.er1 >conftest.err
19349 rm -f conftest.er1
19350 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019353 { ac_try='test -z "$ac_f77_werror_flag"
19354 || test ! -s conftest.err'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; } &&
19360 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366
19367aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19368}'`
19369# Check for a 64-bit object if we didn't find anything.
19370if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19371}'`; fi
19372else
19373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019374sed 's/^/| /' conftest.$ac_ext >&5
19375
John Criswell47fdd832003-07-14 16:52:07 +000019376fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019377rm -f conftest.err conftest.$ac_objext \
19378 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019379if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19380
19381 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19382 # Warning - without using the other run time loading flags,
19383 # -berok will link without error, but may produce a broken library.
19384 no_undefined_flag_F77=' ${wl}-bernotok'
19385 allow_undefined_flag_F77=' ${wl}-berok'
19386 # -bexpall does not export symbols beginning with underscore (_)
19387 always_export_symbols_F77=yes
19388 # Exported symbols can be pulled into shared objects from archives
19389 whole_archive_flag_spec_F77=' '
19390 archive_cmds_need_lc_F77=yes
19391 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019392 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000019393 fi
19394 fi
19395 ;;
19396
19397 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019398 archive_cmds_F77='$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)'
John Criswell47fdd832003-07-14 16:52:07 +000019399 hardcode_libdir_flag_spec_F77='-L$libdir'
19400 hardcode_minus_L_F77=yes
19401 # see comment about different semantics on the GNU ld section
19402 ld_shlibs_F77=no
19403 ;;
19404
Reid Spencer2706f8c2004-09-19 23:53:36 +000019405 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019406 export_dynamic_flag_spec_F77=-rdynamic
19407 ;;
19408
19409 cygwin* | mingw* | pw32*)
19410 # When not using gcc, we currently assume that we are using
19411 # Microsoft Visual C++.
19412 # hardcode_libdir_flag_spec is actually meaningless, as there is
19413 # no search path for DLLs.
19414 hardcode_libdir_flag_spec_F77=' '
19415 allow_undefined_flag_F77=unsupported
19416 # Tell ltmain to make .lib files, not .a files.
19417 libext=lib
19418 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019419 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019420 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019421 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000019422 # The linker will automatically build a .lib file if we build a DLL.
19423 old_archive_From_new_cmds_F77='true'
19424 # FIXME: Should let the user specify the lib program.
19425 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19426 fix_srcfile_path='`cygpath -w "$srcfile"`'
19427 enable_shared_with_static_runtimes_F77=yes
19428 ;;
19429
19430 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019431 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019432 rhapsody* | darwin1.[012])
19433 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19434 ;;
19435 *) # Darwin 1.3 on
19436 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19437 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19438 else
19439 case ${MACOSX_DEPLOYMENT_TARGET} in
19440 10.[012])
19441 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19442 ;;
19443 10.*)
19444 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19445 ;;
19446 esac
19447 fi
19448 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019449 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019450 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019451 hardcode_direct_F77=no
19452 hardcode_automatic_F77=yes
19453 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019454 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019455 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019456 if test "$GCC" = yes ; then
19457 output_verbose_link_cmd='echo'
19458 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19459 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19460 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000019461 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19462 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019463 else
19464 case "$cc_basename" in
19465 xlc*)
19466 output_verbose_link_cmd='echo'
19467 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19468 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19469 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000019470 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19471 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019472 ;;
19473 *)
19474 ld_shlibs_F77=no
19475 ;;
19476 esac
John Criswell47fdd832003-07-14 16:52:07 +000019477 fi
19478 ;;
19479
19480 dgux*)
19481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19482 hardcode_libdir_flag_spec_F77='-L$libdir'
19483 hardcode_shlibpath_var_F77=no
19484 ;;
19485
19486 freebsd1*)
19487 ld_shlibs_F77=no
19488 ;;
19489
19490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19491 # support. Future versions do this automatically, but an explicit c++rt0.o
19492 # does not break anything, and helps significantly (at the cost of a little
19493 # extra space).
19494 freebsd2.2*)
19495 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19496 hardcode_libdir_flag_spec_F77='-R$libdir'
19497 hardcode_direct_F77=yes
19498 hardcode_shlibpath_var_F77=no
19499 ;;
19500
19501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19502 freebsd2*)
19503 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19504 hardcode_direct_F77=yes
19505 hardcode_minus_L_F77=yes
19506 hardcode_shlibpath_var_F77=no
19507 ;;
19508
19509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019510 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019511 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19512 hardcode_libdir_flag_spec_F77='-R$libdir'
19513 hardcode_direct_F77=yes
19514 hardcode_shlibpath_var_F77=no
19515 ;;
19516
19517 hpux9*)
19518 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019519 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019520 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019521 archive_cmds_F77='$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'
John Criswell47fdd832003-07-14 16:52:07 +000019522 fi
19523 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19524 hardcode_libdir_separator_F77=:
19525 hardcode_direct_F77=yes
19526
19527 # hardcode_minus_L: Not really in the search PATH,
19528 # but as the default location of the library.
19529 hardcode_minus_L_F77=yes
19530 export_dynamic_flag_spec_F77='${wl}-E'
19531 ;;
19532
19533 hpux10* | hpux11*)
19534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19535 case "$host_cpu" in
19536 hppa*64*|ia64*)
19537 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 ;;
19539 *)
19540 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19541 ;;
19542 esac
19543 else
19544 case "$host_cpu" in
19545 hppa*64*|ia64*)
19546 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19547 ;;
19548 *)
19549 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19550 ;;
19551 esac
19552 fi
19553 if test "$with_gnu_ld" = no; then
19554 case "$host_cpu" in
19555 hppa*64*)
19556 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19557 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19558 hardcode_libdir_separator_F77=:
19559 hardcode_direct_F77=no
19560 hardcode_shlibpath_var_F77=no
19561 ;;
19562 ia64*)
19563 hardcode_libdir_flag_spec_F77='-L$libdir'
19564 hardcode_direct_F77=no
19565 hardcode_shlibpath_var_F77=no
19566
19567 # hardcode_minus_L: Not really in the search PATH,
19568 # but as the default location of the library.
19569 hardcode_minus_L_F77=yes
19570 ;;
19571 *)
19572 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19573 hardcode_libdir_separator_F77=:
19574 hardcode_direct_F77=yes
19575 export_dynamic_flag_spec_F77='${wl}-E'
19576
19577 # hardcode_minus_L: Not really in the search PATH,
19578 # but as the default location of the library.
19579 hardcode_minus_L_F77=yes
19580 ;;
19581 esac
19582 fi
19583 ;;
19584
19585 irix5* | irix6* | nonstopux*)
19586 if test "$GCC" = yes; then
19587 archive_cmds_F77='$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'
19588 else
19589 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19590 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19591 fi
19592 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19593 hardcode_libdir_separator_F77=:
19594 link_all_deplibs_F77=yes
19595 ;;
19596
19597 netbsd*)
19598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19599 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19600 else
19601 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19602 fi
19603 hardcode_libdir_flag_spec_F77='-R$libdir'
19604 hardcode_direct_F77=yes
19605 hardcode_shlibpath_var_F77=no
19606 ;;
19607
19608 newsos6)
19609 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19610 hardcode_direct_F77=yes
19611 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19612 hardcode_libdir_separator_F77=:
19613 hardcode_shlibpath_var_F77=no
19614 ;;
19615
19616 openbsd*)
19617 hardcode_direct_F77=yes
19618 hardcode_shlibpath_var_F77=no
19619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19620 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019621 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000019622 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19623 export_dynamic_flag_spec_F77='${wl}-E'
19624 else
19625 case $host_os in
19626 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19627 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19628 hardcode_libdir_flag_spec_F77='-R$libdir'
19629 ;;
19630 *)
19631 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19632 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19633 ;;
19634 esac
19635 fi
19636 ;;
19637
19638 os2*)
19639 hardcode_libdir_flag_spec_F77='-L$libdir'
19640 hardcode_minus_L_F77=yes
19641 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019642 archive_cmds_F77='$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'
John Criswell47fdd832003-07-14 16:52:07 +000019643 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19644 ;;
19645
19646 osf3*)
19647 if test "$GCC" = yes; then
19648 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19649 archive_cmds_F77='$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'
19650 else
19651 allow_undefined_flag_F77=' -expect_unresolved \*'
19652 archive_cmds_F77='$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'
19653 fi
19654 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19655 hardcode_libdir_separator_F77=:
19656 ;;
19657
19658 osf4* | osf5*) # as osf3* with the addition of -msym flag
19659 if test "$GCC" = yes; then
19660 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19661 archive_cmds_F77='$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'
19662 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19663 else
19664 allow_undefined_flag_F77=' -expect_unresolved \*'
19665 archive_cmds_F77='$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'
Reid Spencer177dbe22004-10-13 01:01:03 +000019666 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19667 $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'
19668
John Criswell47fdd832003-07-14 16:52:07 +000019669 # Both c and cxx compiler support -rpath directly
19670 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19671 fi
19672 hardcode_libdir_separator_F77=:
19673 ;;
19674
19675 sco3.2v5*)
19676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19677 hardcode_shlibpath_var_F77=no
19678 export_dynamic_flag_spec_F77='${wl}-Bexport'
19679 runpath_var=LD_RUN_PATH
19680 hardcode_runpath_var=yes
19681 ;;
19682
19683 solaris*)
19684 no_undefined_flag_F77=' -z text'
19685 if test "$GCC" = yes; then
19686 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019687 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19688 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019689 else
19690 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019691 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19692 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019693 fi
19694 hardcode_libdir_flag_spec_F77='-R$libdir'
19695 hardcode_shlibpath_var_F77=no
19696 case $host_os in
19697 solaris2.[0-5] | solaris2.[0-5].*) ;;
19698 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19699 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19700 esac
19701 link_all_deplibs_F77=yes
19702 ;;
19703
19704 sunos4*)
19705 if test "x$host_vendor" = xsequent; then
19706 # Use $CC to link under sequent, because it throws in some extra .o
19707 # files that make .init and .fini sections work.
19708 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19709 else
19710 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19711 fi
19712 hardcode_libdir_flag_spec_F77='-L$libdir'
19713 hardcode_direct_F77=yes
19714 hardcode_minus_L_F77=yes
19715 hardcode_shlibpath_var_F77=no
19716 ;;
19717
19718 sysv4)
19719 case $host_vendor in
19720 sni)
19721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19722 hardcode_direct_F77=yes # is this really true???
19723 ;;
19724 siemens)
19725 ## LD is ld it makes a PLAMLIB
19726 ## CC just makes a GrossModule.
19727 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19728 reload_cmds_F77='$CC -r -o $output$reload_objs'
19729 hardcode_direct_F77=no
19730 ;;
19731 motorola)
19732 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19733 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19734 ;;
19735 esac
19736 runpath_var='LD_RUN_PATH'
19737 hardcode_shlibpath_var_F77=no
19738 ;;
19739
19740 sysv4.3*)
19741 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19742 hardcode_shlibpath_var_F77=no
19743 export_dynamic_flag_spec_F77='-Bexport'
19744 ;;
19745
19746 sysv4*MP*)
19747 if test -d /usr/nec; then
19748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19749 hardcode_shlibpath_var_F77=no
19750 runpath_var=LD_RUN_PATH
19751 hardcode_runpath_var=yes
19752 ld_shlibs_F77=yes
19753 fi
19754 ;;
19755
19756 sysv4.2uw2*)
19757 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19758 hardcode_direct_F77=yes
19759 hardcode_minus_L_F77=no
19760 hardcode_shlibpath_var_F77=no
19761 hardcode_runpath_var=yes
19762 runpath_var=LD_RUN_PATH
19763 ;;
19764
19765 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19766 no_undefined_flag_F77='${wl}-z ${wl}text'
19767 if test "$GCC" = yes; then
19768 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19769 else
19770 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19771 fi
19772 runpath_var='LD_RUN_PATH'
19773 hardcode_shlibpath_var_F77=no
19774 ;;
19775
19776 sysv5*)
19777 no_undefined_flag_F77=' -z text'
19778 # $CC -shared without GNU ld will not create a library from C++
19779 # object files and a static libstdc++, better avoid it by now
19780 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019781 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19782 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019783 hardcode_libdir_flag_spec_F77=
19784 hardcode_shlibpath_var_F77=no
19785 runpath_var='LD_RUN_PATH'
19786 ;;
19787
19788 uts4*)
19789 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19790 hardcode_libdir_flag_spec_F77='-L$libdir'
19791 hardcode_shlibpath_var_F77=no
19792 ;;
19793
19794 *)
19795 ld_shlibs_F77=no
19796 ;;
19797 esac
19798 fi
19799
19800echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19801echo "${ECHO_T}$ld_shlibs_F77" >&6
19802test "$ld_shlibs_F77" = no && can_build_shared=no
19803
19804variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19805if test "$GCC" = yes; then
19806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19807fi
19808
19809#
19810# Do we need to explicitly link libc?
19811#
19812case "x$archive_cmds_need_lc_F77" in
19813x|xyes)
19814 # Assume -lc should be added
19815 archive_cmds_need_lc_F77=yes
19816
19817 if test "$enable_shared" = yes && test "$GCC" = yes; then
19818 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019819 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019820 # FIXME: we may have to deal with multi-command sequences.
19821 ;;
19822 '$CC '*)
19823 # Test whether the compiler implicitly links with -lc since on some
19824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19825 # to ld, don't add -lc before -lgcc.
19826 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19827echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19828 $rm conftest*
19829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19830
19831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832 (eval $ac_compile) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } 2>conftest.err; then
19836 soname=conftest
19837 lib=conftest
19838 libobjs=conftest.$ac_objext
19839 deplibs=
19840 wl=$lt_prog_compiler_wl_F77
19841 compiler_flags=-v
19842 linker_flags=-v
19843 verstring=
19844 output_objdir=.
19845 libname=conftest
19846 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19847 allow_undefined_flag_F77=
19848 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19849 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }
19853 then
19854 archive_cmds_need_lc_F77=no
19855 else
19856 archive_cmds_need_lc_F77=yes
19857 fi
19858 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19859 else
19860 cat conftest.err 1>&5
19861 fi
19862 $rm conftest*
19863 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19864echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19865 ;;
19866 esac
19867 fi
19868 ;;
19869esac
19870
John Criswell47fdd832003-07-14 16:52:07 +000019871echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19872echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19873library_names_spec=
19874libname_spec='lib$name'
19875soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019876shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019877postinstall_cmds=
19878postuninstall_cmds=
19879finish_cmds=
19880finish_eval=
19881shlibpath_var=
19882shlibpath_overrides_runpath=unknown
19883version_type=none
19884dynamic_linker="$host_os ld.so"
19885sys_lib_dlsearch_path_spec="/lib /usr/lib"
19886if test "$GCC" = yes; then
19887 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19888 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19889 # if the path contains ";" then we assume it to be the separator
19890 # otherwise default to the standard path separator (i.e. ":") - it is
19891 # assumed that no part of a normal pathname contains ";" but that should
19892 # okay in the real world where ";" in dirpaths is itself problematic.
19893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19894 else
19895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19896 fi
19897else
19898 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19899fi
19900need_lib_prefix=unknown
19901hardcode_into_libs=no
19902
19903# when you set need_version to no, make sure it does not cause -set_version
19904# flags to be left without arguments
19905need_version=unknown
19906
19907case $host_os in
19908aix3*)
19909 version_type=linux
19910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19911 shlibpath_var=LIBPATH
19912
19913 # AIX 3 has no versioning support, so we append a major version to the name.
19914 soname_spec='${libname}${release}${shared_ext}$major'
19915 ;;
19916
19917aix4* | aix5*)
19918 version_type=linux
19919 need_lib_prefix=no
19920 need_version=no
19921 hardcode_into_libs=yes
19922 if test "$host_cpu" = ia64; then
19923 # AIX 5 supports IA64
19924 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19925 shlibpath_var=LD_LIBRARY_PATH
19926 else
19927 # With GCC up to 2.95.x, collect2 would create an import file
19928 # for dependence libraries. The import file would start with
19929 # the line `#! .'. This would cause the generated library to
19930 # depend on `.', always an invalid library. This was fixed in
19931 # development snapshots of GCC prior to 3.0.
19932 case $host_os in
19933 aix4 | aix4.[01] | aix4.[01].*)
19934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19935 echo ' yes '
19936 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19937 :
19938 else
19939 can_build_shared=no
19940 fi
19941 ;;
19942 esac
19943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19944 # soname into executable. Probably we can add versioning support to
19945 # collect2, so additional links can be useful in future.
19946 if test "$aix_use_runtimelinking" = yes; then
19947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19948 # instead of lib<name>.a to let people know that these are not
19949 # typical AIX shared libraries.
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951 else
19952 # We preserve .a as extension for shared libraries through AIX4.2
19953 # and later when we are not doing run time linking.
19954 library_names_spec='${libname}${release}.a $libname.a'
19955 soname_spec='${libname}${release}${shared_ext}$major'
19956 fi
19957 shlibpath_var=LIBPATH
19958 fi
19959 ;;
19960
19961amigaos*)
19962 library_names_spec='$libname.ixlibrary $libname.a'
19963 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019964 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'
John Criswell47fdd832003-07-14 16:52:07 +000019965 ;;
19966
19967beos*)
19968 library_names_spec='${libname}${shared_ext}'
19969 dynamic_linker="$host_os ld.so"
19970 shlibpath_var=LIBRARY_PATH
19971 ;;
19972
Reid Spencer2706f8c2004-09-19 23:53:36 +000019973bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019974 version_type=linux
19975 need_version=no
19976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19977 soname_spec='${libname}${release}${shared_ext}$major'
19978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19979 shlibpath_var=LD_LIBRARY_PATH
19980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19982 # the default ld.so.conf also contains /usr/contrib/lib and
19983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19984 # libtool to hard-code these into programs
19985 ;;
19986
19987cygwin* | mingw* | pw32*)
19988 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019989 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019990 need_version=no
19991 need_lib_prefix=no
19992
19993 case $GCC,$host_os in
19994 yes,cygwin* | yes,mingw* | yes,pw32*)
19995 library_names_spec='$libname.dll.a'
19996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019997 postinstall_cmds='base_file=`basename \${file}`~
19998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19999 dldir=$destdir/`dirname \$dlpath`~
20000 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020001 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20003 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020004 $rm \$dlpath'
20005 shlibpath_overrides_runpath=yes
20006
20007 case $host_os in
20008 cygwin*)
20009 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20010 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020011 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020012 ;;
20013 mingw*)
20014 # MinGW DLLs use traditional 'lib' prefix
20015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20016 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20017 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20018 # It is most probably a Windows format PATH printed by
20019 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20020 # path with ; separators, and with drive letters. We can handle the
20021 # drive letters (cygwin fileutils understands them), so leave them,
20022 # especially as we might pass files found there to a mingw objdump,
20023 # which wouldn't understand a cygwinified path. Ahh.
20024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20025 else
20026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20027 fi
20028 ;;
20029 pw32*)
20030 # pw32 DLLs use 'pw' prefix rather than 'lib'
20031 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20032 ;;
20033 esac
20034 ;;
20035
20036 *)
20037 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20038 ;;
20039 esac
20040 dynamic_linker='Win32 ld.exe'
20041 # FIXME: first we should search . and the directory the executable is in
20042 shlibpath_var=PATH
20043 ;;
20044
20045darwin* | rhapsody*)
20046 dynamic_linker="$host_os dyld"
20047 version_type=darwin
20048 need_lib_prefix=no
20049 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020050 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020051 soname_spec='${libname}${release}${major}$shared_ext'
20052 shlibpath_overrides_runpath=yes
20053 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020054 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020055 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020056 if test "$GCC" = yes; then
20057 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20058 else
20059 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020060 fi
20061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20062 ;;
20063
20064dgux*)
20065 version_type=linux
20066 need_lib_prefix=no
20067 need_version=no
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20070 shlibpath_var=LD_LIBRARY_PATH
20071 ;;
20072
20073freebsd1*)
20074 dynamic_linker=no
20075 ;;
20076
Reid Spencer2706f8c2004-09-19 23:53:36 +000020077kfreebsd*-gnu)
20078 version_type=linux
20079 need_lib_prefix=no
20080 need_version=no
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20082 soname_spec='${libname}${release}${shared_ext}$major'
20083 shlibpath_var=LD_LIBRARY_PATH
20084 shlibpath_overrides_runpath=no
20085 hardcode_into_libs=yes
20086 dynamic_linker='GNU ld.so'
20087 ;;
20088
John Criswell47fdd832003-07-14 16:52:07 +000020089freebsd*)
20090 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20091 version_type=freebsd-$objformat
20092 case $version_type in
20093 freebsd-elf*)
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20095 need_version=no
20096 need_lib_prefix=no
20097 ;;
20098 freebsd-*)
20099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20100 need_version=yes
20101 ;;
20102 esac
20103 shlibpath_var=LD_LIBRARY_PATH
20104 case $host_os in
20105 freebsd2*)
20106 shlibpath_overrides_runpath=yes
20107 ;;
20108 freebsd3.01* | freebsdelf3.01*)
20109 shlibpath_overrides_runpath=yes
20110 hardcode_into_libs=yes
20111 ;;
20112 *) # from 3.2 on
20113 shlibpath_overrides_runpath=no
20114 hardcode_into_libs=yes
20115 ;;
20116 esac
20117 ;;
20118
20119gnu*)
20120 version_type=linux
20121 need_lib_prefix=no
20122 need_version=no
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 hardcode_into_libs=yes
20127 ;;
20128
20129hpux9* | hpux10* | hpux11*)
20130 # Give a soname corresponding to the major version so that dld.sl refuses to
20131 # link against other versions.
20132 version_type=sunos
20133 need_lib_prefix=no
20134 need_version=no
20135 case "$host_cpu" in
20136 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020137 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020138 hardcode_into_libs=yes
20139 dynamic_linker="$host_os dld.so"
20140 shlibpath_var=LD_LIBRARY_PATH
20141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 if test "X$HPUX_IA64_MODE" = X32; then
20145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20146 else
20147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20148 fi
20149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20150 ;;
20151 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020152 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020153 hardcode_into_libs=yes
20154 dynamic_linker="$host_os dld.sl"
20155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20161 ;;
20162 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020163 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020164 dynamic_linker="$host_os dld.sl"
20165 shlibpath_var=SHLIB_PATH
20166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168 soname_spec='${libname}${release}${shared_ext}$major'
20169 ;;
20170 esac
20171 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20172 postinstall_cmds='chmod 555 $lib'
20173 ;;
20174
20175irix5* | irix6* | nonstopux*)
20176 case $host_os in
20177 nonstopux*) version_type=nonstopux ;;
20178 *)
20179 if test "$lt_cv_prog_gnu_ld" = yes; then
20180 version_type=linux
20181 else
20182 version_type=irix
20183 fi ;;
20184 esac
20185 need_lib_prefix=no
20186 need_version=no
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20189 case $host_os in
20190 irix5* | nonstopux*)
20191 libsuff= shlibsuff=
20192 ;;
20193 *)
20194 case $LD in # libtool.m4 will add one of these switches to LD
20195 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20196 libsuff= shlibsuff= libmagic=32-bit;;
20197 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20198 libsuff=32 shlibsuff=N32 libmagic=N32;;
20199 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20200 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20201 *) libsuff= shlibsuff= libmagic=never-match;;
20202 esac
20203 ;;
20204 esac
20205 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20206 shlibpath_overrides_runpath=no
20207 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20208 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20209 hardcode_into_libs=yes
20210 ;;
20211
20212# No shared lib support for Linux oldld, aout, or coff.
20213linux*oldld* | linux*aout* | linux*coff*)
20214 dynamic_linker=no
20215 ;;
20216
20217# This must be Linux ELF.
20218linux*)
20219 version_type=linux
20220 need_lib_prefix=no
20221 need_version=no
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20223 soname_spec='${libname}${release}${shared_ext}$major'
20224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20225 shlibpath_var=LD_LIBRARY_PATH
20226 shlibpath_overrides_runpath=no
20227 # This implies no fast_install, which is unacceptable.
20228 # Some rework will be needed to allow for fast_install
20229 # before this can be enabled.
20230 hardcode_into_libs=yes
20231
Reid Spencer2706f8c2004-09-19 23:53:36 +000020232 # Append ld.so.conf contents to the search path
20233 if test -f /etc/ld.so.conf; then
20234 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20235 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20236 fi
20237
John Criswell47fdd832003-07-14 16:52:07 +000020238 # We used to test for /lib/ld.so.1 and disable shared libraries on
20239 # powerpc, because MkLinux only supported shared libraries with the
20240 # GNU dynamic linker. Since this was broken with cross compilers,
20241 # most powerpc-linux boxes support dynamic linking these days and
20242 # people can always --disable-shared, the test was removed, and we
20243 # assume the GNU/Linux dynamic linker is in use.
20244 dynamic_linker='GNU/Linux ld.so'
20245 ;;
20246
Reid Spencer2706f8c2004-09-19 23:53:36 +000020247knetbsd*-gnu)
20248 version_type=linux
20249 need_lib_prefix=no
20250 need_version=no
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 shlibpath_var=LD_LIBRARY_PATH
20254 shlibpath_overrides_runpath=no
20255 hardcode_into_libs=yes
20256 dynamic_linker='GNU ld.so'
20257 ;;
20258
John Criswell47fdd832003-07-14 16:52:07 +000020259netbsd*)
20260 version_type=sunos
20261 need_lib_prefix=no
20262 need_version=no
20263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20266 dynamic_linker='NetBSD (a.out) ld.so'
20267 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020269 soname_spec='${libname}${release}${shared_ext}$major'
20270 dynamic_linker='NetBSD ld.elf_so'
20271 fi
20272 shlibpath_var=LD_LIBRARY_PATH
20273 shlibpath_overrides_runpath=yes
20274 hardcode_into_libs=yes
20275 ;;
20276
20277newsos6)
20278 version_type=linux
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280 shlibpath_var=LD_LIBRARY_PATH
20281 shlibpath_overrides_runpath=yes
20282 ;;
20283
Reid Spencer2706f8c2004-09-19 23:53:36 +000020284nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020285 version_type=linux
20286 need_lib_prefix=no
20287 need_version=no
20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289 soname_spec='${libname}${release}${shared_ext}$major'
20290 shlibpath_var=LD_LIBRARY_PATH
20291 shlibpath_overrides_runpath=yes
20292 ;;
20293
20294openbsd*)
20295 version_type=sunos
20296 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020297 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20300 shlibpath_var=LD_LIBRARY_PATH
20301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20302 case $host_os in
20303 openbsd2.[89] | openbsd2.[89].*)
20304 shlibpath_overrides_runpath=no
20305 ;;
20306 *)
20307 shlibpath_overrides_runpath=yes
20308 ;;
20309 esac
20310 else
20311 shlibpath_overrides_runpath=yes
20312 fi
20313 ;;
20314
20315os2*)
20316 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020317 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020318 need_lib_prefix=no
20319 library_names_spec='$libname${shared_ext} $libname.a'
20320 dynamic_linker='OS/2 ld.exe'
20321 shlibpath_var=LIBPATH
20322 ;;
20323
20324osf3* | osf4* | osf5*)
20325 version_type=osf
20326 need_lib_prefix=no
20327 need_version=no
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330 shlibpath_var=LD_LIBRARY_PATH
20331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20333 ;;
20334
20335sco3.2v5*)
20336 version_type=osf
20337 soname_spec='${libname}${release}${shared_ext}$major'
20338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 ;;
20341
20342solaris*)
20343 version_type=linux
20344 need_lib_prefix=no
20345 need_version=no
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 soname_spec='${libname}${release}${shared_ext}$major'
20348 shlibpath_var=LD_LIBRARY_PATH
20349 shlibpath_overrides_runpath=yes
20350 hardcode_into_libs=yes
20351 # ldd complains unless libraries are executable
20352 postinstall_cmds='chmod +x $lib'
20353 ;;
20354
20355sunos4*)
20356 version_type=sunos
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=yes
20361 if test "$with_gnu_ld" = yes; then
20362 need_lib_prefix=no
20363 fi
20364 need_version=yes
20365 ;;
20366
20367sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20368 version_type=linux
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20370 soname_spec='${libname}${release}${shared_ext}$major'
20371 shlibpath_var=LD_LIBRARY_PATH
20372 case $host_vendor in
20373 sni)
20374 shlibpath_overrides_runpath=no
20375 need_lib_prefix=no
20376 export_dynamic_flag_spec='${wl}-Blargedynsym'
20377 runpath_var=LD_RUN_PATH
20378 ;;
20379 siemens)
20380 need_lib_prefix=no
20381 ;;
20382 motorola)
20383 need_lib_prefix=no
20384 need_version=no
20385 shlibpath_overrides_runpath=no
20386 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20387 ;;
20388 esac
20389 ;;
20390
20391sysv4*MP*)
20392 if test -d /usr/nec ;then
20393 version_type=linux
20394 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20395 soname_spec='$libname${shared_ext}.$major'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 fi
20398 ;;
20399
20400uts4*)
20401 version_type=linux
20402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20403 soname_spec='${libname}${release}${shared_ext}$major'
20404 shlibpath_var=LD_LIBRARY_PATH
20405 ;;
20406
20407*)
20408 dynamic_linker=no
20409 ;;
20410esac
20411echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20412echo "${ECHO_T}$dynamic_linker" >&6
20413test "$dynamic_linker" = no && can_build_shared=no
20414
Reid Spencer2706f8c2004-09-19 23:53:36 +000020415echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20416echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20417hardcode_action_F77=
20418if test -n "$hardcode_libdir_flag_spec_F77" || \
20419 test -n "$runpath_var_F77" || \
20420 test "X$hardcode_automatic_F77" = "Xyes" ; then
20421
20422 # We can hardcode non-existant directories.
20423 if test "$hardcode_direct_F77" != no &&
20424 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20425 # have to relink, otherwise we might link with an installed library
20426 # when we should be linking with a yet-to-be-installed one
20427 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20428 test "$hardcode_minus_L_F77" != no; then
20429 # Linking always hardcodes the temporary library directory.
20430 hardcode_action_F77=relink
20431 else
20432 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20433 hardcode_action_F77=immediate
20434 fi
20435else
20436 # We cannot hardcode anything, or else we can only hardcode existing
20437 # directories.
20438 hardcode_action_F77=unsupported
20439fi
20440echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20441echo "${ECHO_T}$hardcode_action_F77" >&6
20442
20443if test "$hardcode_action_F77" = relink; then
20444 # Fast installation is not supported
20445 enable_fast_install=no
20446elif test "$shlibpath_overrides_runpath" = yes ||
20447 test "$enable_shared" = no; then
20448 # Fast installation is not necessary
20449 enable_fast_install=needless
20450fi
20451
20452striplib=
20453old_striplib=
20454echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20455echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20456if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20457 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20458 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20459 echo "$as_me:$LINENO: result: yes" >&5
20460echo "${ECHO_T}yes" >&6
20461else
20462# FIXME - insert some real tests, host_os isn't really good enough
20463 case $host_os in
20464 darwin*)
20465 if test -n "$STRIP" ; then
20466 striplib="$STRIP -x"
20467 echo "$as_me:$LINENO: result: yes" >&5
20468echo "${ECHO_T}yes" >&6
20469 else
20470 echo "$as_me:$LINENO: result: no" >&5
20471echo "${ECHO_T}no" >&6
20472fi
20473 ;;
20474 *)
20475 echo "$as_me:$LINENO: result: no" >&5
20476echo "${ECHO_T}no" >&6
20477 ;;
20478 esac
20479fi
20480
20481
John Criswell47fdd832003-07-14 16:52:07 +000020482
20483# The else clause should only fire when bootstrapping the
20484# libtool distribution, otherwise you forgot to ship ltmain.sh
20485# with your package, and you will get complaints that there are
20486# no rules to generate ltmain.sh.
20487if test -f "$ltmain"; then
20488 # See if we are running on zsh, and set the options which allow our commands through
20489 # without removal of \ escapes.
20490 if test -n "${ZSH_VERSION+set}" ; then
20491 setopt NO_GLOB_SUBST
20492 fi
20493 # Now quote all the things that may contain metacharacters while being
20494 # careful not to overquote the AC_SUBSTed values. We take copies of the
20495 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20497 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20500 deplibs_check_method reload_flag reload_cmds need_locks \
20501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20502 lt_cv_sys_global_symbol_to_c_name_address \
20503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20504 old_postinstall_cmds old_postuninstall_cmds \
20505 compiler_F77 \
20506 CC_F77 \
20507 LD_F77 \
20508 lt_prog_compiler_wl_F77 \
20509 lt_prog_compiler_pic_F77 \
20510 lt_prog_compiler_static_F77 \
20511 lt_prog_compiler_no_builtin_flag_F77 \
20512 export_dynamic_flag_spec_F77 \
20513 thread_safe_flag_spec_F77 \
20514 whole_archive_flag_spec_F77 \
20515 enable_shared_with_static_runtimes_F77 \
20516 old_archive_cmds_F77 \
20517 old_archive_from_new_cmds_F77 \
20518 predep_objects_F77 \
20519 postdep_objects_F77 \
20520 predeps_F77 \
20521 postdeps_F77 \
20522 compiler_lib_search_path_F77 \
20523 archive_cmds_F77 \
20524 archive_expsym_cmds_F77 \
20525 postinstall_cmds_F77 \
20526 postuninstall_cmds_F77 \
20527 old_archive_from_expsyms_cmds_F77 \
20528 allow_undefined_flag_F77 \
20529 no_undefined_flag_F77 \
20530 export_symbols_cmds_F77 \
20531 hardcode_libdir_flag_spec_F77 \
20532 hardcode_libdir_flag_spec_ld_F77 \
20533 hardcode_libdir_separator_F77 \
20534 hardcode_automatic_F77 \
20535 module_cmds_F77 \
20536 module_expsym_cmds_F77 \
20537 lt_cv_prog_compiler_c_o_F77 \
20538 exclude_expsyms_F77 \
20539 include_expsyms_F77; do
20540
20541 case $var in
20542 old_archive_cmds_F77 | \
20543 old_archive_from_new_cmds_F77 | \
20544 archive_cmds_F77 | \
20545 archive_expsym_cmds_F77 | \
20546 module_cmds_F77 | \
20547 module_expsym_cmds_F77 | \
20548 old_archive_from_expsyms_cmds_F77 | \
20549 export_symbols_cmds_F77 | \
20550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20551 postinstall_cmds | postuninstall_cmds | \
20552 old_postinstall_cmds | old_postuninstall_cmds | \
20553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20554 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000020556 ;;
20557 *)
20558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20559 ;;
20560 esac
20561 done
20562
20563 case $lt_echo in
20564 *'\$0 --fallback-echo"')
20565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20566 ;;
20567 esac
20568
20569cfgfile="$ofile"
20570
20571 cat <<__EOF__ >> "$cfgfile"
20572# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20573
20574# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20575
20576# Shell to use when invoking shell scripts.
20577SHELL=$lt_SHELL
20578
20579# Whether or not to build shared libraries.
20580build_libtool_libs=$enable_shared
20581
20582# Whether or not to build static libraries.
20583build_old_libs=$enable_static
20584
20585# Whether or not to add -lc for building shared libraries.
20586build_libtool_need_lc=$archive_cmds_need_lc_F77
20587
20588# Whether or not to disallow shared libs when runtime libs are static
20589allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20590
20591# Whether or not to optimize for fast installation.
20592fast_install=$enable_fast_install
20593
20594# The host system.
20595host_alias=$host_alias
20596host=$host
20597
20598# An echo program that does not interpret backslashes.
20599echo=$lt_echo
20600
20601# The archiver.
20602AR=$lt_AR
20603AR_FLAGS=$lt_AR_FLAGS
20604
20605# A C compiler.
20606LTCC=$lt_LTCC
20607
20608# A language-specific compiler.
20609CC=$lt_compiler_F77
20610
20611# Is the compiler the GNU C compiler?
20612with_gcc=$GCC_F77
20613
20614# An ERE matcher.
20615EGREP=$lt_EGREP
20616
20617# The linker used to build libraries.
20618LD=$lt_LD_F77
20619
20620# Whether we need hard or soft links.
20621LN_S=$lt_LN_S
20622
20623# A BSD-compatible nm program.
20624NM=$lt_NM
20625
20626# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020627STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020628
20629# Used to examine libraries when file_magic_cmd begins "file"
20630MAGIC_CMD=$MAGIC_CMD
20631
20632# Used on cygwin: DLL creation program.
20633DLLTOOL="$DLLTOOL"
20634
20635# Used on cygwin: object dumper.
20636OBJDUMP="$OBJDUMP"
20637
20638# Used on cygwin: assembler.
20639AS="$AS"
20640
20641# The name of the directory that contains temporary libtool files.
20642objdir=$objdir
20643
20644# How to create reloadable object files.
20645reload_flag=$lt_reload_flag
20646reload_cmds=$lt_reload_cmds
20647
20648# How to pass a linker flag through the compiler.
20649wl=$lt_lt_prog_compiler_wl_F77
20650
20651# Object file suffix (normally "o").
20652objext="$ac_objext"
20653
20654# Old archive suffix (normally "a").
20655libext="$libext"
20656
20657# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020658shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020659
20660# Executable file suffix (normally "").
20661exeext="$exeext"
20662
20663# Additional compiler flags for building library objects.
20664pic_flag=$lt_lt_prog_compiler_pic_F77
20665pic_mode=$pic_mode
20666
20667# What is the maximum length of a command?
20668max_cmd_len=$lt_cv_sys_max_cmd_len
20669
20670# Does compiler simultaneously support -c and -o options?
20671compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20672
20673# Must we lock files when doing compilation ?
20674need_locks=$lt_need_locks
20675
20676# Do we need the lib prefix for modules?
20677need_lib_prefix=$need_lib_prefix
20678
20679# Do we need a version for libraries?
20680need_version=$need_version
20681
20682# Whether dlopen is supported.
20683dlopen_support=$enable_dlopen
20684
20685# Whether dlopen of programs is supported.
20686dlopen_self=$enable_dlopen_self
20687
20688# Whether dlopen of statically linked programs is supported.
20689dlopen_self_static=$enable_dlopen_self_static
20690
20691# Compiler flag to prevent dynamic linking.
20692link_static_flag=$lt_lt_prog_compiler_static_F77
20693
20694# Compiler flag to turn off builtin functions.
20695no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20696
20697# Compiler flag to allow reflexive dlopens.
20698export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20699
20700# Compiler flag to generate shared objects directly from archives.
20701whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20702
20703# Compiler flag to generate thread-safe objects.
20704thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20705
20706# Library versioning type.
20707version_type=$version_type
20708
20709# Format of library name prefix.
20710libname_spec=$lt_libname_spec
20711
20712# List of archive names. First name is the real one, the rest are links.
20713# The last name is the one that the linker finds with -lNAME.
20714library_names_spec=$lt_library_names_spec
20715
20716# The coded name of the library, if different from the real name.
20717soname_spec=$lt_soname_spec
20718
20719# Commands used to build and install an old-style archive.
20720RANLIB=$lt_RANLIB
20721old_archive_cmds=$lt_old_archive_cmds_F77
20722old_postinstall_cmds=$lt_old_postinstall_cmds
20723old_postuninstall_cmds=$lt_old_postuninstall_cmds
20724
20725# Create an old-style archive from a shared archive.
20726old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20727
20728# Create a temporary old-style archive to link instead of a shared archive.
20729old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20730
20731# Commands used to build and install a shared archive.
20732archive_cmds=$lt_archive_cmds_F77
20733archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20734postinstall_cmds=$lt_postinstall_cmds
20735postuninstall_cmds=$lt_postuninstall_cmds
20736
20737# Commands used to build a loadable module (assumed same as above if empty)
20738module_cmds=$lt_module_cmds_F77
20739module_expsym_cmds=$lt_module_expsym_cmds_F77
20740
20741# Commands to strip libraries.
20742old_striplib=$lt_old_striplib
20743striplib=$lt_striplib
20744
20745# Dependencies to place before the objects being linked to create a
20746# shared library.
20747predep_objects=$lt_predep_objects_F77
20748
20749# Dependencies to place after the objects being linked to create a
20750# shared library.
20751postdep_objects=$lt_postdep_objects_F77
20752
20753# Dependencies to place before the objects being linked to create a
20754# shared library.
20755predeps=$lt_predeps_F77
20756
20757# Dependencies to place after the objects being linked to create a
20758# shared library.
20759postdeps=$lt_postdeps_F77
20760
20761# The library search path used internally by the compiler when linking
20762# a shared library.
20763compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20764
20765# Method to check whether dependent libraries are shared objects.
20766deplibs_check_method=$lt_deplibs_check_method
20767
20768# Command to use when deplibs_check_method == file_magic.
20769file_magic_cmd=$lt_file_magic_cmd
20770
20771# Flag that allows shared libraries with undefined symbols to be built.
20772allow_undefined_flag=$lt_allow_undefined_flag_F77
20773
20774# Flag that forces no undefined symbols.
20775no_undefined_flag=$lt_no_undefined_flag_F77
20776
20777# Commands used to finish a libtool library installation in a directory.
20778finish_cmds=$lt_finish_cmds
20779
20780# Same as above, but a single script fragment to be evaled but not shown.
20781finish_eval=$lt_finish_eval
20782
20783# Take the output of nm and produce a listing of raw symbols and C names.
20784global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20785
20786# Transform the output of nm in a proper C declaration
20787global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20788
20789# Transform the output of nm in a C name address pair
20790global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20791
20792# This is the shared library runtime path variable.
20793runpath_var=$runpath_var
20794
20795# This is the shared library path variable.
20796shlibpath_var=$shlibpath_var
20797
20798# Is shlibpath searched before the hard-coded library search path?
20799shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20800
20801# How to hardcode a shared library path into an executable.
20802hardcode_action=$hardcode_action_F77
20803
20804# Whether we should hardcode library paths into libraries.
20805hardcode_into_libs=$hardcode_into_libs
20806
20807# Flag to hardcode \$libdir into a binary during linking.
20808# This must work even if \$libdir does not exist.
20809hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20810
20811# If ld is used when linking, flag to hardcode \$libdir into
20812# a binary during linking. This must work even if \$libdir does
20813# not exist.
20814hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20815
20816# Whether we need a single -rpath flag with a separated argument.
20817hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20818
20819# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20820# resulting binary.
20821hardcode_direct=$hardcode_direct_F77
20822
20823# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20824# resulting binary.
20825hardcode_minus_L=$hardcode_minus_L_F77
20826
20827# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20828# the resulting binary.
20829hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20830
20831# Set to yes if building a shared library automatically hardcodes DIR into the library
20832# and all subsequent libraries and executables linked against it.
20833hardcode_automatic=$hardcode_automatic_F77
20834
20835# Variables whose values should be saved in libtool wrapper scripts and
20836# restored at relink time.
20837variables_saved_for_relink="$variables_saved_for_relink"
20838
20839# Whether libtool must link a program against all its dependency libraries.
20840link_all_deplibs=$link_all_deplibs_F77
20841
20842# Compile-time system search path for libraries
20843sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20844
20845# Run-time system search path for libraries
20846sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20847
20848# Fix the shell variable \$srcfile for the compiler.
20849fix_srcfile_path="$fix_srcfile_path_F77"
20850
20851# Set to yes if exported symbols are required.
20852always_export_symbols=$always_export_symbols_F77
20853
20854# The commands to list exported symbols.
20855export_symbols_cmds=$lt_export_symbols_cmds_F77
20856
20857# The commands to extract the exported symbol list from a shared archive.
20858extract_expsyms_cmds=$lt_extract_expsyms_cmds
20859
20860# Symbols that should not be listed in the preloaded symbols.
20861exclude_expsyms=$lt_exclude_expsyms_F77
20862
20863# Symbols that must always be exported.
20864include_expsyms=$lt_include_expsyms_F77
20865
20866# ### END LIBTOOL TAG CONFIG: $tagname
20867
20868__EOF__
20869
20870
20871else
20872 # If there is no Makefile yet, we rely on a make rule to execute
20873 # `config.status --recheck' to rerun these tests and create the
20874 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020875 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20876 if test -f "$ltmain_in"; then
20877 test -f Makefile && make "$ltmain"
20878 fi
John Criswell47fdd832003-07-14 16:52:07 +000020879fi
20880
20881
20882ac_ext=c
20883ac_cpp='$CPP $CPPFLAGS'
20884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887
20888CC="$lt_save_CC"
20889
20890 else
20891 tagname=""
20892 fi
20893 ;;
20894
20895 GCJ)
20896 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020897 ac_ext=c
20898ac_cpp='$CPP $CPPFLAGS'
20899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020902
20903
20904# Source file extension for Java test sources.
20905ac_ext=java
20906
20907# Object file extension for compiled Java test sources.
20908objext=o
20909objext_GCJ=$objext
20910
20911# Code to be used in simple compile tests
20912lt_simple_compile_test_code="class foo {}\n"
20913
20914# Code to be used in simple link tests
20915lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20916
20917# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20918
20919# If no C compiler was specified, use CC.
20920LTCC=${LTCC-"$CC"}
20921
20922# Allow CC to be a program name with arguments.
20923compiler=$CC
20924
20925
20926# Allow CC to be a program name with arguments.
20927lt_save_CC="$CC"
20928CC=${GCJ-"gcj"}
20929compiler=$CC
20930compiler_GCJ=$CC
20931
20932# GCJ did not exist at the time GCC didn't implicitly link libc in.
20933archive_cmds_need_lc_GCJ=no
20934
John Criswell47fdd832003-07-14 16:52:07 +000020935
20936lt_prog_compiler_no_builtin_flag_GCJ=
20937
20938if test "$GCC" = yes; then
20939 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20940
Reid Spencer2706f8c2004-09-19 23:53:36 +000020941
20942echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020943echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20944if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20946else
20947 lt_cv_prog_compiler_rtti_exceptions=no
20948 ac_outfile=conftest.$ac_objext
20949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20950 lt_compiler_flag="-fno-rtti -fno-exceptions"
20951 # Insert the option either (1) after the last *FLAGS variable, or
20952 # (2) before a word containing "conftest.", or (3) at the end.
20953 # Note that $ac_compile itself does not contain backslashes and begins
20954 # with a dollar sign (not a hyphen), so the echo should work correctly.
20955 # The option is referenced via a variable to avoid confusing sed.
20956 lt_compile=`echo "$ac_compile" | $SED \
20957 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20959 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000020960 (eval echo "\"\$as_me:20960: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020961 (eval "$lt_compile" 2>conftest.err)
20962 ac_status=$?
20963 cat conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000020964 echo "$as_me:20964: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020965 if (exit $ac_status) && test -s "$ac_outfile"; then
20966 # The compiler can only warn and ignore the option if not recognized
20967 # So say no if there are warnings
20968 if test ! -s conftest.err; then
20969 lt_cv_prog_compiler_rtti_exceptions=yes
20970 fi
20971 fi
20972 $rm conftest*
20973
20974fi
20975echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20976echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20977
20978if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20979 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20980else
20981 :
20982fi
20983
20984fi
20985
20986lt_prog_compiler_wl_GCJ=
20987lt_prog_compiler_pic_GCJ=
20988lt_prog_compiler_static_GCJ=
20989
20990echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20991echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20992
20993 if test "$GCC" = yes; then
20994 lt_prog_compiler_wl_GCJ='-Wl,'
20995 lt_prog_compiler_static_GCJ='-static'
20996
20997 case $host_os in
20998 aix*)
20999 # All AIX code is PIC.
21000 if test "$host_cpu" = ia64; then
21001 # AIX 5 now supports IA64 processor
21002 lt_prog_compiler_static_GCJ='-Bstatic'
21003 fi
21004 ;;
21005
21006 amigaos*)
21007 # FIXME: we need at least 68020 code to build shared libraries, but
21008 # adding the `-m68020' flag to GCC prevents building anything better,
21009 # like `-m68040'.
21010 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21011 ;;
21012
21013 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21014 # PIC is the default for these OSes.
21015 ;;
21016
21017 mingw* | pw32* | os2*)
21018 # This hack is so that the source file can tell whether it is being
21019 # built for inclusion in a dll (and should export symbols for example).
21020 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21021 ;;
21022
21023 darwin* | rhapsody*)
21024 # PIC is the default on this platform
21025 # Common symbols not allowed in MH_DYLIB files
21026 lt_prog_compiler_pic_GCJ='-fno-common'
21027 ;;
21028
21029 msdosdjgpp*)
21030 # Just because we use GCC doesn't mean we suddenly get shared libraries
21031 # on systems that don't support them.
21032 lt_prog_compiler_can_build_shared_GCJ=no
21033 enable_shared=no
21034 ;;
21035
21036 sysv4*MP*)
21037 if test -d /usr/nec; then
21038 lt_prog_compiler_pic_GCJ=-Kconform_pic
21039 fi
21040 ;;
21041
21042 hpux*)
21043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21044 # not for PA HP-UX.
21045 case "$host_cpu" in
21046 hppa*64*|ia64*)
21047 # +Z the default
21048 ;;
21049 *)
21050 lt_prog_compiler_pic_GCJ='-fPIC'
21051 ;;
21052 esac
21053 ;;
21054
21055 *)
21056 lt_prog_compiler_pic_GCJ='-fPIC'
21057 ;;
21058 esac
21059 else
21060 # PORTME Check for flag to pass linker flags through the system compiler.
21061 case $host_os in
21062 aix*)
21063 lt_prog_compiler_wl_GCJ='-Wl,'
21064 if test "$host_cpu" = ia64; then
21065 # AIX 5 now supports IA64 processor
21066 lt_prog_compiler_static_GCJ='-Bstatic'
21067 else
21068 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21069 fi
21070 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021071 darwin*)
21072 # PIC is the default on this platform
21073 # Common symbols not allowed in MH_DYLIB files
21074 case "$cc_basename" in
21075 xlc*)
21076 lt_prog_compiler_pic_GCJ='-qnocommon'
21077 lt_prog_compiler_wl_GCJ='-Wl,'
21078 ;;
21079 esac
21080 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021081
21082 mingw* | pw32* | os2*)
21083 # This hack is so that the source file can tell whether it is being
21084 # built for inclusion in a dll (and should export symbols for example).
21085 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21086 ;;
21087
21088 hpux9* | hpux10* | hpux11*)
21089 lt_prog_compiler_wl_GCJ='-Wl,'
21090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21091 # not for PA HP-UX.
21092 case "$host_cpu" in
21093 hppa*64*|ia64*)
21094 # +Z the default
21095 ;;
21096 *)
21097 lt_prog_compiler_pic_GCJ='+Z'
21098 ;;
21099 esac
21100 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21101 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21102 ;;
21103
21104 irix5* | irix6* | nonstopux*)
21105 lt_prog_compiler_wl_GCJ='-Wl,'
21106 # PIC (with -KPIC) is the default.
21107 lt_prog_compiler_static_GCJ='-non_shared'
21108 ;;
21109
21110 newsos6)
21111 lt_prog_compiler_pic_GCJ='-KPIC'
21112 lt_prog_compiler_static_GCJ='-Bstatic'
21113 ;;
21114
21115 linux*)
21116 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021117 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021118 lt_prog_compiler_wl_GCJ='-Wl,'
21119 lt_prog_compiler_pic_GCJ='-KPIC'
21120 lt_prog_compiler_static_GCJ='-static'
21121 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021122 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021123 lt_prog_compiler_wl_GCJ='-Wl,'
21124 # All Alpha code is PIC.
21125 lt_prog_compiler_static_GCJ='-non_shared'
21126 ;;
21127 esac
21128 ;;
21129
21130 osf3* | osf4* | osf5*)
21131 lt_prog_compiler_wl_GCJ='-Wl,'
21132 # All OSF/1 code is PIC.
21133 lt_prog_compiler_static_GCJ='-non_shared'
21134 ;;
21135
21136 sco3.2v5*)
21137 lt_prog_compiler_pic_GCJ='-Kpic'
21138 lt_prog_compiler_static_GCJ='-dn'
21139 ;;
21140
21141 solaris*)
21142 lt_prog_compiler_wl_GCJ='-Wl,'
21143 lt_prog_compiler_pic_GCJ='-KPIC'
21144 lt_prog_compiler_static_GCJ='-Bstatic'
21145 ;;
21146
21147 sunos4*)
21148 lt_prog_compiler_wl_GCJ='-Qoption ld '
21149 lt_prog_compiler_pic_GCJ='-PIC'
21150 lt_prog_compiler_static_GCJ='-Bstatic'
21151 ;;
21152
21153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21154 lt_prog_compiler_wl_GCJ='-Wl,'
21155 lt_prog_compiler_pic_GCJ='-KPIC'
21156 lt_prog_compiler_static_GCJ='-Bstatic'
21157 ;;
21158
21159 sysv4*MP*)
21160 if test -d /usr/nec ;then
21161 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21162 lt_prog_compiler_static_GCJ='-Bstatic'
21163 fi
21164 ;;
21165
21166 uts4*)
21167 lt_prog_compiler_pic_GCJ='-pic'
21168 lt_prog_compiler_static_GCJ='-Bstatic'
21169 ;;
21170
21171 *)
21172 lt_prog_compiler_can_build_shared_GCJ=no
21173 ;;
21174 esac
21175 fi
21176
21177echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21178echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21179
21180#
21181# Check to make sure the PIC flag actually works.
21182#
21183if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021184
21185echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021186echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21187if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21189else
21190 lt_prog_compiler_pic_works_GCJ=no
21191 ac_outfile=conftest.$ac_objext
21192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21193 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21194 # Insert the option either (1) after the last *FLAGS variable, or
21195 # (2) before a word containing "conftest.", or (3) at the end.
21196 # Note that $ac_compile itself does not contain backslashes and begins
21197 # with a dollar sign (not a hyphen), so the echo should work correctly.
21198 # The option is referenced via a variable to avoid confusing sed.
21199 lt_compile=`echo "$ac_compile" | $SED \
21200 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21202 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000021203 (eval echo "\"\$as_me:21203: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021204 (eval "$lt_compile" 2>conftest.err)
21205 ac_status=$?
21206 cat conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000021207 echo "$as_me:21207: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021208 if (exit $ac_status) && test -s "$ac_outfile"; then
21209 # The compiler can only warn and ignore the option if not recognized
21210 # So say no if there are warnings
21211 if test ! -s conftest.err; then
21212 lt_prog_compiler_pic_works_GCJ=yes
21213 fi
21214 fi
21215 $rm conftest*
21216
21217fi
21218echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21219echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21220
21221if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21222 case $lt_prog_compiler_pic_GCJ in
21223 "" | " "*) ;;
21224 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21225 esac
21226else
21227 lt_prog_compiler_pic_GCJ=
21228 lt_prog_compiler_can_build_shared_GCJ=no
21229fi
21230
21231fi
21232case "$host_os" in
21233 # For platforms which do not support PIC, -DPIC is meaningless:
21234 *djgpp*)
21235 lt_prog_compiler_pic_GCJ=
21236 ;;
21237 *)
21238 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21239 ;;
21240esac
21241
21242echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21243echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21244if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246else
21247 lt_cv_prog_compiler_c_o_GCJ=no
21248 $rm -r conftest 2>/dev/null
21249 mkdir conftest
21250 cd conftest
21251 mkdir out
21252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21253
John Criswell47fdd832003-07-14 16:52:07 +000021254 lt_compiler_flag="-o out/conftest2.$ac_objext"
21255 # Insert the option either (1) after the last *FLAGS variable, or
21256 # (2) before a word containing "conftest.", or (3) at the end.
21257 # Note that $ac_compile itself does not contain backslashes and begins
21258 # with a dollar sign (not a hyphen), so the echo should work correctly.
21259 lt_compile=`echo "$ac_compile" | $SED \
21260 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21262 -e 's:$: $lt_compiler_flag:'`
Reid Spencercda35f82004-12-02 04:17:20 +000021263 (eval echo "\"\$as_me:21263: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021264 (eval "$lt_compile" 2>out/conftest.err)
21265 ac_status=$?
21266 cat out/conftest.err >&5
Reid Spencercda35f82004-12-02 04:17:20 +000021267 echo "$as_me:21267: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21269 then
21270 # The compiler can only warn and ignore the option if not recognized
21271 # So say no if there are warnings
21272 if test ! -s out/conftest.err; then
21273 lt_cv_prog_compiler_c_o_GCJ=yes
21274 fi
21275 fi
21276 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021277 $rm conftest*
21278 # SGI C++ compiler will create directory out/ii_files/ for
21279 # template instantiation
21280 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21281 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021282 cd ..
21283 rmdir conftest
21284 $rm conftest*
21285
21286fi
21287echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21288echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21289
21290
21291hard_links="nottested"
21292if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21293 # do not overwrite the value of need_locks provided by the user
21294 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21295echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21296 hard_links=yes
21297 $rm conftest*
21298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299 touch conftest.a
21300 ln conftest.a conftest.b 2>&5 || hard_links=no
21301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21302 echo "$as_me:$LINENO: result: $hard_links" >&5
21303echo "${ECHO_T}$hard_links" >&6
21304 if test "$hard_links" = no; then
21305 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21306echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21307 need_locks=warn
21308 fi
21309else
21310 need_locks=no
21311fi
21312
21313echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21314echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21315
21316 runpath_var=
21317 allow_undefined_flag_GCJ=
21318 enable_shared_with_static_runtimes_GCJ=no
21319 archive_cmds_GCJ=
21320 archive_expsym_cmds_GCJ=
21321 old_archive_From_new_cmds_GCJ=
21322 old_archive_from_expsyms_cmds_GCJ=
21323 export_dynamic_flag_spec_GCJ=
21324 whole_archive_flag_spec_GCJ=
21325 thread_safe_flag_spec_GCJ=
21326 hardcode_libdir_flag_spec_GCJ=
21327 hardcode_libdir_flag_spec_ld_GCJ=
21328 hardcode_libdir_separator_GCJ=
21329 hardcode_direct_GCJ=no
21330 hardcode_minus_L_GCJ=no
21331 hardcode_shlibpath_var_GCJ=unsupported
21332 link_all_deplibs_GCJ=unknown
21333 hardcode_automatic_GCJ=no
21334 module_cmds_GCJ=
21335 module_expsym_cmds_GCJ=
21336 always_export_symbols_GCJ=no
21337 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21338 # include_expsyms should be a list of space-separated symbols to be *always*
21339 # included in the symbol list
21340 include_expsyms_GCJ=
21341 # exclude_expsyms can be an extended regexp of symbols to exclude
21342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21344 # as well as any symbol that contains `d'.
21345 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21347 # platforms (ab)use it in PIC code, but their linkers get confused if
21348 # the symbol is explicitly referenced. Since portable code cannot
21349 # rely on this symbol name, it's probably fine to never include it in
21350 # preloaded symbol tables.
21351 extract_expsyms_cmds=
21352
21353 case $host_os in
21354 cygwin* | mingw* | pw32*)
21355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21356 # When not using gcc, we currently assume that we are using
21357 # Microsoft Visual C++.
21358 if test "$GCC" != yes; then
21359 with_gnu_ld=no
21360 fi
21361 ;;
21362 openbsd*)
21363 with_gnu_ld=no
21364 ;;
21365 esac
21366
21367 ld_shlibs_GCJ=yes
21368 if test "$with_gnu_ld" = yes; then
21369 # If archive_cmds runs LD, not CC, wlarc should be empty
21370 wlarc='${wl}'
21371
21372 # See if GNU ld supports shared libraries.
21373 case $host_os in
21374 aix3* | aix4* | aix5*)
21375 # On AIX/PPC, the GNU linker is very broken
21376 if test "$host_cpu" != ia64; then
21377 ld_shlibs_GCJ=no
21378 cat <<EOF 1>&2
21379
21380*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21381*** to be unable to reliably create shared libraries on AIX.
21382*** Therefore, libtool is disabling shared libraries support. If you
21383*** really care for shared libraries, you may want to modify your PATH
21384*** so that a non-GNU linker is found, and then restart.
21385
21386EOF
21387 fi
21388 ;;
21389
21390 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021391 archive_cmds_GCJ='$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)'
John Criswell47fdd832003-07-14 16:52:07 +000021392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21393 hardcode_minus_L_GCJ=yes
21394
21395 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21396 # that the semantics of dynamic libraries on AmigaOS, at least up
21397 # to version 4, is to share data among multiple programs linked
21398 # with the same dynamic library. Since this doesn't match the
21399 # behavior of shared libraries on other platforms, we can't use
21400 # them.
21401 ld_shlibs_GCJ=no
21402 ;;
21403
21404 beos*)
21405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21406 allow_undefined_flag_GCJ=unsupported
21407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21408 # support --undefined. This deserves some investigation. FIXME
21409 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21410 else
21411 ld_shlibs_GCJ=no
21412 fi
21413 ;;
21414
21415 cygwin* | mingw* | pw32*)
21416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21417 # as there is no search path for DLLs.
21418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21419 allow_undefined_flag_GCJ=unsupported
21420 always_export_symbols_GCJ=no
21421 enable_shared_with_static_runtimes_GCJ=yes
21422 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21423
21424 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21426 # If the export-symbols file already is a .def file (1st line
21427 # is EXPORTS), use it as is; otherwise, prepend...
21428 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21429 cp $export_symbols $output_objdir/$soname.def;
21430 else
21431 echo EXPORTS > $output_objdir/$soname.def;
21432 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021433 fi~
21434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000021435 else
21436 ld_shlibs=no
21437 fi
21438 ;;
21439
21440 netbsd*)
21441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21442 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21443 wlarc=
21444 else
21445 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21446 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21447 fi
21448 ;;
21449
21450 solaris* | sysv5*)
21451 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21452 ld_shlibs_GCJ=no
21453 cat <<EOF 1>&2
21454
21455*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21456*** create shared libraries on Solaris systems. Therefore, libtool
21457*** is disabling shared libraries support. We urge you to upgrade GNU
21458*** binutils to release 2.9.1 or newer. Another option is to modify
21459*** your PATH or compiler configuration so that the native linker is
21460*** used, and then restart.
21461
21462EOF
21463 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21464 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21465 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21466 else
21467 ld_shlibs_GCJ=no
21468 fi
21469 ;;
21470
21471 sunos4*)
21472 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21473 wlarc=
21474 hardcode_direct_GCJ=yes
21475 hardcode_shlibpath_var_GCJ=no
21476 ;;
21477
Reid Spencer2706f8c2004-09-19 23:53:36 +000021478 linux*)
21479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21480 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21481 archive_cmds_GCJ="$tmp_archive_cmds"
21482 supports_anon_versioning=no
21483 case `$LD -v 2>/dev/null` in
21484 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21485 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21486 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21487 *\ 2.11.*) ;; # other 2.11 versions
21488 *) supports_anon_versioning=yes ;;
21489 esac
21490 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021491 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21492cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21493$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021494 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21495 else
21496 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21497 fi
21498 else
21499 ld_shlibs_GCJ=no
21500 fi
21501 ;;
21502
John Criswell47fdd832003-07-14 16:52:07 +000021503 *)
21504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21505 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21506 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21507 else
21508 ld_shlibs_GCJ=no
21509 fi
21510 ;;
21511 esac
21512
21513 if test "$ld_shlibs_GCJ" = yes; then
21514 runpath_var=LD_RUN_PATH
21515 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21516 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21517 # ancient GNU ld didn't support --whole-archive et. al.
21518 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21519 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21520 else
21521 whole_archive_flag_spec_GCJ=
21522 fi
21523 fi
21524 else
21525 # PORTME fill in a description of your system's linker (not GNU ld)
21526 case $host_os in
21527 aix3*)
21528 allow_undefined_flag_GCJ=unsupported
21529 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021530 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000021531 # Note: this linker hardcodes the directories in LIBPATH if there
21532 # are no directories specified by -L.
21533 hardcode_minus_L_GCJ=yes
21534 if test "$GCC" = yes && test -z "$link_static_flag"; then
21535 # Neither direct hardcoding nor static linking is supported with a
21536 # broken collect2.
21537 hardcode_direct_GCJ=unsupported
21538 fi
21539 ;;
21540
21541 aix4* | aix5*)
21542 if test "$host_cpu" = ia64; then
21543 # On IA64, the linker does run time linking by default, so we don't
21544 # have to do anything special.
21545 aix_use_runtimelinking=no
21546 exp_sym_flag='-Bexport'
21547 no_entry_flag=""
21548 else
21549 # If we're using GNU nm, then we don't want the "-C" option.
21550 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21551 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21552 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21553 else
21554 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21555 fi
21556 aix_use_runtimelinking=no
21557
21558 # Test if we are trying to use run time linking or normal
21559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21560 # need to do runtime linking.
21561 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21562 for ld_flag in $LDFLAGS; do
21563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21564 aix_use_runtimelinking=yes
21565 break
21566 fi
21567 done
21568 esac
21569
21570 exp_sym_flag='-bexport'
21571 no_entry_flag='-bnoentry'
21572 fi
21573
21574 # When large executables or shared objects are built, AIX ld can
21575 # have problems creating the table of contents. If linking a library
21576 # or program results in "error TOC overflow" add -mminimal-toc to
21577 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21578 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21579
21580 archive_cmds_GCJ=''
21581 hardcode_direct_GCJ=yes
21582 hardcode_libdir_separator_GCJ=':'
21583 link_all_deplibs_GCJ=yes
21584
21585 if test "$GCC" = yes; then
21586 case $host_os in aix4.012|aix4.012.*)
21587 # We only want to do this on AIX 4.2 and lower, the check
21588 # below for broken collect2 doesn't work under 4.3+
21589 collect2name=`${CC} -print-prog-name=collect2`
21590 if test -f "$collect2name" && \
21591 strings "$collect2name" | grep resolve_lib_name >/dev/null
21592 then
21593 # We have reworked collect2
21594 hardcode_direct_GCJ=yes
21595 else
21596 # We have old collect2
21597 hardcode_direct_GCJ=unsupported
21598 # It fails to find uninstalled libraries when the uninstalled
21599 # path is not listed in the libpath. Setting hardcode_minus_L
21600 # to unsupported forces relinking
21601 hardcode_minus_L_GCJ=yes
21602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21603 hardcode_libdir_separator_GCJ=
21604 fi
21605 esac
21606 shared_flag='-shared'
21607 else
21608 # not using gcc
21609 if test "$host_cpu" = ia64; then
21610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21611 # chokes on -Wl,-G. The following line is correct:
21612 shared_flag='-G'
21613 else
21614 if test "$aix_use_runtimelinking" = yes; then
21615 shared_flag='${wl}-G'
21616 else
21617 shared_flag='${wl}-bM:SRE'
21618 fi
21619 fi
21620 fi
21621
21622 # It seems that -bexpall does not export symbols beginning with
21623 # underscore (_), so it is better to generate a list of symbols to export.
21624 always_export_symbols_GCJ=yes
21625 if test "$aix_use_runtimelinking" = yes; then
21626 # Warning - without using the other runtime loading flags (-brtl),
21627 # -berok will link without error, but may produce a broken library.
21628 allow_undefined_flag_GCJ='-berok'
21629 # Determine the default libpath from the value encoded in an empty executable.
21630 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021631/* confdefs.h. */
21632_ACEOF
21633cat confdefs.h >>conftest.$ac_ext
21634cat >>conftest.$ac_ext <<_ACEOF
21635/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021636
John Criswell47fdd832003-07-14 16:52:07 +000021637int
21638main ()
21639{
21640
21641 ;
21642 return 0;
21643}
21644_ACEOF
21645rm -f conftest.$ac_objext conftest$ac_exeext
21646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021647 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021648 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021649 grep -v '^ *+' conftest.er1 >conftest.err
21650 rm -f conftest.er1
21651 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021654 { ac_try='test -z "$ac_c_werror_flag"
21655 || test ! -s conftest.err'
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21658 ac_status=$?
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; } &&
21661 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667
21668aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21669}'`
21670# Check for a 64-bit object if we didn't find anything.
21671if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21672}'`; fi
21673else
21674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021675sed 's/^/| /' conftest.$ac_ext >&5
21676
John Criswell47fdd832003-07-14 16:52:07 +000021677fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021678rm -f conftest.err conftest.$ac_objext \
21679 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021680if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21681
21682 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21683 archive_expsym_cmds_GCJ="\$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"
21684 else
21685 if test "$host_cpu" = ia64; then
21686 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21687 allow_undefined_flag_GCJ="-z nodefs"
21688 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
21689 else
21690 # Determine the default libpath from the value encoded in an empty executable.
21691 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021692/* confdefs.h. */
21693_ACEOF
21694cat confdefs.h >>conftest.$ac_ext
21695cat >>conftest.$ac_ext <<_ACEOF
21696/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021697
John Criswell47fdd832003-07-14 16:52:07 +000021698int
21699main ()
21700{
21701
21702 ;
21703 return 0;
21704}
21705_ACEOF
21706rm -f conftest.$ac_objext conftest$ac_exeext
21707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021708 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021715 { ac_try='test -z "$ac_c_werror_flag"
21716 || test ! -s conftest.err'
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728
21729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21730}'`
21731# Check for a 64-bit object if we didn't find anything.
21732if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21733}'`; fi
21734else
21735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021736sed 's/^/| /' conftest.$ac_ext >&5
21737
John Criswell47fdd832003-07-14 16:52:07 +000021738fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021739rm -f conftest.err conftest.$ac_objext \
21740 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021741if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21742
21743 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21744 # Warning - without using the other run time loading flags,
21745 # -berok will link without error, but may produce a broken library.
21746 no_undefined_flag_GCJ=' ${wl}-bernotok'
21747 allow_undefined_flag_GCJ=' ${wl}-berok'
21748 # -bexpall does not export symbols beginning with underscore (_)
21749 always_export_symbols_GCJ=yes
21750 # Exported symbols can be pulled into shared objects from archives
21751 whole_archive_flag_spec_GCJ=' '
21752 archive_cmds_need_lc_GCJ=yes
21753 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021754 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000021755 fi
21756 fi
21757 ;;
21758
21759 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021760 archive_cmds_GCJ='$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)'
John Criswell47fdd832003-07-14 16:52:07 +000021761 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21762 hardcode_minus_L_GCJ=yes
21763 # see comment about different semantics on the GNU ld section
21764 ld_shlibs_GCJ=no
21765 ;;
21766
Reid Spencer2706f8c2004-09-19 23:53:36 +000021767 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021768 export_dynamic_flag_spec_GCJ=-rdynamic
21769 ;;
21770
21771 cygwin* | mingw* | pw32*)
21772 # When not using gcc, we currently assume that we are using
21773 # Microsoft Visual C++.
21774 # hardcode_libdir_flag_spec is actually meaningless, as there is
21775 # no search path for DLLs.
21776 hardcode_libdir_flag_spec_GCJ=' '
21777 allow_undefined_flag_GCJ=unsupported
21778 # Tell ltmain to make .lib files, not .a files.
21779 libext=lib
21780 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021781 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021782 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021783 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000021784 # The linker will automatically build a .lib file if we build a DLL.
21785 old_archive_From_new_cmds_GCJ='true'
21786 # FIXME: Should let the user specify the lib program.
21787 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21788 fix_srcfile_path='`cygpath -w "$srcfile"`'
21789 enable_shared_with_static_runtimes_GCJ=yes
21790 ;;
21791
21792 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021793 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021794 rhapsody* | darwin1.[012])
21795 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21796 ;;
21797 *) # Darwin 1.3 on
21798 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21799 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21800 else
21801 case ${MACOSX_DEPLOYMENT_TARGET} in
21802 10.[012])
21803 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21804 ;;
21805 10.*)
21806 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21807 ;;
21808 esac
21809 fi
21810 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021811 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021812 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021813 hardcode_direct_GCJ=no
21814 hardcode_automatic_GCJ=yes
21815 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021816 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021817 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021818 if test "$GCC" = yes ; then
21819 output_verbose_link_cmd='echo'
21820 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21821 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21822 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000021823 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21824 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021825 else
21826 case "$cc_basename" in
21827 xlc*)
21828 output_verbose_link_cmd='echo'
21829 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21830 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21831 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000021832 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21833 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021834 ;;
21835 *)
21836 ld_shlibs_GCJ=no
21837 ;;
21838 esac
John Criswell47fdd832003-07-14 16:52:07 +000021839 fi
21840 ;;
21841
21842 dgux*)
21843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21845 hardcode_shlibpath_var_GCJ=no
21846 ;;
21847
21848 freebsd1*)
21849 ld_shlibs_GCJ=no
21850 ;;
21851
21852 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21853 # support. Future versions do this automatically, but an explicit c++rt0.o
21854 # does not break anything, and helps significantly (at the cost of a little
21855 # extra space).
21856 freebsd2.2*)
21857 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21858 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21859 hardcode_direct_GCJ=yes
21860 hardcode_shlibpath_var_GCJ=no
21861 ;;
21862
21863 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21864 freebsd2*)
21865 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21866 hardcode_direct_GCJ=yes
21867 hardcode_minus_L_GCJ=yes
21868 hardcode_shlibpath_var_GCJ=no
21869 ;;
21870
21871 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021872 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021873 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21874 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21875 hardcode_direct_GCJ=yes
21876 hardcode_shlibpath_var_GCJ=no
21877 ;;
21878
21879 hpux9*)
21880 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021881 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000021882 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021883 archive_cmds_GCJ='$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'
John Criswell47fdd832003-07-14 16:52:07 +000021884 fi
21885 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21886 hardcode_libdir_separator_GCJ=:
21887 hardcode_direct_GCJ=yes
21888
21889 # hardcode_minus_L: Not really in the search PATH,
21890 # but as the default location of the library.
21891 hardcode_minus_L_GCJ=yes
21892 export_dynamic_flag_spec_GCJ='${wl}-E'
21893 ;;
21894
21895 hpux10* | hpux11*)
21896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21897 case "$host_cpu" in
21898 hppa*64*|ia64*)
21899 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21900 ;;
21901 *)
21902 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21903 ;;
21904 esac
21905 else
21906 case "$host_cpu" in
21907 hppa*64*|ia64*)
21908 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21909 ;;
21910 *)
21911 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21912 ;;
21913 esac
21914 fi
21915 if test "$with_gnu_ld" = no; then
21916 case "$host_cpu" in
21917 hppa*64*)
21918 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21919 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21920 hardcode_libdir_separator_GCJ=:
21921 hardcode_direct_GCJ=no
21922 hardcode_shlibpath_var_GCJ=no
21923 ;;
21924 ia64*)
21925 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21926 hardcode_direct_GCJ=no
21927 hardcode_shlibpath_var_GCJ=no
21928
21929 # hardcode_minus_L: Not really in the search PATH,
21930 # but as the default location of the library.
21931 hardcode_minus_L_GCJ=yes
21932 ;;
21933 *)
21934 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21935 hardcode_libdir_separator_GCJ=:
21936 hardcode_direct_GCJ=yes
21937 export_dynamic_flag_spec_GCJ='${wl}-E'
21938
21939 # hardcode_minus_L: Not really in the search PATH,
21940 # but as the default location of the library.
21941 hardcode_minus_L_GCJ=yes
21942 ;;
21943 esac
21944 fi
21945 ;;
21946
21947 irix5* | irix6* | nonstopux*)
21948 if test "$GCC" = yes; then
21949 archive_cmds_GCJ='$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'
21950 else
21951 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21952 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21953 fi
21954 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21955 hardcode_libdir_separator_GCJ=:
21956 link_all_deplibs_GCJ=yes
21957 ;;
21958
21959 netbsd*)
21960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21961 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21962 else
21963 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21964 fi
21965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21966 hardcode_direct_GCJ=yes
21967 hardcode_shlibpath_var_GCJ=no
21968 ;;
21969
21970 newsos6)
21971 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21972 hardcode_direct_GCJ=yes
21973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21974 hardcode_libdir_separator_GCJ=:
21975 hardcode_shlibpath_var_GCJ=no
21976 ;;
21977
21978 openbsd*)
21979 hardcode_direct_GCJ=yes
21980 hardcode_shlibpath_var_GCJ=no
21981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21982 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021983 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000021984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21985 export_dynamic_flag_spec_GCJ='${wl}-E'
21986 else
21987 case $host_os in
21988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21989 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21990 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21991 ;;
21992 *)
21993 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21995 ;;
21996 esac
21997 fi
21998 ;;
21999
22000 os2*)
22001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22002 hardcode_minus_L_GCJ=yes
22003 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022004 archive_cmds_GCJ='$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'
John Criswell47fdd832003-07-14 16:52:07 +000022005 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22006 ;;
22007
22008 osf3*)
22009 if test "$GCC" = yes; then
22010 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22011 archive_cmds_GCJ='$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'
22012 else
22013 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22014 archive_cmds_GCJ='$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'
22015 fi
22016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22017 hardcode_libdir_separator_GCJ=:
22018 ;;
22019
22020 osf4* | osf5*) # as osf3* with the addition of -msym flag
22021 if test "$GCC" = yes; then
22022 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22023 archive_cmds_GCJ='$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'
22024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22025 else
22026 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22027 archive_cmds_GCJ='$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'
Reid Spencer177dbe22004-10-13 01:01:03 +000022028 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22029 $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'
22030
John Criswell47fdd832003-07-14 16:52:07 +000022031 # Both c and cxx compiler support -rpath directly
22032 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22033 fi
22034 hardcode_libdir_separator_GCJ=:
22035 ;;
22036
22037 sco3.2v5*)
22038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22039 hardcode_shlibpath_var_GCJ=no
22040 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22041 runpath_var=LD_RUN_PATH
22042 hardcode_runpath_var=yes
22043 ;;
22044
22045 solaris*)
22046 no_undefined_flag_GCJ=' -z text'
22047 if test "$GCC" = yes; then
22048 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22050 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022051 else
22052 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022053 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22054 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022055 fi
22056 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22057 hardcode_shlibpath_var_GCJ=no
22058 case $host_os in
22059 solaris2.[0-5] | solaris2.[0-5].*) ;;
22060 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22061 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22062 esac
22063 link_all_deplibs_GCJ=yes
22064 ;;
22065
22066 sunos4*)
22067 if test "x$host_vendor" = xsequent; then
22068 # Use $CC to link under sequent, because it throws in some extra .o
22069 # files that make .init and .fini sections work.
22070 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22071 else
22072 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22073 fi
22074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22075 hardcode_direct_GCJ=yes
22076 hardcode_minus_L_GCJ=yes
22077 hardcode_shlibpath_var_GCJ=no
22078 ;;
22079
22080 sysv4)
22081 case $host_vendor in
22082 sni)
22083 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22084 hardcode_direct_GCJ=yes # is this really true???
22085 ;;
22086 siemens)
22087 ## LD is ld it makes a PLAMLIB
22088 ## CC just makes a GrossModule.
22089 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22090 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22091 hardcode_direct_GCJ=no
22092 ;;
22093 motorola)
22094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22095 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22096 ;;
22097 esac
22098 runpath_var='LD_RUN_PATH'
22099 hardcode_shlibpath_var_GCJ=no
22100 ;;
22101
22102 sysv4.3*)
22103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22104 hardcode_shlibpath_var_GCJ=no
22105 export_dynamic_flag_spec_GCJ='-Bexport'
22106 ;;
22107
22108 sysv4*MP*)
22109 if test -d /usr/nec; then
22110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22111 hardcode_shlibpath_var_GCJ=no
22112 runpath_var=LD_RUN_PATH
22113 hardcode_runpath_var=yes
22114 ld_shlibs_GCJ=yes
22115 fi
22116 ;;
22117
22118 sysv4.2uw2*)
22119 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22120 hardcode_direct_GCJ=yes
22121 hardcode_minus_L_GCJ=no
22122 hardcode_shlibpath_var_GCJ=no
22123 hardcode_runpath_var=yes
22124 runpath_var=LD_RUN_PATH
22125 ;;
22126
22127 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22128 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22129 if test "$GCC" = yes; then
22130 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22131 else
22132 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22133 fi
22134 runpath_var='LD_RUN_PATH'
22135 hardcode_shlibpath_var_GCJ=no
22136 ;;
22137
22138 sysv5*)
22139 no_undefined_flag_GCJ=' -z text'
22140 # $CC -shared without GNU ld will not create a library from C++
22141 # object files and a static libstdc++, better avoid it by now
22142 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022143 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22144 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022145 hardcode_libdir_flag_spec_GCJ=
22146 hardcode_shlibpath_var_GCJ=no
22147 runpath_var='LD_RUN_PATH'
22148 ;;
22149
22150 uts4*)
22151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22153 hardcode_shlibpath_var_GCJ=no
22154 ;;
22155
22156 *)
22157 ld_shlibs_GCJ=no
22158 ;;
22159 esac
22160 fi
22161
22162echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22163echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22164test "$ld_shlibs_GCJ" = no && can_build_shared=no
22165
22166variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22167if test "$GCC" = yes; then
22168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22169fi
22170
22171#
22172# Do we need to explicitly link libc?
22173#
22174case "x$archive_cmds_need_lc_GCJ" in
22175x|xyes)
22176 # Assume -lc should be added
22177 archive_cmds_need_lc_GCJ=yes
22178
22179 if test "$enable_shared" = yes && test "$GCC" = yes; then
22180 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022181 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022182 # FIXME: we may have to deal with multi-command sequences.
22183 ;;
22184 '$CC '*)
22185 # Test whether the compiler implicitly links with -lc since on some
22186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22187 # to ld, don't add -lc before -lgcc.
22188 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22189echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22190 $rm conftest*
22191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22192
22193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22194 (eval $ac_compile) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } 2>conftest.err; then
22198 soname=conftest
22199 lib=conftest
22200 libobjs=conftest.$ac_objext
22201 deplibs=
22202 wl=$lt_prog_compiler_wl_GCJ
22203 compiler_flags=-v
22204 linker_flags=-v
22205 verstring=
22206 output_objdir=.
22207 libname=conftest
22208 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22209 allow_undefined_flag_GCJ=
22210 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22211 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }
22215 then
22216 archive_cmds_need_lc_GCJ=no
22217 else
22218 archive_cmds_need_lc_GCJ=yes
22219 fi
22220 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22221 else
22222 cat conftest.err 1>&5
22223 fi
22224 $rm conftest*
22225 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22226echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22227 ;;
22228 esac
22229 fi
22230 ;;
22231esac
22232
John Criswell47fdd832003-07-14 16:52:07 +000022233echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22234echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22235library_names_spec=
22236libname_spec='lib$name'
22237soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022238shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022239postinstall_cmds=
22240postuninstall_cmds=
22241finish_cmds=
22242finish_eval=
22243shlibpath_var=
22244shlibpath_overrides_runpath=unknown
22245version_type=none
22246dynamic_linker="$host_os ld.so"
22247sys_lib_dlsearch_path_spec="/lib /usr/lib"
22248if test "$GCC" = yes; then
22249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22250 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22251 # if the path contains ";" then we assume it to be the separator
22252 # otherwise default to the standard path separator (i.e. ":") - it is
22253 # assumed that no part of a normal pathname contains ";" but that should
22254 # okay in the real world where ";" in dirpaths is itself problematic.
22255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22256 else
22257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22258 fi
22259else
22260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22261fi
22262need_lib_prefix=unknown
22263hardcode_into_libs=no
22264
22265# when you set need_version to no, make sure it does not cause -set_version
22266# flags to be left without arguments
22267need_version=unknown
22268
22269case $host_os in
22270aix3*)
22271 version_type=linux
22272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22273 shlibpath_var=LIBPATH
22274
22275 # AIX 3 has no versioning support, so we append a major version to the name.
22276 soname_spec='${libname}${release}${shared_ext}$major'
22277 ;;
22278
22279aix4* | aix5*)
22280 version_type=linux
22281 need_lib_prefix=no
22282 need_version=no
22283 hardcode_into_libs=yes
22284 if test "$host_cpu" = ia64; then
22285 # AIX 5 supports IA64
22286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22287 shlibpath_var=LD_LIBRARY_PATH
22288 else
22289 # With GCC up to 2.95.x, collect2 would create an import file
22290 # for dependence libraries. The import file would start with
22291 # the line `#! .'. This would cause the generated library to
22292 # depend on `.', always an invalid library. This was fixed in
22293 # development snapshots of GCC prior to 3.0.
22294 case $host_os in
22295 aix4 | aix4.[01] | aix4.[01].*)
22296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22297 echo ' yes '
22298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22299 :
22300 else
22301 can_build_shared=no
22302 fi
22303 ;;
22304 esac
22305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22306 # soname into executable. Probably we can add versioning support to
22307 # collect2, so additional links can be useful in future.
22308 if test "$aix_use_runtimelinking" = yes; then
22309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22310 # instead of lib<name>.a to let people know that these are not
22311 # typical AIX shared libraries.
22312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22313 else
22314 # We preserve .a as extension for shared libraries through AIX4.2
22315 # and later when we are not doing run time linking.
22316 library_names_spec='${libname}${release}.a $libname.a'
22317 soname_spec='${libname}${release}${shared_ext}$major'
22318 fi
22319 shlibpath_var=LIBPATH
22320 fi
22321 ;;
22322
22323amigaos*)
22324 library_names_spec='$libname.ixlibrary $libname.a'
22325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022326 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'
John Criswell47fdd832003-07-14 16:52:07 +000022327 ;;
22328
22329beos*)
22330 library_names_spec='${libname}${shared_ext}'
22331 dynamic_linker="$host_os ld.so"
22332 shlibpath_var=LIBRARY_PATH
22333 ;;
22334
Reid Spencer2706f8c2004-09-19 23:53:36 +000022335bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022336 version_type=linux
22337 need_version=no
22338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22339 soname_spec='${libname}${release}${shared_ext}$major'
22340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22341 shlibpath_var=LD_LIBRARY_PATH
22342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22344 # the default ld.so.conf also contains /usr/contrib/lib and
22345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22346 # libtool to hard-code these into programs
22347 ;;
22348
22349cygwin* | mingw* | pw32*)
22350 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022351 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022352 need_version=no
22353 need_lib_prefix=no
22354
22355 case $GCC,$host_os in
22356 yes,cygwin* | yes,mingw* | yes,pw32*)
22357 library_names_spec='$libname.dll.a'
22358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022359 postinstall_cmds='base_file=`basename \${file}`~
22360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22361 dldir=$destdir/`dirname \$dlpath`~
22362 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022363 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22365 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022366 $rm \$dlpath'
22367 shlibpath_overrides_runpath=yes
22368
22369 case $host_os in
22370 cygwin*)
22371 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22372 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022373 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022374 ;;
22375 mingw*)
22376 # MinGW DLLs use traditional 'lib' prefix
22377 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22378 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22379 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22380 # It is most probably a Windows format PATH printed by
22381 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22382 # path with ; separators, and with drive letters. We can handle the
22383 # drive letters (cygwin fileutils understands them), so leave them,
22384 # especially as we might pass files found there to a mingw objdump,
22385 # which wouldn't understand a cygwinified path. Ahh.
22386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22387 else
22388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22389 fi
22390 ;;
22391 pw32*)
22392 # pw32 DLLs use 'pw' prefix rather than 'lib'
22393 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22394 ;;
22395 esac
22396 ;;
22397
22398 *)
22399 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22400 ;;
22401 esac
22402 dynamic_linker='Win32 ld.exe'
22403 # FIXME: first we should search . and the directory the executable is in
22404 shlibpath_var=PATH
22405 ;;
22406
22407darwin* | rhapsody*)
22408 dynamic_linker="$host_os dyld"
22409 version_type=darwin
22410 need_lib_prefix=no
22411 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022412 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022413 soname_spec='${libname}${release}${major}$shared_ext'
22414 shlibpath_overrides_runpath=yes
22415 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022416 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022417 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022418 if test "$GCC" = yes; then
22419 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22420 else
22421 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022422 fi
22423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22424 ;;
22425
22426dgux*)
22427 version_type=linux
22428 need_lib_prefix=no
22429 need_version=no
22430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22431 soname_spec='${libname}${release}${shared_ext}$major'
22432 shlibpath_var=LD_LIBRARY_PATH
22433 ;;
22434
22435freebsd1*)
22436 dynamic_linker=no
22437 ;;
22438
Reid Spencer2706f8c2004-09-19 23:53:36 +000022439kfreebsd*-gnu)
22440 version_type=linux
22441 need_lib_prefix=no
22442 need_version=no
22443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22444 soname_spec='${libname}${release}${shared_ext}$major'
22445 shlibpath_var=LD_LIBRARY_PATH
22446 shlibpath_overrides_runpath=no
22447 hardcode_into_libs=yes
22448 dynamic_linker='GNU ld.so'
22449 ;;
22450
John Criswell47fdd832003-07-14 16:52:07 +000022451freebsd*)
22452 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22453 version_type=freebsd-$objformat
22454 case $version_type in
22455 freebsd-elf*)
22456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22457 need_version=no
22458 need_lib_prefix=no
22459 ;;
22460 freebsd-*)
22461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22462 need_version=yes
22463 ;;
22464 esac
22465 shlibpath_var=LD_LIBRARY_PATH
22466 case $host_os in
22467 freebsd2*)
22468 shlibpath_overrides_runpath=yes
22469 ;;
22470 freebsd3.01* | freebsdelf3.01*)
22471 shlibpath_overrides_runpath=yes
22472 hardcode_into_libs=yes
22473 ;;
22474 *) # from 3.2 on
22475 shlibpath_overrides_runpath=no
22476 hardcode_into_libs=yes
22477 ;;
22478 esac
22479 ;;
22480
22481gnu*)
22482 version_type=linux
22483 need_lib_prefix=no
22484 need_version=no
22485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22486 soname_spec='${libname}${release}${shared_ext}$major'
22487 shlibpath_var=LD_LIBRARY_PATH
22488 hardcode_into_libs=yes
22489 ;;
22490
22491hpux9* | hpux10* | hpux11*)
22492 # Give a soname corresponding to the major version so that dld.sl refuses to
22493 # link against other versions.
22494 version_type=sunos
22495 need_lib_prefix=no
22496 need_version=no
22497 case "$host_cpu" in
22498 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022499 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022500 hardcode_into_libs=yes
22501 dynamic_linker="$host_os dld.so"
22502 shlibpath_var=LD_LIBRARY_PATH
22503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22505 soname_spec='${libname}${release}${shared_ext}$major'
22506 if test "X$HPUX_IA64_MODE" = X32; then
22507 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22508 else
22509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22510 fi
22511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22512 ;;
22513 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022514 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022515 hardcode_into_libs=yes
22516 dynamic_linker="$host_os dld.sl"
22517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22520 soname_spec='${libname}${release}${shared_ext}$major'
22521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22523 ;;
22524 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022525 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022526 dynamic_linker="$host_os dld.sl"
22527 shlibpath_var=SHLIB_PATH
22528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22530 soname_spec='${libname}${release}${shared_ext}$major'
22531 ;;
22532 esac
22533 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22534 postinstall_cmds='chmod 555 $lib'
22535 ;;
22536
22537irix5* | irix6* | nonstopux*)
22538 case $host_os in
22539 nonstopux*) version_type=nonstopux ;;
22540 *)
22541 if test "$lt_cv_prog_gnu_ld" = yes; then
22542 version_type=linux
22543 else
22544 version_type=irix
22545 fi ;;
22546 esac
22547 need_lib_prefix=no
22548 need_version=no
22549 soname_spec='${libname}${release}${shared_ext}$major'
22550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22551 case $host_os in
22552 irix5* | nonstopux*)
22553 libsuff= shlibsuff=
22554 ;;
22555 *)
22556 case $LD in # libtool.m4 will add one of these switches to LD
22557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22558 libsuff= shlibsuff= libmagic=32-bit;;
22559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22560 libsuff=32 shlibsuff=N32 libmagic=N32;;
22561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22563 *) libsuff= shlibsuff= libmagic=never-match;;
22564 esac
22565 ;;
22566 esac
22567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22568 shlibpath_overrides_runpath=no
22569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22571 hardcode_into_libs=yes
22572 ;;
22573
22574# No shared lib support for Linux oldld, aout, or coff.
22575linux*oldld* | linux*aout* | linux*coff*)
22576 dynamic_linker=no
22577 ;;
22578
22579# This must be Linux ELF.
22580linux*)
22581 version_type=linux
22582 need_lib_prefix=no
22583 need_version=no
22584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22585 soname_spec='${libname}${release}${shared_ext}$major'
22586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22587 shlibpath_var=LD_LIBRARY_PATH
22588 shlibpath_overrides_runpath=no
22589 # This implies no fast_install, which is unacceptable.
22590 # Some rework will be needed to allow for fast_install
22591 # before this can be enabled.
22592 hardcode_into_libs=yes
22593
Reid Spencer2706f8c2004-09-19 23:53:36 +000022594 # Append ld.so.conf contents to the search path
22595 if test -f /etc/ld.so.conf; then
22596 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22598 fi
22599
John Criswell47fdd832003-07-14 16:52:07 +000022600 # We used to test for /lib/ld.so.1 and disable shared libraries on
22601 # powerpc, because MkLinux only supported shared libraries with the
22602 # GNU dynamic linker. Since this was broken with cross compilers,
22603 # most powerpc-linux boxes support dynamic linking these days and
22604 # people can always --disable-shared, the test was removed, and we
22605 # assume the GNU/Linux dynamic linker is in use.
22606 dynamic_linker='GNU/Linux ld.so'
22607 ;;
22608
Reid Spencer2706f8c2004-09-19 23:53:36 +000022609knetbsd*-gnu)
22610 version_type=linux
22611 need_lib_prefix=no
22612 need_version=no
22613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22615 shlibpath_var=LD_LIBRARY_PATH
22616 shlibpath_overrides_runpath=no
22617 hardcode_into_libs=yes
22618 dynamic_linker='GNU ld.so'
22619 ;;
22620
John Criswell47fdd832003-07-14 16:52:07 +000022621netbsd*)
22622 version_type=sunos
22623 need_lib_prefix=no
22624 need_version=no
22625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22628 dynamic_linker='NetBSD (a.out) ld.so'
22629 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022631 soname_spec='${libname}${release}${shared_ext}$major'
22632 dynamic_linker='NetBSD ld.elf_so'
22633 fi
22634 shlibpath_var=LD_LIBRARY_PATH
22635 shlibpath_overrides_runpath=yes
22636 hardcode_into_libs=yes
22637 ;;
22638
22639newsos6)
22640 version_type=linux
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22642 shlibpath_var=LD_LIBRARY_PATH
22643 shlibpath_overrides_runpath=yes
22644 ;;
22645
Reid Spencer2706f8c2004-09-19 23:53:36 +000022646nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022647 version_type=linux
22648 need_lib_prefix=no
22649 need_version=no
22650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651 soname_spec='${libname}${release}${shared_ext}$major'
22652 shlibpath_var=LD_LIBRARY_PATH
22653 shlibpath_overrides_runpath=yes
22654 ;;
22655
22656openbsd*)
22657 version_type=sunos
22658 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022659 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22662 shlibpath_var=LD_LIBRARY_PATH
22663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22664 case $host_os in
22665 openbsd2.[89] | openbsd2.[89].*)
22666 shlibpath_overrides_runpath=no
22667 ;;
22668 *)
22669 shlibpath_overrides_runpath=yes
22670 ;;
22671 esac
22672 else
22673 shlibpath_overrides_runpath=yes
22674 fi
22675 ;;
22676
22677os2*)
22678 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022679 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022680 need_lib_prefix=no
22681 library_names_spec='$libname${shared_ext} $libname.a'
22682 dynamic_linker='OS/2 ld.exe'
22683 shlibpath_var=LIBPATH
22684 ;;
22685
22686osf3* | osf4* | osf5*)
22687 version_type=osf
22688 need_lib_prefix=no
22689 need_version=no
22690 soname_spec='${libname}${release}${shared_ext}$major'
22691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22692 shlibpath_var=LD_LIBRARY_PATH
22693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22695 ;;
22696
22697sco3.2v5*)
22698 version_type=osf
22699 soname_spec='${libname}${release}${shared_ext}$major'
22700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22701 shlibpath_var=LD_LIBRARY_PATH
22702 ;;
22703
22704solaris*)
22705 version_type=linux
22706 need_lib_prefix=no
22707 need_version=no
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709 soname_spec='${libname}${release}${shared_ext}$major'
22710 shlibpath_var=LD_LIBRARY_PATH
22711 shlibpath_overrides_runpath=yes
22712 hardcode_into_libs=yes
22713 # ldd complains unless libraries are executable
22714 postinstall_cmds='chmod +x $lib'
22715 ;;
22716
22717sunos4*)
22718 version_type=sunos
22719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22720 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22721 shlibpath_var=LD_LIBRARY_PATH
22722 shlibpath_overrides_runpath=yes
22723 if test "$with_gnu_ld" = yes; then
22724 need_lib_prefix=no
22725 fi
22726 need_version=yes
22727 ;;
22728
22729sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22730 version_type=linux
22731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22732 soname_spec='${libname}${release}${shared_ext}$major'
22733 shlibpath_var=LD_LIBRARY_PATH
22734 case $host_vendor in
22735 sni)
22736 shlibpath_overrides_runpath=no
22737 need_lib_prefix=no
22738 export_dynamic_flag_spec='${wl}-Blargedynsym'
22739 runpath_var=LD_RUN_PATH
22740 ;;
22741 siemens)
22742 need_lib_prefix=no
22743 ;;
22744 motorola)
22745 need_lib_prefix=no
22746 need_version=no
22747 shlibpath_overrides_runpath=no
22748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22749 ;;
22750 esac
22751 ;;
22752
22753sysv4*MP*)
22754 if test -d /usr/nec ;then
22755 version_type=linux
22756 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22757 soname_spec='$libname${shared_ext}.$major'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 fi
22760 ;;
22761
22762uts4*)
22763 version_type=linux
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765 soname_spec='${libname}${release}${shared_ext}$major'
22766 shlibpath_var=LD_LIBRARY_PATH
22767 ;;
22768
22769*)
22770 dynamic_linker=no
22771 ;;
22772esac
22773echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22774echo "${ECHO_T}$dynamic_linker" >&6
22775test "$dynamic_linker" = no && can_build_shared=no
22776
Reid Spencer2706f8c2004-09-19 23:53:36 +000022777echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22778echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22779hardcode_action_GCJ=
22780if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22781 test -n "$runpath_var_GCJ" || \
22782 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22783
22784 # We can hardcode non-existant directories.
22785 if test "$hardcode_direct_GCJ" != no &&
22786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22787 # have to relink, otherwise we might link with an installed library
22788 # when we should be linking with a yet-to-be-installed one
22789 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22790 test "$hardcode_minus_L_GCJ" != no; then
22791 # Linking always hardcodes the temporary library directory.
22792 hardcode_action_GCJ=relink
22793 else
22794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22795 hardcode_action_GCJ=immediate
22796 fi
22797else
22798 # We cannot hardcode anything, or else we can only hardcode existing
22799 # directories.
22800 hardcode_action_GCJ=unsupported
22801fi
22802echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22803echo "${ECHO_T}$hardcode_action_GCJ" >&6
22804
22805if test "$hardcode_action_GCJ" = relink; then
22806 # Fast installation is not supported
22807 enable_fast_install=no
22808elif test "$shlibpath_overrides_runpath" = yes ||
22809 test "$enable_shared" = no; then
22810 # Fast installation is not necessary
22811 enable_fast_install=needless
22812fi
22813
22814striplib=
22815old_striplib=
22816echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22817echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22818if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22819 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22820 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22821 echo "$as_me:$LINENO: result: yes" >&5
22822echo "${ECHO_T}yes" >&6
22823else
22824# FIXME - insert some real tests, host_os isn't really good enough
22825 case $host_os in
22826 darwin*)
22827 if test -n "$STRIP" ; then
22828 striplib="$STRIP -x"
22829 echo "$as_me:$LINENO: result: yes" >&5
22830echo "${ECHO_T}yes" >&6
22831 else
22832 echo "$as_me:$LINENO: result: no" >&5
22833echo "${ECHO_T}no" >&6
22834fi
22835 ;;
22836 *)
22837 echo "$as_me:$LINENO: result: no" >&5
22838echo "${ECHO_T}no" >&6
22839 ;;
22840 esac
22841fi
22842
John Criswell47fdd832003-07-14 16:52:07 +000022843if test "x$enable_dlopen" != xyes; then
22844 enable_dlopen=unknown
22845 enable_dlopen_self=unknown
22846 enable_dlopen_self_static=unknown
22847else
22848 lt_cv_dlopen=no
22849 lt_cv_dlopen_libs=
22850
22851 case $host_os in
22852 beos*)
22853 lt_cv_dlopen="load_add_on"
22854 lt_cv_dlopen_libs=
22855 lt_cv_dlopen_self=yes
22856 ;;
22857
22858 mingw* | pw32*)
22859 lt_cv_dlopen="LoadLibrary"
22860 lt_cv_dlopen_libs=
22861 ;;
22862
22863 cygwin*)
22864 lt_cv_dlopen="dlopen"
22865 lt_cv_dlopen_libs=
22866 ;;
22867
22868 darwin*)
22869 # if libdl is installed we need to link against it
22870 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22871echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22872if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22873 echo $ECHO_N "(cached) $ECHO_C" >&6
22874else
22875 ac_check_lib_save_LIBS=$LIBS
22876LIBS="-ldl $LIBS"
22877cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022878/* confdefs.h. */
22879_ACEOF
22880cat confdefs.h >>conftest.$ac_ext
22881cat >>conftest.$ac_ext <<_ACEOF
22882/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022883
22884/* Override any gcc2 internal prototype to avoid an error. */
22885#ifdef __cplusplus
22886extern "C"
22887#endif
22888/* We use char because int might match the return type of a gcc2
22889 builtin and then its argument prototype would still apply. */
22890char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022891int
22892main ()
22893{
22894dlopen ();
22895 ;
22896 return 0;
22897}
22898_ACEOF
22899rm -f conftest.$ac_objext conftest$ac_exeext
22900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022901 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022902 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022903 grep -v '^ *+' conftest.er1 >conftest.err
22904 rm -f conftest.er1
22905 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022908 { ac_try='test -z "$ac_c_werror_flag"
22909 || test ! -s conftest.err'
22910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911 (eval $ac_try) 2>&5
22912 ac_status=$?
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }; } &&
22915 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22918 ac_status=$?
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; }; then
22921 ac_cv_lib_dl_dlopen=yes
22922else
22923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022924sed 's/^/| /' conftest.$ac_ext >&5
22925
John Criswell47fdd832003-07-14 16:52:07 +000022926ac_cv_lib_dl_dlopen=no
22927fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022928rm -f conftest.err conftest.$ac_objext \
22929 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022930LIBS=$ac_check_lib_save_LIBS
22931fi
22932echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22933echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22934if test $ac_cv_lib_dl_dlopen = yes; then
22935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22936else
22937
22938 lt_cv_dlopen="dyld"
22939 lt_cv_dlopen_libs=
22940 lt_cv_dlopen_self=yes
22941
22942fi
22943
22944 ;;
22945
22946 *)
22947 echo "$as_me:$LINENO: checking for shl_load" >&5
22948echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22949if test "${ac_cv_func_shl_load+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22951else
22952 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022953/* confdefs.h. */
22954_ACEOF
22955cat confdefs.h >>conftest.$ac_ext
22956cat >>conftest.$ac_ext <<_ACEOF
22957/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022958/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22960#define shl_load innocuous_shl_load
22961
John Criswell47fdd832003-07-14 16:52:07 +000022962/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022963 which can conflict with char shl_load (); below.
22964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22965 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022966
John Criswell0c38eaf2003-09-10 15:17:25 +000022967#ifdef __STDC__
22968# include <limits.h>
22969#else
22970# include <assert.h>
22971#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022972
22973#undef shl_load
22974
John Criswell47fdd832003-07-14 16:52:07 +000022975/* Override any gcc2 internal prototype to avoid an error. */
22976#ifdef __cplusplus
22977extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022978{
John Criswell47fdd832003-07-14 16:52:07 +000022979#endif
22980/* We use char because int might match the return type of a gcc2
22981 builtin and then its argument prototype would still apply. */
22982char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022983/* The GNU C library defines this for functions which it implements
22984 to always fail with ENOSYS. Some functions are actually named
22985 something starting with __ and the normal name is an alias. */
22986#if defined (__stub_shl_load) || defined (__stub___shl_load)
22987choke me
22988#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022989char (*f) () = shl_load;
22990#endif
22991#ifdef __cplusplus
22992}
John Criswell47fdd832003-07-14 16:52:07 +000022993#endif
22994
John Criswell0c38eaf2003-09-10 15:17:25 +000022995int
22996main ()
22997{
22998return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000022999 ;
23000 return 0;
23001}
23002_ACEOF
23003rm -f conftest.$ac_objext conftest$ac_exeext
23004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023005 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023006 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023012 { ac_try='test -z "$ac_c_werror_flag"
23013 || test ! -s conftest.err'
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 ac_cv_func_shl_load=yes
23026else
23027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023028sed 's/^/| /' conftest.$ac_ext >&5
23029
John Criswell47fdd832003-07-14 16:52:07 +000023030ac_cv_func_shl_load=no
23031fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023032rm -f conftest.err conftest.$ac_objext \
23033 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023034fi
23035echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23036echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23037if test $ac_cv_func_shl_load = yes; then
23038 lt_cv_dlopen="shl_load"
23039else
23040 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23041echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23042if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23044else
23045 ac_check_lib_save_LIBS=$LIBS
23046LIBS="-ldld $LIBS"
23047cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023048/* confdefs.h. */
23049_ACEOF
23050cat confdefs.h >>conftest.$ac_ext
23051cat >>conftest.$ac_ext <<_ACEOF
23052/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023053
23054/* Override any gcc2 internal prototype to avoid an error. */
23055#ifdef __cplusplus
23056extern "C"
23057#endif
23058/* We use char because int might match the return type of a gcc2
23059 builtin and then its argument prototype would still apply. */
23060char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023061int
23062main ()
23063{
23064shl_load ();
23065 ;
23066 return 0;
23067}
23068_ACEOF
23069rm -f conftest.$ac_objext conftest$ac_exeext
23070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023071 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023072 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023073 grep -v '^ *+' conftest.er1 >conftest.err
23074 rm -f conftest.er1
23075 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023078 { ac_try='test -z "$ac_c_werror_flag"
23079 || test ! -s conftest.err'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 ac_cv_lib_dld_shl_load=yes
23092else
23093 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023094sed 's/^/| /' conftest.$ac_ext >&5
23095
John Criswell47fdd832003-07-14 16:52:07 +000023096ac_cv_lib_dld_shl_load=no
23097fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023098rm -f conftest.err conftest.$ac_objext \
23099 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023100LIBS=$ac_check_lib_save_LIBS
23101fi
23102echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23103echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23104if test $ac_cv_lib_dld_shl_load = yes; then
23105 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23106else
23107 echo "$as_me:$LINENO: checking for dlopen" >&5
23108echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23109if test "${ac_cv_func_dlopen+set}" = set; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23111else
23112 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023113/* confdefs.h. */
23114_ACEOF
23115cat confdefs.h >>conftest.$ac_ext
23116cat >>conftest.$ac_ext <<_ACEOF
23117/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023118/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23120#define dlopen innocuous_dlopen
23121
John Criswell47fdd832003-07-14 16:52:07 +000023122/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023123 which can conflict with char dlopen (); below.
23124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23125 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023126
John Criswell0c38eaf2003-09-10 15:17:25 +000023127#ifdef __STDC__
23128# include <limits.h>
23129#else
23130# include <assert.h>
23131#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023132
23133#undef dlopen
23134
John Criswell47fdd832003-07-14 16:52:07 +000023135/* Override any gcc2 internal prototype to avoid an error. */
23136#ifdef __cplusplus
23137extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023138{
John Criswell47fdd832003-07-14 16:52:07 +000023139#endif
23140/* We use char because int might match the return type of a gcc2
23141 builtin and then its argument prototype would still apply. */
23142char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023143/* The GNU C library defines this for functions which it implements
23144 to always fail with ENOSYS. Some functions are actually named
23145 something starting with __ and the normal name is an alias. */
23146#if defined (__stub_dlopen) || defined (__stub___dlopen)
23147choke me
23148#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023149char (*f) () = dlopen;
23150#endif
23151#ifdef __cplusplus
23152}
John Criswell47fdd832003-07-14 16:52:07 +000023153#endif
23154
John Criswell0c38eaf2003-09-10 15:17:25 +000023155int
23156main ()
23157{
23158return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023159 ;
23160 return 0;
23161}
23162_ACEOF
23163rm -f conftest.$ac_objext conftest$ac_exeext
23164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023165 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023166 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023172 { ac_try='test -z "$ac_c_werror_flag"
23173 || test ! -s conftest.err'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; } &&
23179 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181 (eval $ac_try) 2>&5
23182 ac_status=$?
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); }; }; then
23185 ac_cv_func_dlopen=yes
23186else
23187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023188sed 's/^/| /' conftest.$ac_ext >&5
23189
John Criswell47fdd832003-07-14 16:52:07 +000023190ac_cv_func_dlopen=no
23191fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023192rm -f conftest.err conftest.$ac_objext \
23193 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023194fi
23195echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23196echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23197if test $ac_cv_func_dlopen = yes; then
23198 lt_cv_dlopen="dlopen"
23199else
23200 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23201echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23202if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23204else
23205 ac_check_lib_save_LIBS=$LIBS
23206LIBS="-ldl $LIBS"
23207cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023208/* confdefs.h. */
23209_ACEOF
23210cat confdefs.h >>conftest.$ac_ext
23211cat >>conftest.$ac_ext <<_ACEOF
23212/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023213
23214/* Override any gcc2 internal prototype to avoid an error. */
23215#ifdef __cplusplus
23216extern "C"
23217#endif
23218/* We use char because int might match the return type of a gcc2
23219 builtin and then its argument prototype would still apply. */
23220char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023221int
23222main ()
23223{
23224dlopen ();
23225 ;
23226 return 0;
23227}
23228_ACEOF
23229rm -f conftest.$ac_objext conftest$ac_exeext
23230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023231 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023233 grep -v '^ *+' conftest.er1 >conftest.err
23234 rm -f conftest.er1
23235 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023238 { ac_try='test -z "$ac_c_werror_flag"
23239 || test ! -s conftest.err'
23240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241 (eval $ac_try) 2>&5
23242 ac_status=$?
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); }; } &&
23245 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247 (eval $ac_try) 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; }; then
23251 ac_cv_lib_dl_dlopen=yes
23252else
23253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023254sed 's/^/| /' conftest.$ac_ext >&5
23255
John Criswell47fdd832003-07-14 16:52:07 +000023256ac_cv_lib_dl_dlopen=no
23257fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258rm -f conftest.err conftest.$ac_objext \
23259 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023260LIBS=$ac_check_lib_save_LIBS
23261fi
23262echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23263echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23264if test $ac_cv_lib_dl_dlopen = yes; then
23265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23266else
23267 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23268echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23269if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23271else
23272 ac_check_lib_save_LIBS=$LIBS
23273LIBS="-lsvld $LIBS"
23274cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023275/* confdefs.h. */
23276_ACEOF
23277cat confdefs.h >>conftest.$ac_ext
23278cat >>conftest.$ac_ext <<_ACEOF
23279/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023280
23281/* Override any gcc2 internal prototype to avoid an error. */
23282#ifdef __cplusplus
23283extern "C"
23284#endif
23285/* We use char because int might match the return type of a gcc2
23286 builtin and then its argument prototype would still apply. */
23287char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023288int
23289main ()
23290{
23291dlopen ();
23292 ;
23293 return 0;
23294}
23295_ACEOF
23296rm -f conftest.$ac_objext conftest$ac_exeext
23297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023298 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023299 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023300 grep -v '^ *+' conftest.er1 >conftest.err
23301 rm -f conftest.er1
23302 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023305 { ac_try='test -z "$ac_c_werror_flag"
23306 || test ! -s conftest.err'
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; } &&
23312 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23315 ac_status=$?
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; }; then
23318 ac_cv_lib_svld_dlopen=yes
23319else
23320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023321sed 's/^/| /' conftest.$ac_ext >&5
23322
John Criswell47fdd832003-07-14 16:52:07 +000023323ac_cv_lib_svld_dlopen=no
23324fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023325rm -f conftest.err conftest.$ac_objext \
23326 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023327LIBS=$ac_check_lib_save_LIBS
23328fi
23329echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23330echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23331if test $ac_cv_lib_svld_dlopen = yes; then
23332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23333else
23334 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23335echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23336if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23337 echo $ECHO_N "(cached) $ECHO_C" >&6
23338else
23339 ac_check_lib_save_LIBS=$LIBS
23340LIBS="-ldld $LIBS"
23341cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023342/* confdefs.h. */
23343_ACEOF
23344cat confdefs.h >>conftest.$ac_ext
23345cat >>conftest.$ac_ext <<_ACEOF
23346/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023347
23348/* Override any gcc2 internal prototype to avoid an error. */
23349#ifdef __cplusplus
23350extern "C"
23351#endif
23352/* We use char because int might match the return type of a gcc2
23353 builtin and then its argument prototype would still apply. */
23354char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023355int
23356main ()
23357{
23358dld_link ();
23359 ;
23360 return 0;
23361}
23362_ACEOF
23363rm -f conftest.$ac_objext conftest$ac_exeext
23364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023365 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023366 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023367 grep -v '^ *+' conftest.er1 >conftest.err
23368 rm -f conftest.er1
23369 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023372 { ac_try='test -z "$ac_c_werror_flag"
23373 || test ! -s conftest.err'
23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375 (eval $ac_try) 2>&5
23376 ac_status=$?
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); }; } &&
23379 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23382 ac_status=$?
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_lib_dld_dld_link=yes
23386else
23387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023388sed 's/^/| /' conftest.$ac_ext >&5
23389
John Criswell47fdd832003-07-14 16:52:07 +000023390ac_cv_lib_dld_dld_link=no
23391fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023392rm -f conftest.err conftest.$ac_objext \
23393 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023394LIBS=$ac_check_lib_save_LIBS
23395fi
23396echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23397echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23398if test $ac_cv_lib_dld_dld_link = yes; then
23399 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23400fi
23401
23402
23403fi
23404
23405
23406fi
23407
23408
23409fi
23410
23411
23412fi
23413
23414
23415fi
23416
23417 ;;
23418 esac
23419
23420 if test "x$lt_cv_dlopen" != xno; then
23421 enable_dlopen=yes
23422 else
23423 enable_dlopen=no
23424 fi
23425
23426 case $lt_cv_dlopen in
23427 dlopen)
23428 save_CPPFLAGS="$CPPFLAGS"
23429 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23430
23431 save_LDFLAGS="$LDFLAGS"
23432 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23433
23434 save_LIBS="$LIBS"
23435 LIBS="$lt_cv_dlopen_libs $LIBS"
23436
23437 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23438echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23439if test "${lt_cv_dlopen_self+set}" = set; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23441else
23442 if test "$cross_compiling" = yes; then :
23443 lt_cv_dlopen_self=cross
23444else
23445 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23446 lt_status=$lt_dlunknown
23447 cat > conftest.$ac_ext <<EOF
Reid Spencercda35f82004-12-02 04:17:20 +000023448#line 23448 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023449#include "confdefs.h"
23450
23451#if HAVE_DLFCN_H
23452#include <dlfcn.h>
23453#endif
23454
23455#include <stdio.h>
23456
23457#ifdef RTLD_GLOBAL
23458# define LT_DLGLOBAL RTLD_GLOBAL
23459#else
23460# ifdef DL_GLOBAL
23461# define LT_DLGLOBAL DL_GLOBAL
23462# else
23463# define LT_DLGLOBAL 0
23464# endif
23465#endif
23466
23467/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23468 find out it does not work in some platform. */
23469#ifndef LT_DLLAZY_OR_NOW
23470# ifdef RTLD_LAZY
23471# define LT_DLLAZY_OR_NOW RTLD_LAZY
23472# else
23473# ifdef DL_LAZY
23474# define LT_DLLAZY_OR_NOW DL_LAZY
23475# else
23476# ifdef RTLD_NOW
23477# define LT_DLLAZY_OR_NOW RTLD_NOW
23478# else
23479# ifdef DL_NOW
23480# define LT_DLLAZY_OR_NOW DL_NOW
23481# else
23482# define LT_DLLAZY_OR_NOW 0
23483# endif
23484# endif
23485# endif
23486# endif
23487#endif
23488
23489#ifdef __cplusplus
23490extern "C" void exit (int);
23491#endif
23492
23493void fnord() { int i=42;}
23494int main ()
23495{
23496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23497 int status = $lt_dlunknown;
23498
23499 if (self)
23500 {
23501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23502 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23503 /* dlclose (self); */
23504 }
23505
23506 exit (status);
23507}
23508EOF
23509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510 (eval $ac_link) 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23514 (./conftest; exit; ) 2>/dev/null
23515 lt_status=$?
23516 case x$lt_status in
23517 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23518 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23519 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23520 esac
23521 else :
23522 # compilation failed
23523 lt_cv_dlopen_self=no
23524 fi
23525fi
23526rm -fr conftest*
23527
23528
23529fi
23530echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23531echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23532
23533 if test "x$lt_cv_dlopen_self" = xyes; then
23534 LDFLAGS="$LDFLAGS $link_static_flag"
23535 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23536echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23537if test "${lt_cv_dlopen_self_static+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23539else
23540 if test "$cross_compiling" = yes; then :
23541 lt_cv_dlopen_self_static=cross
23542else
23543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23544 lt_status=$lt_dlunknown
23545 cat > conftest.$ac_ext <<EOF
Reid Spencercda35f82004-12-02 04:17:20 +000023546#line 23546 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023547#include "confdefs.h"
23548
23549#if HAVE_DLFCN_H
23550#include <dlfcn.h>
23551#endif
23552
23553#include <stdio.h>
23554
23555#ifdef RTLD_GLOBAL
23556# define LT_DLGLOBAL RTLD_GLOBAL
23557#else
23558# ifdef DL_GLOBAL
23559# define LT_DLGLOBAL DL_GLOBAL
23560# else
23561# define LT_DLGLOBAL 0
23562# endif
23563#endif
23564
23565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23566 find out it does not work in some platform. */
23567#ifndef LT_DLLAZY_OR_NOW
23568# ifdef RTLD_LAZY
23569# define LT_DLLAZY_OR_NOW RTLD_LAZY
23570# else
23571# ifdef DL_LAZY
23572# define LT_DLLAZY_OR_NOW DL_LAZY
23573# else
23574# ifdef RTLD_NOW
23575# define LT_DLLAZY_OR_NOW RTLD_NOW
23576# else
23577# ifdef DL_NOW
23578# define LT_DLLAZY_OR_NOW DL_NOW
23579# else
23580# define LT_DLLAZY_OR_NOW 0
23581# endif
23582# endif
23583# endif
23584# endif
23585#endif
23586
23587#ifdef __cplusplus
23588extern "C" void exit (int);
23589#endif
23590
23591void fnord() { int i=42;}
23592int main ()
23593{
23594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23595 int status = $lt_dlunknown;
23596
23597 if (self)
23598 {
23599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23601 /* dlclose (self); */
23602 }
23603
23604 exit (status);
23605}
23606EOF
23607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23608 (eval $ac_link) 2>&5
23609 ac_status=$?
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23612 (./conftest; exit; ) 2>/dev/null
23613 lt_status=$?
23614 case x$lt_status in
23615 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23616 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23617 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23618 esac
23619 else :
23620 # compilation failed
23621 lt_cv_dlopen_self_static=no
23622 fi
23623fi
23624rm -fr conftest*
23625
23626
23627fi
23628echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23629echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23630 fi
23631
23632 CPPFLAGS="$save_CPPFLAGS"
23633 LDFLAGS="$save_LDFLAGS"
23634 LIBS="$save_LIBS"
23635 ;;
23636 esac
23637
23638 case $lt_cv_dlopen_self in
23639 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23640 *) enable_dlopen_self=unknown ;;
23641 esac
23642
23643 case $lt_cv_dlopen_self_static in
23644 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23645 *) enable_dlopen_self_static=unknown ;;
23646 esac
23647fi
23648
23649
23650# The else clause should only fire when bootstrapping the
23651# libtool distribution, otherwise you forgot to ship ltmain.sh
23652# with your package, and you will get complaints that there are
23653# no rules to generate ltmain.sh.
23654if test -f "$ltmain"; then
23655 # See if we are running on zsh, and set the options which allow our commands through
23656 # without removal of \ escapes.
23657 if test -n "${ZSH_VERSION+set}" ; then
23658 setopt NO_GLOB_SUBST
23659 fi
23660 # Now quote all the things that may contain metacharacters while being
23661 # careful not to overquote the AC_SUBSTed values. We take copies of the
23662 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23664 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23667 deplibs_check_method reload_flag reload_cmds need_locks \
23668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23669 lt_cv_sys_global_symbol_to_c_name_address \
23670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23671 old_postinstall_cmds old_postuninstall_cmds \
23672 compiler_GCJ \
23673 CC_GCJ \
23674 LD_GCJ \
23675 lt_prog_compiler_wl_GCJ \
23676 lt_prog_compiler_pic_GCJ \
23677 lt_prog_compiler_static_GCJ \
23678 lt_prog_compiler_no_builtin_flag_GCJ \
23679 export_dynamic_flag_spec_GCJ \
23680 thread_safe_flag_spec_GCJ \
23681 whole_archive_flag_spec_GCJ \
23682 enable_shared_with_static_runtimes_GCJ \
23683 old_archive_cmds_GCJ \
23684 old_archive_from_new_cmds_GCJ \
23685 predep_objects_GCJ \
23686 postdep_objects_GCJ \
23687 predeps_GCJ \
23688 postdeps_GCJ \
23689 compiler_lib_search_path_GCJ \
23690 archive_cmds_GCJ \
23691 archive_expsym_cmds_GCJ \
23692 postinstall_cmds_GCJ \
23693 postuninstall_cmds_GCJ \
23694 old_archive_from_expsyms_cmds_GCJ \
23695 allow_undefined_flag_GCJ \
23696 no_undefined_flag_GCJ \
23697 export_symbols_cmds_GCJ \
23698 hardcode_libdir_flag_spec_GCJ \
23699 hardcode_libdir_flag_spec_ld_GCJ \
23700 hardcode_libdir_separator_GCJ \
23701 hardcode_automatic_GCJ \
23702 module_cmds_GCJ \
23703 module_expsym_cmds_GCJ \
23704 lt_cv_prog_compiler_c_o_GCJ \
23705 exclude_expsyms_GCJ \
23706 include_expsyms_GCJ; do
23707
23708 case $var in
23709 old_archive_cmds_GCJ | \
23710 old_archive_from_new_cmds_GCJ | \
23711 archive_cmds_GCJ | \
23712 archive_expsym_cmds_GCJ | \
23713 module_cmds_GCJ | \
23714 module_expsym_cmds_GCJ | \
23715 old_archive_from_expsyms_cmds_GCJ | \
23716 export_symbols_cmds_GCJ | \
23717 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23718 postinstall_cmds | postuninstall_cmds | \
23719 old_postinstall_cmds | old_postuninstall_cmds | \
23720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23721 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000023723 ;;
23724 *)
23725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23726 ;;
23727 esac
23728 done
23729
23730 case $lt_echo in
23731 *'\$0 --fallback-echo"')
23732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23733 ;;
23734 esac
23735
23736cfgfile="$ofile"
23737
23738 cat <<__EOF__ >> "$cfgfile"
23739# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23740
23741# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23742
23743# Shell to use when invoking shell scripts.
23744SHELL=$lt_SHELL
23745
23746# Whether or not to build shared libraries.
23747build_libtool_libs=$enable_shared
23748
23749# Whether or not to build static libraries.
23750build_old_libs=$enable_static
23751
23752# Whether or not to add -lc for building shared libraries.
23753build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23754
23755# Whether or not to disallow shared libs when runtime libs are static
23756allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23757
23758# Whether or not to optimize for fast installation.
23759fast_install=$enable_fast_install
23760
23761# The host system.
23762host_alias=$host_alias
23763host=$host
23764
23765# An echo program that does not interpret backslashes.
23766echo=$lt_echo
23767
23768# The archiver.
23769AR=$lt_AR
23770AR_FLAGS=$lt_AR_FLAGS
23771
23772# A C compiler.
23773LTCC=$lt_LTCC
23774
23775# A language-specific compiler.
23776CC=$lt_compiler_GCJ
23777
23778# Is the compiler the GNU C compiler?
23779with_gcc=$GCC_GCJ
23780
23781# An ERE matcher.
23782EGREP=$lt_EGREP
23783
23784# The linker used to build libraries.
23785LD=$lt_LD_GCJ
23786
23787# Whether we need hard or soft links.
23788LN_S=$lt_LN_S
23789
23790# A BSD-compatible nm program.
23791NM=$lt_NM
23792
23793# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023794STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023795
23796# Used to examine libraries when file_magic_cmd begins "file"
23797MAGIC_CMD=$MAGIC_CMD
23798
23799# Used on cygwin: DLL creation program.
23800DLLTOOL="$DLLTOOL"
23801
23802# Used on cygwin: object dumper.
23803OBJDUMP="$OBJDUMP"
23804
23805# Used on cygwin: assembler.
23806AS="$AS"
23807
23808# The name of the directory that contains temporary libtool files.
23809objdir=$objdir
23810
23811# How to create reloadable object files.
23812reload_flag=$lt_reload_flag
23813reload_cmds=$lt_reload_cmds
23814
23815# How to pass a linker flag through the compiler.
23816wl=$lt_lt_prog_compiler_wl_GCJ
23817
23818# Object file suffix (normally "o").
23819objext="$ac_objext"
23820
23821# Old archive suffix (normally "a").
23822libext="$libext"
23823
23824# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023825shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023826
23827# Executable file suffix (normally "").
23828exeext="$exeext"
23829
23830# Additional compiler flags for building library objects.
23831pic_flag=$lt_lt_prog_compiler_pic_GCJ
23832pic_mode=$pic_mode
23833
23834# What is the maximum length of a command?
23835max_cmd_len=$lt_cv_sys_max_cmd_len
23836
23837# Does compiler simultaneously support -c and -o options?
23838compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23839
23840# Must we lock files when doing compilation ?
23841need_locks=$lt_need_locks
23842
23843# Do we need the lib prefix for modules?
23844need_lib_prefix=$need_lib_prefix
23845
23846# Do we need a version for libraries?
23847need_version=$need_version
23848
23849# Whether dlopen is supported.
23850dlopen_support=$enable_dlopen
23851
23852# Whether dlopen of programs is supported.
23853dlopen_self=$enable_dlopen_self
23854
23855# Whether dlopen of statically linked programs is supported.
23856dlopen_self_static=$enable_dlopen_self_static
23857
23858# Compiler flag to prevent dynamic linking.
23859link_static_flag=$lt_lt_prog_compiler_static_GCJ
23860
23861# Compiler flag to turn off builtin functions.
23862no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23863
23864# Compiler flag to allow reflexive dlopens.
23865export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23866
23867# Compiler flag to generate shared objects directly from archives.
23868whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23869
23870# Compiler flag to generate thread-safe objects.
23871thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23872
23873# Library versioning type.
23874version_type=$version_type
23875
23876# Format of library name prefix.
23877libname_spec=$lt_libname_spec
23878
23879# List of archive names. First name is the real one, the rest are links.
23880# The last name is the one that the linker finds with -lNAME.
23881library_names_spec=$lt_library_names_spec
23882
23883# The coded name of the library, if different from the real name.
23884soname_spec=$lt_soname_spec
23885
23886# Commands used to build and install an old-style archive.
23887RANLIB=$lt_RANLIB
23888old_archive_cmds=$lt_old_archive_cmds_GCJ
23889old_postinstall_cmds=$lt_old_postinstall_cmds
23890old_postuninstall_cmds=$lt_old_postuninstall_cmds
23891
23892# Create an old-style archive from a shared archive.
23893old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23894
23895# Create a temporary old-style archive to link instead of a shared archive.
23896old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23897
23898# Commands used to build and install a shared archive.
23899archive_cmds=$lt_archive_cmds_GCJ
23900archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23901postinstall_cmds=$lt_postinstall_cmds
23902postuninstall_cmds=$lt_postuninstall_cmds
23903
23904# Commands used to build a loadable module (assumed same as above if empty)
23905module_cmds=$lt_module_cmds_GCJ
23906module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23907
23908# Commands to strip libraries.
23909old_striplib=$lt_old_striplib
23910striplib=$lt_striplib
23911
23912# Dependencies to place before the objects being linked to create a
23913# shared library.
23914predep_objects=$lt_predep_objects_GCJ
23915
23916# Dependencies to place after the objects being linked to create a
23917# shared library.
23918postdep_objects=$lt_postdep_objects_GCJ
23919
23920# Dependencies to place before the objects being linked to create a
23921# shared library.
23922predeps=$lt_predeps_GCJ
23923
23924# Dependencies to place after the objects being linked to create a
23925# shared library.
23926postdeps=$lt_postdeps_GCJ
23927
23928# The library search path used internally by the compiler when linking
23929# a shared library.
23930compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23931
23932# Method to check whether dependent libraries are shared objects.
23933deplibs_check_method=$lt_deplibs_check_method
23934
23935# Command to use when deplibs_check_method == file_magic.
23936file_magic_cmd=$lt_file_magic_cmd
23937
23938# Flag that allows shared libraries with undefined symbols to be built.
23939allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23940
23941# Flag that forces no undefined symbols.
23942no_undefined_flag=$lt_no_undefined_flag_GCJ
23943
23944# Commands used to finish a libtool library installation in a directory.
23945finish_cmds=$lt_finish_cmds
23946
23947# Same as above, but a single script fragment to be evaled but not shown.
23948finish_eval=$lt_finish_eval
23949
23950# Take the output of nm and produce a listing of raw symbols and C names.
23951global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23952
23953# Transform the output of nm in a proper C declaration
23954global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23955
23956# Transform the output of nm in a C name address pair
23957global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23958
23959# This is the shared library runtime path variable.
23960runpath_var=$runpath_var
23961
23962# This is the shared library path variable.
23963shlibpath_var=$shlibpath_var
23964
23965# Is shlibpath searched before the hard-coded library search path?
23966shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23967
23968# How to hardcode a shared library path into an executable.
23969hardcode_action=$hardcode_action_GCJ
23970
23971# Whether we should hardcode library paths into libraries.
23972hardcode_into_libs=$hardcode_into_libs
23973
23974# Flag to hardcode \$libdir into a binary during linking.
23975# This must work even if \$libdir does not exist.
23976hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23977
23978# If ld is used when linking, flag to hardcode \$libdir into
23979# a binary during linking. This must work even if \$libdir does
23980# not exist.
23981hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23982
23983# Whether we need a single -rpath flag with a separated argument.
23984hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23985
23986# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23987# resulting binary.
23988hardcode_direct=$hardcode_direct_GCJ
23989
23990# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23991# resulting binary.
23992hardcode_minus_L=$hardcode_minus_L_GCJ
23993
23994# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23995# the resulting binary.
23996hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23997
23998# Set to yes if building a shared library automatically hardcodes DIR into the library
23999# and all subsequent libraries and executables linked against it.
24000hardcode_automatic=$hardcode_automatic_GCJ
24001
24002# Variables whose values should be saved in libtool wrapper scripts and
24003# restored at relink time.
24004variables_saved_for_relink="$variables_saved_for_relink"
24005
24006# Whether libtool must link a program against all its dependency libraries.
24007link_all_deplibs=$link_all_deplibs_GCJ
24008
24009# Compile-time system search path for libraries
24010sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24011
24012# Run-time system search path for libraries
24013sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24014
24015# Fix the shell variable \$srcfile for the compiler.
24016fix_srcfile_path="$fix_srcfile_path_GCJ"
24017
24018# Set to yes if exported symbols are required.
24019always_export_symbols=$always_export_symbols_GCJ
24020
24021# The commands to list exported symbols.
24022export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24023
24024# The commands to extract the exported symbol list from a shared archive.
24025extract_expsyms_cmds=$lt_extract_expsyms_cmds
24026
24027# Symbols that should not be listed in the preloaded symbols.
24028exclude_expsyms=$lt_exclude_expsyms_GCJ
24029
24030# Symbols that must always be exported.
24031include_expsyms=$lt_include_expsyms_GCJ
24032
24033# ### END LIBTOOL TAG CONFIG: $tagname
24034
24035__EOF__
24036
24037
24038else
24039 # If there is no Makefile yet, we rely on a make rule to execute
24040 # `config.status --recheck' to rerun these tests and create the
24041 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024042 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24043 if test -f "$ltmain_in"; then
24044 test -f Makefile && make "$ltmain"
24045 fi
John Criswell47fdd832003-07-14 16:52:07 +000024046fi
24047
24048
24049ac_ext=c
24050ac_cpp='$CPP $CPPFLAGS'
24051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24053ac_compiler_gnu=$ac_cv_c_compiler_gnu
24054
24055CC="$lt_save_CC"
24056
24057 else
24058 tagname=""
24059 fi
24060 ;;
24061
24062 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024063 ac_ext=c
24064ac_cpp='$CPP $CPPFLAGS'
24065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24067ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024068
24069
24070# Source file extension for RC test sources.
24071ac_ext=rc
24072
24073# Object file extension for compiled RC test sources.
24074objext=o
24075objext_RC=$objext
24076
24077# Code to be used in simple compile tests
24078lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24079
24080# Code to be used in simple link tests
24081lt_simple_link_test_code="$lt_simple_compile_test_code"
24082
24083# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24084
24085# If no C compiler was specified, use CC.
24086LTCC=${LTCC-"$CC"}
24087
24088# Allow CC to be a program name with arguments.
24089compiler=$CC
24090
24091
24092# Allow CC to be a program name with arguments.
24093lt_save_CC="$CC"
24094CC=${RC-"windres"}
24095compiler=$CC
24096compiler_RC=$CC
24097lt_cv_prog_compiler_c_o_RC=yes
24098
24099# The else clause should only fire when bootstrapping the
24100# libtool distribution, otherwise you forgot to ship ltmain.sh
24101# with your package, and you will get complaints that there are
24102# no rules to generate ltmain.sh.
24103if test -f "$ltmain"; then
24104 # See if we are running on zsh, and set the options which allow our commands through
24105 # without removal of \ escapes.
24106 if test -n "${ZSH_VERSION+set}" ; then
24107 setopt NO_GLOB_SUBST
24108 fi
24109 # Now quote all the things that may contain metacharacters while being
24110 # careful not to overquote the AC_SUBSTed values. We take copies of the
24111 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024112 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24113 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024114 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24115 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24116 deplibs_check_method reload_flag reload_cmds need_locks \
24117 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24118 lt_cv_sys_global_symbol_to_c_name_address \
24119 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24120 old_postinstall_cmds old_postuninstall_cmds \
24121 compiler_RC \
24122 CC_RC \
24123 LD_RC \
24124 lt_prog_compiler_wl_RC \
24125 lt_prog_compiler_pic_RC \
24126 lt_prog_compiler_static_RC \
24127 lt_prog_compiler_no_builtin_flag_RC \
24128 export_dynamic_flag_spec_RC \
24129 thread_safe_flag_spec_RC \
24130 whole_archive_flag_spec_RC \
24131 enable_shared_with_static_runtimes_RC \
24132 old_archive_cmds_RC \
24133 old_archive_from_new_cmds_RC \
24134 predep_objects_RC \
24135 postdep_objects_RC \
24136 predeps_RC \
24137 postdeps_RC \
24138 compiler_lib_search_path_RC \
24139 archive_cmds_RC \
24140 archive_expsym_cmds_RC \
24141 postinstall_cmds_RC \
24142 postuninstall_cmds_RC \
24143 old_archive_from_expsyms_cmds_RC \
24144 allow_undefined_flag_RC \
24145 no_undefined_flag_RC \
24146 export_symbols_cmds_RC \
24147 hardcode_libdir_flag_spec_RC \
24148 hardcode_libdir_flag_spec_ld_RC \
24149 hardcode_libdir_separator_RC \
24150 hardcode_automatic_RC \
24151 module_cmds_RC \
24152 module_expsym_cmds_RC \
24153 lt_cv_prog_compiler_c_o_RC \
24154 exclude_expsyms_RC \
24155 include_expsyms_RC; do
24156
24157 case $var in
24158 old_archive_cmds_RC | \
24159 old_archive_from_new_cmds_RC | \
24160 archive_cmds_RC | \
24161 archive_expsym_cmds_RC | \
24162 module_cmds_RC | \
24163 module_expsym_cmds_RC | \
24164 old_archive_from_expsyms_cmds_RC | \
24165 export_symbols_cmds_RC | \
24166 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24167 postinstall_cmds | postuninstall_cmds | \
24168 old_postinstall_cmds | old_postuninstall_cmds | \
24169 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24170 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000024172 ;;
24173 *)
24174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24175 ;;
24176 esac
24177 done
24178
24179 case $lt_echo in
24180 *'\$0 --fallback-echo"')
24181 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24182 ;;
24183 esac
24184
24185cfgfile="$ofile"
24186
24187 cat <<__EOF__ >> "$cfgfile"
24188# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24189
24190# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24191
24192# Shell to use when invoking shell scripts.
24193SHELL=$lt_SHELL
24194
24195# Whether or not to build shared libraries.
24196build_libtool_libs=$enable_shared
24197
24198# Whether or not to build static libraries.
24199build_old_libs=$enable_static
24200
24201# Whether or not to add -lc for building shared libraries.
24202build_libtool_need_lc=$archive_cmds_need_lc_RC
24203
24204# Whether or not to disallow shared libs when runtime libs are static
24205allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24206
24207# Whether or not to optimize for fast installation.
24208fast_install=$enable_fast_install
24209
24210# The host system.
24211host_alias=$host_alias
24212host=$host
24213
24214# An echo program that does not interpret backslashes.
24215echo=$lt_echo
24216
24217# The archiver.
24218AR=$lt_AR
24219AR_FLAGS=$lt_AR_FLAGS
24220
24221# A C compiler.
24222LTCC=$lt_LTCC
24223
24224# A language-specific compiler.
24225CC=$lt_compiler_RC
24226
24227# Is the compiler the GNU C compiler?
24228with_gcc=$GCC_RC
24229
24230# An ERE matcher.
24231EGREP=$lt_EGREP
24232
24233# The linker used to build libraries.
24234LD=$lt_LD_RC
24235
24236# Whether we need hard or soft links.
24237LN_S=$lt_LN_S
24238
24239# A BSD-compatible nm program.
24240NM=$lt_NM
24241
24242# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024243STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024244
24245# Used to examine libraries when file_magic_cmd begins "file"
24246MAGIC_CMD=$MAGIC_CMD
24247
24248# Used on cygwin: DLL creation program.
24249DLLTOOL="$DLLTOOL"
24250
24251# Used on cygwin: object dumper.
24252OBJDUMP="$OBJDUMP"
24253
24254# Used on cygwin: assembler.
24255AS="$AS"
24256
24257# The name of the directory that contains temporary libtool files.
24258objdir=$objdir
24259
24260# How to create reloadable object files.
24261reload_flag=$lt_reload_flag
24262reload_cmds=$lt_reload_cmds
24263
24264# How to pass a linker flag through the compiler.
24265wl=$lt_lt_prog_compiler_wl_RC
24266
24267# Object file suffix (normally "o").
24268objext="$ac_objext"
24269
24270# Old archive suffix (normally "a").
24271libext="$libext"
24272
24273# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024274shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024275
24276# Executable file suffix (normally "").
24277exeext="$exeext"
24278
24279# Additional compiler flags for building library objects.
24280pic_flag=$lt_lt_prog_compiler_pic_RC
24281pic_mode=$pic_mode
24282
24283# What is the maximum length of a command?
24284max_cmd_len=$lt_cv_sys_max_cmd_len
24285
24286# Does compiler simultaneously support -c and -o options?
24287compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24288
24289# Must we lock files when doing compilation ?
24290need_locks=$lt_need_locks
24291
24292# Do we need the lib prefix for modules?
24293need_lib_prefix=$need_lib_prefix
24294
24295# Do we need a version for libraries?
24296need_version=$need_version
24297
24298# Whether dlopen is supported.
24299dlopen_support=$enable_dlopen
24300
24301# Whether dlopen of programs is supported.
24302dlopen_self=$enable_dlopen_self
24303
24304# Whether dlopen of statically linked programs is supported.
24305dlopen_self_static=$enable_dlopen_self_static
24306
24307# Compiler flag to prevent dynamic linking.
24308link_static_flag=$lt_lt_prog_compiler_static_RC
24309
24310# Compiler flag to turn off builtin functions.
24311no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24312
24313# Compiler flag to allow reflexive dlopens.
24314export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24315
24316# Compiler flag to generate shared objects directly from archives.
24317whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24318
24319# Compiler flag to generate thread-safe objects.
24320thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24321
24322# Library versioning type.
24323version_type=$version_type
24324
24325# Format of library name prefix.
24326libname_spec=$lt_libname_spec
24327
24328# List of archive names. First name is the real one, the rest are links.
24329# The last name is the one that the linker finds with -lNAME.
24330library_names_spec=$lt_library_names_spec
24331
24332# The coded name of the library, if different from the real name.
24333soname_spec=$lt_soname_spec
24334
24335# Commands used to build and install an old-style archive.
24336RANLIB=$lt_RANLIB
24337old_archive_cmds=$lt_old_archive_cmds_RC
24338old_postinstall_cmds=$lt_old_postinstall_cmds
24339old_postuninstall_cmds=$lt_old_postuninstall_cmds
24340
24341# Create an old-style archive from a shared archive.
24342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24343
24344# Create a temporary old-style archive to link instead of a shared archive.
24345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24346
24347# Commands used to build and install a shared archive.
24348archive_cmds=$lt_archive_cmds_RC
24349archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24350postinstall_cmds=$lt_postinstall_cmds
24351postuninstall_cmds=$lt_postuninstall_cmds
24352
24353# Commands used to build a loadable module (assumed same as above if empty)
24354module_cmds=$lt_module_cmds_RC
24355module_expsym_cmds=$lt_module_expsym_cmds_RC
24356
24357# Commands to strip libraries.
24358old_striplib=$lt_old_striplib
24359striplib=$lt_striplib
24360
24361# Dependencies to place before the objects being linked to create a
24362# shared library.
24363predep_objects=$lt_predep_objects_RC
24364
24365# Dependencies to place after the objects being linked to create a
24366# shared library.
24367postdep_objects=$lt_postdep_objects_RC
24368
24369# Dependencies to place before the objects being linked to create a
24370# shared library.
24371predeps=$lt_predeps_RC
24372
24373# Dependencies to place after the objects being linked to create a
24374# shared library.
24375postdeps=$lt_postdeps_RC
24376
24377# The library search path used internally by the compiler when linking
24378# a shared library.
24379compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24380
24381# Method to check whether dependent libraries are shared objects.
24382deplibs_check_method=$lt_deplibs_check_method
24383
24384# Command to use when deplibs_check_method == file_magic.
24385file_magic_cmd=$lt_file_magic_cmd
24386
24387# Flag that allows shared libraries with undefined symbols to be built.
24388allow_undefined_flag=$lt_allow_undefined_flag_RC
24389
24390# Flag that forces no undefined symbols.
24391no_undefined_flag=$lt_no_undefined_flag_RC
24392
24393# Commands used to finish a libtool library installation in a directory.
24394finish_cmds=$lt_finish_cmds
24395
24396# Same as above, but a single script fragment to be evaled but not shown.
24397finish_eval=$lt_finish_eval
24398
24399# Take the output of nm and produce a listing of raw symbols and C names.
24400global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24401
24402# Transform the output of nm in a proper C declaration
24403global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24404
24405# Transform the output of nm in a C name address pair
24406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24407
24408# This is the shared library runtime path variable.
24409runpath_var=$runpath_var
24410
24411# This is the shared library path variable.
24412shlibpath_var=$shlibpath_var
24413
24414# Is shlibpath searched before the hard-coded library search path?
24415shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24416
24417# How to hardcode a shared library path into an executable.
24418hardcode_action=$hardcode_action_RC
24419
24420# Whether we should hardcode library paths into libraries.
24421hardcode_into_libs=$hardcode_into_libs
24422
24423# Flag to hardcode \$libdir into a binary during linking.
24424# This must work even if \$libdir does not exist.
24425hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24426
24427# If ld is used when linking, flag to hardcode \$libdir into
24428# a binary during linking. This must work even if \$libdir does
24429# not exist.
24430hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24431
24432# Whether we need a single -rpath flag with a separated argument.
24433hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24434
24435# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24436# resulting binary.
24437hardcode_direct=$hardcode_direct_RC
24438
24439# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24440# resulting binary.
24441hardcode_minus_L=$hardcode_minus_L_RC
24442
24443# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24444# the resulting binary.
24445hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24446
24447# Set to yes if building a shared library automatically hardcodes DIR into the library
24448# and all subsequent libraries and executables linked against it.
24449hardcode_automatic=$hardcode_automatic_RC
24450
24451# Variables whose values should be saved in libtool wrapper scripts and
24452# restored at relink time.
24453variables_saved_for_relink="$variables_saved_for_relink"
24454
24455# Whether libtool must link a program against all its dependency libraries.
24456link_all_deplibs=$link_all_deplibs_RC
24457
24458# Compile-time system search path for libraries
24459sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24460
24461# Run-time system search path for libraries
24462sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24463
24464# Fix the shell variable \$srcfile for the compiler.
24465fix_srcfile_path="$fix_srcfile_path_RC"
24466
24467# Set to yes if exported symbols are required.
24468always_export_symbols=$always_export_symbols_RC
24469
24470# The commands to list exported symbols.
24471export_symbols_cmds=$lt_export_symbols_cmds_RC
24472
24473# The commands to extract the exported symbol list from a shared archive.
24474extract_expsyms_cmds=$lt_extract_expsyms_cmds
24475
24476# Symbols that should not be listed in the preloaded symbols.
24477exclude_expsyms=$lt_exclude_expsyms_RC
24478
24479# Symbols that must always be exported.
24480include_expsyms=$lt_include_expsyms_RC
24481
24482# ### END LIBTOOL TAG CONFIG: $tagname
24483
24484__EOF__
24485
24486
24487else
24488 # If there is no Makefile yet, we rely on a make rule to execute
24489 # `config.status --recheck' to rerun these tests and create the
24490 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024491 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24492 if test -f "$ltmain_in"; then
24493 test -f Makefile && make "$ltmain"
24494 fi
John Criswell47fdd832003-07-14 16:52:07 +000024495fi
24496
24497
24498ac_ext=c
24499ac_cpp='$CPP $CPPFLAGS'
24500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24502ac_compiler_gnu=$ac_cv_c_compiler_gnu
24503
24504CC="$lt_save_CC"
24505
24506 ;;
24507
24508 *)
24509 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24510echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24511 { (exit 1); exit 1; }; }
24512 ;;
24513 esac
24514
24515 # Append the new tag name to the list of available tags.
24516 if test -n "$tagname" ; then
24517 available_tags="$available_tags $tagname"
24518 fi
24519 fi
24520 done
24521 IFS="$lt_save_ifs"
24522
24523 # Now substitute the updated list of available tags.
24524 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24525 mv "${ofile}T" "$ofile"
24526 chmod +x "$ofile"
24527 else
24528 rm -f "${ofile}T"
24529 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24530echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24531 { (exit 1); exit 1; }; }
24532 fi
24533fi
John Criswell7a73b802003-06-30 21:59:07 +000024534
24535
24536
24537# This can be used to rebuild libtool when needed
24538LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24539
24540# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024541LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024542
24543# Prevent multiple expansion
24544
24545
24546
John Criswell47fdd832003-07-14 16:52:07 +000024547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024564
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024565etags_version=`$ETAGS --version 2>&1`
24566case "$etags_version" in
24567 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24568 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24569 *) ETAGSFLAGS="" ;;
24570esac
24571ETAGSFLAGS=$ETAGSFLAGS
24572
24573
24574echo "$as_me:$LINENO: checking tool compatibility" >&5
24575echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24576
24577if test "$GCC" != "yes"
24578then
24579 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
24580echo "$as_me: error: gcc required but not found" >&2;}
24581 { (exit 1); exit 1; }; }
24582fi
24583if test "$GXX" != "yes"
24584then
24585 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
24586echo "$as_me: error: g++ required but not found" >&2;}
24587 { (exit 1); exit 1; }; }
24588fi
24589
24590gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24591if test "$gccmajor" -lt "3"
24592then
24593 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24594echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24595 { (exit 1); exit 1; }; }
24596fi
24597
24598if test -z "$llvm_cv_gnu_make_command"
24599then
24600 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24601echo "$as_me: error: GNU Make required but not found" >&2;}
24602 { (exit 1); exit 1; }; }
24603fi
24604
24605echo "$as_me:$LINENO: result: ok" >&5
24606echo "${ECHO_T}ok" >&6
24607
24608if test "$PYTHON" = "false" ; then
24609 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
24610echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
24611fi
24612if test "$QMTEST" = "false" ; then
24613 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
24614echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
24615fi
Reid Spencer4b8f82f2004-11-07 23:29:39 +000024616if test "$RUNTEST" = "false" ; then
24617 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
24618echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
24619fi
John Criswellde00db22003-08-25 16:49:54 +000024620pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
24621pymajor=`echo $pyversion | cut -d. -f1`
24622pyminor=`echo $pyversion | cut -d. -f2`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024623if test "$pymajor" -ge "2" ; then
24624 if test "$pymajor" -eq "2" ; then
24625 if test "$pyminor" -lt "2" ; then
24626 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000024627echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024628 fi
24629 fi
John Criswellde00db22003-08-25 16:49:54 +000024630else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024631 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000024632echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000024633fi
John Criswell7a73b802003-06-30 21:59:07 +000024634
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024635echo "$as_me:$LINENO: result: " >&5
24636echo "${ECHO_T}" >&6
24637
24638
John Criswell7a73b802003-06-30 21:59:07 +000024639
John Criswell7a73b802003-06-30 21:59:07 +000024640echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24641echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24642if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24643 echo $ECHO_N "(cached) $ECHO_C" >&6
24644else
24645 ac_check_lib_save_LIBS=$LIBS
24646LIBS="-lelf $LIBS"
24647cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024648/* confdefs.h. */
24649_ACEOF
24650cat confdefs.h >>conftest.$ac_ext
24651cat >>conftest.$ac_ext <<_ACEOF
24652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024653
24654/* Override any gcc2 internal prototype to avoid an error. */
24655#ifdef __cplusplus
24656extern "C"
24657#endif
24658/* We use char because int might match the return type of a gcc2
24659 builtin and then its argument prototype would still apply. */
24660char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024661int
24662main ()
24663{
24664elf_begin ();
24665 ;
24666 return 0;
24667}
24668_ACEOF
24669rm -f conftest.$ac_objext conftest$ac_exeext
24670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024671 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024672 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024673 grep -v '^ *+' conftest.er1 >conftest.err
24674 rm -f conftest.er1
24675 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024678 { ac_try='test -z "$ac_c_werror_flag"
24679 || test ! -s conftest.err'
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; } &&
24685 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687 (eval $ac_try) 2>&5
24688 ac_status=$?
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); }; }; then
24691 ac_cv_lib_elf_elf_begin=yes
24692else
24693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024694sed 's/^/| /' conftest.$ac_ext >&5
24695
John Criswell7a73b802003-06-30 21:59:07 +000024696ac_cv_lib_elf_elf_begin=no
24697fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024698rm -f conftest.err conftest.$ac_objext \
24699 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024700LIBS=$ac_check_lib_save_LIBS
24701fi
24702echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24703echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24704if test $ac_cv_lib_elf_elf_begin = yes; then
24705 cat >>confdefs.h <<_ACEOF
24706#define HAVE_LIBELF 1
24707_ACEOF
24708
24709 LIBS="-lelf $LIBS"
24710
24711fi
24712
24713
Reid Spencer17795972004-11-18 09:47:37 +000024714echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24715echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24716if test "${ac_cv_search_lt_dlopen+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24718else
24719 ac_func_search_save_LIBS=$LIBS
24720ac_cv_search_lt_dlopen=no
24721cat >conftest.$ac_ext <<_ACEOF
24722/* confdefs.h. */
24723_ACEOF
24724cat confdefs.h >>conftest.$ac_ext
24725cat >>conftest.$ac_ext <<_ACEOF
24726/* end confdefs.h. */
24727
24728/* Override any gcc2 internal prototype to avoid an error. */
24729#ifdef __cplusplus
24730extern "C"
24731#endif
24732/* We use char because int might match the return type of a gcc2
24733 builtin and then its argument prototype would still apply. */
24734char lt_dlopen ();
24735int
24736main ()
24737{
24738lt_dlopen ();
24739 ;
24740 return 0;
24741}
24742_ACEOF
24743rm -f conftest.$ac_objext conftest$ac_exeext
24744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24745 (eval $ac_link) 2>conftest.er1
24746 ac_status=$?
24747 grep -v '^ *+' conftest.er1 >conftest.err
24748 rm -f conftest.er1
24749 cat conftest.err >&5
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); } &&
24752 { ac_try='test -z "$ac_c_werror_flag"
24753 || test ! -s conftest.err'
24754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755 (eval $ac_try) 2>&5
24756 ac_status=$?
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; } &&
24759 { ac_try='test -s conftest$ac_exeext'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; }; then
24765 ac_cv_search_lt_dlopen="none required"
24766else
24767 echo "$as_me: failed program was:" >&5
24768sed 's/^/| /' conftest.$ac_ext >&5
24769
24770fi
24771rm -f conftest.err conftest.$ac_objext \
24772 conftest$ac_exeext conftest.$ac_ext
24773if test "$ac_cv_search_lt_dlopen" = no; then
24774 for ac_lib in ltdl; do
24775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24776 cat >conftest.$ac_ext <<_ACEOF
24777/* confdefs.h. */
24778_ACEOF
24779cat confdefs.h >>conftest.$ac_ext
24780cat >>conftest.$ac_ext <<_ACEOF
24781/* end confdefs.h. */
24782
24783/* Override any gcc2 internal prototype to avoid an error. */
24784#ifdef __cplusplus
24785extern "C"
24786#endif
24787/* We use char because int might match the return type of a gcc2
24788 builtin and then its argument prototype would still apply. */
24789char lt_dlopen ();
24790int
24791main ()
24792{
24793lt_dlopen ();
24794 ;
24795 return 0;
24796}
24797_ACEOF
24798rm -f conftest.$ac_objext conftest$ac_exeext
24799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24800 (eval $ac_link) 2>conftest.er1
24801 ac_status=$?
24802 grep -v '^ *+' conftest.er1 >conftest.err
24803 rm -f conftest.er1
24804 cat conftest.err >&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } &&
24807 { ac_try='test -z "$ac_c_werror_flag"
24808 || test ! -s conftest.err'
24809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810 (eval $ac_try) 2>&5
24811 ac_status=$?
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; } &&
24814 { ac_try='test -s conftest$ac_exeext'
24815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; }; then
24820 ac_cv_search_lt_dlopen="-l$ac_lib"
24821break
24822else
24823 echo "$as_me: failed program was:" >&5
24824sed 's/^/| /' conftest.$ac_ext >&5
24825
24826fi
24827rm -f conftest.err conftest.$ac_objext \
24828 conftest$ac_exeext conftest.$ac_ext
24829 done
24830fi
24831LIBS=$ac_func_search_save_LIBS
24832fi
24833echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24834echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24835if test "$ac_cv_search_lt_dlopen" != no; then
24836 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24837
24838cat >>confdefs.h <<\_ACEOF
24839#define HAVE_LT_DLOPEN 1
24840_ACEOF
24841
24842else
24843 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24844 not be available" >&5
24845echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24846 not be available" >&2;}
24847fi
24848
24849
John Criswell7a73b802003-06-30 21:59:07 +000024850echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24851echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24852if test "${ac_cv_search_dlopen+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24854else
24855 ac_func_search_save_LIBS=$LIBS
24856ac_cv_search_dlopen=no
24857cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024858/* confdefs.h. */
24859_ACEOF
24860cat confdefs.h >>conftest.$ac_ext
24861cat >>conftest.$ac_ext <<_ACEOF
24862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024863
24864/* Override any gcc2 internal prototype to avoid an error. */
24865#ifdef __cplusplus
24866extern "C"
24867#endif
24868/* We use char because int might match the return type of a gcc2
24869 builtin and then its argument prototype would still apply. */
24870char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024871int
24872main ()
24873{
24874dlopen ();
24875 ;
24876 return 0;
24877}
24878_ACEOF
24879rm -f conftest.$ac_objext conftest$ac_exeext
24880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024881 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024882 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024883 grep -v '^ *+' conftest.er1 >conftest.err
24884 rm -f conftest.er1
24885 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024888 { ac_try='test -z "$ac_c_werror_flag"
24889 || test ! -s conftest.err'
24890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24892 ac_status=$?
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; } &&
24895 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24897 (eval $ac_try) 2>&5
24898 ac_status=$?
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); }; }; then
24901 ac_cv_search_dlopen="none required"
24902else
24903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024904sed 's/^/| /' conftest.$ac_ext >&5
24905
John Criswell7a73b802003-06-30 21:59:07 +000024906fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024907rm -f conftest.err conftest.$ac_objext \
24908 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024909if test "$ac_cv_search_dlopen" = no; then
24910 for ac_lib in dl; do
24911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24912 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024913/* confdefs.h. */
24914_ACEOF
24915cat confdefs.h >>conftest.$ac_ext
24916cat >>conftest.$ac_ext <<_ACEOF
24917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024918
24919/* Override any gcc2 internal prototype to avoid an error. */
24920#ifdef __cplusplus
24921extern "C"
24922#endif
24923/* We use char because int might match the return type of a gcc2
24924 builtin and then its argument prototype would still apply. */
24925char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024926int
24927main ()
24928{
24929dlopen ();
24930 ;
24931 return 0;
24932}
24933_ACEOF
24934rm -f conftest.$ac_objext conftest$ac_exeext
24935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024936 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024938 grep -v '^ *+' conftest.er1 >conftest.err
24939 rm -f conftest.er1
24940 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024943 { ac_try='test -z "$ac_c_werror_flag"
24944 || test ! -s conftest.err'
24945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946 (eval $ac_try) 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; } &&
24950 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
24956 ac_cv_search_dlopen="-l$ac_lib"
24957break
24958else
24959 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024960sed 's/^/| /' conftest.$ac_ext >&5
24961
John Criswell7a73b802003-06-30 21:59:07 +000024962fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024963rm -f conftest.err conftest.$ac_objext \
24964 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024965 done
24966fi
24967LIBS=$ac_func_search_save_LIBS
24968fi
24969echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24970echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24971if test "$ac_cv_search_dlopen" != no; then
24972 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000024973
24974cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000024975#define HAVE_DLOPEN 1
24976_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024977
24978else
Brian Gaekec45be042003-10-07 06:01:34 +000024979 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24980echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000024981fi
24982
24983
24984echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24985echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24986if test "${ac_cv_search_mallinfo+set}" = set; then
24987 echo $ECHO_N "(cached) $ECHO_C" >&6
24988else
24989 ac_func_search_save_LIBS=$LIBS
24990ac_cv_search_mallinfo=no
24991cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024992/* confdefs.h. */
24993_ACEOF
24994cat confdefs.h >>conftest.$ac_ext
24995cat >>conftest.$ac_ext <<_ACEOF
24996/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024997
24998/* Override any gcc2 internal prototype to avoid an error. */
24999#ifdef __cplusplus
25000extern "C"
25001#endif
25002/* We use char because int might match the return type of a gcc2
25003 builtin and then its argument prototype would still apply. */
25004char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025005int
25006main ()
25007{
25008mallinfo ();
25009 ;
25010 return 0;
25011}
25012_ACEOF
25013rm -f conftest.$ac_objext conftest$ac_exeext
25014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025015 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025017 grep -v '^ *+' conftest.er1 >conftest.err
25018 rm -f conftest.er1
25019 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025022 { ac_try='test -z "$ac_c_werror_flag"
25023 || test ! -s conftest.err'
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25026 ac_status=$?
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
25029 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25032 ac_status=$?
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
25035 ac_cv_search_mallinfo="none required"
25036else
25037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025038sed 's/^/| /' conftest.$ac_ext >&5
25039
John Criswell7a73b802003-06-30 21:59:07 +000025040fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025041rm -f conftest.err conftest.$ac_objext \
25042 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025043if test "$ac_cv_search_mallinfo" = no; then
25044 for ac_lib in malloc; do
25045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25046 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025047/* confdefs.h. */
25048_ACEOF
25049cat confdefs.h >>conftest.$ac_ext
25050cat >>conftest.$ac_ext <<_ACEOF
25051/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025052
25053/* Override any gcc2 internal prototype to avoid an error. */
25054#ifdef __cplusplus
25055extern "C"
25056#endif
25057/* We use char because int might match the return type of a gcc2
25058 builtin and then its argument prototype would still apply. */
25059char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025060int
25061main ()
25062{
25063mallinfo ();
25064 ;
25065 return 0;
25066}
25067_ACEOF
25068rm -f conftest.$ac_objext conftest$ac_exeext
25069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025070 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025071 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025072 grep -v '^ *+' conftest.er1 >conftest.err
25073 rm -f conftest.er1
25074 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025077 { ac_try='test -z "$ac_c_werror_flag"
25078 || test ! -s conftest.err'
25079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25080 (eval $ac_try) 2>&5
25081 ac_status=$?
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; } &&
25084 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086 (eval $ac_try) 2>&5
25087 ac_status=$?
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; }; then
25090 ac_cv_search_mallinfo="-l$ac_lib"
25091break
25092else
25093 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025094sed 's/^/| /' conftest.$ac_ext >&5
25095
John Criswell7a73b802003-06-30 21:59:07 +000025096fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025097rm -f conftest.err conftest.$ac_objext \
25098 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025099 done
25100fi
25101LIBS=$ac_func_search_save_LIBS
25102fi
25103echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25104echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25105if test "$ac_cv_search_mallinfo" != no; then
25106 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025107
25108cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025109#define HAVE_MALLINFO 1
25110_ACEOF
25111
25112fi
25113
25114
Brian Gaeke5f268f72003-12-05 19:29:01 +000025115echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25116echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25117if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25118 echo $ECHO_N "(cached) $ECHO_C" >&6
25119else
25120 ac_func_search_save_LIBS=$LIBS
25121ac_cv_search_pthread_mutex_lock=no
25122cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025123/* confdefs.h. */
25124_ACEOF
25125cat confdefs.h >>conftest.$ac_ext
25126cat >>conftest.$ac_ext <<_ACEOF
25127/* end confdefs.h. */
25128
25129/* Override any gcc2 internal prototype to avoid an error. */
25130#ifdef __cplusplus
25131extern "C"
25132#endif
25133/* We use char because int might match the return type of a gcc2
25134 builtin and then its argument prototype would still apply. */
25135char pthread_mutex_lock ();
25136int
25137main ()
25138{
25139pthread_mutex_lock ();
25140 ;
25141 return 0;
25142}
25143_ACEOF
25144rm -f conftest.$ac_objext conftest$ac_exeext
25145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025146 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025148 grep -v '^ *+' conftest.er1 >conftest.err
25149 rm -f conftest.er1
25150 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025153 { ac_try='test -z "$ac_c_werror_flag"
25154 || test ! -s conftest.err'
25155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); }; } &&
25160 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); }; }; then
25166 ac_cv_search_pthread_mutex_lock="none required"
25167else
25168 echo "$as_me: failed program was:" >&5
25169sed 's/^/| /' conftest.$ac_ext >&5
25170
25171fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025172rm -f conftest.err conftest.$ac_objext \
25173 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025174if test "$ac_cv_search_pthread_mutex_lock" = no; then
25175 for ac_lib in pthread; do
25176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25177 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025178/* confdefs.h. */
25179_ACEOF
25180cat confdefs.h >>conftest.$ac_ext
25181cat >>conftest.$ac_ext <<_ACEOF
25182/* end confdefs.h. */
25183
25184/* Override any gcc2 internal prototype to avoid an error. */
25185#ifdef __cplusplus
25186extern "C"
25187#endif
25188/* We use char because int might match the return type of a gcc2
25189 builtin and then its argument prototype would still apply. */
25190char pthread_mutex_lock ();
25191int
25192main ()
25193{
25194pthread_mutex_lock ();
25195 ;
25196 return 0;
25197}
25198_ACEOF
25199rm -f conftest.$ac_objext conftest$ac_exeext
25200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025201 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025202 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025203 grep -v '^ *+' conftest.er1 >conftest.err
25204 rm -f conftest.er1
25205 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025208 { ac_try='test -z "$ac_c_werror_flag"
25209 || test ! -s conftest.err'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; } &&
25215 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25222break
25223else
25224 echo "$as_me: failed program was:" >&5
25225sed 's/^/| /' conftest.$ac_ext >&5
25226
25227fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025228rm -f conftest.err conftest.$ac_objext \
25229 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025230 done
25231fi
25232LIBS=$ac_func_search_save_LIBS
25233fi
25234echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25235echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25236if test "$ac_cv_search_pthread_mutex_lock" != no; then
25237 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025238
John Criswell40468462004-09-24 21:19:06 +000025239cat >>confdefs.h <<\_ACEOF
25240#define HAVE_PTHREAD_MUTEX_LOCK 1
25241_ACEOF
25242
25243fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025244
Brian Gaekec9a410c2004-02-23 21:30:37 +000025245
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025246
John Criswell7a73b802003-06-30 21:59:07 +000025247echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25248echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25249if test "${ac_cv_header_stdc+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25251else
25252 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025253/* confdefs.h. */
25254_ACEOF
25255cat confdefs.h >>conftest.$ac_ext
25256cat >>conftest.$ac_ext <<_ACEOF
25257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025258#include <stdlib.h>
25259#include <stdarg.h>
25260#include <string.h>
25261#include <float.h>
25262
John Criswell0c38eaf2003-09-10 15:17:25 +000025263int
25264main ()
25265{
25266
25267 ;
25268 return 0;
25269}
John Criswell7a73b802003-06-30 21:59:07 +000025270_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025271rm -f conftest.$ac_objext
25272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025273 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025275 grep -v '^ *+' conftest.er1 >conftest.err
25276 rm -f conftest.er1
25277 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025279 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025280 { ac_try='test -z "$ac_c_werror_flag"
25281 || test ! -s conftest.err'
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; } &&
25287 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025293 ac_cv_header_stdc=yes
25294else
25295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025296sed 's/^/| /' conftest.$ac_ext >&5
25297
25298ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025299fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025301
25302if test $ac_cv_header_stdc = yes; then
25303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025305/* confdefs.h. */
25306_ACEOF
25307cat confdefs.h >>conftest.$ac_ext
25308cat >>conftest.$ac_ext <<_ACEOF
25309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025310#include <string.h>
25311
25312_ACEOF
25313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025314 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025315 :
25316else
25317 ac_cv_header_stdc=no
25318fi
25319rm -f conftest*
25320
25321fi
25322
25323if test $ac_cv_header_stdc = yes; then
25324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25325 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025326/* confdefs.h. */
25327_ACEOF
25328cat confdefs.h >>conftest.$ac_ext
25329cat >>conftest.$ac_ext <<_ACEOF
25330/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025331#include <stdlib.h>
25332
25333_ACEOF
25334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025335 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025336 :
25337else
25338 ac_cv_header_stdc=no
25339fi
25340rm -f conftest*
25341
25342fi
25343
25344if test $ac_cv_header_stdc = yes; then
25345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25346 if test "$cross_compiling" = yes; then
25347 :
25348else
25349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025350/* confdefs.h. */
25351_ACEOF
25352cat confdefs.h >>conftest.$ac_ext
25353cat >>conftest.$ac_ext <<_ACEOF
25354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025355#include <ctype.h>
25356#if ((' ' & 0x0FF) == 0x020)
25357# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25358# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25359#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025360# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025361 (('a' <= (c) && (c) <= 'i') \
25362 || ('j' <= (c) && (c) <= 'r') \
25363 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025364# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25365#endif
25366
25367#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25368int
25369main ()
25370{
25371 int i;
25372 for (i = 0; i < 256; i++)
25373 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025374 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025375 exit(2);
25376 exit (0);
25377}
25378_ACEOF
25379rm -f conftest$ac_exeext
25380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25381 (eval $ac_link) 2>&5
25382 ac_status=$?
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386 (eval $ac_try) 2>&5
25387 ac_status=$?
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; }; then
25390 :
25391else
25392 echo "$as_me: program exited with status $ac_status" >&5
25393echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025394sed 's/^/| /' conftest.$ac_ext >&5
25395
John Criswell7a73b802003-06-30 21:59:07 +000025396( exit $ac_status )
25397ac_cv_header_stdc=no
25398fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025400fi
25401fi
25402fi
25403echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25404echo "${ECHO_T}$ac_cv_header_stdc" >&6
25405if test $ac_cv_header_stdc = yes; then
25406
25407cat >>confdefs.h <<\_ACEOF
25408#define STDC_HEADERS 1
25409_ACEOF
25410
25411fi
25412
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025413
John Criswell7a73b802003-06-30 21:59:07 +000025414echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25415echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25416if test "${ac_cv_header_sys_wait_h+set}" = set; then
25417 echo $ECHO_N "(cached) $ECHO_C" >&6
25418else
25419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025420/* confdefs.h. */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025425#include <sys/types.h>
25426#include <sys/wait.h>
25427#ifndef WEXITSTATUS
25428# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25429#endif
25430#ifndef WIFEXITED
25431# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25432#endif
25433
John Criswell7a73b802003-06-30 21:59:07 +000025434int
25435main ()
25436{
25437 int s;
25438 wait (&s);
25439 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25440 ;
25441 return 0;
25442}
25443_ACEOF
25444rm -f conftest.$ac_objext
25445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025446 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025448 grep -v '^ *+' conftest.er1 >conftest.err
25449 rm -f conftest.er1
25450 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025453 { ac_try='test -z "$ac_c_werror_flag"
25454 || test ! -s conftest.err'
25455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456 (eval $ac_try) 2>&5
25457 ac_status=$?
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); }; } &&
25460 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25462 (eval $ac_try) 2>&5
25463 ac_status=$?
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); }; }; then
25466 ac_cv_header_sys_wait_h=yes
25467else
25468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025469sed 's/^/| /' conftest.$ac_ext >&5
25470
John Criswell7a73b802003-06-30 21:59:07 +000025471ac_cv_header_sys_wait_h=no
25472fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025474fi
25475echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25476echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25477if test $ac_cv_header_sys_wait_h = yes; then
25478
25479cat >>confdefs.h <<\_ACEOF
25480#define HAVE_SYS_WAIT_H 1
25481_ACEOF
25482
25483fi
25484
25485
25486
25487
25488
25489
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025490for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
John Criswell7a73b802003-06-30 21:59:07 +000025491do
25492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25493if eval "test \"\${$as_ac_Header+set}\" = set"; then
25494 echo "$as_me:$LINENO: checking for $ac_header" >&5
25495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25496if eval "test \"\${$as_ac_Header+set}\" = set"; then
25497 echo $ECHO_N "(cached) $ECHO_C" >&6
25498fi
25499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25501else
25502 # Is the header compilable?
25503echo "$as_me:$LINENO: checking $ac_header usability" >&5
25504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25505cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025506/* confdefs.h. */
25507_ACEOF
25508cat confdefs.h >>conftest.$ac_ext
25509cat >>conftest.$ac_ext <<_ACEOF
25510/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025511$ac_includes_default
25512#include <$ac_header>
25513_ACEOF
25514rm -f conftest.$ac_objext
25515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025516 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025517 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025518 grep -v '^ *+' conftest.er1 >conftest.err
25519 rm -f conftest.er1
25520 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025523 { ac_try='test -z "$ac_c_werror_flag"
25524 || test ! -s conftest.err'
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; } &&
25530 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25533 ac_status=$?
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
25536 ac_header_compiler=yes
25537else
25538 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025539sed 's/^/| /' conftest.$ac_ext >&5
25540
John Criswell7a73b802003-06-30 21:59:07 +000025541ac_header_compiler=no
25542fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25545echo "${ECHO_T}$ac_header_compiler" >&6
25546
25547# Is the header present?
25548echo "$as_me:$LINENO: checking $ac_header presence" >&5
25549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25550cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025551/* confdefs.h. */
25552_ACEOF
25553cat confdefs.h >>conftest.$ac_ext
25554cat >>conftest.$ac_ext <<_ACEOF
25555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025556#include <$ac_header>
25557_ACEOF
25558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25560 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025561 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025562 rm -f conftest.er1
25563 cat conftest.err >&5
25564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565 (exit $ac_status); } >/dev/null; then
25566 if test -s conftest.err; then
25567 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025569 else
25570 ac_cpp_err=
25571 fi
25572else
25573 ac_cpp_err=yes
25574fi
25575if test -z "$ac_cpp_err"; then
25576 ac_header_preproc=yes
25577else
25578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025579sed 's/^/| /' conftest.$ac_ext >&5
25580
John Criswell7a73b802003-06-30 21:59:07 +000025581 ac_header_preproc=no
25582fi
25583rm -f conftest.err conftest.$ac_ext
25584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25585echo "${ECHO_T}$ac_header_preproc" >&6
25586
25587# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25589 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25593echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25594 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025595 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025596 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25602echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25604echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25608echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025609 (
25610 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025611## ----------------------------------- ##
25612## Report this to llvmbugs@cs.uiuc.edu ##
25613## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025614_ASBOX
25615 ) |
25616 sed "s/^/$as_me: WARNING: /" >&2
25617 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025618esac
25619echo "$as_me:$LINENO: checking for $ac_header" >&5
25620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25621if eval "test \"\${$as_ac_Header+set}\" = set"; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25623else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025624 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025625fi
25626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25628
25629fi
25630if test `eval echo '${'$as_ac_Header'}'` = yes; then
25631 cat >>confdefs.h <<_ACEOF
25632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25633_ACEOF
25634
25635fi
25636
25637done
25638
25639
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025640
25641
25642
25643
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025644for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025645do
25646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25647if eval "test \"\${$as_ac_Header+set}\" = set"; then
25648 echo "$as_me:$LINENO: checking for $ac_header" >&5
25649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25650if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025651 echo $ECHO_N "(cached) $ECHO_C" >&6
25652fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025655else
25656 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025657echo "$as_me:$LINENO: checking $ac_header usability" >&5
25658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025659cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025660/* confdefs.h. */
25661_ACEOF
25662cat confdefs.h >>conftest.$ac_ext
25663cat >>conftest.$ac_ext <<_ACEOF
25664/* end confdefs.h. */
25665$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025666#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025667_ACEOF
25668rm -f conftest.$ac_objext
25669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025670 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025672 grep -v '^ *+' conftest.er1 >conftest.err
25673 rm -f conftest.er1
25674 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025677 { ac_try='test -z "$ac_c_werror_flag"
25678 || test ! -s conftest.err'
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; } &&
25684 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_header_compiler=yes
25691else
25692 echo "$as_me: failed program was:" >&5
25693sed 's/^/| /' conftest.$ac_ext >&5
25694
25695ac_header_compiler=no
25696fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025698echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25699echo "${ECHO_T}$ac_header_compiler" >&6
25700
25701# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025702echo "$as_me:$LINENO: checking $ac_header presence" >&5
25703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025704cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025705/* confdefs.h. */
25706_ACEOF
25707cat confdefs.h >>conftest.$ac_ext
25708cat >>conftest.$ac_ext <<_ACEOF
25709/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025710#include <$ac_header>
25711_ACEOF
25712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25714 ac_status=$?
25715 grep -v '^ *+' conftest.er1 >conftest.err
25716 rm -f conftest.er1
25717 cat conftest.err >&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); } >/dev/null; then
25720 if test -s conftest.err; then
25721 ac_cpp_err=$ac_c_preproc_warn_flag
25722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25723 else
25724 ac_cpp_err=
25725 fi
25726else
25727 ac_cpp_err=yes
25728fi
25729if test -z "$ac_cpp_err"; then
25730 ac_header_preproc=yes
25731else
25732 echo "$as_me: failed program was:" >&5
25733sed 's/^/| /' conftest.$ac_ext >&5
25734
25735 ac_header_preproc=no
25736fi
25737rm -f conftest.err conftest.$ac_ext
25738echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25739echo "${ECHO_T}$ac_header_preproc" >&6
25740
25741# So? What about this header?
25742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25743 yes:no: )
25744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25745echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25747echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25748 ac_header_preproc=yes
25749 ;;
25750 no:yes:* )
25751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25752echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25754echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25756echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25758echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25762echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25763 (
25764 cat <<\_ASBOX
25765## ----------------------------------- ##
25766## Report this to llvmbugs@cs.uiuc.edu ##
25767## ----------------------------------- ##
25768_ASBOX
25769 ) |
25770 sed "s/^/$as_me: WARNING: /" >&2
25771 ;;
25772esac
25773echo "$as_me:$LINENO: checking for $ac_header" >&5
25774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25775if eval "test \"\${$as_ac_Header+set}\" = set"; then
25776 echo $ECHO_N "(cached) $ECHO_C" >&6
25777else
25778 eval "$as_ac_Header=\$ac_header_preproc"
25779fi
25780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25782
25783fi
25784if test `eval echo '${'$as_ac_Header'}'` = yes; then
25785 cat >>confdefs.h <<_ACEOF
25786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25787_ACEOF
25788
25789fi
25790
25791done
25792
25793
25794
25795
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025796for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025797do
25798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25799if eval "test \"\${$as_ac_Header+set}\" = set"; then
25800 echo "$as_me:$LINENO: checking for $ac_header" >&5
25801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25802if eval "test \"\${$as_ac_Header+set}\" = set"; then
25803 echo $ECHO_N "(cached) $ECHO_C" >&6
25804fi
25805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25807else
25808 # Is the header compilable?
25809echo "$as_me:$LINENO: checking $ac_header usability" >&5
25810echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25811cat >conftest.$ac_ext <<_ACEOF
25812/* confdefs.h. */
25813_ACEOF
25814cat confdefs.h >>conftest.$ac_ext
25815cat >>conftest.$ac_ext <<_ACEOF
25816/* end confdefs.h. */
25817$ac_includes_default
25818#include <$ac_header>
25819_ACEOF
25820rm -f conftest.$ac_objext
25821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25822 (eval $ac_compile) 2>conftest.er1
25823 ac_status=$?
25824 grep -v '^ *+' conftest.er1 >conftest.err
25825 rm -f conftest.er1
25826 cat conftest.err >&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } &&
25829 { ac_try='test -z "$ac_c_werror_flag"
25830 || test ! -s conftest.err'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; } &&
25836 { ac_try='test -s conftest.$ac_objext'
25837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838 (eval $ac_try) 2>&5
25839 ac_status=$?
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; }; then
25842 ac_header_compiler=yes
25843else
25844 echo "$as_me: failed program was:" >&5
25845sed 's/^/| /' conftest.$ac_ext >&5
25846
25847ac_header_compiler=no
25848fi
25849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25851echo "${ECHO_T}$ac_header_compiler" >&6
25852
25853# Is the header present?
25854echo "$as_me:$LINENO: checking $ac_header presence" >&5
25855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25856cat >conftest.$ac_ext <<_ACEOF
25857/* confdefs.h. */
25858_ACEOF
25859cat confdefs.h >>conftest.$ac_ext
25860cat >>conftest.$ac_ext <<_ACEOF
25861/* end confdefs.h. */
25862#include <$ac_header>
25863_ACEOF
25864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25866 ac_status=$?
25867 grep -v '^ *+' conftest.er1 >conftest.err
25868 rm -f conftest.er1
25869 cat conftest.err >&5
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); } >/dev/null; then
25872 if test -s conftest.err; then
25873 ac_cpp_err=$ac_c_preproc_warn_flag
25874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25875 else
25876 ac_cpp_err=
25877 fi
25878else
25879 ac_cpp_err=yes
25880fi
25881if test -z "$ac_cpp_err"; then
25882 ac_header_preproc=yes
25883else
25884 echo "$as_me: failed program was:" >&5
25885sed 's/^/| /' conftest.$ac_ext >&5
25886
25887 ac_header_preproc=no
25888fi
25889rm -f conftest.err conftest.$ac_ext
25890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25891echo "${ECHO_T}$ac_header_preproc" >&6
25892
25893# So? What about this header?
25894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25895 yes:no: )
25896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25900 ac_header_preproc=yes
25901 ;;
25902 no:yes:* )
25903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25915 (
25916 cat <<\_ASBOX
25917## ----------------------------------- ##
25918## Report this to llvmbugs@cs.uiuc.edu ##
25919## ----------------------------------- ##
25920_ASBOX
25921 ) |
25922 sed "s/^/$as_me: WARNING: /" >&2
25923 ;;
25924esac
25925echo "$as_me:$LINENO: checking for $ac_header" >&5
25926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25927if eval "test \"\${$as_ac_Header+set}\" = set"; then
25928 echo $ECHO_N "(cached) $ECHO_C" >&6
25929else
25930 eval "$as_ac_Header=\$ac_header_preproc"
25931fi
25932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25934
25935fi
25936if test `eval echo '${'$as_ac_Header'}'` = yes; then
25937 cat >>confdefs.h <<_ACEOF
25938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25939_ACEOF
25940
25941fi
25942
25943done
25944
25945echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25946echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25947if test "${ac_cv_header_time+set}" = set; then
25948 echo $ECHO_N "(cached) $ECHO_C" >&6
25949else
25950 cat >conftest.$ac_ext <<_ACEOF
25951/* confdefs.h. */
25952_ACEOF
25953cat confdefs.h >>conftest.$ac_ext
25954cat >>conftest.$ac_ext <<_ACEOF
25955/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025956#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025957#include <sys/time.h>
25958#include <time.h>
25959
25960int
25961main ()
25962{
25963if ((struct tm *) 0)
25964return 0;
25965 ;
25966 return 0;
25967}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025968_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025969rm -f conftest.$ac_objext
25970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25971 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025972 ac_status=$?
25973 grep -v '^ *+' conftest.er1 >conftest.err
25974 rm -f conftest.er1
25975 cat conftest.err >&5
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025977 (exit $ac_status); } &&
25978 { ac_try='test -z "$ac_c_werror_flag"
25979 || test ! -s conftest.err'
25980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981 (eval $ac_try) 2>&5
25982 ac_status=$?
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); }; } &&
25985 { ac_try='test -s conftest.$ac_objext'
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25988 ac_status=$?
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; }; then
25991 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025992else
25993 echo "$as_me: failed program was:" >&5
25994sed 's/^/| /' conftest.$ac_ext >&5
25995
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025996ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025997fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25999fi
26000echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26001echo "${ECHO_T}$ac_cv_header_time" >&6
26002if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026003
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026004cat >>confdefs.h <<\_ACEOF
26005#define TIME_WITH_SYS_TIME 1
26006_ACEOF
26007
26008fi
26009
26010echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26011echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26012if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026013 echo $ECHO_N "(cached) $ECHO_C" >&6
26014else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026015 ac_ext=c
26016ac_cpp='$CPP $CPPFLAGS'
26017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26019ac_compiler_gnu=$ac_cv_c_compiler_gnu
26020
26021 cat >conftest.$ac_ext <<_ACEOF
26022/* confdefs.h. */
26023_ACEOF
26024cat confdefs.h >>conftest.$ac_ext
26025cat >>conftest.$ac_ext <<_ACEOF
26026/* end confdefs.h. */
26027#include <sys/mman.h>
26028#include <unistd.h>
26029#include <fcntl.h>
26030int
26031main ()
26032{
26033mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26034 ;
26035 return 0;
26036}
26037_ACEOF
26038rm -f conftest.$ac_objext
26039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26040 (eval $ac_compile) 2>conftest.er1
26041 ac_status=$?
26042 grep -v '^ *+' conftest.er1 >conftest.err
26043 rm -f conftest.er1
26044 cat conftest.err >&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); } &&
26047 { ac_try='test -z "$ac_c_werror_flag"
26048 || test ! -s conftest.err'
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; } &&
26054 { ac_try='test -s conftest.$ac_objext'
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; }; then
26060 ac_cv_header_mmap_anon=yes
26061else
26062 echo "$as_me: failed program was:" >&5
26063sed 's/^/| /' conftest.$ac_ext >&5
26064
26065ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026066fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26068 ac_ext=c
26069ac_cpp='$CPP $CPPFLAGS'
26070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26072ac_compiler_gnu=$ac_cv_c_compiler_gnu
26073
26074
26075fi
26076echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26077echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26078if test "$ac_cv_header_mmap_anon" = yes; then
26079
26080cat >>confdefs.h <<\_ACEOF
26081#define HAVE_MMAP_ANONYMOUS
26082_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026083
26084fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026085
26086
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026087
26088
26089for ac_header in inttypes.h stdint.h
26090do
26091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26092if eval "test \"\${$as_ac_Header+set}\" = set"; then
26093 echo "$as_me:$LINENO: checking for $ac_header" >&5
26094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26095if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026096 echo $ECHO_N "(cached) $ECHO_C" >&6
26097fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026100else
26101 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026102echo "$as_me:$LINENO: checking $ac_header usability" >&5
26103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026104cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026105/* confdefs.h. */
26106_ACEOF
26107cat confdefs.h >>conftest.$ac_ext
26108cat >>conftest.$ac_ext <<_ACEOF
26109/* end confdefs.h. */
26110$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026111#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026112_ACEOF
26113rm -f conftest.$ac_objext
26114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026115 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026116 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026117 grep -v '^ *+' conftest.er1 >conftest.err
26118 rm -f conftest.er1
26119 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026122 { ac_try='test -z "$ac_c_werror_flag"
26123 || test ! -s conftest.err'
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26126 ac_status=$?
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; } &&
26129 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
26135 ac_header_compiler=yes
26136else
26137 echo "$as_me: failed program was:" >&5
26138sed 's/^/| /' conftest.$ac_ext >&5
26139
26140ac_header_compiler=no
26141fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26144echo "${ECHO_T}$ac_header_compiler" >&6
26145
26146# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026147echo "$as_me:$LINENO: checking $ac_header presence" >&5
26148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026149cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026150/* confdefs.h. */
26151_ACEOF
26152cat confdefs.h >>conftest.$ac_ext
26153cat >>conftest.$ac_ext <<_ACEOF
26154/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026155#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026156_ACEOF
26157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26159 ac_status=$?
26160 grep -v '^ *+' conftest.er1 >conftest.err
26161 rm -f conftest.er1
26162 cat conftest.err >&5
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); } >/dev/null; then
26165 if test -s conftest.err; then
26166 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026168 else
26169 ac_cpp_err=
26170 fi
26171else
26172 ac_cpp_err=yes
26173fi
26174if test -z "$ac_cpp_err"; then
26175 ac_header_preproc=yes
26176else
26177 echo "$as_me: failed program was:" >&5
26178sed 's/^/| /' conftest.$ac_ext >&5
26179
26180 ac_header_preproc=no
26181fi
26182rm -f conftest.err conftest.$ac_ext
26183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26184echo "${ECHO_T}$ac_header_preproc" >&6
26185
26186# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26188 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026193 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026194 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026195 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026208 (
26209 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026210## ----------------------------------- ##
26211## Report this to llvmbugs@cs.uiuc.edu ##
26212## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026213_ASBOX
26214 ) |
26215 sed "s/^/$as_me: WARNING: /" >&2
26216 ;;
26217esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026218echo "$as_me:$LINENO: checking for $ac_header" >&5
26219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26220if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026221 echo $ECHO_N "(cached) $ECHO_C" >&6
26222else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026223 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026224fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026227
26228fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026229if test `eval echo '${'$as_ac_Header'}'` = yes; then
26230 cat >>confdefs.h <<_ACEOF
26231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026232_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026233
26234fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026235
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026236done
26237
John Criswell7ed43ad2004-07-19 16:12:29 +000026238
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026239
John Criswell7a73b802003-06-30 21:59:07 +000026240echo "$as_me:$LINENO: checking for pid_t" >&5
26241echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26242if test "${ac_cv_type_pid_t+set}" = set; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26244else
26245 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026246/* confdefs.h. */
26247_ACEOF
26248cat confdefs.h >>conftest.$ac_ext
26249cat >>conftest.$ac_ext <<_ACEOF
26250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026251$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026252int
26253main ()
26254{
26255if ((pid_t *) 0)
26256 return 0;
26257if (sizeof (pid_t))
26258 return 0;
26259 ;
26260 return 0;
26261}
26262_ACEOF
26263rm -f conftest.$ac_objext
26264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026265 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026266 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026267 grep -v '^ *+' conftest.er1 >conftest.err
26268 rm -f conftest.er1
26269 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026272 { ac_try='test -z "$ac_c_werror_flag"
26273 || test ! -s conftest.err'
26274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; } &&
26279 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; }; then
26285 ac_cv_type_pid_t=yes
26286else
26287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026288sed 's/^/| /' conftest.$ac_ext >&5
26289
John Criswell7a73b802003-06-30 21:59:07 +000026290ac_cv_type_pid_t=no
26291fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026293fi
26294echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26295echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26296if test $ac_cv_type_pid_t = yes; then
26297 :
26298else
26299
26300cat >>confdefs.h <<_ACEOF
26301#define pid_t int
26302_ACEOF
26303
26304fi
26305
26306echo "$as_me:$LINENO: checking for size_t" >&5
26307echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26308if test "${ac_cv_type_size_t+set}" = set; then
26309 echo $ECHO_N "(cached) $ECHO_C" >&6
26310else
26311 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026312/* confdefs.h. */
26313_ACEOF
26314cat confdefs.h >>conftest.$ac_ext
26315cat >>conftest.$ac_ext <<_ACEOF
26316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026317$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026318int
26319main ()
26320{
26321if ((size_t *) 0)
26322 return 0;
26323if (sizeof (size_t))
26324 return 0;
26325 ;
26326 return 0;
26327}
26328_ACEOF
26329rm -f conftest.$ac_objext
26330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026331 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026332 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026333 grep -v '^ *+' conftest.er1 >conftest.err
26334 rm -f conftest.er1
26335 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026338 { ac_try='test -z "$ac_c_werror_flag"
26339 || test ! -s conftest.err'
26340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; } &&
26345 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; }; then
26351 ac_cv_type_size_t=yes
26352else
26353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026354sed 's/^/| /' conftest.$ac_ext >&5
26355
John Criswell7a73b802003-06-30 21:59:07 +000026356ac_cv_type_size_t=no
26357fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026359fi
26360echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26361echo "${ECHO_T}$ac_cv_type_size_t" >&6
26362if test $ac_cv_type_size_t = yes; then
26363 :
26364else
26365
26366cat >>confdefs.h <<_ACEOF
26367#define size_t unsigned
26368_ACEOF
26369
26370fi
26371
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026372echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26373echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26374if test "${ac_cv_type_signal+set}" = set; then
26375 echo $ECHO_N "(cached) $ECHO_C" >&6
26376else
26377 cat >conftest.$ac_ext <<_ACEOF
26378/* confdefs.h. */
26379_ACEOF
26380cat confdefs.h >>conftest.$ac_ext
26381cat >>conftest.$ac_ext <<_ACEOF
26382/* end confdefs.h. */
26383#include <sys/types.h>
26384#include <signal.h>
26385#ifdef signal
26386# undef signal
26387#endif
26388#ifdef __cplusplus
26389extern "C" void (*signal (int, void (*)(int)))(int);
26390#else
26391void (*signal ()) ();
26392#endif
26393
26394int
26395main ()
26396{
26397int i;
26398 ;
26399 return 0;
26400}
26401_ACEOF
26402rm -f conftest.$ac_objext
26403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26404 (eval $ac_compile) 2>conftest.er1
26405 ac_status=$?
26406 grep -v '^ *+' conftest.er1 >conftest.err
26407 rm -f conftest.er1
26408 cat conftest.err >&5
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); } &&
26411 { ac_try='test -z "$ac_c_werror_flag"
26412 || test ! -s conftest.err'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; } &&
26418 { ac_try='test -s conftest.$ac_objext'
26419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 (eval $ac_try) 2>&5
26421 ac_status=$?
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; }; then
26424 ac_cv_type_signal=void
26425else
26426 echo "$as_me: failed program was:" >&5
26427sed 's/^/| /' conftest.$ac_ext >&5
26428
26429ac_cv_type_signal=int
26430fi
26431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26432fi
26433echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26434echo "${ECHO_T}$ac_cv_type_signal" >&6
26435
26436cat >>confdefs.h <<_ACEOF
26437#define RETSIGTYPE $ac_cv_type_signal
26438_ACEOF
26439
26440
26441echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26442echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26443if test "${ac_cv_struct_tm+set}" = set; then
26444 echo $ECHO_N "(cached) $ECHO_C" >&6
26445else
26446 cat >conftest.$ac_ext <<_ACEOF
26447/* confdefs.h. */
26448_ACEOF
26449cat confdefs.h >>conftest.$ac_ext
26450cat >>conftest.$ac_ext <<_ACEOF
26451/* end confdefs.h. */
26452#include <sys/types.h>
26453#include <time.h>
26454
26455int
26456main ()
26457{
26458struct tm *tp; tp->tm_sec;
26459 ;
26460 return 0;
26461}
26462_ACEOF
26463rm -f conftest.$ac_objext
26464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465 (eval $ac_compile) 2>conftest.er1
26466 ac_status=$?
26467 grep -v '^ *+' conftest.er1 >conftest.err
26468 rm -f conftest.er1
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest.$ac_objext'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
26485 ac_cv_struct_tm=time.h
26486else
26487 echo "$as_me: failed program was:" >&5
26488sed 's/^/| /' conftest.$ac_ext >&5
26489
26490ac_cv_struct_tm=sys/time.h
26491fi
26492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26493fi
26494echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26495echo "${ECHO_T}$ac_cv_struct_tm" >&6
26496if test $ac_cv_struct_tm = sys/time.h; then
26497
26498cat >>confdefs.h <<\_ACEOF
26499#define TM_IN_SYS_TIME 1
26500_ACEOF
26501
26502fi
26503
John Criswell7a73b802003-06-30 21:59:07 +000026504echo "$as_me:$LINENO: checking for int64_t" >&5
26505echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26506if test "${ac_cv_type_int64_t+set}" = set; then
26507 echo $ECHO_N "(cached) $ECHO_C" >&6
26508else
26509 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026510/* confdefs.h. */
26511_ACEOF
26512cat confdefs.h >>conftest.$ac_ext
26513cat >>conftest.$ac_ext <<_ACEOF
26514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026515$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026516int
26517main ()
26518{
26519if ((int64_t *) 0)
26520 return 0;
26521if (sizeof (int64_t))
26522 return 0;
26523 ;
26524 return 0;
26525}
26526_ACEOF
26527rm -f conftest.$ac_objext
26528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026529 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026530 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026531 grep -v '^ *+' conftest.er1 >conftest.err
26532 rm -f conftest.er1
26533 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026536 { ac_try='test -z "$ac_c_werror_flag"
26537 || test ! -s conftest.err'
26538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539 (eval $ac_try) 2>&5
26540 ac_status=$?
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); }; } &&
26543 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26545 (eval $ac_try) 2>&5
26546 ac_status=$?
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); }; }; then
26549 ac_cv_type_int64_t=yes
26550else
26551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026552sed 's/^/| /' conftest.$ac_ext >&5
26553
John Criswell7a73b802003-06-30 21:59:07 +000026554ac_cv_type_int64_t=no
26555fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026557fi
26558echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26559echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26560if test $ac_cv_type_int64_t = yes; then
26561
26562cat >>confdefs.h <<_ACEOF
26563#define HAVE_INT64_T 1
26564_ACEOF
26565
26566
26567else
26568 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26569echo "$as_me: error: Type int64_t required but not found" >&2;}
26570 { (exit 1); exit 1; }; }
26571fi
26572
26573echo "$as_me:$LINENO: checking for uint64_t" >&5
26574echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26575if test "${ac_cv_type_uint64_t+set}" = set; then
26576 echo $ECHO_N "(cached) $ECHO_C" >&6
26577else
26578 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026579/* confdefs.h. */
26580_ACEOF
26581cat confdefs.h >>conftest.$ac_ext
26582cat >>conftest.$ac_ext <<_ACEOF
26583/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026584$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026585int
26586main ()
26587{
26588if ((uint64_t *) 0)
26589 return 0;
26590if (sizeof (uint64_t))
26591 return 0;
26592 ;
26593 return 0;
26594}
26595_ACEOF
26596rm -f conftest.$ac_objext
26597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026598 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026600 grep -v '^ *+' conftest.er1 >conftest.err
26601 rm -f conftest.er1
26602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026605 { ac_try='test -z "$ac_c_werror_flag"
26606 || test ! -s conftest.err'
26607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608 (eval $ac_try) 2>&5
26609 ac_status=$?
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; } &&
26612 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614 (eval $ac_try) 2>&5
26615 ac_status=$?
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); }; }; then
26618 ac_cv_type_uint64_t=yes
26619else
26620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026621sed 's/^/| /' conftest.$ac_ext >&5
26622
John Criswell7a73b802003-06-30 21:59:07 +000026623ac_cv_type_uint64_t=no
26624fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026626fi
26627echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26628echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26629if test $ac_cv_type_uint64_t = yes; then
26630
26631cat >>confdefs.h <<_ACEOF
26632#define HAVE_UINT64_T 1
26633_ACEOF
26634
26635
26636else
Misha Brukmanceca9042004-09-02 23:02:30 +000026637 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026638echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26639if test "${ac_cv_type_u_int64_t+set}" = set; then
26640 echo $ECHO_N "(cached) $ECHO_C" >&6
26641else
26642 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026643/* confdefs.h. */
26644_ACEOF
26645cat confdefs.h >>conftest.$ac_ext
26646cat >>conftest.$ac_ext <<_ACEOF
26647/* end confdefs.h. */
26648$ac_includes_default
26649int
26650main ()
26651{
26652if ((u_int64_t *) 0)
26653 return 0;
26654if (sizeof (u_int64_t))
26655 return 0;
26656 ;
26657 return 0;
26658}
26659_ACEOF
26660rm -f conftest.$ac_objext
26661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026662 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026664 grep -v '^ *+' conftest.er1 >conftest.err
26665 rm -f conftest.er1
26666 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026669 { ac_try='test -z "$ac_c_werror_flag"
26670 || test ! -s conftest.err'
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; } &&
26676 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26678 (eval $ac_try) 2>&5
26679 ac_status=$?
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); }; }; then
26682 ac_cv_type_u_int64_t=yes
26683else
26684 echo "$as_me: failed program was:" >&5
26685sed 's/^/| /' conftest.$ac_ext >&5
26686
26687ac_cv_type_u_int64_t=no
26688fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026690fi
26691echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26692echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26693if test $ac_cv_type_u_int64_t = yes; then
26694
26695cat >>confdefs.h <<_ACEOF
26696#define HAVE_U_INT64_T 1
26697_ACEOF
26698
26699
Misha Brukmanceca9042004-09-02 23:02:30 +000026700else
26701 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26702echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26703 { (exit 1); exit 1; }; }
26704fi
26705
John Criswell679ff312004-09-02 18:44:44 +000026706fi
26707
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026708
26709
26710
26711
26712
26713
26714
26715
26716for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26717do
26718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26719echo "$as_me:$LINENO: checking for $ac_func" >&5
26720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26721if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026722 echo $ECHO_N "(cached) $ECHO_C" >&6
26723else
26724 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026725/* confdefs.h. */
26726_ACEOF
26727cat confdefs.h >>conftest.$ac_ext
26728cat >>conftest.$ac_ext <<_ACEOF
26729/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26732#define $ac_func innocuous_$ac_func
26733
26734/* System header to define __stub macros and hopefully few prototypes,
26735 which can conflict with char $ac_func (); below.
26736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26737 <limits.h> exists even on freestanding compilers. */
26738
26739#ifdef __STDC__
26740# include <limits.h>
26741#else
26742# include <assert.h>
26743#endif
26744
26745#undef $ac_func
26746
26747/* Override any gcc2 internal prototype to avoid an error. */
26748#ifdef __cplusplus
26749extern "C"
26750{
26751#endif
26752/* We use char because int might match the return type of a gcc2
26753 builtin and then its argument prototype would still apply. */
26754char $ac_func ();
26755/* The GNU C library defines this for functions which it implements
26756 to always fail with ENOSYS. Some functions are actually named
26757 something starting with __ and the normal name is an alias. */
26758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26759choke me
26760#else
26761char (*f) () = $ac_func;
26762#endif
26763#ifdef __cplusplus
26764}
26765#endif
John Criswell7a73b802003-06-30 21:59:07 +000026766
John Criswell7a73b802003-06-30 21:59:07 +000026767int
26768main ()
26769{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026770return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026771 ;
26772 return 0;
26773}
26774_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026775rm -f conftest.$ac_objext conftest$ac_exeext
26776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26777 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026778 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026779 grep -v '^ *+' conftest.er1 >conftest.err
26780 rm -f conftest.er1
26781 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026784 { ac_try='test -z "$ac_c_werror_flag"
26785 || test ! -s conftest.err'
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26788 ac_status=$?
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026791 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26794 ac_status=$?
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026797 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026798else
26799 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026800sed 's/^/| /' conftest.$ac_ext >&5
26801
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026802eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026803fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026804rm -f conftest.err conftest.$ac_objext \
26805 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026806fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26808echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26809if test `eval echo '${'$as_ac_var'}'` = yes; then
26810 cat >>confdefs.h <<_ACEOF
26811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026812_ACEOF
26813
26814fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026815done
John Criswell7a73b802003-06-30 21:59:07 +000026816
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026817
26818
26819
26820for ac_func in strdup strtoq strtoll
26821do
26822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26823echo "$as_me:$LINENO: checking for $ac_func" >&5
26824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26825if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026826 echo $ECHO_N "(cached) $ECHO_C" >&6
26827else
26828 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026829/* confdefs.h. */
26830_ACEOF
26831cat confdefs.h >>conftest.$ac_ext
26832cat >>conftest.$ac_ext <<_ACEOF
26833/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26836#define $ac_func innocuous_$ac_func
26837
26838/* System header to define __stub macros and hopefully few prototypes,
26839 which can conflict with char $ac_func (); below.
26840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26841 <limits.h> exists even on freestanding compilers. */
26842
26843#ifdef __STDC__
26844# include <limits.h>
26845#else
26846# include <assert.h>
26847#endif
26848
26849#undef $ac_func
26850
26851/* Override any gcc2 internal prototype to avoid an error. */
26852#ifdef __cplusplus
26853extern "C"
26854{
26855#endif
26856/* We use char because int might match the return type of a gcc2
26857 builtin and then its argument prototype would still apply. */
26858char $ac_func ();
26859/* The GNU C library defines this for functions which it implements
26860 to always fail with ENOSYS. Some functions are actually named
26861 something starting with __ and the normal name is an alias. */
26862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26863choke me
26864#else
26865char (*f) () = $ac_func;
26866#endif
26867#ifdef __cplusplus
26868}
26869#endif
John Criswell7a73b802003-06-30 21:59:07 +000026870
John Criswell7a73b802003-06-30 21:59:07 +000026871int
26872main ()
26873{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026874return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026875 ;
26876 return 0;
26877}
26878_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026879rm -f conftest.$ac_objext conftest$ac_exeext
26880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26881 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026882 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026883 grep -v '^ *+' conftest.er1 >conftest.err
26884 rm -f conftest.er1
26885 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026888 { ac_try='test -z "$ac_c_werror_flag"
26889 || test ! -s conftest.err'
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026895 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026901 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026902else
26903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026904sed 's/^/| /' conftest.$ac_ext >&5
26905
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026906eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026907fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026908rm -f conftest.err conftest.$ac_objext \
26909 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026910fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26912echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26913if test `eval echo '${'$as_ac_var'}'` = yes; then
26914 cat >>confdefs.h <<_ACEOF
26915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026916_ACEOF
26917
26918fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026919done
John Criswell7a73b802003-06-30 21:59:07 +000026920
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026921echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26922echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000026923if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026924 echo $ECHO_N "(cached) $ECHO_C" >&6
26925else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026926 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026927ac_cpp='$CPP $CPPFLAGS'
26928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930ac_compiler_gnu=$ac_cv_c_compiler_gnu
26931
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026932 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026933 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026934else
26935 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000026936
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026937 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000026938_ACEOF
26939cat confdefs.h >>conftest.$ac_ext
26940cat >>conftest.$ac_ext <<_ACEOF
26941/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000026942
John Criswella0137d32003-10-13 16:22:01 +000026943#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000026944#include <stdlib.h>
26945
John Criswella0137d32003-10-13 16:22:01 +000026946int
26947main ()
26948{
26949
Reid Spencer2706f8c2004-09-19 23:53:36 +000026950volatile double A, B;
26951char Buffer[100];
26952A = 1;
26953A /= 10.0;
26954sprintf(Buffer, "%a", A);
26955B = atof(Buffer);
26956if (A != B)
26957 return (1);
26958if (A != 0x1.999999999999ap-4)
26959 return (1);
26960return (0);
John Criswella0137d32003-10-13 16:22:01 +000026961 ;
26962 return 0;
26963}
26964_ACEOF
26965rm -f conftest$ac_exeext
26966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26967 (eval $ac_link) 2>&5
26968 ac_status=$?
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26972 (eval $ac_try) 2>&5
26973 ac_status=$?
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026976 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000026977else
26978 echo "$as_me: program exited with status $ac_status" >&5
26979echo "$as_me: failed program was:" >&5
26980sed 's/^/| /' conftest.$ac_ext >&5
26981
26982( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000026983llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026984fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026985rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000026986fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026987 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026988ac_cpp='$CPP $CPPFLAGS'
26989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26991ac_compiler_gnu=$ac_cv_c_compiler_gnu
26992
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026993fi
Reid Spencer3be58f92004-11-27 22:01:43 +000026994echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26995echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26996 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000026997
26998cat >>confdefs.h <<\_ACEOF
26999#define HAVE_PRINTF_A 1
27000_ACEOF
27001
Reid Spencer2706f8c2004-09-19 23:53:36 +000027002 fi
John Criswella0137d32003-10-13 16:22:01 +000027003
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027004# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27005# for constant arguments. Useless!
27006echo "$as_me:$LINENO: checking for working alloca.h" >&5
27007echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27008if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027009 echo $ECHO_N "(cached) $ECHO_C" >&6
27010else
John Criswell0021c312004-02-13 21:57:29 +000027011 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027012/* confdefs.h. */
27013_ACEOF
27014cat confdefs.h >>conftest.$ac_ext
27015cat >>conftest.$ac_ext <<_ACEOF
27016/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027017#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027018int
27019main ()
27020{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027021char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027022 ;
27023 return 0;
27024}
27025_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027026rm -f conftest.$ac_objext conftest$ac_exeext
27027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27028 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027029 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027030 grep -v '^ *+' conftest.er1 >conftest.err
27031 rm -f conftest.er1
27032 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027035 { ac_try='test -z "$ac_c_werror_flag"
27036 || test ! -s conftest.err'
27037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27038 (eval $ac_try) 2>&5
27039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027042 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 (eval $ac_try) 2>&5
27045 ac_status=$?
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027048 ac_cv_working_alloca_h=yes
27049else
27050 echo "$as_me: failed program was:" >&5
27051sed 's/^/| /' conftest.$ac_ext >&5
27052
27053ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027054fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027055rm -f conftest.err conftest.$ac_objext \
27056 conftest$ac_exeext conftest.$ac_ext
27057fi
27058echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27059echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27060if test $ac_cv_working_alloca_h = yes; then
27061
27062cat >>confdefs.h <<\_ACEOF
27063#define HAVE_ALLOCA_H 1
27064_ACEOF
27065
27066fi
27067
27068echo "$as_me:$LINENO: checking for alloca" >&5
27069echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27070if test "${ac_cv_func_alloca_works+set}" = set; then
27071 echo $ECHO_N "(cached) $ECHO_C" >&6
27072else
27073 cat >conftest.$ac_ext <<_ACEOF
27074/* confdefs.h. */
27075_ACEOF
27076cat confdefs.h >>conftest.$ac_ext
27077cat >>conftest.$ac_ext <<_ACEOF
27078/* end confdefs.h. */
27079#ifdef __GNUC__
27080# define alloca __builtin_alloca
27081#else
27082# ifdef _MSC_VER
27083# include <malloc.h>
27084# define alloca _alloca
27085# else
27086# if HAVE_ALLOCA_H
27087# include <alloca.h>
27088# else
27089# ifdef _AIX
27090 #pragma alloca
27091# else
27092# ifndef alloca /* predefined by HP cc +Olibcalls */
27093char *alloca ();
27094# endif
27095# endif
27096# endif
27097# endif
27098#endif
27099
27100int
27101main ()
27102{
27103char *p = (char *) alloca (1);
27104 ;
27105 return 0;
27106}
27107_ACEOF
27108rm -f conftest.$ac_objext conftest$ac_exeext
27109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27110 (eval $ac_link) 2>conftest.er1
27111 ac_status=$?
27112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } &&
27117 { ac_try='test -z "$ac_c_werror_flag"
27118 || test ! -s conftest.err'
27119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120 (eval $ac_try) 2>&5
27121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27127 ac_status=$?
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; }; then
27130 ac_cv_func_alloca_works=yes
27131else
27132 echo "$as_me: failed program was:" >&5
27133sed 's/^/| /' conftest.$ac_ext >&5
27134
27135ac_cv_func_alloca_works=no
27136fi
27137rm -f conftest.err conftest.$ac_objext \
27138 conftest$ac_exeext conftest.$ac_ext
27139fi
27140echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27141echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27142
27143if test $ac_cv_func_alloca_works = yes; then
27144
27145cat >>confdefs.h <<\_ACEOF
27146#define HAVE_ALLOCA 1
27147_ACEOF
27148
27149else
27150 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27151# that cause trouble. Some versions do not even contain alloca or
27152# contain a buggy version. If you still want to use their alloca,
27153# use ar to extract alloca.o from them instead of compiling alloca.c.
27154
27155ALLOCA=alloca.$ac_objext
27156
27157cat >>confdefs.h <<\_ACEOF
27158#define C_ALLOCA 1
27159_ACEOF
27160
27161
27162echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27163echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27164if test "${ac_cv_os_cray+set}" = set; then
27165 echo $ECHO_N "(cached) $ECHO_C" >&6
27166else
27167 cat >conftest.$ac_ext <<_ACEOF
27168/* confdefs.h. */
27169_ACEOF
27170cat confdefs.h >>conftest.$ac_ext
27171cat >>conftest.$ac_ext <<_ACEOF
27172/* end confdefs.h. */
27173#if defined(CRAY) && ! defined(CRAY2)
27174webecray
27175#else
27176wenotbecray
27177#endif
27178
27179_ACEOF
27180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27181 $EGREP "webecray" >/dev/null 2>&1; then
27182 ac_cv_os_cray=yes
27183else
27184 ac_cv_os_cray=no
27185fi
27186rm -f conftest*
27187
27188fi
27189echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27190echo "${ECHO_T}$ac_cv_os_cray" >&6
27191if test $ac_cv_os_cray = yes; then
27192 for ac_func in _getb67 GETB67 getb67; do
27193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27194echo "$as_me:$LINENO: checking for $ac_func" >&5
27195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27196if eval "test \"\${$as_ac_var+set}\" = set"; then
27197 echo $ECHO_N "(cached) $ECHO_C" >&6
27198else
27199 cat >conftest.$ac_ext <<_ACEOF
27200/* confdefs.h. */
27201_ACEOF
27202cat confdefs.h >>conftest.$ac_ext
27203cat >>conftest.$ac_ext <<_ACEOF
27204/* end confdefs.h. */
27205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27207#define $ac_func innocuous_$ac_func
27208
27209/* System header to define __stub macros and hopefully few prototypes,
27210 which can conflict with char $ac_func (); below.
27211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27212 <limits.h> exists even on freestanding compilers. */
27213
27214#ifdef __STDC__
27215# include <limits.h>
27216#else
27217# include <assert.h>
27218#endif
27219
27220#undef $ac_func
27221
27222/* Override any gcc2 internal prototype to avoid an error. */
27223#ifdef __cplusplus
27224extern "C"
27225{
27226#endif
27227/* We use char because int might match the return type of a gcc2
27228 builtin and then its argument prototype would still apply. */
27229char $ac_func ();
27230/* The GNU C library defines this for functions which it implements
27231 to always fail with ENOSYS. Some functions are actually named
27232 something starting with __ and the normal name is an alias. */
27233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27234choke me
27235#else
27236char (*f) () = $ac_func;
27237#endif
27238#ifdef __cplusplus
27239}
27240#endif
27241
27242int
27243main ()
27244{
27245return f != $ac_func;
27246 ;
27247 return 0;
27248}
27249_ACEOF
27250rm -f conftest.$ac_objext conftest$ac_exeext
27251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27252 (eval $ac_link) 2>conftest.er1
27253 ac_status=$?
27254 grep -v '^ *+' conftest.er1 >conftest.err
27255 rm -f conftest.er1
27256 cat conftest.err >&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); } &&
27259 { ac_try='test -z "$ac_c_werror_flag"
27260 || test ! -s conftest.err'
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27263 ac_status=$?
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; } &&
27266 { ac_try='test -s conftest$ac_exeext'
27267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268 (eval $ac_try) 2>&5
27269 ac_status=$?
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; }; then
27272 eval "$as_ac_var=yes"
27273else
27274 echo "$as_me: failed program was:" >&5
27275sed 's/^/| /' conftest.$ac_ext >&5
27276
27277eval "$as_ac_var=no"
27278fi
27279rm -f conftest.err conftest.$ac_objext \
27280 conftest$ac_exeext conftest.$ac_ext
27281fi
27282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27284if test `eval echo '${'$as_ac_var'}'` = yes; then
27285
27286cat >>confdefs.h <<_ACEOF
27287#define CRAY_STACKSEG_END $ac_func
27288_ACEOF
27289
27290 break
27291fi
27292
27293 done
27294fi
27295
27296echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27297echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27298if test "${ac_cv_c_stack_direction+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27300else
27301 if test "$cross_compiling" = yes; then
27302 ac_cv_c_stack_direction=0
27303else
27304 cat >conftest.$ac_ext <<_ACEOF
27305/* confdefs.h. */
27306_ACEOF
27307cat confdefs.h >>conftest.$ac_ext
27308cat >>conftest.$ac_ext <<_ACEOF
27309/* end confdefs.h. */
27310int
27311find_stack_direction ()
27312{
27313 static char *addr = 0;
27314 auto char dummy;
27315 if (addr == 0)
27316 {
27317 addr = &dummy;
27318 return find_stack_direction ();
27319 }
John Criswell0021c312004-02-13 21:57:29 +000027320 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027321 return (&dummy > addr) ? 1 : -1;
27322}
John Criswell0021c312004-02-13 21:57:29 +000027323
John Criswell0021c312004-02-13 21:57:29 +000027324int
27325main ()
27326{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027327 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027328}
27329_ACEOF
27330rm -f conftest$ac_exeext
27331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27332 (eval $ac_link) 2>&5
27333 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337 (eval $ac_try) 2>&5
27338 ac_status=$?
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027341 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027342else
27343 echo "$as_me: program exited with status $ac_status" >&5
27344echo "$as_me: failed program was:" >&5
27345sed 's/^/| /' conftest.$ac_ext >&5
27346
27347( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027348ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027349fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027351fi
27352fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027353echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27354echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27355
27356cat >>confdefs.h <<_ACEOF
27357#define STACK_DIRECTION $ac_cv_c_stack_direction
27358_ACEOF
27359
27360
John Criswell0021c312004-02-13 21:57:29 +000027361fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027362
27363
27364echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27365echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27366if test "${ac_cv_func_rand48+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27368else
27369 ac_ext=cc
27370ac_cpp='$CXXCPP $CPPFLAGS'
27371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27374
27375 cat >conftest.$ac_ext <<_ACEOF
27376/* confdefs.h. */
27377_ACEOF
27378cat confdefs.h >>conftest.$ac_ext
27379cat >>conftest.$ac_ext <<_ACEOF
27380/* end confdefs.h. */
27381#include <stdlib.h>
27382int
27383main ()
27384{
27385srand48(0);lrand48();drand48();
27386 ;
27387 return 0;
27388}
27389_ACEOF
27390rm -f conftest.$ac_objext
27391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27392 (eval $ac_compile) 2>conftest.er1
27393 ac_status=$?
27394 grep -v '^ *+' conftest.er1 >conftest.err
27395 rm -f conftest.er1
27396 cat conftest.err >&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); } &&
27399 { ac_try='test -z "$ac_cxx_werror_flag"
27400 || test ! -s conftest.err'
27401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402 (eval $ac_try) 2>&5
27403 ac_status=$?
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; } &&
27406 { ac_try='test -s conftest.$ac_objext'
27407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 (eval $ac_try) 2>&5
27409 ac_status=$?
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); }; }; then
27412 ac_cv_func_rand48=yes
27413else
27414 echo "$as_me: failed program was:" >&5
27415sed 's/^/| /' conftest.$ac_ext >&5
27416
27417ac_cv_func_rand48=no
27418fi
27419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27420 ac_ext=c
27421ac_cpp='$CPP $CPPFLAGS'
27422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27424ac_compiler_gnu=$ac_cv_c_compiler_gnu
27425
27426fi
27427echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27428echo "${ECHO_T}$ac_cv_func_rand48" >&6
27429
27430if test "$ac_cv_func_rand48" = "yes" ; then
27431
27432cat >>confdefs.h <<\_ACEOF
27433#define HAVE_RAND48 1
27434_ACEOF
27435
27436fi
John Criswell0021c312004-02-13 21:57:29 +000027437
27438
John Criswell7a73b802003-06-30 21:59:07 +000027439echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27440echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27441if test "${ac_cv_cxx_namespaces+set}" = set; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27443else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027444 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027445ac_cpp='$CXXCPP $CPPFLAGS'
27446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27449
27450 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027451/* confdefs.h. */
27452_ACEOF
27453cat confdefs.h >>conftest.$ac_ext
27454cat >>conftest.$ac_ext <<_ACEOF
27455/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027456namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027457int
27458main ()
27459{
27460using namespace Outer::Inner; return i;
27461 ;
27462 return 0;
27463}
27464_ACEOF
27465rm -f conftest.$ac_objext
27466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027467 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027468 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027469 grep -v '^ *+' conftest.er1 >conftest.err
27470 rm -f conftest.er1
27471 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027474 { ac_try='test -z "$ac_cxx_werror_flag"
27475 || test ! -s conftest.err'
27476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477 (eval $ac_try) 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483 (eval $ac_try) 2>&5
27484 ac_status=$?
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); }; }; then
27487 ac_cv_cxx_namespaces=yes
27488else
27489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027490sed 's/^/| /' conftest.$ac_ext >&5
27491
John Criswell7a73b802003-06-30 21:59:07 +000027492ac_cv_cxx_namespaces=no
27493fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027495 ac_ext=c
27496ac_cpp='$CPP $CPPFLAGS'
27497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27499ac_compiler_gnu=$ac_cv_c_compiler_gnu
27500
27501
27502fi
27503echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27504echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27505if test "$ac_cv_cxx_namespaces" = yes; then
27506
27507cat >>confdefs.h <<\_ACEOF
27508#define HAVE_NAMESPACES
27509_ACEOF
27510
27511fi
27512
Brian Gaeke90583492003-11-10 03:06:28 +000027513echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27514echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27515if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027516 echo $ECHO_N "(cached) $ECHO_C" >&6
27517else
27518
John Criswell7a73b802003-06-30 21:59:07 +000027519 ac_ext=cc
27520ac_cpp='$CXXCPP $CPPFLAGS'
27521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27524
27525 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027526/* confdefs.h. */
27527_ACEOF
27528cat confdefs.h >>conftest.$ac_ext
27529cat >>conftest.$ac_ext <<_ACEOF
27530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027531#include <ext/hash_map>
27532#ifdef HAVE_NAMESPACES
27533using namespace std;
27534#endif
John Criswell7a73b802003-06-30 21:59:07 +000027535int
27536main ()
27537{
Brian Gaeke90583492003-11-10 03:06:28 +000027538hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027539 ;
27540 return 0;
27541}
27542_ACEOF
27543rm -f conftest.$ac_objext
27544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027545 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027546 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027547 grep -v '^ *+' conftest.er1 >conftest.err
27548 rm -f conftest.er1
27549 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027552 { ac_try='test -z "$ac_cxx_werror_flag"
27553 || test ! -s conftest.err'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27556 ac_status=$?
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; } &&
27559 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561 (eval $ac_try) 2>&5
27562 ac_status=$?
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027565 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027566else
27567 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027568sed 's/^/| /' conftest.$ac_ext >&5
27569
Brian Gaeke90583492003-11-10 03:06:28 +000027570ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027571fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027573 ac_ext=c
27574ac_cpp='$CPP $CPPFLAGS'
27575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27577ac_compiler_gnu=$ac_cv_c_compiler_gnu
27578
John Criswell7a73b802003-06-30 21:59:07 +000027579fi
Brian Gaeke90583492003-11-10 03:06:28 +000027580echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27581echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027582 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27583 then
John Criswell9f011862004-09-24 18:28:00 +000027584
27585cat >>confdefs.h <<\_ACEOF
27586#define HAVE_STD_EXT_HASH_MAP 1
27587_ACEOF
27588
27589 else
27590
27591cat >>confdefs.h <<\_ACEOF
27592#define HAVE_STD_EXT_HASH_MAP 0
27593_ACEOF
27594
Brian Gaeke90583492003-11-10 03:06:28 +000027595 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027596
Brian Gaeke90583492003-11-10 03:06:28 +000027597 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27598echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27599if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601else
27602
Brian Gaeke90583492003-11-10 03:06:28 +000027603 ac_ext=cc
27604ac_cpp='$CXXCPP $CPPFLAGS'
27605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27608
27609 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027610/* confdefs.h. */
27611_ACEOF
27612cat confdefs.h >>conftest.$ac_ext
27613cat >>conftest.$ac_ext <<_ACEOF
27614/* end confdefs.h. */
27615#include <ext/hash_map>
27616#ifdef HAVE_NAMESPACES
27617using namespace __gnu_cxx;
27618#endif
27619int
27620main ()
27621{
27622hash_map<int,int> t;
27623 ;
27624 return 0;
27625}
27626_ACEOF
27627rm -f conftest.$ac_objext
27628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027629 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027630 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027631 grep -v '^ *+' conftest.er1 >conftest.err
27632 rm -f conftest.er1
27633 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027636 { ac_try='test -z "$ac_cxx_werror_flag"
27637 || test ! -s conftest.err'
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27640 ac_status=$?
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; } &&
27643 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27649 ac_cv_cxx_have_gnu_ext_hash_map=yes
27650else
27651 echo "$as_me: failed program was:" >&5
27652sed 's/^/| /' conftest.$ac_ext >&5
27653
27654ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027655fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027657 ac_ext=c
27658ac_cpp='$CPP $CPPFLAGS'
27659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27661ac_compiler_gnu=$ac_cv_c_compiler_gnu
27662
27663fi
27664echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27665echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027666 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27667 then
John Criswell9f011862004-09-24 18:28:00 +000027668
27669cat >>confdefs.h <<\_ACEOF
27670#define HAVE_GNU_EXT_HASH_MAP 1
27671_ACEOF
27672
27673 else
27674
27675cat >>confdefs.h <<\_ACEOF
27676#define HAVE_GNU_EXT_HASH_MAP 0
27677_ACEOF
27678
Brian Gaeke90583492003-11-10 03:06:28 +000027679 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027680
Brian Gaeke90583492003-11-10 03:06:28 +000027681 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27682echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27683if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
27685else
John Criswell7a73b802003-06-30 21:59:07 +000027686
Brian Gaeke90583492003-11-10 03:06:28 +000027687 ac_ext=cc
27688ac_cpp='$CXXCPP $CPPFLAGS'
27689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27692
27693 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027694/* confdefs.h. */
27695_ACEOF
27696cat confdefs.h >>conftest.$ac_ext
27697cat >>conftest.$ac_ext <<_ACEOF
27698/* end confdefs.h. */
27699#include <hash_map>
27700int
27701main ()
27702{
27703hash_map<int,int> t;
27704 ;
27705 return 0;
27706}
27707_ACEOF
27708rm -f conftest.$ac_objext
27709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027710 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027712 grep -v '^ *+' conftest.er1 >conftest.err
27713 rm -f conftest.er1
27714 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027717 { ac_try='test -z "$ac_cxx_werror_flag"
27718 || test ! -s conftest.err'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; } &&
27724 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
27730 ac_cv_cxx_have_global_hash_map=yes
27731else
27732 echo "$as_me: failed program was:" >&5
27733sed 's/^/| /' conftest.$ac_ext >&5
27734
27735ac_cv_cxx_have_global_hash_map=no
27736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027738 ac_ext=c
27739ac_cpp='$CPP $CPPFLAGS'
27740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27742ac_compiler_gnu=$ac_cv_c_compiler_gnu
27743
27744fi
27745echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27746echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027747 if test "$ac_cv_cxx_have_global_hash_map" = yes
27748 then
John Criswell9f011862004-09-24 18:28:00 +000027749
27750cat >>confdefs.h <<\_ACEOF
27751#define HAVE_GLOBAL_HASH_MAP 1
27752_ACEOF
27753
27754 else
27755
27756cat >>confdefs.h <<\_ACEOF
27757#define HAVE_GLOBAL_HASH_MAP 0
27758_ACEOF
27759
Brian Gaeke90583492003-11-10 03:06:28 +000027760 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027761
Brian Gaeke90583492003-11-10 03:06:28 +000027762echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27763echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27764if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027765 echo $ECHO_N "(cached) $ECHO_C" >&6
27766else
27767
John Criswell7a73b802003-06-30 21:59:07 +000027768 ac_ext=cc
27769ac_cpp='$CXXCPP $CPPFLAGS'
27770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27773
27774 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027775/* confdefs.h. */
27776_ACEOF
27777cat confdefs.h >>conftest.$ac_ext
27778cat >>conftest.$ac_ext <<_ACEOF
27779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027780#include <ext/hash_set>
27781#ifdef HAVE_NAMESPACES
27782using namespace std;
27783#endif
John Criswell7a73b802003-06-30 21:59:07 +000027784int
27785main ()
27786{
Brian Gaeke90583492003-11-10 03:06:28 +000027787hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027788 ;
27789 return 0;
27790}
27791_ACEOF
27792rm -f conftest.$ac_objext
27793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027794 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027796 grep -v '^ *+' conftest.er1 >conftest.err
27797 rm -f conftest.er1
27798 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027801 { ac_try='test -z "$ac_cxx_werror_flag"
27802 || test ! -s conftest.err'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; } &&
27808 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027814 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027815else
27816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027817sed 's/^/| /' conftest.$ac_ext >&5
27818
Brian Gaeke90583492003-11-10 03:06:28 +000027819ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027820fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027822 ac_ext=c
27823ac_cpp='$CPP $CPPFLAGS'
27824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27826ac_compiler_gnu=$ac_cv_c_compiler_gnu
27827
27828fi
27829echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27830echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027831 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27832 then
John Criswell9f011862004-09-24 18:28:00 +000027833
27834cat >>confdefs.h <<\_ACEOF
27835#define HAVE_STD_EXT_HASH_SET 1
27836_ACEOF
27837
27838 else
27839
27840cat >>confdefs.h <<\_ACEOF
27841#define HAVE_STD_EXT_HASH_SET 0
27842_ACEOF
27843
Brian Gaeke90583492003-11-10 03:06:28 +000027844 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027845
Brian Gaeke90583492003-11-10 03:06:28 +000027846 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27847echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27848if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27849 echo $ECHO_N "(cached) $ECHO_C" >&6
27850else
27851
Brian Gaeke90583492003-11-10 03:06:28 +000027852 ac_ext=cc
27853ac_cpp='$CXXCPP $CPPFLAGS'
27854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27857
John Criswell7a73b802003-06-30 21:59:07 +000027858 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027859/* confdefs.h. */
27860_ACEOF
27861cat confdefs.h >>conftest.$ac_ext
27862cat >>conftest.$ac_ext <<_ACEOF
27863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027864#include <ext/hash_set>
27865#ifdef HAVE_NAMESPACES
27866using namespace __gnu_cxx;
27867#endif
John Criswell7a73b802003-06-30 21:59:07 +000027868int
27869main ()
27870{
Brian Gaeke90583492003-11-10 03:06:28 +000027871hash_set<int> t;
27872 ;
27873 return 0;
27874}
27875_ACEOF
27876rm -f conftest.$ac_objext
27877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027878 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027879 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027880 grep -v '^ *+' conftest.er1 >conftest.err
27881 rm -f conftest.er1
27882 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027885 { ac_try='test -z "$ac_cxx_werror_flag"
27886 || test ! -s conftest.err'
27887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888 (eval $ac_try) 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; } &&
27892 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27894 (eval $ac_try) 2>&5
27895 ac_status=$?
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; }; then
27898 ac_cv_cxx_have_gnu_ext_hash_set=yes
27899else
27900 echo "$as_me: failed program was:" >&5
27901sed 's/^/| /' conftest.$ac_ext >&5
27902
27903ac_cv_cxx_have_gnu_ext_hash_set=no
27904fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027906 ac_ext=c
27907ac_cpp='$CPP $CPPFLAGS'
27908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27910ac_compiler_gnu=$ac_cv_c_compiler_gnu
27911
27912fi
27913echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27914echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027915 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27916 then
John Criswell9f011862004-09-24 18:28:00 +000027917
27918cat >>confdefs.h <<\_ACEOF
27919#define HAVE_GNU_EXT_HASH_SET 1
27920_ACEOF
27921
27922 else
27923
27924cat >>confdefs.h <<\_ACEOF
27925#define HAVE_GNU_EXT_HASH_SET 0
27926_ACEOF
27927
Brian Gaeke90583492003-11-10 03:06:28 +000027928 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027929
Brian Gaeke90583492003-11-10 03:06:28 +000027930 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27931echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27932if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27933 echo $ECHO_N "(cached) $ECHO_C" >&6
27934else
27935
Brian Gaeke90583492003-11-10 03:06:28 +000027936 ac_ext=cc
27937ac_cpp='$CXXCPP $CPPFLAGS'
27938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27941
27942 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027943/* confdefs.h. */
27944_ACEOF
27945cat confdefs.h >>conftest.$ac_ext
27946cat >>conftest.$ac_ext <<_ACEOF
27947/* end confdefs.h. */
27948#include <hash_set>
27949int
27950main ()
27951{
John Criswell7a73b802003-06-30 21:59:07 +000027952hash_set<int> t; return 0;
27953 ;
27954 return 0;
27955}
27956_ACEOF
27957rm -f conftest.$ac_objext
27958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027959 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027960 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027961 grep -v '^ *+' conftest.er1 >conftest.err
27962 rm -f conftest.er1
27963 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027966 { ac_try='test -z "$ac_cxx_werror_flag"
27967 || test ! -s conftest.err'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; } &&
27973 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027979 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027980else
27981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027982sed 's/^/| /' conftest.$ac_ext >&5
27983
Brian Gaeke90583492003-11-10 03:06:28 +000027984ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027985fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027987 ac_ext=c
27988ac_cpp='$CPP $CPPFLAGS'
27989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27991ac_compiler_gnu=$ac_cv_c_compiler_gnu
27992
John Criswell7a73b802003-06-30 21:59:07 +000027993fi
Brian Gaeke90583492003-11-10 03:06:28 +000027994echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27995echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027996 if test "$ac_cv_cxx_have_global_hash_set" = yes
27997 then
John Criswell9f011862004-09-24 18:28:00 +000027998
27999cat >>confdefs.h <<\_ACEOF
28000#define HAVE_GLOBAL_HASH_SET 1
28001_ACEOF
28002
28003 else
28004
28005cat >>confdefs.h <<\_ACEOF
28006#define HAVE_GLOBAL_HASH_SET 0
28007_ACEOF
28008
Brian Gaeke90583492003-11-10 03:06:28 +000028009 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028010
John Criswell7a73b802003-06-30 21:59:07 +000028011echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28012echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28013if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28014 echo $ECHO_N "(cached) $ECHO_C" >&6
28015else
28016
John Criswell7a73b802003-06-30 21:59:07 +000028017 ac_ext=cc
28018ac_cpp='$CXXCPP $CPPFLAGS'
28019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28022
28023 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028024/* confdefs.h. */
28025_ACEOF
28026cat confdefs.h >>conftest.$ac_ext
28027cat >>conftest.$ac_ext <<_ACEOF
28028/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028029#include <iterator>
28030#ifdef HAVE_NAMESPACES
28031using namespace std;
28032#endif
John Criswell7a73b802003-06-30 21:59:07 +000028033int
28034main ()
28035{
28036iterator<int,int,int> t; return 0;
28037 ;
28038 return 0;
28039}
28040_ACEOF
28041rm -f conftest.$ac_objext
28042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028043 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028044 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028045 grep -v '^ *+' conftest.er1 >conftest.err
28046 rm -f conftest.er1
28047 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028050 { ac_try='test -z "$ac_cxx_werror_flag"
28051 || test ! -s conftest.err'
28052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053 (eval $ac_try) 2>&5
28054 ac_status=$?
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); }; } &&
28057 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059 (eval $ac_try) 2>&5
28060 ac_status=$?
28061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); }; }; then
28063 ac_cv_cxx_have_std_iterator=yes
28064else
28065 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028066sed 's/^/| /' conftest.$ac_ext >&5
28067
John Criswell7a73b802003-06-30 21:59:07 +000028068ac_cv_cxx_have_std_iterator=no
28069fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028071 ac_ext=c
28072ac_cpp='$CPP $CPPFLAGS'
28073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28075ac_compiler_gnu=$ac_cv_c_compiler_gnu
28076
28077
28078fi
28079echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28080echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028081if test "$ac_cv_cxx_have_std_iterator" = yes
28082then
John Criswell40468462004-09-24 21:19:06 +000028083
28084cat >>confdefs.h <<\_ACEOF
28085#define HAVE_STD_ITERATOR 1
28086_ACEOF
28087
28088else
28089
28090cat >>confdefs.h <<\_ACEOF
28091#define HAVE_STD_ITERATOR 0
28092_ACEOF
28093
John Criswell7a73b802003-06-30 21:59:07 +000028094fi
28095
28096echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28097echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28098if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28099 echo $ECHO_N "(cached) $ECHO_C" >&6
28100else
28101
John Criswell7a73b802003-06-30 21:59:07 +000028102 ac_ext=cc
28103ac_cpp='$CXXCPP $CPPFLAGS'
28104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28107
28108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028109/* confdefs.h. */
28110_ACEOF
28111cat confdefs.h >>conftest.$ac_ext
28112cat >>conftest.$ac_ext <<_ACEOF
28113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028114#include <iterator>
28115#ifdef HAVE_NAMESPACES
28116using namespace std;
28117#endif
John Criswell7a73b802003-06-30 21:59:07 +000028118int
28119main ()
28120{
John Criswellc78022e2003-07-29 19:11:58 +000028121bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028122 ;
28123 return 0;
28124}
28125_ACEOF
28126rm -f conftest.$ac_objext
28127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028128 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028129 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028130 grep -v '^ *+' conftest.er1 >conftest.err
28131 rm -f conftest.er1
28132 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028135 { ac_try='test -z "$ac_cxx_werror_flag"
28136 || test ! -s conftest.err'
28137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138 (eval $ac_try) 2>&5
28139 ac_status=$?
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; } &&
28142 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144 (eval $ac_try) 2>&5
28145 ac_status=$?
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
28148 ac_cv_cxx_have_bi_iterator=yes
28149else
28150 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028151sed 's/^/| /' conftest.$ac_ext >&5
28152
John Criswell7a73b802003-06-30 21:59:07 +000028153ac_cv_cxx_have_bi_iterator=no
28154fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028156 ac_ext=c
28157ac_cpp='$CPP $CPPFLAGS'
28158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28160ac_compiler_gnu=$ac_cv_c_compiler_gnu
28161
28162
28163fi
28164echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28165echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028166if test "$ac_cv_cxx_have_bi_iterator" = yes
28167then
John Criswell40468462004-09-24 21:19:06 +000028168
28169cat >>confdefs.h <<\_ACEOF
28170#define HAVE_BI_ITERATOR 1
28171_ACEOF
28172
28173else
28174
28175cat >>confdefs.h <<\_ACEOF
28176#define HAVE_BI_ITERATOR 0
28177_ACEOF
28178
John Criswell7a73b802003-06-30 21:59:07 +000028179fi
28180
28181echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28182echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28183if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28184 echo $ECHO_N "(cached) $ECHO_C" >&6
28185else
28186
John Criswell7a73b802003-06-30 21:59:07 +000028187 ac_ext=cc
28188ac_cpp='$CXXCPP $CPPFLAGS'
28189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28192
28193 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028194/* confdefs.h. */
28195_ACEOF
28196cat confdefs.h >>conftest.$ac_ext
28197cat >>conftest.$ac_ext <<_ACEOF
28198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028199#include <iterator>
28200#ifdef HAVE_NAMESPACES
28201using namespace std;
28202#endif
John Criswell7a73b802003-06-30 21:59:07 +000028203int
28204main ()
28205{
John Criswellc78022e2003-07-29 19:11:58 +000028206forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028207 ;
28208 return 0;
28209}
28210_ACEOF
28211rm -f conftest.$ac_objext
28212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028213 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028214 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028215 grep -v '^ *+' conftest.er1 >conftest.err
28216 rm -f conftest.er1
28217 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028220 { ac_try='test -z "$ac_cxx_werror_flag"
28221 || test ! -s conftest.err'
28222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28223 (eval $ac_try) 2>&5
28224 ac_status=$?
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; } &&
28227 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229 (eval $ac_try) 2>&5
28230 ac_status=$?
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; }; then
28233 ac_cv_cxx_have_fwd_iterator=yes
28234else
28235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028236sed 's/^/| /' conftest.$ac_ext >&5
28237
John Criswell7a73b802003-06-30 21:59:07 +000028238ac_cv_cxx_have_fwd_iterator=no
28239fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028241 ac_ext=c
28242ac_cpp='$CPP $CPPFLAGS'
28243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28245ac_compiler_gnu=$ac_cv_c_compiler_gnu
28246
28247
28248fi
28249echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28250echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028251if test "$ac_cv_cxx_have_fwd_iterator" = yes
28252then
John Criswell40468462004-09-24 21:19:06 +000028253
28254cat >>confdefs.h <<\_ACEOF
28255#define HAVE_FWD_ITERATOR 1
28256_ACEOF
28257
28258else
28259
28260cat >>confdefs.h <<\_ACEOF
28261#define HAVE_FWD_ITERATOR 0
28262_ACEOF
28263
John Criswell7a73b802003-06-30 21:59:07 +000028264fi
28265
28266
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028267echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28268echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28269if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28271else
28272 ac_ext=cc
28273ac_cpp='$CXXCPP $CPPFLAGS'
28274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28277
Reid Spencerabec8f92004-10-27 23:03:44 +000028278 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028279/* confdefs.h. */
28280_ACEOF
28281cat confdefs.h >>conftest.$ac_ext
28282cat >>conftest.$ac_ext <<_ACEOF
28283/* end confdefs.h. */
28284#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028285int
28286main ()
28287{
28288float f; isnan(f);
28289 ;
28290 return 0;
28291}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028292_ACEOF
28293rm -f conftest.$ac_objext
28294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028295 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028302 { ac_try='test -z "$ac_cxx_werror_flag"
28303 || test ! -s conftest.err'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
28309 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28312 ac_status=$?
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; }; then
28315 ac_cv_func_isnan_in_math_h=yes
28316else
28317 echo "$as_me: failed program was:" >&5
28318sed 's/^/| /' conftest.$ac_ext >&5
28319
28320ac_cv_func_isnan_in_math_h=no
28321fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028323 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028324ac_cpp='$CPP $CPPFLAGS'
28325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28327ac_compiler_gnu=$ac_cv_c_compiler_gnu
28328
28329fi
28330echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28331echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028332
28333
28334if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028335
28336cat >>confdefs.h <<\_ACEOF
28337#define HAVE_ISNAN_IN_MATH_H 1
28338_ACEOF
28339
Reid Spencerabec8f92004-10-27 23:03:44 +000028340fi
28341
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028342echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28343echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28344if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346else
28347 ac_ext=cc
28348ac_cpp='$CXXCPP $CPPFLAGS'
28349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28352
Reid Spencerabec8f92004-10-27 23:03:44 +000028353 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
28359#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028360int
28361main ()
28362{
28363float f; isnan(f);
28364 ;
28365 return 0;
28366}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028367_ACEOF
28368rm -f conftest.$ac_objext
28369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028370 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028372 grep -v '^ *+' conftest.er1 >conftest.err
28373 rm -f conftest.er1
28374 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028377 { ac_try='test -z "$ac_cxx_werror_flag"
28378 || test ! -s conftest.err'
28379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28380 (eval $ac_try) 2>&5
28381 ac_status=$?
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; } &&
28384 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28386 (eval $ac_try) 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; }; then
28390 ac_cv_func_isnan_in_cmath=yes
28391else
28392 echo "$as_me: failed program was:" >&5
28393sed 's/^/| /' conftest.$ac_ext >&5
28394
28395ac_cv_func_isnan_in_cmath=no
28396fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028398 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028399ac_cpp='$CPP $CPPFLAGS'
28400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28402ac_compiler_gnu=$ac_cv_c_compiler_gnu
28403
28404fi
28405echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28406echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028407
28408if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028409
28410cat >>confdefs.h <<\_ACEOF
28411#define HAVE_ISNAN_IN_CMATH 1
28412_ACEOF
28413
Reid Spencerabec8f92004-10-27 23:03:44 +000028414fi
28415
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028416echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28417echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28418if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28419 echo $ECHO_N "(cached) $ECHO_C" >&6
28420else
28421 ac_ext=cc
28422ac_cpp='$CXXCPP $CPPFLAGS'
28423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28426
Reid Spencerabec8f92004-10-27 23:03:44 +000028427 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028428/* confdefs.h. */
28429_ACEOF
28430cat confdefs.h >>conftest.$ac_ext
28431cat >>conftest.$ac_ext <<_ACEOF
28432/* end confdefs.h. */
28433#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028434int
28435main ()
28436{
28437float f; std::isnan(f);
28438 ;
28439 return 0;
28440}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028441_ACEOF
28442rm -f conftest.$ac_objext
28443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028444 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028451 { ac_try='test -z "$ac_cxx_werror_flag"
28452 || test ! -s conftest.err'
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; } &&
28458 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460 (eval $ac_try) 2>&5
28461 ac_status=$?
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); }; }; then
28464 ac_cv_func_std_isnan_in_cmath=yes
28465else
28466 echo "$as_me: failed program was:" >&5
28467sed 's/^/| /' conftest.$ac_ext >&5
28468
28469ac_cv_func_std_isnan_in_cmath=no
28470fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028472 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028473ac_cpp='$CPP $CPPFLAGS'
28474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28476ac_compiler_gnu=$ac_cv_c_compiler_gnu
28477
28478fi
28479echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28480echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028481
28482if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028483
28484cat >>confdefs.h <<\_ACEOF
28485#define HAVE_STD_ISNAN_IN_CMATH 1
28486_ACEOF
28487
Reid Spencerabec8f92004-10-27 23:03:44 +000028488fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028489
28490
Brian Gaeke52a551d2004-07-21 03:14:12 +000028491echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28492echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28493if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28494 echo $ECHO_N "(cached) $ECHO_C" >&6
28495else
28496 ac_ext=cc
28497ac_cpp='$CXXCPP $CPPFLAGS'
28498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28501
Reid Spencerabec8f92004-10-27 23:03:44 +000028502 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028503/* confdefs.h. */
28504_ACEOF
28505cat confdefs.h >>conftest.$ac_ext
28506cat >>conftest.$ac_ext <<_ACEOF
28507/* end confdefs.h. */
28508#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028509int
28510main ()
28511{
28512float f; isinf(f);
28513 ;
28514 return 0;
28515}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028516_ACEOF
28517rm -f conftest.$ac_objext
28518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028519 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028526 { ac_try='test -z "$ac_cxx_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
28539 ac_cv_func_isinf_in_math_h=yes
28540else
28541 echo "$as_me: failed program was:" >&5
28542sed 's/^/| /' conftest.$ac_ext >&5
28543
28544ac_cv_func_isinf_in_math_h=no
28545fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028547 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028548ac_cpp='$CPP $CPPFLAGS'
28549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28551ac_compiler_gnu=$ac_cv_c_compiler_gnu
28552
28553fi
28554echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28555echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028556
28557if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028558
28559cat >>confdefs.h <<\_ACEOF
28560#define HAVE_ISINF_IN_MATH_H 1
28561_ACEOF
28562
Reid Spencerabec8f92004-10-27 23:03:44 +000028563fi
28564
Brian Gaeke52a551d2004-07-21 03:14:12 +000028565echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28566echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28567if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28569else
28570 ac_ext=cc
28571ac_cpp='$CXXCPP $CPPFLAGS'
28572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28575
Reid Spencerabec8f92004-10-27 23:03:44 +000028576 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028577/* confdefs.h. */
28578_ACEOF
28579cat confdefs.h >>conftest.$ac_ext
28580cat >>conftest.$ac_ext <<_ACEOF
28581/* end confdefs.h. */
28582#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028583int
28584main ()
28585{
28586float f; isinf(f);
28587 ;
28588 return 0;
28589}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028590_ACEOF
28591rm -f conftest.$ac_objext
28592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028593 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028595 grep -v '^ *+' conftest.er1 >conftest.err
28596 rm -f conftest.er1
28597 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028600 { ac_try='test -z "$ac_cxx_werror_flag"
28601 || test ! -s conftest.err'
28602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28604 ac_status=$?
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; } &&
28607 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28610 ac_status=$?
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; }; then
28613 ac_cv_func_isinf_in_cmath=yes
28614else
28615 echo "$as_me: failed program was:" >&5
28616sed 's/^/| /' conftest.$ac_ext >&5
28617
28618ac_cv_func_isinf_in_cmath=no
28619fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028621 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028622ac_cpp='$CPP $CPPFLAGS'
28623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28625ac_compiler_gnu=$ac_cv_c_compiler_gnu
28626
28627fi
28628echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28629echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028630
28631if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028632
28633cat >>confdefs.h <<\_ACEOF
28634#define HAVE_ISINF_IN_CMATH 1
28635_ACEOF
28636
Reid Spencerabec8f92004-10-27 23:03:44 +000028637fi
28638
Brian Gaeke52a551d2004-07-21 03:14:12 +000028639echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28640echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28641if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28643else
28644 ac_ext=cc
28645ac_cpp='$CXXCPP $CPPFLAGS'
28646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28649
Reid Spencerabec8f92004-10-27 23:03:44 +000028650 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028651/* confdefs.h. */
28652_ACEOF
28653cat confdefs.h >>conftest.$ac_ext
28654cat >>conftest.$ac_ext <<_ACEOF
28655/* end confdefs.h. */
28656#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028657int
28658main ()
28659{
28660float f; std::isinf(f)}
28661 ;
28662 return 0;
28663}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028664_ACEOF
28665rm -f conftest.$ac_objext
28666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028667 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028668 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028669 grep -v '^ *+' conftest.er1 >conftest.err
28670 rm -f conftest.er1
28671 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028674 { ac_try='test -z "$ac_cxx_werror_flag"
28675 || test ! -s conftest.err'
28676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677 (eval $ac_try) 2>&5
28678 ac_status=$?
28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 (exit $ac_status); }; } &&
28681 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; }; then
28687 ac_cv_func_std_isinf_in_cmath=yes
28688else
28689 echo "$as_me: failed program was:" >&5
28690sed 's/^/| /' conftest.$ac_ext >&5
28691
28692ac_cv_func_std_isinf_in_cmath=no
28693fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028695 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028696ac_cpp='$CPP $CPPFLAGS'
28697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28699ac_compiler_gnu=$ac_cv_c_compiler_gnu
28700
28701fi
28702echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28703echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028704
28705if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028706
28707cat >>confdefs.h <<\_ACEOF
28708#define HAVE_STD_ISINF_IN_CMATH 1
28709_ACEOF
28710
Reid Spencerabec8f92004-10-27 23:03:44 +000028711fi
28712
Brian Gaeked59a6472004-07-21 03:33:58 +000028713echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28714echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28715if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28717else
28718 ac_ext=cc
28719ac_cpp='$CXXCPP $CPPFLAGS'
28720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28723
Reid Spencerabec8f92004-10-27 23:03:44 +000028724 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028725/* confdefs.h. */
28726_ACEOF
28727cat confdefs.h >>conftest.$ac_ext
28728cat >>conftest.$ac_ext <<_ACEOF
28729/* end confdefs.h. */
28730#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028731int
28732main ()
28733{
28734float f; finite(f);
28735 ;
28736 return 0;
28737}
Brian Gaeked59a6472004-07-21 03:33:58 +000028738_ACEOF
28739rm -f conftest.$ac_objext
28740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028741 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028742 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028743 grep -v '^ *+' conftest.er1 >conftest.err
28744 rm -f conftest.er1
28745 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028748 { ac_try='test -z "$ac_cxx_werror_flag"
28749 || test ! -s conftest.err'
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; } &&
28755 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28758 ac_status=$?
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; }; then
28761 ac_cv_func_finite_in_ieeefp_h=yes
28762else
28763 echo "$as_me: failed program was:" >&5
28764sed 's/^/| /' conftest.$ac_ext >&5
28765
28766ac_cv_func_finite_in_ieeefp_h=no
28767fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028769 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028770ac_cpp='$CPP $CPPFLAGS'
28771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28773ac_compiler_gnu=$ac_cv_c_compiler_gnu
28774
28775fi
28776echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28777echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028778
Brian Gaeke6802b552004-10-28 05:06:45 +000028779if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028780
28781cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028782#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028783_ACEOF
28784
Reid Spencerabec8f92004-10-27 23:03:44 +000028785fi
28786
28787
28788
John Criswell7a73b802003-06-30 21:59:07 +000028789
28790
28791for ac_header in stdlib.h unistd.h
28792do
28793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28794if eval "test \"\${$as_ac_Header+set}\" = set"; then
28795 echo "$as_me:$LINENO: checking for $ac_header" >&5
28796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28797if eval "test \"\${$as_ac_Header+set}\" = set"; then
28798 echo $ECHO_N "(cached) $ECHO_C" >&6
28799fi
28800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28802else
28803 # Is the header compilable?
28804echo "$as_me:$LINENO: checking $ac_header usability" >&5
28805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28806cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028807/* confdefs.h. */
28808_ACEOF
28809cat confdefs.h >>conftest.$ac_ext
28810cat >>conftest.$ac_ext <<_ACEOF
28811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028812$ac_includes_default
28813#include <$ac_header>
28814_ACEOF
28815rm -f conftest.$ac_objext
28816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028817 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028818 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028819 grep -v '^ *+' conftest.er1 >conftest.err
28820 rm -f conftest.er1
28821 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028824 { ac_try='test -z "$ac_c_werror_flag"
28825 || test ! -s conftest.err'
28826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28827 (eval $ac_try) 2>&5
28828 ac_status=$?
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; } &&
28831 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; }; then
28837 ac_header_compiler=yes
28838else
28839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028840sed 's/^/| /' conftest.$ac_ext >&5
28841
John Criswell7a73b802003-06-30 21:59:07 +000028842ac_header_compiler=no
28843fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28846echo "${ECHO_T}$ac_header_compiler" >&6
28847
28848# Is the header present?
28849echo "$as_me:$LINENO: checking $ac_header presence" >&5
28850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28851cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028852/* confdefs.h. */
28853_ACEOF
28854cat confdefs.h >>conftest.$ac_ext
28855cat >>conftest.$ac_ext <<_ACEOF
28856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028857#include <$ac_header>
28858_ACEOF
28859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28861 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000028862 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000028863 rm -f conftest.er1
28864 cat conftest.err >&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } >/dev/null; then
28867 if test -s conftest.err; then
28868 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000028870 else
28871 ac_cpp_err=
28872 fi
28873else
28874 ac_cpp_err=yes
28875fi
28876if test -z "$ac_cpp_err"; then
28877 ac_header_preproc=yes
28878else
28879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028880sed 's/^/| /' conftest.$ac_ext >&5
28881
John Criswell7a73b802003-06-30 21:59:07 +000028882 ac_header_preproc=no
28883fi
28884rm -f conftest.err conftest.$ac_ext
28885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28886echo "${ECHO_T}$ac_header_preproc" >&6
28887
28888# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28890 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000028891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28894echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28895 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028896 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028897 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000028898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28899echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28901echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28903echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28905echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28909echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028910 (
28911 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028912## ----------------------------------- ##
28913## Report this to llvmbugs@cs.uiuc.edu ##
28914## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000028915_ASBOX
28916 ) |
28917 sed "s/^/$as_me: WARNING: /" >&2
28918 ;;
John Criswell7a73b802003-06-30 21:59:07 +000028919esac
28920echo "$as_me:$LINENO: checking for $ac_header" >&5
28921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28922if eval "test \"\${$as_ac_Header+set}\" = set"; then
28923 echo $ECHO_N "(cached) $ECHO_C" >&6
28924else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028925 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000028926fi
28927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28929
28930fi
28931if test `eval echo '${'$as_ac_Header'}'` = yes; then
28932 cat >>confdefs.h <<_ACEOF
28933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28934_ACEOF
28935
28936fi
28937
28938done
28939
28940
28941for ac_func in getpagesize
28942do
28943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28944echo "$as_me:$LINENO: checking for $ac_func" >&5
28945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28946if eval "test \"\${$as_ac_var+set}\" = set"; then
28947 echo $ECHO_N "(cached) $ECHO_C" >&6
28948else
28949 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28957#define $ac_func innocuous_$ac_func
28958
John Criswell7a73b802003-06-30 21:59:07 +000028959/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000028960 which can conflict with char $ac_func (); below.
28961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28962 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028963
John Criswell0c38eaf2003-09-10 15:17:25 +000028964#ifdef __STDC__
28965# include <limits.h>
28966#else
28967# include <assert.h>
28968#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000028969
28970#undef $ac_func
28971
John Criswell7a73b802003-06-30 21:59:07 +000028972/* Override any gcc2 internal prototype to avoid an error. */
28973#ifdef __cplusplus
28974extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000028975{
John Criswell7a73b802003-06-30 21:59:07 +000028976#endif
28977/* We use char because int might match the return type of a gcc2
28978 builtin and then its argument prototype would still apply. */
28979char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028980/* The GNU C library defines this for functions which it implements
28981 to always fail with ENOSYS. Some functions are actually named
28982 something starting with __ and the normal name is an alias. */
28983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28984choke me
28985#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028986char (*f) () = $ac_func;
28987#endif
28988#ifdef __cplusplus
28989}
John Criswell7a73b802003-06-30 21:59:07 +000028990#endif
28991
John Criswell0c38eaf2003-09-10 15:17:25 +000028992int
28993main ()
28994{
28995return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028996 ;
28997 return 0;
28998}
28999_ACEOF
29000rm -f conftest.$ac_objext conftest$ac_exeext
29001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029002 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029003 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029004 grep -v '^ *+' conftest.er1 >conftest.err
29005 rm -f conftest.er1
29006 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029009 { ac_try='test -z "$ac_c_werror_flag"
29010 || test ! -s conftest.err'
29011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012 (eval $ac_try) 2>&5
29013 ac_status=$?
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); }; } &&
29016 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29018 (eval $ac_try) 2>&5
29019 ac_status=$?
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; }; then
29022 eval "$as_ac_var=yes"
29023else
29024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029025sed 's/^/| /' conftest.$ac_ext >&5
29026
John Criswell7a73b802003-06-30 21:59:07 +000029027eval "$as_ac_var=no"
29028fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029029rm -f conftest.err conftest.$ac_objext \
29030 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029031fi
29032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29034if test `eval echo '${'$as_ac_var'}'` = yes; then
29035 cat >>confdefs.h <<_ACEOF
29036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29037_ACEOF
29038
29039fi
29040done
29041
29042echo "$as_me:$LINENO: checking for working mmap" >&5
29043echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29044if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29045 echo $ECHO_N "(cached) $ECHO_C" >&6
29046else
29047 if test "$cross_compiling" = yes; then
29048 ac_cv_func_mmap_fixed_mapped=no
29049else
29050 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029051/* confdefs.h. */
29052_ACEOF
29053cat confdefs.h >>conftest.$ac_ext
29054cat >>conftest.$ac_ext <<_ACEOF
29055/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029056$ac_includes_default
29057/* malloc might have been renamed as rpl_malloc. */
29058#undef malloc
29059
29060/* Thanks to Mike Haertel and Jim Avera for this test.
29061 Here is a matrix of mmap possibilities:
29062 mmap private not fixed
29063 mmap private fixed at somewhere currently unmapped
29064 mmap private fixed at somewhere already mapped
29065 mmap shared not fixed
29066 mmap shared fixed at somewhere currently unmapped
29067 mmap shared fixed at somewhere already mapped
29068 For private mappings, we should verify that changes cannot be read()
29069 back from the file, nor mmap's back from the file at a different
29070 address. (There have been systems where private was not correctly
29071 implemented like the infamous i386 svr4.0, and systems where the
29072 VM page cache was not coherent with the file system buffer cache
29073 like early versions of FreeBSD and possibly contemporary NetBSD.)
29074 For shared mappings, we should conversely verify that changes get
29075 propagated back to all the places they're supposed to be.
29076
29077 Grep wants private fixed already mapped.
29078 The main things grep needs to know about mmap are:
29079 * does it exist and is it safe to write into the mmap'd area
29080 * how to use it (BSD variants) */
29081
29082#include <fcntl.h>
29083#include <sys/mman.h>
29084
29085#if !STDC_HEADERS && !HAVE_STDLIB_H
29086char *malloc ();
29087#endif
29088
29089/* This mess was copied from the GNU getpagesize.h. */
29090#if !HAVE_GETPAGESIZE
29091/* Assume that all systems that can run configure have sys/param.h. */
29092# if !HAVE_SYS_PARAM_H
29093# define HAVE_SYS_PARAM_H 1
29094# endif
29095
29096# ifdef _SC_PAGESIZE
29097# define getpagesize() sysconf(_SC_PAGESIZE)
29098# else /* no _SC_PAGESIZE */
29099# if HAVE_SYS_PARAM_H
29100# include <sys/param.h>
29101# ifdef EXEC_PAGESIZE
29102# define getpagesize() EXEC_PAGESIZE
29103# else /* no EXEC_PAGESIZE */
29104# ifdef NBPG
29105# define getpagesize() NBPG * CLSIZE
29106# ifndef CLSIZE
29107# define CLSIZE 1
29108# endif /* no CLSIZE */
29109# else /* no NBPG */
29110# ifdef NBPC
29111# define getpagesize() NBPC
29112# else /* no NBPC */
29113# ifdef PAGESIZE
29114# define getpagesize() PAGESIZE
29115# endif /* PAGESIZE */
29116# endif /* no NBPC */
29117# endif /* no NBPG */
29118# endif /* no EXEC_PAGESIZE */
29119# else /* no HAVE_SYS_PARAM_H */
29120# define getpagesize() 8192 /* punt totally */
29121# endif /* no HAVE_SYS_PARAM_H */
29122# endif /* no _SC_PAGESIZE */
29123
29124#endif /* no HAVE_GETPAGESIZE */
29125
29126int
29127main ()
29128{
29129 char *data, *data2, *data3;
29130 int i, pagesize;
29131 int fd;
29132
29133 pagesize = getpagesize ();
29134
29135 /* First, make a file with some known garbage in it. */
29136 data = (char *) malloc (pagesize);
29137 if (!data)
29138 exit (1);
29139 for (i = 0; i < pagesize; ++i)
29140 *(data + i) = rand ();
29141 umask (0);
29142 fd = creat ("conftest.mmap", 0600);
29143 if (fd < 0)
29144 exit (1);
29145 if (write (fd, data, pagesize) != pagesize)
29146 exit (1);
29147 close (fd);
29148
29149 /* Next, try to mmap the file at a fixed address which already has
29150 something else allocated at it. If we can, also make sure that
29151 we see the same garbage. */
29152 fd = open ("conftest.mmap", O_RDWR);
29153 if (fd < 0)
29154 exit (1);
29155 data2 = (char *) malloc (2 * pagesize);
29156 if (!data2)
29157 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029158 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029159 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029160 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029161 exit (1);
29162 for (i = 0; i < pagesize; ++i)
29163 if (*(data + i) != *(data2 + i))
29164 exit (1);
29165
29166 /* Finally, make sure that changes to the mapped area do not
29167 percolate back to the file as seen by read(). (This is a bug on
29168 some variants of i386 svr4.0.) */
29169 for (i = 0; i < pagesize; ++i)
29170 *(data2 + i) = *(data2 + i) + 1;
29171 data3 = (char *) malloc (pagesize);
29172 if (!data3)
29173 exit (1);
29174 if (read (fd, data3, pagesize) != pagesize)
29175 exit (1);
29176 for (i = 0; i < pagesize; ++i)
29177 if (*(data + i) != *(data3 + i))
29178 exit (1);
29179 close (fd);
29180 exit (0);
29181}
29182_ACEOF
29183rm -f conftest$ac_exeext
29184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29185 (eval $ac_link) 2>&5
29186 ac_status=$?
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; }; then
29194 ac_cv_func_mmap_fixed_mapped=yes
29195else
29196 echo "$as_me: program exited with status $ac_status" >&5
29197echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029198sed 's/^/| /' conftest.$ac_ext >&5
29199
John Criswell7a73b802003-06-30 21:59:07 +000029200( exit $ac_status )
29201ac_cv_func_mmap_fixed_mapped=no
29202fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029204fi
29205fi
29206echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29207echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29208if test $ac_cv_func_mmap_fixed_mapped = yes; then
29209
29210cat >>confdefs.h <<\_ACEOF
29211#define HAVE_MMAP 1
29212_ACEOF
29213
29214fi
29215rm -f conftest.mmap
29216
29217echo "$as_me:$LINENO: checking for mmap of files" >&5
29218echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29219if test "${ac_cv_func_mmap_file+set}" = set; then
29220 echo $ECHO_N "(cached) $ECHO_C" >&6
29221else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029222 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029223ac_cpp='$CPP $CPPFLAGS'
29224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29226ac_compiler_gnu=$ac_cv_c_compiler_gnu
29227
29228 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029229 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029230else
29231 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029232
Reid Spencer777ce172004-09-20 04:09:56 +000029233 /* confdefs.h. */
29234_ACEOF
29235cat confdefs.h >>conftest.$ac_ext
29236cat >>conftest.$ac_ext <<_ACEOF
29237/* end confdefs.h. */
29238
John Criswell7a73b802003-06-30 21:59:07 +000029239#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029240#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029241#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029242
29243int
29244main ()
29245{
John Criswell7a73b802003-06-30 21:59:07 +000029246
29247 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029248 fd = creat ("foo",0777);
29249 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29250 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029251 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029252 ;
29253 return 0;
29254}
John Criswell7a73b802003-06-30 21:59:07 +000029255_ACEOF
29256rm -f conftest$ac_exeext
29257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29258 (eval $ac_link) 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263 (eval $ac_try) 2>&5
29264 ac_status=$?
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
29267 ac_cv_func_mmap_file=yes
29268else
29269 echo "$as_me: program exited with status $ac_status" >&5
29270echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029271sed 's/^/| /' conftest.$ac_ext >&5
29272
John Criswell7a73b802003-06-30 21:59:07 +000029273( exit $ac_status )
29274ac_cv_func_mmap_file=no
29275fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029277fi
29278 ac_ext=c
29279ac_cpp='$CPP $CPPFLAGS'
29280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29282ac_compiler_gnu=$ac_cv_c_compiler_gnu
29283
29284
29285fi
29286echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29287echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29288if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029289
29290cat >>confdefs.h <<\_ACEOF
29291#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029292_ACEOF
29293
29294 MMAP_FILE=yes
29295
29296fi
29297
John Criswell7a73b802003-06-30 21:59:07 +000029298echo "$as_me:$LINENO: checking for mprotect" >&5
29299echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29300if test "${ac_cv_func_mprotect+set}" = set; then
29301 echo $ECHO_N "(cached) $ECHO_C" >&6
29302else
29303 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029304/* confdefs.h. */
29305_ACEOF
29306cat confdefs.h >>conftest.$ac_ext
29307cat >>conftest.$ac_ext <<_ACEOF
29308/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029309/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29311#define mprotect innocuous_mprotect
29312
John Criswell7a73b802003-06-30 21:59:07 +000029313/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029314 which can conflict with char mprotect (); below.
29315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29316 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029317
John Criswell0c38eaf2003-09-10 15:17:25 +000029318#ifdef __STDC__
29319# include <limits.h>
29320#else
29321# include <assert.h>
29322#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029323
29324#undef mprotect
29325
John Criswell7a73b802003-06-30 21:59:07 +000029326/* Override any gcc2 internal prototype to avoid an error. */
29327#ifdef __cplusplus
29328extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029329{
John Criswell7a73b802003-06-30 21:59:07 +000029330#endif
29331/* We use char because int might match the return type of a gcc2
29332 builtin and then its argument prototype would still apply. */
29333char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029334/* The GNU C library defines this for functions which it implements
29335 to always fail with ENOSYS. Some functions are actually named
29336 something starting with __ and the normal name is an alias. */
29337#if defined (__stub_mprotect) || defined (__stub___mprotect)
29338choke me
29339#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029340char (*f) () = mprotect;
29341#endif
29342#ifdef __cplusplus
29343}
John Criswell7a73b802003-06-30 21:59:07 +000029344#endif
29345
John Criswell0c38eaf2003-09-10 15:17:25 +000029346int
29347main ()
29348{
29349return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029350 ;
29351 return 0;
29352}
29353_ACEOF
29354rm -f conftest.$ac_objext conftest$ac_exeext
29355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029356 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029358 grep -v '^ *+' conftest.er1 >conftest.err
29359 rm -f conftest.er1
29360 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029363 { ac_try='test -z "$ac_c_werror_flag"
29364 || test ! -s conftest.err'
29365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366 (eval $ac_try) 2>&5
29367 ac_status=$?
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; } &&
29370 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29372 (eval $ac_try) 2>&5
29373 ac_status=$?
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); }; }; then
29376 ac_cv_func_mprotect=yes
29377else
29378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029379sed 's/^/| /' conftest.$ac_ext >&5
29380
John Criswell7a73b802003-06-30 21:59:07 +000029381ac_cv_func_mprotect=no
29382fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029383rm -f conftest.err conftest.$ac_objext \
29384 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029385fi
29386echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29387echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29388if test $ac_cv_func_mprotect = yes; then
29389 :
29390else
29391 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29392echo "$as_me: error: Function mprotect() required but not found" >&2;}
29393 { (exit 1); exit 1; }; }
29394fi
29395
29396
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029397if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029398then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029399 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29400echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029401fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029402if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029403then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029404 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29405echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029406fi
John Criswell7a73b802003-06-30 21:59:07 +000029407
29408
Brian Gaekef3b24102003-11-16 18:38:14 +000029409echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29410echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029411if test "${llvm_cv_llvmgcc+set}" = set; then
29412 echo $ECHO_N "(cached) $ECHO_C" >&6
29413else
29414 llvm_cv_llvmgcc='llvmgcc_not_found'
29415if test -d "$LLVMGCCDIR" ; then
29416 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29417 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29418 fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029419fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029420fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029421echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29422echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29423
Brian Gaekef3b24102003-11-16 18:38:14 +000029424echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29425echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029426if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29427 echo $ECHO_N "(cached) $ECHO_C" >&6
29428else
29429 llvm_cv_llvmgcc_sanity="no"
29430if test -x "$llvm_cv_llvmgcc" ; then
29431 cp /dev/null conftest.c
29432 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29433 if test $? -eq 0 ; then
29434 llvm_cv_llvmgcc_sanity="yes"
29435 fi
29436 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029437fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029438fi
29439echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29440echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29441
29442if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29443 LLVMGCC="$llvm_cv_llvmgcc"
29444
29445 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29446 LLVMCC1=$llvmcc1path
29447
29448 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29449 LLVMCC1PLUS=$llvmcc1pluspath
29450
Brian Gaekef3b24102003-11-16 18:38:14 +000029451fi
29452
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029453SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029454
29455
Reid Spencere9de0912004-08-20 09:03:57 +000029456# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029457# information into substitutions that will end up in Makefile.config.in
29458# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029459eval LLVM_PREFIX="${prefix}";
29460eval LLVM_BINDIR="${prefix}/bin";
29461eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029462eval LLVM_DATADIR="${prefix}/share/llvm";
29463eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29464eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029465eval LLVM_INCLUDEDIR="${prefix}/include";
29466eval LLVM_INFODIR="${prefix}/info";
29467eval LLVM_MANDIR="${prefix}/man";
29468LLVM_CONFIGTIME=`date`
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029480# Place the various directores into the config.h file as #defines so that we
29481# can know about the installation paths within LLVM.
29482
Reid Spencere9de0912004-08-20 09:03:57 +000029483cat >>confdefs.h <<_ACEOF
29484#define LLVM_PREFIX "$LLVM_PREFIX"
29485_ACEOF
29486
29487
29488cat >>confdefs.h <<_ACEOF
29489#define LLVM_BINDIR "$LLVM_BINDIR"
29490_ACEOF
29491
29492
29493cat >>confdefs.h <<_ACEOF
29494#define LLVM_LIBDIR "$LLVM_LIBDIR"
29495_ACEOF
29496
29497
29498cat >>confdefs.h <<_ACEOF
29499#define LLVM_DATADIR "$LLVM_DATADIR"
29500_ACEOF
29501
29502
29503cat >>confdefs.h <<_ACEOF
29504#define LLVM_DATADIR "$LLVM_DOCSDIR"
29505_ACEOF
29506
29507
29508cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029509#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029510_ACEOF
29511
29512
29513cat >>confdefs.h <<_ACEOF
29514#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29515_ACEOF
29516
29517
29518cat >>confdefs.h <<_ACEOF
29519#define LLVM_INFODIR "$LLVM_INFODIR"
29520_ACEOF
29521
29522
29523cat >>confdefs.h <<_ACEOF
29524#define LLVM_MANDIR "$LLVM_MANDIR"
29525_ACEOF
29526
29527
29528cat >>confdefs.h <<_ACEOF
29529#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29530_ACEOF
29531
29532
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029533
29534 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29535
29536
29537 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29538
29539 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29540
29541 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29542
29543 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29544
29545 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29546
29547
29548 ac_config_files="$ac_config_files Makefile.config"
29549
29550
29551 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29552
29553
Reid Spencer1f319422004-11-29 04:56:35 +000029554 ac_config_files="$ac_config_files docs/doxygen.cfg"
29555
29556
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029557 ac_config_commands="$ac_config_commands Makefile"
29558
29559
29560 ac_config_commands="$ac_config_commands Makefile.common"
29561
29562
29563 ac_config_commands="$ac_config_commands examples/Makefile"
29564
29565
29566 ac_config_commands="$ac_config_commands lib/Makefile"
29567
29568
29569 ac_config_commands="$ac_config_commands runtime/Makefile"
29570
29571
29572 ac_config_commands="$ac_config_commands test/Makefile"
29573
29574
29575 ac_config_commands="$ac_config_commands test/Makefile.tests"
29576
29577
29578 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29579
29580
29581 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29582
29583
29584 ac_config_commands="$ac_config_commands tools/Makefile"
29585
29586
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029587 ac_config_commands="$ac_config_commands utils/Makefile"
29588
29589
29590 ac_config_commands="$ac_config_commands projects/Makefile"
29591
29592
29593
John Criswell7a73b802003-06-30 21:59:07 +000029594cat >confcache <<\_ACEOF
29595# This file is a shell script that caches the results of configure
29596# tests run on this system so they can be shared between configure
29597# scripts and configure runs, see configure's option --config-cache.
29598# It is not useful on other systems. If it contains results you don't
29599# want to keep, you may remove or edit it.
29600#
29601# config.status only pays attention to the cache file if you give it
29602# the --recheck option to rerun configure.
29603#
John Criswell0c38eaf2003-09-10 15:17:25 +000029604# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029605# loading this file, other *unset* `ac_cv_foo' will be assigned the
29606# following values.
29607
29608_ACEOF
29609
29610# The following way of writing the cache mishandles newlines in values,
29611# but we know of no workaround that is simple, portable, and efficient.
29612# So, don't put newlines in cache variables' values.
29613# Ultrix sh set writes to stderr and can't be redirected directly,
29614# and sets the high bit in the cache file unless we assign to the vars.
29615{
29616 (set) 2>&1 |
29617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29618 *ac_space=\ *)
29619 # `set' does not quote correctly, so add quotes (double-quote
29620 # substitution turns \\\\ into \\, and sed turns \\ into \).
29621 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029622 "s/'/'\\\\''/g;
29623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029624 ;;
29625 *)
29626 # `set' quotes correctly as required by POSIX, so do not add quotes.
29627 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029628 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029629 ;;
29630 esac;
29631} |
29632 sed '
29633 t clear
29634 : clear
29635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29636 t end
29637 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29638 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029639if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029640 if test -w $cache_file; then
29641 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29642 cat confcache >$cache_file
29643 else
29644 echo "not updating unwritable cache $cache_file"
29645 fi
29646fi
29647rm -f confcache
29648
29649test "x$prefix" = xNONE && prefix=$ac_default_prefix
29650# Let make expand exec_prefix.
29651test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29652
29653# VPATH may cause trouble with some makes, so we remove $(srcdir),
29654# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29655# trailing colons and then remove the whole line if VPATH becomes empty
29656# (actually we leave an empty line to preserve line numbers).
29657if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029658 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029659s/:*\$(srcdir):*/:/;
29660s/:*\${srcdir}:*/:/;
29661s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029662s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029663s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029664s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029665}'
29666fi
29667
29668DEFS=-DHAVE_CONFIG_H
29669
John Criswell0c38eaf2003-09-10 15:17:25 +000029670ac_libobjs=
29671ac_ltlibobjs=
29672for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29673 # 1. Remove the extension, and $U if already installed.
29674 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029675 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029676 # 2. Add them.
29677 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29678 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29679done
29680LIBOBJS=$ac_libobjs
29681
29682LTLIBOBJS=$ac_ltlibobjs
29683
29684
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029685if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29686 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29687Usually this means the macro was only invoked conditionally." >&5
29688echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29689Usually this means the macro was only invoked conditionally." >&2;}
29690 { (exit 1); exit 1; }; }
29691fi
29692if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29693 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29694Usually this means the macro was only invoked conditionally." >&5
29695echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29696Usually this means the macro was only invoked conditionally." >&2;}
29697 { (exit 1); exit 1; }; }
29698fi
John Criswell7a73b802003-06-30 21:59:07 +000029699
29700: ${CONFIG_STATUS=./config.status}
29701ac_clean_files_save=$ac_clean_files
29702ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29703{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29704echo "$as_me: creating $CONFIG_STATUS" >&6;}
29705cat >$CONFIG_STATUS <<_ACEOF
29706#! $SHELL
29707# Generated by $as_me.
29708# Run this file to recreate the current configuration.
29709# Compiler output produced by configure, useful for debugging
29710# configure, is in config.log if it exists.
29711
29712debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029713ac_cs_recheck=false
29714ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029715SHELL=\${CONFIG_SHELL-$SHELL}
29716_ACEOF
29717
29718cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029719## --------------------- ##
29720## M4sh Initialization. ##
29721## --------------------- ##
29722
29723# Be Bourne compatible
29724if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29725 emulate sh
29726 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29728 # is contrary to our usage. Disable this feature.
29729 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029730elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29731 set -o posix
29732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029733DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029734
John Criswell7a73b802003-06-30 21:59:07 +000029735# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029736if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029737 as_unset=unset
29738else
29739 as_unset=false
29740fi
29741
John Criswell0c38eaf2003-09-10 15:17:25 +000029742
29743# Work around bugs in pre-3.0 UWIN ksh.
29744$as_unset ENV MAIL MAILPATH
29745PS1='$ '
29746PS2='> '
29747PS4='+ '
29748
29749# NLS nuisances.
29750for as_var in \
29751 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29752 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29753 LC_TELEPHONE LC_TIME
29754do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029755 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029756 eval $as_var=C; export $as_var
29757 else
29758 $as_unset $as_var
29759 fi
29760done
29761
29762# Required to use basename.
29763if expr a : '\(a\)' >/dev/null 2>&1; then
29764 as_expr=expr
29765else
29766 as_expr=false
29767fi
29768
29769if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29770 as_basename=basename
29771else
29772 as_basename=false
29773fi
John Criswell7a73b802003-06-30 21:59:07 +000029774
29775
29776# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029777as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029778$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29779 X"$0" : 'X\(//\)$' \| \
29780 X"$0" : 'X\(/\)$' \| \
29781 . : '\(.\)' 2>/dev/null ||
29782echo X/"$0" |
29783 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29784 /^X\/\(\/\/\)$/{ s//\1/; q; }
29785 /^X\/\(\/\).*/{ s//\1/; q; }
29786 s/.*/./; q'`
29787
John Criswell0c38eaf2003-09-10 15:17:25 +000029788
John Criswell7a73b802003-06-30 21:59:07 +000029789# PATH needs CR, and LINENO needs CR and PATH.
29790# Avoid depending upon Character Ranges.
29791as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29792as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29793as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29794as_cr_digits='0123456789'
29795as_cr_alnum=$as_cr_Letters$as_cr_digits
29796
29797# The user is always right.
29798if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029799 echo "#! /bin/sh" >conf$$.sh
29800 echo "exit 0" >>conf$$.sh
29801 chmod +x conf$$.sh
29802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029803 PATH_SEPARATOR=';'
29804 else
29805 PATH_SEPARATOR=:
29806 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029807 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029808fi
29809
29810
29811 as_lineno_1=$LINENO
29812 as_lineno_2=$LINENO
29813 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29814 test "x$as_lineno_1" != "x$as_lineno_2" &&
29815 test "x$as_lineno_3" = "x$as_lineno_2" || {
29816 # Find who we are. Look in the path if we contain no path at all
29817 # relative or not.
29818 case $0 in
29819 *[\\/]* ) as_myself=$0 ;;
29820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29821for as_dir in $PATH
29822do
29823 IFS=$as_save_IFS
29824 test -z "$as_dir" && as_dir=.
29825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29826done
29827
29828 ;;
29829 esac
29830 # We did not find ourselves, most probably we were run as `sh COMMAND'
29831 # in which case we are not to be found in the path.
29832 if test "x$as_myself" = x; then
29833 as_myself=$0
29834 fi
29835 if test ! -f "$as_myself"; then
29836 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29837echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29838 { (exit 1); exit 1; }; }
29839 fi
29840 case $CONFIG_SHELL in
29841 '')
29842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29843for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29844do
29845 IFS=$as_save_IFS
29846 test -z "$as_dir" && as_dir=.
29847 for as_base in sh bash ksh sh5; do
29848 case $as_dir in
29849 /*)
29850 if ("$as_dir/$as_base" -c '
29851 as_lineno_1=$LINENO
29852 as_lineno_2=$LINENO
29853 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29854 test "x$as_lineno_1" != "x$as_lineno_2" &&
29855 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029856 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29857 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000029858 CONFIG_SHELL=$as_dir/$as_base
29859 export CONFIG_SHELL
29860 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29861 fi;;
29862 esac
29863 done
29864done
29865;;
29866 esac
29867
29868 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29869 # uniformly replaced by the line number. The first 'sed' inserts a
29870 # line-number line before each line; the second 'sed' does the real
29871 # work. The second script uses 'N' to pair each line-number line
29872 # with the numbered line, and appends trailing '-' during
29873 # substitution so that $LINENO is not a special case at line end.
29874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29875 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29876 sed '=' <$as_myself |
29877 sed '
29878 N
29879 s,$,-,
29880 : loop
29881 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29882 t loop
29883 s,-$,,
29884 s,^['$as_cr_digits']*\n,,
29885 ' >$as_me.lineno &&
29886 chmod +x $as_me.lineno ||
29887 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29888echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29889 { (exit 1); exit 1; }; }
29890
29891 # Don't try to exec as it changes $[0], causing all sort of problems
29892 # (the dirname of $[0] is not the place where we might find the
29893 # original and so on. Autoconf is especially sensible to this).
29894 . ./$as_me.lineno
29895 # Exit status is that of the last command.
29896 exit
29897}
29898
29899
29900case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29901 *c*,-n*) ECHO_N= ECHO_C='
29902' ECHO_T=' ' ;;
29903 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29904 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29905esac
29906
29907if expr a : '\(a\)' >/dev/null 2>&1; then
29908 as_expr=expr
29909else
29910 as_expr=false
29911fi
29912
29913rm -f conf$$ conf$$.exe conf$$.file
29914echo >conf$$.file
29915if ln -s conf$$.file conf$$ 2>/dev/null; then
29916 # We could just check for DJGPP; but this test a) works b) is more generic
29917 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29918 if test -f conf$$.exe; then
29919 # Don't use ln at all; we don't have any links
29920 as_ln_s='cp -p'
29921 else
29922 as_ln_s='ln -s'
29923 fi
29924elif ln conf$$.file conf$$ 2>/dev/null; then
29925 as_ln_s=ln
29926else
29927 as_ln_s='cp -p'
29928fi
29929rm -f conf$$ conf$$.exe conf$$.file
29930
John Criswell0c38eaf2003-09-10 15:17:25 +000029931if mkdir -p . 2>/dev/null; then
29932 as_mkdir_p=:
29933else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029934 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000029935 as_mkdir_p=false
29936fi
29937
John Criswell7a73b802003-06-30 21:59:07 +000029938as_executable_p="test -f"
29939
29940# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029941as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029942
29943# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029944as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029945
29946
29947# IFS
29948# We need space, tab and new line, in precisely that order.
29949as_nl='
29950'
29951IFS=" $as_nl"
29952
29953# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000029954$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000029955
29956exec 6>&1
29957
29958# Open the log real soon, to keep \$[0] and so on meaningful, and to
29959# report actual input values of CONFIG_FILES etc. instead of their
29960# values after options handling. Logging --version etc. is OK.
29961exec 5>>config.log
29962{
29963 echo
29964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29965## Running $as_me. ##
29966_ASBOX
29967} >&5
29968cat >&5 <<_CSEOF
29969
Reid Spencerabec8f92004-10-27 23:03:44 +000029970This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000029971generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000029972
29973 CONFIG_FILES = $CONFIG_FILES
29974 CONFIG_HEADERS = $CONFIG_HEADERS
29975 CONFIG_LINKS = $CONFIG_LINKS
29976 CONFIG_COMMANDS = $CONFIG_COMMANDS
29977 $ $0 $@
29978
29979_CSEOF
29980echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29981echo >&5
29982_ACEOF
29983
29984# Files that config.status was made for.
29985if test -n "$ac_config_files"; then
29986 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29987fi
29988
29989if test -n "$ac_config_headers"; then
29990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29991fi
29992
29993if test -n "$ac_config_links"; then
29994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29995fi
29996
29997if test -n "$ac_config_commands"; then
29998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29999fi
30000
30001cat >>$CONFIG_STATUS <<\_ACEOF
30002
30003ac_cs_usage="\
30004\`$as_me' instantiates files from templates according to the
30005current configuration.
30006
30007Usage: $0 [OPTIONS] [FILE]...
30008
30009 -h, --help print this help, then exit
30010 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030011 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030012 -d, --debug don't remove temporary files
30013 --recheck update $as_me by reconfiguring in the same conditions
30014 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030015 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030016 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030017 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030018
30019Configuration files:
30020$config_files
30021
30022Configuration headers:
30023$config_headers
30024
Reid Spencerde8c47f2004-08-29 19:35:28 +000030025Configuration links:
30026$config_links
30027
John Criswellc764fbc2003-09-06 15:17:13 +000030028Configuration commands:
30029$config_commands
30030
John Criswell7a73b802003-06-30 21:59:07 +000030031Report bugs to <bug-autoconf@gnu.org>."
30032_ACEOF
30033
30034cat >>$CONFIG_STATUS <<_ACEOF
30035ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030036llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030037configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030038 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30039
Reid Spencer2706f8c2004-09-19 23:53:36 +000030040Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030041This config.status script is free software; the Free Software Foundation
30042gives unlimited permission to copy, distribute and modify it."
30043srcdir=$srcdir
30044INSTALL="$INSTALL"
30045_ACEOF
30046
30047cat >>$CONFIG_STATUS <<\_ACEOF
30048# If no file are specified by the user, then we need to provide default
30049# value. By we need to know if files were specified by the user.
30050ac_need_defaults=:
30051while test $# != 0
30052do
30053 case $1 in
30054 --*=*)
30055 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30056 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030057 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030058 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030059 -*)
30060 ac_option=$1
30061 ac_optarg=$2
30062 ac_shift=shift
30063 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030064 *) # This is not an option, so the user has probably given explicit
30065 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030066 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030067 ac_need_defaults=false;;
30068 esac
30069
John Criswell0c38eaf2003-09-10 15:17:25 +000030070 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030071 # Handling of the options.
30072_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030073cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30075 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030076 --version | --vers* | -V )
30077 echo "$ac_cs_version"; exit 0 ;;
30078 --he | --h)
30079 # Conflict between --help and --header
30080 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30081Try \`$0 --help' for more information." >&5
30082echo "$as_me: error: ambiguous option: $1
30083Try \`$0 --help' for more information." >&2;}
30084 { (exit 1); exit 1; }; };;
30085 --help | --hel | -h )
30086 echo "$ac_cs_usage"; exit 0 ;;
30087 --debug | --d* | -d )
30088 debug=: ;;
30089 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030090 $ac_shift
30091 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030092 ac_need_defaults=false;;
30093 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030094 $ac_shift
30095 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030096 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30099 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030100
30101 # This is an error.
30102 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30103Try \`$0 --help' for more information." >&5
30104echo "$as_me: error: unrecognized option: $1
30105Try \`$0 --help' for more information." >&2;}
30106 { (exit 1); exit 1; }; } ;;
30107
30108 *) ac_config_targets="$ac_config_targets $1" ;;
30109
30110 esac
30111 shift
30112done
30113
John Criswell0c38eaf2003-09-10 15:17:25 +000030114ac_configure_extra_args=
30115
30116if $ac_cs_silent; then
30117 exec 6>/dev/null
30118 ac_configure_extra_args="$ac_configure_extra_args --silent"
30119fi
30120
30121_ACEOF
30122cat >>$CONFIG_STATUS <<_ACEOF
30123if \$ac_cs_recheck; then
30124 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30125 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30126fi
30127
John Criswell7a73b802003-06-30 21:59:07 +000030128_ACEOF
30129
John Criswellc764fbc2003-09-06 15:17:13 +000030130cat >>$CONFIG_STATUS <<_ACEOF
30131#
30132# INIT-COMMANDS section.
30133#
John Criswell7a73b802003-06-30 21:59:07 +000030134
John Criswellc764fbc2003-09-06 15:17:13 +000030135${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30136${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030137${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030138${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030139${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030140${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30141${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000030142${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30143${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000030144${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030145${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030146${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030147
30148_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030149
30150
30151
30152cat >>$CONFIG_STATUS <<\_ACEOF
30153for ac_config_target in $ac_config_targets
30154do
30155 case "$ac_config_target" in
30156 # Handling of arguments.
30157 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030158 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30159 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30160 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30161 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030162 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000030163 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030164 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30165 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030166 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030167 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030168 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030169 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30170 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000030171 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30172 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030173 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030174 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030175 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030176 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030177 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030178 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30179 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030180 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30181 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030182 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30183echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30184 { (exit 1); exit 1; }; };;
30185 esac
30186done
30187
30188# If the user did not use the arguments to specify the items to instantiate,
30189# then the envvar interface is used. Set only those that are not.
30190# We use the long form for the default assignment because of an extremely
30191# bizarre bug on SunOS 4.1.3.
30192if $ac_need_defaults; then
30193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30194 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030195 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030197fi
30198
John Criswell0c38eaf2003-09-10 15:17:25 +000030199# Have a temporary directory for convenience. Make it in the build tree
30200# simply because there is no reason to put it here, and in addition,
30201# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030202# Create a temporary directory, and hook for its removal unless debugging.
30203$debug ||
30204{
30205 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30206 trap '{ (exit 1); exit 1; }' 1 2 13 15
30207}
30208
30209# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030210
John Criswell7a73b802003-06-30 21:59:07 +000030211{
John Criswell0c38eaf2003-09-10 15:17:25 +000030212 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030213 test -n "$tmp" && test -d "$tmp"
30214} ||
30215{
John Criswell0c38eaf2003-09-10 15:17:25 +000030216 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030217 (umask 077 && mkdir $tmp)
30218} ||
30219{
John Criswell0c38eaf2003-09-10 15:17:25 +000030220 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030221 { (exit 1); exit 1; }
30222}
30223
30224_ACEOF
30225
30226cat >>$CONFIG_STATUS <<_ACEOF
30227
30228#
30229# CONFIG_FILES section.
30230#
30231
30232# No need to generate the scripts if there are no CONFIG_FILES.
30233# This happens for instance when ./config.status config.h
30234if test -n "\$CONFIG_FILES"; then
30235 # Protect against being on the right side of a sed subst in config.status.
30236 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30237 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30238s,@SHELL@,$SHELL,;t t
30239s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30240s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30241s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30242s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30243s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30244s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30245s,@exec_prefix@,$exec_prefix,;t t
30246s,@prefix@,$prefix,;t t
30247s,@program_transform_name@,$program_transform_name,;t t
30248s,@bindir@,$bindir,;t t
30249s,@sbindir@,$sbindir,;t t
30250s,@libexecdir@,$libexecdir,;t t
30251s,@datadir@,$datadir,;t t
30252s,@sysconfdir@,$sysconfdir,;t t
30253s,@sharedstatedir@,$sharedstatedir,;t t
30254s,@localstatedir@,$localstatedir,;t t
30255s,@libdir@,$libdir,;t t
30256s,@includedir@,$includedir,;t t
30257s,@oldincludedir@,$oldincludedir,;t t
30258s,@infodir@,$infodir,;t t
30259s,@mandir@,$mandir,;t t
30260s,@build_alias@,$build_alias,;t t
30261s,@host_alias@,$host_alias,;t t
30262s,@target_alias@,$target_alias,;t t
30263s,@DEFS@,$DEFS,;t t
30264s,@ECHO_C@,$ECHO_C,;t t
30265s,@ECHO_N@,$ECHO_N,;t t
30266s,@ECHO_T@,$ECHO_T,;t t
30267s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030268s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030269s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030270s,@build@,$build,;t t
30271s,@build_cpu@,$build_cpu,;t t
30272s,@build_vendor@,$build_vendor,;t t
30273s,@build_os@,$build_os,;t t
30274s,@host@,$host,;t t
30275s,@host_cpu@,$host_cpu,;t t
30276s,@host_vendor@,$host_vendor,;t t
30277s,@host_os@,$host_os,;t t
30278s,@target@,$target,;t t
30279s,@target_cpu@,$target_cpu,;t t
30280s,@target_vendor@,$target_vendor,;t t
30281s,@target_os@,$target_os,;t t
30282s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030283s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030284s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030285s,@CC@,$CC,;t t
30286s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030287s,@LDFLAGS@,$LDFLAGS,;t t
30288s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030289s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030290s,@EXEEXT@,$EXEEXT,;t t
30291s,@OBJEXT@,$OBJEXT,;t t
30292s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30293s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030294s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030295s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030296s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030297s,@CXX@,$CXX,;t t
30298s,@CXXFLAGS@,$CXXFLAGS,;t t
30299s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030300s,@LEX@,$LEX,;t t
30301s,@LEXLIB@,$LEXLIB,;t t
30302s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030303s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030304s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030305s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030306s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030307s,@LN_S@,$LN_S,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030308s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030309s,@FIND@,$FIND,;t t
30310s,@GREP@,$GREP,;t t
30311s,@MKDIR@,$MKDIR,;t t
30312s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030313s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030314s,@RANLIB@,$RANLIB,;t t
30315s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030316s,@RM@,$RM,;t t
30317s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030318s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030319s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30320s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30321s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030322s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030323s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030324s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030325s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030326s,@GROFF@,$GROFF,;t t
30327s,@GZIP@,$GZIP,;t t
30328s,@POD2HTML@,$POD2HTML,;t t
30329s,@POD2MAN@,$POD2MAN,;t t
John Criswellde00db22003-08-25 16:49:54 +000030330s,@PYTHON@,$PYTHON,;t t
30331s,@QMTEST@,$QMTEST,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030332s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030333s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030334s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030335s,@EGREP@,$EGREP,;t t
30336s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30337s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30338s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30339s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30340s,@LIBADD_DL@,$LIBADD_DL,;t t
30341s,@ECHO@,$ECHO,;t t
30342s,@AR@,$AR,;t t
30343s,@ac_ct_AR@,$ac_ct_AR,;t t
30344s,@STRIP@,$STRIP,;t t
30345s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30346s,@CXXCPP@,$CXXCPP,;t t
30347s,@F77@,$F77,;t t
30348s,@FFLAGS@,$FFLAGS,;t t
30349s,@ac_ct_F77@,$ac_ct_F77,;t t
30350s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030351s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030352s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030353s,@MMAP_FILE@,$MMAP_FILE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030354s,@LLVMGCC@,$LLVMGCC,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030355s,@LLVMCC1@,$LLVMCC1,;t t
30356s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030357s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030358s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30359s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30360s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30361s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30362s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30363s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30364s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30365s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30366s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30367s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030368s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030369s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030370CEOF
30371
30372_ACEOF
30373
30374 cat >>$CONFIG_STATUS <<\_ACEOF
30375 # Split the substitutions into bite-sized pieces for seds with
30376 # small command number limits, like on Digital OSF/1 and HP-UX.
30377 ac_max_sed_lines=48
30378 ac_sed_frag=1 # Number of current file.
30379 ac_beg=1 # First line for current file.
30380 ac_end=$ac_max_sed_lines # Line after last line for current file.
30381 ac_more_lines=:
30382 ac_sed_cmds=
30383 while $ac_more_lines; do
30384 if test $ac_beg -gt 1; then
30385 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30386 else
30387 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30388 fi
30389 if test ! -s $tmp/subs.frag; then
30390 ac_more_lines=false
30391 else
30392 # The purpose of the label and of the branching condition is to
30393 # speed up the sed processing (if there are no `@' at all, there
30394 # is no need to browse any of the substitutions).
30395 # These are the two extra sed commands mentioned above.
30396 (echo ':t
30397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30398 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030399 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030400 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030401 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030402 fi
30403 ac_sed_frag=`expr $ac_sed_frag + 1`
30404 ac_beg=$ac_end
30405 ac_end=`expr $ac_end + $ac_max_sed_lines`
30406 fi
30407 done
30408 if test -z "$ac_sed_cmds"; then
30409 ac_sed_cmds=cat
30410 fi
30411fi # test -n "$CONFIG_FILES"
30412
30413_ACEOF
30414cat >>$CONFIG_STATUS <<\_ACEOF
30415for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30417 case $ac_file in
30418 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030419 cat >$tmp/stdin
30420 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030422 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030424 * ) ac_file_in=$ac_file.in ;;
30425 esac
30426
30427 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30428 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30429$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030430 X"$ac_file" : 'X\(//\)[^/]' \| \
30431 X"$ac_file" : 'X\(//\)$' \| \
30432 X"$ac_file" : 'X\(/\)' \| \
30433 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030434echo X"$ac_file" |
30435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30437 /^X\(\/\/\)$/{ s//\1/; q; }
30438 /^X\(\/\).*/{ s//\1/; q; }
30439 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030440 { if $as_mkdir_p; then
30441 mkdir -p "$ac_dir"
30442 else
30443 as_dir="$ac_dir"
30444 as_dirs=
30445 while test ! -d "$as_dir"; do
30446 as_dirs="$as_dir $as_dirs"
30447 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30448$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030449 X"$as_dir" : 'X\(//\)[^/]' \| \
30450 X"$as_dir" : 'X\(//\)$' \| \
30451 X"$as_dir" : 'X\(/\)' \| \
30452 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030453echo X"$as_dir" |
30454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30456 /^X\(\/\/\)$/{ s//\1/; q; }
30457 /^X\(\/\).*/{ s//\1/; q; }
30458 s/.*/./; q'`
30459 done
30460 test ! -n "$as_dirs" || mkdir $as_dirs
30461 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30462echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30463 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030464
30465 ac_builddir=.
30466
30467if test "$ac_dir" != .; then
30468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30469 # A "../" for each directory in $ac_dir_suffix.
30470 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30471else
30472 ac_dir_suffix= ac_top_builddir=
30473fi
30474
30475case $srcdir in
30476 .) # No --srcdir option. We are building in place.
30477 ac_srcdir=.
30478 if test -z "$ac_top_builddir"; then
30479 ac_top_srcdir=.
30480 else
30481 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30482 fi ;;
30483 [\\/]* | ?:[\\/]* ) # Absolute path.
30484 ac_srcdir=$srcdir$ac_dir_suffix;
30485 ac_top_srcdir=$srcdir ;;
30486 *) # Relative path.
30487 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30488 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30489esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030490
30491# Do not use `cd foo && pwd` to compute absolute paths, because
30492# the directories may not exist.
30493case `pwd` in
30494.) ac_abs_builddir="$ac_dir";;
30495*)
30496 case "$ac_dir" in
30497 .) ac_abs_builddir=`pwd`;;
30498 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30499 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30500 esac;;
30501esac
30502case $ac_abs_builddir in
30503.) ac_abs_top_builddir=${ac_top_builddir}.;;
30504*)
30505 case ${ac_top_builddir}. in
30506 .) ac_abs_top_builddir=$ac_abs_builddir;;
30507 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30508 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30509 esac;;
30510esac
30511case $ac_abs_builddir in
30512.) ac_abs_srcdir=$ac_srcdir;;
30513*)
30514 case $ac_srcdir in
30515 .) ac_abs_srcdir=$ac_abs_builddir;;
30516 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30517 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30518 esac;;
30519esac
30520case $ac_abs_builddir in
30521.) ac_abs_top_srcdir=$ac_top_srcdir;;
30522*)
30523 case $ac_top_srcdir in
30524 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30525 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30526 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30527 esac;;
30528esac
John Criswell7a73b802003-06-30 21:59:07 +000030529
30530
30531 case $INSTALL in
30532 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30533 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30534 esac
30535
30536 if test x"$ac_file" != x-; then
30537 { echo "$as_me:$LINENO: creating $ac_file" >&5
30538echo "$as_me: creating $ac_file" >&6;}
30539 rm -f "$ac_file"
30540 fi
30541 # Let's still pretend it is `configure' which instantiates (i.e., don't
30542 # use $as_me), people would be surprised to read:
30543 # /* config.h. Generated by config.status. */
30544 if test x"$ac_file" = x-; then
30545 configure_input=
30546 else
30547 configure_input="$ac_file. "
30548 fi
30549 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030550 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030551
30552 # First look for the input files in the build tree, otherwise in the
30553 # src tree.
30554 ac_file_inputs=`IFS=:
30555 for f in $ac_file_in; do
30556 case $f in
30557 -) echo $tmp/stdin ;;
30558 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030559 # Absolute (can't be DOS-style, as IFS=:)
30560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030561echo "$as_me: error: cannot find input file: $f" >&2;}
30562 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030563 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030564 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030565 if test -f "$f"; then
30566 # Build tree
30567 echo "$f"
30568 elif test -f "$srcdir/$f"; then
30569 # Source tree
30570 echo "$srcdir/$f"
30571 else
30572 # /dev/null tree
30573 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030574echo "$as_me: error: cannot find input file: $f" >&2;}
30575 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030576 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030577 esac
30578 done` || { (exit 1); exit 1; }
30579_ACEOF
30580cat >>$CONFIG_STATUS <<_ACEOF
30581 sed "$ac_vpsub
30582$extrasub
30583_ACEOF
30584cat >>$CONFIG_STATUS <<\_ACEOF
30585:t
30586/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30587s,@configure_input@,$configure_input,;t t
30588s,@srcdir@,$ac_srcdir,;t t
30589s,@abs_srcdir@,$ac_abs_srcdir,;t t
30590s,@top_srcdir@,$ac_top_srcdir,;t t
30591s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30592s,@builddir@,$ac_builddir,;t t
30593s,@abs_builddir@,$ac_abs_builddir,;t t
30594s,@top_builddir@,$ac_top_builddir,;t t
30595s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30596s,@INSTALL@,$ac_INSTALL,;t t
30597" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30598 rm -f $tmp/stdin
30599 if test x"$ac_file" != x-; then
30600 mv $tmp/out $ac_file
30601 else
30602 cat $tmp/out
30603 rm -f $tmp/out
30604 fi
30605
30606done
30607_ACEOF
30608cat >>$CONFIG_STATUS <<\_ACEOF
30609
30610#
30611# CONFIG_HEADER section.
30612#
30613
30614# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30615# NAME is the cpp macro being defined and VALUE is the value it is being given.
30616#
30617# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030618ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30619ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030620ac_dC=' '
30621ac_dD=',;t'
30622# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030623ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030624ac_uB='$,\1#\2define\3'
30625ac_uC=' '
30626ac_uD=',;t'
30627
30628for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30630 case $ac_file in
30631 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030632 cat >$tmp/stdin
30633 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030635 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030637 * ) ac_file_in=$ac_file.in ;;
30638 esac
30639
30640 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30641echo "$as_me: creating $ac_file" >&6;}
30642
30643 # First look for the input files in the build tree, otherwise in the
30644 # src tree.
30645 ac_file_inputs=`IFS=:
30646 for f in $ac_file_in; do
30647 case $f in
30648 -) echo $tmp/stdin ;;
30649 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030650 # Absolute (can't be DOS-style, as IFS=:)
30651 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030652echo "$as_me: error: cannot find input file: $f" >&2;}
30653 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030654 # Do quote $f, to prevent DOS paths from being IFS'd.
30655 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030656 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030657 if test -f "$f"; then
30658 # Build tree
30659 echo "$f"
30660 elif test -f "$srcdir/$f"; then
30661 # Source tree
30662 echo "$srcdir/$f"
30663 else
30664 # /dev/null tree
30665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030666echo "$as_me: error: cannot find input file: $f" >&2;}
30667 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030668 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030669 esac
30670 done` || { (exit 1); exit 1; }
30671 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030672 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030673
30674_ACEOF
30675
30676# Transform confdefs.h into two sed scripts, `conftest.defines' and
30677# `conftest.undefs', that substitutes the proper values into
30678# config.h.in to produce config.h. The first handles `#define'
30679# templates, and the second `#undef' templates.
30680# And first: Protect against being on the right side of a sed subst in
30681# config.status. Protect against being in an unquoted here document
30682# in config.status.
30683rm -f conftest.defines conftest.undefs
30684# Using a here document instead of a string reduces the quoting nightmare.
30685# Putting comments in sed scripts is not portable.
30686#
30687# `end' is used to avoid that the second main sed command (meant for
30688# 0-ary CPP macros) applies to n-ary macro definitions.
30689# See the Autoconf documentation for `clear'.
30690cat >confdef2sed.sed <<\_ACEOF
30691s/[\\&,]/\\&/g
30692s,[\\$`],\\&,g
30693t clear
30694: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030695s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030696t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030697s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030698: end
30699_ACEOF
30700# If some macros were called several times there might be several times
30701# the same #defines, which is useless. Nevertheless, we may not want to
30702# sort them, since we want the *last* AC-DEFINE to be honored.
30703uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30704sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30705rm -f confdef2sed.sed
30706
30707# This sed command replaces #undef with comments. This is necessary, for
30708# example, in the case of _POSIX_SOURCE, which is predefined and required
30709# on some systems where configure will not decide to define it.
30710cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030711s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030712_ACEOF
30713
30714# Break up conftest.defines because some shells have a limit on the size
30715# of here documents, and old seds have small limits too (100 cmds).
30716echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030717echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030718echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30719echo ' :' >>$CONFIG_STATUS
30720rm -f conftest.tail
30721while grep . conftest.defines >/dev/null
30722do
30723 # Write a limited-size here document to $tmp/defines.sed.
30724 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30725 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030726 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030727 # Work around the forget-to-reset-the-flag bug.
30728 echo 't clr' >>$CONFIG_STATUS
30729 echo ': clr' >>$CONFIG_STATUS
30730 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30731 echo 'CEOF
30732 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30733 rm -f $tmp/in
30734 mv $tmp/out $tmp/in
30735' >>$CONFIG_STATUS
30736 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30737 rm -f conftest.defines
30738 mv conftest.tail conftest.defines
30739done
30740rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030741echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030742echo >>$CONFIG_STATUS
30743
30744# Break up conftest.undefs because some shells have a limit on the size
30745# of here documents, and old seds have small limits too (100 cmds).
30746echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30747rm -f conftest.tail
30748while grep . conftest.undefs >/dev/null
30749do
30750 # Write a limited-size here document to $tmp/undefs.sed.
30751 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30752 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030753 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030754 # Work around the forget-to-reset-the-flag bug.
30755 echo 't clr' >>$CONFIG_STATUS
30756 echo ': clr' >>$CONFIG_STATUS
30757 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30758 echo 'CEOF
30759 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30760 rm -f $tmp/in
30761 mv $tmp/out $tmp/in
30762' >>$CONFIG_STATUS
30763 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30764 rm -f conftest.undefs
30765 mv conftest.tail conftest.undefs
30766done
30767rm -f conftest.undefs
30768
30769cat >>$CONFIG_STATUS <<\_ACEOF
30770 # Let's still pretend it is `configure' which instantiates (i.e., don't
30771 # use $as_me), people would be surprised to read:
30772 # /* config.h. Generated by config.status. */
30773 if test x"$ac_file" = x-; then
30774 echo "/* Generated by configure. */" >$tmp/config.h
30775 else
30776 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30777 fi
30778 cat $tmp/in >>$tmp/config.h
30779 rm -f $tmp/in
30780 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030781 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030782 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30783echo "$as_me: $ac_file is unchanged" >&6;}
30784 else
30785 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30786$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030787 X"$ac_file" : 'X\(//\)[^/]' \| \
30788 X"$ac_file" : 'X\(//\)$' \| \
30789 X"$ac_file" : 'X\(/\)' \| \
30790 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030791echo X"$ac_file" |
30792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30794 /^X\(\/\/\)$/{ s//\1/; q; }
30795 /^X\(\/\).*/{ s//\1/; q; }
30796 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030797 { if $as_mkdir_p; then
30798 mkdir -p "$ac_dir"
30799 else
30800 as_dir="$ac_dir"
30801 as_dirs=
30802 while test ! -d "$as_dir"; do
30803 as_dirs="$as_dir $as_dirs"
30804 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30805$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030806 X"$as_dir" : 'X\(//\)[^/]' \| \
30807 X"$as_dir" : 'X\(//\)$' \| \
30808 X"$as_dir" : 'X\(/\)' \| \
30809 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030810echo X"$as_dir" |
30811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30813 /^X\(\/\/\)$/{ s//\1/; q; }
30814 /^X\(\/\).*/{ s//\1/; q; }
30815 s/.*/./; q'`
30816 done
30817 test ! -n "$as_dirs" || mkdir $as_dirs
30818 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30819echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30820 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030821
30822 rm -f $ac_file
30823 mv $tmp/config.h $ac_file
30824 fi
30825 else
30826 cat $tmp/config.h
30827 rm -f $tmp/config.h
30828 fi
30829done
30830_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030831cat >>$CONFIG_STATUS <<\_ACEOF
30832
30833#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030834# CONFIG_LINKS section.
30835#
30836
30837for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30838 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30839 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30840
30841 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30842echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30843
30844 if test ! -r $srcdir/$ac_source; then
30845 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30846echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30847 { (exit 1); exit 1; }; }
30848 fi
30849 rm -f $ac_dest
30850
30851 # Make relative symlinks.
30852 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30853$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030854 X"$ac_dest" : 'X\(//\)[^/]' \| \
30855 X"$ac_dest" : 'X\(//\)$' \| \
30856 X"$ac_dest" : 'X\(/\)' \| \
30857 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030858echo X"$ac_dest" |
30859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30861 /^X\(\/\/\)$/{ s//\1/; q; }
30862 /^X\(\/\).*/{ s//\1/; q; }
30863 s/.*/./; q'`
30864 { if $as_mkdir_p; then
30865 mkdir -p "$ac_dest_dir"
30866 else
30867 as_dir="$ac_dest_dir"
30868 as_dirs=
30869 while test ! -d "$as_dir"; do
30870 as_dirs="$as_dir $as_dirs"
30871 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30872$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030873 X"$as_dir" : 'X\(//\)[^/]' \| \
30874 X"$as_dir" : 'X\(//\)$' \| \
30875 X"$as_dir" : 'X\(/\)' \| \
30876 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030877echo X"$as_dir" |
30878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30880 /^X\(\/\/\)$/{ s//\1/; q; }
30881 /^X\(\/\).*/{ s//\1/; q; }
30882 s/.*/./; q'`
30883 done
30884 test ! -n "$as_dirs" || mkdir $as_dirs
30885 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30886echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30887 { (exit 1); exit 1; }; }; }
30888
30889 ac_builddir=.
30890
30891if test "$ac_dest_dir" != .; then
30892 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30893 # A "../" for each directory in $ac_dir_suffix.
30894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30895else
30896 ac_dir_suffix= ac_top_builddir=
30897fi
30898
30899case $srcdir in
30900 .) # No --srcdir option. We are building in place.
30901 ac_srcdir=.
30902 if test -z "$ac_top_builddir"; then
30903 ac_top_srcdir=.
30904 else
30905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30906 fi ;;
30907 [\\/]* | ?:[\\/]* ) # Absolute path.
30908 ac_srcdir=$srcdir$ac_dir_suffix;
30909 ac_top_srcdir=$srcdir ;;
30910 *) # Relative path.
30911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30913esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030914
30915# Do not use `cd foo && pwd` to compute absolute paths, because
30916# the directories may not exist.
30917case `pwd` in
30918.) ac_abs_builddir="$ac_dest_dir";;
30919*)
30920 case "$ac_dest_dir" in
30921 .) ac_abs_builddir=`pwd`;;
30922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30923 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30924 esac;;
30925esac
30926case $ac_abs_builddir in
30927.) ac_abs_top_builddir=${ac_top_builddir}.;;
30928*)
30929 case ${ac_top_builddir}. in
30930 .) ac_abs_top_builddir=$ac_abs_builddir;;
30931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30933 esac;;
30934esac
30935case $ac_abs_builddir in
30936.) ac_abs_srcdir=$ac_srcdir;;
30937*)
30938 case $ac_srcdir in
30939 .) ac_abs_srcdir=$ac_abs_builddir;;
30940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30942 esac;;
30943esac
30944case $ac_abs_builddir in
30945.) ac_abs_top_srcdir=$ac_top_srcdir;;
30946*)
30947 case $ac_top_srcdir in
30948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30951 esac;;
30952esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000030953
30954
30955 case $srcdir in
30956 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30957 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30958 esac
30959
30960 # Try a symlink, then a hard link, then a copy.
30961 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30962 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30963 cp -p $srcdir/$ac_source $ac_dest ||
30964 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30965echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30966 { (exit 1); exit 1; }; }
30967done
30968_ACEOF
30969cat >>$CONFIG_STATUS <<\_ACEOF
30970
30971#
John Criswellc764fbc2003-09-06 15:17:13 +000030972# CONFIG_COMMANDS section.
30973#
30974for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30975 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30976 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30977 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30978$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030979 X"$ac_dest" : 'X\(//\)[^/]' \| \
30980 X"$ac_dest" : 'X\(//\)$' \| \
30981 X"$ac_dest" : 'X\(/\)' \| \
30982 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000030983echo X"$ac_dest" |
30984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30986 /^X\(\/\/\)$/{ s//\1/; q; }
30987 /^X\(\/\).*/{ s//\1/; q; }
30988 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030989 { if $as_mkdir_p; then
30990 mkdir -p "$ac_dir"
30991 else
30992 as_dir="$ac_dir"
30993 as_dirs=
30994 while test ! -d "$as_dir"; do
30995 as_dirs="$as_dir $as_dirs"
30996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30998 X"$as_dir" : 'X\(//\)[^/]' \| \
30999 X"$as_dir" : 'X\(//\)$' \| \
31000 X"$as_dir" : 'X\(/\)' \| \
31001 . : '\(.\)' 2>/dev/null ||
31002echo X"$as_dir" |
31003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31005 /^X\(\/\/\)$/{ s//\1/; q; }
31006 /^X\(\/\).*/{ s//\1/; q; }
31007 s/.*/./; q'`
31008 done
31009 test ! -n "$as_dirs" || mkdir $as_dirs
31010 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31011echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31012 { (exit 1); exit 1; }; }; }
31013
John Criswellc764fbc2003-09-06 15:17:13 +000031014 ac_builddir=.
31015
31016if test "$ac_dir" != .; then
31017 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31018 # A "../" for each directory in $ac_dir_suffix.
31019 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31020else
31021 ac_dir_suffix= ac_top_builddir=
31022fi
31023
31024case $srcdir in
31025 .) # No --srcdir option. We are building in place.
31026 ac_srcdir=.
31027 if test -z "$ac_top_builddir"; then
31028 ac_top_srcdir=.
31029 else
31030 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31031 fi ;;
31032 [\\/]* | ?:[\\/]* ) # Absolute path.
31033 ac_srcdir=$srcdir$ac_dir_suffix;
31034 ac_top_srcdir=$srcdir ;;
31035 *) # Relative path.
31036 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31037 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31038esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031039
31040# Do not use `cd foo && pwd` to compute absolute paths, because
31041# the directories may not exist.
31042case `pwd` in
31043.) ac_abs_builddir="$ac_dir";;
31044*)
31045 case "$ac_dir" in
31046 .) ac_abs_builddir=`pwd`;;
31047 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31048 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31049 esac;;
31050esac
31051case $ac_abs_builddir in
31052.) ac_abs_top_builddir=${ac_top_builddir}.;;
31053*)
31054 case ${ac_top_builddir}. in
31055 .) ac_abs_top_builddir=$ac_abs_builddir;;
31056 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31057 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31058 esac;;
31059esac
31060case $ac_abs_builddir in
31061.) ac_abs_srcdir=$ac_srcdir;;
31062*)
31063 case $ac_srcdir in
31064 .) ac_abs_srcdir=$ac_abs_builddir;;
31065 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31066 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31067 esac;;
31068esac
31069case $ac_abs_builddir in
31070.) ac_abs_top_srcdir=$ac_top_srcdir;;
31071*)
31072 case $ac_top_srcdir in
31073 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31074 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31075 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31076 esac;;
31077esac
John Criswellc764fbc2003-09-06 15:17:13 +000031078
31079
31080 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31081echo "$as_me: executing $ac_dest commands" >&6;}
31082 case $ac_dest in
31083 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31084 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031085 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031086 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031087 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031088 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31089 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000031090 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
31091 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031092 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031093 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031094 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031095 esac
31096done
31097_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031098
31099cat >>$CONFIG_STATUS <<\_ACEOF
31100
31101{ (exit 0); exit 0; }
31102_ACEOF
31103chmod +x $CONFIG_STATUS
31104ac_clean_files=$ac_clean_files_save
31105
31106
31107# configure is writing to config.log, and then calls config.status.
31108# config.status does its own redirection, appending to config.log.
31109# Unfortunately, on DOS this fails, as config.log is still kept open
31110# by configure, so config.status won't be able to write to it; its
31111# output is simply discarded. So we exec the FD to /dev/null,
31112# effectively closing config.log, so it can be properly (re)opened and
31113# appended to by config.status. When coming back to configure, we
31114# need to make the FD available again.
31115if test "$no_create" != yes; then
31116 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031117 ac_config_status_args=
31118 test "$silent" = yes &&
31119 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031120 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031122 exec 5>>config.log
31123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31124 # would make configure fail if this is the last instruction.
31125 $ac_cs_success || { (exit 1); exit 1; }
31126fi
31127
John Criswell12399a12003-09-30 15:55:44 +000031128#
31129# CONFIG_SUBDIRS section.
31130#
31131if test "$no_recursion" != yes; then
31132
31133 # Remove --cache-file and --srcdir arguments so they do not pile up.
31134 ac_sub_configure_args=
31135 ac_prev=
31136 for ac_arg in $ac_configure_args; do
31137 if test -n "$ac_prev"; then
31138 ac_prev=
31139 continue
31140 fi
31141 case $ac_arg in
31142 -cache-file | --cache-file | --cache-fil | --cache-fi \
31143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31144 ac_prev=cache_file ;;
31145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31147 | --c=*)
31148 ;;
31149 --config-cache | -C)
31150 ;;
31151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31152 ac_prev=srcdir ;;
31153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31154 ;;
31155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31156 ac_prev=prefix ;;
31157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31158 ;;
31159 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31160 esac
31161 done
31162
31163 # Always prepend --prefix to ensure using the same prefix
31164 # in subdir configurations.
31165 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31166
31167 ac_popdir=`pwd`
31168 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31169
31170 # Do not complain, so a configure script can configure whichever
31171 # parts of a large source tree are present.
31172 test -d $srcdir/$ac_dir || continue
31173
31174 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31175echo "$as_me: configuring in $ac_dir" >&6;}
31176 { if $as_mkdir_p; then
31177 mkdir -p "$ac_dir"
31178 else
31179 as_dir="$ac_dir"
31180 as_dirs=
31181 while test ! -d "$as_dir"; do
31182 as_dirs="$as_dir $as_dirs"
31183 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31184$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031185 X"$as_dir" : 'X\(//\)[^/]' \| \
31186 X"$as_dir" : 'X\(//\)$' \| \
31187 X"$as_dir" : 'X\(/\)' \| \
31188 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031189echo X"$as_dir" |
31190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31192 /^X\(\/\/\)$/{ s//\1/; q; }
31193 /^X\(\/\).*/{ s//\1/; q; }
31194 s/.*/./; q'`
31195 done
31196 test ! -n "$as_dirs" || mkdir $as_dirs
31197 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31198echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31199 { (exit 1); exit 1; }; }; }
31200
31201 ac_builddir=.
31202
31203if test "$ac_dir" != .; then
31204 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31205 # A "../" for each directory in $ac_dir_suffix.
31206 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31207else
31208 ac_dir_suffix= ac_top_builddir=
31209fi
31210
31211case $srcdir in
31212 .) # No --srcdir option. We are building in place.
31213 ac_srcdir=.
31214 if test -z "$ac_top_builddir"; then
31215 ac_top_srcdir=.
31216 else
31217 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31218 fi ;;
31219 [\\/]* | ?:[\\/]* ) # Absolute path.
31220 ac_srcdir=$srcdir$ac_dir_suffix;
31221 ac_top_srcdir=$srcdir ;;
31222 *) # Relative path.
31223 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31224 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31225esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031226
31227# Do not use `cd foo && pwd` to compute absolute paths, because
31228# the directories may not exist.
31229case `pwd` in
31230.) ac_abs_builddir="$ac_dir";;
31231*)
31232 case "$ac_dir" in
31233 .) ac_abs_builddir=`pwd`;;
31234 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31235 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31236 esac;;
31237esac
31238case $ac_abs_builddir in
31239.) ac_abs_top_builddir=${ac_top_builddir}.;;
31240*)
31241 case ${ac_top_builddir}. in
31242 .) ac_abs_top_builddir=$ac_abs_builddir;;
31243 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31244 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31245 esac;;
31246esac
31247case $ac_abs_builddir in
31248.) ac_abs_srcdir=$ac_srcdir;;
31249*)
31250 case $ac_srcdir in
31251 .) ac_abs_srcdir=$ac_abs_builddir;;
31252 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31253 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31254 esac;;
31255esac
31256case $ac_abs_builddir in
31257.) ac_abs_top_srcdir=$ac_top_srcdir;;
31258*)
31259 case $ac_top_srcdir in
31260 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31261 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31262 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31263 esac;;
31264esac
John Criswell12399a12003-09-30 15:55:44 +000031265
31266
31267 cd $ac_dir
31268
31269 # Check for guested configure; otherwise get Cygnus style configure.
31270 if test -f $ac_srcdir/configure.gnu; then
31271 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31272 elif test -f $ac_srcdir/configure; then
31273 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31274 elif test -f $ac_srcdir/configure.in; then
31275 ac_sub_configure=$ac_configure
31276 else
31277 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31278echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31279 ac_sub_configure=
31280 fi
31281
31282 # The recursion is here.
31283 if test -n "$ac_sub_configure"; then
31284 # Make the cache file name correct relative to the subdirectory.
31285 case $cache_file in
31286 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31287 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031288 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031289 esac
31290
31291 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31292echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31293 # The eval makes quoting arguments work.
31294 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031295 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31296 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031297echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31298 { (exit 1); exit 1; }; }
31299 fi
31300
31301 cd $ac_popdir
31302 done
31303fi
31304
Brian Gaekef3b24102003-11-16 18:38:14 +000031305
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031306if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31307 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031308echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031309 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031310echo "$as_me: WARNING: ***** appear to be working." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031311 { echo "$as_me:$LINENO: WARNING: ***** " >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031312echo "$as_me: WARNING: ***** " >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031313 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031314echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031315 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031316echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031317 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031318echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31319fi