blob: 11d602027f1265fc6850b52159622d78027c78b7 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswelle2503892005-11-08 21:13:01 +00003# Generated by GNU Autoconf 2.59 for llvm 1.7cvs.
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#
John Criswellc0c186d2005-11-08 21:11:33 +000011# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
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-'
John Criswelle2503892005-11-08 21:13:01 +0000428PACKAGE_VERSION='1.7cvs'
429PACKAGE_STRING='llvm 1.7cvs'
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"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell241116f2005-12-19 20:27:24 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
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 Spencer54d14482006-04-07 16:01:51 +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 LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED ENABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN 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 LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS 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
John Criswelle2503892005-11-08 21:13:01 +0000968\`configure' configures llvm 1.7cvs 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
John Criswelle2503892005-11-08 21:13:01 +00001030 short | recursive ) echo "Configuration of llvm 1.7cvs:";;
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
Reid Spencer54d14482006-04-07 16:01:51 +00001038 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001039 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001041 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001042 --enable-threads Use threads if available (default is YES)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001043 --enable-target Build specific host targets:
1044 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001045 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-static[=PKGS]
1049 build static libraries [default=yes]
1050 --enable-fast-install[=PKGS]
1051 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001052 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001057 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1058 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001059 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1062 both]
1063 --with-tags[=TAGS]
1064 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001065
1066Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001067 CC C compiler command
1068 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001073 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080Use these variables to override the choices made by `configure' or to help
1081it to find libraries and programs with nonstandard names/locations.
1082
1083Report bugs to <llvmbugs@cs.uiuc.edu>.
1084_ACEOF
1085fi
1086
1087if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1089 ac_popdir=`pwd`
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1092 ac_builddir=.
1093
1094if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098else
1099 ac_dir_suffix= ac_top_builddir=
1100fi
1101
1102case $srcdir in
1103 .) # No --srcdir option. We are building in place.
1104 ac_srcdir=.
1105 if test -z "$ac_top_builddir"; then
1106 ac_top_srcdir=.
1107 else
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109 fi ;;
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1113 *) # Relative path.
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001117
1118# Do not use `cd foo && pwd` to compute absolute paths, because
1119# the directories may not exist.
1120case `pwd` in
1121.) ac_abs_builddir="$ac_dir";;
1122*)
1123 case "$ac_dir" in
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127 esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_builddir=${ac_top_builddir}.;;
1131*)
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136 esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_srcdir=$ac_srcdir;;
1140*)
1141 case $ac_srcdir in
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145 esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_top_srcdir=$ac_top_srcdir;;
1149*)
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 esac;;
1155esac
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 cd $ac_dir
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1160 echo
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1163 echo
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001166 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001167 echo
1168 $ac_configure --help
1169 else
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 fi
1172 cd $ac_popdir
1173 done
1174fi
1175
1176test -n "$ac_init_help" && exit 0
1177if $ac_init_version; then
1178 cat <<\_ACEOF
John Criswelle2503892005-11-08 21:13:01 +00001179llvm configure 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001180generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001181
Reid Spencer2706f8c2004-09-19 23:53:36 +00001182Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001183This configure script is free software; the Free Software Foundation
1184gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001185
John Criswellc0c186d2005-11-08 21:11:33 +00001186Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001187_ACEOF
1188 exit 0
1189fi
1190exec 5>config.log
1191cat >&5 <<_ACEOF
1192This file contains any messages produced by compilers while
1193running configure, to aid debugging if configure makes a mistake.
1194
John Criswelle2503892005-11-08 21:13:01 +00001195It was created by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001196generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001197
1198 $ $0 $@
1199
1200_ACEOF
1201{
1202cat <<_ASUNAME
1203## --------- ##
1204## Platform. ##
1205## --------- ##
1206
1207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215
1216/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223
1224_ASUNAME
1225
1226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227for as_dir in $PATH
1228do
1229 IFS=$as_save_IFS
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1232done
1233
1234} >&5
1235
1236cat >&5 <<_ACEOF
1237
1238
1239## ----------- ##
1240## Core tests. ##
1241## ----------- ##
1242
1243_ACEOF
1244
1245
1246# Keep a trace of the command line.
1247# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001248# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001249# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001250# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001251ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001252ac_configure_args0=
1253ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001254ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001255ac_must_keep_next=false
1256for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001257do
John Criswell0c38eaf2003-09-10 15:17:25 +00001258 for ac_arg
1259 do
1260 case $ac_arg in
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 continue ;;
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 esac
1268 case $ac_pass in
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 2)
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001273 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001274 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001275 case $ac_arg in
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 esac
1283 ;;
1284 -* ) ac_must_keep_next=true ;;
1285 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001286 fi
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1289 ac_sep=" "
1290 ;;
1291 esac
1292 done
John Criswell7a73b802003-06-30 21:59:07 +00001293done
John Criswell0c38eaf2003-09-10 15:17:25 +00001294$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295$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 +00001296
1297# When interrupted or exit'd, cleanup temporary files, and complete
1298# config.log. We remove comments because anyway the quotes in there
1299# would cause problems or look ugly.
1300# WARNING: Be sure not to use single quotes in there, as some shells,
1301# such as our DU 5.0 friend, will then `close' the trap.
1302trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1304 {
1305 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001306
John Criswell7a73b802003-06-30 21:59:07 +00001307 cat <<\_ASBOX
1308## ---------------- ##
1309## Cache variables. ##
1310## ---------------- ##
1311_ASBOX
1312 echo
1313 # The following way of writing the cache mishandles newlines in values,
1314{
1315 (set) 2>&1 |
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 *ac_space=\ *)
1318 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001321 ;;
1322 *)
1323 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001325 ;;
1326 esac;
1327}
1328 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001329
1330 cat <<\_ASBOX
1331## ----------------- ##
1332## Output variables. ##
1333## ----------------- ##
1334_ASBOX
1335 echo
1336 for ac_var in $ac_subst_vars
1337 do
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1342
1343 if test -n "$ac_subst_files"; then
1344 cat <<\_ASBOX
1345## ------------- ##
1346## Output files. ##
1347## ------------- ##
1348_ASBOX
1349 echo
1350 for ac_var in $ac_subst_files
1351 do
1352 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001353 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001354 done | sort
1355 echo
1356 fi
1357
John Criswell7a73b802003-06-30 21:59:07 +00001358 if test -s confdefs.h; then
1359 cat <<\_ASBOX
1360## ----------- ##
1361## confdefs.h. ##
1362## ----------- ##
1363_ASBOX
1364 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001365 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001366 echo
1367 fi
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1371 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001372 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 exit $exit_status
1375 ' 0
1376for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378done
1379ac_signal=0
1380
1381# confdefs.h avoids OS command line length limits that DEFS can exceed.
1382rm -rf conftest* confdefs.h
1383# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384echo >confdefs.h
1385
1386# Predefined preprocessor variables.
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_NAME "$PACKAGE_NAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_VERSION "$PACKAGE_VERSION"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_STRING "$PACKAGE_STRING"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410_ACEOF
1411
1412
1413# Let the site file select an alternate cache file if it wants to.
1414# Prefer explicitly selected file to automatically selected ones.
1415if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 else
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 fi
1421fi
1422for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1427 . "$ac_site_file"
1428 fi
1429done
1430
1431if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436echo "$as_me: loading cache $cache_file" >&6;}
1437 case $cache_file in
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1440 esac
1441 fi
1442else
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444echo "$as_me: creating cache $cache_file" >&6;}
1445 >$cache_file
1446fi
1447
1448# Check that the precious variables saved in the cache have kept the same
1449# value.
1450ac_cache_corrupted=false
1451for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1458 set,)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,set)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,);;
1467 *)
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001470echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001472echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001474echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001476 fi;;
1477 esac
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1480 case $ac_new_val in
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1484 esac
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488 esac
1489 fi
1490done
1491if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1497fi
1498
1499ac_ext=c
1500ac_cpp='$CPP $CPPFLAGS'
1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
John Criswell0c38eaf2003-09-10 15:17:25 +00001531
Misha Brukman19098e52005-05-12 22:15:34 +00001532LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001533
1534
1535
1536
1537
1538
1539
John Criswell7a73b802003-06-30 21:59:07 +00001540ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001541for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555done
1556if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001559 { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
John Criswell392aaa32003-07-22 19:18:09 +00001565
Reid Spencer2706f8c2004-09-19 23:53:36 +00001566if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001569echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001571 fi
John Criswell93e1c722003-09-15 17:04:06 +00001572fi
1573
John Criswell33a911a2003-11-25 20:36:46 +00001574for i in `ls ${srcdir}/projects`
1575do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001576 if test -d ${srcdir}/projects/${i} ; then
1577 case ${i} in
1578 "CVS") ;;
1579 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001580
Reid Spencer4d68ba22004-09-07 16:35:45 +00001581subdirs="$subdirs projects/sample"
1582 ;;
1583 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001584
Reid Spencer4d68ba22004-09-07 16:35:45 +00001585subdirs="$subdirs projects/Stacker"
1586 ;;
1587 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001588
Reid Spencer4d68ba22004-09-07 16:35:45 +00001589subdirs="$subdirs projects/llvm-test"
1590 ;;
1591 "llvm-reopt")
1592
1593subdirs="$subdirs projects/llvm-reopt"
1594;;
1595 "llvm-gcc")
1596
1597subdirs="$subdirs projects/llvm-gcc"
1598 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001599 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001600
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001601subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001602 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001603 "llvm-tv")
1604
1605subdirs="$subdirs projects/llvm-tv"
1606 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001607 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001608
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001609subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001610 ;;
John Criswell241116f2005-12-19 20:27:24 +00001611 "llvm-kernel")
1612
1613subdirs="$subdirs projects/llvm-kernel"
1614 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001615 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001616 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001618 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001619 esac
John Criswell33a911a2003-11-25 20:36:46 +00001620 fi
1621done
John Criswell559a6c12003-09-30 16:31:48 +00001622
John Criswell7a73b802003-06-30 21:59:07 +00001623
1624# Make sure we can run config.sub.
1625$ac_config_sub sun4 >/dev/null 2>&1 ||
1626 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628 { (exit 1); exit 1; }; }
1629
1630echo "$as_me:$LINENO: checking build system type" >&5
1631echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632if test "${ac_cv_build+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_build_alias=$build_alias
1636test -z "$ac_cv_build_alias" &&
1637 ac_cv_build_alias=`$ac_config_guess`
1638test -z "$ac_cv_build_alias" &&
1639 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641 { (exit 1); exit 1; }; }
1642ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1646
1647fi
1648echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649echo "${ECHO_T}$ac_cv_build" >&6
1650build=$ac_cv_build
1651build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656echo "$as_me:$LINENO: checking host system type" >&5
1657echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658if test "${ac_cv_host+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661 ac_cv_host_alias=$host_alias
1662test -z "$ac_cv_host_alias" &&
1663 ac_cv_host_alias=$ac_cv_build_alias
1664ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667 { (exit 1); exit 1; }; }
1668
1669fi
1670echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671echo "${ECHO_T}$ac_cv_host" >&6
1672host=$ac_cv_host
1673host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678echo "$as_me:$LINENO: checking target system type" >&5
1679echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680if test "${ac_cv_target+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683 ac_cv_target_alias=$target_alias
1684test "x$ac_cv_target_alias" = "x" &&
1685 ac_cv_target_alias=$ac_cv_host_alias
1686ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689 { (exit 1); exit 1; }; }
1690
1691fi
1692echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693echo "${ECHO_T}$ac_cv_target" >&6
1694target=$ac_cv_target
1695target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700# The aliases save the names the user supplied, while $host etc.
1701# will get canonicalized.
1702test -n "$target_alias" &&
1703 test "$program_prefix$program_suffix$program_transform_name" = \
1704 NONENONEs,x,x, &&
1705 program_prefix=${target_alias}-
1706
Reid Spencer7b3e8512004-12-24 06:29:05 +00001707echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001713 *-*-aix*)
1714 llvm_cv_os_type="AIX"
1715 llvm_cv_platform_type="Unix" ;;
1716 *-*-cygwin*)
1717 llvm_cv_os_type="Cygwin"
1718 llvm_cv_platform_type="Unix" ;;
1719 *-*-darwin*)
1720 llvm_cv_os_type="Darwin"
1721 llvm_cv_platform_type="Unix" ;;
1722 *-*-freebsd*)
1723 llvm_cv_os_type="FreeBSD"
1724 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001725 *-*-hpux*)
1726 llvm_cv_os_type="HP-UX"
1727 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001728 *-*-interix*)
1729 llvm_cv_os_type="Interix"
1730 llvm_cv_platform_type="Unix" ;;
1731 *-*-linux*)
1732 llvm_cv_os_type="Linux"
1733 llvm_cv_platform_type="Unix" ;;
1734 *-*-solaris*)
1735 llvm_cv_os_type="SunOS"
1736 llvm_cv_platform_type="Unix" ;;
1737 *-*-win32*)
1738 llvm_cv_os_type="Win32"
1739 llvm_cv_platform_type="Win32" ;;
1740 *-*-mingw*)
1741 llvm_cv_os_type="MingW"
1742 llvm_cv_platform_type="Win32" ;;
1743 *)
1744 llvm_cv_os_type="Unknown"
1745 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001746esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001747fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001748echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1749echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001750
Reid Spencer7b3e8512004-12-24 06:29:05 +00001751if test "$llvm_cv_os_type" = "Unknown" ; then
1752 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1753echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001754 { (exit 1); exit 1; }; }
1755fi
1756
Reid Spencer7b3e8512004-12-24 06:29:05 +00001757OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001758
1759
Reid Spencer7b3e8512004-12-24 06:29:05 +00001760case $llvm_cv_platform_type in
1761 Unix)
1762
1763cat >>confdefs.h <<\_ACEOF
1764#define LLVM_ON_UNIX 1
1765_ACEOF
1766
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001767 LLVM_ON_UNIX=1
1768
1769 LLVM_ON_WIN32=0
1770
Reid Spencer7b3e8512004-12-24 06:29:05 +00001771 ;;
1772 Win32)
1773
1774cat >>confdefs.h <<\_ACEOF
1775#define LLVM_ON_WIN32 1
1776_ACEOF
1777
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001778 LLVM_ON_UNIX=0
1779
1780 LLVM_ON_WIN32=1
1781
Reid Spencer7b3e8512004-12-24 06:29:05 +00001782 ;;
1783esac
1784
Reid Spencer73fb5482004-08-31 14:20:36 +00001785echo "$as_me:$LINENO: checking target architecture" >&5
1786echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001787if test "${llvm_cv_target_arch+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001791 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001792 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001793 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1794 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001795 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001796 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001797 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001798esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001799fi
1800echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1801echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001802
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001803if test "$llvm_cv_target_arch" = "Unknown" ; then
1804 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1805echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1806fi
John Criswell76595452003-07-01 22:07:39 +00001807
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001808ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001809
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001810
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001811ac_ext=c
1812ac_cpp='$CPP $CPPFLAGS'
1813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001816if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818set dummy ${ac_tool_prefix}gcc; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826else
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838done
1839done
1840
1841fi
1842fi
1843CC=$ac_cv_prog_CC
1844if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846echo "${ECHO_T}$CC" >&6
1847else
1848 echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852fi
1853if test -z "$ac_cv_prog_CC"; then
1854 ac_ct_CC=$CC
1855 # Extract the first word of "gcc", so it can be a program name with args.
1856set dummy gcc; ac_word=$2
1857echo "$as_me:$LINENO: checking for $ac_word" >&5
1858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864else
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="gcc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876done
1877done
1878
1879fi
1880fi
1881ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884echo "${ECHO_T}$ac_ct_CC" >&6
1885else
1886 echo "$as_me:$LINENO: result: no" >&5
1887echo "${ECHO_T}no" >&6
1888fi
1889
1890 CC=$ac_ct_CC
1891else
1892 CC="$ac_cv_prog_CC"
1893fi
1894
1895if test -z "$CC"; then
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898set dummy ${ac_tool_prefix}cc; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC="${ac_tool_prefix}cc"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1917 fi
1918done
1919done
1920
1921fi
1922fi
1923CC=$ac_cv_prog_CC
1924if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926echo "${ECHO_T}$CC" >&6
1927else
1928 echo "$as_me:$LINENO: result: no" >&5
1929echo "${ECHO_T}no" >&6
1930fi
1931
1932fi
1933if test -z "$ac_cv_prog_CC"; then
1934 ac_ct_CC=$CC
1935 # Extract the first word of "cc", so it can be a program name with args.
1936set dummy cc; ac_word=$2
1937echo "$as_me:$LINENO: checking for $ac_word" >&5
1938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941else
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944else
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1955 fi
1956done
1957done
1958
1959fi
1960fi
1961ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964echo "${ECHO_T}$ac_ct_CC" >&6
1965else
1966 echo "$as_me:$LINENO: result: no" >&5
1967echo "${ECHO_T}no" >&6
1968fi
1969
1970 CC=$ac_ct_CC
1971else
1972 CC="$ac_cv_prog_CC"
1973fi
1974
1975fi
1976if test -z "$CC"; then
1977 # Extract the first word of "cc", so it can be a program name with args.
1978set dummy cc; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
1987 ac_prog_rejected=no
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996 ac_prog_rejected=yes
1997 continue
1998 fi
1999 ac_cv_prog_CC="cc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003done
2004done
2005
2006if test $ac_prog_rejected = yes; then
2007 # We found a bogon in the path, so make sure we never use it.
2008 set dummy $ac_cv_prog_CC
2009 shift
2010 if test $# != 0; then
2011 # We chose a different compiler from the bogus one.
2012 # However, it has the same basename, so the bogon will be chosen
2013 # first if we set CC to just the basename; use the full file name.
2014 shift
2015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016 fi
2017fi
2018fi
2019fi
2020CC=$ac_cv_prog_CC
2021if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023echo "${ECHO_T}$CC" >&6
2024else
2025 echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6
2027fi
2028
2029fi
2030if test -z "$CC"; then
2031 if test -n "$ac_tool_prefix"; then
2032 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002033 do
2034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055done
2056done
2057
2058fi
2059fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060CC=$ac_cv_prog_CC
2061if test -n "$CC"; then
2062 echo "$as_me:$LINENO: result: $CC" >&5
2063echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002064else
2065 echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002070 done
2071fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072if test -z "$CC"; then
2073 ac_ct_CC=$CC
2074 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002075do
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077set dummy $ac_prog; ac_word=$2
2078echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002093 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097done
2098done
2099
2100fi
2101fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
2104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002106else
2107 echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6
2109fi
2110
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002111 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002112done
John Criswell7a73b802003-06-30 21:59:07 +00002113
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002114 CC=$ac_ct_CC
2115fi
2116
John Criswell7a73b802003-06-30 21:59:07 +00002117fi
2118
2119
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2125
John Criswell7a73b802003-06-30 21:59:07 +00002126# Provide some information about the compiler.
2127echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002128 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002129ac_compiler=`set X $ac_compile; echo $2`
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131 (eval $ac_compiler --version </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136 (eval $ac_compiler -v </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141 (eval $ac_compiler -V </dev/null >&5) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145
2146cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002147/* confdefs.h. */
2148_ACEOF
2149cat confdefs.h >>conftest.$ac_ext
2150cat >>conftest.$ac_ext <<_ACEOF
2151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002152
John Criswell7a73b802003-06-30 21:59:07 +00002153int
2154main ()
2155{
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002162ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002163# Try to create an executable without -o first, disregard a.out.
2164# It will help us diagnose broken compilers, and finding out an intuition
2165# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002166echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002168ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170 (eval $ac_link_default) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # Find the output, starting from the most likely. This scheme is
2175# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176# resort.
2177
2178# Be careful to initialize this variable, since it used to be cached.
2179# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002181# b.out is created by i960 compilers.
2182for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183do
2184 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002185 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002188 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 # This is the source file.
2190 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 # We found the default executable, but exeext='' is most
2193 # certainly right.
2194 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002195 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 # FIXME: I believe we export ac_cv_exeext for Libtool,
2198 # but it would be cool to find out if it's true. Does anybody
2199 # maintain Libtool? --akim.
2200 export ac_cv_exeext
2201 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002202 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002203 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002204 esac
2205done
2206else
2207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002208sed 's/^/| /' conftest.$ac_ext >&5
2209
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002210{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002211See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002212echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002213See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002214 { (exit 77); exit 77; }; }
2215fi
2216
2217ac_exeext=$ac_cv_exeext
2218echo "$as_me:$LINENO: result: $ac_file" >&5
2219echo "${ECHO_T}$ac_file" >&6
2220
2221# Check the compiler produces executables we can run. If not, either
2222# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002223echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002225# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226# If not cross compiling, check that we can run a simple program.
2227if test "$cross_compiling" != yes; then
2228 if { ac_try='./$ac_file'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 cross_compiling=no
2235 else
2236 if test "$cross_compiling" = maybe; then
2237 cross_compiling=yes
2238 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002239 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002242echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002245 { (exit 1); exit 1; }; }
2246 fi
2247 fi
2248fi
2249echo "$as_me:$LINENO: result: yes" >&5
2250echo "${ECHO_T}yes" >&6
2251
John Criswell0c38eaf2003-09-10 15:17:25 +00002252rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002253ac_clean_files=$ac_clean_files_save
2254# Check the compiler produces executables we can run. If not, either
2255# the compiler is broken, or we cross compile.
2256echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259echo "${ECHO_T}$cross_compiling" >&6
2260
2261echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264 (eval $ac_link) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270# work properly (i.e., refer to `conftest.exe'), while it won't with
2271# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002272for ac_file in conftest.exe conftest conftest.*; do
2273 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002274 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002277 export ac_cv_exeext
2278 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002279 * ) break;;
2280 esac
2281done
2282else
John Criswell0c38eaf2003-09-10 15:17:25 +00002283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002287 { (exit 1); exit 1; }; }
2288fi
2289
2290rm -f conftest$ac_cv_exeext
2291echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292echo "${ECHO_T}$ac_cv_exeext" >&6
2293
2294rm -f conftest.$ac_ext
2295EXEEXT=$ac_cv_exeext
2296ac_exeext=$EXEEXT
2297echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002303/* confdefs.h. */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002308
John Criswell7a73b802003-06-30 21:59:07 +00002309int
2310main ()
2311{
2312
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317rm -f conftest.o conftest.obj
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 break;;
2328 esac
2329done
2330else
2331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002338 { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342fi
2343echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344echo "${ECHO_T}$ac_cv_objext" >&6
2345OBJEXT=$ac_cv_objext
2346ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002347echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002358
John Criswell7a73b802003-06-30 21:59:07 +00002359int
2360main ()
2361{
2362#ifndef __GNUC__
2363 choke me
2364#endif
2365
2366 ;
2367 return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_compiler_gnu=yes
2393else
2394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002395sed 's/^/| /' conftest.$ac_ext >&5
2396
John Criswell7a73b802003-06-30 21:59:07 +00002397ac_compiler_gnu=no
2398fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002401
2402fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405GCC=`test $ac_compiler_gnu = yes && echo yes`
2406ac_test_CFLAGS=${CFLAGS+set}
2407ac_save_CFLAGS=$CFLAGS
2408CFLAGS="-g"
2409echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002415/* confdefs.h. */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002420
John Criswell7a73b802003-06-30 21:59:07 +00002421int
2422main ()
2423{
2424
2425 ;
2426 return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002452else
2453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002454sed 's/^/| /' conftest.$ac_ext >&5
2455
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002459fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462if test "$ac_test_CFLAGS" = set; then
2463 CFLAGS=$ac_save_CFLAGS
2464elif test $ac_cv_prog_cc_g = yes; then
2465 if test "$GCC" = yes; then
2466 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002467 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002469 fi
2470else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 if test "$GCC" = yes; then
2472 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002473 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002475 fi
2476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482 ac_cv_prog_cc_stdc=no
2483ac_save_CC=$CC
2484cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490#include <stdarg.h>
2491#include <stdio.h>
2492#include <sys/types.h>
2493#include <sys/stat.h>
2494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2495struct buf { int x; };
2496FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497static char *e (p, i)
2498 char **p;
2499 int i;
2500{
2501 return p[i];
2502}
2503static char *f (char * (*g) (char **, int), char **p, ...)
2504{
2505 char *s;
2506 va_list v;
2507 va_start (v,p);
2508 s = g (p, va_arg (v,int));
2509 va_end (v);
2510 return s;
2511}
2512
2513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2514 function prototypes and stuff, but not '\xHH' hex character constants.
2515 These don't provoke an error unfortunately, instead are silently treated
2516 as 'x'. The following induces an error, until -std1 is added to get
2517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2518 array size at least. It's necessary to write '\x00'==0 to get something
2519 that's true only with -std1. */
2520int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521
2522int test (int i, double x);
2523struct s1 {int (*f) (int a);};
2524struct s2 {int (*f) (double a);};
2525int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526int argc;
2527char **argv;
2528int
2529main ()
2530{
2531return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536# Don't try gcc -ansi; that turns off useful extensions and
2537# breaks some systems' header files.
2538# AIX -qlanglvl=ansi
2539# Ultrix and OSF/1 -std1
2540# HP-UX 10.20 and later -Ae
2541# HP-UX older versions -Aa -D_HPUX_SOURCE
2542# SVR4 -Xc -D__EXTENSIONS__
2543for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544do
2545 CC="$ac_save_CC $ac_arg"
2546 rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_cv_prog_cc_stdc=$ac_arg
2569break
2570else
2571 echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574fi
2575rm -f conftest.err conftest.$ac_objext
2576done
2577rm -f conftest.$ac_ext conftest.$ac_objext
2578CC=$ac_save_CC
2579
2580fi
2581
2582case "x$ac_cv_prog_cc_stdc" in
2583 x|xno)
2584 echo "$as_me:$LINENO: result: none needed" >&5
2585echo "${ECHO_T}none needed" >&6 ;;
2586 *)
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590esac
2591
2592# Some people use a C++ compiler to compile C. Since we use `exit',
2593# in C++ we need to declare it. In case someone uses the same compiler
2594# for both compiling C and C++ we need to have the C++ compiler decide
2595# the declaration of exit, since it's the most demanding environment.
2596cat >conftest.$ac_ext <<_ACEOF
2597#ifndef __cplusplus
2598 choke me
2599#endif
2600_ACEOF
2601rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002624 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2629 'void exit (int);'
2630do
2631 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002632/* confdefs.h. */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002637$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002638#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002639int
2640main ()
2641{
2642exit (42);
2643 ;
2644 return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002649 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002650 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 :
2670else
2671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002672sed 's/^/| /' conftest.$ac_ext >&5
2673
John Criswell7a73b802003-06-30 21:59:07 +00002674continue
2675fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002678/* confdefs.h. */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002683$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002684int
2685main ()
2686{
2687exit (42);
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002694 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002701 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 break
2715else
2716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002717sed 's/^/| /' conftest.$ac_ext >&5
2718
John Criswell7a73b802003-06-30 21:59:07 +00002719fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002721done
2722rm -f conftest*
2723if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2727fi
2728
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729else
2730 echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733fi
2734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741
2742echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2743echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2744if test "${ac_cv_c_bigendian+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747 # See if sys/param.h defines the BYTE_ORDER macro.
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
2754#include <sys/types.h>
2755#include <sys/param.h>
2756
2757int
2758main ()
2759{
2760#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2761 bogus endian macros
2762#endif
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 # It does; now see whether it defined to BIG_ENDIAN or not.
2791cat >conftest.$ac_ext <<_ACEOF
2792/* confdefs.h. */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h. */
2797#include <sys/types.h>
2798#include <sys/param.h>
2799
2800int
2801main ()
2802{
2803#if BYTE_ORDER != BIG_ENDIAN
2804 not big endian
2805#endif
2806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>conftest.er1
2814 ac_status=$?
2815 grep -v '^ *+' conftest.er1 >conftest.err
2816 rm -f conftest.er1
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -z "$ac_c_werror_flag"
2821 || test ! -s conftest.err'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 (eval $ac_try) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 ac_cv_c_bigendian=yes
2834else
2835 echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838ac_cv_c_bigendian=no
2839fi
2840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841else
2842 echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845# It does not; compile a test program.
2846if test "$cross_compiling" = yes; then
2847 # try to guess the endianness by grepping values into an object file
2848 ac_cv_c_bigendian=unknown
2849 cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h. */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h. */
2855short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2856short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2857void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2858short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2859short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2860void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2861int
2862main ()
2863{
2864 _ascii (); _ebcdic ();
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext
2870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag"
2879 || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
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 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2892 ac_cv_c_bigendian=yes
2893fi
2894if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2895 if test "$ac_cv_c_bigendian" = unknown; then
2896 ac_cv_c_bigendian=no
2897 else
2898 # finding both strings is unlikely to happen, but who knows?
2899 ac_cv_c_bigendian=unknown
2900 fi
2901fi
2902else
2903 echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915int
2916main ()
2917{
2918 /* Are we little or big endian? From Harbison&Steele. */
2919 union
2920 {
2921 long l;
2922 char c[sizeof (long)];
2923 } u;
2924 u.l = 1;
2925 exit (u.c[sizeof (long) - 1] == 1);
2926}
2927_ACEOF
2928rm -f conftest$ac_exeext
2929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_c_bigendian=no
2940else
2941 echo "$as_me: program exited with status $ac_status" >&5
2942echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945( exit $ac_status )
2946ac_cv_c_bigendian=yes
2947fi
2948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949fi
2950fi
2951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952fi
2953echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2954echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2955case $ac_cv_c_bigendian in
2956 yes)
2957 ENDIAN=big
2958 ;;
2959 no)
2960 ENDIAN=little
2961 ;;
2962 *)
2963 { { echo "$as_me:$LINENO: error: unknown endianness
2964presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2965echo "$as_me: error: unknown endianness
2966presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2967 { (exit 1); exit 1; }; } ;;
2968esac
2969
2970
Reid Spencer4ebf3312006-04-08 01:41:26 +00002971if test -d "CVS" -o -d "${srcdir}/CVS"; then
Reid Spencer54d14482006-04-07 16:01:51 +00002972 cvsbuild="yes"
2973 optimize="no"
2974 asserts="yes"
2975 CVSBUILD=CVSBUILD=1
2976
2977else
2978 cvsbuild="no"
2979 optimize="yes"
2980 asserts="no"
2981fi
2982
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002983
2984# Check whether --enable-optimized or --disable-optimized was given.
2985if test "${enable_optimized+set}" = set; then
2986 enableval="$enable_optimized"
2987
2988else
Reid Spencer54d14482006-04-07 16:01:51 +00002989 enableval=$optimize
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002990fi;
2991if test ${enableval} = "no" ; then
2992 ENABLE_OPTIMIZED=
2993
2994else
2995 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2996
2997fi
2998
Reid Spencer54d14482006-04-07 16:01:51 +00002999# Check whether --enable-assertions or --disable-assertions was given.
3000if test "${enable_assertions+set}" = set; then
3001 enableval="$enable_assertions"
3002
3003else
3004 enableval=$asserts
3005fi;
3006if test ${enableval} = "no" ; then
3007 ENABLE_ASSERTIONS=
3008
3009else
3010 ENABLE_ASSERTIONS=ENABLE_ASSERTIONS=1
3011
3012fi
3013
Reid Spencer6e96d812005-12-21 03:31:53 +00003014# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3015if test "${enable_debug_runtime+set}" = set; then
3016 enableval="$enable_debug_runtime"
3017
3018else
3019 enableval=no
3020fi;
3021if test ${enableval} = "no" ; then
3022 DEBUG_RUNTIME=
3023
3024else
3025 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3026
3027fi
3028
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003029# Check whether --enable-jit or --disable-jit was given.
3030if test "${enable_jit+set}" = set; then
3031 enableval="$enable_jit"
3032
3033else
3034 enableval=default
3035fi;
3036if test ${enableval} = "no"
3037then
3038 JIT=
3039
3040else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003041 case "$llvm_cv_target_arch" in
Reid Spencerb195d9d2006-03-23 23:21:29 +00003042 x86) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003043 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003044 Sparc) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003045 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003046 PowerPC) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003047 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003048 x86_64) TARGET_HAS_JIT=0
Reid Spencer95ed8432004-12-23 06:22:33 +00003049 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003050 Alpha) TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003051 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003052 IA64) TARGET_HAS_JIT=0
Reid Spencer945de9b2005-04-22 07:27:28 +00003053 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003054 *) TARGET_HAS_JIT=0
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003055 ;;
3056 esac
3057fi
3058
Reid Spencer1f319422004-11-29 04:56:35 +00003059# Check whether --enable-doxygen or --disable-doxygen was given.
3060if test "${enable_doxygen+set}" = set; then
3061 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003062
Reid Spencer1f319422004-11-29 04:56:35 +00003063else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003064 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003065fi;
3066case "$enableval" in
3067 yes) ENABLE_DOXYGEN=1
3068 ;;
3069 no) ENABLE_DOXYGEN=0
3070 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003071 default) ENABLE_DOXYGEN=0
3072 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3074echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3075 { (exit 1); exit 1; }; } ;;
3076esac
3077
Reid Spencer0a262ba2005-08-24 10:07:20 +00003078# Check whether --enable-threads or --disable-threads was given.
3079if test "${enable_threads+set}" = set; then
3080 enableval="$enable_threads"
3081
3082else
3083 enableval=yes
3084fi;
3085case "$enableval" in
3086 yes) ENABLE_THREADS=1
3087 ;;
3088 no) ENABLE_THREADS=0
3089 ;;
3090 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3091echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3092 { (exit 1); exit 1; }; } ;;
3093esac
3094
3095cat >>confdefs.h <<_ACEOF
3096#define ENABLE_THREADS $ENABLE_THREADS
3097_ACEOF
3098
3099
Reid Spencer945de9b2005-04-22 07:27:28 +00003100TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003101# Check whether --enable-targets or --disable-targets was given.
3102if test "${enable_targets+set}" = set; then
3103 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003104
3105else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003106 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003107fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003108case "$enableval" in
Chris Lattner56b9e1c2006-02-16 21:12:54 +00003109 all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003110 host-only)
3111 case "$llvm_cv_target_arch" in
3112 x86) TARGETS_TO_BUILD="X86" ;;
3113 x86_64) TARGETS_TO_BUILD="X86" ;;
Chris Lattner35409222006-02-05 06:26:43 +00003114 Sparc) TARGETS_TO_BUILD="Sparc SparcV9" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003115 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3116 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3117 IA64) TARGETS_TO_BUILD="IA64" ;;
3118 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003119echo "$as_me: error: Can not set target to build" >&2;}
3120 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003121 esac
3122 ;;
3123 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3124 case "$a_target" in
3125 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3126 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Chris Lattner35409222006-02-05 06:26:43 +00003127 sparc) TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003128 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3129 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3130 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003131 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3132echo "$as_me: error: Unrecognized target $a_target" >&2;}
3133 { (exit 1); exit 1; }; } ;;
3134 esac
3135 done
3136 ;;
3137esac
Reid Spencer675f0922005-04-22 17:06:18 +00003138TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003139TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3140
3141
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003142
Reid Spencer59473af2004-12-25 07:31:29 +00003143# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3144if test "${with_llvmgccdir+set}" = set; then
3145 withval="$with_llvmgccdir"
3146
3147else
3148 withval=default
3149fi;
3150case "$withval" in
3151 default) WITH_LLVMGCCDIR=default ;;
3152 /*) WITH_LLVMGCCDIR=$withval ;;
3153 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3154echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3155 { (exit 1); exit 1; }; } ;;
3156esac
3157
3158
Reid Spencer945de9b2005-04-22 07:27:28 +00003159
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003160ac_ext=c
3161ac_cpp='$CPP $CPPFLAGS'
3162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3166echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3167# On Suns, sometimes $CPP names a directory.
3168if test -n "$CPP" && test -d "$CPP"; then
3169 CPP=
3170fi
3171if test -z "$CPP"; then
3172 if test "${ac_cv_prog_CPP+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174else
3175 # Double quotes because CPP needs to be expanded
3176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3177 do
3178 ac_preproc_ok=false
3179for ac_c_preproc_warn_flag in '' yes
3180do
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3184 # <limits.h> exists even on freestanding compilers.
3185 # On the NeXT, cc -E runs the code through the compiler's parser,
3186 # not just through cpp. "Syntax error" is here to catch this case.
3187 cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h. */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h. */
3193#ifdef __STDC__
3194# include <limits.h>
3195#else
3196# include <assert.h>
3197#endif
3198 Syntax error
3199_ACEOF
3200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } >/dev/null; then
3208 if test -s conftest.err; then
3209 ac_cpp_err=$ac_c_preproc_warn_flag
3210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3211 else
3212 ac_cpp_err=
3213 fi
3214else
3215 ac_cpp_err=yes
3216fi
3217if test -z "$ac_cpp_err"; then
3218 :
3219else
3220 echo "$as_me: failed program was:" >&5
3221sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 # Broken: fails on valid input.
3224continue
3225fi
3226rm -f conftest.err conftest.$ac_ext
3227
3228 # OK, works on sane cases. Now check whether non-existent headers
3229 # can be detected and how.
3230 cat >conftest.$ac_ext <<_ACEOF
3231/* confdefs.h. */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h. */
3236#include <ac_nonexistent.h>
3237_ACEOF
3238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } >/dev/null; then
3246 if test -s conftest.err; then
3247 ac_cpp_err=$ac_c_preproc_warn_flag
3248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249 else
3250 ac_cpp_err=
3251 fi
3252else
3253 ac_cpp_err=yes
3254fi
3255if test -z "$ac_cpp_err"; then
3256 # Broken: success on invalid input.
3257continue
3258else
3259 echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 # Passes both tests.
3263ac_preproc_ok=:
3264break
3265fi
3266rm -f conftest.err conftest.$ac_ext
3267
3268done
3269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3270rm -f conftest.err conftest.$ac_ext
3271if $ac_preproc_ok; then
3272 break
3273fi
3274
3275 done
3276 ac_cv_prog_CPP=$CPP
3277
3278fi
3279 CPP=$ac_cv_prog_CPP
3280else
3281 ac_cv_prog_CPP=$CPP
3282fi
3283echo "$as_me:$LINENO: result: $CPP" >&5
3284echo "${ECHO_T}$CPP" >&6
3285ac_preproc_ok=false
3286for ac_c_preproc_warn_flag in '' yes
3287do
3288 # Use a header file that comes with gcc, so configuring glibc
3289 # with a fresh cross-compiler works.
3290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3291 # <limits.h> exists even on freestanding compilers.
3292 # On the NeXT, cc -E runs the code through the compiler's parser,
3293 # not just through cpp. "Syntax error" is here to catch this case.
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300#ifdef __STDC__
3301# include <limits.h>
3302#else
3303# include <assert.h>
3304#endif
3305 Syntax error
3306_ACEOF
3307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3318 else
3319 ac_cpp_err=
3320 fi
3321else
3322 ac_cpp_err=yes
3323fi
3324if test -z "$ac_cpp_err"; then
3325 :
3326else
3327 echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 # Broken: fails on valid input.
3331continue
3332fi
3333rm -f conftest.err conftest.$ac_ext
3334
3335 # OK, works on sane cases. Now check whether non-existent headers
3336 # can be detected and how.
3337 cat >conftest.$ac_ext <<_ACEOF
3338/* confdefs.h. */
3339_ACEOF
3340cat confdefs.h >>conftest.$ac_ext
3341cat >>conftest.$ac_ext <<_ACEOF
3342/* end confdefs.h. */
3343#include <ac_nonexistent.h>
3344_ACEOF
3345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null; then
3353 if test -s conftest.err; then
3354 ac_cpp_err=$ac_c_preproc_warn_flag
3355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3356 else
3357 ac_cpp_err=
3358 fi
3359else
3360 ac_cpp_err=yes
3361fi
3362if test -z "$ac_cpp_err"; then
3363 # Broken: success on invalid input.
3364continue
3365else
3366 echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 # Passes both tests.
3370ac_preproc_ok=:
3371break
3372fi
3373rm -f conftest.err conftest.$ac_ext
3374
3375done
3376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3377rm -f conftest.err conftest.$ac_ext
3378if $ac_preproc_ok; then
3379 :
3380else
3381 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3382See \`config.log' for more details." >&5
3383echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3384See \`config.log' for more details." >&2;}
3385 { (exit 1); exit 1; }; }
3386fi
3387
John Criswell7a73b802003-06-30 21:59:07 +00003388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393
3394ac_ext=c
3395ac_cpp='$CPP $CPPFLAGS'
3396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399if test -n "$ac_tool_prefix"; then
3400 for ac_prog in gcc
3401 do
3402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3404echo "$as_me:$LINENO: checking for $ac_word" >&5
3405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3406if test "${ac_cv_prog_CC+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411else
3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH
3414do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423done
3424done
3425
3426fi
3427fi
3428CC=$ac_cv_prog_CC
3429if test -n "$CC"; then
3430 echo "$as_me:$LINENO: result: $CC" >&5
3431echo "${ECHO_T}$CC" >&6
3432else
3433 echo "$as_me:$LINENO: result: no" >&5
3434echo "${ECHO_T}no" >&6
3435fi
3436
3437 test -n "$CC" && break
3438 done
3439fi
3440if test -z "$CC"; then
3441 ac_ct_CC=$CC
3442 for ac_prog in gcc
3443do
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445set dummy $ac_prog; ac_word=$2
3446echo "$as_me:$LINENO: checking for $ac_word" >&5
3447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451 if test -n "$ac_ct_CC"; then
3452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3453else
3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH
3456do
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_ac_ct_CC="$ac_prog"
3462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465done
3466done
3467
3468fi
3469fi
3470ac_ct_CC=$ac_cv_prog_ac_ct_CC
3471if test -n "$ac_ct_CC"; then
3472 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3473echo "${ECHO_T}$ac_ct_CC" >&6
3474else
3475 echo "$as_me:$LINENO: result: no" >&5
3476echo "${ECHO_T}no" >&6
3477fi
3478
3479 test -n "$ac_ct_CC" && break
3480done
3481
3482 CC=$ac_ct_CC
3483fi
3484
3485
John Criswell0c38eaf2003-09-10 15:17:25 +00003486test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3487See \`config.log' for more details." >&5
3488echo "$as_me: error: no acceptable C compiler found in \$PATH
3489See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003490 { (exit 1); exit 1; }; }
3491
3492# Provide some information about the compiler.
3493echo "$as_me:$LINENO:" \
3494 "checking for C compiler version" >&5
3495ac_compiler=`set X $ac_compile; echo $2`
3496{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3497 (eval $ac_compiler --version </dev/null >&5) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }
3501{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3502 (eval $ac_compiler -v </dev/null >&5) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }
3506{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3507 (eval $ac_compiler -V </dev/null >&5) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }
3511
3512echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3513echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3514if test "${ac_cv_c_compiler_gnu+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003523
John Criswell7a73b802003-06-30 21:59:07 +00003524int
3525main ()
3526{
3527#ifndef __GNUC__
3528 choke me
3529#endif
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
3535rm -f conftest.$ac_objext
3536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003537 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003538 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003544 { ac_try='test -z "$ac_c_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_compiler_gnu=yes
3558else
3559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003560sed 's/^/| /' conftest.$ac_ext >&5
3561
John Criswell7a73b802003-06-30 21:59:07 +00003562ac_compiler_gnu=no
3563fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003565ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567fi
3568echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3569echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3570GCC=`test $ac_compiler_gnu = yes && echo yes`
3571ac_test_CFLAGS=${CFLAGS+set}
3572ac_save_CFLAGS=$CFLAGS
3573CFLAGS="-g"
3574echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3575echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3576if test "${ac_cv_prog_cc_g+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003585
John Criswell7a73b802003-06-30 21:59:07 +00003586int
3587main ()
3588{
3589
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594rm -f conftest.$ac_objext
3595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003596 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003597 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 ac_cv_prog_cc_g=yes
3617else
3618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003619sed 's/^/| /' conftest.$ac_ext >&5
3620
John Criswell7a73b802003-06-30 21:59:07 +00003621ac_cv_prog_cc_g=no
3622fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003624fi
3625echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3626echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3627if test "$ac_test_CFLAGS" = set; then
3628 CFLAGS=$ac_save_CFLAGS
3629elif test $ac_cv_prog_cc_g = yes; then
3630 if test "$GCC" = yes; then
3631 CFLAGS="-g -O2"
3632 else
3633 CFLAGS="-g"
3634 fi
3635else
3636 if test "$GCC" = yes; then
3637 CFLAGS="-O2"
3638 else
3639 CFLAGS=
3640 fi
3641fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003642echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3643echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3644if test "${ac_cv_prog_cc_stdc+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 ac_cv_prog_cc_stdc=no
3648ac_save_CC=$CC
3649cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003650/* confdefs.h. */
3651_ACEOF
3652cat confdefs.h >>conftest.$ac_ext
3653cat >>conftest.$ac_ext <<_ACEOF
3654/* end confdefs.h. */
3655#include <stdarg.h>
3656#include <stdio.h>
3657#include <sys/types.h>
3658#include <sys/stat.h>
3659/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660struct buf { int x; };
3661FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662static char *e (p, i)
3663 char **p;
3664 int i;
3665{
3666 return p[i];
3667}
3668static char *f (char * (*g) (char **, int), char **p, ...)
3669{
3670 char *s;
3671 va_list v;
3672 va_start (v,p);
3673 s = g (p, va_arg (v,int));
3674 va_end (v);
3675 return s;
3676}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003677
3678/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
3681 as 'x'. The following induces an error, until -std1 is added to get
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
3684 that's true only with -std1. */
3685int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686
John Criswell0c38eaf2003-09-10 15:17:25 +00003687int test (int i, double x);
3688struct s1 {int (*f) (int a);};
3689struct s2 {int (*f) (double a);};
3690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3691int argc;
3692char **argv;
3693int
3694main ()
3695{
3696return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3697 ;
3698 return 0;
3699}
3700_ACEOF
3701# Don't try gcc -ansi; that turns off useful extensions and
3702# breaks some systems' header files.
3703# AIX -qlanglvl=ansi
3704# Ultrix and OSF/1 -std1
3705# HP-UX 10.20 and later -Ae
3706# HP-UX older versions -Aa -D_HPUX_SOURCE
3707# SVR4 -Xc -D__EXTENSIONS__
3708for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709do
3710 CC="$ac_save_CC $ac_arg"
3711 rm -f conftest.$ac_objext
3712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003713 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003720 { ac_try='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
3722 { (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); }; } &&
3727 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 ac_cv_prog_cc_stdc=$ac_arg
3734break
3735else
3736 echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003740rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003741done
3742rm -f conftest.$ac_ext conftest.$ac_objext
3743CC=$ac_save_CC
3744
3745fi
3746
3747case "x$ac_cv_prog_cc_stdc" in
3748 x|xno)
3749 echo "$as_me:$LINENO: result: none needed" >&5
3750echo "${ECHO_T}none needed" >&6 ;;
3751 *)
3752 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3753echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3754 CC="$CC $ac_cv_prog_cc_stdc" ;;
3755esac
3756
John Criswell7a73b802003-06-30 21:59:07 +00003757# Some people use a C++ compiler to compile C. Since we use `exit',
3758# in C++ we need to declare it. In case someone uses the same compiler
3759# for both compiling C and C++ we need to have the C++ compiler decide
3760# the declaration of exit, since it's the most demanding environment.
3761cat >conftest.$ac_ext <<_ACEOF
3762#ifndef __cplusplus
3763 choke me
3764#endif
3765_ACEOF
3766rm -f conftest.$ac_objext
3767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003768 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003769 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003775 { ac_try='test -z "$ac_c_werror_flag"
3776 || test ! -s conftest.err'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003789 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003790 'extern "C" void std::exit (int) throw (); using std::exit;' \
3791 'extern "C" void std::exit (int); using std::exit;' \
3792 'extern "C" void exit (int) throw ();' \
3793 'extern "C" void exit (int);' \
3794 'void exit (int);'
3795do
3796 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003797/* confdefs.h. */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003802$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003803#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003804int
3805main ()
3806{
3807exit (42);
3808 ;
3809 return 0;
3810}
3811_ACEOF
3812rm -f conftest.$ac_objext
3813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003814 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003815 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003821 { ac_try='test -z "$ac_c_werror_flag"
3822 || test ! -s conftest.err'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 :
3835else
3836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003837sed 's/^/| /' conftest.$ac_ext >&5
3838
John Criswell7a73b802003-06-30 21:59:07 +00003839continue
3840fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003842 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003843/* confdefs.h. */
3844_ACEOF
3845cat confdefs.h >>conftest.$ac_ext
3846cat >>conftest.$ac_ext <<_ACEOF
3847/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003848$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003849int
3850main ()
3851{
3852exit (42);
3853 ;
3854 return 0;
3855}
3856_ACEOF
3857rm -f conftest.$ac_objext
3858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003859 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003860 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 break
3880else
3881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003882sed 's/^/| /' conftest.$ac_ext >&5
3883
John Criswell7a73b802003-06-30 21:59:07 +00003884fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003886done
3887rm -f conftest*
3888if test -n "$ac_declaration"; then
3889 echo '#ifdef __cplusplus' >>confdefs.h
3890 echo $ac_declaration >>confdefs.h
3891 echo '#endif' >>confdefs.h
3892fi
3893
3894else
3895 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003896sed 's/^/| /' conftest.$ac_ext >&5
3897
John Criswell7a73b802003-06-30 21:59:07 +00003898fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003900ac_ext=c
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003906ac_ext=cc
3907ac_cpp='$CXXCPP $CPPFLAGS'
3908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3911if test -n "$ac_tool_prefix"; then
3912 for ac_prog in $CCC g++
3913 do
3914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3916echo "$as_me:$LINENO: checking for $ac_word" >&5
3917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3918if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003921 if test -n "$CXX"; then
3922 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003926do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935done
3936done
3937
3938fi
3939fi
3940CXX=$ac_cv_prog_CXX
3941if test -n "$CXX"; then
3942 echo "$as_me:$LINENO: result: $CXX" >&5
3943echo "${ECHO_T}$CXX" >&6
3944else
3945 echo "$as_me:$LINENO: result: no" >&5
3946echo "${ECHO_T}no" >&6
3947fi
3948
3949 test -n "$CXX" && break
3950 done
3951fi
3952if test -z "$CXX"; then
3953 ac_ct_CXX=$CXX
3954 for ac_prog in $CCC g++
3955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
3958echo "$as_me:$LINENO: checking for $ac_word" >&5
3959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 if test -n "$ac_ct_CXX"; then
3964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_ac_ct_CXX="$ac_prog"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978done
3979
3980fi
3981fi
3982ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3983if test -n "$ac_ct_CXX"; then
3984 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3985echo "${ECHO_T}$ac_ct_CXX" >&6
3986else
3987 echo "$as_me:$LINENO: result: no" >&5
3988echo "${ECHO_T}no" >&6
3989fi
3990
3991 test -n "$ac_ct_CXX" && break
3992done
3993test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3994
3995 CXX=$ac_ct_CXX
3996fi
3997
3998
3999# Provide some information about the compiler.
4000echo "$as_me:$LINENO:" \
4001 "checking for C++ compiler version" >&5
4002ac_compiler=`set X $ac_compile; echo $2`
4003{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4004 (eval $ac_compiler --version </dev/null >&5) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }
4008{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4009 (eval $ac_compiler -v </dev/null >&5) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }
4013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4014 (eval $ac_compiler -V </dev/null >&5) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }
4018
4019echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4020echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4021if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023else
John Criswell7a73b802003-06-30 21:59:07 +00004024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004030
4031int
4032main ()
4033{
4034#ifndef __GNUC__
4035 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004036#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004037
4038 ;
4039 return 0;
4040}
John Criswell7a73b802003-06-30 21:59:07 +00004041_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004042rm -f conftest.$ac_objext
4043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4044 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004045 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004046 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004050 (exit $ac_status); } &&
4051 { ac_try='test -z "$ac_cxx_werror_flag"
4052 || test ! -s conftest.err'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 ac_compiler_gnu=yes
4065else
4066 echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
4069ac_compiler_gnu=no
4070fi
4071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4072ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4073
4074fi
4075echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4076echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4077GXX=`test $ac_compiler_gnu = yes && echo yes`
4078ac_test_CXXFLAGS=${CXXFLAGS+set}
4079ac_save_CXXFLAGS=$CXXFLAGS
4080CXXFLAGS="-g"
4081echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4082echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4083if test "${ac_cv_prog_cxx_g+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086 cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092
4093int
4094main ()
4095{
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
4101rm -f conftest.$ac_objext
4102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_cxx_werror_flag"
4111 || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_prog_cxx_g=yes
4124else
4125 echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128ac_cv_prog_cxx_g=no
4129fi
4130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4131fi
4132echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4133echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4134if test "$ac_test_CXXFLAGS" = set; then
4135 CXXFLAGS=$ac_save_CXXFLAGS
4136elif test $ac_cv_prog_cxx_g = yes; then
4137 if test "$GXX" = yes; then
4138 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004139 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004140 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004141 fi
4142else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004143 if test "$GXX" = yes; then
4144 CXXFLAGS="-O2"
4145 else
4146 CXXFLAGS=
4147 fi
John Criswell7a73b802003-06-30 21:59:07 +00004148fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004149for ac_declaration in \
4150 '' \
4151 'extern "C" void std::exit (int) throw (); using std::exit;' \
4152 'extern "C" void std::exit (int); using std::exit;' \
4153 'extern "C" void exit (int) throw ();' \
4154 'extern "C" void exit (int);' \
4155 'void exit (int);'
4156do
4157 cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h. */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h. */
4163$ac_declaration
4164#include <stdlib.h>
4165int
4166main ()
4167{
4168exit (42);
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext
4174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_cxx_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004195 :
4196else
4197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004198sed 's/^/| /' conftest.$ac_ext >&5
4199
John Criswell7a73b802003-06-30 21:59:07 +00004200continue
4201fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004203 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004209$ac_declaration
4210int
4211main ()
4212{
4213exit (42);
4214 ;
4215 return 0;
4216}
John Criswell7a73b802003-06-30 21:59:07 +00004217_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004218rm -f conftest.$ac_objext
4219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004221 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004222 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_cxx_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004240 break
John Criswell7a73b802003-06-30 21:59:07 +00004241else
4242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004243sed 's/^/| /' conftest.$ac_ext >&5
4244
John Criswell7a73b802003-06-30 21:59:07 +00004245fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004247done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004248rm -f conftest*
4249if test -n "$ac_declaration"; then
4250 echo '#ifdef __cplusplus' >>confdefs.h
4251 echo $ac_declaration >>confdefs.h
4252 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004253fi
4254
4255ac_ext=c
4256ac_cpp='$CPP $CPPFLAGS'
4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260
John Criswell7a73b802003-06-30 21:59:07 +00004261echo "$as_me:$LINENO: checking " >&5
4262echo $ECHO_N "checking ... $ECHO_C" >&6
4263if test "${ac_cv_has_flex+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266 for ac_prog in flex lex
4267do
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269set dummy $ac_prog; ac_word=$2
4270echo "$as_me:$LINENO: checking for $ac_word" >&5
4271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272if test "${ac_cv_prog_LEX+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275 if test -n "$LEX"; then
4276 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_LEX="$ac_prog"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4288 fi
4289done
4290done
4291
4292fi
4293fi
4294LEX=$ac_cv_prog_LEX
4295if test -n "$LEX"; then
4296 echo "$as_me:$LINENO: result: $LEX" >&5
4297echo "${ECHO_T}$LEX" >&6
4298else
4299 echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6
4301fi
4302
4303 test -n "$LEX" && break
4304done
4305test -n "$LEX" || LEX=":"
4306
4307if test -z "$LEXLIB"
4308then
4309 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4310echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4311if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313else
4314 ac_check_lib_save_LIBS=$LIBS
4315LIBS="-lfl $LIBS"
4316cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004317/* confdefs.h. */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004322
4323/* Override any gcc2 internal prototype to avoid an error. */
4324#ifdef __cplusplus
4325extern "C"
4326#endif
4327/* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4329char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004330int
4331main ()
4332{
4333yywrap ();
4334 ;
4335 return 0;
4336}
4337_ACEOF
4338rm -f conftest.$ac_objext conftest$ac_exeext
4339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004340 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004341 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004342 grep -v '^ *+' conftest.er1 >conftest.err
4343 rm -f conftest.er1
4344 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004347 { ac_try='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_lib_fl_yywrap=yes
4361else
4362 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004363sed 's/^/| /' conftest.$ac_ext >&5
4364
John Criswell7a73b802003-06-30 21:59:07 +00004365ac_cv_lib_fl_yywrap=no
4366fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004367rm -f conftest.err conftest.$ac_objext \
4368 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004369LIBS=$ac_check_lib_save_LIBS
4370fi
4371echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4372echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4373if test $ac_cv_lib_fl_yywrap = yes; then
4374 LEXLIB="-lfl"
4375else
4376 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4377echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4378if test "${ac_cv_lib_l_yywrap+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381 ac_check_lib_save_LIBS=$LIBS
4382LIBS="-ll $LIBS"
4383cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004384/* confdefs.h. */
4385_ACEOF
4386cat confdefs.h >>conftest.$ac_ext
4387cat >>conftest.$ac_ext <<_ACEOF
4388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004389
4390/* Override any gcc2 internal prototype to avoid an error. */
4391#ifdef __cplusplus
4392extern "C"
4393#endif
4394/* We use char because int might match the return type of a gcc2
4395 builtin and then its argument prototype would still apply. */
4396char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004397int
4398main ()
4399{
4400yywrap ();
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405rm -f conftest.$ac_objext conftest$ac_exeext
4406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004407 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004408 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004414 { ac_try='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_lib_l_yywrap=yes
4428else
4429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004430sed 's/^/| /' conftest.$ac_ext >&5
4431
John Criswell7a73b802003-06-30 21:59:07 +00004432ac_cv_lib_l_yywrap=no
4433fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004434rm -f conftest.err conftest.$ac_objext \
4435 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004436LIBS=$ac_check_lib_save_LIBS
4437fi
4438echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4439echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4440if test $ac_cv_lib_l_yywrap = yes; then
4441 LEXLIB="-ll"
4442fi
4443
4444fi
4445
4446fi
4447
4448if test "x$LEX" != "x:"; then
4449 echo "$as_me:$LINENO: checking lex output file root" >&5
4450echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4451if test "${ac_cv_prog_lex_root+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454 # The minimal lex program is just a single line: %%. But some broken lexes
4455# (Solaris, I think it was) want two %% lines, so accommodate them.
4456cat >conftest.l <<_ACEOF
4457%%
4458%%
4459_ACEOF
4460{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4461 (eval $LEX conftest.l) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }
4465if test -f lex.yy.c; then
4466 ac_cv_prog_lex_root=lex.yy
4467elif test -f lexyy.c; then
4468 ac_cv_prog_lex_root=lexyy
4469else
4470 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4471echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4472 { (exit 1); exit 1; }; }
4473fi
4474fi
4475echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4476echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4477rm -f conftest.l
4478LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4479
4480echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4481echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4482if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485 # POSIX says lex can declare yytext either as a pointer or an array; the
4486# default is implementation-dependent. Figure out which it is, since
4487# not all implementations provide the %pointer and %array declarations.
4488ac_cv_prog_lex_yytext_pointer=no
4489echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4490ac_save_LIBS=$LIBS
4491LIBS="$LIBS $LEXLIB"
4492cat >conftest.$ac_ext <<_ACEOF
4493`cat $LEX_OUTPUT_ROOT.c`
4494_ACEOF
4495rm -f conftest.$ac_objext conftest$ac_exeext
4496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004497 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004498 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004504 { ac_try='test -z "$ac_c_werror_flag"
4505 || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_prog_lex_yytext_pointer=yes
4518else
4519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004520sed 's/^/| /' conftest.$ac_ext >&5
4521
John Criswell7a73b802003-06-30 21:59:07 +00004522fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004523rm -f conftest.err conftest.$ac_objext \
4524 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004525LIBS=$ac_save_LIBS
4526rm -f "${LEX_OUTPUT_ROOT}.c"
4527
4528fi
4529echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4530echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4531if test $ac_cv_prog_lex_yytext_pointer = yes; then
4532
4533cat >>confdefs.h <<\_ACEOF
4534#define YYTEXT_POINTER 1
4535_ACEOF
4536
4537fi
4538
4539fi
4540
4541fi
4542echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4543echo "${ECHO_T}$ac_cv_has_flex" >&6
4544if test "$LEX" != "flex"; then
4545 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4546echo "$as_me: error: flex not found but required" >&2;}
4547 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004548else
4549 FLEX=flex
4550
John Criswell7a73b802003-06-30 21:59:07 +00004551fi
4552
4553echo "$as_me:$LINENO: checking " >&5
4554echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004555if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557else
4558 for ac_prog in 'bison -y' byacc
4559do
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561set dummy $ac_prog; ac_word=$2
4562echo "$as_me:$LINENO: checking for $ac_word" >&5
4563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564if test "${ac_cv_prog_YACC+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567 if test -n "$YACC"; then
4568 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4569else
4570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571for as_dir in $PATH
4572do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_YACC="$ac_prog"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581done
4582done
4583
4584fi
4585fi
4586YACC=$ac_cv_prog_YACC
4587if test -n "$YACC"; then
4588 echo "$as_me:$LINENO: result: $YACC" >&5
4589echo "${ECHO_T}$YACC" >&6
4590else
4591 echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6
4593fi
4594
4595 test -n "$YACC" && break
4596done
4597test -n "$YACC" || YACC="yacc"
4598
John Criswell7a73b802003-06-30 21:59:07 +00004599fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004600echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4601echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004602if test "$YACC" != "bison -y"; then
4603 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4604echo "$as_me: error: bison not found but required" >&2;}
4605 { (exit 1); exit 1; }; }
4606else
Brian Gaeke12810632004-01-13 06:52:10 +00004607 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004608
4609fi
4610
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004611echo "$as_me:$LINENO: checking for GNU make" >&5
4612echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4613if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004616 llvm_cv_gnu_make_command=''
4617 for a in "$MAKE" make gmake gnumake ; do
4618 if test -z "$a" ; then continue ; fi ;
4619 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4620 then
4621 llvm_cv_gnu_make_command=$a ;
4622 break;
John Criswell47fdd832003-07-14 16:52:07 +00004623 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004624 done
John Criswell7a73b802003-06-30 21:59:07 +00004625fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004626echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4627echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4628 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4629 ifGNUmake='' ;
4630 else
4631 ifGNUmake='#' ;
4632 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4633echo "${ECHO_T}\"Not found\"" >&6;
4634 fi
John Criswell7a73b802003-06-30 21:59:07 +00004635
John Criswell7a73b802003-06-30 21:59:07 +00004636
4637echo "$as_me:$LINENO: checking whether ln -s works" >&5
4638echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4639LN_S=$as_ln_s
4640if test "$LN_S" = "ln -s"; then
4641 echo "$as_me:$LINENO: result: yes" >&5
4642echo "${ECHO_T}yes" >&6
4643else
4644 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4645echo "${ECHO_T}no, using $LN_S" >&6
4646fi
4647
Reid Spencer8a2d4712004-12-16 17:48:14 +00004648# Extract the first word of "cmp", so it can be a program name with args.
4649set dummy cmp; ac_word=$2
4650echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652if test "${ac_cv_path_CMP+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 case $CMP in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4658 ;;
4659 *)
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673
4674 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4675 ;;
4676esac
4677fi
4678CMP=$ac_cv_path_CMP
4679
4680if test -n "$CMP"; then
4681 echo "$as_me:$LINENO: result: $CMP" >&5
4682echo "${ECHO_T}$CMP" >&6
4683else
4684 echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686fi
4687
4688# Extract the first word of "cp", so it can be a program name with args.
4689set dummy cp; ac_word=$2
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692if test "${ac_cv_path_CP+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 case $CP in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712done
4713
4714 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4715 ;;
4716esac
4717fi
4718CP=$ac_cv_path_CP
4719
4720if test -n "$CP"; then
4721 echo "$as_me:$LINENO: result: $CP" >&5
4722echo "${ECHO_T}$CP" >&6
4723else
4724 echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6
4726fi
4727
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004728# Extract the first word of "date", so it can be a program name with args.
4729set dummy date; ac_word=$2
4730echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004735 case $DATE in
4736 [\\/]* | ?:[\\/]*)
4737 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004738 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004739 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004750 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004751done
4752done
John Criswell7a73b802003-06-30 21:59:07 +00004753
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004754 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004755 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004756esac
John Criswell7a73b802003-06-30 21:59:07 +00004757fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004758DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004759
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004760if test -n "$DATE"; then
4761 echo "$as_me:$LINENO: result: $DATE" >&5
4762echo "${ECHO_T}$DATE" >&6
4763else
4764 echo "$as_me:$LINENO: result: no" >&5
4765echo "${ECHO_T}no" >&6
4766fi
John Criswell7a73b802003-06-30 21:59:07 +00004767
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004768# Extract the first word of "find", so it can be a program name with args.
4769set dummy find; ac_word=$2
4770echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004775 case $FIND in
4776 [\\/]* | ?:[\\/]*)
4777 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4778 ;;
4779 *)
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793
4794 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4795 ;;
4796esac
4797fi
4798FIND=$ac_cv_path_FIND
4799
4800if test -n "$FIND"; then
4801 echo "$as_me:$LINENO: result: $FIND" >&5
4802echo "${ECHO_T}$FIND" >&6
4803else
4804 echo "$as_me:$LINENO: result: no" >&5
4805echo "${ECHO_T}no" >&6
4806fi
4807
4808# Extract the first word of "grep", so it can be a program name with args.
4809set dummy grep; ac_word=$2
4810echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812if test "${ac_cv_path_GREP+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 case $GREP in
4816 [\\/]* | ?:[\\/]*)
4817 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4818 ;;
4819 *)
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
4832done
4833
4834 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4835 ;;
4836esac
4837fi
4838GREP=$ac_cv_path_GREP
4839
4840if test -n "$GREP"; then
4841 echo "$as_me:$LINENO: result: $GREP" >&5
4842echo "${ECHO_T}$GREP" >&6
4843else
4844 echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6
4846fi
4847
4848# Extract the first word of "mkdir", so it can be a program name with args.
4849set dummy mkdir; ac_word=$2
4850echo "$as_me:$LINENO: checking for $ac_word" >&5
4851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852if test "${ac_cv_path_MKDIR+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855 case $MKDIR in
4856 [\\/]* | ?:[\\/]*)
4857 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4858 ;;
4859 *)
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871done
4872done
4873
4874 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4875 ;;
4876esac
4877fi
4878MKDIR=$ac_cv_path_MKDIR
4879
4880if test -n "$MKDIR"; then
4881 echo "$as_me:$LINENO: result: $MKDIR" >&5
4882echo "${ECHO_T}$MKDIR" >&6
4883else
4884 echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6
4886fi
4887
4888# Extract the first word of "mv", so it can be a program name with args.
4889set dummy mv; ac_word=$2
4890echo "$as_me:$LINENO: checking for $ac_word" >&5
4891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892if test "${ac_cv_path_MV+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895 case $MV in
4896 [\\/]* | ?:[\\/]*)
4897 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4898 ;;
4899 *)
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4910 fi
4911done
4912done
4913
4914 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4915 ;;
4916esac
4917fi
4918MV=$ac_cv_path_MV
4919
4920if test -n "$MV"; then
4921 echo "$as_me:$LINENO: result: $MV" >&5
4922echo "${ECHO_T}$MV" >&6
4923else
4924 echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6
4926fi
4927
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004928if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4930set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4931echo "$as_me:$LINENO: checking for $ac_word" >&5
4932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4933if test "${ac_cv_prog_RANLIB+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936 if test -n "$RANLIB"; then
4937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4938else
4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950done
4951done
4952
4953fi
4954fi
4955RANLIB=$ac_cv_prog_RANLIB
4956if test -n "$RANLIB"; then
4957 echo "$as_me:$LINENO: result: $RANLIB" >&5
4958echo "${ECHO_T}$RANLIB" >&6
4959else
4960 echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6
4962fi
4963
4964fi
4965if test -z "$ac_cv_prog_RANLIB"; then
4966 ac_ct_RANLIB=$RANLIB
4967 # Extract the first word of "ranlib", so it can be a program name with args.
4968set dummy ranlib; ac_word=$2
4969echo "$as_me:$LINENO: checking for $ac_word" >&5
4970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 if test -n "$ac_ct_RANLIB"; then
4975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_ac_ct_RANLIB="ranlib"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988done
4989done
4990
4991 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4992fi
4993fi
4994ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995if test -n "$ac_ct_RANLIB"; then
4996 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4997echo "${ECHO_T}$ac_ct_RANLIB" >&6
4998else
4999 echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6
5001fi
5002
5003 RANLIB=$ac_ct_RANLIB
5004else
5005 RANLIB="$ac_cv_prog_RANLIB"
5006fi
5007
5008# Extract the first word of "rm", so it can be a program name with args.
5009set dummy rm; ac_word=$2
5010echo "$as_me:$LINENO: checking for $ac_word" >&5
5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012if test "${ac_cv_path_RM+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015 case $RM in
5016 [\\/]* | ?:[\\/]*)
5017 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5018 ;;
5019 *)
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031done
5032done
5033
5034 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5035 ;;
5036esac
5037fi
5038RM=$ac_cv_path_RM
5039
5040if test -n "$RM"; then
5041 echo "$as_me:$LINENO: result: $RM" >&5
5042echo "${ECHO_T}$RM" >&6
5043else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046fi
5047
5048# Extract the first word of "sed", so it can be a program name with args.
5049set dummy sed; ac_word=$2
5050echo "$as_me:$LINENO: checking for $ac_word" >&5
5051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5052if test "${ac_cv_path_SED+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054else
5055 case $SED in
5056 [\\/]* | ?:[\\/]*)
5057 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5058 ;;
5059 *)
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071done
5072done
5073
5074 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5075 ;;
5076esac
5077fi
5078SED=$ac_cv_path_SED
5079
5080if test -n "$SED"; then
5081 echo "$as_me:$LINENO: result: $SED" >&5
5082echo "${ECHO_T}$SED" >&6
5083else
5084 echo "$as_me:$LINENO: result: no" >&5
5085echo "${ECHO_T}no" >&6
5086fi
5087
5088# Extract the first word of "tar", so it can be a program name with args.
5089set dummy tar; ac_word=$2
5090echo "$as_me:$LINENO: checking for $ac_word" >&5
5091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092if test "${ac_cv_path_TAR+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095 case $TAR in
5096 [\\/]* | ?:[\\/]*)
5097 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5098 ;;
5099 *)
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5110 fi
5111done
5112done
5113
5114 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5115 ;;
5116esac
5117fi
5118TAR=$ac_cv_path_TAR
5119
5120if test -n "$TAR"; then
5121 echo "$as_me:$LINENO: result: $TAR" >&5
5122echo "${ECHO_T}$TAR" >&6
5123else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126fi
5127
Reid Spencer8a2246f2005-07-13 03:20:14 +00005128# Extract the first word of "Graphviz", so it can be a program name with args.
5129set dummy Graphviz; ac_word=$2
5130echo "$as_me:$LINENO: checking for $ac_word" >&5
5131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135 case $GRAPHVIZ in
5136 [\\/]* | ?:[\\/]*)
5137 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5138 ;;
5139 *)
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
5151done
5152done
5153
Reid Spencerc232a652005-07-14 02:25:12 +00005154 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005155 ;;
5156esac
5157fi
5158GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5159
5160if test -n "$GRAPHVIZ"; then
5161 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5162echo "${ECHO_T}$GRAPHVIZ" >&6
5163else
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166fi
5167
Reid Spencerc232a652005-07-14 02:25:12 +00005168if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005169
5170cat >>confdefs.h <<\_ACEOF
5171#define HAVE_GRAPHVIZ 1
5172_ACEOF
5173
Reid Spencerc232a652005-07-14 02:25:12 +00005174
Reid Spencerbe130282005-07-14 05:19:12 +00005175cat >>confdefs.h <<_ACEOF
Reid Spencerc232a652005-07-14 02:25:12 +00005176#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5177_ACEOF
5178
Reid Spencer8a2246f2005-07-13 03:20:14 +00005179fi
Reid Spencerbe130282005-07-14 05:19:12 +00005180# Extract the first word of "gv", so it can be a program name with args.
5181set dummy gv; ac_word=$2
5182echo "$as_me:$LINENO: checking for $ac_word" >&5
5183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184if test "${ac_cv_path_GV+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187 case $GV in
5188 [\\/]* | ?:[\\/]*)
5189 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5190 ;;
5191 *)
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
5205
5206 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5207 ;;
5208esac
5209fi
5210GV=$ac_cv_path_GV
5211
5212if test -n "$GV"; then
5213 echo "$as_me:$LINENO: result: $GV" >&5
5214echo "${ECHO_T}$GV" >&6
5215else
5216 echo "$as_me:$LINENO: result: no" >&5
5217echo "${ECHO_T}no" >&6
5218fi
5219
Misha Brukmanf83d4062005-11-01 21:00:49 +00005220if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005221
5222cat >>confdefs.h <<\_ACEOF
5223#define HAVE_GV 1
5224_ACEOF
5225
5226
5227cat >>confdefs.h <<_ACEOF
5228#define LLVM_PATH_GV "$GV"
5229_ACEOF
5230
5231fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005232
Reid Spencerb195d9d2006-03-23 23:21:29 +00005233
5234# Extract the first word of "perl", so it can be a program name with args.
5235set dummy perl; ac_word=$2
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238if test "${ac_cv_path_PERL+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241 case $PERL in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5244 ;;
5245 *)
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257done
5258done
5259
5260 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5261 ;;
5262esac
5263fi
5264PERL=$ac_cv_path_PERL
5265
5266if test -n "$PERL"; then
5267 echo "$as_me:$LINENO: result: $PERL" >&5
5268echo "${ECHO_T}$PERL" >&6
5269else
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272fi
5273
5274if test "$PERL" != "none"; then
5275 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5276echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5277 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279echo "${ECHO_T}yes" >&6
5280 else
5281 PERL=none
5282 echo "$as_me:$LINENO: result: not found" >&5
5283echo "${ECHO_T}not found" >&6
5284 fi
5285fi
5286
5287
5288if test x"$PERL" = xnone; then
5289 HAVE_PERL=0
5290
5291else
5292 HAVE_PERL=1
5293
5294fi
5295
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005296# Find a good install program. We prefer a C program (faster),
5297# so one script is as good as another. But avoid the broken or
5298# incompatible versions:
5299# SysV /etc/install, /usr/sbin/install
5300# SunOS /usr/etc/install
5301# IRIX /sbin/install
5302# AIX /bin/install
5303# AmigaOS /C/install, which installs bootblocks on floppy discs
5304# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5305# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5306# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5307# OS/2's system install, which has a completely different semantic
5308# ./install, which can be erroneously created by make from ./install.sh.
5309echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5310echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5311if test -z "$INSTALL"; then
5312if test "${ac_cv_path_install+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 # Account for people who put trailing slashes in PATH elements.
5321case $as_dir/ in
5322 ./ | .// | /cC/* | \
5323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5324 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5325 /usr/ucb/* ) ;;
5326 *)
5327 # OSF1 and SCO ODT 3.0 have their own names for install.
5328 # Don't use installbsd from OSF since it installs stuff as root
5329 # by default.
5330 for ac_prog in ginstall scoinst install; do
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5333 if test $ac_prog = install &&
5334 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5335 # AIX install. It has an incompatible calling convention.
5336 :
5337 elif test $ac_prog = install &&
5338 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5339 # program-specific install script used by HP pwplus--don't use.
5340 :
5341 else
5342 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5343 break 3
5344 fi
5345 fi
5346 done
5347 done
5348 ;;
5349esac
5350done
5351
5352
5353fi
5354 if test "${ac_cv_path_install+set}" = set; then
5355 INSTALL=$ac_cv_path_install
5356 else
5357 # As a last resort, use the slow shell script. We don't cache a
5358 # path for INSTALL within a source directory, because that will
5359 # break other packages using the cache if that directory is
5360 # removed, or if the path is relative.
5361 INSTALL=$ac_install_sh
5362 fi
5363fi
5364echo "$as_me:$LINENO: result: $INSTALL" >&5
5365echo "${ECHO_T}$INSTALL" >&6
5366
5367# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5368# It thinks the first close brace ends the variable substitution.
5369test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5370
5371test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5372
5373test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5374
5375
5376# Extract the first word of "bzip2", so it can be a program name with args.
5377set dummy bzip2; ac_word=$2
5378echo "$as_me:$LINENO: checking for $ac_word" >&5
5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380if test "${ac_cv_path_BZIP2+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 case $BZIP2 in
5384 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5386 ;;
5387 *)
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399done
5400done
5401
5402 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5403 ;;
5404esac
5405fi
5406BZIP2=$ac_cv_path_BZIP2
5407
5408if test -n "$BZIP2"; then
5409 echo "$as_me:$LINENO: result: $BZIP2" >&5
5410echo "${ECHO_T}$BZIP2" >&6
5411else
5412 echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6
5414fi
5415
5416# Extract the first word of "dot", so it can be a program name with args.
5417set dummy dot; ac_word=$2
5418echo "$as_me:$LINENO: checking for $ac_word" >&5
5419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420if test "${ac_cv_path_DOT+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 case $DOT in
5424 [\\/]* | ?:[\\/]*)
5425 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5426 ;;
5427 *)
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439done
5440done
5441
5442 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5443 ;;
5444esac
5445fi
5446DOT=$ac_cv_path_DOT
5447
5448if test -n "$DOT"; then
5449 echo "$as_me:$LINENO: result: $DOT" >&5
5450echo "${ECHO_T}$DOT" >&6
5451else
5452 echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454fi
5455
5456# Extract the first word of "doxygen", so it can be a program name with args.
5457set dummy doxygen; ac_word=$2
5458echo "$as_me:$LINENO: checking for $ac_word" >&5
5459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460if test "${ac_cv_path_DOXYGEN+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463 case $DOXYGEN in
5464 [\\/]* | ?:[\\/]*)
5465 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5466 ;;
5467 *)
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH
5470do
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5478 fi
5479done
5480done
5481
5482 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5483 ;;
5484esac
5485fi
5486DOXYGEN=$ac_cv_path_DOXYGEN
5487
5488if test -n "$DOXYGEN"; then
5489 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5490echo "${ECHO_T}$DOXYGEN" >&6
5491else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494fi
5495
5496# Extract the first word of "etags", so it can be a program name with args.
5497set dummy etags; ac_word=$2
5498echo "$as_me:$LINENO: checking for $ac_word" >&5
5499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5500if test "${ac_cv_path_ETAGS+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 case $ETAGS in
5504 [\\/]* | ?:[\\/]*)
5505 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5506 ;;
5507 *)
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519done
5520done
5521
5522 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5523 ;;
5524esac
5525fi
5526ETAGS=$ac_cv_path_ETAGS
5527
5528if test -n "$ETAGS"; then
5529 echo "$as_me:$LINENO: result: $ETAGS" >&5
5530echo "${ECHO_T}$ETAGS" >&6
5531else
5532 echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6
5534fi
5535
5536# Extract the first word of "groff", so it can be a program name with args.
5537set dummy groff; ac_word=$2
5538echo "$as_me:$LINENO: checking for $ac_word" >&5
5539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5540if test "${ac_cv_path_GROFF+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543 case $GROFF in
5544 [\\/]* | ?:[\\/]*)
5545 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5546 ;;
5547 *)
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5558 fi
5559done
5560done
5561
5562 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5563 ;;
5564esac
5565fi
5566GROFF=$ac_cv_path_GROFF
5567
5568if test -n "$GROFF"; then
5569 echo "$as_me:$LINENO: result: $GROFF" >&5
5570echo "${ECHO_T}$GROFF" >&6
5571else
5572 echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574fi
5575
5576# Extract the first word of "gzip", so it can be a program name with args.
5577set dummy gzip; ac_word=$2
5578echo "$as_me:$LINENO: checking for $ac_word" >&5
5579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5580if test "${ac_cv_path_GZIP+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583 case $GZIP in
5584 [\\/]* | ?:[\\/]*)
5585 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5586 ;;
5587 *)
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599done
5600done
5601
5602 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5603 ;;
5604esac
5605fi
5606GZIP=$ac_cv_path_GZIP
5607
5608if test -n "$GZIP"; then
5609 echo "$as_me:$LINENO: result: $GZIP" >&5
5610echo "${ECHO_T}$GZIP" >&6
5611else
5612 echo "$as_me:$LINENO: result: no" >&5
5613echo "${ECHO_T}no" >&6
5614fi
5615
5616# Extract the first word of "pod2html", so it can be a program name with args.
5617set dummy pod2html; ac_word=$2
5618echo "$as_me:$LINENO: checking for $ac_word" >&5
5619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5620if test "${ac_cv_path_POD2HTML+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623 case $POD2HTML in
5624 [\\/]* | ?:[\\/]*)
5625 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5626 ;;
5627 *)
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639done
5640done
5641
5642 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5643 ;;
5644esac
5645fi
5646POD2HTML=$ac_cv_path_POD2HTML
5647
5648if test -n "$POD2HTML"; then
5649 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5650echo "${ECHO_T}$POD2HTML" >&6
5651else
5652 echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6
5654fi
5655
5656# Extract the first word of "pod2man", so it can be a program name with args.
5657set dummy pod2man; ac_word=$2
5658echo "$as_me:$LINENO: checking for $ac_word" >&5
5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660if test "${ac_cv_path_POD2MAN+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663 case $POD2MAN in
5664 [\\/]* | ?:[\\/]*)
5665 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5666 ;;
5667 *)
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679done
5680done
5681
5682 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5683 ;;
5684esac
5685fi
5686POD2MAN=$ac_cv_path_POD2MAN
5687
5688if test -n "$POD2MAN"; then
5689 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5690echo "${ECHO_T}$POD2MAN" >&6
5691else
5692 echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6
5694fi
5695
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005696# Extract the first word of "runtest", so it can be a program name with args.
5697set dummy runtest; ac_word=$2
5698echo "$as_me:$LINENO: checking for $ac_word" >&5
5699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700if test "${ac_cv_path_RUNTEST+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703 case $RUNTEST in
5704 [\\/]* | ?:[\\/]*)
5705 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5706 ;;
5707 *)
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719done
5720done
5721
5722 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5723 ;;
5724esac
5725fi
5726RUNTEST=$ac_cv_path_RUNTEST
5727
5728if test -n "$RUNTEST"; then
5729 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5730echo "${ECHO_T}$RUNTEST" >&6
5731else
5732 echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6
5734fi
5735
Reid Spencer0fcb9412004-11-30 08:11:54 +00005736
Reid Spencer0fcb9412004-11-30 08:11:54 +00005737no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005738echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5739echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005740
5741# Check whether --with-tclinclude or --without-tclinclude was given.
5742if test "${with_tclinclude+set}" = set; then
5743 withval="$with_tclinclude"
5744 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005745else
5746 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005747fi;
5748if test "${ac_cv_path_tclsh+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751
5752if test x"${with_tclinclude}" != x ; then
5753 if test -f ${with_tclinclude}/tclsh ; then
5754 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5755 elif test -f ${with_tclinclude}/src/tclsh ; then
5756 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5757 else
5758 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5759echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5760 { (exit 1); exit 1; }; }
5761 fi
5762fi
5763
Reid Spencer0fcb9412004-11-30 08:11:54 +00005764if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005765 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005766echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005767 for ac_prog in 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 tclsh
Reid Spencercda35f82004-12-02 04:17:20 +00005768do
5769 # Extract the first word of "$ac_prog", so it can be a program name with args.
5770set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005771echo "$as_me:$LINENO: checking for $ac_word" >&5
5772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005773if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
Reid Spencercda35f82004-12-02 04:17:20 +00005776 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005777 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005778 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005779 ;;
5780 *)
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005788 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 break 2
5791 fi
5792done
5793done
5794
5795 ;;
5796esac
5797fi
Reid Spencercda35f82004-12-02 04:17:20 +00005798TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005799
Reid Spencercda35f82004-12-02 04:17:20 +00005800if test -n "$TCLSH"; then
5801 echo "$as_me:$LINENO: result: $TCLSH" >&5
5802echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005803else
5804 echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806fi
5807
Reid Spencercda35f82004-12-02 04:17:20 +00005808 test -n "$TCLSH" && break
5809done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005810
Reid Spencercda35f82004-12-02 04:17:20 +00005811 if test x"${TCLSH}" = x ; then
5812 ac_cv_path_tclsh='';
5813 else
5814 ac_cv_path_tclsh="${TCLSH}";
5815 fi
5816else
5817 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5818echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5819 TCLSH="${ac_cv_path_tclsh}"
5820
5821fi
5822
5823fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005824
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005825# Extract the first word of "zip", so it can be a program name with args.
5826set dummy zip; ac_word=$2
5827echo "$as_me:$LINENO: checking for $ac_word" >&5
5828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829if test "${ac_cv_path_ZIP+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832 case $ZIP in
5833 [\\/]* | ?:[\\/]*)
5834 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5835 ;;
5836 *)
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848done
5849done
5850
5851 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5852 ;;
5853esac
5854fi
5855ZIP=$ac_cv_path_ZIP
5856
5857if test -n "$ZIP"; then
5858 echo "$as_me:$LINENO: result: $ZIP" >&5
5859echo "${ECHO_T}$ZIP" >&6
5860else
5861 echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863fi
5864
5865
5866echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5867echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5868if test "${llvm_cv_link_use_r+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005872ac_cpp='$CPP $CPPFLAGS'
5873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875ac_compiler_gnu=$ac_cv_c_compiler_gnu
5876
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005877 oldcflags="$CFLAGS"
5878 CFLAGS="$CFLAGS -Wl,-R."
5879 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005880/* confdefs.h. */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005885
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005886int
5887main ()
5888{
5889int main() { return 0; }
5890 ;
5891 return 0;
5892}
John Criswell47fdd832003-07-14 16:52:07 +00005893_ACEOF
5894rm -f conftest.$ac_objext conftest$ac_exeext
5895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005896 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005902 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005903 { ac_try='test -z "$ac_c_werror_flag"
5904 || test ! -s conftest.err'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 (eval $ac_try) 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; } &&
5910 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005916 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005917else
John Criswell47fdd832003-07-14 16:52:07 +00005918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005919sed 's/^/| /' conftest.$ac_ext >&5
5920
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005921llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005922fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005923rm -f conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005925 CFLAGS="$oldcflags"
5926 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005927ac_cpp='$CPP $CPPFLAGS'
5928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930ac_compiler_gnu=$ac_cv_c_compiler_gnu
5931
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005932
John Criswell7a73b802003-06-30 21:59:07 +00005933fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005934echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5935echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5936if test "$llvm_cv_link_use_r" = yes ; then
5937
5938cat >>confdefs.h <<\_ACEOF
5939#define HAVE_LINK_R 1
5940_ACEOF
5941
John Criswell47fdd832003-07-14 16:52:07 +00005942 fi
John Criswell47fdd832003-07-14 16:52:07 +00005943
John Criswell47fdd832003-07-14 16:52:07 +00005944
John Criswell47fdd832003-07-14 16:52:07 +00005945
John Criswell7a73b802003-06-30 21:59:07 +00005946
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005947echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5948echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5949if test "${ac_cv_c_const+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h. */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h. */
5958
5959int
5960main ()
5961{
5962/* FIXME: Include the comments suggested by Paul. */
5963#ifndef __cplusplus
5964 /* Ultrix mips cc rejects this. */
5965 typedef int charset[2];
5966 const charset x;
5967 /* SunOS 4.1.1 cc rejects this. */
5968 char const *const *ccp;
5969 char **p;
5970 /* NEC SVR4.0.2 mips cc rejects this. */
5971 struct point {int x, y;};
5972 static struct point const zero = {0,0};
5973 /* AIX XL C 1.02.0.0 rejects this.
5974 It does not let you subtract one const X* pointer from another in
5975 an arm of an if-expression whose if-part is not a constant
5976 expression */
5977 const char *g = "string";
5978 ccp = &g + (g ? g-g : 0);
5979 /* HPUX 7.0 cc rejects these. */
5980 ++ccp;
5981 p = (char**) ccp;
5982 ccp = (char const *const *) p;
5983 { /* SCO 3.2v4 cc rejects this. */
5984 char *t;
5985 char const *s = 0 ? (char *) 0 : (char const *) 0;
5986
5987 *t++ = 0;
5988 }
5989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5990 int x[] = {25, 17};
5991 const int *foo = &x[0];
5992 ++foo;
5993 }
5994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5995 typedef const int *iptr;
5996 iptr p = 0;
5997 ++p;
5998 }
5999 { /* AIX XL C 1.02.0.0 rejects this saying
6000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6001 struct s { int j; const int *ap[3]; };
6002 struct s *b; b->j = 5;
6003 }
6004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6005 const int foo = 10;
6006 }
6007#endif
6008
6009 ;
6010 return 0;
6011}
6012_ACEOF
6013rm -f conftest.$ac_objext
6014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_c_const=yes
6036else
6037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040ac_cv_c_const=no
6041fi
6042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043fi
6044echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6045echo "${ECHO_T}$ac_cv_c_const" >&6
6046if test $ac_cv_c_const = no; then
6047
6048cat >>confdefs.h <<\_ACEOF
6049#define const
6050_ACEOF
6051
6052fi
6053
6054
6055echo "$as_me:$LINENO: checking for egrep" >&5
6056echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6057if test "${ac_cv_prog_egrep+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6061 then ac_cv_prog_egrep='grep -E'
6062 else ac_cv_prog_egrep='egrep'
6063 fi
6064fi
6065echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6066echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6067 EGREP=$ac_cv_prog_egrep
6068
John Criswell7a73b802003-06-30 21:59:07 +00006069
6070echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6071echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6072if test "${ac_cv_header_stdc+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006076/* confdefs.h. */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006081#include <stdlib.h>
6082#include <stdarg.h>
6083#include <string.h>
6084#include <float.h>
6085
John Criswell0c38eaf2003-09-10 15:17:25 +00006086int
6087main ()
6088{
6089
6090 ;
6091 return 0;
6092}
John Criswell7a73b802003-06-30 21:59:07 +00006093_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006094rm -f conftest.$ac_objext
6095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006096 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006097 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006102 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006103 { ac_try='test -z "$ac_c_werror_flag"
6104 || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006116 ac_cv_header_stdc=yes
6117else
6118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006119sed 's/^/| /' conftest.$ac_ext >&5
6120
6121ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006122fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006124
6125if test $ac_cv_header_stdc = yes; then
6126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6127 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006128/* confdefs.h. */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006133#include <string.h>
6134
6135_ACEOF
6136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006137 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006138 :
6139else
6140 ac_cv_header_stdc=no
6141fi
6142rm -f conftest*
6143
6144fi
6145
6146if test $ac_cv_header_stdc = yes; then
6147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6148 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006149/* confdefs.h. */
6150_ACEOF
6151cat confdefs.h >>conftest.$ac_ext
6152cat >>conftest.$ac_ext <<_ACEOF
6153/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006154#include <stdlib.h>
6155
6156_ACEOF
6157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006158 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006159 :
6160else
6161 ac_cv_header_stdc=no
6162fi
6163rm -f conftest*
6164
6165fi
6166
6167if test $ac_cv_header_stdc = yes; then
6168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6169 if test "$cross_compiling" = yes; then
6170 :
6171else
6172 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006173/* confdefs.h. */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006178#include <ctype.h>
6179#if ((' ' & 0x0FF) == 0x020)
6180# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6181# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6182#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006183# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006184 (('a' <= (c) && (c) <= 'i') \
6185 || ('j' <= (c) && (c) <= 'r') \
6186 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006187# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6188#endif
6189
6190#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6191int
6192main ()
6193{
6194 int i;
6195 for (i = 0; i < 256; i++)
6196 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006197 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006198 exit(2);
6199 exit (0);
6200}
6201_ACEOF
6202rm -f conftest$ac_exeext
6203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204 (eval $ac_link) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 :
6214else
6215 echo "$as_me: program exited with status $ac_status" >&5
6216echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006217sed 's/^/| /' conftest.$ac_ext >&5
6218
John Criswell7a73b802003-06-30 21:59:07 +00006219( exit $ac_status )
6220ac_cv_header_stdc=no
6221fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006222rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006223fi
6224fi
6225fi
6226echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6227echo "${ECHO_T}$ac_cv_header_stdc" >&6
6228if test $ac_cv_header_stdc = yes; then
6229
6230cat >>confdefs.h <<\_ACEOF
6231#define STDC_HEADERS 1
6232_ACEOF
6233
6234fi
6235
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006236
6237
6238
6239
6240
6241ac_header_dirent=no
6242for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6243 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6244echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6245echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6246if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248else
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255#include <sys/types.h>
6256#include <$ac_hdr>
6257
6258int
6259main ()
6260{
6261if ((DIR *) 0)
6262return 0;
6263 ;
6264 return 0;
6265}
6266_ACEOF
6267rm -f conftest.$ac_objext
6268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269 (eval $ac_compile) 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 eval "$as_ac_Header=yes"
6290else
6291 echo "$as_me: failed program was:" >&5
6292sed 's/^/| /' conftest.$ac_ext >&5
6293
6294eval "$as_ac_Header=no"
6295fi
6296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297fi
6298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6300if test `eval echo '${'$as_ac_Header'}'` = yes; then
6301 cat >>confdefs.h <<_ACEOF
6302#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6303_ACEOF
6304
6305ac_header_dirent=$ac_hdr; break
6306fi
6307
6308done
6309# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6310if test $ac_header_dirent = dirent.h; then
6311 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6312echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6313if test "${ac_cv_search_opendir+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 ac_func_search_save_LIBS=$LIBS
6317ac_cv_search_opendir=no
6318cat >conftest.$ac_ext <<_ACEOF
6319/* confdefs.h. */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h. */
6324
6325/* Override any gcc2 internal prototype to avoid an error. */
6326#ifdef __cplusplus
6327extern "C"
6328#endif
6329/* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6331char opendir ();
6332int
6333main ()
6334{
6335opendir ();
6336 ;
6337 return 0;
6338}
6339_ACEOF
6340rm -f conftest.$ac_objext conftest$ac_exeext
6341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342 (eval $ac_link) 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest$ac_exeext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_search_opendir="none required"
6363else
6364 echo "$as_me: failed program was:" >&5
6365sed 's/^/| /' conftest.$ac_ext >&5
6366
6367fi
6368rm -f conftest.err conftest.$ac_objext \
6369 conftest$ac_exeext conftest.$ac_ext
6370if test "$ac_cv_search_opendir" = no; then
6371 for ac_lib in dir; do
6372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6373 cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
6379
6380/* Override any gcc2 internal prototype to avoid an error. */
6381#ifdef __cplusplus
6382extern "C"
6383#endif
6384/* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6386char opendir ();
6387int
6388main ()
6389{
6390opendir ();
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext conftest$ac_exeext
6396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6397 (eval $ac_link) 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag"
6405 || test ! -s conftest.err'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest$ac_exeext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_search_opendir="-l$ac_lib"
6418break
6419else
6420 echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
6423fi
6424rm -f conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6426 done
6427fi
6428LIBS=$ac_func_search_save_LIBS
6429fi
6430echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6431echo "${ECHO_T}$ac_cv_search_opendir" >&6
6432if test "$ac_cv_search_opendir" != no; then
6433 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6434
6435fi
6436
6437else
6438 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6439echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6440if test "${ac_cv_search_opendir+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 ac_func_search_save_LIBS=$LIBS
6444ac_cv_search_opendir=no
6445cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h. */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h. */
6451
6452/* Override any gcc2 internal prototype to avoid an error. */
6453#ifdef __cplusplus
6454extern "C"
6455#endif
6456/* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */
6458char opendir ();
6459int
6460main ()
6461{
6462opendir ();
6463 ;
6464 return 0;
6465}
6466_ACEOF
6467rm -f conftest.$ac_objext conftest$ac_exeext
6468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469 (eval $ac_link) 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_c_werror_flag"
6477 || test ! -s conftest.err'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest$ac_exeext'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 ac_cv_search_opendir="none required"
6490else
6491 echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
6494fi
6495rm -f conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
6497if test "$ac_cv_search_opendir" = no; then
6498 for ac_lib in x; do
6499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6500 cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506
6507/* Override any gcc2 internal prototype to avoid an error. */
6508#ifdef __cplusplus
6509extern "C"
6510#endif
6511/* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6513char opendir ();
6514int
6515main ()
6516{
6517opendir ();
6518 ;
6519 return 0;
6520}
6521_ACEOF
6522rm -f conftest.$ac_objext conftest$ac_exeext
6523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524 (eval $ac_link) 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_c_werror_flag"
6532 || test ! -s conftest.err'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; } &&
6538 { ac_try='test -s conftest$ac_exeext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 ac_cv_search_opendir="-l$ac_lib"
6545break
6546else
6547 echo "$as_me: failed program was:" >&5
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550fi
6551rm -f conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6553 done
6554fi
6555LIBS=$ac_func_search_save_LIBS
6556fi
6557echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6558echo "${ECHO_T}$ac_cv_search_opendir" >&6
6559if test "$ac_cv_search_opendir" != no; then
6560 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6561
6562fi
6563
6564fi
6565
John Criswell7a73b802003-06-30 21:59:07 +00006566# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006577 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006578do
6579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6580echo "$as_me:$LINENO: checking for $ac_header" >&5
6581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6582if eval "test \"\${$as_ac_Header+set}\" = set"; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006586/* confdefs.h. */
6587_ACEOF
6588cat confdefs.h >>conftest.$ac_ext
6589cat >>conftest.$ac_ext <<_ACEOF
6590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006591$ac_includes_default
6592
6593#include <$ac_header>
6594_ACEOF
6595rm -f conftest.$ac_objext
6596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006597 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006598 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 eval "$as_ac_Header=yes"
6618else
6619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006620sed 's/^/| /' conftest.$ac_ext >&5
6621
John Criswell7a73b802003-06-30 21:59:07 +00006622eval "$as_ac_Header=no"
6623fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006625fi
6626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6628if test `eval echo '${'$as_ac_Header'}'` = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631_ACEOF
6632
6633fi
6634
6635done
6636
6637
6638
6639for ac_header in dlfcn.h
6640do
6641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006642if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6645if eval "test \"\${$as_ac_Header+set}\" = set"; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006647fi
6648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006650else
Brian Gaeke0a621332004-09-08 20:38:05 +00006651 # Is the header compilable?
6652echo "$as_me:$LINENO: checking $ac_header usability" >&5
6653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6654cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006660$ac_includes_default
6661#include <$ac_header>
6662_ACEOF
6663rm -f conftest.$ac_objext
6664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006665 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006666 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006672 { ac_try='test -z "$ac_c_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 (eval $ac_try) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006685 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006686else
6687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006688sed 's/^/| /' conftest.$ac_ext >&5
6689
Brian Gaeke0a621332004-09-08 20:38:05 +00006690ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006691fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6694echo "${ECHO_T}$ac_header_compiler" >&6
6695
6696# Is the header present?
6697echo "$as_me:$LINENO: checking $ac_header presence" >&5
6698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6699cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006700/* confdefs.h. */
6701_ACEOF
6702cat confdefs.h >>conftest.$ac_ext
6703cat >>conftest.$ac_ext <<_ACEOF
6704/* end confdefs.h. */
6705#include <$ac_header>
6706_ACEOF
6707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev/null; then
6715 if test -s conftest.err; then
6716 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006718 else
6719 ac_cpp_err=
6720 fi
6721else
6722 ac_cpp_err=yes
6723fi
6724if test -z "$ac_cpp_err"; then
6725 ac_header_preproc=yes
6726else
6727 echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_header_preproc=no
6731fi
6732rm -f conftest.err conftest.$ac_ext
6733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6734echo "${ECHO_T}$ac_header_preproc" >&6
6735
6736# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6738 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6743 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006744 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006745 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6753echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006758 (
6759 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006760## ----------------------------------- ##
6761## Report this to llvmbugs@cs.uiuc.edu ##
6762## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006763_ASBOX
6764 ) |
6765 sed "s/^/$as_me: WARNING: /" >&2
6766 ;;
6767esac
6768echo "$as_me:$LINENO: checking for $ac_header" >&5
6769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6770if eval "test \"\${$as_ac_Header+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006773 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006774fi
6775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006777
6778fi
John Criswell7a73b802003-06-30 21:59:07 +00006779if test `eval echo '${'$as_ac_Header'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6782_ACEOF
6783
6784fi
6785
6786done
6787
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006788# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6789if test "${enable_ltdl_install+set}" = set; then
6790 enableval="$enable_ltdl_install"
6791
6792fi;
6793
6794
6795
6796if test x"${enable_ltdl_install-no}" != xno; then
6797 INSTALL_LTDL_TRUE=
6798 INSTALL_LTDL_FALSE='#'
6799else
6800 INSTALL_LTDL_TRUE='#'
6801 INSTALL_LTDL_FALSE=
6802fi
6803
6804
6805
6806if test x"${enable_ltdl_convenience-no}" != xno; then
6807 CONVENIENCE_LTDL_TRUE=
6808 CONVENIENCE_LTDL_FALSE='#'
6809else
6810 CONVENIENCE_LTDL_TRUE='#'
6811 CONVENIENCE_LTDL_FALSE=
6812fi
6813
6814
6815echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6816echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6817library_names_spec=
6818libname_spec='lib$name'
6819soname_spec=
6820shrext_cmds=".so"
6821postinstall_cmds=
6822postuninstall_cmds=
6823finish_cmds=
6824finish_eval=
6825shlibpath_var=
6826shlibpath_overrides_runpath=unknown
6827version_type=none
6828dynamic_linker="$host_os ld.so"
6829sys_lib_dlsearch_path_spec="/lib /usr/lib"
6830if test "$GCC" = yes; then
6831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6832 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6833 # if the path contains ";" then we assume it to be the separator
6834 # otherwise default to the standard path separator (i.e. ":") - it is
6835 # assumed that no part of a normal pathname contains ";" but that should
6836 # okay in the real world where ";" in dirpaths is itself problematic.
6837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6838 else
6839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6840 fi
6841else
6842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6843fi
6844need_lib_prefix=unknown
6845hardcode_into_libs=no
6846
6847# when you set need_version to no, make sure it does not cause -set_version
6848# flags to be left without arguments
6849need_version=unknown
6850
6851case $host_os in
6852aix3*)
6853 version_type=linux
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6855 shlibpath_var=LIBPATH
6856
6857 # AIX 3 has no versioning support, so we append a major version to the name.
6858 soname_spec='${libname}${release}${shared_ext}$major'
6859 ;;
6860
6861aix4* | aix5*)
6862 version_type=linux
6863 need_lib_prefix=no
6864 need_version=no
6865 hardcode_into_libs=yes
6866 if test "$host_cpu" = ia64; then
6867 # AIX 5 supports IA64
6868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6869 shlibpath_var=LD_LIBRARY_PATH
6870 else
6871 # With GCC up to 2.95.x, collect2 would create an import file
6872 # for dependence libraries. The import file would start with
6873 # the line `#! .'. This would cause the generated library to
6874 # depend on `.', always an invalid library. This was fixed in
6875 # development snapshots of GCC prior to 3.0.
6876 case $host_os in
6877 aix4 | aix4.[01] | aix4.[01].*)
6878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6879 echo ' yes '
6880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6881 :
6882 else
6883 can_build_shared=no
6884 fi
6885 ;;
6886 esac
6887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6888 # soname into executable. Probably we can add versioning support to
6889 # collect2, so additional links can be useful in future.
6890 if test "$aix_use_runtimelinking" = yes; then
6891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6892 # instead of lib<name>.a to let people know that these are not
6893 # typical AIX shared libraries.
6894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6895 else
6896 # We preserve .a as extension for shared libraries through AIX4.2
6897 # and later when we are not doing run time linking.
6898 library_names_spec='${libname}${release}.a $libname.a'
6899 soname_spec='${libname}${release}${shared_ext}$major'
6900 fi
6901 shlibpath_var=LIBPATH
6902 fi
6903 ;;
6904
6905amigaos*)
6906 library_names_spec='$libname.ixlibrary $libname.a'
6907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6908 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'
6909 ;;
6910
6911beos*)
6912 library_names_spec='${libname}${shared_ext}'
6913 dynamic_linker="$host_os ld.so"
6914 shlibpath_var=LIBRARY_PATH
6915 ;;
6916
6917bsdi[45]*)
6918 version_type=linux
6919 need_version=no
6920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6921 soname_spec='${libname}${release}${shared_ext}$major'
6922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6923 shlibpath_var=LD_LIBRARY_PATH
6924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6926 # the default ld.so.conf also contains /usr/contrib/lib and
6927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6928 # libtool to hard-code these into programs
6929 ;;
6930
6931cygwin* | mingw* | pw32*)
6932 version_type=windows
6933 shrext_cmds=".dll"
6934 need_version=no
6935 need_lib_prefix=no
6936
6937 case $GCC,$host_os in
6938 yes,cygwin* | yes,mingw* | yes,pw32*)
6939 library_names_spec='$libname.dll.a'
6940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6941 postinstall_cmds='base_file=`basename \${file}`~
6942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6943 dldir=$destdir/`dirname \$dlpath`~
6944 test -d \$dldir || mkdir -p \$dldir~
6945 $install_prog $dir/$dlname \$dldir/$dlname'
6946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6947 dlpath=$dir/\$dldll~
6948 $rm \$dlpath'
6949 shlibpath_overrides_runpath=yes
6950
6951 case $host_os in
6952 cygwin*)
6953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6954 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6955 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6956 ;;
6957 mingw*)
6958 # MinGW DLLs use traditional 'lib' prefix
6959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6961 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6962 # It is most probably a Windows format PATH printed by
6963 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6964 # path with ; separators, and with drive letters. We can handle the
6965 # drive letters (cygwin fileutils understands them), so leave them,
6966 # especially as we might pass files found there to a mingw objdump,
6967 # which wouldn't understand a cygwinified path. Ahh.
6968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6969 else
6970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6971 fi
6972 ;;
6973 pw32*)
6974 # pw32 DLLs use 'pw' prefix rather than 'lib'
6975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6976 ;;
6977 esac
6978 ;;
6979
6980 *)
6981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6982 ;;
6983 esac
6984 dynamic_linker='Win32 ld.exe'
6985 # FIXME: first we should search . and the directory the executable is in
6986 shlibpath_var=PATH
6987 ;;
6988
6989darwin* | rhapsody*)
6990 dynamic_linker="$host_os dyld"
6991 version_type=darwin
6992 need_lib_prefix=no
6993 need_version=no
6994 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6995 soname_spec='${libname}${release}${major}$shared_ext'
6996 shlibpath_overrides_runpath=yes
6997 shlibpath_var=DYLD_LIBRARY_PATH
6998 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6999 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7000 if test "$GCC" = yes; then
7001 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"`
7002 else
7003 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7004 fi
7005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7006 ;;
7007
7008dgux*)
7009 version_type=linux
7010 need_lib_prefix=no
7011 need_version=no
7012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7013 soname_spec='${libname}${release}${shared_ext}$major'
7014 shlibpath_var=LD_LIBRARY_PATH
7015 ;;
7016
7017freebsd1*)
7018 dynamic_linker=no
7019 ;;
7020
7021kfreebsd*-gnu)
7022 version_type=linux
7023 need_lib_prefix=no
7024 need_version=no
7025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7026 soname_spec='${libname}${release}${shared_ext}$major'
7027 shlibpath_var=LD_LIBRARY_PATH
7028 shlibpath_overrides_runpath=no
7029 hardcode_into_libs=yes
7030 dynamic_linker='GNU ld.so'
7031 ;;
7032
7033freebsd*)
7034 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7035 version_type=freebsd-$objformat
7036 case $version_type in
7037 freebsd-elf*)
7038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7039 need_version=no
7040 need_lib_prefix=no
7041 ;;
7042 freebsd-*)
7043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7044 need_version=yes
7045 ;;
7046 esac
7047 shlibpath_var=LD_LIBRARY_PATH
7048 case $host_os in
7049 freebsd2*)
7050 shlibpath_overrides_runpath=yes
7051 ;;
7052 freebsd3.01* | freebsdelf3.01*)
7053 shlibpath_overrides_runpath=yes
7054 hardcode_into_libs=yes
7055 ;;
7056 *) # from 3.2 on
7057 shlibpath_overrides_runpath=no
7058 hardcode_into_libs=yes
7059 ;;
7060 esac
7061 ;;
7062
7063gnu*)
7064 version_type=linux
7065 need_lib_prefix=no
7066 need_version=no
7067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7068 soname_spec='${libname}${release}${shared_ext}$major'
7069 shlibpath_var=LD_LIBRARY_PATH
7070 hardcode_into_libs=yes
7071 ;;
7072
7073hpux9* | hpux10* | hpux11*)
7074 # Give a soname corresponding to the major version so that dld.sl refuses to
7075 # link against other versions.
7076 version_type=sunos
7077 need_lib_prefix=no
7078 need_version=no
7079 case "$host_cpu" in
7080 ia64*)
7081 shrext_cmds='.so'
7082 hardcode_into_libs=yes
7083 dynamic_linker="$host_os dld.so"
7084 shlibpath_var=LD_LIBRARY_PATH
7085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7087 soname_spec='${libname}${release}${shared_ext}$major'
7088 if test "X$HPUX_IA64_MODE" = X32; then
7089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7090 else
7091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7092 fi
7093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7094 ;;
7095 hppa*64*)
7096 shrext_cmds='.sl'
7097 hardcode_into_libs=yes
7098 dynamic_linker="$host_os dld.sl"
7099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7102 soname_spec='${libname}${release}${shared_ext}$major'
7103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7105 ;;
7106 *)
7107 shrext_cmds='.sl'
7108 dynamic_linker="$host_os dld.sl"
7109 shlibpath_var=SHLIB_PATH
7110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7112 soname_spec='${libname}${release}${shared_ext}$major'
7113 ;;
7114 esac
7115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7116 postinstall_cmds='chmod 555 $lib'
7117 ;;
7118
7119irix5* | irix6* | nonstopux*)
7120 case $host_os in
7121 nonstopux*) version_type=nonstopux ;;
7122 *)
7123 if test "$lt_cv_prog_gnu_ld" = yes; then
7124 version_type=linux
7125 else
7126 version_type=irix
7127 fi ;;
7128 esac
7129 need_lib_prefix=no
7130 need_version=no
7131 soname_spec='${libname}${release}${shared_ext}$major'
7132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7133 case $host_os in
7134 irix5* | nonstopux*)
7135 libsuff= shlibsuff=
7136 ;;
7137 *)
7138 case $LD in # libtool.m4 will add one of these switches to LD
7139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7140 libsuff= shlibsuff= libmagic=32-bit;;
7141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7142 libsuff=32 shlibsuff=N32 libmagic=N32;;
7143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7145 *) libsuff= shlibsuff= libmagic=never-match;;
7146 esac
7147 ;;
7148 esac
7149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7150 shlibpath_overrides_runpath=no
7151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7153 hardcode_into_libs=yes
7154 ;;
7155
7156# No shared lib support for Linux oldld, aout, or coff.
7157linux*oldld* | linux*aout* | linux*coff*)
7158 dynamic_linker=no
7159 ;;
7160
7161# This must be Linux ELF.
7162linux*)
7163 version_type=linux
7164 need_lib_prefix=no
7165 need_version=no
7166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7167 soname_spec='${libname}${release}${shared_ext}$major'
7168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7169 shlibpath_var=LD_LIBRARY_PATH
7170 shlibpath_overrides_runpath=no
7171 # This implies no fast_install, which is unacceptable.
7172 # Some rework will be needed to allow for fast_install
7173 # before this can be enabled.
7174 hardcode_into_libs=yes
7175
7176 # Append ld.so.conf contents to the search path
7177 if test -f /etc/ld.so.conf; then
7178 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7180 fi
7181
7182 # We used to test for /lib/ld.so.1 and disable shared libraries on
7183 # powerpc, because MkLinux only supported shared libraries with the
7184 # GNU dynamic linker. Since this was broken with cross compilers,
7185 # most powerpc-linux boxes support dynamic linking these days and
7186 # people can always --disable-shared, the test was removed, and we
7187 # assume the GNU/Linux dynamic linker is in use.
7188 dynamic_linker='GNU/Linux ld.so'
7189 ;;
7190
7191knetbsd*-gnu)
7192 version_type=linux
7193 need_lib_prefix=no
7194 need_version=no
7195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7196 soname_spec='${libname}${release}${shared_ext}$major'
7197 shlibpath_var=LD_LIBRARY_PATH
7198 shlibpath_overrides_runpath=no
7199 hardcode_into_libs=yes
7200 dynamic_linker='GNU ld.so'
7201 ;;
7202
7203netbsd*)
7204 version_type=sunos
7205 need_lib_prefix=no
7206 need_version=no
7207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7210 dynamic_linker='NetBSD (a.out) ld.so'
7211 else
7212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7213 soname_spec='${libname}${release}${shared_ext}$major'
7214 dynamic_linker='NetBSD ld.elf_so'
7215 fi
7216 shlibpath_var=LD_LIBRARY_PATH
7217 shlibpath_overrides_runpath=yes
7218 hardcode_into_libs=yes
7219 ;;
7220
7221newsos6)
7222 version_type=linux
7223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7224 shlibpath_var=LD_LIBRARY_PATH
7225 shlibpath_overrides_runpath=yes
7226 ;;
7227
7228nto-qnx*)
7229 version_type=linux
7230 need_lib_prefix=no
7231 need_version=no
7232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7233 soname_spec='${libname}${release}${shared_ext}$major'
7234 shlibpath_var=LD_LIBRARY_PATH
7235 shlibpath_overrides_runpath=yes
7236 ;;
7237
7238openbsd*)
7239 version_type=sunos
7240 need_lib_prefix=no
7241 need_version=no
7242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7244 shlibpath_var=LD_LIBRARY_PATH
7245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7246 case $host_os in
7247 openbsd2.[89] | openbsd2.[89].*)
7248 shlibpath_overrides_runpath=no
7249 ;;
7250 *)
7251 shlibpath_overrides_runpath=yes
7252 ;;
7253 esac
7254 else
7255 shlibpath_overrides_runpath=yes
7256 fi
7257 ;;
7258
7259os2*)
7260 libname_spec='$name'
7261 shrext_cmds=".dll"
7262 need_lib_prefix=no
7263 library_names_spec='$libname${shared_ext} $libname.a'
7264 dynamic_linker='OS/2 ld.exe'
7265 shlibpath_var=LIBPATH
7266 ;;
7267
7268osf3* | osf4* | osf5*)
7269 version_type=osf
7270 need_lib_prefix=no
7271 need_version=no
7272 soname_spec='${libname}${release}${shared_ext}$major'
7273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7274 shlibpath_var=LD_LIBRARY_PATH
7275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7277 ;;
7278
7279sco3.2v5*)
7280 version_type=osf
7281 soname_spec='${libname}${release}${shared_ext}$major'
7282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7283 shlibpath_var=LD_LIBRARY_PATH
7284 ;;
7285
7286solaris*)
7287 version_type=linux
7288 need_lib_prefix=no
7289 need_version=no
7290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7291 soname_spec='${libname}${release}${shared_ext}$major'
7292 shlibpath_var=LD_LIBRARY_PATH
7293 shlibpath_overrides_runpath=yes
7294 hardcode_into_libs=yes
7295 # ldd complains unless libraries are executable
7296 postinstall_cmds='chmod +x $lib'
7297 ;;
7298
7299sunos4*)
7300 version_type=sunos
7301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7303 shlibpath_var=LD_LIBRARY_PATH
7304 shlibpath_overrides_runpath=yes
7305 if test "$with_gnu_ld" = yes; then
7306 need_lib_prefix=no
7307 fi
7308 need_version=yes
7309 ;;
7310
7311sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7312 version_type=linux
7313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7314 soname_spec='${libname}${release}${shared_ext}$major'
7315 shlibpath_var=LD_LIBRARY_PATH
7316 case $host_vendor in
7317 sni)
7318 shlibpath_overrides_runpath=no
7319 need_lib_prefix=no
7320 export_dynamic_flag_spec='${wl}-Blargedynsym'
7321 runpath_var=LD_RUN_PATH
7322 ;;
7323 siemens)
7324 need_lib_prefix=no
7325 ;;
7326 motorola)
7327 need_lib_prefix=no
7328 need_version=no
7329 shlibpath_overrides_runpath=no
7330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7331 ;;
7332 esac
7333 ;;
7334
7335sysv4*MP*)
7336 if test -d /usr/nec ;then
7337 version_type=linux
7338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7339 soname_spec='$libname${shared_ext}.$major'
7340 shlibpath_var=LD_LIBRARY_PATH
7341 fi
7342 ;;
7343
7344uts4*)
7345 version_type=linux
7346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7347 soname_spec='${libname}${release}${shared_ext}$major'
7348 shlibpath_var=LD_LIBRARY_PATH
7349 ;;
7350
7351*)
7352 dynamic_linker=no
7353 ;;
7354esac
7355echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7356echo "${ECHO_T}$dynamic_linker" >&6
7357test "$dynamic_linker" = no && can_build_shared=no
7358
7359
7360echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7361echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7362if test "${libltdl_cv_shlibext+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365
7366module=yes
7367eval libltdl_cv_shlibext=$shrext_cmds
7368
7369fi
7370echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7371echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7372if test -n "$libltdl_cv_shlibext"; then
7373
7374cat >>confdefs.h <<_ACEOF
7375#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7376_ACEOF
7377
7378fi
7379
7380
7381echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7382echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7383if test "${libltdl_cv_shlibpath_var+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 libltdl_cv_shlibpath_var="$shlibpath_var"
7387fi
7388echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7389echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7390if test -n "$libltdl_cv_shlibpath_var"; then
7391
7392cat >>confdefs.h <<_ACEOF
7393#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7394_ACEOF
7395
7396fi
7397
7398
7399echo "$as_me:$LINENO: checking for the default library search path" >&5
7400echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7401if test "${libltdl_cv_sys_search_path+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7405fi
7406echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7407echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7408if test -n "$libltdl_cv_sys_search_path"; then
7409 sys_search_path=
7410 for dir in $libltdl_cv_sys_search_path; do
7411 if test -z "$sys_search_path"; then
7412 sys_search_path="$dir"
7413 else
7414 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7415 fi
7416 done
7417
7418cat >>confdefs.h <<_ACEOF
7419#define LTDL_SYSSEARCHPATH "$sys_search_path"
7420_ACEOF
7421
7422fi
7423
7424echo "$as_me:$LINENO: checking for objdir" >&5
7425echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7426if test "${libltdl_cv_objdir+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429 libltdl_cv_objdir="$objdir"
7430 if test -n "$objdir"; then
7431 :
7432 else
7433 rm -f .libs 2>/dev/null
7434 mkdir .libs 2>/dev/null
7435 if test -d .libs; then
7436 libltdl_cv_objdir=.libs
7437 else
7438 # MS-DOS does not allow filenames that begin with a dot.
7439 libltdl_cv_objdir=_libs
7440 fi
7441 rmdir .libs 2>/dev/null
7442 fi
7443
7444fi
7445echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7446echo "${ECHO_T}$libltdl_cv_objdir" >&6
7447
7448cat >>confdefs.h <<_ACEOF
7449#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7450_ACEOF
7451
7452
7453echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7454echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7455if test "${lt_cv_path_NM+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458 if test -n "$NM"; then
7459 # Let the user override the test.
7460 lt_cv_path_NM="$NM"
7461else
7462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7463 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7464 IFS="$lt_save_ifs"
7465 test -z "$ac_dir" && ac_dir=.
7466 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7468 # Check to see if the nm accepts a BSD-compat flag.
7469 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7470 # nm: unknown option "B" ignored
7471 # Tru64's nm complains that /dev/null is an invalid object file
7472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7473 */dev/null* | *'Invalid file or object type'*)
7474 lt_cv_path_NM="$tmp_nm -B"
7475 break
7476 ;;
7477 *)
7478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7479 */dev/null*)
7480 lt_cv_path_NM="$tmp_nm -p"
7481 break
7482 ;;
7483 *)
7484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7485 continue # so that we can try to find one that supports BSD flags
7486 ;;
7487 esac
7488 esac
7489 fi
7490 done
7491 IFS="$lt_save_ifs"
7492 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7493fi
7494fi
7495echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7496echo "${ECHO_T}$lt_cv_path_NM" >&6
7497NM="$lt_cv_path_NM"
7498
7499
7500
7501
7502
7503# Check for command to grab the raw symbol name followed by C symbol from nm.
7504echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7505echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7506if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509
7510# These are sane defaults that work on at least a few old systems.
7511# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7512
7513# Character class describing NM global symbol codes.
7514symcode='[BCDEGRST]'
7515
7516# Regexp to match symbols that can be accessed directly from C.
7517sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7518
7519# Transform the above into a raw symbol and a C symbol.
7520symxfrm='\1 \2\3 \3'
7521
7522# Transform an extracted symbol line into a proper C declaration
7523lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7524
7525# Transform an extracted symbol line into symbol name and symbol address
7526lt_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'"
7527
7528# Define system-specific variables.
7529case $host_os in
7530aix*)
7531 symcode='[BCDT]'
7532 ;;
7533cygwin* | mingw* | pw32*)
7534 symcode='[ABCDGISTW]'
7535 ;;
7536hpux*) # Its linker distinguishes data from code symbols
7537 if test "$host_cpu" = ia64; then
7538 symcode='[ABCDEGRST]'
7539 fi
7540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7541 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'"
7542 ;;
7543linux*)
7544 if test "$host_cpu" = ia64; then
7545 symcode='[ABCDGIRSTW]'
7546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7547 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'"
7548 fi
7549 ;;
7550irix* | nonstopux*)
7551 symcode='[BCDEGRST]'
7552 ;;
7553osf*)
7554 symcode='[BCDEGQRST]'
7555 ;;
7556solaris* | sysv5*)
7557 symcode='[BDRT]'
7558 ;;
7559sysv4)
7560 symcode='[DFNSTU]'
7561 ;;
7562esac
7563
7564# Handle CRLF in mingw tool chain
7565opt_cr=
7566case $build_os in
7567mingw*)
7568 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7569 ;;
7570esac
7571
7572# If we're using GNU nm, then use its standard symbol codes.
7573case `$NM -V 2>&1` in
7574*GNU* | *'with BFD'*)
7575 symcode='[ABCDGIRSTW]' ;;
7576esac
7577
7578# Try without a prefix undercore, then with it.
7579for ac_symprfx in "" "_"; do
7580
7581 # Write the raw and C identifiers.
7582 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7583
7584 # Check to see that the pipe works correctly.
7585 pipe_works=no
7586
7587 rm -f conftest*
7588 cat > conftest.$ac_ext <<EOF
7589#ifdef __cplusplus
7590extern "C" {
7591#endif
7592char nm_test_var;
7593void nm_test_func(){}
7594#ifdef __cplusplus
7595}
7596#endif
7597int main(){nm_test_var='a';nm_test_func();return(0);}
7598EOF
7599
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; then
7605 # Now try to grab the symbols.
7606 nlist=conftest.nm
7607 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7608 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && test -s "$nlist"; then
7612 # Try sorting and uniquifying the output.
7613 if sort "$nlist" | uniq > "$nlist"T; then
7614 mv -f "$nlist"T "$nlist"
7615 else
7616 rm -f "$nlist"T
7617 fi
7618
7619 # Make sure that we snagged all the symbols we need.
7620 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7621 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7622 cat <<EOF > conftest.$ac_ext
7623#ifdef __cplusplus
7624extern "C" {
7625#endif
7626
7627EOF
7628 # Now generate the symbol file.
7629 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7630
7631 cat <<EOF >> conftest.$ac_ext
7632#if defined (__STDC__) && __STDC__
7633# define lt_ptr_t void *
7634#else
7635# define lt_ptr_t char *
7636# define const
7637#endif
7638
7639/* The mapping between symbol names and symbols. */
7640const struct {
7641 const char *name;
7642 lt_ptr_t address;
7643}
7644lt_preloaded_symbols[] =
7645{
7646EOF
7647 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7648 cat <<\EOF >> conftest.$ac_ext
7649 {0, (lt_ptr_t) 0}
7650};
7651
7652#ifdef __cplusplus
7653}
7654#endif
7655EOF
7656 # Now try linking the two files.
7657 mv conftest.$ac_objext conftstm.$ac_objext
7658 lt_save_LIBS="$LIBS"
7659 lt_save_CFLAGS="$CFLAGS"
7660 LIBS="conftstm.$ac_objext"
7661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7667 pipe_works=yes
7668 fi
7669 LIBS="$lt_save_LIBS"
7670 CFLAGS="$lt_save_CFLAGS"
7671 else
7672 echo "cannot find nm_test_func in $nlist" >&5
7673 fi
7674 else
7675 echo "cannot find nm_test_var in $nlist" >&5
7676 fi
7677 else
7678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7679 fi
7680 else
7681 echo "$progname: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 fi
7684 rm -f conftest* conftst*
7685
7686 # Do not use the global_symbol_pipe unless it works.
7687 if test "$pipe_works" = yes; then
7688 break
7689 else
7690 lt_cv_sys_global_symbol_pipe=
7691 fi
7692done
7693
7694fi
7695
7696if test -z "$lt_cv_sys_global_symbol_pipe"; then
7697 lt_cv_sys_global_symbol_to_cdecl=
7698fi
7699if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7700 echo "$as_me:$LINENO: result: failed" >&5
7701echo "${ECHO_T}failed" >&6
7702else
7703 echo "$as_me:$LINENO: result: ok" >&5
7704echo "${ECHO_T}ok" >&6
7705fi
7706
7707
7708echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7709echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7710if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7714 libltdl_cv_preloaded_symbols=yes
7715 else
7716 libltdl_cv_preloaded_symbols=no
7717 fi
7718
7719fi
7720echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7721echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7722if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7723
7724cat >>confdefs.h <<\_ACEOF
7725#define HAVE_PRELOADED_SYMBOLS 1
7726_ACEOF
7727
7728fi
7729
7730LIBADD_DL=
7731
7732ac_ext=c
7733ac_cpp='$CPP $CPPFLAGS'
7734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7736ac_compiler_gnu=$ac_cv_c_compiler_gnu
7737
7738
7739echo "$as_me:$LINENO: checking for shl_load" >&5
7740echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7741if test "${ac_cv_func_shl_load+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744 cat >conftest.$ac_ext <<_ACEOF
7745/* confdefs.h. */
7746_ACEOF
7747cat confdefs.h >>conftest.$ac_ext
7748cat >>conftest.$ac_ext <<_ACEOF
7749/* end confdefs.h. */
7750/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7752#define shl_load innocuous_shl_load
7753
7754/* System header to define __stub macros and hopefully few prototypes,
7755 which can conflict with char shl_load (); below.
7756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757 <limits.h> exists even on freestanding compilers. */
7758
7759#ifdef __STDC__
7760# include <limits.h>
7761#else
7762# include <assert.h>
7763#endif
7764
7765#undef shl_load
7766
7767/* Override any gcc2 internal prototype to avoid an error. */
7768#ifdef __cplusplus
7769extern "C"
7770{
7771#endif
7772/* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7774char shl_load ();
7775/* The GNU C library defines this for functions which it implements
7776 to always fail with ENOSYS. Some functions are actually named
7777 something starting with __ and the normal name is an alias. */
7778#if defined (__stub_shl_load) || defined (__stub___shl_load)
7779choke me
7780#else
7781char (*f) () = shl_load;
7782#endif
7783#ifdef __cplusplus
7784}
7785#endif
7786
7787int
7788main ()
7789{
7790return f != shl_load;
7791 ;
7792 return 0;
7793}
7794_ACEOF
7795rm -f conftest.$ac_objext conftest$ac_exeext
7796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7797 (eval $ac_link) 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } &&
7804 { ac_try='test -z "$ac_c_werror_flag"
7805 || test ! -s conftest.err'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; } &&
7811 { ac_try='test -s conftest$ac_exeext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 (eval $ac_try) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7817 ac_cv_func_shl_load=yes
7818else
7819 echo "$as_me: failed program was:" >&5
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
7822ac_cv_func_shl_load=no
7823fi
7824rm -f conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7826fi
7827echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7828echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7829if test $ac_cv_func_shl_load = yes; then
7830
7831cat >>confdefs.h <<\_ACEOF
7832#define HAVE_SHL_LOAD 1
7833_ACEOF
7834
7835else
7836 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7837echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7838if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840else
7841 ac_check_lib_save_LIBS=$LIBS
7842LIBS="-ldld $LIBS"
7843cat >conftest.$ac_ext <<_ACEOF
7844/* confdefs.h. */
7845_ACEOF
7846cat confdefs.h >>conftest.$ac_ext
7847cat >>conftest.$ac_ext <<_ACEOF
7848/* end confdefs.h. */
7849
7850/* Override any gcc2 internal prototype to avoid an error. */
7851#ifdef __cplusplus
7852extern "C"
7853#endif
7854/* We use char because int might match the return type of a gcc2
7855 builtin and then its argument prototype would still apply. */
7856char shl_load ();
7857int
7858main ()
7859{
7860shl_load ();
7861 ;
7862 return 0;
7863}
7864_ACEOF
7865rm -f conftest.$ac_objext conftest$ac_exeext
7866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag"
7875 || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_lib_dld_shl_load=yes
7888else
7889 echo "$as_me: failed program was:" >&5
7890sed 's/^/| /' conftest.$ac_ext >&5
7891
7892ac_cv_lib_dld_shl_load=no
7893fi
7894rm -f conftest.err conftest.$ac_objext \
7895 conftest$ac_exeext conftest.$ac_ext
7896LIBS=$ac_check_lib_save_LIBS
7897fi
7898echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7899echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7900if test $ac_cv_lib_dld_shl_load = yes; then
7901
7902cat >>confdefs.h <<\_ACEOF
7903#define HAVE_SHL_LOAD 1
7904_ACEOF
7905
7906 LIBADD_DL="$LIBADD_DL -ldld"
7907else
7908 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7909echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7910if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 ac_check_lib_save_LIBS=$LIBS
7914LIBS="-ldl $LIBS"
7915cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h. */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h. */
7921
7922/* Override any gcc2 internal prototype to avoid an error. */
7923#ifdef __cplusplus
7924extern "C"
7925#endif
7926/* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7928char dlopen ();
7929int
7930main ()
7931{
7932dlopen ();
7933 ;
7934 return 0;
7935}
7936_ACEOF
7937rm -f conftest.$ac_objext conftest$ac_exeext
7938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_cv_lib_dl_dlopen=yes
7960else
7961 echo "$as_me: failed program was:" >&5
7962sed 's/^/| /' conftest.$ac_ext >&5
7963
7964ac_cv_lib_dl_dlopen=no
7965fi
7966rm -f conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968LIBS=$ac_check_lib_save_LIBS
7969fi
7970echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7971echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7972if test $ac_cv_lib_dl_dlopen = yes; then
7973
7974cat >>confdefs.h <<\_ACEOF
7975#define HAVE_LIBDL 1
7976_ACEOF
7977
7978 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7979else
7980 cat >conftest.$ac_ext <<_ACEOF
7981/* confdefs.h. */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
7985/* end confdefs.h. */
7986#if HAVE_DLFCN_H
7987# include <dlfcn.h>
7988#endif
7989
7990int
7991main ()
7992{
7993dlopen(0, 0);
7994 ;
7995 return 0;
7996}
7997_ACEOF
7998rm -f conftest.$ac_objext conftest$ac_exeext
7999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000 (eval $ac_link) 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020
8021cat >>confdefs.h <<\_ACEOF
8022#define HAVE_LIBDL 1
8023_ACEOF
8024 libltdl_cv_func_dlopen="yes"
8025else
8026 echo "$as_me: failed program was:" >&5
8027sed 's/^/| /' conftest.$ac_ext >&5
8028
8029echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8030echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8031if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8033else
8034 ac_check_lib_save_LIBS=$LIBS
8035LIBS="-lsvld $LIBS"
8036cat >conftest.$ac_ext <<_ACEOF
8037/* confdefs.h. */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h. */
8042
8043/* Override any gcc2 internal prototype to avoid an error. */
8044#ifdef __cplusplus
8045extern "C"
8046#endif
8047/* We use char because int might match the return type of a gcc2
8048 builtin and then its argument prototype would still apply. */
8049char dlopen ();
8050int
8051main ()
8052{
8053dlopen ();
8054 ;
8055 return 0;
8056}
8057_ACEOF
8058rm -f conftest.$ac_objext conftest$ac_exeext
8059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -z "$ac_c_werror_flag"
8068 || test ! -s conftest.err'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; } &&
8074 { ac_try='test -s conftest$ac_exeext'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then
8080 ac_cv_lib_svld_dlopen=yes
8081else
8082 echo "$as_me: failed program was:" >&5
8083sed 's/^/| /' conftest.$ac_ext >&5
8084
8085ac_cv_lib_svld_dlopen=no
8086fi
8087rm -f conftest.err conftest.$ac_objext \
8088 conftest$ac_exeext conftest.$ac_ext
8089LIBS=$ac_check_lib_save_LIBS
8090fi
8091echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8093if test $ac_cv_lib_svld_dlopen = yes; then
8094
8095cat >>confdefs.h <<\_ACEOF
8096#define HAVE_LIBDL 1
8097_ACEOF
8098
8099 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8100else
8101 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8102echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8103if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 ac_check_lib_save_LIBS=$LIBS
8107LIBS="-ldld $LIBS"
8108cat >conftest.$ac_ext <<_ACEOF
8109/* confdefs.h. */
8110_ACEOF
8111cat confdefs.h >>conftest.$ac_ext
8112cat >>conftest.$ac_ext <<_ACEOF
8113/* end confdefs.h. */
8114
8115/* Override any gcc2 internal prototype to avoid an error. */
8116#ifdef __cplusplus
8117extern "C"
8118#endif
8119/* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8121char dld_link ();
8122int
8123main ()
8124{
8125dld_link ();
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext conftest$ac_exeext
8131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132 (eval $ac_link) 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest$ac_exeext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_lib_dld_dld_link=yes
8153else
8154 echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
8157ac_cv_lib_dld_dld_link=no
8158fi
8159rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161LIBS=$ac_check_lib_save_LIBS
8162fi
8163echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8164echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8165if test $ac_cv_lib_dld_dld_link = yes; then
8166
8167cat >>confdefs.h <<\_ACEOF
8168#define HAVE_DLD 1
8169_ACEOF
8170
8171 LIBADD_DL="$LIBADD_DL -ldld"
8172else
8173 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8174echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8175if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177else
8178 cat >conftest.$ac_ext <<_ACEOF
8179/* confdefs.h. */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
8183/* end confdefs.h. */
8184/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8186#define _dyld_func_lookup innocuous__dyld_func_lookup
8187
8188/* System header to define __stub macros and hopefully few prototypes,
8189 which can conflict with char _dyld_func_lookup (); below.
8190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8191 <limits.h> exists even on freestanding compilers. */
8192
8193#ifdef __STDC__
8194# include <limits.h>
8195#else
8196# include <assert.h>
8197#endif
8198
8199#undef _dyld_func_lookup
8200
8201/* Override any gcc2 internal prototype to avoid an error. */
8202#ifdef __cplusplus
8203extern "C"
8204{
8205#endif
8206/* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8208char _dyld_func_lookup ();
8209/* The GNU C library defines this for functions which it implements
8210 to always fail with ENOSYS. Some functions are actually named
8211 something starting with __ and the normal name is an alias. */
8212#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8213choke me
8214#else
8215char (*f) () = _dyld_func_lookup;
8216#endif
8217#ifdef __cplusplus
8218}
8219#endif
8220
8221int
8222main ()
8223{
8224return f != _dyld_func_lookup;
8225 ;
8226 return 0;
8227}
8228_ACEOF
8229rm -f conftest.$ac_objext conftest$ac_exeext
8230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231 (eval $ac_link) 2>conftest.er1
8232 ac_status=$?
8233 grep -v '^ *+' conftest.er1 >conftest.err
8234 rm -f conftest.er1
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -z "$ac_c_werror_flag"
8239 || test ! -s conftest.err'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; } &&
8245 { ac_try='test -s conftest$ac_exeext'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 (eval $ac_try) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 ac_cv_func__dyld_func_lookup=yes
8252else
8253 echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256ac_cv_func__dyld_func_lookup=no
8257fi
8258rm -f conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260fi
8261echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8262echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8263if test $ac_cv_func__dyld_func_lookup = yes; then
8264
8265cat >>confdefs.h <<\_ACEOF
8266#define HAVE_DYLD 1
8267_ACEOF
8268
8269fi
8270
8271
8272fi
8273
8274
8275fi
8276
8277
8278fi
8279rm -f conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8281
8282fi
8283
8284
8285fi
8286
8287
8288fi
8289
8290
8291if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8292then
8293 lt_save_LIBS="$LIBS"
8294 LIBS="$LIBS $LIBADD_DL"
8295
8296for ac_func in dlerror
8297do
8298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8299echo "$as_me:$LINENO: checking for $ac_func" >&5
8300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8301if eval "test \"\${$as_ac_var+set}\" = set"; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8312#define $ac_func innocuous_$ac_func
8313
8314/* System header to define __stub macros and hopefully few prototypes,
8315 which can conflict with char $ac_func (); below.
8316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8317 <limits.h> exists even on freestanding compilers. */
8318
8319#ifdef __STDC__
8320# include <limits.h>
8321#else
8322# include <assert.h>
8323#endif
8324
8325#undef $ac_func
8326
8327/* Override any gcc2 internal prototype to avoid an error. */
8328#ifdef __cplusplus
8329extern "C"
8330{
8331#endif
8332/* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8334char $ac_func ();
8335/* The GNU C library defines this for functions which it implements
8336 to always fail with ENOSYS. Some functions are actually named
8337 something starting with __ and the normal name is an alias. */
8338#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8339choke me
8340#else
8341char (*f) () = $ac_func;
8342#endif
8343#ifdef __cplusplus
8344}
8345#endif
8346
8347int
8348main ()
8349{
8350return f != $ac_func;
8351 ;
8352 return 0;
8353}
8354_ACEOF
8355rm -f conftest.$ac_objext conftest$ac_exeext
8356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag"
8365 || test ! -s conftest.err'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 (eval $ac_try) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 eval "$as_ac_var=yes"
8378else
8379 echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382eval "$as_ac_var=no"
8383fi
8384rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386fi
8387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8389if test `eval echo '${'$as_ac_var'}'` = yes; then
8390 cat >>confdefs.h <<_ACEOF
8391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8392_ACEOF
8393
8394fi
8395done
8396
8397 LIBS="$lt_save_LIBS"
8398fi
8399ac_ext=c
8400ac_cpp='$CPP $CPPFLAGS'
8401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8403ac_compiler_gnu=$ac_cv_c_compiler_gnu
8404
8405
8406
8407echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8408echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8409if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 ac_cv_sys_symbol_underscore=no
8413 cat > conftest.$ac_ext <<EOF
8414void nm_test_func(){}
8415int main(){nm_test_func;return 0;}
8416EOF
8417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418 (eval $ac_compile) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; then
8422 # Now try to grab the symbols.
8423 ac_nlist=conftest.nm
8424 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8425 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && test -s "$ac_nlist"; then
8429 # See whether the symbols have a leading underscore.
8430 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8431 ac_cv_sys_symbol_underscore=yes
8432 else
8433 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8434 :
8435 else
8436 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8437 fi
8438 fi
8439 else
8440 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8441 fi
8442 else
8443 echo "configure: failed program was:" >&5
8444 cat conftest.c >&5
8445 fi
8446 rm -rf conftest*
8447
8448fi
8449echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8450echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8451
8452
8453if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8454 if test x"$libltdl_cv_func_dlopen" = xyes ||
8455 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8456 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8457echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8458if test "${libltdl_cv_need_uscore+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
8461 libltdl_cv_need_uscore=unknown
8462 save_LIBS="$LIBS"
8463 LIBS="$LIBS $LIBADD_DL"
8464 if test "$cross_compiling" = yes; then :
8465 libltdl_cv_need_uscore=cross
8466else
8467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8468 lt_status=$lt_dlunknown
8469 cat > conftest.$ac_ext <<EOF
Reid Spencer54d14482006-04-07 16:01:51 +00008470#line 8470 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008471#include "confdefs.h"
8472
8473#if HAVE_DLFCN_H
8474#include <dlfcn.h>
8475#endif
8476
8477#include <stdio.h>
8478
8479#ifdef RTLD_GLOBAL
8480# define LT_DLGLOBAL RTLD_GLOBAL
8481#else
8482# ifdef DL_GLOBAL
8483# define LT_DLGLOBAL DL_GLOBAL
8484# else
8485# define LT_DLGLOBAL 0
8486# endif
8487#endif
8488
8489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8490 find out it does not work in some platform. */
8491#ifndef LT_DLLAZY_OR_NOW
8492# ifdef RTLD_LAZY
8493# define LT_DLLAZY_OR_NOW RTLD_LAZY
8494# else
8495# ifdef DL_LAZY
8496# define LT_DLLAZY_OR_NOW DL_LAZY
8497# else
8498# ifdef RTLD_NOW
8499# define LT_DLLAZY_OR_NOW RTLD_NOW
8500# else
8501# ifdef DL_NOW
8502# define LT_DLLAZY_OR_NOW DL_NOW
8503# else
8504# define LT_DLLAZY_OR_NOW 0
8505# endif
8506# endif
8507# endif
8508# endif
8509#endif
8510
8511#ifdef __cplusplus
8512extern "C" void exit (int);
8513#endif
8514
8515void fnord() { int i=42;}
8516int main ()
8517{
8518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8519 int status = $lt_dlunknown;
8520
8521 if (self)
8522 {
8523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8525 /* dlclose (self); */
8526 }
8527
8528 exit (status);
8529}
8530EOF
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8536 (./conftest; exit; ) 2>/dev/null
8537 lt_status=$?
8538 case x$lt_status in
8539 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8540 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8541 x$lt_unknown|x*) ;;
8542 esac
8543 else :
8544 # compilation failed
8545
8546 fi
8547fi
8548rm -fr conftest*
8549
8550 LIBS="$save_LIBS"
8551
8552fi
8553echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8554echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8555 fi
8556fi
8557
8558if test x"$libltdl_cv_need_uscore" = xyes; then
8559
8560cat >>confdefs.h <<\_ACEOF
8561#define NEED_USCORE 1
8562_ACEOF
8563
8564fi
8565
8566
8567echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8568echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8569if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571else
8572 # PORTME does your system automatically load deplibs for dlopen?
8573 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8574 # For now, we just catch OSes we know something about -- in the
8575 # future, we'll try test this programmatically.
8576 libltdl_cv_sys_dlopen_deplibs=unknown
8577 case "$host_os" in
8578 aix3*|aix4.1.*|aix4.2.*)
8579 # Unknown whether this is true for these versions of AIX, but
8580 # we want this `case' here to explicitly catch those versions.
8581 libltdl_cv_sys_dlopen_deplibs=unknown
8582 ;;
8583 aix[45]*)
8584 libltdl_cv_sys_dlopen_deplibs=yes
8585 ;;
8586 darwin*)
8587 # Assuming the user has installed a libdl from somewhere, this is true
8588 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8589 libltdl_cv_sys_dlopen_deplibs=yes
8590 ;;
8591 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8592 # GNU and its variants, using gnu ld.so (Glibc)
8593 libltdl_cv_sys_dlopen_deplibs=yes
8594 ;;
8595 hpux10*|hpux11*)
8596 libltdl_cv_sys_dlopen_deplibs=yes
8597 ;;
8598 irix[12345]*|irix6.[01]*)
8599 # Catch all versions of IRIX before 6.2, and indicate that we don't
8600 # know how it worked for any of those versions.
8601 libltdl_cv_sys_dlopen_deplibs=unknown
8602 ;;
8603 irix*)
8604 # The case above catches anything before 6.2, and it's known that
8605 # at 6.2 and later dlopen does load deplibs.
8606 libltdl_cv_sys_dlopen_deplibs=yes
8607 ;;
8608 netbsd*)
8609 libltdl_cv_sys_dlopen_deplibs=yes
8610 ;;
8611 openbsd*)
8612 libltdl_cv_sys_dlopen_deplibs=yes
8613 ;;
8614 osf[1234]*)
8615 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8616 # it did *not* use an RPATH in a shared library to find objects the
8617 # library depends on, so we explictly say `no'.
8618 libltdl_cv_sys_dlopen_deplibs=no
8619 ;;
8620 osf5.0|osf5.0a|osf5.1)
8621 # dlopen *does* load deplibs and with the right loader patch applied
8622 # it even uses RPATH in a shared library to search for shared objects
8623 # that the library depends on, but there's no easy way to know if that
8624 # patch is installed. Since this is the case, all we can really
8625 # say is unknown -- it depends on the patch being installed. If
8626 # it is, this changes to `yes'. Without it, it would be `no'.
8627 libltdl_cv_sys_dlopen_deplibs=unknown
8628 ;;
8629 osf*)
8630 # the two cases above should catch all versions of osf <= 5.1. Read
8631 # the comments above for what we know about them.
8632 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8633 # is used to find them so we can finally say `yes'.
8634 libltdl_cv_sys_dlopen_deplibs=yes
8635 ;;
8636 solaris*)
8637 libltdl_cv_sys_dlopen_deplibs=yes
8638 ;;
8639 esac
8640
8641fi
8642echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8643echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8644if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8645
8646cat >>confdefs.h <<\_ACEOF
8647#define LTDL_DLOPEN_DEPLIBS 1
8648_ACEOF
8649
8650fi
8651
8652
8653for ac_header in argz.h
8654do
8655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8656if eval "test \"\${$as_ac_Header+set}\" = set"; then
8657 echo "$as_me:$LINENO: checking for $ac_header" >&5
8658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8659if eval "test \"\${$as_ac_Header+set}\" = set"; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8661fi
8662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8664else
8665 # Is the header compilable?
8666echo "$as_me:$LINENO: checking $ac_header usability" >&5
8667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8668cat >conftest.$ac_ext <<_ACEOF
8669/* confdefs.h. */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h. */
8674$ac_includes_default
8675#include <$ac_header>
8676_ACEOF
8677rm -f conftest.$ac_objext
8678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8679 (eval $ac_compile) 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest.$ac_objext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_header_compiler=yes
8700else
8701 echo "$as_me: failed program was:" >&5
8702sed 's/^/| /' conftest.$ac_ext >&5
8703
8704ac_header_compiler=no
8705fi
8706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8708echo "${ECHO_T}$ac_header_compiler" >&6
8709
8710# Is the header present?
8711echo "$as_me:$LINENO: checking $ac_header presence" >&5
8712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8713cat >conftest.$ac_ext <<_ACEOF
8714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
8719#include <$ac_header>
8720_ACEOF
8721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } >/dev/null; then
8729 if test -s conftest.err; then
8730 ac_cpp_err=$ac_c_preproc_warn_flag
8731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8732 else
8733 ac_cpp_err=
8734 fi
8735else
8736 ac_cpp_err=yes
8737fi
8738if test -z "$ac_cpp_err"; then
8739 ac_header_preproc=yes
8740else
8741 echo "$as_me: failed program was:" >&5
8742sed 's/^/| /' conftest.$ac_ext >&5
8743
8744 ac_header_preproc=no
8745fi
8746rm -f conftest.err conftest.$ac_ext
8747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748echo "${ECHO_T}$ac_header_preproc" >&6
8749
8750# So? What about this header?
8751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8752 yes:no: )
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8756echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8757 ac_header_preproc=yes
8758 ;;
8759 no:yes:* )
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8763echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8765echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8767echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8771echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8772 (
8773 cat <<\_ASBOX
8774## ----------------------------------- ##
8775## Report this to llvmbugs@cs.uiuc.edu ##
8776## ----------------------------------- ##
8777_ASBOX
8778 ) |
8779 sed "s/^/$as_me: WARNING: /" >&2
8780 ;;
8781esac
8782echo "$as_me:$LINENO: checking for $ac_header" >&5
8783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8784if eval "test \"\${$as_ac_Header+set}\" = set"; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786else
8787 eval "$as_ac_Header=\$ac_header_preproc"
8788fi
8789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8791
8792fi
8793if test `eval echo '${'$as_ac_Header'}'` = yes; then
8794 cat >>confdefs.h <<_ACEOF
8795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8796_ACEOF
8797
8798fi
8799
8800done
8801
8802
8803echo "$as_me:$LINENO: checking for error_t" >&5
8804echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8805if test "${ac_cv_type_error_t+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808 cat >conftest.$ac_ext <<_ACEOF
8809/* confdefs.h. */
8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
8814#if HAVE_ARGZ_H
8815# include <argz.h>
8816#endif
8817
8818int
8819main ()
8820{
8821if ((error_t *) 0)
8822 return 0;
8823if (sizeof (error_t))
8824 return 0;
8825 ;
8826 return 0;
8827}
8828_ACEOF
8829rm -f conftest.$ac_objext
8830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>conftest.er1
8832 ac_status=$?
8833 grep -v '^ *+' conftest.er1 >conftest.err
8834 rm -f conftest.er1
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag"
8839 || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest.$ac_objext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_type_error_t=yes
8852else
8853 echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856ac_cv_type_error_t=no
8857fi
8858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8859fi
8860echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8861echo "${ECHO_T}$ac_cv_type_error_t" >&6
8862if test $ac_cv_type_error_t = yes; then
8863
8864cat >>confdefs.h <<_ACEOF
8865#define HAVE_ERROR_T 1
8866_ACEOF
8867
8868
8869else
8870
8871cat >>confdefs.h <<\_ACEOF
8872#define error_t int
8873_ACEOF
8874
8875fi
8876
8877
8878
8879
8880
8881
8882
8883for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8884do
8885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8886echo "$as_me:$LINENO: checking for $ac_func" >&5
8887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8888if eval "test \"\${$as_ac_var+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891 cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h. */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h. */
8897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8899#define $ac_func innocuous_$ac_func
8900
8901/* System header to define __stub macros and hopefully few prototypes,
8902 which can conflict with char $ac_func (); below.
8903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904 <limits.h> exists even on freestanding compilers. */
8905
8906#ifdef __STDC__
8907# include <limits.h>
8908#else
8909# include <assert.h>
8910#endif
8911
8912#undef $ac_func
8913
8914/* Override any gcc2 internal prototype to avoid an error. */
8915#ifdef __cplusplus
8916extern "C"
8917{
8918#endif
8919/* We use char because int might match the return type of a gcc2
8920 builtin and then its argument prototype would still apply. */
8921char $ac_func ();
8922/* The GNU C library defines this for functions which it implements
8923 to always fail with ENOSYS. Some functions are actually named
8924 something starting with __ and the normal name is an alias. */
8925#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8926choke me
8927#else
8928char (*f) () = $ac_func;
8929#endif
8930#ifdef __cplusplus
8931}
8932#endif
8933
8934int
8935main ()
8936{
8937return f != $ac_func;
8938 ;
8939 return 0;
8940}
8941_ACEOF
8942rm -f conftest.$ac_objext conftest$ac_exeext
8943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 eval "$as_ac_var=yes"
8965else
8966 echo "$as_me: failed program was:" >&5
8967sed 's/^/| /' conftest.$ac_ext >&5
8968
8969eval "$as_ac_var=no"
8970fi
8971rm -f conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973fi
8974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976if test `eval echo '${'$as_ac_var'}'` = yes; then
8977 cat >>confdefs.h <<_ACEOF
8978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8979_ACEOF
8980
8981fi
8982done
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9012 stdio.h unistd.h
9013do
9014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9015if eval "test \"\${$as_ac_Header+set}\" = set"; then
9016 echo "$as_me:$LINENO: checking for $ac_header" >&5
9017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9018if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020fi
9021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9023else
9024 # Is the header compilable?
9025echo "$as_me:$LINENO: checking $ac_header usability" >&5
9026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9027cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h. */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h. */
9033$ac_includes_default
9034#include <$ac_header>
9035_ACEOF
9036rm -f conftest.$ac_objext
9037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038 (eval $ac_compile) 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag"
9046 || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_header_compiler=yes
9059else
9060 echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
9062
9063ac_header_compiler=no
9064fi
9065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9067echo "${ECHO_T}$ac_header_compiler" >&6
9068
9069# Is the header present?
9070echo "$as_me:$LINENO: checking $ac_header presence" >&5
9071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9072cat >conftest.$ac_ext <<_ACEOF
9073/* confdefs.h. */
9074_ACEOF
9075cat confdefs.h >>conftest.$ac_ext
9076cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */
9078#include <$ac_header>
9079_ACEOF
9080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } >/dev/null; then
9088 if test -s conftest.err; then
9089 ac_cpp_err=$ac_c_preproc_warn_flag
9090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9091 else
9092 ac_cpp_err=
9093 fi
9094else
9095 ac_cpp_err=yes
9096fi
9097if test -z "$ac_cpp_err"; then
9098 ac_header_preproc=yes
9099else
9100 echo "$as_me: failed program was:" >&5
9101sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 ac_header_preproc=no
9104fi
9105rm -f conftest.err conftest.$ac_ext
9106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9107echo "${ECHO_T}$ac_header_preproc" >&6
9108
9109# So? What about this header?
9110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9111 yes:no: )
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9115echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9116 ac_header_preproc=yes
9117 ;;
9118 no:yes:* )
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9122echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9124echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9126echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9130echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9131 (
9132 cat <<\_ASBOX
9133## ----------------------------------- ##
9134## Report this to llvmbugs@cs.uiuc.edu ##
9135## ----------------------------------- ##
9136_ASBOX
9137 ) |
9138 sed "s/^/$as_me: WARNING: /" >&2
9139 ;;
9140esac
9141echo "$as_me:$LINENO: checking for $ac_header" >&5
9142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145else
9146 eval "$as_ac_Header=\$ac_header_preproc"
9147fi
9148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9150
9151fi
9152if test `eval echo '${'$as_ac_Header'}'` = yes; then
9153 cat >>confdefs.h <<_ACEOF
9154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9155_ACEOF
9156
9157fi
9158
9159done
9160
9161
9162
9163
9164
9165for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9166do
9167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9168if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173fi
9174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176else
9177 # Is the header compilable?
9178echo "$as_me:$LINENO: checking $ac_header usability" >&5
9179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9180cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */
9186$ac_includes_default
9187#include <$ac_header>
9188_ACEOF
9189rm -f conftest.$ac_objext
9190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 (eval $ac_compile) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 (eval $ac_try) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest.$ac_objext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_header_compiler=yes
9212else
9213 echo "$as_me: failed program was:" >&5
9214sed 's/^/| /' conftest.$ac_ext >&5
9215
9216ac_header_compiler=no
9217fi
9218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9219echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9220echo "${ECHO_T}$ac_header_compiler" >&6
9221
9222# Is the header present?
9223echo "$as_me:$LINENO: checking $ac_header presence" >&5
9224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9225cat >conftest.$ac_ext <<_ACEOF
9226/* confdefs.h. */
9227_ACEOF
9228cat confdefs.h >>conftest.$ac_ext
9229cat >>conftest.$ac_ext <<_ACEOF
9230/* end confdefs.h. */
9231#include <$ac_header>
9232_ACEOF
9233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } >/dev/null; then
9241 if test -s conftest.err; then
9242 ac_cpp_err=$ac_c_preproc_warn_flag
9243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9244 else
9245 ac_cpp_err=
9246 fi
9247else
9248 ac_cpp_err=yes
9249fi
9250if test -z "$ac_cpp_err"; then
9251 ac_header_preproc=yes
9252else
9253 echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 ac_header_preproc=no
9257fi
9258rm -f conftest.err conftest.$ac_ext
9259echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9260echo "${ECHO_T}$ac_header_preproc" >&6
9261
9262# So? What about this header?
9263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9264 yes:no: )
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9269 ac_header_preproc=yes
9270 ;;
9271 no:yes:* )
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9284 (
9285 cat <<\_ASBOX
9286## ----------------------------------- ##
9287## Report this to llvmbugs@cs.uiuc.edu ##
9288## ----------------------------------- ##
9289_ASBOX
9290 ) |
9291 sed "s/^/$as_me: WARNING: /" >&2
9292 ;;
9293esac
9294echo "$as_me:$LINENO: checking for $ac_header" >&5
9295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9296if eval "test \"\${$as_ac_Header+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299 eval "$as_ac_Header=\$ac_header_preproc"
9300fi
9301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9303
9304fi
9305if test `eval echo '${'$as_ac_Header'}'` = yes; then
9306 cat >>confdefs.h <<_ACEOF
9307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9308_ACEOF
9309
9310fi
9311
9312done
9313
9314
9315
9316for ac_header in string.h strings.h
9317do
9318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9319if eval "test \"\${$as_ac_Header+set}\" = set"; then
9320 echo "$as_me:$LINENO: checking for $ac_header" >&5
9321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9322if eval "test \"\${$as_ac_Header+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324fi
9325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9327else
9328 # Is the header compilable?
9329echo "$as_me:$LINENO: checking $ac_header usability" >&5
9330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9331cat >conftest.$ac_ext <<_ACEOF
9332/* confdefs.h. */
9333_ACEOF
9334cat confdefs.h >>conftest.$ac_ext
9335cat >>conftest.$ac_ext <<_ACEOF
9336/* end confdefs.h. */
9337$ac_includes_default
9338#include <$ac_header>
9339_ACEOF
9340rm -f conftest.$ac_objext
9341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342 (eval $ac_compile) 2>conftest.er1
9343 ac_status=$?
9344 grep -v '^ *+' conftest.er1 >conftest.err
9345 rm -f conftest.er1
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -z "$ac_c_werror_flag"
9350 || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try='test -s conftest.$ac_objext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_header_compiler=yes
9363else
9364 echo "$as_me: failed program was:" >&5
9365sed 's/^/| /' conftest.$ac_ext >&5
9366
9367ac_header_compiler=no
9368fi
9369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9371echo "${ECHO_T}$ac_header_compiler" >&6
9372
9373# Is the header present?
9374echo "$as_me:$LINENO: checking $ac_header presence" >&5
9375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9376cat >conftest.$ac_ext <<_ACEOF
9377/* confdefs.h. */
9378_ACEOF
9379cat confdefs.h >>conftest.$ac_ext
9380cat >>conftest.$ac_ext <<_ACEOF
9381/* end confdefs.h. */
9382#include <$ac_header>
9383_ACEOF
9384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } >/dev/null; then
9392 if test -s conftest.err; then
9393 ac_cpp_err=$ac_c_preproc_warn_flag
9394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9395 else
9396 ac_cpp_err=
9397 fi
9398else
9399 ac_cpp_err=yes
9400fi
9401if test -z "$ac_cpp_err"; then
9402 ac_header_preproc=yes
9403else
9404 echo "$as_me: failed program was:" >&5
9405sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ac_header_preproc=no
9408fi
9409rm -f conftest.err conftest.$ac_ext
9410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411echo "${ECHO_T}$ac_header_preproc" >&6
9412
9413# So? What about this header?
9414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9415 yes:no: )
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420 ac_header_preproc=yes
9421 ;;
9422 no:yes:* )
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9430echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9435 (
9436 cat <<\_ASBOX
9437## ----------------------------------- ##
9438## Report this to llvmbugs@cs.uiuc.edu ##
9439## ----------------------------------- ##
9440_ASBOX
9441 ) |
9442 sed "s/^/$as_me: WARNING: /" >&2
9443 ;;
9444esac
9445echo "$as_me:$LINENO: checking for $ac_header" >&5
9446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9447if eval "test \"\${$as_ac_Header+set}\" = set"; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449else
9450 eval "$as_ac_Header=\$ac_header_preproc"
9451fi
9452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9454
9455fi
9456if test `eval echo '${'$as_ac_Header'}'` = yes; then
9457 cat >>confdefs.h <<_ACEOF
9458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9459_ACEOF
9460 break
9461fi
9462
9463done
9464
9465
9466
9467
9468for ac_func in strchr index
9469do
9470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9471echo "$as_me:$LINENO: checking for $ac_func" >&5
9472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9473if eval "test \"\${$as_ac_var+set}\" = set"; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476 cat >conftest.$ac_ext <<_ACEOF
9477/* confdefs.h. */
9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
9481/* end confdefs.h. */
9482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484#define $ac_func innocuous_$ac_func
9485
9486/* System header to define __stub macros and hopefully few prototypes,
9487 which can conflict with char $ac_func (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9490
9491#ifdef __STDC__
9492# include <limits.h>
9493#else
9494# include <assert.h>
9495#endif
9496
9497#undef $ac_func
9498
9499/* Override any gcc2 internal prototype to avoid an error. */
9500#ifdef __cplusplus
9501extern "C"
9502{
9503#endif
9504/* We use char because int might match the return type of a gcc2
9505 builtin and then its argument prototype would still apply. */
9506char $ac_func ();
9507/* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9511choke me
9512#else
9513char (*f) () = $ac_func;
9514#endif
9515#ifdef __cplusplus
9516}
9517#endif
9518
9519int
9520main ()
9521{
9522return f != $ac_func;
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 (eval $ac_try) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 eval "$as_ac_var=yes"
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554eval "$as_ac_var=no"
9555fi
9556rm -f conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558fi
9559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9560echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9561if test `eval echo '${'$as_ac_var'}'` = yes; then
9562 cat >>confdefs.h <<_ACEOF
9563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9564_ACEOF
9565 break
9566fi
9567done
9568
9569
9570
9571for ac_func in strrchr rindex
9572do
9573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9574echo "$as_me:$LINENO: checking for $ac_func" >&5
9575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9576if eval "test \"\${$as_ac_var+set}\" = set"; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578else
9579 cat >conftest.$ac_ext <<_ACEOF
9580/* confdefs.h. */
9581_ACEOF
9582cat confdefs.h >>conftest.$ac_ext
9583cat >>conftest.$ac_ext <<_ACEOF
9584/* end confdefs.h. */
9585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9587#define $ac_func innocuous_$ac_func
9588
9589/* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char $ac_func (); below.
9591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592 <limits.h> exists even on freestanding compilers. */
9593
9594#ifdef __STDC__
9595# include <limits.h>
9596#else
9597# include <assert.h>
9598#endif
9599
9600#undef $ac_func
9601
9602/* Override any gcc2 internal prototype to avoid an error. */
9603#ifdef __cplusplus
9604extern "C"
9605{
9606#endif
9607/* We use char because int might match the return type of a gcc2
9608 builtin and then its argument prototype would still apply. */
9609char $ac_func ();
9610/* The GNU C library defines this for functions which it implements
9611 to always fail with ENOSYS. Some functions are actually named
9612 something starting with __ and the normal name is an alias. */
9613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9614choke me
9615#else
9616char (*f) () = $ac_func;
9617#endif
9618#ifdef __cplusplus
9619}
9620#endif
9621
9622int
9623main ()
9624{
9625return f != $ac_func;
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_c_werror_flag"
9640 || test ! -s conftest.err'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest$ac_exeext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 eval "$as_ac_var=yes"
9653else
9654 echo "$as_me: failed program was:" >&5
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657eval "$as_ac_var=no"
9658fi
9659rm -f conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661fi
9662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9663echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9664if test `eval echo '${'$as_ac_var'}'` = yes; then
9665 cat >>confdefs.h <<_ACEOF
9666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9667_ACEOF
9668 break
9669fi
9670done
9671
9672
9673
9674for ac_func in memcpy bcopy
9675do
9676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9677echo "$as_me:$LINENO: checking for $ac_func" >&5
9678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9679if eval "test \"\${$as_ac_var+set}\" = set"; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681else
9682 cat >conftest.$ac_ext <<_ACEOF
9683/* confdefs.h. */
9684_ACEOF
9685cat confdefs.h >>conftest.$ac_ext
9686cat >>conftest.$ac_ext <<_ACEOF
9687/* end confdefs.h. */
9688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9690#define $ac_func innocuous_$ac_func
9691
9692/* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char $ac_func (); below.
9694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9695 <limits.h> exists even on freestanding compilers. */
9696
9697#ifdef __STDC__
9698# include <limits.h>
9699#else
9700# include <assert.h>
9701#endif
9702
9703#undef $ac_func
9704
9705/* Override any gcc2 internal prototype to avoid an error. */
9706#ifdef __cplusplus
9707extern "C"
9708{
9709#endif
9710/* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712char $ac_func ();
9713/* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9717choke me
9718#else
9719char (*f) () = $ac_func;
9720#endif
9721#ifdef __cplusplus
9722}
9723#endif
9724
9725int
9726main ()
9727{
9728return f != $ac_func;
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext conftest$ac_exeext
9734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 eval "$as_ac_var=yes"
9756else
9757 echo "$as_me: failed program was:" >&5
9758sed 's/^/| /' conftest.$ac_ext >&5
9759
9760eval "$as_ac_var=no"
9761fi
9762rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764fi
9765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9767if test `eval echo '${'$as_ac_var'}'` = yes; then
9768 cat >>confdefs.h <<_ACEOF
9769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9770_ACEOF
9771 break
9772fi
9773done
9774
9775
9776
9777for ac_func in memmove strcmp
9778do
9779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9780echo "$as_me:$LINENO: checking for $ac_func" >&5
9781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9782if eval "test \"\${$as_ac_var+set}\" = set"; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784else
9785 cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h. */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h. */
9791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9793#define $ac_func innocuous_$ac_func
9794
9795/* System header to define __stub macros and hopefully few prototypes,
9796 which can conflict with char $ac_func (); below.
9797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9798 <limits.h> exists even on freestanding compilers. */
9799
9800#ifdef __STDC__
9801# include <limits.h>
9802#else
9803# include <assert.h>
9804#endif
9805
9806#undef $ac_func
9807
9808/* Override any gcc2 internal prototype to avoid an error. */
9809#ifdef __cplusplus
9810extern "C"
9811{
9812#endif
9813/* We use char because int might match the return type of a gcc2
9814 builtin and then its argument prototype would still apply. */
9815char $ac_func ();
9816/* The GNU C library defines this for functions which it implements
9817 to always fail with ENOSYS. Some functions are actually named
9818 something starting with __ and the normal name is an alias. */
9819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9820choke me
9821#else
9822char (*f) () = $ac_func;
9823#endif
9824#ifdef __cplusplus
9825}
9826#endif
9827
9828int
9829main ()
9830{
9831return f != $ac_func;
9832 ;
9833 return 0;
9834}
9835_ACEOF
9836rm -f conftest.$ac_objext conftest$ac_exeext
9837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838 (eval $ac_link) 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -z "$ac_c_werror_flag"
9846 || test ! -s conftest.err'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest$ac_exeext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 eval "$as_ac_var=yes"
9859else
9860 echo "$as_me: failed program was:" >&5
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
9863eval "$as_ac_var=no"
9864fi
9865rm -f conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867fi
9868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9870if test `eval echo '${'$as_ac_var'}'` = yes; then
9871 cat >>confdefs.h <<_ACEOF
9872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9873_ACEOF
9874
9875fi
9876done
9877
9878
9879
9880
9881for ac_func in closedir opendir readdir
9882do
9883as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884echo "$as_me:$LINENO: checking for $ac_func" >&5
9885echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9886if eval "test \"\${$as_ac_var+set}\" = set"; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889 cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h. */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h. */
9895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897#define $ac_func innocuous_$ac_func
9898
9899/* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9903
9904#ifdef __STDC__
9905# include <limits.h>
9906#else
9907# include <assert.h>
9908#endif
9909
9910#undef $ac_func
9911
9912/* Override any gcc2 internal prototype to avoid an error. */
9913#ifdef __cplusplus
9914extern "C"
9915{
9916#endif
9917/* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9919char $ac_func ();
9920/* The GNU C library defines this for functions which it implements
9921 to always fail with ENOSYS. Some functions are actually named
9922 something starting with __ and the normal name is an alias. */
9923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9924choke me
9925#else
9926char (*f) () = $ac_func;
9927#endif
9928#ifdef __cplusplus
9929}
9930#endif
9931
9932int
9933main ()
9934{
9935return f != $ac_func;
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext conftest$ac_exeext
9941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 eval "$as_ac_var=yes"
9963else
9964 echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967eval "$as_ac_var=no"
9968fi
9969rm -f conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971fi
9972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9973echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9974if test `eval echo '${'$as_ac_var'}'` = yes; then
9975 cat >>confdefs.h <<_ACEOF
9976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9977_ACEOF
9978
9979fi
9980done
9981
9982
9983# Check whether --enable-shared or --disable-shared was given.
9984if test "${enable_shared+set}" = set; then
9985 enableval="$enable_shared"
9986 p=${PACKAGE-default}
9987 case $enableval in
9988 yes) enable_shared=yes ;;
9989 no) enable_shared=no ;;
9990 *)
9991 enable_shared=no
9992 # Look at the argument we got. We use all the common list separators.
9993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9994 for pkg in $enableval; do
9995 IFS="$lt_save_ifs"
9996 if test "X$pkg" = "X$p"; then
9997 enable_shared=yes
9998 fi
9999 done
10000 IFS="$lt_save_ifs"
10001 ;;
10002 esac
10003else
10004 enable_shared=yes
10005fi;
10006
10007# Check whether --enable-static or --disable-static was given.
10008if test "${enable_static+set}" = set; then
10009 enableval="$enable_static"
10010 p=${PACKAGE-default}
10011 case $enableval in
10012 yes) enable_static=yes ;;
10013 no) enable_static=no ;;
10014 *)
10015 enable_static=no
10016 # Look at the argument we got. We use all the common list separators.
10017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10018 for pkg in $enableval; do
10019 IFS="$lt_save_ifs"
10020 if test "X$pkg" = "X$p"; then
10021 enable_static=yes
10022 fi
10023 done
10024 IFS="$lt_save_ifs"
10025 ;;
10026 esac
10027else
10028 enable_static=yes
10029fi;
10030
10031# Check whether --enable-fast-install or --disable-fast-install was given.
10032if test "${enable_fast_install+set}" = set; then
10033 enableval="$enable_fast_install"
10034 p=${PACKAGE-default}
10035 case $enableval in
10036 yes) enable_fast_install=yes ;;
10037 no) enable_fast_install=no ;;
10038 *)
10039 enable_fast_install=no
10040 # Look at the argument we got. We use all the common list separators.
10041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10042 for pkg in $enableval; do
10043 IFS="$lt_save_ifs"
10044 if test "X$pkg" = "X$p"; then
10045 enable_fast_install=yes
10046 fi
10047 done
10048 IFS="$lt_save_ifs"
10049 ;;
10050 esac
10051else
10052 enable_fast_install=yes
10053fi;
10054
10055echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10056echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10057if test "${lt_cv_path_SED+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 # Loop through the user's path and test for sed and gsed.
10061# Then use that list of sed's as ones to test for truncation.
10062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063for as_dir in $PATH
10064do
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for lt_ac_prog in sed gsed; do
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10070 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10071 fi
10072 done
10073 done
10074done
10075lt_ac_max=0
10076lt_ac_count=0
10077# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10078# along with /bin/sed that truncates output.
10079for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10080 test ! -f $lt_ac_sed && break
10081 cat /dev/null > conftest.in
10082 lt_ac_count=0
10083 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10084 # Check for GNU sed and select it if it is found.
10085 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10086 lt_cv_path_SED=$lt_ac_sed
10087 break
10088 fi
10089 while true; do
10090 cat conftest.in conftest.in >conftest.tmp
10091 mv conftest.tmp conftest.in
10092 cp conftest.in conftest.nl
10093 echo >>conftest.nl
10094 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10095 cmp -s conftest.out conftest.nl || break
10096 # 10000 chars as input seems more than enough
10097 test $lt_ac_count -gt 10 && break
10098 lt_ac_count=`expr $lt_ac_count + 1`
10099 if test $lt_ac_count -gt $lt_ac_max; then
10100 lt_ac_max=$lt_ac_count
10101 lt_cv_path_SED=$lt_ac_sed
10102 fi
10103 done
10104done
10105
10106fi
10107
10108SED=$lt_cv_path_SED
10109echo "$as_me:$LINENO: result: $SED" >&5
10110echo "${ECHO_T}$SED" >&6
10111
10112
10113# Check whether --with-gnu-ld or --without-gnu-ld was given.
10114if test "${with_gnu_ld+set}" = set; then
10115 withval="$with_gnu_ld"
10116 test "$withval" = no || with_gnu_ld=yes
10117else
10118 with_gnu_ld=no
10119fi;
10120ac_prog=ld
10121if test "$GCC" = yes; then
10122 # Check if gcc -print-prog-name=ld gives a path.
10123 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10124echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10125 case $host in
10126 *-*-mingw*)
10127 # gcc leaves a trailing carriage return which upsets mingw
10128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10129 *)
10130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10131 esac
10132 case $ac_prog in
10133 # Accept absolute paths.
10134 [\\/]* | ?:[\\/]*)
10135 re_direlt='/[^/][^/]*/\.\./'
10136 # Canonicalize the pathname of ld
10137 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10138 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10139 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10140 done
10141 test -z "$LD" && LD="$ac_prog"
10142 ;;
10143 "")
10144 # If it fails, then pretend we aren't using GCC.
10145 ac_prog=ld
10146 ;;
10147 *)
10148 # If it is relative, then search for the first ld in PATH.
10149 with_gnu_ld=unknown
10150 ;;
10151 esac
10152elif test "$with_gnu_ld" = yes; then
10153 echo "$as_me:$LINENO: checking for GNU ld" >&5
10154echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10155else
10156 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10157echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10158fi
10159if test "${lt_cv_path_LD+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161else
10162 if test -z "$LD"; then
10163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10164 for ac_dir in $PATH; do
10165 IFS="$lt_save_ifs"
10166 test -z "$ac_dir" && ac_dir=.
10167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10168 lt_cv_path_LD="$ac_dir/$ac_prog"
10169 # Check to see if the program is GNU ld. I'd rather use --version,
10170 # but apparently some GNU ld's only accept -v.
10171 # Break only if it was the GNU/non-GNU ld that we prefer.
10172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10173 *GNU* | *'with BFD'*)
10174 test "$with_gnu_ld" != no && break
10175 ;;
10176 *)
10177 test "$with_gnu_ld" != yes && break
10178 ;;
10179 esac
10180 fi
10181 done
10182 IFS="$lt_save_ifs"
10183else
10184 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10185fi
10186fi
10187
10188LD="$lt_cv_path_LD"
10189if test -n "$LD"; then
10190 echo "$as_me:$LINENO: result: $LD" >&5
10191echo "${ECHO_T}$LD" >&6
10192else
10193 echo "$as_me:$LINENO: result: no" >&5
10194echo "${ECHO_T}no" >&6
10195fi
10196test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10197echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10198 { (exit 1); exit 1; }; }
10199echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10200echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10201if test "${lt_cv_prog_gnu_ld+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203else
10204 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10205case `$LD -v 2>&1 </dev/null` in
10206*GNU* | *'with BFD'*)
10207 lt_cv_prog_gnu_ld=yes
10208 ;;
10209*)
10210 lt_cv_prog_gnu_ld=no
10211 ;;
10212esac
10213fi
10214echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10215echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10216with_gnu_ld=$lt_cv_prog_gnu_ld
10217
10218
10219echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10220echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10221if test "${lt_cv_ld_reload_flag+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224 lt_cv_ld_reload_flag='-r'
10225fi
10226echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10227echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10228reload_flag=$lt_cv_ld_reload_flag
10229case $reload_flag in
10230"" | " "*) ;;
10231*) reload_flag=" $reload_flag" ;;
10232esac
10233reload_cmds='$LD$reload_flag -o $output$reload_objs'
10234case $host_os in
10235 darwin*)
10236 if test "$GCC" = yes; then
10237 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10238 else
10239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10240 fi
10241 ;;
10242esac
10243
10244echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10245echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10246if test "${lt_cv_deplibs_check_method+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248else
10249 lt_cv_file_magic_cmd='$MAGIC_CMD'
10250lt_cv_file_magic_test_file=
10251lt_cv_deplibs_check_method='unknown'
10252# Need to set the preceding variable on all platforms that support
10253# interlibrary dependencies.
10254# 'none' -- dependencies not supported.
10255# `unknown' -- same as none, but documents that we really don't know.
10256# 'pass_all' -- all dependencies passed with no checks.
10257# 'test_compile' -- check by making test program.
10258# 'file_magic [[regex]]' -- check by looking for files in library path
10259# which responds to the $file_magic_cmd with a given extended regex.
10260# If you have `file' or equivalent on your system and you're not sure
10261# whether `pass_all' will *always* work, you probably want this one.
10262
10263case $host_os in
10264aix4* | aix5*)
10265 lt_cv_deplibs_check_method=pass_all
10266 ;;
10267
10268beos*)
10269 lt_cv_deplibs_check_method=pass_all
10270 ;;
10271
10272bsdi[45]*)
10273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10274 lt_cv_file_magic_cmd='/usr/bin/file -L'
10275 lt_cv_file_magic_test_file=/shlib/libc.so
10276 ;;
10277
10278cygwin*)
10279 # func_win32_libid is a shell function defined in ltmain.sh
10280 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10281 lt_cv_file_magic_cmd='func_win32_libid'
10282 ;;
10283
10284mingw* | pw32*)
10285 # Base MSYS/MinGW do not provide the 'file' command needed by
10286 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10287 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10288 lt_cv_file_magic_cmd='$OBJDUMP -f'
10289 ;;
10290
10291darwin* | rhapsody*)
10292 lt_cv_deplibs_check_method=pass_all
10293 ;;
10294
10295freebsd* | kfreebsd*-gnu)
10296 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10297 case $host_cpu in
10298 i*86 )
10299 # Not sure whether the presence of OpenBSD here was a mistake.
10300 # Let's accept both of them until this is cleared up.
10301 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10302 lt_cv_file_magic_cmd=/usr/bin/file
10303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10304 ;;
10305 esac
10306 else
10307 lt_cv_deplibs_check_method=pass_all
10308 fi
10309 ;;
10310
10311gnu*)
10312 lt_cv_deplibs_check_method=pass_all
10313 ;;
10314
10315hpux10.20* | hpux11*)
10316 lt_cv_file_magic_cmd=/usr/bin/file
10317 case "$host_cpu" in
10318 ia64*)
10319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10320 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10321 ;;
10322 hppa*64*)
10323 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]'
10324 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10325 ;;
10326 *)
10327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10328 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10329 ;;
10330 esac
10331 ;;
10332
10333irix5* | irix6* | nonstopux*)
10334 case $LD in
10335 *-32|*"-32 ") libmagic=32-bit;;
10336 *-n32|*"-n32 ") libmagic=N32;;
10337 *-64|*"-64 ") libmagic=64-bit;;
10338 *) libmagic=never-match;;
10339 esac
10340 lt_cv_deplibs_check_method=pass_all
10341 ;;
10342
10343# This must be Linux ELF.
10344linux*)
10345 lt_cv_deplibs_check_method=pass_all
10346 ;;
10347
10348netbsd*)
10349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10351 else
10352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10353 fi
10354 ;;
10355
10356newos6*)
10357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10358 lt_cv_file_magic_cmd=/usr/bin/file
10359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10360 ;;
10361
10362nto-qnx*)
10363 lt_cv_deplibs_check_method=unknown
10364 ;;
10365
10366openbsd*)
10367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10369 else
10370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10371 fi
10372 ;;
10373
10374osf3* | osf4* | osf5*)
10375 lt_cv_deplibs_check_method=pass_all
10376 ;;
10377
10378sco3.2v5*)
10379 lt_cv_deplibs_check_method=pass_all
10380 ;;
10381
10382solaris*)
10383 lt_cv_deplibs_check_method=pass_all
10384 ;;
10385
10386sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10387 case $host_vendor in
10388 motorola)
10389 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]'
10390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10391 ;;
10392 ncr)
10393 lt_cv_deplibs_check_method=pass_all
10394 ;;
10395 sequent)
10396 lt_cv_file_magic_cmd='/bin/file'
10397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10398 ;;
10399 sni)
10400 lt_cv_file_magic_cmd='/bin/file'
10401 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10402 lt_cv_file_magic_test_file=/lib/libc.so
10403 ;;
10404 siemens)
10405 lt_cv_deplibs_check_method=pass_all
10406 ;;
10407 esac
10408 ;;
10409
10410sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10411 lt_cv_deplibs_check_method=pass_all
10412 ;;
10413esac
10414
10415fi
10416echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10417echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10418file_magic_cmd=$lt_cv_file_magic_cmd
10419deplibs_check_method=$lt_cv_deplibs_check_method
10420test -z "$deplibs_check_method" && deplibs_check_method=unknown
10421
10422
10423
10424# If no C compiler was specified, use CC.
10425LTCC=${LTCC-"$CC"}
10426
10427# Allow CC to be a program name with arguments.
10428compiler=$CC
10429
10430# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10431if test "${enable_libtool_lock+set}" = set; then
10432 enableval="$enable_libtool_lock"
10433
10434fi;
10435test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10436
10437# Some flags need to be propagated to the compiler or linker for good
10438# libtool support.
10439case $host in
10440ia64-*-hpux*)
10441 # Find out which ABI we are using.
10442 echo 'int i;' > conftest.$ac_ext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; then
10448 case `/usr/bin/file conftest.$ac_objext` in
10449 *ELF-32*)
10450 HPUX_IA64_MODE="32"
10451 ;;
10452 *ELF-64*)
10453 HPUX_IA64_MODE="64"
10454 ;;
10455 esac
10456 fi
10457 rm -rf conftest*
10458 ;;
10459*-*-irix6*)
10460 # Find out which ABI we are using.
Reid Spencer54d14482006-04-07 16:01:51 +000010461 echo '#line 10461 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; then
10467 if test "$lt_cv_prog_gnu_ld" = yes; then
10468 case `/usr/bin/file conftest.$ac_objext` in
10469 *32-bit*)
10470 LD="${LD-ld} -melf32bsmip"
10471 ;;
10472 *N32*)
10473 LD="${LD-ld} -melf32bmipn32"
10474 ;;
10475 *64-bit*)
10476 LD="${LD-ld} -melf64bmip"
10477 ;;
10478 esac
10479 else
10480 case `/usr/bin/file conftest.$ac_objext` in
10481 *32-bit*)
10482 LD="${LD-ld} -32"
10483 ;;
10484 *N32*)
10485 LD="${LD-ld} -n32"
10486 ;;
10487 *64-bit*)
10488 LD="${LD-ld} -64"
10489 ;;
10490 esac
10491 fi
10492 fi
10493 rm -rf conftest*
10494 ;;
10495
10496x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10497 # Find out which ABI we are using.
10498 echo 'int i;' > conftest.$ac_ext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500 (eval $ac_compile) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; then
10504 case "`/usr/bin/file conftest.o`" in
10505 *32-bit*)
10506 case $host in
10507 x86_64-*linux*)
10508 LD="${LD-ld} -m elf_i386"
10509 ;;
10510 ppc64-*linux*|powerpc64-*linux*)
10511 LD="${LD-ld} -m elf32ppclinux"
10512 ;;
10513 s390x-*linux*)
10514 LD="${LD-ld} -m elf_s390"
10515 ;;
10516 sparc64-*linux*)
10517 LD="${LD-ld} -m elf32_sparc"
10518 ;;
10519 esac
10520 ;;
10521 *64-bit*)
10522 case $host in
10523 x86_64-*linux*)
10524 LD="${LD-ld} -m elf_x86_64"
10525 ;;
10526 ppc*-*linux*|powerpc*-*linux*)
10527 LD="${LD-ld} -m elf64ppc"
10528 ;;
10529 s390*-*linux*)
10530 LD="${LD-ld} -m elf64_s390"
10531 ;;
10532 sparc*-*linux*)
10533 LD="${LD-ld} -m elf64_sparc"
10534 ;;
10535 esac
10536 ;;
10537 esac
10538 fi
10539 rm -rf conftest*
10540 ;;
10541
10542*-*-sco3.2v5*)
10543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10544 SAVE_CFLAGS="$CFLAGS"
10545 CFLAGS="$CFLAGS -belf"
10546 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10547echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10548if test "${lt_cv_cc_needs_belf+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550else
10551 ac_ext=c
10552ac_cpp='$CPP $CPPFLAGS'
10553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555ac_compiler_gnu=$ac_cv_c_compiler_gnu
10556
10557 cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h. */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h. */
10563
10564_ACEOF
10565rm -f conftest.$ac_objext conftest$ac_exeext
10566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 lt_cv_cc_needs_belf=yes
10588else
10589 echo "$as_me: failed program was:" >&5
10590sed 's/^/| /' conftest.$ac_ext >&5
10591
10592lt_cv_cc_needs_belf=no
10593fi
10594rm -f conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596 ac_ext=c
10597ac_cpp='$CPP $CPPFLAGS'
10598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600ac_compiler_gnu=$ac_cv_c_compiler_gnu
10601
10602fi
10603echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10604echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10605 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10607 CFLAGS="$SAVE_CFLAGS"
10608 fi
10609 ;;
10610
10611esac
10612
10613need_locks="$enable_libtool_lock"
10614
10615
Reid Spencer2706f8c2004-09-19 23:53:36 +000010616
10617
10618if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10619 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10620 (test "X$CXX" != "Xg++"))) ; then
10621 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010622ac_cpp='$CXXCPP $CPPFLAGS'
10623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10626echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10627echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10628if test -z "$CXXCPP"; then
10629 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631else
John Criswell47fdd832003-07-14 16:52:07 +000010632 # Double quotes because CXXCPP needs to be expanded
10633 for CXXCPP in "$CXX -E" "/lib/cpp"
10634 do
10635 ac_preproc_ok=false
10636for ac_cxx_preproc_warn_flag in '' yes
10637do
10638 # Use a header file that comes with gcc, so configuring glibc
10639 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10641 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010642 # On the NeXT, cc -E runs the code through the compiler's parser,
10643 # not just through cpp. "Syntax error" is here to catch this case.
10644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010645/* confdefs.h. */
10646_ACEOF
10647cat confdefs.h >>conftest.$ac_ext
10648cat >>conftest.$ac_ext <<_ACEOF
10649/* end confdefs.h. */
10650#ifdef __STDC__
10651# include <limits.h>
10652#else
10653# include <assert.h>
10654#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010655 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010656_ACEOF
10657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10659 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010660 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } >/dev/null; then
10665 if test -s conftest.err; then
10666 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010667 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010668 else
John Criswell47fdd832003-07-14 16:52:07 +000010669 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010670 fi
John Criswell47fdd832003-07-14 16:52:07 +000010671else
10672 ac_cpp_err=yes
10673fi
10674if test -z "$ac_cpp_err"; then
10675 :
10676else
10677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010678sed 's/^/| /' conftest.$ac_ext >&5
10679
John Criswell47fdd832003-07-14 16:52:07 +000010680 # Broken: fails on valid input.
10681continue
10682fi
10683rm -f conftest.err conftest.$ac_ext
10684
10685 # OK, works on sane cases. Now check whether non-existent headers
10686 # can be detected and how.
10687 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010688/* confdefs.h. */
10689_ACEOF
10690cat confdefs.h >>conftest.$ac_ext
10691cat >>conftest.$ac_ext <<_ACEOF
10692/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010693#include <ac_nonexistent.h>
10694_ACEOF
10695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10697 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010698 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } >/dev/null; then
10703 if test -s conftest.err; then
10704 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010705 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010706 else
10707 ac_cpp_err=
10708 fi
10709else
10710 ac_cpp_err=yes
10711fi
10712if test -z "$ac_cpp_err"; then
10713 # Broken: success on invalid input.
10714continue
10715else
10716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010717sed 's/^/| /' conftest.$ac_ext >&5
10718
John Criswell47fdd832003-07-14 16:52:07 +000010719 # Passes both tests.
10720ac_preproc_ok=:
10721break
10722fi
10723rm -f conftest.err conftest.$ac_ext
10724
10725done
10726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10727rm -f conftest.err conftest.$ac_ext
10728if $ac_preproc_ok; then
10729 break
John Criswell7a73b802003-06-30 21:59:07 +000010730fi
10731
John Criswell47fdd832003-07-14 16:52:07 +000010732 done
10733 ac_cv_prog_CXXCPP=$CXXCPP
10734
10735fi
10736 CXXCPP=$ac_cv_prog_CXXCPP
10737else
10738 ac_cv_prog_CXXCPP=$CXXCPP
10739fi
10740echo "$as_me:$LINENO: result: $CXXCPP" >&5
10741echo "${ECHO_T}$CXXCPP" >&6
10742ac_preproc_ok=false
10743for ac_cxx_preproc_warn_flag in '' yes
10744do
10745 # Use a header file that comes with gcc, so configuring glibc
10746 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10748 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010749 # On the NeXT, cc -E runs the code through the compiler's parser,
10750 # not just through cpp. "Syntax error" is here to catch this case.
10751 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010752/* confdefs.h. */
10753_ACEOF
10754cat confdefs.h >>conftest.$ac_ext
10755cat >>conftest.$ac_ext <<_ACEOF
10756/* end confdefs.h. */
10757#ifdef __STDC__
10758# include <limits.h>
10759#else
10760# include <assert.h>
10761#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010762 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010763_ACEOF
10764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10766 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010767 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } >/dev/null; then
10772 if test -s conftest.err; then
10773 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010774 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010775 else
10776 ac_cpp_err=
10777 fi
10778else
10779 ac_cpp_err=yes
10780fi
10781if test -z "$ac_cpp_err"; then
10782 :
10783else
10784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010785sed 's/^/| /' conftest.$ac_ext >&5
10786
John Criswell47fdd832003-07-14 16:52:07 +000010787 # Broken: fails on valid input.
10788continue
10789fi
10790rm -f conftest.err conftest.$ac_ext
10791
10792 # OK, works on sane cases. Now check whether non-existent headers
10793 # can be detected and how.
10794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010795/* confdefs.h. */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
10799/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010800#include <ac_nonexistent.h>
10801_ACEOF
10802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10804 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010805 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } >/dev/null; then
10810 if test -s conftest.err; then
10811 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010812 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010813 else
10814 ac_cpp_err=
10815 fi
10816else
10817 ac_cpp_err=yes
10818fi
10819if test -z "$ac_cpp_err"; then
10820 # Broken: success on invalid input.
10821continue
10822else
10823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010824sed 's/^/| /' conftest.$ac_ext >&5
10825
John Criswell47fdd832003-07-14 16:52:07 +000010826 # Passes both tests.
10827ac_preproc_ok=:
10828break
10829fi
10830rm -f conftest.err conftest.$ac_ext
10831
10832done
10833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10834rm -f conftest.err conftest.$ac_ext
10835if $ac_preproc_ok; then
10836 :
10837else
John Criswell0c38eaf2003-09-10 15:17:25 +000010838 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10839See \`config.log' for more details." >&5
10840echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10841See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010842 { (exit 1); exit 1; }; }
10843fi
10844
10845ac_ext=cc
10846ac_cpp='$CXXCPP $CPPFLAGS'
10847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10850
Reid Spencer2706f8c2004-09-19 23:53:36 +000010851fi
10852
John Criswell47fdd832003-07-14 16:52:07 +000010853
10854ac_ext=f
10855ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10856ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10857ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10858if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010859 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 +000010860 do
10861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10862set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10863echo "$as_me:$LINENO: checking for $ac_word" >&5
10864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10865if test "${ac_cv_prog_F77+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867else
10868 if test -n "$F77"; then
10869 ac_cv_prog_F77="$F77" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10878 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 break 2
10881 fi
10882done
10883done
10884
10885fi
10886fi
10887F77=$ac_cv_prog_F77
10888if test -n "$F77"; then
10889 echo "$as_me:$LINENO: result: $F77" >&5
10890echo "${ECHO_T}$F77" >&6
10891else
10892 echo "$as_me:$LINENO: result: no" >&5
10893echo "${ECHO_T}no" >&6
10894fi
10895
10896 test -n "$F77" && break
10897 done
10898fi
10899if test -z "$F77"; then
10900 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010901 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 +000010902do
10903 # Extract the first word of "$ac_prog", so it can be a program name with args.
10904set dummy $ac_prog; ac_word=$2
10905echo "$as_me:$LINENO: checking for $ac_word" >&5
10906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10907if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909else
10910 if test -n "$ac_ct_F77"; then
10911 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10912else
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10920 ac_cv_prog_ac_ct_F77="$ac_prog"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925done
10926
10927fi
10928fi
10929ac_ct_F77=$ac_cv_prog_ac_ct_F77
10930if test -n "$ac_ct_F77"; then
10931 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10932echo "${ECHO_T}$ac_ct_F77" >&6
10933else
10934 echo "$as_me:$LINENO: result: no" >&5
10935echo "${ECHO_T}no" >&6
10936fi
10937
10938 test -n "$ac_ct_F77" && break
10939done
10940
10941 F77=$ac_ct_F77
10942fi
10943
10944
10945# Provide some information about the compiler.
Reid Spencer54d14482006-04-07 16:01:51 +000010946echo "$as_me:10946:" \
John Criswell47fdd832003-07-14 16:52:07 +000010947 "checking for Fortran 77 compiler version" >&5
10948ac_compiler=`set X $ac_compile; echo $2`
10949{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10950 (eval $ac_compiler --version </dev/null >&5) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }
10954{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10955 (eval $ac_compiler -v </dev/null >&5) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }
10959{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10960 (eval $ac_compiler -V </dev/null >&5) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010964rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010965
10966# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010967# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010968ac_save_ext=$ac_ext
10969ac_ext=F
10970echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10971echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10972if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974else
10975 cat >conftest.$ac_ext <<_ACEOF
10976 program main
10977#ifndef __GNUC__
10978 choke me
10979#endif
10980
10981 end
10982_ACEOF
10983rm -f conftest.$ac_objext
10984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010985 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010986 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010992 { ac_try='test -z "$ac_f77_werror_flag"
10993 || test ! -s conftest.err'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_compiler_gnu=yes
11006else
11007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011008sed 's/^/| /' conftest.$ac_ext >&5
11009
John Criswell47fdd832003-07-14 16:52:07 +000011010ac_compiler_gnu=no
11011fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011013ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11014
11015fi
11016echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11017echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11018ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000011019ac_test_FFLAGS=${FFLAGS+set}
11020ac_save_FFLAGS=$FFLAGS
11021FFLAGS=
11022echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11023echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11024if test "${ac_cv_prog_f77_g+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026else
11027 FFLAGS=-g
11028cat >conftest.$ac_ext <<_ACEOF
11029 program main
11030
11031 end
11032_ACEOF
11033rm -f conftest.$ac_objext
11034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011035 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011042 { ac_try='test -z "$ac_f77_werror_flag"
11043 || test ! -s conftest.err'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_prog_f77_g=yes
11056else
11057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011058sed 's/^/| /' conftest.$ac_ext >&5
11059
John Criswell47fdd832003-07-14 16:52:07 +000011060ac_cv_prog_f77_g=no
11061fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011063
11064fi
11065echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11066echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11067if test "$ac_test_FFLAGS" = set; then
11068 FFLAGS=$ac_save_FFLAGS
11069elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011070 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011071 FFLAGS="-g -O2"
11072 else
11073 FFLAGS="-g"
11074 fi
11075else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011076 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011077 FFLAGS="-O2"
11078 else
11079 FFLAGS=
11080 fi
11081fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011082
11083G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011084ac_ext=c
11085ac_cpp='$CPP $CPPFLAGS'
11086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11088ac_compiler_gnu=$ac_cv_c_compiler_gnu
11089
11090
11091
11092# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11093
11094# find the maximum length of command line arguments
11095echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11096echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11097if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099else
11100 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011101 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011102
11103 case $build_os in
11104 msdosdjgpp*)
11105 # On DJGPP, this test can blow up pretty badly due to problems in libc
11106 # (any single argument exceeding 2000 bytes causes a buffer overrun
11107 # during glob expansion). Even if it were fixed, the result of this
11108 # check would be larger than it should be.
11109 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11110 ;;
11111
11112 gnu*)
11113 # Under GNU Hurd, this test is not required because there is
11114 # no limit to the length of command line arguments.
11115 # Libtool will interpret -1 as no limit whatsoever
11116 lt_cv_sys_max_cmd_len=-1;
11117 ;;
11118
11119 cygwin* | mingw*)
11120 # On Win9x/ME, this test blows up -- it succeeds, but takes
11121 # about 5 minutes as the teststring grows exponentially.
11122 # Worse, since 9x/ME are not pre-emptively multitasking,
11123 # you end up with a "frozen" computer, even though with patience
11124 # the test eventually succeeds (with a max line length of 256k).
11125 # Instead, let's just punt: use the minimum linelength reported by
11126 # all of the supported platforms: 8192 (on NT/2K/XP).
11127 lt_cv_sys_max_cmd_len=8192;
11128 ;;
11129
Reid Spencer2706f8c2004-09-19 23:53:36 +000011130 amigaos*)
11131 # On AmigaOS with pdksh, this test takes hours, literally.
11132 # So we just punt and use a minimum line length of 8192.
11133 lt_cv_sys_max_cmd_len=8192;
11134 ;;
11135
11136 netbsd* | freebsd* | openbsd* | darwin* )
11137 # This has been around since 386BSD, at least. Likely further.
11138 if test -x /sbin/sysctl; then
11139 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11140 elif test -x /usr/sbin/sysctl; then
11141 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11142 else
11143 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11144 fi
11145 # And add a safety zone
11146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11147 ;;
11148
John Criswell47fdd832003-07-14 16:52:07 +000011149 *)
11150 # If test is not a shell built-in, we'll probably end up computing a
11151 # maximum length that is only half of the actual maximum length, but
11152 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011153 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11154 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11155 = "XX$teststring") >/dev/null 2>&1 &&
11156 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011157 lt_cv_sys_max_cmd_len=$new_result &&
11158 test $i != 17 # 1/2 MB should be enough
11159 do
11160 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011161 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011162 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011163 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011164 # Add a significant safety factor because C++ compilers can tack on massive
11165 # amounts of additional arguments before passing them to the linker.
11166 # It appears as though 1/2 is a usable value.
11167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11168 ;;
11169 esac
11170
11171fi
11172
11173if test -n $lt_cv_sys_max_cmd_len ; then
11174 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11175echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11176else
11177 echo "$as_me:$LINENO: result: none" >&5
11178echo "${ECHO_T}none" >&6
11179fi
11180
11181
11182
11183
11184# Check for command to grab the raw symbol name followed by C symbol from nm.
11185echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11186echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11187if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190
11191# These are sane defaults that work on at least a few old systems.
11192# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11193
11194# Character class describing NM global symbol codes.
11195symcode='[BCDEGRST]'
11196
11197# Regexp to match symbols that can be accessed directly from C.
11198sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11199
11200# Transform the above into a raw symbol and a C symbol.
11201symxfrm='\1 \2\3 \3'
11202
11203# Transform an extracted symbol line into a proper C declaration
11204lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11205
11206# Transform an extracted symbol line into symbol name and symbol address
11207lt_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'"
11208
11209# Define system-specific variables.
11210case $host_os in
11211aix*)
11212 symcode='[BCDT]'
11213 ;;
11214cygwin* | mingw* | pw32*)
11215 symcode='[ABCDGISTW]'
11216 ;;
11217hpux*) # Its linker distinguishes data from code symbols
11218 if test "$host_cpu" = ia64; then
11219 symcode='[ABCDEGRST]'
11220 fi
11221 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11222 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'"
11223 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011224linux*)
11225 if test "$host_cpu" = ia64; then
11226 symcode='[ABCDGIRSTW]'
11227 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11228 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'"
11229 fi
11230 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011231irix* | nonstopux*)
11232 symcode='[BCDEGRST]'
11233 ;;
11234osf*)
11235 symcode='[BCDEGQRST]'
11236 ;;
11237solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011238 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011239 ;;
11240sysv4)
11241 symcode='[DFNSTU]'
11242 ;;
11243esac
11244
11245# Handle CRLF in mingw tool chain
11246opt_cr=
11247case $build_os in
11248mingw*)
11249 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11250 ;;
11251esac
11252
11253# If we're using GNU nm, then use its standard symbol codes.
11254case `$NM -V 2>&1` in
11255*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011256 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011257esac
11258
11259# Try without a prefix undercore, then with it.
11260for ac_symprfx in "" "_"; do
11261
11262 # Write the raw and C identifiers.
11263 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11264
11265 # Check to see that the pipe works correctly.
11266 pipe_works=no
11267
11268 rm -f conftest*
11269 cat > conftest.$ac_ext <<EOF
11270#ifdef __cplusplus
11271extern "C" {
11272#endif
11273char nm_test_var;
11274void nm_test_func(){}
11275#ifdef __cplusplus
11276}
11277#endif
11278int main(){nm_test_var='a';nm_test_func();return(0);}
11279EOF
11280
11281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; then
11286 # Now try to grab the symbols.
11287 nlist=conftest.nm
11288 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11289 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && test -s "$nlist"; then
11293 # Try sorting and uniquifying the output.
11294 if sort "$nlist" | uniq > "$nlist"T; then
11295 mv -f "$nlist"T "$nlist"
11296 else
11297 rm -f "$nlist"T
11298 fi
11299
11300 # Make sure that we snagged all the symbols we need.
11301 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11302 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11303 cat <<EOF > conftest.$ac_ext
11304#ifdef __cplusplus
11305extern "C" {
11306#endif
11307
11308EOF
11309 # Now generate the symbol file.
11310 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11311
11312 cat <<EOF >> conftest.$ac_ext
11313#if defined (__STDC__) && __STDC__
11314# define lt_ptr_t void *
11315#else
11316# define lt_ptr_t char *
11317# define const
11318#endif
11319
11320/* The mapping between symbol names and symbols. */
11321const struct {
11322 const char *name;
11323 lt_ptr_t address;
11324}
11325lt_preloaded_symbols[] =
11326{
11327EOF
11328 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11329 cat <<\EOF >> conftest.$ac_ext
11330 {0, (lt_ptr_t) 0}
11331};
11332
11333#ifdef __cplusplus
11334}
11335#endif
11336EOF
11337 # Now try linking the two files.
11338 mv conftest.$ac_objext conftstm.$ac_objext
11339 lt_save_LIBS="$LIBS"
11340 lt_save_CFLAGS="$CFLAGS"
11341 LIBS="conftstm.$ac_objext"
11342 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11344 (eval $ac_link) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11348 pipe_works=yes
11349 fi
11350 LIBS="$lt_save_LIBS"
11351 CFLAGS="$lt_save_CFLAGS"
11352 else
11353 echo "cannot find nm_test_func in $nlist" >&5
11354 fi
11355 else
11356 echo "cannot find nm_test_var in $nlist" >&5
11357 fi
11358 else
11359 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11360 fi
11361 else
11362 echo "$progname: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 fi
11365 rm -f conftest* conftst*
11366
11367 # Do not use the global_symbol_pipe unless it works.
11368 if test "$pipe_works" = yes; then
11369 break
11370 else
11371 lt_cv_sys_global_symbol_pipe=
11372 fi
11373done
11374
11375fi
11376
11377if test -z "$lt_cv_sys_global_symbol_pipe"; then
11378 lt_cv_sys_global_symbol_to_cdecl=
11379fi
11380if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11381 echo "$as_me:$LINENO: result: failed" >&5
11382echo "${ECHO_T}failed" >&6
11383else
11384 echo "$as_me:$LINENO: result: ok" >&5
11385echo "${ECHO_T}ok" >&6
11386fi
11387
11388echo "$as_me:$LINENO: checking for objdir" >&5
11389echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11390if test "${lt_cv_objdir+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392else
11393 rm -f .libs 2>/dev/null
11394mkdir .libs 2>/dev/null
11395if test -d .libs; then
11396 lt_cv_objdir=.libs
11397else
11398 # MS-DOS does not allow filenames that begin with a dot.
11399 lt_cv_objdir=_libs
11400fi
11401rmdir .libs 2>/dev/null
11402fi
11403echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11404echo "${ECHO_T}$lt_cv_objdir" >&6
11405objdir=$lt_cv_objdir
11406
11407
11408
11409
11410
11411case $host_os in
11412aix3*)
11413 # AIX sometimes has problems with the GCC collect2 program. For some
11414 # reason, if we set the COLLECT_NAMES environment variable, the problems
11415 # vanish in a puff of smoke.
11416 if test "X${COLLECT_NAMES+set}" != Xset; then
11417 COLLECT_NAMES=
11418 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011419 fi
11420 ;;
11421esac
11422
John Criswell47fdd832003-07-14 16:52:07 +000011423# Sed substitution that helps us do robust quoting. It backslashifies
11424# metacharacters that are still active within double-quoted strings.
11425Xsed='sed -e s/^X//'
11426sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11427
11428# Same as above, but do not quote variable references.
11429double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11430
11431# Sed substitution to delay expansion of an escaped shell variable in a
11432# double_quote_subst'ed string.
11433delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11434
11435# Sed substitution to avoid accidental globbing in evaled expressions
11436no_glob_subst='s/\*/\\\*/g'
11437
11438# Constants:
11439rm="rm -f"
11440
11441# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011442default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011443can_build_shared=yes
11444
11445# All known linkers require a `.a' archive for static linking (except M$VC,
11446# which needs '.lib').
11447libext=a
11448ltmain="$ac_aux_dir/ltmain.sh"
11449ofile="$default_ofile"
11450with_gnu_ld="$lt_cv_prog_gnu_ld"
11451
11452if test -n "$ac_tool_prefix"; then
11453 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11454set dummy ${ac_tool_prefix}ar; ac_word=$2
11455echo "$as_me:$LINENO: checking for $ac_word" >&5
11456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11457if test "${ac_cv_prog_AR+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459else
11460 if test -n "$AR"; then
11461 ac_cv_prog_AR="$AR" # Let the user override the test.
11462else
11463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464for as_dir in $PATH
11465do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470 ac_cv_prog_AR="${ac_tool_prefix}ar"
11471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11473 fi
11474done
11475done
11476
11477fi
11478fi
11479AR=$ac_cv_prog_AR
11480if test -n "$AR"; then
11481 echo "$as_me:$LINENO: result: $AR" >&5
11482echo "${ECHO_T}$AR" >&6
11483else
11484 echo "$as_me:$LINENO: result: no" >&5
11485echo "${ECHO_T}no" >&6
11486fi
11487
11488fi
11489if test -z "$ac_cv_prog_AR"; then
11490 ac_ct_AR=$AR
11491 # Extract the first word of "ar", so it can be a program name with args.
11492set dummy ar; ac_word=$2
11493echo "$as_me:$LINENO: checking for $ac_word" >&5
11494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11495if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 if test -n "$ac_ct_AR"; then
11499 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11500else
11501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502for as_dir in $PATH
11503do
11504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508 ac_cv_prog_ac_ct_AR="ar"
11509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 break 2
11511 fi
11512done
11513done
11514
11515 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11516fi
11517fi
11518ac_ct_AR=$ac_cv_prog_ac_ct_AR
11519if test -n "$ac_ct_AR"; then
11520 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11521echo "${ECHO_T}$ac_ct_AR" >&6
11522else
11523 echo "$as_me:$LINENO: result: no" >&5
11524echo "${ECHO_T}no" >&6
11525fi
11526
11527 AR=$ac_ct_AR
11528else
11529 AR="$ac_cv_prog_AR"
11530fi
11531
John Criswell7a73b802003-06-30 21:59:07 +000011532if test -n "$ac_tool_prefix"; then
11533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11534set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11535echo "$as_me:$LINENO: checking for $ac_word" >&5
11536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11537if test "${ac_cv_prog_RANLIB+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
11540 if test -n "$RANLIB"; then
11541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11542else
11543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544for as_dir in $PATH
11545do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11553 fi
11554done
11555done
11556
11557fi
11558fi
11559RANLIB=$ac_cv_prog_RANLIB
11560if test -n "$RANLIB"; then
11561 echo "$as_me:$LINENO: result: $RANLIB" >&5
11562echo "${ECHO_T}$RANLIB" >&6
11563else
11564 echo "$as_me:$LINENO: result: no" >&5
11565echo "${ECHO_T}no" >&6
11566fi
11567
11568fi
11569if test -z "$ac_cv_prog_RANLIB"; then
11570 ac_ct_RANLIB=$RANLIB
11571 # Extract the first word of "ranlib", so it can be a program name with args.
11572set dummy ranlib; ac_word=$2
11573echo "$as_me:$LINENO: checking for $ac_word" >&5
11574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11575if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577else
11578 if test -n "$ac_ct_RANLIB"; then
11579 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11580else
11581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582for as_dir in $PATH
11583do
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11588 ac_cv_prog_ac_ct_RANLIB="ranlib"
11589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11591 fi
11592done
11593done
11594
11595 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11596fi
11597fi
11598ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11599if test -n "$ac_ct_RANLIB"; then
11600 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11601echo "${ECHO_T}$ac_ct_RANLIB" >&6
11602else
11603 echo "$as_me:$LINENO: result: no" >&5
11604echo "${ECHO_T}no" >&6
11605fi
11606
11607 RANLIB=$ac_ct_RANLIB
11608else
11609 RANLIB="$ac_cv_prog_RANLIB"
11610fi
11611
11612if test -n "$ac_tool_prefix"; then
11613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11614set dummy ${ac_tool_prefix}strip; ac_word=$2
11615echo "$as_me:$LINENO: checking for $ac_word" >&5
11616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11617if test "${ac_cv_prog_STRIP+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619else
11620 if test -n "$STRIP"; then
11621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11622else
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11633 fi
11634done
11635done
11636
11637fi
11638fi
11639STRIP=$ac_cv_prog_STRIP
11640if test -n "$STRIP"; then
11641 echo "$as_me:$LINENO: result: $STRIP" >&5
11642echo "${ECHO_T}$STRIP" >&6
11643else
11644 echo "$as_me:$LINENO: result: no" >&5
11645echo "${ECHO_T}no" >&6
11646fi
11647
11648fi
11649if test -z "$ac_cv_prog_STRIP"; then
11650 ac_ct_STRIP=$STRIP
11651 # Extract the first word of "strip", so it can be a program name with args.
11652set dummy strip; ac_word=$2
11653echo "$as_me:$LINENO: checking for $ac_word" >&5
11654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11655if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 if test -n "$ac_ct_STRIP"; then
11659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11660else
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_prog_ac_ct_STRIP="strip"
11669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11671 fi
11672done
11673done
11674
11675 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11676fi
11677fi
11678ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11679if test -n "$ac_ct_STRIP"; then
11680 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11681echo "${ECHO_T}$ac_ct_STRIP" >&6
11682else
11683 echo "$as_me:$LINENO: result: no" >&5
11684echo "${ECHO_T}no" >&6
11685fi
11686
11687 STRIP=$ac_ct_STRIP
11688else
11689 STRIP="$ac_cv_prog_STRIP"
11690fi
11691
11692
John Criswell7a73b802003-06-30 21:59:07 +000011693old_CC="$CC"
11694old_CFLAGS="$CFLAGS"
11695
11696# Set sane defaults for various variables
11697test -z "$AR" && AR=ar
11698test -z "$AR_FLAGS" && AR_FLAGS=cru
11699test -z "$AS" && AS=as
11700test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011701test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011702test -z "$DLLTOOL" && DLLTOOL=dlltool
11703test -z "$LD" && LD=ld
11704test -z "$LN_S" && LN_S="ln -s"
11705test -z "$MAGIC_CMD" && MAGIC_CMD=file
11706test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011707test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011708test -z "$OBJDUMP" && OBJDUMP=objdump
11709test -z "$RANLIB" && RANLIB=:
11710test -z "$STRIP" && STRIP=:
11711test -z "$ac_objext" && ac_objext=o
11712
John Criswell7a73b802003-06-30 21:59:07 +000011713# Determine commands to create old-style static archives.
11714old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11715old_postinstall_cmds='chmod 644 $oldlib'
11716old_postuninstall_cmds=
11717
11718if test -n "$RANLIB"; then
11719 case $host_os in
11720 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011721 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011722 ;;
11723 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011724 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011725 ;;
11726 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011727 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011728fi
11729
Reid Spencer2706f8c2004-09-19 23:53:36 +000011730cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11731
John Criswell47fdd832003-07-14 16:52:07 +000011732# Only perform the check for file, if the check method requires it
11733case $deplibs_check_method in
11734file_magic*)
11735 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11736 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11737echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11738if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011740else
John Criswell47fdd832003-07-14 16:52:07 +000011741 case $MAGIC_CMD in
11742[\\/*] | ?:[\\/]*)
11743 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11744 ;;
11745*)
11746 lt_save_MAGIC_CMD="$MAGIC_CMD"
11747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11748 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11749 for ac_dir in $ac_dummy; do
11750 IFS="$lt_save_ifs"
11751 test -z "$ac_dir" && ac_dir=.
11752 if test -f $ac_dir/${ac_tool_prefix}file; then
11753 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11754 if test -n "$file_magic_test_file"; then
11755 case $deplibs_check_method in
11756 "file_magic "*)
11757 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11759 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11760 $EGREP "$file_magic_regex" > /dev/null; then
11761 :
11762 else
11763 cat <<EOF 1>&2
11764
11765*** Warning: the command libtool uses to detect shared libraries,
11766*** $file_magic_cmd, produces output that libtool cannot recognize.
11767*** The result is that libtool may fail to recognize shared libraries
11768*** as such. This will affect the creation of libtool libraries that
11769*** depend on shared libraries, but programs linked with such libtool
11770*** libraries will work regardless of this problem. Nevertheless, you
11771*** may want to report the problem to your system manager and/or to
11772*** bug-libtool@gnu.org
11773
11774EOF
11775 fi ;;
11776 esac
11777 fi
11778 break
11779 fi
11780 done
11781 IFS="$lt_save_ifs"
11782 MAGIC_CMD="$lt_save_MAGIC_CMD"
11783 ;;
11784esac
John Criswell7a73b802003-06-30 21:59:07 +000011785fi
John Criswell7a73b802003-06-30 21:59:07 +000011786
John Criswell47fdd832003-07-14 16:52:07 +000011787MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11788if test -n "$MAGIC_CMD"; then
11789 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11790echo "${ECHO_T}$MAGIC_CMD" >&6
11791else
11792 echo "$as_me:$LINENO: result: no" >&5
11793echo "${ECHO_T}no" >&6
11794fi
John Criswell7a73b802003-06-30 21:59:07 +000011795
John Criswell47fdd832003-07-14 16:52:07 +000011796if test -z "$lt_cv_path_MAGIC_CMD"; then
11797 if test -n "$ac_tool_prefix"; then
11798 echo "$as_me:$LINENO: checking for file" >&5
11799echo $ECHO_N "checking for file... $ECHO_C" >&6
11800if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803 case $MAGIC_CMD in
11804[\\/*] | ?:[\\/]*)
11805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11806 ;;
11807*)
11808 lt_save_MAGIC_CMD="$MAGIC_CMD"
11809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11810 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11811 for ac_dir in $ac_dummy; do
11812 IFS="$lt_save_ifs"
11813 test -z "$ac_dir" && ac_dir=.
11814 if test -f $ac_dir/file; then
11815 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11816 if test -n "$file_magic_test_file"; then
11817 case $deplibs_check_method in
11818 "file_magic "*)
11819 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11822 $EGREP "$file_magic_regex" > /dev/null; then
11823 :
11824 else
11825 cat <<EOF 1>&2
11826
11827*** Warning: the command libtool uses to detect shared libraries,
11828*** $file_magic_cmd, produces output that libtool cannot recognize.
11829*** The result is that libtool may fail to recognize shared libraries
11830*** as such. This will affect the creation of libtool libraries that
11831*** depend on shared libraries, but programs linked with such libtool
11832*** libraries will work regardless of this problem. Nevertheless, you
11833*** may want to report the problem to your system manager and/or to
11834*** bug-libtool@gnu.org
11835
11836EOF
11837 fi ;;
11838 esac
11839 fi
11840 break
11841 fi
11842 done
11843 IFS="$lt_save_ifs"
11844 MAGIC_CMD="$lt_save_MAGIC_CMD"
11845 ;;
11846esac
11847fi
11848
11849MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11850if test -n "$MAGIC_CMD"; then
11851 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11852echo "${ECHO_T}$MAGIC_CMD" >&6
11853else
11854 echo "$as_me:$LINENO: result: no" >&5
11855echo "${ECHO_T}no" >&6
11856fi
11857
11858 else
11859 MAGIC_CMD=:
11860 fi
11861fi
11862
11863 fi
11864 ;;
11865esac
11866
Reid Spencer17795972004-11-18 09:47:37 +000011867enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011868enable_win32_dll=no
11869
11870# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11871if test "${enable_libtool_lock+set}" = set; then
11872 enableval="$enable_libtool_lock"
11873
11874fi;
11875test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11876
John Criswell7a73b802003-06-30 21:59:07 +000011877
11878# Check whether --with-pic or --without-pic was given.
11879if test "${with_pic+set}" = set; then
11880 withval="$with_pic"
11881 pic_mode="$withval"
11882else
11883 pic_mode=default
11884fi;
11885test -z "$pic_mode" && pic_mode=default
11886
John Criswell47fdd832003-07-14 16:52:07 +000011887# Use C for the default configuration in the libtool script
11888tagname=
11889lt_save_CC="$CC"
11890ac_ext=c
11891ac_cpp='$CPP $CPPFLAGS'
11892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894ac_compiler_gnu=$ac_cv_c_compiler_gnu
11895
11896
11897# Source file extension for C test sources.
11898ac_ext=c
11899
11900# Object file extension for compiled C test sources.
11901objext=o
11902objext=$objext
11903
11904# Code to be used in simple compile tests
11905lt_simple_compile_test_code="int some_variable = 0;\n"
11906
11907# Code to be used in simple link tests
11908lt_simple_link_test_code='int main(){return(0);}\n'
11909
11910
11911# If no C compiler was specified, use CC.
11912LTCC=${LTCC-"$CC"}
11913
11914# Allow CC to be a program name with arguments.
11915compiler=$CC
11916
11917
11918#
11919# Check for any special shared library compilation flags.
11920#
11921lt_prog_cc_shlib=
11922if test "$GCC" = no; then
11923 case $host_os in
11924 sco3.2v5*)
11925 lt_prog_cc_shlib='-belf'
11926 ;;
11927 esac
11928fi
11929if test -n "$lt_prog_cc_shlib"; then
11930 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11931echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11932 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11933 else
11934 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11935echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11936 lt_cv_prog_cc_can_build_shared=no
11937 fi
11938fi
11939
11940
11941#
11942# Check to make sure the static flag actually works.
11943#
11944echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11945echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11946if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948else
John Criswell47fdd832003-07-14 16:52:07 +000011949 lt_prog_compiler_static_works=no
11950 save_LDFLAGS="$LDFLAGS"
11951 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11952 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11954 # The compiler can only warn and ignore the option if not recognized
11955 # So say no if there are warnings
11956 if test -s conftest.err; then
11957 # Append any errors to the config.log.
11958 cat conftest.err 1>&5
11959 else
11960 lt_prog_compiler_static_works=yes
11961 fi
11962 fi
11963 $rm conftest*
11964 LDFLAGS="$save_LDFLAGS"
11965
11966fi
11967echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11968echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11969
11970if test x"$lt_prog_compiler_static_works" = xyes; then
11971 :
11972else
11973 lt_prog_compiler_static=
11974fi
11975
11976
11977
John Criswell47fdd832003-07-14 16:52:07 +000011978
11979lt_prog_compiler_no_builtin_flag=
11980
11981if test "$GCC" = yes; then
11982 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11983
Reid Spencer2706f8c2004-09-19 23:53:36 +000011984
11985echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011986echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11987if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
11990 lt_cv_prog_compiler_rtti_exceptions=no
11991 ac_outfile=conftest.$ac_objext
11992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11993 lt_compiler_flag="-fno-rtti -fno-exceptions"
11994 # Insert the option either (1) after the last *FLAGS variable, or
11995 # (2) before a word containing "conftest.", or (3) at the end.
11996 # Note that $ac_compile itself does not contain backslashes and begins
11997 # with a dollar sign (not a hyphen), so the echo should work correctly.
11998 # The option is referenced via a variable to avoid confusing sed.
11999 lt_compile=`echo "$ac_compile" | $SED \
12000 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12002 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000012003 (eval echo "\"\$as_me:12003: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012004 (eval "$lt_compile" 2>conftest.err)
12005 ac_status=$?
12006 cat conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000012007 echo "$as_me:12007: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012008 if (exit $ac_status) && test -s "$ac_outfile"; then
12009 # The compiler can only warn and ignore the option if not recognized
12010 # So say no if there are warnings
12011 if test ! -s conftest.err; then
12012 lt_cv_prog_compiler_rtti_exceptions=yes
12013 fi
12014 fi
12015 $rm conftest*
12016
12017fi
12018echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12019echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12020
12021if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12022 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12023else
12024 :
12025fi
12026
12027fi
12028
12029lt_prog_compiler_wl=
12030lt_prog_compiler_pic=
12031lt_prog_compiler_static=
12032
12033echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12034echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012035
12036 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012037 lt_prog_compiler_wl='-Wl,'
12038 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012039
12040 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012041 aix*)
12042 # All AIX code is PIC.
12043 if test "$host_cpu" = ia64; then
12044 # AIX 5 now supports IA64 processor
12045 lt_prog_compiler_static='-Bstatic'
12046 fi
John Criswell7a73b802003-06-30 21:59:07 +000012047 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012048
John Criswell7a73b802003-06-30 21:59:07 +000012049 amigaos*)
12050 # FIXME: we need at least 68020 code to build shared libraries, but
12051 # adding the `-m68020' flag to GCC prevents building anything better,
12052 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012053 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012054 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012055
12056 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012057 # PIC is the default for these OSes.
12058 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012059
12060 mingw* | pw32* | os2*)
12061 # This hack is so that the source file can tell whether it is being
12062 # built for inclusion in a dll (and should export symbols for example).
12063 lt_prog_compiler_pic='-DDLL_EXPORT'
12064 ;;
12065
John Criswell7a73b802003-06-30 21:59:07 +000012066 darwin* | rhapsody*)
12067 # PIC is the default on this platform
12068 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012069 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012070 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012071
12072 msdosdjgpp*)
12073 # Just because we use GCC doesn't mean we suddenly get shared libraries
12074 # on systems that don't support them.
12075 lt_prog_compiler_can_build_shared=no
12076 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012077 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012078
John Criswell7a73b802003-06-30 21:59:07 +000012079 sysv4*MP*)
12080 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012081 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012082 fi
12083 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012084
12085 hpux*)
12086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12087 # not for PA HP-UX.
12088 case "$host_cpu" in
12089 hppa*64*|ia64*)
12090 # +Z the default
12091 ;;
12092 *)
12093 lt_prog_compiler_pic='-fPIC'
12094 ;;
12095 esac
12096 ;;
12097
John Criswell7a73b802003-06-30 21:59:07 +000012098 *)
John Criswell47fdd832003-07-14 16:52:07 +000012099 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012100 ;;
12101 esac
12102 else
John Criswell47fdd832003-07-14 16:52:07 +000012103 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012104 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012105 aix*)
12106 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012107 if test "$host_cpu" = ia64; then
12108 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012109 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012110 else
John Criswell47fdd832003-07-14 16:52:07 +000012111 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012112 fi
12113 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012114 darwin*)
12115 # PIC is the default on this platform
12116 # Common symbols not allowed in MH_DYLIB files
12117 case "$cc_basename" in
12118 xlc*)
12119 lt_prog_compiler_pic='-qnocommon'
12120 lt_prog_compiler_wl='-Wl,'
12121 ;;
12122 esac
12123 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012124
John Criswell47fdd832003-07-14 16:52:07 +000012125 mingw* | pw32* | os2*)
12126 # This hack is so that the source file can tell whether it is being
12127 # built for inclusion in a dll (and should export symbols for example).
12128 lt_prog_compiler_pic='-DDLL_EXPORT'
12129 ;;
12130
John Criswell7a73b802003-06-30 21:59:07 +000012131 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012132 lt_prog_compiler_wl='-Wl,'
12133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12134 # not for PA HP-UX.
12135 case "$host_cpu" in
12136 hppa*64*|ia64*)
12137 # +Z the default
12138 ;;
12139 *)
12140 lt_prog_compiler_pic='+Z'
12141 ;;
12142 esac
12143 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12144 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012145 ;;
12146
John Criswell47fdd832003-07-14 16:52:07 +000012147 irix5* | irix6* | nonstopux*)
12148 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012149 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012150 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012151 ;;
12152
12153 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012154 lt_prog_compiler_pic='-KPIC'
12155 lt_prog_compiler_static='-Bstatic'
12156 ;;
12157
12158 linux*)
12159 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012160 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012161 lt_prog_compiler_wl='-Wl,'
12162 lt_prog_compiler_pic='-KPIC'
12163 lt_prog_compiler_static='-static'
12164 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012165 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012166 lt_prog_compiler_wl='-Wl,'
12167 # All Alpha code is PIC.
12168 lt_prog_compiler_static='-non_shared'
12169 ;;
12170 esac
John Criswell7a73b802003-06-30 21:59:07 +000012171 ;;
12172
12173 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012174 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012175 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012176 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012177 ;;
12178
12179 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012180 lt_prog_compiler_pic='-Kpic'
12181 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012182 ;;
12183
12184 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012185 lt_prog_compiler_wl='-Wl,'
12186 lt_prog_compiler_pic='-KPIC'
12187 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012188 ;;
12189
12190 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012191 lt_prog_compiler_wl='-Qoption ld '
12192 lt_prog_compiler_pic='-PIC'
12193 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012194 ;;
12195
12196 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012197 lt_prog_compiler_wl='-Wl,'
12198 lt_prog_compiler_pic='-KPIC'
12199 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012200 ;;
12201
12202 sysv4*MP*)
12203 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012204 lt_prog_compiler_pic='-Kconform_pic'
12205 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012206 fi
12207 ;;
12208
John Criswell47fdd832003-07-14 16:52:07 +000012209 uts4*)
12210 lt_prog_compiler_pic='-pic'
12211 lt_prog_compiler_static='-Bstatic'
12212 ;;
12213
John Criswell7a73b802003-06-30 21:59:07 +000012214 *)
John Criswell47fdd832003-07-14 16:52:07 +000012215 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012216 ;;
12217 esac
12218 fi
12219
John Criswell47fdd832003-07-14 16:52:07 +000012220echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12221echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012222
John Criswell47fdd832003-07-14 16:52:07 +000012223#
12224# Check to make sure the PIC flag actually works.
12225#
12226if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012227
12228echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012229echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12230if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232else
John Criswell47fdd832003-07-14 16:52:07 +000012233 lt_prog_compiler_pic_works=no
12234 ac_outfile=conftest.$ac_objext
12235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12236 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12237 # Insert the option either (1) after the last *FLAGS variable, or
12238 # (2) before a word containing "conftest.", or (3) at the end.
12239 # Note that $ac_compile itself does not contain backslashes and begins
12240 # with a dollar sign (not a hyphen), so the echo should work correctly.
12241 # The option is referenced via a variable to avoid confusing sed.
12242 lt_compile=`echo "$ac_compile" | $SED \
12243 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12245 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000012246 (eval echo "\"\$as_me:12246: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012247 (eval "$lt_compile" 2>conftest.err)
12248 ac_status=$?
12249 cat conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000012250 echo "$as_me:12250: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012251 if (exit $ac_status) && test -s "$ac_outfile"; then
12252 # The compiler can only warn and ignore the option if not recognized
12253 # So say no if there are warnings
12254 if test ! -s conftest.err; then
12255 lt_prog_compiler_pic_works=yes
12256 fi
12257 fi
12258 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012259
John Criswell47fdd832003-07-14 16:52:07 +000012260fi
12261echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12262echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012263
John Criswell47fdd832003-07-14 16:52:07 +000012264if test x"$lt_prog_compiler_pic_works" = xyes; then
12265 case $lt_prog_compiler_pic in
12266 "" | " "*) ;;
12267 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12268 esac
John Criswell7a73b802003-06-30 21:59:07 +000012269else
John Criswell47fdd832003-07-14 16:52:07 +000012270 lt_prog_compiler_pic=
12271 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012272fi
12273
John Criswell7a73b802003-06-30 21:59:07 +000012274fi
John Criswell47fdd832003-07-14 16:52:07 +000012275case "$host_os" in
12276 # For platforms which do not support PIC, -DPIC is meaningless:
12277 *djgpp*)
12278 lt_prog_compiler_pic=
12279 ;;
12280 *)
12281 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12282 ;;
12283esac
John Criswell7a73b802003-06-30 21:59:07 +000012284
John Criswell7a73b802003-06-30 21:59:07 +000012285echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12286echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012287if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289else
John Criswell47fdd832003-07-14 16:52:07 +000012290 lt_cv_prog_compiler_c_o=no
12291 $rm -r conftest 2>/dev/null
12292 mkdir conftest
12293 cd conftest
12294 mkdir out
12295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012296
John Criswell47fdd832003-07-14 16:52:07 +000012297 lt_compiler_flag="-o out/conftest2.$ac_objext"
12298 # Insert the option either (1) after the last *FLAGS variable, or
12299 # (2) before a word containing "conftest.", or (3) at the end.
12300 # Note that $ac_compile itself does not contain backslashes and begins
12301 # with a dollar sign (not a hyphen), so the echo should work correctly.
12302 lt_compile=`echo "$ac_compile" | $SED \
12303 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12305 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000012306 (eval echo "\"\$as_me:12306: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012307 (eval "$lt_compile" 2>out/conftest.err)
12308 ac_status=$?
12309 cat out/conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000012310 echo "$as_me:12310: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12312 then
12313 # The compiler can only warn and ignore the option if not recognized
12314 # So say no if there are warnings
12315 if test ! -s out/conftest.err; then
12316 lt_cv_prog_compiler_c_o=yes
12317 fi
12318 fi
12319 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012320 $rm conftest*
12321 # SGI C++ compiler will create directory out/ii_files/ for
12322 # template instantiation
12323 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12324 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012325 cd ..
12326 rmdir conftest
12327 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012328
12329fi
John Criswell47fdd832003-07-14 16:52:07 +000012330echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12331echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012332
John Criswell7a73b802003-06-30 21:59:07 +000012333
John Criswell7a73b802003-06-30 21:59:07 +000012334hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012335if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012336 # do not overwrite the value of need_locks provided by the user
12337 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12338echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12339 hard_links=yes
12340 $rm conftest*
12341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12342 touch conftest.a
12343 ln conftest.a conftest.b 2>&5 || hard_links=no
12344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12345 echo "$as_me:$LINENO: result: $hard_links" >&5
12346echo "${ECHO_T}$hard_links" >&6
12347 if test "$hard_links" = no; then
12348 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12349echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12350 need_locks=warn
12351 fi
12352else
12353 need_locks=no
12354fi
John Criswell7a73b802003-06-30 21:59:07 +000012355
John Criswell47fdd832003-07-14 16:52:07 +000012356echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12357echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12358
12359 runpath_var=
12360 allow_undefined_flag=
12361 enable_shared_with_static_runtimes=no
12362 archive_cmds=
12363 archive_expsym_cmds=
12364 old_archive_From_new_cmds=
12365 old_archive_from_expsyms_cmds=
12366 export_dynamic_flag_spec=
12367 whole_archive_flag_spec=
12368 thread_safe_flag_spec=
12369 hardcode_libdir_flag_spec=
12370 hardcode_libdir_flag_spec_ld=
12371 hardcode_libdir_separator=
12372 hardcode_direct=no
12373 hardcode_minus_L=no
12374 hardcode_shlibpath_var=unsupported
12375 link_all_deplibs=unknown
12376 hardcode_automatic=no
12377 module_cmds=
12378 module_expsym_cmds=
12379 always_export_symbols=no
12380 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12381 # include_expsyms should be a list of space-separated symbols to be *always*
12382 # included in the symbol list
12383 include_expsyms=
12384 # exclude_expsyms can be an extended regexp of symbols to exclude
12385 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12386 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12387 # as well as any symbol that contains `d'.
12388 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12389 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12390 # platforms (ab)use it in PIC code, but their linkers get confused if
12391 # the symbol is explicitly referenced. Since portable code cannot
12392 # rely on this symbol name, it's probably fine to never include it in
12393 # preloaded symbol tables.
12394 extract_expsyms_cmds=
12395
12396 case $host_os in
12397 cygwin* | mingw* | pw32*)
12398 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12399 # When not using gcc, we currently assume that we are using
12400 # Microsoft Visual C++.
12401 if test "$GCC" != yes; then
12402 with_gnu_ld=no
12403 fi
12404 ;;
12405 openbsd*)
12406 with_gnu_ld=no
12407 ;;
12408 esac
12409
12410 ld_shlibs=yes
12411 if test "$with_gnu_ld" = yes; then
12412 # If archive_cmds runs LD, not CC, wlarc should be empty
12413 wlarc='${wl}'
12414
12415 # See if GNU ld supports shared libraries.
12416 case $host_os in
12417 aix3* | aix4* | aix5*)
12418 # On AIX/PPC, the GNU linker is very broken
12419 if test "$host_cpu" != ia64; then
12420 ld_shlibs=no
12421 cat <<EOF 1>&2
12422
12423*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12424*** to be unable to reliably create shared libraries on AIX.
12425*** Therefore, libtool is disabling shared libraries support. If you
12426*** really care for shared libraries, you may want to modify your PATH
12427*** so that a non-GNU linker is found, and then restart.
12428
12429EOF
12430 fi
12431 ;;
12432
12433 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012434 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 +000012435 hardcode_libdir_flag_spec='-L$libdir'
12436 hardcode_minus_L=yes
12437
12438 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12439 # that the semantics of dynamic libraries on AmigaOS, at least up
12440 # to version 4, is to share data among multiple programs linked
12441 # with the same dynamic library. Since this doesn't match the
12442 # behavior of shared libraries on other platforms, we can't use
12443 # them.
12444 ld_shlibs=no
12445 ;;
12446
12447 beos*)
12448 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12449 allow_undefined_flag=unsupported
12450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12451 # support --undefined. This deserves some investigation. FIXME
12452 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12453 else
12454 ld_shlibs=no
12455 fi
12456 ;;
12457
12458 cygwin* | mingw* | pw32*)
12459 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12460 # as there is no search path for DLLs.
12461 hardcode_libdir_flag_spec='-L$libdir'
12462 allow_undefined_flag=unsupported
12463 always_export_symbols=no
12464 enable_shared_with_static_runtimes=yes
12465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12466
12467 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12469 # If the export-symbols file already is a .def file (1st line
12470 # is EXPORTS), use it as is; otherwise, prepend...
12471 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12472 cp $export_symbols $output_objdir/$soname.def;
12473 else
12474 echo EXPORTS > $output_objdir/$soname.def;
12475 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012476 fi~
12477 $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 +000012478 else
12479 ld_shlibs=no
12480 fi
12481 ;;
12482
12483 netbsd*)
12484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12485 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12486 wlarc=
12487 else
12488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12490 fi
12491 ;;
12492
12493 solaris* | sysv5*)
12494 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12495 ld_shlibs=no
12496 cat <<EOF 1>&2
12497
12498*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12499*** create shared libraries on Solaris systems. Therefore, libtool
12500*** is disabling shared libraries support. We urge you to upgrade GNU
12501*** binutils to release 2.9.1 or newer. Another option is to modify
12502*** your PATH or compiler configuration so that the native linker is
12503*** used, and then restart.
12504
12505EOF
12506 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12509 else
12510 ld_shlibs=no
12511 fi
12512 ;;
12513
12514 sunos4*)
12515 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12516 wlarc=
12517 hardcode_direct=yes
12518 hardcode_shlibpath_var=no
12519 ;;
12520
Reid Spencer2706f8c2004-09-19 23:53:36 +000012521 linux*)
12522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12523 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12524 archive_cmds="$tmp_archive_cmds"
12525 supports_anon_versioning=no
12526 case `$LD -v 2>/dev/null` in
12527 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12528 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12529 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12530 *\ 2.11.*) ;; # other 2.11 versions
12531 *) supports_anon_versioning=yes ;;
12532 esac
12533 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012534 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12535cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12536$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012537 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12538 else
12539 archive_expsym_cmds="$tmp_archive_cmds"
12540 fi
12541 else
12542 ld_shlibs=no
12543 fi
12544 ;;
12545
John Criswell47fdd832003-07-14 16:52:07 +000012546 *)
12547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12550 else
12551 ld_shlibs=no
12552 fi
12553 ;;
12554 esac
12555
12556 if test "$ld_shlibs" = yes; then
12557 runpath_var=LD_RUN_PATH
12558 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12559 export_dynamic_flag_spec='${wl}--export-dynamic'
12560 # ancient GNU ld didn't support --whole-archive et. al.
12561 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12562 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12563 else
12564 whole_archive_flag_spec=
12565 fi
12566 fi
12567 else
12568 # PORTME fill in a description of your system's linker (not GNU ld)
12569 case $host_os in
12570 aix3*)
12571 allow_undefined_flag=unsupported
12572 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012573 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 +000012574 # Note: this linker hardcodes the directories in LIBPATH if there
12575 # are no directories specified by -L.
12576 hardcode_minus_L=yes
12577 if test "$GCC" = yes && test -z "$link_static_flag"; then
12578 # Neither direct hardcoding nor static linking is supported with a
12579 # broken collect2.
12580 hardcode_direct=unsupported
12581 fi
12582 ;;
12583
12584 aix4* | aix5*)
12585 if test "$host_cpu" = ia64; then
12586 # On IA64, the linker does run time linking by default, so we don't
12587 # have to do anything special.
12588 aix_use_runtimelinking=no
12589 exp_sym_flag='-Bexport'
12590 no_entry_flag=""
12591 else
12592 # If we're using GNU nm, then we don't want the "-C" option.
12593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12594 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12595 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'
12596 else
12597 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'
12598 fi
12599 aix_use_runtimelinking=no
12600
12601 # Test if we are trying to use run time linking or normal
12602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12603 # need to do runtime linking.
12604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12605 for ld_flag in $LDFLAGS; do
12606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12607 aix_use_runtimelinking=yes
12608 break
12609 fi
12610 done
12611 esac
12612
12613 exp_sym_flag='-bexport'
12614 no_entry_flag='-bnoentry'
12615 fi
12616
12617 # When large executables or shared objects are built, AIX ld can
12618 # have problems creating the table of contents. If linking a library
12619 # or program results in "error TOC overflow" add -mminimal-toc to
12620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12622
12623 archive_cmds=''
12624 hardcode_direct=yes
12625 hardcode_libdir_separator=':'
12626 link_all_deplibs=yes
12627
12628 if test "$GCC" = yes; then
12629 case $host_os in aix4.012|aix4.012.*)
12630 # We only want to do this on AIX 4.2 and lower, the check
12631 # below for broken collect2 doesn't work under 4.3+
12632 collect2name=`${CC} -print-prog-name=collect2`
12633 if test -f "$collect2name" && \
12634 strings "$collect2name" | grep resolve_lib_name >/dev/null
12635 then
12636 # We have reworked collect2
12637 hardcode_direct=yes
12638 else
12639 # We have old collect2
12640 hardcode_direct=unsupported
12641 # It fails to find uninstalled libraries when the uninstalled
12642 # path is not listed in the libpath. Setting hardcode_minus_L
12643 # to unsupported forces relinking
12644 hardcode_minus_L=yes
12645 hardcode_libdir_flag_spec='-L$libdir'
12646 hardcode_libdir_separator=
12647 fi
12648 esac
12649 shared_flag='-shared'
12650 else
12651 # not using gcc
12652 if test "$host_cpu" = ia64; then
12653 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12654 # chokes on -Wl,-G. The following line is correct:
12655 shared_flag='-G'
12656 else
12657 if test "$aix_use_runtimelinking" = yes; then
12658 shared_flag='${wl}-G'
12659 else
12660 shared_flag='${wl}-bM:SRE'
12661 fi
12662 fi
12663 fi
12664
12665 # It seems that -bexpall does not export symbols beginning with
12666 # underscore (_), so it is better to generate a list of symbols to export.
12667 always_export_symbols=yes
12668 if test "$aix_use_runtimelinking" = yes; then
12669 # Warning - without using the other runtime loading flags (-brtl),
12670 # -berok will link without error, but may produce a broken library.
12671 allow_undefined_flag='-berok'
12672 # Determine the default libpath from the value encoded in an empty executable.
12673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012674/* confdefs.h. */
12675_ACEOF
12676cat confdefs.h >>conftest.$ac_ext
12677cat >>conftest.$ac_ext <<_ACEOF
12678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012679
John Criswell7a73b802003-06-30 21:59:07 +000012680int
12681main ()
12682{
John Criswell47fdd832003-07-14 16:52:07 +000012683
John Criswell7a73b802003-06-30 21:59:07 +000012684 ;
12685 return 0;
12686}
12687_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012688rm -f conftest.$ac_objext conftest$ac_exeext
12689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012690 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012710
John Criswell47fdd832003-07-14 16:52:07 +000012711aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12712}'`
12713# Check for a 64-bit object if we didn't find anything.
12714if 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; }
12715}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012716else
12717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012718sed 's/^/| /' conftest.$ac_ext >&5
12719
John Criswell7a73b802003-06-30 21:59:07 +000012720fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012721rm -f conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012723if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012724
John Criswell47fdd832003-07-14 16:52:07 +000012725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12726 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"
12727 else
12728 if test "$host_cpu" = ia64; then
12729 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12730 allow_undefined_flag="-z nodefs"
12731 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"
12732 else
12733 # Determine the default libpath from the value encoded in an empty executable.
12734 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012735/* confdefs.h. */
12736_ACEOF
12737cat confdefs.h >>conftest.$ac_ext
12738cat >>conftest.$ac_ext <<_ACEOF
12739/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012740
John Criswell47fdd832003-07-14 16:52:07 +000012741int
12742main ()
12743{
John Criswell7a73b802003-06-30 21:59:07 +000012744
John Criswell47fdd832003-07-14 16:52:07 +000012745 ;
12746 return 0;
12747}
12748_ACEOF
12749rm -f conftest.$ac_objext conftest$ac_exeext
12750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012751 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012752 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012753 grep -v '^ *+' conftest.er1 >conftest.err
12754 rm -f conftest.er1
12755 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012758 { ac_try='test -z "$ac_c_werror_flag"
12759 || test ! -s conftest.err'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012771
John Criswell47fdd832003-07-14 16:52:07 +000012772aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12773}'`
12774# Check for a 64-bit object if we didn't find anything.
12775if 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; }
12776}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012777else
John Criswell47fdd832003-07-14 16:52:07 +000012778 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012779sed 's/^/| /' conftest.$ac_ext >&5
12780
John Criswell47fdd832003-07-14 16:52:07 +000012781fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012782rm -f conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012784if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012785
John Criswell47fdd832003-07-14 16:52:07 +000012786 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12787 # Warning - without using the other run time loading flags,
12788 # -berok will link without error, but may produce a broken library.
12789 no_undefined_flag=' ${wl}-bernotok'
12790 allow_undefined_flag=' ${wl}-berok'
12791 # -bexpall does not export symbols beginning with underscore (_)
12792 always_export_symbols=yes
12793 # Exported symbols can be pulled into shared objects from archives
12794 whole_archive_flag_spec=' '
12795 archive_cmds_need_lc=yes
12796 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012797 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 +000012798 fi
12799 fi
John Criswell7a73b802003-06-30 21:59:07 +000012800 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012801
12802 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012803 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 +000012804 hardcode_libdir_flag_spec='-L$libdir'
12805 hardcode_minus_L=yes
12806 # see comment about different semantics on the GNU ld section
12807 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012808 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012809
Reid Spencer2706f8c2004-09-19 23:53:36 +000012810 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012811 export_dynamic_flag_spec=-rdynamic
12812 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012813
John Criswell47fdd832003-07-14 16:52:07 +000012814 cygwin* | mingw* | pw32*)
12815 # When not using gcc, we currently assume that we are using
12816 # Microsoft Visual C++.
12817 # hardcode_libdir_flag_spec is actually meaningless, as there is
12818 # no search path for DLLs.
12819 hardcode_libdir_flag_spec=' '
12820 allow_undefined_flag=unsupported
12821 # Tell ltmain to make .lib files, not .a files.
12822 libext=lib
12823 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012824 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012825 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012826 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012827 # The linker will automatically build a .lib file if we build a DLL.
12828 old_archive_From_new_cmds='true'
12829 # FIXME: Should let the user specify the lib program.
12830 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12831 fix_srcfile_path='`cygpath -w "$srcfile"`'
12832 enable_shared_with_static_runtimes=yes
12833 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012834
John Criswell47fdd832003-07-14 16:52:07 +000012835 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012836 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012837 rhapsody* | darwin1.[012])
12838 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12839 ;;
12840 *) # Darwin 1.3 on
12841 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12842 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12843 else
12844 case ${MACOSX_DEPLOYMENT_TARGET} in
12845 10.[012])
12846 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12847 ;;
12848 10.*)
12849 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12850 ;;
12851 esac
12852 fi
12853 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012854 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012855 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012856 hardcode_direct=no
12857 hardcode_automatic=yes
12858 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012859 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012860 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012861 if test "$GCC" = yes ; then
12862 output_verbose_link_cmd='echo'
12863 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12864 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12865 # 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 +000012866 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}'
12867 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 +000012868 else
12869 case "$cc_basename" in
12870 xlc*)
12871 output_verbose_link_cmd='echo'
12872 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12873 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12874 # 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 +000012875 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}'
12876 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 +000012877 ;;
12878 *)
12879 ld_shlibs=no
12880 ;;
12881 esac
John Criswell7a73b802003-06-30 21:59:07 +000012882 fi
John Criswell47fdd832003-07-14 16:52:07 +000012883 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012884
John Criswell47fdd832003-07-14 16:52:07 +000012885 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012887 hardcode_libdir_flag_spec='-L$libdir'
12888 hardcode_shlibpath_var=no
12889 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012890
John Criswell47fdd832003-07-14 16:52:07 +000012891 freebsd1*)
12892 ld_shlibs=no
12893 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012894
John Criswell47fdd832003-07-14 16:52:07 +000012895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12896 # support. Future versions do this automatically, but an explicit c++rt0.o
12897 # does not break anything, and helps significantly (at the cost of a little
12898 # extra space).
12899 freebsd2.2*)
12900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12901 hardcode_libdir_flag_spec='-R$libdir'
12902 hardcode_direct=yes
12903 hardcode_shlibpath_var=no
12904 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012905
John Criswell47fdd832003-07-14 16:52:07 +000012906 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12907 freebsd2*)
12908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12909 hardcode_direct=yes
12910 hardcode_minus_L=yes
12911 hardcode_shlibpath_var=no
12912 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012913
John Criswell47fdd832003-07-14 16:52:07 +000012914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012915 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012916 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12917 hardcode_libdir_flag_spec='-R$libdir'
12918 hardcode_direct=yes
12919 hardcode_shlibpath_var=no
12920 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012921
John Criswell47fdd832003-07-14 16:52:07 +000012922 hpux9*)
12923 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012924 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 +000012925 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012926 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 +000012927 fi
12928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12929 hardcode_libdir_separator=:
12930 hardcode_direct=yes
12931
12932 # hardcode_minus_L: Not really in the search PATH,
12933 # but as the default location of the library.
12934 hardcode_minus_L=yes
12935 export_dynamic_flag_spec='${wl}-E'
12936 ;;
12937
12938 hpux10* | hpux11*)
12939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12940 case "$host_cpu" in
12941 hppa*64*|ia64*)
12942 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12943 ;;
12944 *)
12945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12946 ;;
12947 esac
12948 else
12949 case "$host_cpu" in
12950 hppa*64*|ia64*)
12951 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12952 ;;
12953 *)
12954 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12955 ;;
12956 esac
12957 fi
12958 if test "$with_gnu_ld" = no; then
12959 case "$host_cpu" in
12960 hppa*64*)
12961 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12962 hardcode_libdir_flag_spec_ld='+b $libdir'
12963 hardcode_libdir_separator=:
12964 hardcode_direct=no
12965 hardcode_shlibpath_var=no
12966 ;;
12967 ia64*)
12968 hardcode_libdir_flag_spec='-L$libdir'
12969 hardcode_direct=no
12970 hardcode_shlibpath_var=no
12971
12972 # hardcode_minus_L: Not really in the search PATH,
12973 # but as the default location of the library.
12974 hardcode_minus_L=yes
12975 ;;
12976 *)
12977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12978 hardcode_libdir_separator=:
12979 hardcode_direct=yes
12980 export_dynamic_flag_spec='${wl}-E'
12981
12982 # hardcode_minus_L: Not really in the search PATH,
12983 # but as the default location of the library.
12984 hardcode_minus_L=yes
12985 ;;
12986 esac
12987 fi
12988 ;;
12989
12990 irix5* | irix6* | nonstopux*)
12991 if test "$GCC" = yes; then
12992 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'
12993 else
12994 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'
12995 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12996 fi
12997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12998 hardcode_libdir_separator=:
12999 link_all_deplibs=yes
13000 ;;
13001
13002 netbsd*)
13003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13005 else
13006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13007 fi
13008 hardcode_libdir_flag_spec='-R$libdir'
13009 hardcode_direct=yes
13010 hardcode_shlibpath_var=no
13011 ;;
13012
13013 newsos6)
13014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13015 hardcode_direct=yes
13016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13017 hardcode_libdir_separator=:
13018 hardcode_shlibpath_var=no
13019 ;;
13020
13021 openbsd*)
13022 hardcode_direct=yes
13023 hardcode_shlibpath_var=no
13024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013026 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 +000013027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13028 export_dynamic_flag_spec='${wl}-E'
13029 else
13030 case $host_os in
13031 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13033 hardcode_libdir_flag_spec='-R$libdir'
13034 ;;
13035 *)
13036 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13037 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13038 ;;
13039 esac
13040 fi
13041 ;;
13042
13043 os2*)
13044 hardcode_libdir_flag_spec='-L$libdir'
13045 hardcode_minus_L=yes
13046 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013047 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 +000013048 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13049 ;;
13050
13051 osf3*)
13052 if test "$GCC" = yes; then
13053 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13054 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'
13055 else
13056 allow_undefined_flag=' -expect_unresolved \*'
13057 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'
13058 fi
13059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13060 hardcode_libdir_separator=:
13061 ;;
13062
13063 osf4* | osf5*) # as osf3* with the addition of -msym flag
13064 if test "$GCC" = yes; then
13065 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13066 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'
13067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13068 else
13069 allow_undefined_flag=' -expect_unresolved \*'
13070 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 +000013071 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13072 $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'
13073
John Criswell47fdd832003-07-14 16:52:07 +000013074 # Both c and cxx compiler support -rpath directly
13075 hardcode_libdir_flag_spec='-rpath $libdir'
13076 fi
13077 hardcode_libdir_separator=:
13078 ;;
13079
13080 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13082 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013083 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013084 runpath_var=LD_RUN_PATH
13085 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013086 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013087
John Criswell47fdd832003-07-14 16:52:07 +000013088 solaris*)
13089 no_undefined_flag=' -z text'
13090 if test "$GCC" = yes; then
13091 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013092 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13093 $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 +000013094 else
13095 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013096 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13097 $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 +000013098 fi
13099 hardcode_libdir_flag_spec='-R$libdir'
13100 hardcode_shlibpath_var=no
13101 case $host_os in
13102 solaris2.[0-5] | solaris2.[0-5].*) ;;
13103 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13104 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13105 esac
13106 link_all_deplibs=yes
13107 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013108
John Criswell47fdd832003-07-14 16:52:07 +000013109 sunos4*)
13110 if test "x$host_vendor" = xsequent; then
13111 # Use $CC to link under sequent, because it throws in some extra .o
13112 # files that make .init and .fini sections work.
13113 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13114 else
13115 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13116 fi
13117 hardcode_libdir_flag_spec='-L$libdir'
13118 hardcode_direct=yes
13119 hardcode_minus_L=yes
13120 hardcode_shlibpath_var=no
13121 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013122
John Criswell47fdd832003-07-14 16:52:07 +000013123 sysv4)
13124 case $host_vendor in
13125 sni)
13126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13127 hardcode_direct=yes # is this really true???
13128 ;;
13129 siemens)
13130 ## LD is ld it makes a PLAMLIB
13131 ## CC just makes a GrossModule.
13132 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13133 reload_cmds='$CC -r -o $output$reload_objs'
13134 hardcode_direct=no
13135 ;;
13136 motorola)
13137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13138 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13139 ;;
13140 esac
13141 runpath_var='LD_RUN_PATH'
13142 hardcode_shlibpath_var=no
13143 ;;
13144
13145 sysv4.3*)
13146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13147 hardcode_shlibpath_var=no
13148 export_dynamic_flag_spec='-Bexport'
13149 ;;
13150
13151 sysv4*MP*)
13152 if test -d /usr/nec; then
13153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_shlibpath_var=no
13155 runpath_var=LD_RUN_PATH
13156 hardcode_runpath_var=yes
13157 ld_shlibs=yes
13158 fi
13159 ;;
13160
13161 sysv4.2uw2*)
13162 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13163 hardcode_direct=yes
13164 hardcode_minus_L=no
13165 hardcode_shlibpath_var=no
13166 hardcode_runpath_var=yes
13167 runpath_var=LD_RUN_PATH
13168 ;;
13169
13170 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13171 no_undefined_flag='${wl}-z ${wl}text'
13172 if test "$GCC" = yes; then
13173 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13174 else
13175 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13176 fi
13177 runpath_var='LD_RUN_PATH'
13178 hardcode_shlibpath_var=no
13179 ;;
13180
13181 sysv5*)
13182 no_undefined_flag=' -z text'
13183 # $CC -shared without GNU ld will not create a library from C++
13184 # object files and a static libstdc++, better avoid it by now
13185 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013186 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13187 $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 +000013188 hardcode_libdir_flag_spec=
13189 hardcode_shlibpath_var=no
13190 runpath_var='LD_RUN_PATH'
13191 ;;
13192
13193 uts4*)
13194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13195 hardcode_libdir_flag_spec='-L$libdir'
13196 hardcode_shlibpath_var=no
13197 ;;
13198
13199 *)
13200 ld_shlibs=no
13201 ;;
13202 esac
13203 fi
13204
John Criswell7a73b802003-06-30 21:59:07 +000013205echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13206echo "${ECHO_T}$ld_shlibs" >&6
13207test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013208
John Criswell47fdd832003-07-14 16:52:07 +000013209variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13210if test "$GCC" = yes; then
13211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13212fi
13213
13214#
13215# Do we need to explicitly link libc?
13216#
13217case "x$archive_cmds_need_lc" in
13218x|xyes)
13219 # Assume -lc should be added
13220 archive_cmds_need_lc=yes
13221
13222 if test "$enable_shared" = yes && test "$GCC" = yes; then
13223 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013224 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013225 # FIXME: we may have to deal with multi-command sequences.
13226 ;;
13227 '$CC '*)
13228 # Test whether the compiler implicitly links with -lc since on some
13229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13230 # to ld, don't add -lc before -lgcc.
13231 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13232echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13233 $rm conftest*
13234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13235
13236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237 (eval $ac_compile) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } 2>conftest.err; then
13241 soname=conftest
13242 lib=conftest
13243 libobjs=conftest.$ac_objext
13244 deplibs=
13245 wl=$lt_prog_compiler_wl
13246 compiler_flags=-v
13247 linker_flags=-v
13248 verstring=
13249 output_objdir=.
13250 libname=conftest
13251 lt_save_allow_undefined_flag=$allow_undefined_flag
13252 allow_undefined_flag=
13253 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13254 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }
13258 then
13259 archive_cmds_need_lc=no
13260 else
13261 archive_cmds_need_lc=yes
13262 fi
13263 allow_undefined_flag=$lt_save_allow_undefined_flag
13264 else
13265 cat conftest.err 1>&5
13266 fi
13267 $rm conftest*
13268 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13269echo "${ECHO_T}$archive_cmds_need_lc" >&6
13270 ;;
13271 esac
13272 fi
13273 ;;
13274esac
13275
John Criswell7a73b802003-06-30 21:59:07 +000013276echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13277echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13278library_names_spec=
13279libname_spec='lib$name'
13280soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013281shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013282postinstall_cmds=
13283postuninstall_cmds=
13284finish_cmds=
13285finish_eval=
13286shlibpath_var=
13287shlibpath_overrides_runpath=unknown
13288version_type=none
13289dynamic_linker="$host_os ld.so"
13290sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013291if test "$GCC" = yes; then
13292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13293 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13294 # if the path contains ";" then we assume it to be the separator
13295 # otherwise default to the standard path separator (i.e. ":") - it is
13296 # assumed that no part of a normal pathname contains ";" but that should
13297 # okay in the real world where ";" in dirpaths is itself problematic.
13298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13299 else
13300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13301 fi
13302else
13303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13304fi
13305need_lib_prefix=unknown
13306hardcode_into_libs=no
13307
13308# when you set need_version to no, make sure it does not cause -set_version
13309# flags to be left without arguments
13310need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013311
13312case $host_os in
13313aix3*)
13314 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013316 shlibpath_var=LIBPATH
13317
John Criswell47fdd832003-07-14 16:52:07 +000013318 # AIX 3 has no versioning support, so we append a major version to the name.
13319 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013320 ;;
13321
13322aix4* | aix5*)
13323 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013324 need_lib_prefix=no
13325 need_version=no
13326 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013327 if test "$host_cpu" = ia64; then
13328 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013330 shlibpath_var=LD_LIBRARY_PATH
13331 else
13332 # With GCC up to 2.95.x, collect2 would create an import file
13333 # for dependence libraries. The import file would start with
13334 # the line `#! .'. This would cause the generated library to
13335 # depend on `.', always an invalid library. This was fixed in
13336 # development snapshots of GCC prior to 3.0.
13337 case $host_os in
13338 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13340 echo ' yes '
13341 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13342 :
13343 else
13344 can_build_shared=no
13345 fi
13346 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013347 esac
John Criswell47fdd832003-07-14 16:52:07 +000013348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13349 # soname into executable. Probably we can add versioning support to
13350 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013351 if test "$aix_use_runtimelinking" = yes; then
13352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13353 # instead of lib<name>.a to let people know that these are not
13354 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013356 else
13357 # We preserve .a as extension for shared libraries through AIX4.2
13358 # and later when we are not doing run time linking.
13359 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013360 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013361 fi
13362 shlibpath_var=LIBPATH
13363 fi
13364 ;;
13365
13366amigaos*)
13367 library_names_spec='$libname.ixlibrary $libname.a'
13368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013369 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 +000013370 ;;
13371
13372beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013373 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013374 dynamic_linker="$host_os ld.so"
13375 shlibpath_var=LIBRARY_PATH
13376 ;;
13377
Reid Spencer2706f8c2004-09-19 23:53:36 +000013378bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013379 version_type=linux
13380 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13384 shlibpath_var=LD_LIBRARY_PATH
13385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013387 # the default ld.so.conf also contains /usr/contrib/lib and
13388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13389 # libtool to hard-code these into programs
13390 ;;
13391
13392cygwin* | mingw* | pw32*)
13393 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013394 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013395 need_version=no
13396 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013397
John Criswell7a73b802003-06-30 21:59:07 +000013398 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013399 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013400 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013402 postinstall_cmds='base_file=`basename \${file}`~
13403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13404 dldir=$destdir/`dirname \$dlpath`~
13405 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013406 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13408 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013409 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013410 shlibpath_overrides_runpath=yes
13411
13412 case $host_os in
13413 cygwin*)
13414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13415 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 +000013416 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013417 ;;
13418 mingw*)
13419 # MinGW DLLs use traditional 'lib' prefix
13420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13422 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13423 # It is most probably a Windows format PATH printed by
13424 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13425 # path with ; separators, and with drive letters. We can handle the
13426 # drive letters (cygwin fileutils understands them), so leave them,
13427 # especially as we might pass files found there to a mingw objdump,
13428 # which wouldn't understand a cygwinified path. Ahh.
13429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13430 else
13431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13432 fi
13433 ;;
13434 pw32*)
13435 # pw32 DLLs use 'pw' prefix rather than 'lib'
13436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13437 ;;
13438 esac
John Criswell7a73b802003-06-30 21:59:07 +000013439 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013440
John Criswell7a73b802003-06-30 21:59:07 +000013441 *)
John Criswell47fdd832003-07-14 16:52:07 +000013442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013443 ;;
13444 esac
13445 dynamic_linker='Win32 ld.exe'
13446 # FIXME: first we should search . and the directory the executable is in
13447 shlibpath_var=PATH
13448 ;;
13449
13450darwin* | rhapsody*)
13451 dynamic_linker="$host_os dyld"
13452 version_type=darwin
13453 need_lib_prefix=no
13454 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013455 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013456 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013457 shlibpath_overrides_runpath=yes
13458 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013459 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013460 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013461 if test "$GCC" = yes; then
13462 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"`
13463 else
13464 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013465 fi
13466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13467 ;;
13468
13469dgux*)
13470 version_type=linux
13471 need_lib_prefix=no
13472 need_version=no
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013476 ;;
13477
13478freebsd1*)
13479 dynamic_linker=no
13480 ;;
13481
Reid Spencer2706f8c2004-09-19 23:53:36 +000013482kfreebsd*-gnu)
13483 version_type=linux
13484 need_lib_prefix=no
13485 need_version=no
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13487 soname_spec='${libname}${release}${shared_ext}$major'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 shlibpath_overrides_runpath=no
13490 hardcode_into_libs=yes
13491 dynamic_linker='GNU ld.so'
13492 ;;
13493
John Criswell7a73b802003-06-30 21:59:07 +000013494freebsd*)
13495 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13496 version_type=freebsd-$objformat
13497 case $version_type in
13498 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013500 need_version=no
13501 need_lib_prefix=no
13502 ;;
13503 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013505 need_version=yes
13506 ;;
13507 esac
13508 shlibpath_var=LD_LIBRARY_PATH
13509 case $host_os in
13510 freebsd2*)
13511 shlibpath_overrides_runpath=yes
13512 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013513 freebsd3.01* | freebsdelf3.01*)
13514 shlibpath_overrides_runpath=yes
13515 hardcode_into_libs=yes
13516 ;;
13517 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013518 shlibpath_overrides_runpath=no
13519 hardcode_into_libs=yes
13520 ;;
13521 esac
13522 ;;
13523
13524gnu*)
13525 version_type=linux
13526 need_lib_prefix=no
13527 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13529 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013530 shlibpath_var=LD_LIBRARY_PATH
13531 hardcode_into_libs=yes
13532 ;;
13533
13534hpux9* | hpux10* | hpux11*)
13535 # Give a soname corresponding to the major version so that dld.sl refuses to
13536 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013537 version_type=sunos
13538 need_lib_prefix=no
13539 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013540 case "$host_cpu" in
13541 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013542 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013543 hardcode_into_libs=yes
13544 dynamic_linker="$host_os dld.so"
13545 shlibpath_var=LD_LIBRARY_PATH
13546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13548 soname_spec='${libname}${release}${shared_ext}$major'
13549 if test "X$HPUX_IA64_MODE" = X32; then
13550 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13551 else
13552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13553 fi
13554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13555 ;;
13556 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013557 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013558 hardcode_into_libs=yes
13559 dynamic_linker="$host_os dld.sl"
13560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563 soname_spec='${libname}${release}${shared_ext}$major'
13564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13566 ;;
13567 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013568 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013569 dynamic_linker="$host_os dld.sl"
13570 shlibpath_var=SHLIB_PATH
13571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec='${libname}${release}${shared_ext}$major'
13574 ;;
13575 esac
John Criswell7a73b802003-06-30 21:59:07 +000013576 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13577 postinstall_cmds='chmod 555 $lib'
13578 ;;
13579
John Criswell47fdd832003-07-14 16:52:07 +000013580irix5* | irix6* | nonstopux*)
13581 case $host_os in
13582 nonstopux*) version_type=nonstopux ;;
13583 *)
13584 if test "$lt_cv_prog_gnu_ld" = yes; then
13585 version_type=linux
13586 else
13587 version_type=irix
13588 fi ;;
13589 esac
John Criswell7a73b802003-06-30 21:59:07 +000013590 need_lib_prefix=no
13591 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013592 soname_spec='${libname}${release}${shared_ext}$major'
13593 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 +000013594 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013595 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013596 libsuff= shlibsuff=
13597 ;;
13598 *)
13599 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013600 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13601 libsuff= shlibsuff= libmagic=32-bit;;
13602 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13603 libsuff=32 shlibsuff=N32 libmagic=N32;;
13604 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13605 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013606 *) libsuff= shlibsuff= libmagic=never-match;;
13607 esac
13608 ;;
13609 esac
13610 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13611 shlibpath_overrides_runpath=no
13612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013614 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013615 ;;
13616
13617# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013618linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013619 dynamic_linker=no
13620 ;;
13621
13622# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013623linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013624 version_type=linux
13625 need_lib_prefix=no
13626 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 shlibpath_overrides_runpath=no
13632 # This implies no fast_install, which is unacceptable.
13633 # Some rework will be needed to allow for fast_install
13634 # before this can be enabled.
13635 hardcode_into_libs=yes
13636
Reid Spencer2706f8c2004-09-19 23:53:36 +000013637 # Append ld.so.conf contents to the search path
13638 if test -f /etc/ld.so.conf; then
13639 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13640 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13641 fi
13642
John Criswell7a73b802003-06-30 21:59:07 +000013643 # We used to test for /lib/ld.so.1 and disable shared libraries on
13644 # powerpc, because MkLinux only supported shared libraries with the
13645 # GNU dynamic linker. Since this was broken with cross compilers,
13646 # most powerpc-linux boxes support dynamic linking these days and
13647 # people can always --disable-shared, the test was removed, and we
13648 # assume the GNU/Linux dynamic linker is in use.
13649 dynamic_linker='GNU/Linux ld.so'
13650 ;;
13651
Reid Spencer2706f8c2004-09-19 23:53:36 +000013652knetbsd*-gnu)
13653 version_type=linux
13654 need_lib_prefix=no
13655 need_version=no
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13657 soname_spec='${libname}${release}${shared_ext}$major'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 shlibpath_overrides_runpath=no
13660 hardcode_into_libs=yes
13661 dynamic_linker='GNU ld.so'
13662 ;;
13663
John Criswell7a73b802003-06-30 21:59:07 +000013664netbsd*)
13665 version_type=sunos
13666 need_lib_prefix=no
13667 need_version=no
13668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13671 dynamic_linker='NetBSD (a.out) ld.so'
13672 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013674 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013675 dynamic_linker='NetBSD ld.elf_so'
13676 fi
13677 shlibpath_var=LD_LIBRARY_PATH
13678 shlibpath_overrides_runpath=yes
13679 hardcode_into_libs=yes
13680 ;;
13681
13682newsos6)
13683 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 shlibpath_overrides_runpath=yes
13687 ;;
13688
Reid Spencer2706f8c2004-09-19 23:53:36 +000013689nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013690 version_type=linux
13691 need_lib_prefix=no
13692 need_version=no
13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13694 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013695 shlibpath_var=LD_LIBRARY_PATH
13696 shlibpath_overrides_runpath=yes
13697 ;;
13698
13699openbsd*)
13700 version_type=sunos
13701 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013702 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13705 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013706 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 +000013707 case $host_os in
13708 openbsd2.[89] | openbsd2.[89].*)
13709 shlibpath_overrides_runpath=no
13710 ;;
13711 *)
13712 shlibpath_overrides_runpath=yes
13713 ;;
13714 esac
John Criswell7a73b802003-06-30 21:59:07 +000013715 else
13716 shlibpath_overrides_runpath=yes
13717 fi
John Criswell7a73b802003-06-30 21:59:07 +000013718 ;;
13719
13720os2*)
13721 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013722 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013723 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013724 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013725 dynamic_linker='OS/2 ld.exe'
13726 shlibpath_var=LIBPATH
13727 ;;
13728
13729osf3* | osf4* | osf5*)
13730 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013731 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013732 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013733 soname_spec='${libname}${release}${shared_ext}$major'
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013735 shlibpath_var=LD_LIBRARY_PATH
13736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13738 ;;
13739
13740sco3.2v5*)
13741 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013742 soname_spec='${libname}${release}${shared_ext}$major'
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013744 shlibpath_var=LD_LIBRARY_PATH
13745 ;;
13746
13747solaris*)
13748 version_type=linux
13749 need_lib_prefix=no
13750 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013753 shlibpath_var=LD_LIBRARY_PATH
13754 shlibpath_overrides_runpath=yes
13755 hardcode_into_libs=yes
13756 # ldd complains unless libraries are executable
13757 postinstall_cmds='chmod +x $lib'
13758 ;;
13759
13760sunos4*)
13761 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13764 shlibpath_var=LD_LIBRARY_PATH
13765 shlibpath_overrides_runpath=yes
13766 if test "$with_gnu_ld" = yes; then
13767 need_lib_prefix=no
13768 fi
13769 need_version=yes
13770 ;;
13771
13772sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13773 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013776 shlibpath_var=LD_LIBRARY_PATH
13777 case $host_vendor in
13778 sni)
13779 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013780 need_lib_prefix=no
13781 export_dynamic_flag_spec='${wl}-Blargedynsym'
13782 runpath_var=LD_RUN_PATH
13783 ;;
13784 siemens)
13785 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013786 ;;
13787 motorola)
13788 need_lib_prefix=no
13789 need_version=no
13790 shlibpath_overrides_runpath=no
13791 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13792 ;;
13793 esac
13794 ;;
13795
John Criswell7a73b802003-06-30 21:59:07 +000013796sysv4*MP*)
13797 if test -d /usr/nec ;then
13798 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013799 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13800 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013801 shlibpath_var=LD_LIBRARY_PATH
13802 fi
13803 ;;
13804
John Criswell47fdd832003-07-14 16:52:07 +000013805uts4*)
13806 version_type=linux
13807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13808 soname_spec='${libname}${release}${shared_ext}$major'
13809 shlibpath_var=LD_LIBRARY_PATH
13810 ;;
13811
John Criswell7a73b802003-06-30 21:59:07 +000013812*)
13813 dynamic_linker=no
13814 ;;
13815esac
13816echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13817echo "${ECHO_T}$dynamic_linker" >&6
13818test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013819
Reid Spencer2706f8c2004-09-19 23:53:36 +000013820echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13821echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13822hardcode_action=
13823if test -n "$hardcode_libdir_flag_spec" || \
13824 test -n "$runpath_var" || \
13825 test "X$hardcode_automatic" = "Xyes" ; then
13826
13827 # We can hardcode non-existant directories.
13828 if test "$hardcode_direct" != no &&
13829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13830 # have to relink, otherwise we might link with an installed library
13831 # when we should be linking with a yet-to-be-installed one
13832 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13833 test "$hardcode_minus_L" != no; then
13834 # Linking always hardcodes the temporary library directory.
13835 hardcode_action=relink
13836 else
13837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13838 hardcode_action=immediate
13839 fi
13840else
13841 # We cannot hardcode anything, or else we can only hardcode existing
13842 # directories.
13843 hardcode_action=unsupported
13844fi
13845echo "$as_me:$LINENO: result: $hardcode_action" >&5
13846echo "${ECHO_T}$hardcode_action" >&6
13847
13848if test "$hardcode_action" = relink; then
13849 # Fast installation is not supported
13850 enable_fast_install=no
13851elif test "$shlibpath_overrides_runpath" = yes ||
13852 test "$enable_shared" = no; then
13853 # Fast installation is not necessary
13854 enable_fast_install=needless
13855fi
13856
13857striplib=
13858old_striplib=
13859echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13860echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13861if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13862 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13863 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13864 echo "$as_me:$LINENO: result: yes" >&5
13865echo "${ECHO_T}yes" >&6
13866else
13867# FIXME - insert some real tests, host_os isn't really good enough
13868 case $host_os in
13869 darwin*)
13870 if test -n "$STRIP" ; then
13871 striplib="$STRIP -x"
13872 echo "$as_me:$LINENO: result: yes" >&5
13873echo "${ECHO_T}yes" >&6
13874 else
13875 echo "$as_me:$LINENO: result: no" >&5
13876echo "${ECHO_T}no" >&6
13877fi
13878 ;;
13879 *)
13880 echo "$as_me:$LINENO: result: no" >&5
13881echo "${ECHO_T}no" >&6
13882 ;;
13883 esac
13884fi
13885
John Criswell7a73b802003-06-30 21:59:07 +000013886if test "x$enable_dlopen" != xyes; then
13887 enable_dlopen=unknown
13888 enable_dlopen_self=unknown
13889 enable_dlopen_self_static=unknown
13890else
13891 lt_cv_dlopen=no
13892 lt_cv_dlopen_libs=
13893
13894 case $host_os in
13895 beos*)
13896 lt_cv_dlopen="load_add_on"
13897 lt_cv_dlopen_libs=
13898 lt_cv_dlopen_self=yes
13899 ;;
13900
John Criswell47fdd832003-07-14 16:52:07 +000013901 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013902 lt_cv_dlopen="LoadLibrary"
13903 lt_cv_dlopen_libs=
13904 ;;
13905
John Criswell47fdd832003-07-14 16:52:07 +000013906 cygwin*)
13907 lt_cv_dlopen="dlopen"
13908 lt_cv_dlopen_libs=
13909 ;;
13910
13911 darwin*)
13912 # if libdl is installed we need to link against it
13913 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13914echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13915if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13917else
13918 ac_check_lib_save_LIBS=$LIBS
13919LIBS="-ldl $LIBS"
13920cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013926
13927/* Override any gcc2 internal prototype to avoid an error. */
13928#ifdef __cplusplus
13929extern "C"
13930#endif
13931/* We use char because int might match the return type of a gcc2
13932 builtin and then its argument prototype would still apply. */
13933char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013934int
13935main ()
13936{
13937dlopen ();
13938 ;
13939 return 0;
13940}
13941_ACEOF
13942rm -f conftest.$ac_objext conftest$ac_exeext
13943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013944 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013945 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013951 { ac_try='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_lib_dl_dlopen=yes
13965else
13966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013967sed 's/^/| /' conftest.$ac_ext >&5
13968
John Criswell47fdd832003-07-14 16:52:07 +000013969ac_cv_lib_dl_dlopen=no
13970fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013971rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013973LIBS=$ac_check_lib_save_LIBS
13974fi
13975echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13976echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13977if test $ac_cv_lib_dl_dlopen = yes; then
13978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13979else
13980
13981 lt_cv_dlopen="dyld"
13982 lt_cv_dlopen_libs=
13983 lt_cv_dlopen_self=yes
13984
13985fi
13986
13987 ;;
13988
John Criswell7a73b802003-06-30 21:59:07 +000013989 *)
13990 echo "$as_me:$LINENO: checking for shl_load" >&5
13991echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13992if test "${ac_cv_func_shl_load+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994else
13995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014001/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003#define shl_load innocuous_shl_load
14004
John Criswell7a73b802003-06-30 21:59:07 +000014005/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014006 which can conflict with char shl_load (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014009
John Criswell0c38eaf2003-09-10 15:17:25 +000014010#ifdef __STDC__
14011# include <limits.h>
14012#else
14013# include <assert.h>
14014#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014015
14016#undef shl_load
14017
John Criswell7a73b802003-06-30 21:59:07 +000014018/* Override any gcc2 internal prototype to avoid an error. */
14019#ifdef __cplusplus
14020extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014021{
John Criswell7a73b802003-06-30 21:59:07 +000014022#endif
14023/* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14025char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014026/* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029#if defined (__stub_shl_load) || defined (__stub___shl_load)
14030choke me
14031#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014032char (*f) () = shl_load;
14033#endif
14034#ifdef __cplusplus
14035}
John Criswell7a73b802003-06-30 21:59:07 +000014036#endif
14037
John Criswell0c38eaf2003-09-10 15:17:25 +000014038int
14039main ()
14040{
14041return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014042 ;
14043 return 0;
14044}
14045_ACEOF
14046rm -f conftest.$ac_objext conftest$ac_exeext
14047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014048 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014055 { ac_try='test -z "$ac_c_werror_flag"
14056 || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_func_shl_load=yes
14069else
14070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014071sed 's/^/| /' conftest.$ac_ext >&5
14072
John Criswell7a73b802003-06-30 21:59:07 +000014073ac_cv_func_shl_load=no
14074fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014075rm -f conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014077fi
14078echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14079echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14080if test $ac_cv_func_shl_load = yes; then
14081 lt_cv_dlopen="shl_load"
14082else
14083 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14084echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14085if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087else
14088 ac_check_lib_save_LIBS=$LIBS
14089LIBS="-ldld $LIBS"
14090cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014096
14097/* Override any gcc2 internal prototype to avoid an error. */
14098#ifdef __cplusplus
14099extern "C"
14100#endif
14101/* We use char because int might match the return type of a gcc2
14102 builtin and then its argument prototype would still apply. */
14103char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014104int
14105main ()
14106{
14107shl_load ();
14108 ;
14109 return 0;
14110}
14111_ACEOF
14112rm -f conftest.$ac_objext conftest$ac_exeext
14113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014114 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014115 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014116 grep -v '^ *+' conftest.er1 >conftest.err
14117 rm -f conftest.er1
14118 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014121 { ac_try='test -z "$ac_c_werror_flag"
14122 || test ! -s conftest.err'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_lib_dld_shl_load=yes
14135else
14136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014137sed 's/^/| /' conftest.$ac_ext >&5
14138
John Criswell7a73b802003-06-30 21:59:07 +000014139ac_cv_lib_dld_shl_load=no
14140fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014141rm -f conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014143LIBS=$ac_check_lib_save_LIBS
14144fi
14145echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14146echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14147if test $ac_cv_lib_dld_shl_load = yes; then
14148 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14149else
14150 echo "$as_me:$LINENO: checking for dlopen" >&5
14151echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14152if test "${ac_cv_func_dlopen+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14154else
14155 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014156/* confdefs.h. */
14157_ACEOF
14158cat confdefs.h >>conftest.$ac_ext
14159cat >>conftest.$ac_ext <<_ACEOF
14160/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014161/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14163#define dlopen innocuous_dlopen
14164
John Criswell7a73b802003-06-30 21:59:07 +000014165/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014166 which can conflict with char dlopen (); below.
14167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14168 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014169
John Criswell0c38eaf2003-09-10 15:17:25 +000014170#ifdef __STDC__
14171# include <limits.h>
14172#else
14173# include <assert.h>
14174#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014175
14176#undef dlopen
14177
John Criswell7a73b802003-06-30 21:59:07 +000014178/* Override any gcc2 internal prototype to avoid an error. */
14179#ifdef __cplusplus
14180extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014181{
John Criswell7a73b802003-06-30 21:59:07 +000014182#endif
14183/* We use char because int might match the return type of a gcc2
14184 builtin and then its argument prototype would still apply. */
14185char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014186/* The GNU C library defines this for functions which it implements
14187 to always fail with ENOSYS. Some functions are actually named
14188 something starting with __ and the normal name is an alias. */
14189#if defined (__stub_dlopen) || defined (__stub___dlopen)
14190choke me
14191#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014192char (*f) () = dlopen;
14193#endif
14194#ifdef __cplusplus
14195}
John Criswell7a73b802003-06-30 21:59:07 +000014196#endif
14197
John Criswell0c38eaf2003-09-10 15:17:25 +000014198int
14199main ()
14200{
14201return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014202 ;
14203 return 0;
14204}
14205_ACEOF
14206rm -f conftest.$ac_objext conftest$ac_exeext
14207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014208 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014209 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014215 { ac_try='test -z "$ac_c_werror_flag"
14216 || test ! -s conftest.err'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_cv_func_dlopen=yes
14229else
14230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014231sed 's/^/| /' conftest.$ac_ext >&5
14232
John Criswell7a73b802003-06-30 21:59:07 +000014233ac_cv_func_dlopen=no
14234fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014235rm -f conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014237fi
14238echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14239echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14240if test $ac_cv_func_dlopen = yes; then
14241 lt_cv_dlopen="dlopen"
14242else
14243 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14244echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14245if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248 ac_check_lib_save_LIBS=$LIBS
14249LIBS="-ldl $LIBS"
14250cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014256
14257/* Override any gcc2 internal prototype to avoid an error. */
14258#ifdef __cplusplus
14259extern "C"
14260#endif
14261/* We use char because int might match the return type of a gcc2
14262 builtin and then its argument prototype would still apply. */
14263char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014264int
14265main ()
14266{
14267dlopen ();
14268 ;
14269 return 0;
14270}
14271_ACEOF
14272rm -f conftest.$ac_objext conftest$ac_exeext
14273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014274 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014275 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014281 { ac_try='test -z "$ac_c_werror_flag"
14282 || test ! -s conftest.err'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_cv_lib_dl_dlopen=yes
14295else
14296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014297sed 's/^/| /' conftest.$ac_ext >&5
14298
John Criswell7a73b802003-06-30 21:59:07 +000014299ac_cv_lib_dl_dlopen=no
14300fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014301rm -f conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014303LIBS=$ac_check_lib_save_LIBS
14304fi
14305echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14306echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14307if test $ac_cv_lib_dl_dlopen = yes; then
14308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14309else
14310 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14311echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14312if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314else
14315 ac_check_lib_save_LIBS=$LIBS
14316LIBS="-lsvld $LIBS"
14317cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014318/* confdefs.h. */
14319_ACEOF
14320cat confdefs.h >>conftest.$ac_ext
14321cat >>conftest.$ac_ext <<_ACEOF
14322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014323
14324/* Override any gcc2 internal prototype to avoid an error. */
14325#ifdef __cplusplus
14326extern "C"
14327#endif
14328/* We use char because int might match the return type of a gcc2
14329 builtin and then its argument prototype would still apply. */
14330char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014331int
14332main ()
14333{
14334dlopen ();
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339rm -f conftest.$ac_objext conftest$ac_exeext
14340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014341 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014348 { ac_try='test -z "$ac_c_werror_flag"
14349 || test ! -s conftest.err'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_cv_lib_svld_dlopen=yes
14362else
14363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014364sed 's/^/| /' conftest.$ac_ext >&5
14365
John Criswell7a73b802003-06-30 21:59:07 +000014366ac_cv_lib_svld_dlopen=no
14367fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014368rm -f conftest.err conftest.$ac_objext \
14369 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014370LIBS=$ac_check_lib_save_LIBS
14371fi
14372echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14373echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14374if test $ac_cv_lib_svld_dlopen = yes; then
14375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14376else
14377 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14378echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14379if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14381else
14382 ac_check_lib_save_LIBS=$LIBS
14383LIBS="-ldld $LIBS"
14384cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014385/* confdefs.h. */
14386_ACEOF
14387cat confdefs.h >>conftest.$ac_ext
14388cat >>conftest.$ac_ext <<_ACEOF
14389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014390
14391/* Override any gcc2 internal prototype to avoid an error. */
14392#ifdef __cplusplus
14393extern "C"
14394#endif
14395/* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14397char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014398int
14399main ()
14400{
14401dld_link ();
14402 ;
14403 return 0;
14404}
14405_ACEOF
14406rm -f conftest.$ac_objext conftest$ac_exeext
14407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014408 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014410 grep -v '^ *+' conftest.er1 >conftest.err
14411 rm -f conftest.er1
14412 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014415 { ac_try='test -z "$ac_c_werror_flag"
14416 || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_lib_dld_dld_link=yes
14429else
14430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014431sed 's/^/| /' conftest.$ac_ext >&5
14432
John Criswell7a73b802003-06-30 21:59:07 +000014433ac_cv_lib_dld_dld_link=no
14434fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014435rm -f conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014437LIBS=$ac_check_lib_save_LIBS
14438fi
14439echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14440echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14441if test $ac_cv_lib_dld_dld_link = yes; then
14442 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14443fi
14444
14445
14446fi
14447
14448
14449fi
14450
14451
14452fi
14453
14454
14455fi
14456
14457
14458fi
14459
14460 ;;
14461 esac
14462
14463 if test "x$lt_cv_dlopen" != xno; then
14464 enable_dlopen=yes
14465 else
14466 enable_dlopen=no
14467 fi
14468
14469 case $lt_cv_dlopen in
14470 dlopen)
14471 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014472 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014473
14474 save_LDFLAGS="$LDFLAGS"
14475 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14476
14477 save_LIBS="$LIBS"
14478 LIBS="$lt_cv_dlopen_libs $LIBS"
14479
14480 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14481echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14482if test "${lt_cv_dlopen_self+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485 if test "$cross_compiling" = yes; then :
14486 lt_cv_dlopen_self=cross
14487else
John Criswell47fdd832003-07-14 16:52:07 +000014488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014489 lt_status=$lt_dlunknown
14490 cat > conftest.$ac_ext <<EOF
Reid Spencer54d14482006-04-07 16:01:51 +000014491#line 14491 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014492#include "confdefs.h"
14493
14494#if HAVE_DLFCN_H
14495#include <dlfcn.h>
14496#endif
14497
14498#include <stdio.h>
14499
14500#ifdef RTLD_GLOBAL
14501# define LT_DLGLOBAL RTLD_GLOBAL
14502#else
14503# ifdef DL_GLOBAL
14504# define LT_DLGLOBAL DL_GLOBAL
14505# else
14506# define LT_DLGLOBAL 0
14507# endif
14508#endif
14509
14510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14511 find out it does not work in some platform. */
14512#ifndef LT_DLLAZY_OR_NOW
14513# ifdef RTLD_LAZY
14514# define LT_DLLAZY_OR_NOW RTLD_LAZY
14515# else
14516# ifdef DL_LAZY
14517# define LT_DLLAZY_OR_NOW DL_LAZY
14518# else
14519# ifdef RTLD_NOW
14520# define LT_DLLAZY_OR_NOW RTLD_NOW
14521# else
14522# ifdef DL_NOW
14523# define LT_DLLAZY_OR_NOW DL_NOW
14524# else
14525# define LT_DLLAZY_OR_NOW 0
14526# endif
14527# endif
14528# endif
14529# endif
14530#endif
14531
14532#ifdef __cplusplus
14533extern "C" void exit (int);
14534#endif
14535
14536void fnord() { int i=42;}
14537int main ()
14538{
14539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14540 int status = $lt_dlunknown;
14541
14542 if (self)
14543 {
14544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14546 /* dlclose (self); */
14547 }
14548
14549 exit (status);
14550}
14551EOF
14552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14553 (eval $ac_link) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14557 (./conftest; exit; ) 2>/dev/null
14558 lt_status=$?
14559 case x$lt_status in
14560 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14561 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14562 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14563 esac
14564 else :
14565 # compilation failed
14566 lt_cv_dlopen_self=no
14567 fi
14568fi
14569rm -fr conftest*
14570
14571
14572fi
14573echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14574echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14575
14576 if test "x$lt_cv_dlopen_self" = xyes; then
14577 LDFLAGS="$LDFLAGS $link_static_flag"
14578 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14579echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14580if test "${lt_cv_dlopen_self_static+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14582else
14583 if test "$cross_compiling" = yes; then :
14584 lt_cv_dlopen_self_static=cross
14585else
John Criswell47fdd832003-07-14 16:52:07 +000014586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014587 lt_status=$lt_dlunknown
14588 cat > conftest.$ac_ext <<EOF
Reid Spencer54d14482006-04-07 16:01:51 +000014589#line 14589 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014590#include "confdefs.h"
14591
14592#if HAVE_DLFCN_H
14593#include <dlfcn.h>
14594#endif
14595
14596#include <stdio.h>
14597
14598#ifdef RTLD_GLOBAL
14599# define LT_DLGLOBAL RTLD_GLOBAL
14600#else
14601# ifdef DL_GLOBAL
14602# define LT_DLGLOBAL DL_GLOBAL
14603# else
14604# define LT_DLGLOBAL 0
14605# endif
14606#endif
14607
14608/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14609 find out it does not work in some platform. */
14610#ifndef LT_DLLAZY_OR_NOW
14611# ifdef RTLD_LAZY
14612# define LT_DLLAZY_OR_NOW RTLD_LAZY
14613# else
14614# ifdef DL_LAZY
14615# define LT_DLLAZY_OR_NOW DL_LAZY
14616# else
14617# ifdef RTLD_NOW
14618# define LT_DLLAZY_OR_NOW RTLD_NOW
14619# else
14620# ifdef DL_NOW
14621# define LT_DLLAZY_OR_NOW DL_NOW
14622# else
14623# define LT_DLLAZY_OR_NOW 0
14624# endif
14625# endif
14626# endif
14627# endif
14628#endif
14629
14630#ifdef __cplusplus
14631extern "C" void exit (int);
14632#endif
14633
14634void fnord() { int i=42;}
14635int main ()
14636{
14637 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14638 int status = $lt_dlunknown;
14639
14640 if (self)
14641 {
14642 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14643 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14644 /* dlclose (self); */
14645 }
14646
14647 exit (status);
14648}
14649EOF
14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14655 (./conftest; exit; ) 2>/dev/null
14656 lt_status=$?
14657 case x$lt_status in
14658 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14659 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14660 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14661 esac
14662 else :
14663 # compilation failed
14664 lt_cv_dlopen_self_static=no
14665 fi
14666fi
14667rm -fr conftest*
14668
14669
14670fi
14671echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14672echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14673 fi
14674
14675 CPPFLAGS="$save_CPPFLAGS"
14676 LDFLAGS="$save_LDFLAGS"
14677 LIBS="$save_LIBS"
14678 ;;
14679 esac
14680
14681 case $lt_cv_dlopen_self in
14682 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14683 *) enable_dlopen_self=unknown ;;
14684 esac
14685
14686 case $lt_cv_dlopen_self_static in
14687 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14688 *) enable_dlopen_self_static=unknown ;;
14689 esac
14690fi
14691
14692
John Criswell47fdd832003-07-14 16:52:07 +000014693# Report which librarie types wil actually be built
14694echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14695echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14696echo "$as_me:$LINENO: result: $can_build_shared" >&5
14697echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014698
John Criswell47fdd832003-07-14 16:52:07 +000014699echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14700echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14701test "$can_build_shared" = "no" && enable_shared=no
14702
14703# On AIX, shared libraries and static libraries use the same namespace, and
14704# are all built from PIC.
14705case "$host_os" in
14706aix3*)
14707 test "$enable_shared" = yes && enable_static=no
14708 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014709 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014710 postinstall_cmds='$RANLIB $lib'
14711 fi
14712 ;;
14713
Reid Spencer2706f8c2004-09-19 23:53:36 +000014714aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014715 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14716 test "$enable_shared" = yes && enable_static=no
14717 fi
John Criswell7a73b802003-06-30 21:59:07 +000014718 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014719esac
14720echo "$as_me:$LINENO: result: $enable_shared" >&5
14721echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014722
John Criswell47fdd832003-07-14 16:52:07 +000014723echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14724echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14725# Make sure either enable_shared or enable_static is yes.
14726test "$enable_shared" = yes || enable_static=yes
14727echo "$as_me:$LINENO: result: $enable_static" >&5
14728echo "${ECHO_T}$enable_static" >&6
14729
14730# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014731# libtool distribution, otherwise you forgot to ship ltmain.sh
14732# with your package, and you will get complaints that there are
14733# no rules to generate ltmain.sh.
14734if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014735 # See if we are running on zsh, and set the options which allow our commands through
14736 # without removal of \ escapes.
14737 if test -n "${ZSH_VERSION+set}" ; then
14738 setopt NO_GLOB_SUBST
14739 fi
John Criswell7a73b802003-06-30 21:59:07 +000014740 # Now quote all the things that may contain metacharacters while being
14741 # careful not to overquote the AC_SUBSTed values. We take copies of the
14742 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014743 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14744 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014745 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14746 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14747 deplibs_check_method reload_flag reload_cmds need_locks \
14748 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14749 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014750 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014751 old_postinstall_cmds old_postuninstall_cmds \
14752 compiler \
14753 CC \
14754 LD \
14755 lt_prog_compiler_wl \
14756 lt_prog_compiler_pic \
14757 lt_prog_compiler_static \
14758 lt_prog_compiler_no_builtin_flag \
14759 export_dynamic_flag_spec \
14760 thread_safe_flag_spec \
14761 whole_archive_flag_spec \
14762 enable_shared_with_static_runtimes \
14763 old_archive_cmds \
14764 old_archive_from_new_cmds \
14765 predep_objects \
14766 postdep_objects \
14767 predeps \
14768 postdeps \
14769 compiler_lib_search_path \
14770 archive_cmds \
14771 archive_expsym_cmds \
14772 postinstall_cmds \
14773 postuninstall_cmds \
14774 old_archive_from_expsyms_cmds \
14775 allow_undefined_flag \
14776 no_undefined_flag \
14777 export_symbols_cmds \
14778 hardcode_libdir_flag_spec \
14779 hardcode_libdir_flag_spec_ld \
14780 hardcode_libdir_separator \
14781 hardcode_automatic \
14782 module_cmds \
14783 module_expsym_cmds \
14784 lt_cv_prog_compiler_c_o \
14785 exclude_expsyms \
14786 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014787
14788 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014789 old_archive_cmds | \
14790 old_archive_from_new_cmds | \
14791 archive_cmds | \
14792 archive_expsym_cmds | \
14793 module_cmds | \
14794 module_expsym_cmds | \
14795 old_archive_from_expsyms_cmds | \
14796 export_symbols_cmds | \
14797 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014798 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014799 old_postinstall_cmds | old_postuninstall_cmds | \
14800 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014801 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014802 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 +000014803 ;;
14804 *)
14805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14806 ;;
14807 esac
14808 done
14809
John Criswell47fdd832003-07-14 16:52:07 +000014810 case $lt_echo in
14811 *'\$0 --fallback-echo"')
14812 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14813 ;;
14814 esac
14815
14816cfgfile="${ofile}T"
14817 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14818 $rm -f "$cfgfile"
14819 { echo "$as_me:$LINENO: creating $ofile" >&5
14820echo "$as_me: creating $ofile" >&6;}
14821
14822 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014823#! $SHELL
14824
John Criswell47fdd832003-07-14 16:52:07 +000014825# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014826# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14827# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14828#
John Criswell47fdd832003-07-14 16:52:07 +000014829# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14830# Free Software Foundation, Inc.
14831#
14832# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014833# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14834#
14835# This program is free software; you can redistribute it and/or modify
14836# it under the terms of the GNU General Public License as published by
14837# the Free Software Foundation; either version 2 of the License, or
14838# (at your option) any later version.
14839#
14840# This program is distributed in the hope that it will be useful, but
14841# WITHOUT ANY WARRANTY; without even the implied warranty of
14842# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14843# General Public License for more details.
14844#
14845# You should have received a copy of the GNU General Public License
14846# along with this program; if not, write to the Free Software
14847# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14848#
14849# As a special exception to the GNU General Public License, if you
14850# distribute this file as part of a program that contains a
14851# configuration script generated by Autoconf, you may include it under
14852# the same distribution terms that you use for the rest of that program.
14853
John Criswell47fdd832003-07-14 16:52:07 +000014854# A sed program that does not truncate output.
14855SED=$lt_SED
14856
John Criswell7a73b802003-06-30 21:59:07 +000014857# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014858Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014859
14860# The HP-UX ksh and POSIX shell print the target directory to stdout
14861# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014862(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014863
John Criswell47fdd832003-07-14 16:52:07 +000014864# The names of the tagged configurations supported by this script.
14865available_tags=
14866
John Criswell7a73b802003-06-30 21:59:07 +000014867# ### BEGIN LIBTOOL CONFIG
14868
14869# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14870
14871# Shell to use when invoking shell scripts.
14872SHELL=$lt_SHELL
14873
14874# Whether or not to build shared libraries.
14875build_libtool_libs=$enable_shared
14876
14877# Whether or not to build static libraries.
14878build_old_libs=$enable_static
14879
14880# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014881build_libtool_need_lc=$archive_cmds_need_lc
14882
14883# Whether or not to disallow shared libs when runtime libs are static
14884allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014885
14886# Whether or not to optimize for fast installation.
14887fast_install=$enable_fast_install
14888
14889# The host system.
14890host_alias=$host_alias
14891host=$host
14892
14893# An echo program that does not interpret backslashes.
14894echo=$lt_echo
14895
14896# The archiver.
14897AR=$lt_AR
14898AR_FLAGS=$lt_AR_FLAGS
14899
John Criswell47fdd832003-07-14 16:52:07 +000014900# A C compiler.
14901LTCC=$lt_LTCC
14902
14903# A language-specific compiler.
14904CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014905
14906# Is the compiler the GNU C compiler?
14907with_gcc=$GCC
14908
John Criswell47fdd832003-07-14 16:52:07 +000014909# An ERE matcher.
14910EGREP=$lt_EGREP
14911
John Criswell7a73b802003-06-30 21:59:07 +000014912# The linker used to build libraries.
14913LD=$lt_LD
14914
14915# Whether we need hard or soft links.
14916LN_S=$lt_LN_S
14917
14918# A BSD-compatible nm program.
14919NM=$lt_NM
14920
14921# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014922STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014923
14924# Used to examine libraries when file_magic_cmd begins "file"
14925MAGIC_CMD=$MAGIC_CMD
14926
14927# Used on cygwin: DLL creation program.
14928DLLTOOL="$DLLTOOL"
14929
14930# Used on cygwin: object dumper.
14931OBJDUMP="$OBJDUMP"
14932
14933# Used on cygwin: assembler.
14934AS="$AS"
14935
14936# The name of the directory that contains temporary libtool files.
14937objdir=$objdir
14938
14939# How to create reloadable object files.
14940reload_flag=$lt_reload_flag
14941reload_cmds=$lt_reload_cmds
14942
14943# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014944wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014945
14946# Object file suffix (normally "o").
14947objext="$ac_objext"
14948
14949# Old archive suffix (normally "a").
14950libext="$libext"
14951
John Criswell47fdd832003-07-14 16:52:07 +000014952# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014953shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014954
John Criswell7a73b802003-06-30 21:59:07 +000014955# Executable file suffix (normally "").
14956exeext="$exeext"
14957
14958# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014959pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014960pic_mode=$pic_mode
14961
John Criswell47fdd832003-07-14 16:52:07 +000014962# What is the maximum length of a command?
14963max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014964
John Criswell47fdd832003-07-14 16:52:07 +000014965# Does compiler simultaneously support -c and -o options?
14966compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014967
14968# Must we lock files when doing compilation ?
14969need_locks=$lt_need_locks
14970
14971# Do we need the lib prefix for modules?
14972need_lib_prefix=$need_lib_prefix
14973
14974# Do we need a version for libraries?
14975need_version=$need_version
14976
14977# Whether dlopen is supported.
14978dlopen_support=$enable_dlopen
14979
14980# Whether dlopen of programs is supported.
14981dlopen_self=$enable_dlopen_self
14982
14983# Whether dlopen of statically linked programs is supported.
14984dlopen_self_static=$enable_dlopen_self_static
14985
14986# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014987link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014988
14989# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014990no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014991
14992# Compiler flag to allow reflexive dlopens.
14993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14994
14995# Compiler flag to generate shared objects directly from archives.
14996whole_archive_flag_spec=$lt_whole_archive_flag_spec
14997
14998# Compiler flag to generate thread-safe objects.
14999thread_safe_flag_spec=$lt_thread_safe_flag_spec
15000
15001# Library versioning type.
15002version_type=$version_type
15003
15004# Format of library name prefix.
15005libname_spec=$lt_libname_spec
15006
15007# List of archive names. First name is the real one, the rest are links.
15008# The last name is the one that the linker finds with -lNAME.
15009library_names_spec=$lt_library_names_spec
15010
15011# The coded name of the library, if different from the real name.
15012soname_spec=$lt_soname_spec
15013
15014# Commands used to build and install an old-style archive.
15015RANLIB=$lt_RANLIB
15016old_archive_cmds=$lt_old_archive_cmds
15017old_postinstall_cmds=$lt_old_postinstall_cmds
15018old_postuninstall_cmds=$lt_old_postuninstall_cmds
15019
15020# Create an old-style archive from a shared archive.
15021old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15022
15023# Create a temporary old-style archive to link instead of a shared archive.
15024old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15025
15026# Commands used to build and install a shared archive.
15027archive_cmds=$lt_archive_cmds
15028archive_expsym_cmds=$lt_archive_expsym_cmds
15029postinstall_cmds=$lt_postinstall_cmds
15030postuninstall_cmds=$lt_postuninstall_cmds
15031
John Criswell47fdd832003-07-14 16:52:07 +000015032# Commands used to build a loadable module (assumed same as above if empty)
15033module_cmds=$lt_module_cmds
15034module_expsym_cmds=$lt_module_expsym_cmds
15035
John Criswell7a73b802003-06-30 21:59:07 +000015036# Commands to strip libraries.
15037old_striplib=$lt_old_striplib
15038striplib=$lt_striplib
15039
John Criswell47fdd832003-07-14 16:52:07 +000015040# Dependencies to place before the objects being linked to create a
15041# shared library.
15042predep_objects=$lt_predep_objects
15043
15044# Dependencies to place after the objects being linked to create a
15045# shared library.
15046postdep_objects=$lt_postdep_objects
15047
15048# Dependencies to place before the objects being linked to create a
15049# shared library.
15050predeps=$lt_predeps
15051
15052# Dependencies to place after the objects being linked to create a
15053# shared library.
15054postdeps=$lt_postdeps
15055
15056# The library search path used internally by the compiler when linking
15057# a shared library.
15058compiler_lib_search_path=$lt_compiler_lib_search_path
15059
John Criswell7a73b802003-06-30 21:59:07 +000015060# Method to check whether dependent libraries are shared objects.
15061deplibs_check_method=$lt_deplibs_check_method
15062
15063# Command to use when deplibs_check_method == file_magic.
15064file_magic_cmd=$lt_file_magic_cmd
15065
15066# Flag that allows shared libraries with undefined symbols to be built.
15067allow_undefined_flag=$lt_allow_undefined_flag
15068
15069# Flag that forces no undefined symbols.
15070no_undefined_flag=$lt_no_undefined_flag
15071
15072# Commands used to finish a libtool library installation in a directory.
15073finish_cmds=$lt_finish_cmds
15074
15075# Same as above, but a single script fragment to be evaled but not shown.
15076finish_eval=$lt_finish_eval
15077
15078# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015080
15081# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015083
15084# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015085global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015086
15087# This is the shared library runtime path variable.
15088runpath_var=$runpath_var
15089
15090# This is the shared library path variable.
15091shlibpath_var=$shlibpath_var
15092
15093# Is shlibpath searched before the hard-coded library search path?
15094shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15095
15096# How to hardcode a shared library path into an executable.
15097hardcode_action=$hardcode_action
15098
15099# Whether we should hardcode library paths into libraries.
15100hardcode_into_libs=$hardcode_into_libs
15101
15102# Flag to hardcode \$libdir into a binary during linking.
15103# This must work even if \$libdir does not exist.
15104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15105
John Criswell47fdd832003-07-14 16:52:07 +000015106# If ld is used when linking, flag to hardcode \$libdir into
15107# a binary during linking. This must work even if \$libdir does
15108# not exist.
15109hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15110
John Criswell7a73b802003-06-30 21:59:07 +000015111# Whether we need a single -rpath flag with a separated argument.
15112hardcode_libdir_separator=$lt_hardcode_libdir_separator
15113
John Criswell47fdd832003-07-14 16:52:07 +000015114# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015115# resulting binary.
15116hardcode_direct=$hardcode_direct
15117
15118# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15119# resulting binary.
15120hardcode_minus_L=$hardcode_minus_L
15121
15122# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15123# the resulting binary.
15124hardcode_shlibpath_var=$hardcode_shlibpath_var
15125
John Criswell47fdd832003-07-14 16:52:07 +000015126# Set to yes if building a shared library automatically hardcodes DIR into the library
15127# and all subsequent libraries and executables linked against it.
15128hardcode_automatic=$hardcode_automatic
15129
John Criswell7a73b802003-06-30 21:59:07 +000015130# Variables whose values should be saved in libtool wrapper scripts and
15131# restored at relink time.
15132variables_saved_for_relink="$variables_saved_for_relink"
15133
15134# Whether libtool must link a program against all its dependency libraries.
15135link_all_deplibs=$link_all_deplibs
15136
15137# Compile-time system search path for libraries
15138sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15139
15140# Run-time system search path for libraries
15141sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15142
15143# Fix the shell variable \$srcfile for the compiler.
15144fix_srcfile_path="$fix_srcfile_path"
15145
15146# Set to yes if exported symbols are required.
15147always_export_symbols=$always_export_symbols
15148
15149# The commands to list exported symbols.
15150export_symbols_cmds=$lt_export_symbols_cmds
15151
15152# The commands to extract the exported symbol list from a shared archive.
15153extract_expsyms_cmds=$lt_extract_expsyms_cmds
15154
15155# Symbols that should not be listed in the preloaded symbols.
15156exclude_expsyms=$lt_exclude_expsyms
15157
15158# Symbols that must always be exported.
15159include_expsyms=$lt_include_expsyms
15160
15161# ### END LIBTOOL CONFIG
15162
15163__EOF__
15164
John Criswell47fdd832003-07-14 16:52:07 +000015165
John Criswell7a73b802003-06-30 21:59:07 +000015166 case $host_os in
15167 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015168 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015169
15170# AIX sometimes has problems with the GCC collect2 program. For some
15171# reason, if we set the COLLECT_NAMES environment variable, the problems
15172# vanish in a puff of smoke.
15173if test "X${COLLECT_NAMES+set}" != Xset; then
15174 COLLECT_NAMES=
15175 export COLLECT_NAMES
15176fi
15177EOF
15178 ;;
15179 esac
15180
John Criswell7a73b802003-06-30 21:59:07 +000015181 # We use sed instead of cat because bash on DJGPP gets confused if
15182 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15183 # text mode, it properly converts lines to CR/LF. This bash problem
15184 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015185 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015186
John Criswell47fdd832003-07-14 16:52:07 +000015187 mv -f "$cfgfile" "$ofile" || \
15188 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015189 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015190
15191else
15192 # If there is no Makefile yet, we rely on a make rule to execute
15193 # `config.status --recheck' to rerun these tests and create the
15194 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015195 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15196 if test -f "$ltmain_in"; then
15197 test -f Makefile && make "$ltmain"
15198 fi
John Criswell7a73b802003-06-30 21:59:07 +000015199fi
John Criswell7a73b802003-06-30 21:59:07 +000015200
15201
John Criswell47fdd832003-07-14 16:52:07 +000015202ac_ext=c
15203ac_cpp='$CPP $CPPFLAGS'
15204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15206ac_compiler_gnu=$ac_cv_c_compiler_gnu
15207
15208CC="$lt_save_CC"
15209
15210
15211# Check whether --with-tags or --without-tags was given.
15212if test "${with_tags+set}" = set; then
15213 withval="$with_tags"
15214 tagnames="$withval"
15215fi;
15216
15217if test -f "$ltmain" && test -n "$tagnames"; then
15218 if test ! -f "${ofile}"; then
15219 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15220echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15221 fi
15222
15223 if test -z "$LTCC"; then
15224 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15225 if test -z "$LTCC"; then
15226 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15227echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15228 else
15229 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15230echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15231 fi
15232 fi
15233
15234 # Extract list of available tagged configurations in $ofile.
15235 # Note that this assumes the entire list is on one line.
15236 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15237
15238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15239 for tagname in $tagnames; do
15240 IFS="$lt_save_ifs"
15241 # Check whether tagname contains only valid characters
15242 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15243 "") ;;
15244 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15245echo "$as_me: error: invalid tag name: $tagname" >&2;}
15246 { (exit 1); exit 1; }; }
15247 ;;
15248 esac
15249
15250 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15251 then
15252 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15253echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15254 { (exit 1); exit 1; }; }
15255 fi
15256
15257 # Update the list of available tags.
15258 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015259 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015260
15261 case $tagname in
15262 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015263 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15264 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15265 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015266 ac_ext=cc
15267ac_cpp='$CXXCPP $CPPFLAGS'
15268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15271
15272
15273
15274
15275archive_cmds_need_lc_CXX=no
15276allow_undefined_flag_CXX=
15277always_export_symbols_CXX=no
15278archive_expsym_cmds_CXX=
15279export_dynamic_flag_spec_CXX=
15280hardcode_direct_CXX=no
15281hardcode_libdir_flag_spec_CXX=
15282hardcode_libdir_flag_spec_ld_CXX=
15283hardcode_libdir_separator_CXX=
15284hardcode_minus_L_CXX=no
15285hardcode_automatic_CXX=no
15286module_cmds_CXX=
15287module_expsym_cmds_CXX=
15288link_all_deplibs_CXX=unknown
15289old_archive_cmds_CXX=$old_archive_cmds
15290no_undefined_flag_CXX=
15291whole_archive_flag_spec_CXX=
15292enable_shared_with_static_runtimes_CXX=no
15293
15294# Dependencies to place before and after the object being linked:
15295predep_objects_CXX=
15296postdep_objects_CXX=
15297predeps_CXX=
15298postdeps_CXX=
15299compiler_lib_search_path_CXX=
15300
15301# Source file extension for C++ test sources.
15302ac_ext=cc
15303
15304# Object file extension for compiled C++ test sources.
15305objext=o
15306objext_CXX=$objext
15307
15308# Code to be used in simple compile tests
15309lt_simple_compile_test_code="int some_variable = 0;\n"
15310
15311# Code to be used in simple link tests
15312lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15313
15314# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15315
15316# If no C compiler was specified, use CC.
15317LTCC=${LTCC-"$CC"}
15318
15319# Allow CC to be a program name with arguments.
15320compiler=$CC
15321
15322
15323# Allow CC to be a program name with arguments.
15324lt_save_CC=$CC
15325lt_save_LD=$LD
15326lt_save_GCC=$GCC
15327GCC=$GXX
15328lt_save_with_gnu_ld=$with_gnu_ld
15329lt_save_path_LD=$lt_cv_path_LD
15330if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15331 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15332else
15333 unset lt_cv_prog_gnu_ld
15334fi
15335if test -n "${lt_cv_path_LDCXX+set}"; then
15336 lt_cv_path_LD=$lt_cv_path_LDCXX
15337else
15338 unset lt_cv_path_LD
15339fi
15340test -z "${LDCXX+set}" || LD=$LDCXX
15341CC=${CXX-"c++"}
15342compiler=$CC
15343compiler_CXX=$CC
15344cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15345
15346# We don't want -fno-exception wen compiling C++ code, so set the
15347# no_builtin_flag separately
15348if test "$GXX" = yes; then
15349 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15350else
15351 lt_prog_compiler_no_builtin_flag_CXX=
15352fi
15353
15354if test "$GXX" = yes; then
15355 # Set up default GNU C++ configuration
15356
15357
15358# Check whether --with-gnu-ld or --without-gnu-ld was given.
15359if test "${with_gnu_ld+set}" = set; then
15360 withval="$with_gnu_ld"
15361 test "$withval" = no || with_gnu_ld=yes
15362else
15363 with_gnu_ld=no
15364fi;
15365ac_prog=ld
15366if test "$GCC" = yes; then
15367 # Check if gcc -print-prog-name=ld gives a path.
15368 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15369echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15370 case $host in
15371 *-*-mingw*)
15372 # gcc leaves a trailing carriage return which upsets mingw
15373 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15374 *)
15375 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15376 esac
15377 case $ac_prog in
15378 # Accept absolute paths.
15379 [\\/]* | ?:[\\/]*)
15380 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015381 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015382 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15383 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15384 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15385 done
15386 test -z "$LD" && LD="$ac_prog"
15387 ;;
15388 "")
15389 # If it fails, then pretend we aren't using GCC.
15390 ac_prog=ld
15391 ;;
15392 *)
15393 # If it is relative, then search for the first ld in PATH.
15394 with_gnu_ld=unknown
15395 ;;
15396 esac
15397elif test "$with_gnu_ld" = yes; then
15398 echo "$as_me:$LINENO: checking for GNU ld" >&5
15399echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15400else
15401 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15402echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15403fi
15404if test "${lt_cv_path_LD+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 if test -z "$LD"; then
15408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15409 for ac_dir in $PATH; do
15410 IFS="$lt_save_ifs"
15411 test -z "$ac_dir" && ac_dir=.
15412 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15413 lt_cv_path_LD="$ac_dir/$ac_prog"
15414 # Check to see if the program is GNU ld. I'd rather use --version,
15415 # but apparently some GNU ld's only accept -v.
15416 # Break only if it was the GNU/non-GNU ld that we prefer.
15417 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15418 *GNU* | *'with BFD'*)
15419 test "$with_gnu_ld" != no && break
15420 ;;
15421 *)
15422 test "$with_gnu_ld" != yes && break
15423 ;;
15424 esac
15425 fi
15426 done
15427 IFS="$lt_save_ifs"
15428else
15429 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15430fi
15431fi
15432
15433LD="$lt_cv_path_LD"
15434if test -n "$LD"; then
15435 echo "$as_me:$LINENO: result: $LD" >&5
15436echo "${ECHO_T}$LD" >&6
15437else
15438 echo "$as_me:$LINENO: result: no" >&5
15439echo "${ECHO_T}no" >&6
15440fi
15441test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15442echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15443 { (exit 1); exit 1; }; }
15444echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15445echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15446if test "${lt_cv_prog_gnu_ld+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15448else
15449 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015450case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015451*GNU* | *'with BFD'*)
15452 lt_cv_prog_gnu_ld=yes
15453 ;;
15454*)
15455 lt_cv_prog_gnu_ld=no
15456 ;;
15457esac
15458fi
15459echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15460echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15461with_gnu_ld=$lt_cv_prog_gnu_ld
15462
15463
15464
15465 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15466 # archiving commands below assume that GNU ld is being used.
15467 if test "$with_gnu_ld" = yes; then
15468 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15469 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'
15470
15471 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15473
15474 # If archive_cmds runs LD, not CC, wlarc should be empty
15475 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15476 # investigate it a little bit more. (MM)
15477 wlarc='${wl}'
15478
15479 # ancient GNU ld didn't support --whole-archive et. al.
15480 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15481 grep 'no-whole-archive' > /dev/null; then
15482 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15483 else
15484 whole_archive_flag_spec_CXX=
15485 fi
15486 else
15487 with_gnu_ld=no
15488 wlarc=
15489
15490 # A generic and very simple default shared library creation
15491 # command for GNU C++ for the case where it uses the native
15492 # linker, instead of GNU ld. If possible, this setting should
15493 # overridden to take advantage of the native linker features on
15494 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015495 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015496 fi
15497
15498 # Commands to make compiler produce verbose output that lists
15499 # what "hidden" libraries, object files and flags are used when
15500 # linking a shared library.
15501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15502
15503else
15504 GXX=no
15505 with_gnu_ld=no
15506 wlarc=
15507fi
15508
15509# PORTME: fill in a description of your system's C++ link characteristics
15510echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15511echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15512ld_shlibs_CXX=yes
15513case $host_os in
15514 aix3*)
15515 # FIXME: insert proper C++ library support
15516 ld_shlibs_CXX=no
15517 ;;
15518 aix4* | aix5*)
15519 if test "$host_cpu" = ia64; then
15520 # On IA64, the linker does run time linking by default, so we don't
15521 # have to do anything special.
15522 aix_use_runtimelinking=no
15523 exp_sym_flag='-Bexport'
15524 no_entry_flag=""
15525 else
15526 aix_use_runtimelinking=no
15527
15528 # Test if we are trying to use run time linking or normal
15529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15530 # need to do runtime linking.
15531 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15532 for ld_flag in $LDFLAGS; do
15533 case $ld_flag in
15534 *-brtl*)
15535 aix_use_runtimelinking=yes
15536 break
15537 ;;
15538 esac
15539 done
15540 esac
15541
15542 exp_sym_flag='-bexport'
15543 no_entry_flag='-bnoentry'
15544 fi
15545
15546 # When large executables or shared objects are built, AIX ld can
15547 # have problems creating the table of contents. If linking a library
15548 # or program results in "error TOC overflow" add -mminimal-toc to
15549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15551
15552 archive_cmds_CXX=''
15553 hardcode_direct_CXX=yes
15554 hardcode_libdir_separator_CXX=':'
15555 link_all_deplibs_CXX=yes
15556
15557 if test "$GXX" = yes; then
15558 case $host_os in aix4.012|aix4.012.*)
15559 # We only want to do this on AIX 4.2 and lower, the check
15560 # below for broken collect2 doesn't work under 4.3+
15561 collect2name=`${CC} -print-prog-name=collect2`
15562 if test -f "$collect2name" && \
15563 strings "$collect2name" | grep resolve_lib_name >/dev/null
15564 then
15565 # We have reworked collect2
15566 hardcode_direct_CXX=yes
15567 else
15568 # We have old collect2
15569 hardcode_direct_CXX=unsupported
15570 # It fails to find uninstalled libraries when the uninstalled
15571 # path is not listed in the libpath. Setting hardcode_minus_L
15572 # to unsupported forces relinking
15573 hardcode_minus_L_CXX=yes
15574 hardcode_libdir_flag_spec_CXX='-L$libdir'
15575 hardcode_libdir_separator_CXX=
15576 fi
15577 esac
15578 shared_flag='-shared'
15579 else
15580 # not using gcc
15581 if test "$host_cpu" = ia64; then
15582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15583 # chokes on -Wl,-G. The following line is correct:
15584 shared_flag='-G'
15585 else
15586 if test "$aix_use_runtimelinking" = yes; then
15587 shared_flag='${wl}-G'
15588 else
15589 shared_flag='${wl}-bM:SRE'
15590 fi
15591 fi
15592 fi
15593
15594 # It seems that -bexpall does not export symbols beginning with
15595 # underscore (_), so it is better to generate a list of symbols to export.
15596 always_export_symbols_CXX=yes
15597 if test "$aix_use_runtimelinking" = yes; then
15598 # Warning - without using the other runtime loading flags (-brtl),
15599 # -berok will link without error, but may produce a broken library.
15600 allow_undefined_flag_CXX='-berok'
15601 # Determine the default libpath from the value encoded in an empty executable.
15602 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015608
John Criswell47fdd832003-07-14 16:52:07 +000015609int
15610main ()
15611{
15612
15613 ;
15614 return 0;
15615}
15616_ACEOF
15617rm -f conftest.$ac_objext conftest$ac_exeext
15618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015619 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015626 { ac_try='test -z "$ac_cxx_werror_flag"
15627 || test ! -s conftest.err'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639
15640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15641}'`
15642# Check for a 64-bit object if we didn't find anything.
15643if 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; }
15644}'`; fi
15645else
15646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015647sed 's/^/| /' conftest.$ac_ext >&5
15648
John Criswell47fdd832003-07-14 16:52:07 +000015649fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015650rm -f conftest.err conftest.$ac_objext \
15651 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15653
15654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15655
15656 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"
15657 else
15658 if test "$host_cpu" = ia64; then
15659 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15660 allow_undefined_flag_CXX="-z nodefs"
15661 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"
15662 else
15663 # Determine the default libpath from the value encoded in an empty executable.
15664 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015665/* confdefs.h. */
15666_ACEOF
15667cat confdefs.h >>conftest.$ac_ext
15668cat >>conftest.$ac_ext <<_ACEOF
15669/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015670
John Criswell47fdd832003-07-14 16:52:07 +000015671int
15672main ()
15673{
15674
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679rm -f conftest.$ac_objext conftest$ac_exeext
15680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015681 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015682 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015683 grep -v '^ *+' conftest.er1 >conftest.err
15684 rm -f conftest.er1
15685 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015688 { ac_try='test -z "$ac_cxx_werror_flag"
15689 || test ! -s conftest.err'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; } &&
15695 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701
15702aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15703}'`
15704# Check for a 64-bit object if we didn't find anything.
15705if 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; }
15706}'`; fi
15707else
15708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015709sed 's/^/| /' conftest.$ac_ext >&5
15710
John Criswell47fdd832003-07-14 16:52:07 +000015711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015712rm -f conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015714if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15715
15716 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15717 # Warning - without using the other run time loading flags,
15718 # -berok will link without error, but may produce a broken library.
15719 no_undefined_flag_CXX=' ${wl}-bernotok'
15720 allow_undefined_flag_CXX=' ${wl}-berok'
15721 # -bexpall does not export symbols beginning with underscore (_)
15722 always_export_symbols_CXX=yes
15723 # Exported symbols can be pulled into shared objects from archives
15724 whole_archive_flag_spec_CXX=' '
15725 archive_cmds_need_lc_CXX=yes
15726 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015727 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 +000015728 fi
15729 fi
15730 ;;
15731 chorus*)
15732 case $cc_basename in
15733 *)
15734 # FIXME: insert proper C++ library support
15735 ld_shlibs_CXX=no
15736 ;;
15737 esac
15738 ;;
15739
Reid Spencer2706f8c2004-09-19 23:53:36 +000015740
John Criswell47fdd832003-07-14 16:52:07 +000015741 cygwin* | mingw* | pw32*)
15742 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15743 # as there is no search path for DLLs.
15744 hardcode_libdir_flag_spec_CXX='-L$libdir'
15745 allow_undefined_flag_CXX=unsupported
15746 always_export_symbols_CXX=no
15747 enable_shared_with_static_runtimes_CXX=yes
15748
15749 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15750 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'
15751 # If the export-symbols file already is a .def file (1st line
15752 # is EXPORTS), use it as is; otherwise, prepend...
15753 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15754 cp $export_symbols $output_objdir/$soname.def;
15755 else
15756 echo EXPORTS > $output_objdir/$soname.def;
15757 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015758 fi~
15759 $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 +000015760 else
15761 ld_shlibs_CXX=no
15762 fi
15763 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015764 darwin* | rhapsody*)
15765 case "$host_os" in
15766 rhapsody* | darwin1.[012])
15767 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15768 ;;
15769 *) # Darwin 1.3 on
15770 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15771 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15772 else
15773 case ${MACOSX_DEPLOYMENT_TARGET} in
15774 10.[012])
15775 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15776 ;;
15777 10.*)
15778 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15779 ;;
15780 esac
15781 fi
15782 ;;
15783 esac
15784 archive_cmds_need_lc_CXX=no
15785 hardcode_direct_CXX=no
15786 hardcode_automatic_CXX=yes
15787 hardcode_shlibpath_var_CXX=unsupported
15788 whole_archive_flag_spec_CXX=''
15789 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015790
Reid Spencer2706f8c2004-09-19 23:53:36 +000015791 if test "$GXX" = yes ; then
15792 lt_int_apple_cc_single_mod=no
15793 output_verbose_link_cmd='echo'
15794 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15795 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015796 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015797 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015798 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 +000015799 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015800 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 +000015801 fi
15802 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15804 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015805 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 +000015806 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015807 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 +000015808 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015809 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 +000015810 else
15811 case "$cc_basename" in
15812 xlc*)
15813 output_verbose_link_cmd='echo'
15814 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'
15815 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15816 # 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 +000015817 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}'
15818 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 +000015819 ;;
15820 *)
15821 ld_shlibs_CXX=no
15822 ;;
15823 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015824 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015825 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015826
15827 dgux*)
15828 case $cc_basename in
15829 ec++)
15830 # FIXME: insert proper C++ library support
15831 ld_shlibs_CXX=no
15832 ;;
15833 ghcx)
15834 # Green Hills C++ Compiler
15835 # FIXME: insert proper C++ library support
15836 ld_shlibs_CXX=no
15837 ;;
15838 *)
15839 # FIXME: insert proper C++ library support
15840 ld_shlibs_CXX=no
15841 ;;
15842 esac
15843 ;;
15844 freebsd12*)
15845 # C++ shared libraries reported to be fairly broken before switch to ELF
15846 ld_shlibs_CXX=no
15847 ;;
15848 freebsd-elf*)
15849 archive_cmds_need_lc_CXX=no
15850 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015851 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015852 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15853 # conventions
15854 ld_shlibs_CXX=yes
15855 ;;
15856 gnu*)
15857 ;;
15858 hpux9*)
15859 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15860 hardcode_libdir_separator_CXX=:
15861 export_dynamic_flag_spec_CXX='${wl}-E'
15862 hardcode_direct_CXX=yes
15863 hardcode_minus_L_CXX=yes # Not in the search PATH,
15864 # but as the default
15865 # location of the library.
15866
15867 case $cc_basename in
15868 CC)
15869 # FIXME: insert proper C++ library support
15870 ld_shlibs_CXX=no
15871 ;;
15872 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015873 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 +000015874 # Commands to make compiler produce verbose output that lists
15875 # what "hidden" libraries, object files and flags are used when
15876 # linking a shared library.
15877 #
15878 # There doesn't appear to be a way to prevent this compiler from
15879 # explicitly linking system object files so we need to strip them
15880 # from the output so that they don't get included in the library
15881 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015882 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 +000015883 ;;
15884 *)
15885 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015886 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 +000015887 else
15888 # FIXME: insert proper C++ library support
15889 ld_shlibs_CXX=no
15890 fi
15891 ;;
15892 esac
15893 ;;
15894 hpux10*|hpux11*)
15895 if test $with_gnu_ld = no; then
15896 case "$host_cpu" in
15897 hppa*64*)
15898 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15899 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15900 hardcode_libdir_separator_CXX=:
15901 ;;
15902 ia64*)
15903 hardcode_libdir_flag_spec_CXX='-L$libdir'
15904 ;;
15905 *)
15906 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15907 hardcode_libdir_separator_CXX=:
15908 export_dynamic_flag_spec_CXX='${wl}-E'
15909 ;;
15910 esac
15911 fi
15912 case "$host_cpu" in
15913 hppa*64*)
15914 hardcode_direct_CXX=no
15915 hardcode_shlibpath_var_CXX=no
15916 ;;
15917 ia64*)
15918 hardcode_direct_CXX=no
15919 hardcode_shlibpath_var_CXX=no
15920 hardcode_minus_L_CXX=yes # Not in the search PATH,
15921 # but as the default
15922 # location of the library.
15923 ;;
15924 *)
15925 hardcode_direct_CXX=yes
15926 hardcode_minus_L_CXX=yes # Not in the search PATH,
15927 # but as the default
15928 # location of the library.
15929 ;;
15930 esac
15931
15932 case $cc_basename in
15933 CC)
15934 # FIXME: insert proper C++ library support
15935 ld_shlibs_CXX=no
15936 ;;
15937 aCC)
15938 case "$host_cpu" in
15939 hppa*64*|ia64*)
15940 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15941 ;;
15942 *)
15943 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15944 ;;
15945 esac
15946 # Commands to make compiler produce verbose output that lists
15947 # what "hidden" libraries, object files and flags are used when
15948 # linking a shared library.
15949 #
15950 # There doesn't appear to be a way to prevent this compiler from
15951 # explicitly linking system object files so we need to strip them
15952 # from the output so that they don't get included in the library
15953 # dependencies.
15954 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'
15955 ;;
15956 *)
15957 if test "$GXX" = yes; then
15958 if test $with_gnu_ld = no; then
15959 case "$host_cpu" in
15960 ia64*|hppa*64*)
15961 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15962 ;;
15963 *)
15964 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'
15965 ;;
15966 esac
15967 fi
15968 else
15969 # FIXME: insert proper C++ library support
15970 ld_shlibs_CXX=no
15971 fi
15972 ;;
15973 esac
15974 ;;
15975 irix5* | irix6*)
15976 case $cc_basename in
15977 CC)
15978 # SGI C++
15979 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'
15980
15981 # Archives containing C++ object files must be created using
15982 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15983 # necessary to make sure instantiated templates are included
15984 # in the archive.
15985 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15986 ;;
15987 *)
15988 if test "$GXX" = yes; then
15989 if test "$with_gnu_ld" = no; then
15990 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'
15991 else
15992 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'
15993 fi
15994 fi
15995 link_all_deplibs_CXX=yes
15996 ;;
15997 esac
15998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15999 hardcode_libdir_separator_CXX=:
16000 ;;
16001 linux*)
16002 case $cc_basename in
16003 KCC)
16004 # Kuck and Associates, Inc. (KAI) C++ Compiler
16005
16006 # KCC will only create a shared library if the output file
16007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16008 # to its proper name (with version) after linking.
16009 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'
16010 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'
16011 # Commands to make compiler produce verbose output that lists
16012 # what "hidden" libraries, object files and flags are used when
16013 # linking a shared library.
16014 #
16015 # There doesn't appear to be a way to prevent this compiler from
16016 # explicitly linking system object files so we need to strip them
16017 # from the output so that they don't get included in the library
16018 # dependencies.
16019 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'
16020
16021 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16023
16024 # Archives containing C++ object files must be created using
16025 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16026 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16027 ;;
16028 icpc)
16029 # Intel C++
16030 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016031 # version 8.0 and above of icpc choke on multiply defined symbols
16032 # if we add $predep_objects and $postdep_objects, however 7.1 and
16033 # earlier do not add the objects themselves.
16034 case `$CC -V 2>&1` in
16035 *"Version 7."*)
16036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16037 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'
16038 ;;
16039 *) # Version 8.0 or newer
16040 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16042 ;;
16043 esac
John Criswell47fdd832003-07-14 16:52:07 +000016044 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16047 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16048 ;;
16049 cxx)
16050 # Compaq C++
16051 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16052 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'
16053
16054 runpath_var=LD_RUN_PATH
16055 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16056 hardcode_libdir_separator_CXX=:
16057
16058 # Commands to make compiler produce verbose output that lists
16059 # what "hidden" libraries, object files and flags are used when
16060 # linking a shared library.
16061 #
16062 # There doesn't appear to be a way to prevent this compiler from
16063 # explicitly linking system object files so we need to strip them
16064 # from the output so that they don't get included in the library
16065 # dependencies.
16066 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'
16067 ;;
16068 esac
16069 ;;
16070 lynxos*)
16071 # FIXME: insert proper C++ library support
16072 ld_shlibs_CXX=no
16073 ;;
16074 m88k*)
16075 # FIXME: insert proper C++ library support
16076 ld_shlibs_CXX=no
16077 ;;
16078 mvs*)
16079 case $cc_basename in
16080 cxx)
16081 # FIXME: insert proper C++ library support
16082 ld_shlibs_CXX=no
16083 ;;
16084 *)
16085 # FIXME: insert proper C++ library support
16086 ld_shlibs_CXX=no
16087 ;;
16088 esac
16089 ;;
16090 netbsd*)
16091 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16092 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16093 wlarc=
16094 hardcode_libdir_flag_spec_CXX='-R$libdir'
16095 hardcode_direct_CXX=yes
16096 hardcode_shlibpath_var_CXX=no
16097 fi
16098 # Workaround some broken pre-1.5 toolchains
16099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16100 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016101 openbsd2*)
16102 # C++ shared libraries are fairly broken
16103 ld_shlibs_CXX=no
16104 ;;
16105 openbsd*)
16106 hardcode_direct_CXX=yes
16107 hardcode_shlibpath_var_CXX=no
16108 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16111 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16112 export_dynamic_flag_spec_CXX='${wl}-E'
16113 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16114 fi
16115 output_verbose_link_cmd='echo'
16116 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016117 osf3*)
16118 case $cc_basename in
16119 KCC)
16120 # Kuck and Associates, Inc. (KAI) C++ Compiler
16121
16122 # KCC will only create a shared library if the output file
16123 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16124 # to its proper name (with version) after linking.
16125 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'
16126
16127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16128 hardcode_libdir_separator_CXX=:
16129
16130 # Archives containing C++ object files must be created using
16131 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16132 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16133
16134 ;;
16135 RCC)
16136 # Rational C++ 2.4.1
16137 # FIXME: insert proper C++ library support
16138 ld_shlibs_CXX=no
16139 ;;
16140 cxx)
16141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16142 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'
16143
16144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16145 hardcode_libdir_separator_CXX=:
16146
16147 # Commands to make compiler produce verbose output that lists
16148 # what "hidden" libraries, object files and flags are used when
16149 # linking a shared library.
16150 #
16151 # There doesn't appear to be a way to prevent this compiler from
16152 # explicitly linking system object files so we need to strip them
16153 # from the output so that they don't get included in the library
16154 # dependencies.
16155 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'
16156 ;;
16157 *)
16158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16160 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'
16161
16162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16163 hardcode_libdir_separator_CXX=:
16164
16165 # Commands to make compiler produce verbose output that lists
16166 # what "hidden" libraries, object files and flags are used when
16167 # linking a shared library.
16168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16169
16170 else
16171 # FIXME: insert proper C++ library support
16172 ld_shlibs_CXX=no
16173 fi
16174 ;;
16175 esac
16176 ;;
16177 osf4* | osf5*)
16178 case $cc_basename in
16179 KCC)
16180 # Kuck and Associates, Inc. (KAI) C++ Compiler
16181
16182 # KCC will only create a shared library if the output file
16183 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16184 # to its proper name (with version) after linking.
16185 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'
16186
16187 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16188 hardcode_libdir_separator_CXX=:
16189
16190 # Archives containing C++ object files must be created using
16191 # the KAI C++ compiler.
16192 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16193 ;;
16194 RCC)
16195 # Rational C++ 2.4.1
16196 # FIXME: insert proper C++ library support
16197 ld_shlibs_CXX=no
16198 ;;
16199 cxx)
16200 allow_undefined_flag_CXX=' -expect_unresolved \*'
16201 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 +000016202 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16203 echo "-hidden">> $lib.exp~
16204 $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~
16205 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016206
16207 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16208 hardcode_libdir_separator_CXX=:
16209
16210 # Commands to make compiler produce verbose output that lists
16211 # what "hidden" libraries, object files and flags are used when
16212 # linking a shared library.
16213 #
16214 # There doesn't appear to be a way to prevent this compiler from
16215 # explicitly linking system object files so we need to strip them
16216 # from the output so that they don't get included in the library
16217 # dependencies.
16218 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'
16219 ;;
16220 *)
16221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16222 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16223 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'
16224
16225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16226 hardcode_libdir_separator_CXX=:
16227
16228 # Commands to make compiler produce verbose output that lists
16229 # what "hidden" libraries, object files and flags are used when
16230 # linking a shared library.
16231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16232
16233 else
16234 # FIXME: insert proper C++ library support
16235 ld_shlibs_CXX=no
16236 fi
16237 ;;
16238 esac
16239 ;;
16240 psos*)
16241 # FIXME: insert proper C++ library support
16242 ld_shlibs_CXX=no
16243 ;;
16244 sco*)
16245 archive_cmds_need_lc_CXX=no
16246 case $cc_basename in
16247 CC)
16248 # FIXME: insert proper C++ library support
16249 ld_shlibs_CXX=no
16250 ;;
16251 *)
16252 # FIXME: insert proper C++ library support
16253 ld_shlibs_CXX=no
16254 ;;
16255 esac
16256 ;;
16257 sunos4*)
16258 case $cc_basename in
16259 CC)
16260 # Sun C++ 4.x
16261 # FIXME: insert proper C++ library support
16262 ld_shlibs_CXX=no
16263 ;;
16264 lcc)
16265 # Lucid
16266 # FIXME: insert proper C++ library support
16267 ld_shlibs_CXX=no
16268 ;;
16269 *)
16270 # FIXME: insert proper C++ library support
16271 ld_shlibs_CXX=no
16272 ;;
16273 esac
16274 ;;
16275 solaris*)
16276 case $cc_basename in
16277 CC)
16278 # Sun C++ 4.2, 5.x and Centerline C++
16279 no_undefined_flag_CXX=' -zdefs'
16280 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 +000016281 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16282 $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 +000016283
16284 hardcode_libdir_flag_spec_CXX='-R$libdir'
16285 hardcode_shlibpath_var_CXX=no
16286 case $host_os in
16287 solaris2.0-5 | solaris2.0-5.*) ;;
16288 *)
16289 # The C++ compiler is used as linker so we must use $wl
16290 # flag to pass the commands to the underlying system
16291 # linker.
16292 # Supported since Solaris 2.6 (maybe 2.5.1?)
16293 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16294 ;;
16295 esac
16296 link_all_deplibs_CXX=yes
16297
16298 # Commands to make compiler produce verbose output that lists
16299 # what "hidden" libraries, object files and flags are used when
16300 # linking a shared library.
16301 #
16302 # There doesn't appear to be a way to prevent this compiler from
16303 # explicitly linking system object files so we need to strip them
16304 # from the output so that they don't get included in the library
16305 # dependencies.
16306 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'
16307
16308 # Archives containing C++ object files must be created using
16309 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16310 # necessary to make sure instantiated templates are included
16311 # in the archive.
16312 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16313 ;;
16314 gcx)
16315 # Green Hills C++ Compiler
16316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16317
16318 # The C++ compiler must be used to create the archive.
16319 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16320 ;;
16321 *)
16322 # GNU C++ compiler with Solaris linker
16323 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16324 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16325 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016326 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 +000016327 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16328 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16329
John Criswell47fdd832003-07-14 16:52:07 +000016330 # Commands to make compiler produce verbose output that lists
16331 # what "hidden" libraries, object files and flags are used when
16332 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016333 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016334 else
16335 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16336 # platform.
16337 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 +000016338 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16339 $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 +000016340
16341 # Commands to make compiler produce verbose output that lists
16342 # what "hidden" libraries, object files and flags are used when
16343 # linking a shared library.
16344 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16345 fi
16346
16347 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16348 fi
16349 ;;
16350 esac
16351 ;;
16352 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16353 archive_cmds_need_lc_CXX=no
16354 ;;
16355 tandem*)
16356 case $cc_basename in
16357 NCC)
16358 # NonStop-UX NCC 3.20
16359 # FIXME: insert proper C++ library support
16360 ld_shlibs_CXX=no
16361 ;;
16362 *)
16363 # FIXME: insert proper C++ library support
16364 ld_shlibs_CXX=no
16365 ;;
16366 esac
16367 ;;
16368 vxworks*)
16369 # FIXME: insert proper C++ library support
16370 ld_shlibs_CXX=no
16371 ;;
16372 *)
16373 # FIXME: insert proper C++ library support
16374 ld_shlibs_CXX=no
16375 ;;
16376esac
16377echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16378echo "${ECHO_T}$ld_shlibs_CXX" >&6
16379test "$ld_shlibs_CXX" = no && can_build_shared=no
16380
16381GCC_CXX="$GXX"
16382LD_CXX="$LD"
16383
John Criswell47fdd832003-07-14 16:52:07 +000016384
16385cat > conftest.$ac_ext <<EOF
16386class Foo
16387{
16388public:
16389 Foo (void) { a = 0; }
16390private:
16391 int a;
16392};
16393EOF
16394
16395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16396 (eval $ac_compile) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; then
16400 # Parse the compiler output and extract the necessary
16401 # objects, libraries and library flags.
16402
16403 # Sentinel used to keep track of whether or not we are before
16404 # the conftest object file.
16405 pre_test_object_deps_done=no
16406
16407 # The `*' in the case matches for architectures that use `case' in
16408 # $output_verbose_cmd can trigger glob expansion during the loop
16409 # eval without this substitution.
16410 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16411
16412 for p in `eval $output_verbose_link_cmd`; do
16413 case $p in
16414
16415 -L* | -R* | -l*)
16416 # Some compilers place space between "-{L,R}" and the path.
16417 # Remove the space.
16418 if test $p = "-L" \
16419 || test $p = "-R"; then
16420 prev=$p
16421 continue
16422 else
16423 prev=
16424 fi
16425
16426 if test "$pre_test_object_deps_done" = no; then
16427 case $p in
16428 -L* | -R*)
16429 # Internal compiler library paths should come after those
16430 # provided the user. The postdeps already come after the
16431 # user supplied libs so there is no need to process them.
16432 if test -z "$compiler_lib_search_path_CXX"; then
16433 compiler_lib_search_path_CXX="${prev}${p}"
16434 else
16435 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16436 fi
16437 ;;
16438 # The "-l" case would never come before the object being
16439 # linked, so don't bother handling this case.
16440 esac
16441 else
16442 if test -z "$postdeps_CXX"; then
16443 postdeps_CXX="${prev}${p}"
16444 else
16445 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16446 fi
16447 fi
16448 ;;
16449
16450 *.$objext)
16451 # This assumes that the test object file only shows up
16452 # once in the compiler output.
16453 if test "$p" = "conftest.$objext"; then
16454 pre_test_object_deps_done=yes
16455 continue
16456 fi
16457
16458 if test "$pre_test_object_deps_done" = no; then
16459 if test -z "$predep_objects_CXX"; then
16460 predep_objects_CXX="$p"
16461 else
16462 predep_objects_CXX="$predep_objects_CXX $p"
16463 fi
16464 else
16465 if test -z "$postdep_objects_CXX"; then
16466 postdep_objects_CXX="$p"
16467 else
16468 postdep_objects_CXX="$postdep_objects_CXX $p"
16469 fi
16470 fi
16471 ;;
16472
16473 *) ;; # Ignore the rest.
16474
16475 esac
16476 done
16477
16478 # Clean up.
16479 rm -f a.out a.exe
16480else
16481 echo "libtool.m4: error: problem compiling CXX test program"
16482fi
16483
16484$rm -f confest.$objext
16485
16486case " $postdeps_CXX " in
16487*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16488esac
16489
16490lt_prog_compiler_wl_CXX=
16491lt_prog_compiler_pic_CXX=
16492lt_prog_compiler_static_CXX=
16493
16494echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16495echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16496
16497 # C++ specific cases for pic, static, wl, etc.
16498 if test "$GXX" = yes; then
16499 lt_prog_compiler_wl_CXX='-Wl,'
16500 lt_prog_compiler_static_CXX='-static'
16501
16502 case $host_os in
16503 aix*)
16504 # All AIX code is PIC.
16505 if test "$host_cpu" = ia64; then
16506 # AIX 5 now supports IA64 processor
16507 lt_prog_compiler_static_CXX='-Bstatic'
16508 fi
16509 ;;
16510 amigaos*)
16511 # FIXME: we need at least 68020 code to build shared libraries, but
16512 # adding the `-m68020' flag to GCC prevents building anything better,
16513 # like `-m68040'.
16514 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16515 ;;
16516 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16517 # PIC is the default for these OSes.
16518 ;;
16519 mingw* | os2* | pw32*)
16520 # This hack is so that the source file can tell whether it is being
16521 # built for inclusion in a dll (and should export symbols for example).
16522 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16523 ;;
16524 darwin* | rhapsody*)
16525 # PIC is the default on this platform
16526 # Common symbols not allowed in MH_DYLIB files
16527 lt_prog_compiler_pic_CXX='-fno-common'
16528 ;;
16529 *djgpp*)
16530 # DJGPP does not support shared libraries at all
16531 lt_prog_compiler_pic_CXX=
16532 ;;
16533 sysv4*MP*)
16534 if test -d /usr/nec; then
16535 lt_prog_compiler_pic_CXX=-Kconform_pic
16536 fi
16537 ;;
16538 hpux*)
16539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16540 # not for PA HP-UX.
16541 case "$host_cpu" in
16542 hppa*64*|ia64*)
16543 ;;
16544 *)
16545 lt_prog_compiler_pic_CXX='-fPIC'
16546 ;;
16547 esac
16548 ;;
16549 *)
16550 lt_prog_compiler_pic_CXX='-fPIC'
16551 ;;
16552 esac
16553 else
16554 case $host_os in
16555 aix4* | aix5*)
16556 # All AIX code is PIC.
16557 if test "$host_cpu" = ia64; then
16558 # AIX 5 now supports IA64 processor
16559 lt_prog_compiler_static_CXX='-Bstatic'
16560 else
16561 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16562 fi
16563 ;;
16564 chorus*)
16565 case $cc_basename in
16566 cxch68)
16567 # Green Hills C++ Compiler
16568 # _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"
16569 ;;
16570 esac
16571 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016572 darwin*)
16573 # PIC is the default on this platform
16574 # Common symbols not allowed in MH_DYLIB files
16575 case "$cc_basename" in
16576 xlc*)
16577 lt_prog_compiler_pic_CXX='-qnocommon'
16578 lt_prog_compiler_wl_CXX='-Wl,'
16579 ;;
16580 esac
16581 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016582 dgux*)
16583 case $cc_basename in
16584 ec++)
16585 lt_prog_compiler_pic_CXX='-KPIC'
16586 ;;
16587 ghcx)
16588 # Green Hills C++ Compiler
16589 lt_prog_compiler_pic_CXX='-pic'
16590 ;;
16591 *)
16592 ;;
16593 esac
16594 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016595 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016596 # FreeBSD uses GNU C++
16597 ;;
16598 hpux9* | hpux10* | hpux11*)
16599 case $cc_basename in
16600 CC)
16601 lt_prog_compiler_wl_CXX='-Wl,'
16602 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16603 if test "$host_cpu" != ia64; then
16604 lt_prog_compiler_pic_CXX='+Z'
16605 fi
16606 ;;
16607 aCC)
16608 lt_prog_compiler_wl_CXX='-Wl,'
16609 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16610 case "$host_cpu" in
16611 hppa*64*|ia64*)
16612 # +Z the default
16613 ;;
16614 *)
16615 lt_prog_compiler_pic_CXX='+Z'
16616 ;;
16617 esac
16618 ;;
16619 *)
16620 ;;
16621 esac
16622 ;;
16623 irix5* | irix6* | nonstopux*)
16624 case $cc_basename in
16625 CC)
16626 lt_prog_compiler_wl_CXX='-Wl,'
16627 lt_prog_compiler_static_CXX='-non_shared'
16628 # CC pic flag -KPIC is the default.
16629 ;;
16630 *)
16631 ;;
16632 esac
16633 ;;
16634 linux*)
16635 case $cc_basename in
16636 KCC)
16637 # KAI C++ Compiler
16638 lt_prog_compiler_wl_CXX='--backend -Wl,'
16639 lt_prog_compiler_pic_CXX='-fPIC'
16640 ;;
16641 icpc)
16642 # Intel C++
16643 lt_prog_compiler_wl_CXX='-Wl,'
16644 lt_prog_compiler_pic_CXX='-KPIC'
16645 lt_prog_compiler_static_CXX='-static'
16646 ;;
16647 cxx)
16648 # Compaq C++
16649 # Make sure the PIC flag is empty. It appears that all Alpha
16650 # Linux and Compaq Tru64 Unix objects are PIC.
16651 lt_prog_compiler_pic_CXX=
16652 lt_prog_compiler_static_CXX='-non_shared'
16653 ;;
16654 *)
16655 ;;
16656 esac
16657 ;;
16658 lynxos*)
16659 ;;
16660 m88k*)
16661 ;;
16662 mvs*)
16663 case $cc_basename in
16664 cxx)
16665 lt_prog_compiler_pic_CXX='-W c,exportall'
16666 ;;
16667 *)
16668 ;;
16669 esac
16670 ;;
16671 netbsd*)
16672 ;;
16673 osf3* | osf4* | osf5*)
16674 case $cc_basename in
16675 KCC)
16676 lt_prog_compiler_wl_CXX='--backend -Wl,'
16677 ;;
16678 RCC)
16679 # Rational C++ 2.4.1
16680 lt_prog_compiler_pic_CXX='-pic'
16681 ;;
16682 cxx)
16683 # Digital/Compaq C++
16684 lt_prog_compiler_wl_CXX='-Wl,'
16685 # Make sure the PIC flag is empty. It appears that all Alpha
16686 # Linux and Compaq Tru64 Unix objects are PIC.
16687 lt_prog_compiler_pic_CXX=
16688 lt_prog_compiler_static_CXX='-non_shared'
16689 ;;
16690 *)
16691 ;;
16692 esac
16693 ;;
16694 psos*)
16695 ;;
16696 sco*)
16697 case $cc_basename in
16698 CC)
16699 lt_prog_compiler_pic_CXX='-fPIC'
16700 ;;
16701 *)
16702 ;;
16703 esac
16704 ;;
16705 solaris*)
16706 case $cc_basename in
16707 CC)
16708 # Sun C++ 4.2, 5.x and Centerline C++
16709 lt_prog_compiler_pic_CXX='-KPIC'
16710 lt_prog_compiler_static_CXX='-Bstatic'
16711 lt_prog_compiler_wl_CXX='-Qoption ld '
16712 ;;
16713 gcx)
16714 # Green Hills C++ Compiler
16715 lt_prog_compiler_pic_CXX='-PIC'
16716 ;;
16717 *)
16718 ;;
16719 esac
16720 ;;
16721 sunos4*)
16722 case $cc_basename in
16723 CC)
16724 # Sun C++ 4.x
16725 lt_prog_compiler_pic_CXX='-pic'
16726 lt_prog_compiler_static_CXX='-Bstatic'
16727 ;;
16728 lcc)
16729 # Lucid
16730 lt_prog_compiler_pic_CXX='-pic'
16731 ;;
16732 *)
16733 ;;
16734 esac
16735 ;;
16736 tandem*)
16737 case $cc_basename in
16738 NCC)
16739 # NonStop-UX NCC 3.20
16740 lt_prog_compiler_pic_CXX='-KPIC'
16741 ;;
16742 *)
16743 ;;
16744 esac
16745 ;;
16746 unixware*)
16747 ;;
16748 vxworks*)
16749 ;;
16750 *)
16751 lt_prog_compiler_can_build_shared_CXX=no
16752 ;;
16753 esac
16754 fi
16755
16756echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16757echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16758
16759#
16760# Check to make sure the PIC flag actually works.
16761#
16762if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016763
16764echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016765echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16766if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768else
16769 lt_prog_compiler_pic_works_CXX=no
16770 ac_outfile=conftest.$ac_objext
16771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16772 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16773 # Insert the option either (1) after the last *FLAGS variable, or
16774 # (2) before a word containing "conftest.", or (3) at the end.
16775 # Note that $ac_compile itself does not contain backslashes and begins
16776 # with a dollar sign (not a hyphen), so the echo should work correctly.
16777 # The option is referenced via a variable to avoid confusing sed.
16778 lt_compile=`echo "$ac_compile" | $SED \
16779 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16781 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000016782 (eval echo "\"\$as_me:16782: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016783 (eval "$lt_compile" 2>conftest.err)
16784 ac_status=$?
16785 cat conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000016786 echo "$as_me:16786: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016787 if (exit $ac_status) && test -s "$ac_outfile"; then
16788 # The compiler can only warn and ignore the option if not recognized
16789 # So say no if there are warnings
16790 if test ! -s conftest.err; then
16791 lt_prog_compiler_pic_works_CXX=yes
16792 fi
16793 fi
16794 $rm conftest*
16795
16796fi
16797echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16798echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16799
16800if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16801 case $lt_prog_compiler_pic_CXX in
16802 "" | " "*) ;;
16803 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16804 esac
16805else
16806 lt_prog_compiler_pic_CXX=
16807 lt_prog_compiler_can_build_shared_CXX=no
16808fi
16809
16810fi
16811case "$host_os" in
16812 # For platforms which do not support PIC, -DPIC is meaningless:
16813 *djgpp*)
16814 lt_prog_compiler_pic_CXX=
16815 ;;
16816 *)
16817 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16818 ;;
16819esac
16820
16821echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16822echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16823if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825else
16826 lt_cv_prog_compiler_c_o_CXX=no
16827 $rm -r conftest 2>/dev/null
16828 mkdir conftest
16829 cd conftest
16830 mkdir out
16831 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16832
John Criswell47fdd832003-07-14 16:52:07 +000016833 lt_compiler_flag="-o out/conftest2.$ac_objext"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 lt_compile=`echo "$ac_compile" | $SED \
16839 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16841 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000016842 (eval echo "\"\$as_me:16842: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016843 (eval "$lt_compile" 2>out/conftest.err)
16844 ac_status=$?
16845 cat out/conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000016846 echo "$as_me:16846: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16848 then
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings
16851 if test ! -s out/conftest.err; then
16852 lt_cv_prog_compiler_c_o_CXX=yes
16853 fi
16854 fi
16855 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016856 $rm conftest*
16857 # SGI C++ compiler will create directory out/ii_files/ for
16858 # template instantiation
16859 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16860 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016861 cd ..
16862 rmdir conftest
16863 $rm conftest*
16864
16865fi
16866echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16867echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16868
16869
16870hard_links="nottested"
16871if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16872 # do not overwrite the value of need_locks provided by the user
16873 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16874echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16875 hard_links=yes
16876 $rm conftest*
16877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16878 touch conftest.a
16879 ln conftest.a conftest.b 2>&5 || hard_links=no
16880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16881 echo "$as_me:$LINENO: result: $hard_links" >&5
16882echo "${ECHO_T}$hard_links" >&6
16883 if test "$hard_links" = no; then
16884 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16885echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16886 need_locks=warn
16887 fi
16888else
16889 need_locks=no
16890fi
16891
16892echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16893echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16894
16895 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16896 case $host_os in
16897 aix4* | aix5*)
16898 # If we're using GNU nm, then we don't want the "-C" option.
16899 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16900 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16901 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'
16902 else
16903 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'
16904 fi
16905 ;;
16906 pw32*)
16907 export_symbols_cmds_CXX="$ltdll_cmds"
16908 ;;
16909 cygwin* | mingw*)
16910 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16911 ;;
16912 *)
16913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16914 ;;
16915 esac
16916
16917echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16918echo "${ECHO_T}$ld_shlibs_CXX" >&6
16919test "$ld_shlibs_CXX" = no && can_build_shared=no
16920
16921variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16922if test "$GCC" = yes; then
16923 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16924fi
16925
16926#
16927# Do we need to explicitly link libc?
16928#
16929case "x$archive_cmds_need_lc_CXX" in
16930x|xyes)
16931 # Assume -lc should be added
16932 archive_cmds_need_lc_CXX=yes
16933
16934 if test "$enable_shared" = yes && test "$GCC" = yes; then
16935 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016936 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016937 # FIXME: we may have to deal with multi-command sequences.
16938 ;;
16939 '$CC '*)
16940 # Test whether the compiler implicitly links with -lc since on some
16941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16942 # to ld, don't add -lc before -lgcc.
16943 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16944echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16945 $rm conftest*
16946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16947
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949 (eval $ac_compile) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } 2>conftest.err; then
16953 soname=conftest
16954 lib=conftest
16955 libobjs=conftest.$ac_objext
16956 deplibs=
16957 wl=$lt_prog_compiler_wl_CXX
16958 compiler_flags=-v
16959 linker_flags=-v
16960 verstring=
16961 output_objdir=.
16962 libname=conftest
16963 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16964 allow_undefined_flag_CXX=
16965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16966 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }
16970 then
16971 archive_cmds_need_lc_CXX=no
16972 else
16973 archive_cmds_need_lc_CXX=yes
16974 fi
16975 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16976 else
16977 cat conftest.err 1>&5
16978 fi
16979 $rm conftest*
16980 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16981echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16982 ;;
16983 esac
16984 fi
16985 ;;
16986esac
16987
John Criswell47fdd832003-07-14 16:52:07 +000016988echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16989echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16990library_names_spec=
16991libname_spec='lib$name'
16992soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016993shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016994postinstall_cmds=
16995postuninstall_cmds=
16996finish_cmds=
16997finish_eval=
16998shlibpath_var=
16999shlibpath_overrides_runpath=unknown
17000version_type=none
17001dynamic_linker="$host_os ld.so"
17002sys_lib_dlsearch_path_spec="/lib /usr/lib"
17003if test "$GCC" = yes; then
17004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17006 # if the path contains ";" then we assume it to be the separator
17007 # otherwise default to the standard path separator (i.e. ":") - it is
17008 # assumed that no part of a normal pathname contains ";" but that should
17009 # okay in the real world where ";" in dirpaths is itself problematic.
17010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17011 else
17012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17013 fi
17014else
17015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17016fi
17017need_lib_prefix=unknown
17018hardcode_into_libs=no
17019
17020# when you set need_version to no, make sure it does not cause -set_version
17021# flags to be left without arguments
17022need_version=unknown
17023
17024case $host_os in
17025aix3*)
17026 version_type=linux
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17028 shlibpath_var=LIBPATH
17029
17030 # AIX 3 has no versioning support, so we append a major version to the name.
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 ;;
17033
17034aix4* | aix5*)
17035 version_type=linux
17036 need_lib_prefix=no
17037 need_version=no
17038 hardcode_into_libs=yes
17039 if test "$host_cpu" = ia64; then
17040 # AIX 5 supports IA64
17041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17042 shlibpath_var=LD_LIBRARY_PATH
17043 else
17044 # With GCC up to 2.95.x, collect2 would create an import file
17045 # for dependence libraries. The import file would start with
17046 # the line `#! .'. This would cause the generated library to
17047 # depend on `.', always an invalid library. This was fixed in
17048 # development snapshots of GCC prior to 3.0.
17049 case $host_os in
17050 aix4 | aix4.[01] | aix4.[01].*)
17051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17052 echo ' yes '
17053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17054 :
17055 else
17056 can_build_shared=no
17057 fi
17058 ;;
17059 esac
17060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17061 # soname into executable. Probably we can add versioning support to
17062 # collect2, so additional links can be useful in future.
17063 if test "$aix_use_runtimelinking" = yes; then
17064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17065 # instead of lib<name>.a to let people know that these are not
17066 # typical AIX shared libraries.
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068 else
17069 # We preserve .a as extension for shared libraries through AIX4.2
17070 # and later when we are not doing run time linking.
17071 library_names_spec='${libname}${release}.a $libname.a'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 fi
17074 shlibpath_var=LIBPATH
17075 fi
17076 ;;
17077
17078amigaos*)
17079 library_names_spec='$libname.ixlibrary $libname.a'
17080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017081 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 +000017082 ;;
17083
17084beos*)
17085 library_names_spec='${libname}${shared_ext}'
17086 dynamic_linker="$host_os ld.so"
17087 shlibpath_var=LIBRARY_PATH
17088 ;;
17089
Reid Spencer2706f8c2004-09-19 23:53:36 +000017090bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017091 version_type=linux
17092 need_version=no
17093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17096 shlibpath_var=LD_LIBRARY_PATH
17097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17099 # the default ld.so.conf also contains /usr/contrib/lib and
17100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17101 # libtool to hard-code these into programs
17102 ;;
17103
17104cygwin* | mingw* | pw32*)
17105 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017106 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017107 need_version=no
17108 need_lib_prefix=no
17109
17110 case $GCC,$host_os in
17111 yes,cygwin* | yes,mingw* | yes,pw32*)
17112 library_names_spec='$libname.dll.a'
17113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017114 postinstall_cmds='base_file=`basename \${file}`~
17115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17116 dldir=$destdir/`dirname \$dlpath`~
17117 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017118 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17120 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017121 $rm \$dlpath'
17122 shlibpath_overrides_runpath=yes
17123
17124 case $host_os in
17125 cygwin*)
17126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17127 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 +000017128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017129 ;;
17130 mingw*)
17131 # MinGW DLLs use traditional 'lib' prefix
17132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17135 # It is most probably a Windows format PATH printed by
17136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17137 # path with ; separators, and with drive letters. We can handle the
17138 # drive letters (cygwin fileutils understands them), so leave them,
17139 # especially as we might pass files found there to a mingw objdump,
17140 # which wouldn't understand a cygwinified path. Ahh.
17141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17142 else
17143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17144 fi
17145 ;;
17146 pw32*)
17147 # pw32 DLLs use 'pw' prefix rather than 'lib'
17148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17149 ;;
17150 esac
17151 ;;
17152
17153 *)
17154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17155 ;;
17156 esac
17157 dynamic_linker='Win32 ld.exe'
17158 # FIXME: first we should search . and the directory the executable is in
17159 shlibpath_var=PATH
17160 ;;
17161
17162darwin* | rhapsody*)
17163 dynamic_linker="$host_os dyld"
17164 version_type=darwin
17165 need_lib_prefix=no
17166 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017168 soname_spec='${libname}${release}${major}$shared_ext'
17169 shlibpath_overrides_runpath=yes
17170 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017171 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017173 if test "$GCC" = yes; then
17174 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"`
17175 else
17176 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017177 fi
17178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17179 ;;
17180
17181dgux*)
17182 version_type=linux
17183 need_lib_prefix=no
17184 need_version=no
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 ;;
17189
17190freebsd1*)
17191 dynamic_linker=no
17192 ;;
17193
Reid Spencer2706f8c2004-09-19 23:53:36 +000017194kfreebsd*-gnu)
17195 version_type=linux
17196 need_lib_prefix=no
17197 need_version=no
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17199 soname_spec='${libname}${release}${shared_ext}$major'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 shlibpath_overrides_runpath=no
17202 hardcode_into_libs=yes
17203 dynamic_linker='GNU ld.so'
17204 ;;
17205
John Criswell47fdd832003-07-14 16:52:07 +000017206freebsd*)
17207 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17208 version_type=freebsd-$objformat
17209 case $version_type in
17210 freebsd-elf*)
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17212 need_version=no
17213 need_lib_prefix=no
17214 ;;
17215 freebsd-*)
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17217 need_version=yes
17218 ;;
17219 esac
17220 shlibpath_var=LD_LIBRARY_PATH
17221 case $host_os in
17222 freebsd2*)
17223 shlibpath_overrides_runpath=yes
17224 ;;
17225 freebsd3.01* | freebsdelf3.01*)
17226 shlibpath_overrides_runpath=yes
17227 hardcode_into_libs=yes
17228 ;;
17229 *) # from 3.2 on
17230 shlibpath_overrides_runpath=no
17231 hardcode_into_libs=yes
17232 ;;
17233 esac
17234 ;;
17235
17236gnu*)
17237 version_type=linux
17238 need_lib_prefix=no
17239 need_version=no
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17241 soname_spec='${libname}${release}${shared_ext}$major'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 hardcode_into_libs=yes
17244 ;;
17245
17246hpux9* | hpux10* | hpux11*)
17247 # Give a soname corresponding to the major version so that dld.sl refuses to
17248 # link against other versions.
17249 version_type=sunos
17250 need_lib_prefix=no
17251 need_version=no
17252 case "$host_cpu" in
17253 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017254 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017255 hardcode_into_libs=yes
17256 dynamic_linker="$host_os dld.so"
17257 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 if test "X$HPUX_IA64_MODE" = X32; then
17262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17263 else
17264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17265 fi
17266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17267 ;;
17268 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017269 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017270 hardcode_into_libs=yes
17271 dynamic_linker="$host_os dld.sl"
17272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17278 ;;
17279 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017280 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017281 dynamic_linker="$host_os dld.sl"
17282 shlibpath_var=SHLIB_PATH
17283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 ;;
17287 esac
17288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17289 postinstall_cmds='chmod 555 $lib'
17290 ;;
17291
17292irix5* | irix6* | nonstopux*)
17293 case $host_os in
17294 nonstopux*) version_type=nonstopux ;;
17295 *)
17296 if test "$lt_cv_prog_gnu_ld" = yes; then
17297 version_type=linux
17298 else
17299 version_type=irix
17300 fi ;;
17301 esac
17302 need_lib_prefix=no
17303 need_version=no
17304 soname_spec='${libname}${release}${shared_ext}$major'
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17306 case $host_os in
17307 irix5* | nonstopux*)
17308 libsuff= shlibsuff=
17309 ;;
17310 *)
17311 case $LD in # libtool.m4 will add one of these switches to LD
17312 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17313 libsuff= shlibsuff= libmagic=32-bit;;
17314 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17315 libsuff=32 shlibsuff=N32 libmagic=N32;;
17316 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17317 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17318 *) libsuff= shlibsuff= libmagic=never-match;;
17319 esac
17320 ;;
17321 esac
17322 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17323 shlibpath_overrides_runpath=no
17324 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17325 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17326 hardcode_into_libs=yes
17327 ;;
17328
17329# No shared lib support for Linux oldld, aout, or coff.
17330linux*oldld* | linux*aout* | linux*coff*)
17331 dynamic_linker=no
17332 ;;
17333
17334# This must be Linux ELF.
17335linux*)
17336 version_type=linux
17337 need_lib_prefix=no
17338 need_version=no
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=no
17344 # This implies no fast_install, which is unacceptable.
17345 # Some rework will be needed to allow for fast_install
17346 # before this can be enabled.
17347 hardcode_into_libs=yes
17348
Reid Spencer2706f8c2004-09-19 23:53:36 +000017349 # Append ld.so.conf contents to the search path
17350 if test -f /etc/ld.so.conf; then
17351 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17352 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17353 fi
17354
John Criswell47fdd832003-07-14 16:52:07 +000017355 # We used to test for /lib/ld.so.1 and disable shared libraries on
17356 # powerpc, because MkLinux only supported shared libraries with the
17357 # GNU dynamic linker. Since this was broken with cross compilers,
17358 # most powerpc-linux boxes support dynamic linking these days and
17359 # people can always --disable-shared, the test was removed, and we
17360 # assume the GNU/Linux dynamic linker is in use.
17361 dynamic_linker='GNU/Linux ld.so'
17362 ;;
17363
Reid Spencer2706f8c2004-09-19 23:53:36 +000017364knetbsd*-gnu)
17365 version_type=linux
17366 need_lib_prefix=no
17367 need_version=no
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=no
17372 hardcode_into_libs=yes
17373 dynamic_linker='GNU ld.so'
17374 ;;
17375
John Criswell47fdd832003-07-14 16:52:07 +000017376netbsd*)
17377 version_type=sunos
17378 need_lib_prefix=no
17379 need_version=no
17380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17383 dynamic_linker='NetBSD (a.out) ld.so'
17384 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017386 soname_spec='${libname}${release}${shared_ext}$major'
17387 dynamic_linker='NetBSD ld.elf_so'
17388 fi
17389 shlibpath_var=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath=yes
17391 hardcode_into_libs=yes
17392 ;;
17393
17394newsos6)
17395 version_type=linux
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 shlibpath_overrides_runpath=yes
17399 ;;
17400
Reid Spencer2706f8c2004-09-19 23:53:36 +000017401nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017402 version_type=linux
17403 need_lib_prefix=no
17404 need_version=no
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=yes
17409 ;;
17410
17411openbsd*)
17412 version_type=sunos
17413 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017414 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17417 shlibpath_var=LD_LIBRARY_PATH
17418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17419 case $host_os in
17420 openbsd2.[89] | openbsd2.[89].*)
17421 shlibpath_overrides_runpath=no
17422 ;;
17423 *)
17424 shlibpath_overrides_runpath=yes
17425 ;;
17426 esac
17427 else
17428 shlibpath_overrides_runpath=yes
17429 fi
17430 ;;
17431
17432os2*)
17433 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017434 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017435 need_lib_prefix=no
17436 library_names_spec='$libname${shared_ext} $libname.a'
17437 dynamic_linker='OS/2 ld.exe'
17438 shlibpath_var=LIBPATH
17439 ;;
17440
17441osf3* | osf4* | osf5*)
17442 version_type=osf
17443 need_lib_prefix=no
17444 need_version=no
17445 soname_spec='${libname}${release}${shared_ext}$major'
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17450 ;;
17451
17452sco3.2v5*)
17453 version_type=osf
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456 shlibpath_var=LD_LIBRARY_PATH
17457 ;;
17458
17459solaris*)
17460 version_type=linux
17461 need_lib_prefix=no
17462 need_version=no
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath=yes
17467 hardcode_into_libs=yes
17468 # ldd complains unless libraries are executable
17469 postinstall_cmds='chmod +x $lib'
17470 ;;
17471
17472sunos4*)
17473 version_type=sunos
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath=yes
17478 if test "$with_gnu_ld" = yes; then
17479 need_lib_prefix=no
17480 fi
17481 need_version=yes
17482 ;;
17483
17484sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17485 version_type=linux
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 case $host_vendor in
17490 sni)
17491 shlibpath_overrides_runpath=no
17492 need_lib_prefix=no
17493 export_dynamic_flag_spec='${wl}-Blargedynsym'
17494 runpath_var=LD_RUN_PATH
17495 ;;
17496 siemens)
17497 need_lib_prefix=no
17498 ;;
17499 motorola)
17500 need_lib_prefix=no
17501 need_version=no
17502 shlibpath_overrides_runpath=no
17503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17504 ;;
17505 esac
17506 ;;
17507
17508sysv4*MP*)
17509 if test -d /usr/nec ;then
17510 version_type=linux
17511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17512 soname_spec='$libname${shared_ext}.$major'
17513 shlibpath_var=LD_LIBRARY_PATH
17514 fi
17515 ;;
17516
17517uts4*)
17518 version_type=linux
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520 soname_spec='${libname}${release}${shared_ext}$major'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 ;;
17523
17524*)
17525 dynamic_linker=no
17526 ;;
17527esac
17528echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17529echo "${ECHO_T}$dynamic_linker" >&6
17530test "$dynamic_linker" = no && can_build_shared=no
17531
Reid Spencer2706f8c2004-09-19 23:53:36 +000017532echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17533echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17534hardcode_action_CXX=
17535if test -n "$hardcode_libdir_flag_spec_CXX" || \
17536 test -n "$runpath_var_CXX" || \
17537 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17538
17539 # We can hardcode non-existant directories.
17540 if test "$hardcode_direct_CXX" != no &&
17541 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17542 # have to relink, otherwise we might link with an installed library
17543 # when we should be linking with a yet-to-be-installed one
17544 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17545 test "$hardcode_minus_L_CXX" != no; then
17546 # Linking always hardcodes the temporary library directory.
17547 hardcode_action_CXX=relink
17548 else
17549 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17550 hardcode_action_CXX=immediate
17551 fi
17552else
17553 # We cannot hardcode anything, or else we can only hardcode existing
17554 # directories.
17555 hardcode_action_CXX=unsupported
17556fi
17557echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17558echo "${ECHO_T}$hardcode_action_CXX" >&6
17559
17560if test "$hardcode_action_CXX" = relink; then
17561 # Fast installation is not supported
17562 enable_fast_install=no
17563elif test "$shlibpath_overrides_runpath" = yes ||
17564 test "$enable_shared" = no; then
17565 # Fast installation is not necessary
17566 enable_fast_install=needless
17567fi
17568
17569striplib=
17570old_striplib=
17571echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17572echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17573if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17574 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17575 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17576 echo "$as_me:$LINENO: result: yes" >&5
17577echo "${ECHO_T}yes" >&6
17578else
17579# FIXME - insert some real tests, host_os isn't really good enough
17580 case $host_os in
17581 darwin*)
17582 if test -n "$STRIP" ; then
17583 striplib="$STRIP -x"
17584 echo "$as_me:$LINENO: result: yes" >&5
17585echo "${ECHO_T}yes" >&6
17586 else
17587 echo "$as_me:$LINENO: result: no" >&5
17588echo "${ECHO_T}no" >&6
17589fi
17590 ;;
17591 *)
17592 echo "$as_me:$LINENO: result: no" >&5
17593echo "${ECHO_T}no" >&6
17594 ;;
17595 esac
17596fi
17597
John Criswell47fdd832003-07-14 16:52:07 +000017598if test "x$enable_dlopen" != xyes; then
17599 enable_dlopen=unknown
17600 enable_dlopen_self=unknown
17601 enable_dlopen_self_static=unknown
17602else
17603 lt_cv_dlopen=no
17604 lt_cv_dlopen_libs=
17605
17606 case $host_os in
17607 beos*)
17608 lt_cv_dlopen="load_add_on"
17609 lt_cv_dlopen_libs=
17610 lt_cv_dlopen_self=yes
17611 ;;
17612
17613 mingw* | pw32*)
17614 lt_cv_dlopen="LoadLibrary"
17615 lt_cv_dlopen_libs=
17616 ;;
17617
17618 cygwin*)
17619 lt_cv_dlopen="dlopen"
17620 lt_cv_dlopen_libs=
17621 ;;
17622
17623 darwin*)
17624 # if libdl is installed we need to link against it
17625 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17626echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17627if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629else
17630 ac_check_lib_save_LIBS=$LIBS
17631LIBS="-ldl $LIBS"
17632cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017633/* confdefs.h. */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017638
17639/* Override any gcc2 internal prototype to avoid an error. */
17640#ifdef __cplusplus
17641extern "C"
17642#endif
17643/* We use char because int might match the return type of a gcc2
17644 builtin and then its argument prototype would still apply. */
17645char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017646int
17647main ()
17648{
17649dlopen ();
17650 ;
17651 return 0;
17652}
17653_ACEOF
17654rm -f conftest.$ac_objext conftest$ac_exeext
17655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017656 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017657 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017663 { ac_try='test -z "$ac_cxx_werror_flag"
17664 || test ! -s conftest.err'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_lib_dl_dlopen=yes
17677else
17678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017679sed 's/^/| /' conftest.$ac_ext >&5
17680
John Criswell47fdd832003-07-14 16:52:07 +000017681ac_cv_lib_dl_dlopen=no
17682fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017683rm -f conftest.err conftest.$ac_objext \
17684 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017685LIBS=$ac_check_lib_save_LIBS
17686fi
17687echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17688echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17689if test $ac_cv_lib_dl_dlopen = yes; then
17690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17691else
17692
17693 lt_cv_dlopen="dyld"
17694 lt_cv_dlopen_libs=
17695 lt_cv_dlopen_self=yes
17696
17697fi
17698
17699 ;;
17700
17701 *)
17702 echo "$as_me:$LINENO: checking for shl_load" >&5
17703echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17704if test "${ac_cv_func_shl_load+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706else
17707 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017708/* confdefs.h. */
17709_ACEOF
17710cat confdefs.h >>conftest.$ac_ext
17711cat >>conftest.$ac_ext <<_ACEOF
17712/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017713/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17715#define shl_load innocuous_shl_load
17716
John Criswell47fdd832003-07-14 16:52:07 +000017717/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017718 which can conflict with char shl_load (); below.
17719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017721
John Criswell0c38eaf2003-09-10 15:17:25 +000017722#ifdef __STDC__
17723# include <limits.h>
17724#else
17725# include <assert.h>
17726#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017727
17728#undef shl_load
17729
John Criswell47fdd832003-07-14 16:52:07 +000017730/* Override any gcc2 internal prototype to avoid an error. */
17731#ifdef __cplusplus
17732extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017733{
John Criswell47fdd832003-07-14 16:52:07 +000017734#endif
17735/* We use char because int might match the return type of a gcc2
17736 builtin and then its argument prototype would still apply. */
17737char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017738/* The GNU C library defines this for functions which it implements
17739 to always fail with ENOSYS. Some functions are actually named
17740 something starting with __ and the normal name is an alias. */
17741#if defined (__stub_shl_load) || defined (__stub___shl_load)
17742choke me
17743#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017744char (*f) () = shl_load;
17745#endif
17746#ifdef __cplusplus
17747}
John Criswell47fdd832003-07-14 16:52:07 +000017748#endif
17749
John Criswell0c38eaf2003-09-10 15:17:25 +000017750int
17751main ()
17752{
17753return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017754 ;
17755 return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext conftest$ac_exeext
17759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017760 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017767 { ac_try='test -z "$ac_cxx_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_func_shl_load=yes
17781else
17782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017783sed 's/^/| /' conftest.$ac_ext >&5
17784
John Criswell47fdd832003-07-14 16:52:07 +000017785ac_cv_func_shl_load=no
17786fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017787rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017789fi
17790echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17791echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17792if test $ac_cv_func_shl_load = yes; then
17793 lt_cv_dlopen="shl_load"
17794else
17795 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17796echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17797if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17799else
17800 ac_check_lib_save_LIBS=$LIBS
17801LIBS="-ldld $LIBS"
17802cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017803/* confdefs.h. */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017808
17809/* Override any gcc2 internal prototype to avoid an error. */
17810#ifdef __cplusplus
17811extern "C"
17812#endif
17813/* We use char because int might match the return type of a gcc2
17814 builtin and then its argument prototype would still apply. */
17815char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017816int
17817main ()
17818{
17819shl_load ();
17820 ;
17821 return 0;
17822}
17823_ACEOF
17824rm -f conftest.$ac_objext conftest$ac_exeext
17825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017826 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017827 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017833 { ac_try='test -z "$ac_cxx_werror_flag"
17834 || test ! -s conftest.err'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 ac_cv_lib_dld_shl_load=yes
17847else
17848 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017849sed 's/^/| /' conftest.$ac_ext >&5
17850
John Criswell47fdd832003-07-14 16:52:07 +000017851ac_cv_lib_dld_shl_load=no
17852fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017853rm -f conftest.err conftest.$ac_objext \
17854 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017855LIBS=$ac_check_lib_save_LIBS
17856fi
17857echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17858echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17859if test $ac_cv_lib_dld_shl_load = yes; then
17860 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17861else
17862 echo "$as_me:$LINENO: checking for dlopen" >&5
17863echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17864if test "${ac_cv_func_dlopen+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866else
17867 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017868/* confdefs.h. */
17869_ACEOF
17870cat confdefs.h >>conftest.$ac_ext
17871cat >>conftest.$ac_ext <<_ACEOF
17872/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017873/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17875#define dlopen innocuous_dlopen
17876
John Criswell47fdd832003-07-14 16:52:07 +000017877/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017878 which can conflict with char dlopen (); below.
17879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17880 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017881
John Criswell0c38eaf2003-09-10 15:17:25 +000017882#ifdef __STDC__
17883# include <limits.h>
17884#else
17885# include <assert.h>
17886#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017887
17888#undef dlopen
17889
John Criswell47fdd832003-07-14 16:52:07 +000017890/* Override any gcc2 internal prototype to avoid an error. */
17891#ifdef __cplusplus
17892extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017893{
John Criswell47fdd832003-07-14 16:52:07 +000017894#endif
17895/* We use char because int might match the return type of a gcc2
17896 builtin and then its argument prototype would still apply. */
17897char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017898/* The GNU C library defines this for functions which it implements
17899 to always fail with ENOSYS. Some functions are actually named
17900 something starting with __ and the normal name is an alias. */
17901#if defined (__stub_dlopen) || defined (__stub___dlopen)
17902choke me
17903#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017904char (*f) () = dlopen;
17905#endif
17906#ifdef __cplusplus
17907}
John Criswell47fdd832003-07-14 16:52:07 +000017908#endif
17909
John Criswell0c38eaf2003-09-10 15:17:25 +000017910int
17911main ()
17912{
17913return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017914 ;
17915 return 0;
17916}
17917_ACEOF
17918rm -f conftest.$ac_objext conftest$ac_exeext
17919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017920 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017921 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017927 { ac_try='test -z "$ac_cxx_werror_flag"
17928 || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_cv_func_dlopen=yes
17941else
17942 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017943sed 's/^/| /' conftest.$ac_ext >&5
17944
John Criswell47fdd832003-07-14 16:52:07 +000017945ac_cv_func_dlopen=no
17946fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017947rm -f conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017949fi
17950echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17951echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17952if test $ac_cv_func_dlopen = yes; then
17953 lt_cv_dlopen="dlopen"
17954else
17955 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17956echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17957if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17959else
17960 ac_check_lib_save_LIBS=$LIBS
17961LIBS="-ldl $LIBS"
17962cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017968
17969/* Override any gcc2 internal prototype to avoid an error. */
17970#ifdef __cplusplus
17971extern "C"
17972#endif
17973/* We use char because int might match the return type of a gcc2
17974 builtin and then its argument prototype would still apply. */
17975char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017976int
17977main ()
17978{
17979dlopen ();
17980 ;
17981 return 0;
17982}
17983_ACEOF
17984rm -f conftest.$ac_objext conftest$ac_exeext
17985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017986 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017993 { ac_try='test -z "$ac_cxx_werror_flag"
17994 || test ! -s conftest.err'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_lib_dl_dlopen=yes
18007else
18008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018009sed 's/^/| /' conftest.$ac_ext >&5
18010
John Criswell47fdd832003-07-14 16:52:07 +000018011ac_cv_lib_dl_dlopen=no
18012fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018013rm -f conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018015LIBS=$ac_check_lib_save_LIBS
18016fi
18017echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18018echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18019if test $ac_cv_lib_dl_dlopen = yes; then
18020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18021else
18022 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18023echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18024if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026else
18027 ac_check_lib_save_LIBS=$LIBS
18028LIBS="-lsvld $LIBS"
18029cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018030/* confdefs.h. */
18031_ACEOF
18032cat confdefs.h >>conftest.$ac_ext
18033cat >>conftest.$ac_ext <<_ACEOF
18034/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018035
18036/* Override any gcc2 internal prototype to avoid an error. */
18037#ifdef __cplusplus
18038extern "C"
18039#endif
18040/* We use char because int might match the return type of a gcc2
18041 builtin and then its argument prototype would still apply. */
18042char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018043int
18044main ()
18045{
18046dlopen ();
18047 ;
18048 return 0;
18049}
18050_ACEOF
18051rm -f conftest.$ac_objext conftest$ac_exeext
18052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018053 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018054 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018055 grep -v '^ *+' conftest.er1 >conftest.err
18056 rm -f conftest.er1
18057 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018060 { ac_try='test -z "$ac_cxx_werror_flag"
18061 || test ! -s conftest.err'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_cv_lib_svld_dlopen=yes
18074else
18075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018076sed 's/^/| /' conftest.$ac_ext >&5
18077
John Criswell47fdd832003-07-14 16:52:07 +000018078ac_cv_lib_svld_dlopen=no
18079fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018080rm -f conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018082LIBS=$ac_check_lib_save_LIBS
18083fi
18084echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18085echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18086if test $ac_cv_lib_svld_dlopen = yes; then
18087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18088else
18089 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18090echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18091if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093else
18094 ac_check_lib_save_LIBS=$LIBS
18095LIBS="-ldld $LIBS"
18096cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018097/* confdefs.h. */
18098_ACEOF
18099cat confdefs.h >>conftest.$ac_ext
18100cat >>conftest.$ac_ext <<_ACEOF
18101/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018102
18103/* Override any gcc2 internal prototype to avoid an error. */
18104#ifdef __cplusplus
18105extern "C"
18106#endif
18107/* We use char because int might match the return type of a gcc2
18108 builtin and then its argument prototype would still apply. */
18109char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018110int
18111main ()
18112{
18113dld_link ();
18114 ;
18115 return 0;
18116}
18117_ACEOF
18118rm -f conftest.$ac_objext conftest$ac_exeext
18119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018120 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018122 grep -v '^ *+' conftest.er1 >conftest.err
18123 rm -f conftest.er1
18124 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018127 { ac_try='test -z "$ac_cxx_werror_flag"
18128 || test ! -s conftest.err'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } &&
18134 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_cv_lib_dld_dld_link=yes
18141else
18142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018143sed 's/^/| /' conftest.$ac_ext >&5
18144
John Criswell47fdd832003-07-14 16:52:07 +000018145ac_cv_lib_dld_dld_link=no
18146fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018147rm -f conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018149LIBS=$ac_check_lib_save_LIBS
18150fi
18151echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18152echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18153if test $ac_cv_lib_dld_dld_link = yes; then
18154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18155fi
18156
18157
18158fi
18159
18160
18161fi
18162
18163
18164fi
18165
18166
18167fi
18168
18169
18170fi
18171
18172 ;;
18173 esac
18174
18175 if test "x$lt_cv_dlopen" != xno; then
18176 enable_dlopen=yes
18177 else
18178 enable_dlopen=no
18179 fi
18180
18181 case $lt_cv_dlopen in
18182 dlopen)
18183 save_CPPFLAGS="$CPPFLAGS"
18184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18185
18186 save_LDFLAGS="$LDFLAGS"
18187 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18188
18189 save_LIBS="$LIBS"
18190 LIBS="$lt_cv_dlopen_libs $LIBS"
18191
18192 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18193echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18194if test "${lt_cv_dlopen_self+set}" = set; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18196else
18197 if test "$cross_compiling" = yes; then :
18198 lt_cv_dlopen_self=cross
18199else
18200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18201 lt_status=$lt_dlunknown
18202 cat > conftest.$ac_ext <<EOF
Reid Spencer54d14482006-04-07 16:01:51 +000018203#line 18203 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018204#include "confdefs.h"
18205
18206#if HAVE_DLFCN_H
18207#include <dlfcn.h>
18208#endif
18209
18210#include <stdio.h>
18211
18212#ifdef RTLD_GLOBAL
18213# define LT_DLGLOBAL RTLD_GLOBAL
18214#else
18215# ifdef DL_GLOBAL
18216# define LT_DLGLOBAL DL_GLOBAL
18217# else
18218# define LT_DLGLOBAL 0
18219# endif
18220#endif
18221
18222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18223 find out it does not work in some platform. */
18224#ifndef LT_DLLAZY_OR_NOW
18225# ifdef RTLD_LAZY
18226# define LT_DLLAZY_OR_NOW RTLD_LAZY
18227# else
18228# ifdef DL_LAZY
18229# define LT_DLLAZY_OR_NOW DL_LAZY
18230# else
18231# ifdef RTLD_NOW
18232# define LT_DLLAZY_OR_NOW RTLD_NOW
18233# else
18234# ifdef DL_NOW
18235# define LT_DLLAZY_OR_NOW DL_NOW
18236# else
18237# define LT_DLLAZY_OR_NOW 0
18238# endif
18239# endif
18240# endif
18241# endif
18242#endif
18243
18244#ifdef __cplusplus
18245extern "C" void exit (int);
18246#endif
18247
18248void fnord() { int i=42;}
18249int main ()
18250{
18251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18252 int status = $lt_dlunknown;
18253
18254 if (self)
18255 {
18256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18258 /* dlclose (self); */
18259 }
18260
18261 exit (status);
18262}
18263EOF
18264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18265 (eval $ac_link) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18269 (./conftest; exit; ) 2>/dev/null
18270 lt_status=$?
18271 case x$lt_status in
18272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18274 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18275 esac
18276 else :
18277 # compilation failed
18278 lt_cv_dlopen_self=no
18279 fi
18280fi
18281rm -fr conftest*
18282
18283
18284fi
18285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18286echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18287
18288 if test "x$lt_cv_dlopen_self" = xyes; then
18289 LDFLAGS="$LDFLAGS $link_static_flag"
18290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18291echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18292if test "${lt_cv_dlopen_self_static+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294else
18295 if test "$cross_compiling" = yes; then :
18296 lt_cv_dlopen_self_static=cross
18297else
18298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18299 lt_status=$lt_dlunknown
18300 cat > conftest.$ac_ext <<EOF
Reid Spencer54d14482006-04-07 16:01:51 +000018301#line 18301 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018302#include "confdefs.h"
18303
18304#if HAVE_DLFCN_H
18305#include <dlfcn.h>
18306#endif
18307
18308#include <stdio.h>
18309
18310#ifdef RTLD_GLOBAL
18311# define LT_DLGLOBAL RTLD_GLOBAL
18312#else
18313# ifdef DL_GLOBAL
18314# define LT_DLGLOBAL DL_GLOBAL
18315# else
18316# define LT_DLGLOBAL 0
18317# endif
18318#endif
18319
18320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18321 find out it does not work in some platform. */
18322#ifndef LT_DLLAZY_OR_NOW
18323# ifdef RTLD_LAZY
18324# define LT_DLLAZY_OR_NOW RTLD_LAZY
18325# else
18326# ifdef DL_LAZY
18327# define LT_DLLAZY_OR_NOW DL_LAZY
18328# else
18329# ifdef RTLD_NOW
18330# define LT_DLLAZY_OR_NOW RTLD_NOW
18331# else
18332# ifdef DL_NOW
18333# define LT_DLLAZY_OR_NOW DL_NOW
18334# else
18335# define LT_DLLAZY_OR_NOW 0
18336# endif
18337# endif
18338# endif
18339# endif
18340#endif
18341
18342#ifdef __cplusplus
18343extern "C" void exit (int);
18344#endif
18345
18346void fnord() { int i=42;}
18347int main ()
18348{
18349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18350 int status = $lt_dlunknown;
18351
18352 if (self)
18353 {
18354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18356 /* dlclose (self); */
18357 }
18358
18359 exit (status);
18360}
18361EOF
18362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18363 (eval $ac_link) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18367 (./conftest; exit; ) 2>/dev/null
18368 lt_status=$?
18369 case x$lt_status in
18370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18372 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18373 esac
18374 else :
18375 # compilation failed
18376 lt_cv_dlopen_self_static=no
18377 fi
18378fi
18379rm -fr conftest*
18380
18381
18382fi
18383echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18384echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18385 fi
18386
18387 CPPFLAGS="$save_CPPFLAGS"
18388 LDFLAGS="$save_LDFLAGS"
18389 LIBS="$save_LIBS"
18390 ;;
18391 esac
18392
18393 case $lt_cv_dlopen_self in
18394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18395 *) enable_dlopen_self=unknown ;;
18396 esac
18397
18398 case $lt_cv_dlopen_self_static in
18399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18400 *) enable_dlopen_self_static=unknown ;;
18401 esac
18402fi
18403
18404
18405# The else clause should only fire when bootstrapping the
18406# libtool distribution, otherwise you forgot to ship ltmain.sh
18407# with your package, and you will get complaints that there are
18408# no rules to generate ltmain.sh.
18409if test -f "$ltmain"; then
18410 # See if we are running on zsh, and set the options which allow our commands through
18411 # without removal of \ escapes.
18412 if test -n "${ZSH_VERSION+set}" ; then
18413 setopt NO_GLOB_SUBST
18414 fi
18415 # Now quote all the things that may contain metacharacters while being
18416 # careful not to overquote the AC_SUBSTed values. We take copies of the
18417 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018418 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18419 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018420 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18421 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18422 deplibs_check_method reload_flag reload_cmds need_locks \
18423 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18424 lt_cv_sys_global_symbol_to_c_name_address \
18425 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18426 old_postinstall_cmds old_postuninstall_cmds \
18427 compiler_CXX \
18428 CC_CXX \
18429 LD_CXX \
18430 lt_prog_compiler_wl_CXX \
18431 lt_prog_compiler_pic_CXX \
18432 lt_prog_compiler_static_CXX \
18433 lt_prog_compiler_no_builtin_flag_CXX \
18434 export_dynamic_flag_spec_CXX \
18435 thread_safe_flag_spec_CXX \
18436 whole_archive_flag_spec_CXX \
18437 enable_shared_with_static_runtimes_CXX \
18438 old_archive_cmds_CXX \
18439 old_archive_from_new_cmds_CXX \
18440 predep_objects_CXX \
18441 postdep_objects_CXX \
18442 predeps_CXX \
18443 postdeps_CXX \
18444 compiler_lib_search_path_CXX \
18445 archive_cmds_CXX \
18446 archive_expsym_cmds_CXX \
18447 postinstall_cmds_CXX \
18448 postuninstall_cmds_CXX \
18449 old_archive_from_expsyms_cmds_CXX \
18450 allow_undefined_flag_CXX \
18451 no_undefined_flag_CXX \
18452 export_symbols_cmds_CXX \
18453 hardcode_libdir_flag_spec_CXX \
18454 hardcode_libdir_flag_spec_ld_CXX \
18455 hardcode_libdir_separator_CXX \
18456 hardcode_automatic_CXX \
18457 module_cmds_CXX \
18458 module_expsym_cmds_CXX \
18459 lt_cv_prog_compiler_c_o_CXX \
18460 exclude_expsyms_CXX \
18461 include_expsyms_CXX; do
18462
18463 case $var in
18464 old_archive_cmds_CXX | \
18465 old_archive_from_new_cmds_CXX | \
18466 archive_cmds_CXX | \
18467 archive_expsym_cmds_CXX | \
18468 module_cmds_CXX | \
18469 module_expsym_cmds_CXX | \
18470 old_archive_from_expsyms_cmds_CXX | \
18471 export_symbols_cmds_CXX | \
18472 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18473 postinstall_cmds | postuninstall_cmds | \
18474 old_postinstall_cmds | old_postuninstall_cmds | \
18475 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18476 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018477 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 +000018478 ;;
18479 *)
18480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18481 ;;
18482 esac
18483 done
18484
18485 case $lt_echo in
18486 *'\$0 --fallback-echo"')
18487 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18488 ;;
18489 esac
18490
18491cfgfile="$ofile"
18492
18493 cat <<__EOF__ >> "$cfgfile"
18494# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18495
18496# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18497
18498# Shell to use when invoking shell scripts.
18499SHELL=$lt_SHELL
18500
18501# Whether or not to build shared libraries.
18502build_libtool_libs=$enable_shared
18503
18504# Whether or not to build static libraries.
18505build_old_libs=$enable_static
18506
18507# Whether or not to add -lc for building shared libraries.
18508build_libtool_need_lc=$archive_cmds_need_lc_CXX
18509
18510# Whether or not to disallow shared libs when runtime libs are static
18511allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18512
18513# Whether or not to optimize for fast installation.
18514fast_install=$enable_fast_install
18515
18516# The host system.
18517host_alias=$host_alias
18518host=$host
18519
18520# An echo program that does not interpret backslashes.
18521echo=$lt_echo
18522
18523# The archiver.
18524AR=$lt_AR
18525AR_FLAGS=$lt_AR_FLAGS
18526
18527# A C compiler.
18528LTCC=$lt_LTCC
18529
18530# A language-specific compiler.
18531CC=$lt_compiler_CXX
18532
18533# Is the compiler the GNU C compiler?
18534with_gcc=$GCC_CXX
18535
18536# An ERE matcher.
18537EGREP=$lt_EGREP
18538
18539# The linker used to build libraries.
18540LD=$lt_LD_CXX
18541
18542# Whether we need hard or soft links.
18543LN_S=$lt_LN_S
18544
18545# A BSD-compatible nm program.
18546NM=$lt_NM
18547
18548# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018549STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018550
18551# Used to examine libraries when file_magic_cmd begins "file"
18552MAGIC_CMD=$MAGIC_CMD
18553
18554# Used on cygwin: DLL creation program.
18555DLLTOOL="$DLLTOOL"
18556
18557# Used on cygwin: object dumper.
18558OBJDUMP="$OBJDUMP"
18559
18560# Used on cygwin: assembler.
18561AS="$AS"
18562
18563# The name of the directory that contains temporary libtool files.
18564objdir=$objdir
18565
18566# How to create reloadable object files.
18567reload_flag=$lt_reload_flag
18568reload_cmds=$lt_reload_cmds
18569
18570# How to pass a linker flag through the compiler.
18571wl=$lt_lt_prog_compiler_wl_CXX
18572
18573# Object file suffix (normally "o").
18574objext="$ac_objext"
18575
18576# Old archive suffix (normally "a").
18577libext="$libext"
18578
18579# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018580shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018581
18582# Executable file suffix (normally "").
18583exeext="$exeext"
18584
18585# Additional compiler flags for building library objects.
18586pic_flag=$lt_lt_prog_compiler_pic_CXX
18587pic_mode=$pic_mode
18588
18589# What is the maximum length of a command?
18590max_cmd_len=$lt_cv_sys_max_cmd_len
18591
18592# Does compiler simultaneously support -c and -o options?
18593compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18594
18595# Must we lock files when doing compilation ?
18596need_locks=$lt_need_locks
18597
18598# Do we need the lib prefix for modules?
18599need_lib_prefix=$need_lib_prefix
18600
18601# Do we need a version for libraries?
18602need_version=$need_version
18603
18604# Whether dlopen is supported.
18605dlopen_support=$enable_dlopen
18606
18607# Whether dlopen of programs is supported.
18608dlopen_self=$enable_dlopen_self
18609
18610# Whether dlopen of statically linked programs is supported.
18611dlopen_self_static=$enable_dlopen_self_static
18612
18613# Compiler flag to prevent dynamic linking.
18614link_static_flag=$lt_lt_prog_compiler_static_CXX
18615
18616# Compiler flag to turn off builtin functions.
18617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18618
18619# Compiler flag to allow reflexive dlopens.
18620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18621
18622# Compiler flag to generate shared objects directly from archives.
18623whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18624
18625# Compiler flag to generate thread-safe objects.
18626thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18627
18628# Library versioning type.
18629version_type=$version_type
18630
18631# Format of library name prefix.
18632libname_spec=$lt_libname_spec
18633
18634# List of archive names. First name is the real one, the rest are links.
18635# The last name is the one that the linker finds with -lNAME.
18636library_names_spec=$lt_library_names_spec
18637
18638# The coded name of the library, if different from the real name.
18639soname_spec=$lt_soname_spec
18640
18641# Commands used to build and install an old-style archive.
18642RANLIB=$lt_RANLIB
18643old_archive_cmds=$lt_old_archive_cmds_CXX
18644old_postinstall_cmds=$lt_old_postinstall_cmds
18645old_postuninstall_cmds=$lt_old_postuninstall_cmds
18646
18647# Create an old-style archive from a shared archive.
18648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18649
18650# Create a temporary old-style archive to link instead of a shared archive.
18651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18652
18653# Commands used to build and install a shared archive.
18654archive_cmds=$lt_archive_cmds_CXX
18655archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18656postinstall_cmds=$lt_postinstall_cmds
18657postuninstall_cmds=$lt_postuninstall_cmds
18658
18659# Commands used to build a loadable module (assumed same as above if empty)
18660module_cmds=$lt_module_cmds_CXX
18661module_expsym_cmds=$lt_module_expsym_cmds_CXX
18662
18663# Commands to strip libraries.
18664old_striplib=$lt_old_striplib
18665striplib=$lt_striplib
18666
18667# Dependencies to place before the objects being linked to create a
18668# shared library.
18669predep_objects=$lt_predep_objects_CXX
18670
18671# Dependencies to place after the objects being linked to create a
18672# shared library.
18673postdep_objects=$lt_postdep_objects_CXX
18674
18675# Dependencies to place before the objects being linked to create a
18676# shared library.
18677predeps=$lt_predeps_CXX
18678
18679# Dependencies to place after the objects being linked to create a
18680# shared library.
18681postdeps=$lt_postdeps_CXX
18682
18683# The library search path used internally by the compiler when linking
18684# a shared library.
18685compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18686
18687# Method to check whether dependent libraries are shared objects.
18688deplibs_check_method=$lt_deplibs_check_method
18689
18690# Command to use when deplibs_check_method == file_magic.
18691file_magic_cmd=$lt_file_magic_cmd
18692
18693# Flag that allows shared libraries with undefined symbols to be built.
18694allow_undefined_flag=$lt_allow_undefined_flag_CXX
18695
18696# Flag that forces no undefined symbols.
18697no_undefined_flag=$lt_no_undefined_flag_CXX
18698
18699# Commands used to finish a libtool library installation in a directory.
18700finish_cmds=$lt_finish_cmds
18701
18702# Same as above, but a single script fragment to be evaled but not shown.
18703finish_eval=$lt_finish_eval
18704
18705# Take the output of nm and produce a listing of raw symbols and C names.
18706global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18707
18708# Transform the output of nm in a proper C declaration
18709global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18710
18711# Transform the output of nm in a C name address pair
18712global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18713
18714# This is the shared library runtime path variable.
18715runpath_var=$runpath_var
18716
18717# This is the shared library path variable.
18718shlibpath_var=$shlibpath_var
18719
18720# Is shlibpath searched before the hard-coded library search path?
18721shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18722
18723# How to hardcode a shared library path into an executable.
18724hardcode_action=$hardcode_action_CXX
18725
18726# Whether we should hardcode library paths into libraries.
18727hardcode_into_libs=$hardcode_into_libs
18728
18729# Flag to hardcode \$libdir into a binary during linking.
18730# This must work even if \$libdir does not exist.
18731hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18732
18733# If ld is used when linking, flag to hardcode \$libdir into
18734# a binary during linking. This must work even if \$libdir does
18735# not exist.
18736hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18737
18738# Whether we need a single -rpath flag with a separated argument.
18739hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18740
18741# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18742# resulting binary.
18743hardcode_direct=$hardcode_direct_CXX
18744
18745# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18746# resulting binary.
18747hardcode_minus_L=$hardcode_minus_L_CXX
18748
18749# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18750# the resulting binary.
18751hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18752
18753# Set to yes if building a shared library automatically hardcodes DIR into the library
18754# and all subsequent libraries and executables linked against it.
18755hardcode_automatic=$hardcode_automatic_CXX
18756
18757# Variables whose values should be saved in libtool wrapper scripts and
18758# restored at relink time.
18759variables_saved_for_relink="$variables_saved_for_relink"
18760
18761# Whether libtool must link a program against all its dependency libraries.
18762link_all_deplibs=$link_all_deplibs_CXX
18763
18764# Compile-time system search path for libraries
18765sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18766
18767# Run-time system search path for libraries
18768sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18769
18770# Fix the shell variable \$srcfile for the compiler.
18771fix_srcfile_path="$fix_srcfile_path_CXX"
18772
18773# Set to yes if exported symbols are required.
18774always_export_symbols=$always_export_symbols_CXX
18775
18776# The commands to list exported symbols.
18777export_symbols_cmds=$lt_export_symbols_cmds_CXX
18778
18779# The commands to extract the exported symbol list from a shared archive.
18780extract_expsyms_cmds=$lt_extract_expsyms_cmds
18781
18782# Symbols that should not be listed in the preloaded symbols.
18783exclude_expsyms=$lt_exclude_expsyms_CXX
18784
18785# Symbols that must always be exported.
18786include_expsyms=$lt_include_expsyms_CXX
18787
18788# ### END LIBTOOL TAG CONFIG: $tagname
18789
18790__EOF__
18791
18792
18793else
18794 # If there is no Makefile yet, we rely on a make rule to execute
18795 # `config.status --recheck' to rerun these tests and create the
18796 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18798 if test -f "$ltmain_in"; then
18799 test -f Makefile && make "$ltmain"
18800 fi
John Criswell47fdd832003-07-14 16:52:07 +000018801fi
18802
18803
18804ac_ext=c
18805ac_cpp='$CPP $CPPFLAGS'
18806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808ac_compiler_gnu=$ac_cv_c_compiler_gnu
18809
18810CC=$lt_save_CC
18811LDCXX=$LD
18812LD=$lt_save_LD
18813GCC=$lt_save_GCC
18814with_gnu_ldcxx=$with_gnu_ld
18815with_gnu_ld=$lt_save_with_gnu_ld
18816lt_cv_path_LDCXX=$lt_cv_path_LD
18817lt_cv_path_LD=$lt_save_path_LD
18818lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18819lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18820
18821 else
18822 tagname=""
18823 fi
18824 ;;
18825
18826 F77)
18827 if test -n "$F77" && test "X$F77" != "Xno"; then
18828
18829ac_ext=f
18830ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18831ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18833
18834
18835archive_cmds_need_lc_F77=no
18836allow_undefined_flag_F77=
18837always_export_symbols_F77=no
18838archive_expsym_cmds_F77=
18839export_dynamic_flag_spec_F77=
18840hardcode_direct_F77=no
18841hardcode_libdir_flag_spec_F77=
18842hardcode_libdir_flag_spec_ld_F77=
18843hardcode_libdir_separator_F77=
18844hardcode_minus_L_F77=no
18845hardcode_automatic_F77=no
18846module_cmds_F77=
18847module_expsym_cmds_F77=
18848link_all_deplibs_F77=unknown
18849old_archive_cmds_F77=$old_archive_cmds
18850no_undefined_flag_F77=
18851whole_archive_flag_spec_F77=
18852enable_shared_with_static_runtimes_F77=no
18853
18854# Source file extension for f77 test sources.
18855ac_ext=f
18856
18857# Object file extension for compiled f77 test sources.
18858objext=o
18859objext_F77=$objext
18860
18861# Code to be used in simple compile tests
18862lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18863
18864# Code to be used in simple link tests
18865lt_simple_link_test_code=" program t\n end\n"
18866
18867# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18868
18869# If no C compiler was specified, use CC.
18870LTCC=${LTCC-"$CC"}
18871
18872# Allow CC to be a program name with arguments.
18873compiler=$CC
18874
18875
18876# Allow CC to be a program name with arguments.
18877lt_save_CC="$CC"
18878CC=${F77-"f77"}
18879compiler=$CC
18880compiler_F77=$CC
18881cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18882
18883echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18884echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18885echo "$as_me:$LINENO: result: $can_build_shared" >&5
18886echo "${ECHO_T}$can_build_shared" >&6
18887
18888echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18889echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18890test "$can_build_shared" = "no" && enable_shared=no
18891
18892# On AIX, shared libraries and static libraries use the same namespace, and
18893# are all built from PIC.
18894case "$host_os" in
18895aix3*)
18896 test "$enable_shared" = yes && enable_static=no
18897 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018898 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018899 postinstall_cmds='$RANLIB $lib'
18900 fi
18901 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018902aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018903 test "$enable_shared" = yes && enable_static=no
18904 ;;
18905esac
18906echo "$as_me:$LINENO: result: $enable_shared" >&5
18907echo "${ECHO_T}$enable_shared" >&6
18908
18909echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18910echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18911# Make sure either enable_shared or enable_static is yes.
18912test "$enable_shared" = yes || enable_static=yes
18913echo "$as_me:$LINENO: result: $enable_static" >&5
18914echo "${ECHO_T}$enable_static" >&6
18915
18916test "$ld_shlibs_F77" = no && can_build_shared=no
18917
18918GCC_F77="$G77"
18919LD_F77="$LD"
18920
18921lt_prog_compiler_wl_F77=
18922lt_prog_compiler_pic_F77=
18923lt_prog_compiler_static_F77=
18924
18925echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18926echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18927
18928 if test "$GCC" = yes; then
18929 lt_prog_compiler_wl_F77='-Wl,'
18930 lt_prog_compiler_static_F77='-static'
18931
18932 case $host_os in
18933 aix*)
18934 # All AIX code is PIC.
18935 if test "$host_cpu" = ia64; then
18936 # AIX 5 now supports IA64 processor
18937 lt_prog_compiler_static_F77='-Bstatic'
18938 fi
18939 ;;
18940
18941 amigaos*)
18942 # FIXME: we need at least 68020 code to build shared libraries, but
18943 # adding the `-m68020' flag to GCC prevents building anything better,
18944 # like `-m68040'.
18945 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18946 ;;
18947
18948 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18949 # PIC is the default for these OSes.
18950 ;;
18951
18952 mingw* | pw32* | os2*)
18953 # This hack is so that the source file can tell whether it is being
18954 # built for inclusion in a dll (and should export symbols for example).
18955 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18956 ;;
18957
18958 darwin* | rhapsody*)
18959 # PIC is the default on this platform
18960 # Common symbols not allowed in MH_DYLIB files
18961 lt_prog_compiler_pic_F77='-fno-common'
18962 ;;
18963
18964 msdosdjgpp*)
18965 # Just because we use GCC doesn't mean we suddenly get shared libraries
18966 # on systems that don't support them.
18967 lt_prog_compiler_can_build_shared_F77=no
18968 enable_shared=no
18969 ;;
18970
18971 sysv4*MP*)
18972 if test -d /usr/nec; then
18973 lt_prog_compiler_pic_F77=-Kconform_pic
18974 fi
18975 ;;
18976
18977 hpux*)
18978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18979 # not for PA HP-UX.
18980 case "$host_cpu" in
18981 hppa*64*|ia64*)
18982 # +Z the default
18983 ;;
18984 *)
18985 lt_prog_compiler_pic_F77='-fPIC'
18986 ;;
18987 esac
18988 ;;
18989
18990 *)
18991 lt_prog_compiler_pic_F77='-fPIC'
18992 ;;
18993 esac
18994 else
18995 # PORTME Check for flag to pass linker flags through the system compiler.
18996 case $host_os in
18997 aix*)
18998 lt_prog_compiler_wl_F77='-Wl,'
18999 if test "$host_cpu" = ia64; then
19000 # AIX 5 now supports IA64 processor
19001 lt_prog_compiler_static_F77='-Bstatic'
19002 else
19003 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19004 fi
19005 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019006 darwin*)
19007 # PIC is the default on this platform
19008 # Common symbols not allowed in MH_DYLIB files
19009 case "$cc_basename" in
19010 xlc*)
19011 lt_prog_compiler_pic_F77='-qnocommon'
19012 lt_prog_compiler_wl_F77='-Wl,'
19013 ;;
19014 esac
19015 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019016
19017 mingw* | pw32* | os2*)
19018 # This hack is so that the source file can tell whether it is being
19019 # built for inclusion in a dll (and should export symbols for example).
19020 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19021 ;;
19022
19023 hpux9* | hpux10* | hpux11*)
19024 lt_prog_compiler_wl_F77='-Wl,'
19025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19026 # not for PA HP-UX.
19027 case "$host_cpu" in
19028 hppa*64*|ia64*)
19029 # +Z the default
19030 ;;
19031 *)
19032 lt_prog_compiler_pic_F77='+Z'
19033 ;;
19034 esac
19035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19036 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19037 ;;
19038
19039 irix5* | irix6* | nonstopux*)
19040 lt_prog_compiler_wl_F77='-Wl,'
19041 # PIC (with -KPIC) is the default.
19042 lt_prog_compiler_static_F77='-non_shared'
19043 ;;
19044
19045 newsos6)
19046 lt_prog_compiler_pic_F77='-KPIC'
19047 lt_prog_compiler_static_F77='-Bstatic'
19048 ;;
19049
19050 linux*)
19051 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019052 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019053 lt_prog_compiler_wl_F77='-Wl,'
19054 lt_prog_compiler_pic_F77='-KPIC'
19055 lt_prog_compiler_static_F77='-static'
19056 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019057 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019058 lt_prog_compiler_wl_F77='-Wl,'
19059 # All Alpha code is PIC.
19060 lt_prog_compiler_static_F77='-non_shared'
19061 ;;
19062 esac
19063 ;;
19064
19065 osf3* | osf4* | osf5*)
19066 lt_prog_compiler_wl_F77='-Wl,'
19067 # All OSF/1 code is PIC.
19068 lt_prog_compiler_static_F77='-non_shared'
19069 ;;
19070
19071 sco3.2v5*)
19072 lt_prog_compiler_pic_F77='-Kpic'
19073 lt_prog_compiler_static_F77='-dn'
19074 ;;
19075
19076 solaris*)
19077 lt_prog_compiler_wl_F77='-Wl,'
19078 lt_prog_compiler_pic_F77='-KPIC'
19079 lt_prog_compiler_static_F77='-Bstatic'
19080 ;;
19081
19082 sunos4*)
19083 lt_prog_compiler_wl_F77='-Qoption ld '
19084 lt_prog_compiler_pic_F77='-PIC'
19085 lt_prog_compiler_static_F77='-Bstatic'
19086 ;;
19087
19088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19089 lt_prog_compiler_wl_F77='-Wl,'
19090 lt_prog_compiler_pic_F77='-KPIC'
19091 lt_prog_compiler_static_F77='-Bstatic'
19092 ;;
19093
19094 sysv4*MP*)
19095 if test -d /usr/nec ;then
19096 lt_prog_compiler_pic_F77='-Kconform_pic'
19097 lt_prog_compiler_static_F77='-Bstatic'
19098 fi
19099 ;;
19100
19101 uts4*)
19102 lt_prog_compiler_pic_F77='-pic'
19103 lt_prog_compiler_static_F77='-Bstatic'
19104 ;;
19105
19106 *)
19107 lt_prog_compiler_can_build_shared_F77=no
19108 ;;
19109 esac
19110 fi
19111
19112echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19113echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19114
19115#
19116# Check to make sure the PIC flag actually works.
19117#
19118if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019119
19120echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019121echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19122if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19124else
19125 lt_prog_compiler_pic_works_F77=no
19126 ac_outfile=conftest.$ac_objext
19127 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19128 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19129 # Insert the option either (1) after the last *FLAGS variable, or
19130 # (2) before a word containing "conftest.", or (3) at the end.
19131 # Note that $ac_compile itself does not contain backslashes and begins
19132 # with a dollar sign (not a hyphen), so the echo should work correctly.
19133 # The option is referenced via a variable to avoid confusing sed.
19134 lt_compile=`echo "$ac_compile" | $SED \
19135 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19137 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000019138 (eval echo "\"\$as_me:19138: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019139 (eval "$lt_compile" 2>conftest.err)
19140 ac_status=$?
19141 cat conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000019142 echo "$as_me:19142: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019143 if (exit $ac_status) && test -s "$ac_outfile"; then
19144 # The compiler can only warn and ignore the option if not recognized
19145 # So say no if there are warnings
19146 if test ! -s conftest.err; then
19147 lt_prog_compiler_pic_works_F77=yes
19148 fi
19149 fi
19150 $rm conftest*
19151
19152fi
19153echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19154echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19155
19156if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19157 case $lt_prog_compiler_pic_F77 in
19158 "" | " "*) ;;
19159 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19160 esac
19161else
19162 lt_prog_compiler_pic_F77=
19163 lt_prog_compiler_can_build_shared_F77=no
19164fi
19165
19166fi
19167case "$host_os" in
19168 # For platforms which do not support PIC, -DPIC is meaningless:
19169 *djgpp*)
19170 lt_prog_compiler_pic_F77=
19171 ;;
19172 *)
19173 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19174 ;;
19175esac
19176
19177echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19178echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19179if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19181else
19182 lt_cv_prog_compiler_c_o_F77=no
19183 $rm -r conftest 2>/dev/null
19184 mkdir conftest
19185 cd conftest
19186 mkdir out
19187 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19188
John Criswell47fdd832003-07-14 16:52:07 +000019189 lt_compiler_flag="-o out/conftest2.$ac_objext"
19190 # Insert the option either (1) after the last *FLAGS variable, or
19191 # (2) before a word containing "conftest.", or (3) at the end.
19192 # Note that $ac_compile itself does not contain backslashes and begins
19193 # with a dollar sign (not a hyphen), so the echo should work correctly.
19194 lt_compile=`echo "$ac_compile" | $SED \
19195 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19197 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000019198 (eval echo "\"\$as_me:19198: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019199 (eval "$lt_compile" 2>out/conftest.err)
19200 ac_status=$?
19201 cat out/conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000019202 echo "$as_me:19202: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19204 then
19205 # The compiler can only warn and ignore the option if not recognized
19206 # So say no if there are warnings
19207 if test ! -s out/conftest.err; then
19208 lt_cv_prog_compiler_c_o_F77=yes
19209 fi
19210 fi
19211 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019212 $rm conftest*
19213 # SGI C++ compiler will create directory out/ii_files/ for
19214 # template instantiation
19215 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19216 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019217 cd ..
19218 rmdir conftest
19219 $rm conftest*
19220
19221fi
19222echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19223echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19224
19225
19226hard_links="nottested"
19227if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19228 # do not overwrite the value of need_locks provided by the user
19229 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19230echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19231 hard_links=yes
19232 $rm conftest*
19233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19234 touch conftest.a
19235 ln conftest.a conftest.b 2>&5 || hard_links=no
19236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19237 echo "$as_me:$LINENO: result: $hard_links" >&5
19238echo "${ECHO_T}$hard_links" >&6
19239 if test "$hard_links" = no; then
19240 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19241echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19242 need_locks=warn
19243 fi
19244else
19245 need_locks=no
19246fi
19247
19248echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19249echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19250
19251 runpath_var=
19252 allow_undefined_flag_F77=
19253 enable_shared_with_static_runtimes_F77=no
19254 archive_cmds_F77=
19255 archive_expsym_cmds_F77=
19256 old_archive_From_new_cmds_F77=
19257 old_archive_from_expsyms_cmds_F77=
19258 export_dynamic_flag_spec_F77=
19259 whole_archive_flag_spec_F77=
19260 thread_safe_flag_spec_F77=
19261 hardcode_libdir_flag_spec_F77=
19262 hardcode_libdir_flag_spec_ld_F77=
19263 hardcode_libdir_separator_F77=
19264 hardcode_direct_F77=no
19265 hardcode_minus_L_F77=no
19266 hardcode_shlibpath_var_F77=unsupported
19267 link_all_deplibs_F77=unknown
19268 hardcode_automatic_F77=no
19269 module_cmds_F77=
19270 module_expsym_cmds_F77=
19271 always_export_symbols_F77=no
19272 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19273 # include_expsyms should be a list of space-separated symbols to be *always*
19274 # included in the symbol list
19275 include_expsyms_F77=
19276 # exclude_expsyms can be an extended regexp of symbols to exclude
19277 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19278 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19279 # as well as any symbol that contains `d'.
19280 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19281 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19282 # platforms (ab)use it in PIC code, but their linkers get confused if
19283 # the symbol is explicitly referenced. Since portable code cannot
19284 # rely on this symbol name, it's probably fine to never include it in
19285 # preloaded symbol tables.
19286 extract_expsyms_cmds=
19287
19288 case $host_os in
19289 cygwin* | mingw* | pw32*)
19290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19291 # When not using gcc, we currently assume that we are using
19292 # Microsoft Visual C++.
19293 if test "$GCC" != yes; then
19294 with_gnu_ld=no
19295 fi
19296 ;;
19297 openbsd*)
19298 with_gnu_ld=no
19299 ;;
19300 esac
19301
19302 ld_shlibs_F77=yes
19303 if test "$with_gnu_ld" = yes; then
19304 # If archive_cmds runs LD, not CC, wlarc should be empty
19305 wlarc='${wl}'
19306
19307 # See if GNU ld supports shared libraries.
19308 case $host_os in
19309 aix3* | aix4* | aix5*)
19310 # On AIX/PPC, the GNU linker is very broken
19311 if test "$host_cpu" != ia64; then
19312 ld_shlibs_F77=no
19313 cat <<EOF 1>&2
19314
19315*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19316*** to be unable to reliably create shared libraries on AIX.
19317*** Therefore, libtool is disabling shared libraries support. If you
19318*** really care for shared libraries, you may want to modify your PATH
19319*** so that a non-GNU linker is found, and then restart.
19320
19321EOF
19322 fi
19323 ;;
19324
19325 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019326 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 +000019327 hardcode_libdir_flag_spec_F77='-L$libdir'
19328 hardcode_minus_L_F77=yes
19329
19330 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19331 # that the semantics of dynamic libraries on AmigaOS, at least up
19332 # to version 4, is to share data among multiple programs linked
19333 # with the same dynamic library. Since this doesn't match the
19334 # behavior of shared libraries on other platforms, we can't use
19335 # them.
19336 ld_shlibs_F77=no
19337 ;;
19338
19339 beos*)
19340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19341 allow_undefined_flag_F77=unsupported
19342 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19343 # support --undefined. This deserves some investigation. FIXME
19344 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 else
19346 ld_shlibs_F77=no
19347 fi
19348 ;;
19349
19350 cygwin* | mingw* | pw32*)
19351 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19352 # as there is no search path for DLLs.
19353 hardcode_libdir_flag_spec_F77='-L$libdir'
19354 allow_undefined_flag_F77=unsupported
19355 always_export_symbols_F77=no
19356 enable_shared_with_static_runtimes_F77=yes
19357 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19358
19359 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19361 # If the export-symbols file already is a .def file (1st line
19362 # is EXPORTS), use it as is; otherwise, prepend...
19363 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19364 cp $export_symbols $output_objdir/$soname.def;
19365 else
19366 echo EXPORTS > $output_objdir/$soname.def;
19367 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019368 fi~
19369 $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 +000019370 else
19371 ld_shlibs=no
19372 fi
19373 ;;
19374
19375 netbsd*)
19376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19377 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19378 wlarc=
19379 else
19380 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19382 fi
19383 ;;
19384
19385 solaris* | sysv5*)
19386 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19387 ld_shlibs_F77=no
19388 cat <<EOF 1>&2
19389
19390*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19391*** create shared libraries on Solaris systems. Therefore, libtool
19392*** is disabling shared libraries support. We urge you to upgrade GNU
19393*** binutils to release 2.9.1 or newer. Another option is to modify
19394*** your PATH or compiler configuration so that the native linker is
19395*** used, and then restart.
19396
19397EOF
19398 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19399 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19400 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19401 else
19402 ld_shlibs_F77=no
19403 fi
19404 ;;
19405
19406 sunos4*)
19407 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19408 wlarc=
19409 hardcode_direct_F77=yes
19410 hardcode_shlibpath_var_F77=no
19411 ;;
19412
Reid Spencer2706f8c2004-09-19 23:53:36 +000019413 linux*)
19414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19415 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19416 archive_cmds_F77="$tmp_archive_cmds"
19417 supports_anon_versioning=no
19418 case `$LD -v 2>/dev/null` in
19419 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19420 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19421 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19422 *\ 2.11.*) ;; # other 2.11 versions
19423 *) supports_anon_versioning=yes ;;
19424 esac
19425 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019426 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19427cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19428$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019429 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19430 else
19431 archive_expsym_cmds_F77="$tmp_archive_cmds"
19432 fi
19433 else
19434 ld_shlibs_F77=no
19435 fi
19436 ;;
19437
John Criswell47fdd832003-07-14 16:52:07 +000019438 *)
19439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19440 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19441 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19442 else
19443 ld_shlibs_F77=no
19444 fi
19445 ;;
19446 esac
19447
19448 if test "$ld_shlibs_F77" = yes; then
19449 runpath_var=LD_RUN_PATH
19450 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19451 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19452 # ancient GNU ld didn't support --whole-archive et. al.
19453 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19454 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19455 else
19456 whole_archive_flag_spec_F77=
19457 fi
19458 fi
19459 else
19460 # PORTME fill in a description of your system's linker (not GNU ld)
19461 case $host_os in
19462 aix3*)
19463 allow_undefined_flag_F77=unsupported
19464 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019465 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 +000019466 # Note: this linker hardcodes the directories in LIBPATH if there
19467 # are no directories specified by -L.
19468 hardcode_minus_L_F77=yes
19469 if test "$GCC" = yes && test -z "$link_static_flag"; then
19470 # Neither direct hardcoding nor static linking is supported with a
19471 # broken collect2.
19472 hardcode_direct_F77=unsupported
19473 fi
19474 ;;
19475
19476 aix4* | aix5*)
19477 if test "$host_cpu" = ia64; then
19478 # On IA64, the linker does run time linking by default, so we don't
19479 # have to do anything special.
19480 aix_use_runtimelinking=no
19481 exp_sym_flag='-Bexport'
19482 no_entry_flag=""
19483 else
19484 # If we're using GNU nm, then we don't want the "-C" option.
19485 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19486 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19487 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'
19488 else
19489 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'
19490 fi
19491 aix_use_runtimelinking=no
19492
19493 # Test if we are trying to use run time linking or normal
19494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19495 # need to do runtime linking.
19496 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19497 for ld_flag in $LDFLAGS; do
19498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19499 aix_use_runtimelinking=yes
19500 break
19501 fi
19502 done
19503 esac
19504
19505 exp_sym_flag='-bexport'
19506 no_entry_flag='-bnoentry'
19507 fi
19508
19509 # When large executables or shared objects are built, AIX ld can
19510 # have problems creating the table of contents. If linking a library
19511 # or program results in "error TOC overflow" add -mminimal-toc to
19512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19514
19515 archive_cmds_F77=''
19516 hardcode_direct_F77=yes
19517 hardcode_libdir_separator_F77=':'
19518 link_all_deplibs_F77=yes
19519
19520 if test "$GCC" = yes; then
19521 case $host_os in aix4.012|aix4.012.*)
19522 # We only want to do this on AIX 4.2 and lower, the check
19523 # below for broken collect2 doesn't work under 4.3+
19524 collect2name=`${CC} -print-prog-name=collect2`
19525 if test -f "$collect2name" && \
19526 strings "$collect2name" | grep resolve_lib_name >/dev/null
19527 then
19528 # We have reworked collect2
19529 hardcode_direct_F77=yes
19530 else
19531 # We have old collect2
19532 hardcode_direct_F77=unsupported
19533 # It fails to find uninstalled libraries when the uninstalled
19534 # path is not listed in the libpath. Setting hardcode_minus_L
19535 # to unsupported forces relinking
19536 hardcode_minus_L_F77=yes
19537 hardcode_libdir_flag_spec_F77='-L$libdir'
19538 hardcode_libdir_separator_F77=
19539 fi
19540 esac
19541 shared_flag='-shared'
19542 else
19543 # not using gcc
19544 if test "$host_cpu" = ia64; then
19545 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19546 # chokes on -Wl,-G. The following line is correct:
19547 shared_flag='-G'
19548 else
19549 if test "$aix_use_runtimelinking" = yes; then
19550 shared_flag='${wl}-G'
19551 else
19552 shared_flag='${wl}-bM:SRE'
19553 fi
19554 fi
19555 fi
19556
19557 # It seems that -bexpall does not export symbols beginning with
19558 # underscore (_), so it is better to generate a list of symbols to export.
19559 always_export_symbols_F77=yes
19560 if test "$aix_use_runtimelinking" = yes; then
19561 # Warning - without using the other runtime loading flags (-brtl),
19562 # -berok will link without error, but may produce a broken library.
19563 allow_undefined_flag_F77='-berok'
19564 # Determine the default libpath from the value encoded in an empty executable.
19565 cat >conftest.$ac_ext <<_ACEOF
19566 program main
19567
19568 end
19569_ACEOF
19570rm -f conftest.$ac_objext conftest$ac_exeext
19571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019572 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019573 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019579 { ac_try='test -z "$ac_f77_werror_flag"
19580 || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592
19593aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19594}'`
19595# Check for a 64-bit object if we didn't find anything.
19596if 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; }
19597}'`; fi
19598else
19599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019600sed 's/^/| /' conftest.$ac_ext >&5
19601
John Criswell47fdd832003-07-14 16:52:07 +000019602fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019603rm -f conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019605if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19606
19607 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19608 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"
19609 else
19610 if test "$host_cpu" = ia64; then
19611 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19612 allow_undefined_flag_F77="-z nodefs"
19613 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"
19614 else
19615 # Determine the default libpath from the value encoded in an empty executable.
19616 cat >conftest.$ac_ext <<_ACEOF
19617 program main
19618
19619 end
19620_ACEOF
19621rm -f conftest.$ac_objext conftest$ac_exeext
19622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019623 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019624 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019630 { ac_try='test -z "$ac_f77_werror_flag"
19631 || test ! -s conftest.err'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; } &&
19637 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643
19644aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19645}'`
19646# Check for a 64-bit object if we didn't find anything.
19647if 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; }
19648}'`; fi
19649else
19650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019651sed 's/^/| /' conftest.$ac_ext >&5
19652
John Criswell47fdd832003-07-14 16:52:07 +000019653fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019654rm -f conftest.err conftest.$ac_objext \
19655 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019656if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19657
19658 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19659 # Warning - without using the other run time loading flags,
19660 # -berok will link without error, but may produce a broken library.
19661 no_undefined_flag_F77=' ${wl}-bernotok'
19662 allow_undefined_flag_F77=' ${wl}-berok'
19663 # -bexpall does not export symbols beginning with underscore (_)
19664 always_export_symbols_F77=yes
19665 # Exported symbols can be pulled into shared objects from archives
19666 whole_archive_flag_spec_F77=' '
19667 archive_cmds_need_lc_F77=yes
19668 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019669 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 +000019670 fi
19671 fi
19672 ;;
19673
19674 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019675 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 +000019676 hardcode_libdir_flag_spec_F77='-L$libdir'
19677 hardcode_minus_L_F77=yes
19678 # see comment about different semantics on the GNU ld section
19679 ld_shlibs_F77=no
19680 ;;
19681
Reid Spencer2706f8c2004-09-19 23:53:36 +000019682 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019683 export_dynamic_flag_spec_F77=-rdynamic
19684 ;;
19685
19686 cygwin* | mingw* | pw32*)
19687 # When not using gcc, we currently assume that we are using
19688 # Microsoft Visual C++.
19689 # hardcode_libdir_flag_spec is actually meaningless, as there is
19690 # no search path for DLLs.
19691 hardcode_libdir_flag_spec_F77=' '
19692 allow_undefined_flag_F77=unsupported
19693 # Tell ltmain to make .lib files, not .a files.
19694 libext=lib
19695 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019696 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019697 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019698 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 +000019699 # The linker will automatically build a .lib file if we build a DLL.
19700 old_archive_From_new_cmds_F77='true'
19701 # FIXME: Should let the user specify the lib program.
19702 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19703 fix_srcfile_path='`cygpath -w "$srcfile"`'
19704 enable_shared_with_static_runtimes_F77=yes
19705 ;;
19706
19707 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019708 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019709 rhapsody* | darwin1.[012])
19710 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19711 ;;
19712 *) # Darwin 1.3 on
19713 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19714 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19715 else
19716 case ${MACOSX_DEPLOYMENT_TARGET} in
19717 10.[012])
19718 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19719 ;;
19720 10.*)
19721 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19722 ;;
19723 esac
19724 fi
19725 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019726 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019727 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019728 hardcode_direct_F77=no
19729 hardcode_automatic_F77=yes
19730 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019731 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019732 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019733 if test "$GCC" = yes ; then
19734 output_verbose_link_cmd='echo'
19735 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19736 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19737 # 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 +000019738 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}'
19739 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 +000019740 else
19741 case "$cc_basename" in
19742 xlc*)
19743 output_verbose_link_cmd='echo'
19744 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19745 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19746 # 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 +000019747 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}'
19748 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 +000019749 ;;
19750 *)
19751 ld_shlibs_F77=no
19752 ;;
19753 esac
John Criswell47fdd832003-07-14 16:52:07 +000019754 fi
19755 ;;
19756
19757 dgux*)
19758 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19759 hardcode_libdir_flag_spec_F77='-L$libdir'
19760 hardcode_shlibpath_var_F77=no
19761 ;;
19762
19763 freebsd1*)
19764 ld_shlibs_F77=no
19765 ;;
19766
19767 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19768 # support. Future versions do this automatically, but an explicit c++rt0.o
19769 # does not break anything, and helps significantly (at the cost of a little
19770 # extra space).
19771 freebsd2.2*)
19772 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19773 hardcode_libdir_flag_spec_F77='-R$libdir'
19774 hardcode_direct_F77=yes
19775 hardcode_shlibpath_var_F77=no
19776 ;;
19777
19778 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19779 freebsd2*)
19780 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19781 hardcode_direct_F77=yes
19782 hardcode_minus_L_F77=yes
19783 hardcode_shlibpath_var_F77=no
19784 ;;
19785
19786 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019787 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019788 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19789 hardcode_libdir_flag_spec_F77='-R$libdir'
19790 hardcode_direct_F77=yes
19791 hardcode_shlibpath_var_F77=no
19792 ;;
19793
19794 hpux9*)
19795 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019796 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 +000019797 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019798 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 +000019799 fi
19800 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19801 hardcode_libdir_separator_F77=:
19802 hardcode_direct_F77=yes
19803
19804 # hardcode_minus_L: Not really in the search PATH,
19805 # but as the default location of the library.
19806 hardcode_minus_L_F77=yes
19807 export_dynamic_flag_spec_F77='${wl}-E'
19808 ;;
19809
19810 hpux10* | hpux11*)
19811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19812 case "$host_cpu" in
19813 hppa*64*|ia64*)
19814 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19815 ;;
19816 *)
19817 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19818 ;;
19819 esac
19820 else
19821 case "$host_cpu" in
19822 hppa*64*|ia64*)
19823 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19824 ;;
19825 *)
19826 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19827 ;;
19828 esac
19829 fi
19830 if test "$with_gnu_ld" = no; then
19831 case "$host_cpu" in
19832 hppa*64*)
19833 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19834 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19835 hardcode_libdir_separator_F77=:
19836 hardcode_direct_F77=no
19837 hardcode_shlibpath_var_F77=no
19838 ;;
19839 ia64*)
19840 hardcode_libdir_flag_spec_F77='-L$libdir'
19841 hardcode_direct_F77=no
19842 hardcode_shlibpath_var_F77=no
19843
19844 # hardcode_minus_L: Not really in the search PATH,
19845 # but as the default location of the library.
19846 hardcode_minus_L_F77=yes
19847 ;;
19848 *)
19849 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19850 hardcode_libdir_separator_F77=:
19851 hardcode_direct_F77=yes
19852 export_dynamic_flag_spec_F77='${wl}-E'
19853
19854 # hardcode_minus_L: Not really in the search PATH,
19855 # but as the default location of the library.
19856 hardcode_minus_L_F77=yes
19857 ;;
19858 esac
19859 fi
19860 ;;
19861
19862 irix5* | irix6* | nonstopux*)
19863 if test "$GCC" = yes; then
19864 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'
19865 else
19866 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'
19867 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19868 fi
19869 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19870 hardcode_libdir_separator_F77=:
19871 link_all_deplibs_F77=yes
19872 ;;
19873
19874 netbsd*)
19875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19877 else
19878 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19879 fi
19880 hardcode_libdir_flag_spec_F77='-R$libdir'
19881 hardcode_direct_F77=yes
19882 hardcode_shlibpath_var_F77=no
19883 ;;
19884
19885 newsos6)
19886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19887 hardcode_direct_F77=yes
19888 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19889 hardcode_libdir_separator_F77=:
19890 hardcode_shlibpath_var_F77=no
19891 ;;
19892
19893 openbsd*)
19894 hardcode_direct_F77=yes
19895 hardcode_shlibpath_var_F77=no
19896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19897 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019898 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 +000019899 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19900 export_dynamic_flag_spec_F77='${wl}-E'
19901 else
19902 case $host_os in
19903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19904 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19905 hardcode_libdir_flag_spec_F77='-R$libdir'
19906 ;;
19907 *)
19908 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19909 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19910 ;;
19911 esac
19912 fi
19913 ;;
19914
19915 os2*)
19916 hardcode_libdir_flag_spec_F77='-L$libdir'
19917 hardcode_minus_L_F77=yes
19918 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019919 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 +000019920 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19921 ;;
19922
19923 osf3*)
19924 if test "$GCC" = yes; then
19925 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19926 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'
19927 else
19928 allow_undefined_flag_F77=' -expect_unresolved \*'
19929 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'
19930 fi
19931 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19932 hardcode_libdir_separator_F77=:
19933 ;;
19934
19935 osf4* | osf5*) # as osf3* with the addition of -msym flag
19936 if test "$GCC" = yes; then
19937 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19938 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'
19939 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19940 else
19941 allow_undefined_flag_F77=' -expect_unresolved \*'
19942 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 +000019943 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~
19944 $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'
19945
John Criswell47fdd832003-07-14 16:52:07 +000019946 # Both c and cxx compiler support -rpath directly
19947 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19948 fi
19949 hardcode_libdir_separator_F77=:
19950 ;;
19951
19952 sco3.2v5*)
19953 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19954 hardcode_shlibpath_var_F77=no
19955 export_dynamic_flag_spec_F77='${wl}-Bexport'
19956 runpath_var=LD_RUN_PATH
19957 hardcode_runpath_var=yes
19958 ;;
19959
19960 solaris*)
19961 no_undefined_flag_F77=' -z text'
19962 if test "$GCC" = yes; then
19963 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019964 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19965 $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 +000019966 else
19967 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019968 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19969 $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 +000019970 fi
19971 hardcode_libdir_flag_spec_F77='-R$libdir'
19972 hardcode_shlibpath_var_F77=no
19973 case $host_os in
19974 solaris2.[0-5] | solaris2.[0-5].*) ;;
19975 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19976 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19977 esac
19978 link_all_deplibs_F77=yes
19979 ;;
19980
19981 sunos4*)
19982 if test "x$host_vendor" = xsequent; then
19983 # Use $CC to link under sequent, because it throws in some extra .o
19984 # files that make .init and .fini sections work.
19985 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19986 else
19987 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19988 fi
19989 hardcode_libdir_flag_spec_F77='-L$libdir'
19990 hardcode_direct_F77=yes
19991 hardcode_minus_L_F77=yes
19992 hardcode_shlibpath_var_F77=no
19993 ;;
19994
19995 sysv4)
19996 case $host_vendor in
19997 sni)
19998 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19999 hardcode_direct_F77=yes # is this really true???
20000 ;;
20001 siemens)
20002 ## LD is ld it makes a PLAMLIB
20003 ## CC just makes a GrossModule.
20004 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20005 reload_cmds_F77='$CC -r -o $output$reload_objs'
20006 hardcode_direct_F77=no
20007 ;;
20008 motorola)
20009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20010 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20011 ;;
20012 esac
20013 runpath_var='LD_RUN_PATH'
20014 hardcode_shlibpath_var_F77=no
20015 ;;
20016
20017 sysv4.3*)
20018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20019 hardcode_shlibpath_var_F77=no
20020 export_dynamic_flag_spec_F77='-Bexport'
20021 ;;
20022
20023 sysv4*MP*)
20024 if test -d /usr/nec; then
20025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20026 hardcode_shlibpath_var_F77=no
20027 runpath_var=LD_RUN_PATH
20028 hardcode_runpath_var=yes
20029 ld_shlibs_F77=yes
20030 fi
20031 ;;
20032
20033 sysv4.2uw2*)
20034 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20035 hardcode_direct_F77=yes
20036 hardcode_minus_L_F77=no
20037 hardcode_shlibpath_var_F77=no
20038 hardcode_runpath_var=yes
20039 runpath_var=LD_RUN_PATH
20040 ;;
20041
20042 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20043 no_undefined_flag_F77='${wl}-z ${wl}text'
20044 if test "$GCC" = yes; then
20045 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20046 else
20047 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20048 fi
20049 runpath_var='LD_RUN_PATH'
20050 hardcode_shlibpath_var_F77=no
20051 ;;
20052
20053 sysv5*)
20054 no_undefined_flag_F77=' -z text'
20055 # $CC -shared without GNU ld will not create a library from C++
20056 # object files and a static libstdc++, better avoid it by now
20057 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020058 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20059 $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 +000020060 hardcode_libdir_flag_spec_F77=
20061 hardcode_shlibpath_var_F77=no
20062 runpath_var='LD_RUN_PATH'
20063 ;;
20064
20065 uts4*)
20066 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20067 hardcode_libdir_flag_spec_F77='-L$libdir'
20068 hardcode_shlibpath_var_F77=no
20069 ;;
20070
20071 *)
20072 ld_shlibs_F77=no
20073 ;;
20074 esac
20075 fi
20076
20077echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20078echo "${ECHO_T}$ld_shlibs_F77" >&6
20079test "$ld_shlibs_F77" = no && can_build_shared=no
20080
20081variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20082if test "$GCC" = yes; then
20083 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20084fi
20085
20086#
20087# Do we need to explicitly link libc?
20088#
20089case "x$archive_cmds_need_lc_F77" in
20090x|xyes)
20091 # Assume -lc should be added
20092 archive_cmds_need_lc_F77=yes
20093
20094 if test "$enable_shared" = yes && test "$GCC" = yes; then
20095 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020096 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020097 # FIXME: we may have to deal with multi-command sequences.
20098 ;;
20099 '$CC '*)
20100 # Test whether the compiler implicitly links with -lc since on some
20101 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20102 # to ld, don't add -lc before -lgcc.
20103 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20104echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20105 $rm conftest*
20106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20107
20108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } 2>conftest.err; then
20113 soname=conftest
20114 lib=conftest
20115 libobjs=conftest.$ac_objext
20116 deplibs=
20117 wl=$lt_prog_compiler_wl_F77
20118 compiler_flags=-v
20119 linker_flags=-v
20120 verstring=
20121 output_objdir=.
20122 libname=conftest
20123 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20124 allow_undefined_flag_F77=
20125 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20126 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }
20130 then
20131 archive_cmds_need_lc_F77=no
20132 else
20133 archive_cmds_need_lc_F77=yes
20134 fi
20135 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20136 else
20137 cat conftest.err 1>&5
20138 fi
20139 $rm conftest*
20140 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20141echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20142 ;;
20143 esac
20144 fi
20145 ;;
20146esac
20147
John Criswell47fdd832003-07-14 16:52:07 +000020148echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20149echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20150library_names_spec=
20151libname_spec='lib$name'
20152soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020153shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020154postinstall_cmds=
20155postuninstall_cmds=
20156finish_cmds=
20157finish_eval=
20158shlibpath_var=
20159shlibpath_overrides_runpath=unknown
20160version_type=none
20161dynamic_linker="$host_os ld.so"
20162sys_lib_dlsearch_path_spec="/lib /usr/lib"
20163if test "$GCC" = yes; then
20164 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20165 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20166 # if the path contains ";" then we assume it to be the separator
20167 # otherwise default to the standard path separator (i.e. ":") - it is
20168 # assumed that no part of a normal pathname contains ";" but that should
20169 # okay in the real world where ";" in dirpaths is itself problematic.
20170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20171 else
20172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20173 fi
20174else
20175 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20176fi
20177need_lib_prefix=unknown
20178hardcode_into_libs=no
20179
20180# when you set need_version to no, make sure it does not cause -set_version
20181# flags to be left without arguments
20182need_version=unknown
20183
20184case $host_os in
20185aix3*)
20186 version_type=linux
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20188 shlibpath_var=LIBPATH
20189
20190 # AIX 3 has no versioning support, so we append a major version to the name.
20191 soname_spec='${libname}${release}${shared_ext}$major'
20192 ;;
20193
20194aix4* | aix5*)
20195 version_type=linux
20196 need_lib_prefix=no
20197 need_version=no
20198 hardcode_into_libs=yes
20199 if test "$host_cpu" = ia64; then
20200 # AIX 5 supports IA64
20201 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20202 shlibpath_var=LD_LIBRARY_PATH
20203 else
20204 # With GCC up to 2.95.x, collect2 would create an import file
20205 # for dependence libraries. The import file would start with
20206 # the line `#! .'. This would cause the generated library to
20207 # depend on `.', always an invalid library. This was fixed in
20208 # development snapshots of GCC prior to 3.0.
20209 case $host_os in
20210 aix4 | aix4.[01] | aix4.[01].*)
20211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20212 echo ' yes '
20213 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20214 :
20215 else
20216 can_build_shared=no
20217 fi
20218 ;;
20219 esac
20220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20221 # soname into executable. Probably we can add versioning support to
20222 # collect2, so additional links can be useful in future.
20223 if test "$aix_use_runtimelinking" = yes; then
20224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20225 # instead of lib<name>.a to let people know that these are not
20226 # typical AIX shared libraries.
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228 else
20229 # We preserve .a as extension for shared libraries through AIX4.2
20230 # and later when we are not doing run time linking.
20231 library_names_spec='${libname}${release}.a $libname.a'
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 fi
20234 shlibpath_var=LIBPATH
20235 fi
20236 ;;
20237
20238amigaos*)
20239 library_names_spec='$libname.ixlibrary $libname.a'
20240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020241 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 +000020242 ;;
20243
20244beos*)
20245 library_names_spec='${libname}${shared_ext}'
20246 dynamic_linker="$host_os ld.so"
20247 shlibpath_var=LIBRARY_PATH
20248 ;;
20249
Reid Spencer2706f8c2004-09-19 23:53:36 +000020250bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020251 version_type=linux
20252 need_version=no
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20259 # the default ld.so.conf also contains /usr/contrib/lib and
20260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20261 # libtool to hard-code these into programs
20262 ;;
20263
20264cygwin* | mingw* | pw32*)
20265 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020266 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020267 need_version=no
20268 need_lib_prefix=no
20269
20270 case $GCC,$host_os in
20271 yes,cygwin* | yes,mingw* | yes,pw32*)
20272 library_names_spec='$libname.dll.a'
20273 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020274 postinstall_cmds='base_file=`basename \${file}`~
20275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20276 dldir=$destdir/`dirname \$dlpath`~
20277 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020278 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20280 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020281 $rm \$dlpath'
20282 shlibpath_overrides_runpath=yes
20283
20284 case $host_os in
20285 cygwin*)
20286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20287 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 +000020288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020289 ;;
20290 mingw*)
20291 # MinGW DLLs use traditional 'lib' prefix
20292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20295 # It is most probably a Windows format PATH printed by
20296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20297 # path with ; separators, and with drive letters. We can handle the
20298 # drive letters (cygwin fileutils understands them), so leave them,
20299 # especially as we might pass files found there to a mingw objdump,
20300 # which wouldn't understand a cygwinified path. Ahh.
20301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20302 else
20303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20304 fi
20305 ;;
20306 pw32*)
20307 # pw32 DLLs use 'pw' prefix rather than 'lib'
20308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20309 ;;
20310 esac
20311 ;;
20312
20313 *)
20314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20315 ;;
20316 esac
20317 dynamic_linker='Win32 ld.exe'
20318 # FIXME: first we should search . and the directory the executable is in
20319 shlibpath_var=PATH
20320 ;;
20321
20322darwin* | rhapsody*)
20323 dynamic_linker="$host_os dyld"
20324 version_type=darwin
20325 need_lib_prefix=no
20326 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020328 soname_spec='${libname}${release}${major}$shared_ext'
20329 shlibpath_overrides_runpath=yes
20330 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020331 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020333 if test "$GCC" = yes; then
20334 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"`
20335 else
20336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020337 fi
20338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20339 ;;
20340
20341dgux*)
20342 version_type=linux
20343 need_lib_prefix=no
20344 need_version=no
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20346 soname_spec='${libname}${release}${shared_ext}$major'
20347 shlibpath_var=LD_LIBRARY_PATH
20348 ;;
20349
20350freebsd1*)
20351 dynamic_linker=no
20352 ;;
20353
Reid Spencer2706f8c2004-09-19 23:53:36 +000020354kfreebsd*-gnu)
20355 version_type=linux
20356 need_lib_prefix=no
20357 need_version=no
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 shlibpath_overrides_runpath=no
20362 hardcode_into_libs=yes
20363 dynamic_linker='GNU ld.so'
20364 ;;
20365
John Criswell47fdd832003-07-14 16:52:07 +000020366freebsd*)
20367 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20368 version_type=freebsd-$objformat
20369 case $version_type in
20370 freebsd-elf*)
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20372 need_version=no
20373 need_lib_prefix=no
20374 ;;
20375 freebsd-*)
20376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20377 need_version=yes
20378 ;;
20379 esac
20380 shlibpath_var=LD_LIBRARY_PATH
20381 case $host_os in
20382 freebsd2*)
20383 shlibpath_overrides_runpath=yes
20384 ;;
20385 freebsd3.01* | freebsdelf3.01*)
20386 shlibpath_overrides_runpath=yes
20387 hardcode_into_libs=yes
20388 ;;
20389 *) # from 3.2 on
20390 shlibpath_overrides_runpath=no
20391 hardcode_into_libs=yes
20392 ;;
20393 esac
20394 ;;
20395
20396gnu*)
20397 version_type=linux
20398 need_lib_prefix=no
20399 need_version=no
20400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20401 soname_spec='${libname}${release}${shared_ext}$major'
20402 shlibpath_var=LD_LIBRARY_PATH
20403 hardcode_into_libs=yes
20404 ;;
20405
20406hpux9* | hpux10* | hpux11*)
20407 # Give a soname corresponding to the major version so that dld.sl refuses to
20408 # link against other versions.
20409 version_type=sunos
20410 need_lib_prefix=no
20411 need_version=no
20412 case "$host_cpu" in
20413 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020414 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020415 hardcode_into_libs=yes
20416 dynamic_linker="$host_os dld.so"
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 if test "X$HPUX_IA64_MODE" = X32; then
20422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20423 else
20424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20425 fi
20426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20427 ;;
20428 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020429 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020430 hardcode_into_libs=yes
20431 dynamic_linker="$host_os dld.sl"
20432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435 soname_spec='${libname}${release}${shared_ext}$major'
20436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20438 ;;
20439 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020440 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020441 dynamic_linker="$host_os dld.sl"
20442 shlibpath_var=SHLIB_PATH
20443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20445 soname_spec='${libname}${release}${shared_ext}$major'
20446 ;;
20447 esac
20448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20449 postinstall_cmds='chmod 555 $lib'
20450 ;;
20451
20452irix5* | irix6* | nonstopux*)
20453 case $host_os in
20454 nonstopux*) version_type=nonstopux ;;
20455 *)
20456 if test "$lt_cv_prog_gnu_ld" = yes; then
20457 version_type=linux
20458 else
20459 version_type=irix
20460 fi ;;
20461 esac
20462 need_lib_prefix=no
20463 need_version=no
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20466 case $host_os in
20467 irix5* | nonstopux*)
20468 libsuff= shlibsuff=
20469 ;;
20470 *)
20471 case $LD in # libtool.m4 will add one of these switches to LD
20472 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20473 libsuff= shlibsuff= libmagic=32-bit;;
20474 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20475 libsuff=32 shlibsuff=N32 libmagic=N32;;
20476 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20477 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20478 *) libsuff= shlibsuff= libmagic=never-match;;
20479 esac
20480 ;;
20481 esac
20482 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20483 shlibpath_overrides_runpath=no
20484 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20485 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20486 hardcode_into_libs=yes
20487 ;;
20488
20489# No shared lib support for Linux oldld, aout, or coff.
20490linux*oldld* | linux*aout* | linux*coff*)
20491 dynamic_linker=no
20492 ;;
20493
20494# This must be Linux ELF.
20495linux*)
20496 version_type=linux
20497 need_lib_prefix=no
20498 need_version=no
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 shlibpath_overrides_runpath=no
20504 # This implies no fast_install, which is unacceptable.
20505 # Some rework will be needed to allow for fast_install
20506 # before this can be enabled.
20507 hardcode_into_libs=yes
20508
Reid Spencer2706f8c2004-09-19 23:53:36 +000020509 # Append ld.so.conf contents to the search path
20510 if test -f /etc/ld.so.conf; then
20511 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20513 fi
20514
John Criswell47fdd832003-07-14 16:52:07 +000020515 # We used to test for /lib/ld.so.1 and disable shared libraries on
20516 # powerpc, because MkLinux only supported shared libraries with the
20517 # GNU dynamic linker. Since this was broken with cross compilers,
20518 # most powerpc-linux boxes support dynamic linking these days and
20519 # people can always --disable-shared, the test was removed, and we
20520 # assume the GNU/Linux dynamic linker is in use.
20521 dynamic_linker='GNU/Linux ld.so'
20522 ;;
20523
Reid Spencer2706f8c2004-09-19 23:53:36 +000020524knetbsd*-gnu)
20525 version_type=linux
20526 need_lib_prefix=no
20527 need_version=no
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20529 soname_spec='${libname}${release}${shared_ext}$major'
20530 shlibpath_var=LD_LIBRARY_PATH
20531 shlibpath_overrides_runpath=no
20532 hardcode_into_libs=yes
20533 dynamic_linker='GNU ld.so'
20534 ;;
20535
John Criswell47fdd832003-07-14 16:52:07 +000020536netbsd*)
20537 version_type=sunos
20538 need_lib_prefix=no
20539 need_version=no
20540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20543 dynamic_linker='NetBSD (a.out) ld.so'
20544 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020546 soname_spec='${libname}${release}${shared_ext}$major'
20547 dynamic_linker='NetBSD ld.elf_so'
20548 fi
20549 shlibpath_var=LD_LIBRARY_PATH
20550 shlibpath_overrides_runpath=yes
20551 hardcode_into_libs=yes
20552 ;;
20553
20554newsos6)
20555 version_type=linux
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557 shlibpath_var=LD_LIBRARY_PATH
20558 shlibpath_overrides_runpath=yes
20559 ;;
20560
Reid Spencer2706f8c2004-09-19 23:53:36 +000020561nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020562 version_type=linux
20563 need_lib_prefix=no
20564 need_version=no
20565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20566 soname_spec='${libname}${release}${shared_ext}$major'
20567 shlibpath_var=LD_LIBRARY_PATH
20568 shlibpath_overrides_runpath=yes
20569 ;;
20570
20571openbsd*)
20572 version_type=sunos
20573 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020574 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20577 shlibpath_var=LD_LIBRARY_PATH
20578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20579 case $host_os in
20580 openbsd2.[89] | openbsd2.[89].*)
20581 shlibpath_overrides_runpath=no
20582 ;;
20583 *)
20584 shlibpath_overrides_runpath=yes
20585 ;;
20586 esac
20587 else
20588 shlibpath_overrides_runpath=yes
20589 fi
20590 ;;
20591
20592os2*)
20593 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020594 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020595 need_lib_prefix=no
20596 library_names_spec='$libname${shared_ext} $libname.a'
20597 dynamic_linker='OS/2 ld.exe'
20598 shlibpath_var=LIBPATH
20599 ;;
20600
20601osf3* | osf4* | osf5*)
20602 version_type=osf
20603 need_lib_prefix=no
20604 need_version=no
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20607 shlibpath_var=LD_LIBRARY_PATH
20608 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20609 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20610 ;;
20611
20612sco3.2v5*)
20613 version_type=osf
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 shlibpath_var=LD_LIBRARY_PATH
20617 ;;
20618
20619solaris*)
20620 version_type=linux
20621 need_lib_prefix=no
20622 need_version=no
20623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624 soname_spec='${libname}${release}${shared_ext}$major'
20625 shlibpath_var=LD_LIBRARY_PATH
20626 shlibpath_overrides_runpath=yes
20627 hardcode_into_libs=yes
20628 # ldd complains unless libraries are executable
20629 postinstall_cmds='chmod +x $lib'
20630 ;;
20631
20632sunos4*)
20633 version_type=sunos
20634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20636 shlibpath_var=LD_LIBRARY_PATH
20637 shlibpath_overrides_runpath=yes
20638 if test "$with_gnu_ld" = yes; then
20639 need_lib_prefix=no
20640 fi
20641 need_version=yes
20642 ;;
20643
20644sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20645 version_type=linux
20646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20647 soname_spec='${libname}${release}${shared_ext}$major'
20648 shlibpath_var=LD_LIBRARY_PATH
20649 case $host_vendor in
20650 sni)
20651 shlibpath_overrides_runpath=no
20652 need_lib_prefix=no
20653 export_dynamic_flag_spec='${wl}-Blargedynsym'
20654 runpath_var=LD_RUN_PATH
20655 ;;
20656 siemens)
20657 need_lib_prefix=no
20658 ;;
20659 motorola)
20660 need_lib_prefix=no
20661 need_version=no
20662 shlibpath_overrides_runpath=no
20663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20664 ;;
20665 esac
20666 ;;
20667
20668sysv4*MP*)
20669 if test -d /usr/nec ;then
20670 version_type=linux
20671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20672 soname_spec='$libname${shared_ext}.$major'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 fi
20675 ;;
20676
20677uts4*)
20678 version_type=linux
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20680 soname_spec='${libname}${release}${shared_ext}$major'
20681 shlibpath_var=LD_LIBRARY_PATH
20682 ;;
20683
20684*)
20685 dynamic_linker=no
20686 ;;
20687esac
20688echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20689echo "${ECHO_T}$dynamic_linker" >&6
20690test "$dynamic_linker" = no && can_build_shared=no
20691
Reid Spencer2706f8c2004-09-19 23:53:36 +000020692echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20693echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20694hardcode_action_F77=
20695if test -n "$hardcode_libdir_flag_spec_F77" || \
20696 test -n "$runpath_var_F77" || \
20697 test "X$hardcode_automatic_F77" = "Xyes" ; then
20698
20699 # We can hardcode non-existant directories.
20700 if test "$hardcode_direct_F77" != no &&
20701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20702 # have to relink, otherwise we might link with an installed library
20703 # when we should be linking with a yet-to-be-installed one
20704 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20705 test "$hardcode_minus_L_F77" != no; then
20706 # Linking always hardcodes the temporary library directory.
20707 hardcode_action_F77=relink
20708 else
20709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20710 hardcode_action_F77=immediate
20711 fi
20712else
20713 # We cannot hardcode anything, or else we can only hardcode existing
20714 # directories.
20715 hardcode_action_F77=unsupported
20716fi
20717echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20718echo "${ECHO_T}$hardcode_action_F77" >&6
20719
20720if test "$hardcode_action_F77" = relink; then
20721 # Fast installation is not supported
20722 enable_fast_install=no
20723elif test "$shlibpath_overrides_runpath" = yes ||
20724 test "$enable_shared" = no; then
20725 # Fast installation is not necessary
20726 enable_fast_install=needless
20727fi
20728
20729striplib=
20730old_striplib=
20731echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20732echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20733if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20734 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20735 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20736 echo "$as_me:$LINENO: result: yes" >&5
20737echo "${ECHO_T}yes" >&6
20738else
20739# FIXME - insert some real tests, host_os isn't really good enough
20740 case $host_os in
20741 darwin*)
20742 if test -n "$STRIP" ; then
20743 striplib="$STRIP -x"
20744 echo "$as_me:$LINENO: result: yes" >&5
20745echo "${ECHO_T}yes" >&6
20746 else
20747 echo "$as_me:$LINENO: result: no" >&5
20748echo "${ECHO_T}no" >&6
20749fi
20750 ;;
20751 *)
20752 echo "$as_me:$LINENO: result: no" >&5
20753echo "${ECHO_T}no" >&6
20754 ;;
20755 esac
20756fi
20757
20758
John Criswell47fdd832003-07-14 16:52:07 +000020759
20760# The else clause should only fire when bootstrapping the
20761# libtool distribution, otherwise you forgot to ship ltmain.sh
20762# with your package, and you will get complaints that there are
20763# no rules to generate ltmain.sh.
20764if test -f "$ltmain"; then
20765 # See if we are running on zsh, and set the options which allow our commands through
20766 # without removal of \ escapes.
20767 if test -n "${ZSH_VERSION+set}" ; then
20768 setopt NO_GLOB_SUBST
20769 fi
20770 # Now quote all the things that may contain metacharacters while being
20771 # careful not to overquote the AC_SUBSTed values. We take copies of the
20772 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020773 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20774 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020775 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20776 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20777 deplibs_check_method reload_flag reload_cmds need_locks \
20778 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20779 lt_cv_sys_global_symbol_to_c_name_address \
20780 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20781 old_postinstall_cmds old_postuninstall_cmds \
20782 compiler_F77 \
20783 CC_F77 \
20784 LD_F77 \
20785 lt_prog_compiler_wl_F77 \
20786 lt_prog_compiler_pic_F77 \
20787 lt_prog_compiler_static_F77 \
20788 lt_prog_compiler_no_builtin_flag_F77 \
20789 export_dynamic_flag_spec_F77 \
20790 thread_safe_flag_spec_F77 \
20791 whole_archive_flag_spec_F77 \
20792 enable_shared_with_static_runtimes_F77 \
20793 old_archive_cmds_F77 \
20794 old_archive_from_new_cmds_F77 \
20795 predep_objects_F77 \
20796 postdep_objects_F77 \
20797 predeps_F77 \
20798 postdeps_F77 \
20799 compiler_lib_search_path_F77 \
20800 archive_cmds_F77 \
20801 archive_expsym_cmds_F77 \
20802 postinstall_cmds_F77 \
20803 postuninstall_cmds_F77 \
20804 old_archive_from_expsyms_cmds_F77 \
20805 allow_undefined_flag_F77 \
20806 no_undefined_flag_F77 \
20807 export_symbols_cmds_F77 \
20808 hardcode_libdir_flag_spec_F77 \
20809 hardcode_libdir_flag_spec_ld_F77 \
20810 hardcode_libdir_separator_F77 \
20811 hardcode_automatic_F77 \
20812 module_cmds_F77 \
20813 module_expsym_cmds_F77 \
20814 lt_cv_prog_compiler_c_o_F77 \
20815 exclude_expsyms_F77 \
20816 include_expsyms_F77; do
20817
20818 case $var in
20819 old_archive_cmds_F77 | \
20820 old_archive_from_new_cmds_F77 | \
20821 archive_cmds_F77 | \
20822 archive_expsym_cmds_F77 | \
20823 module_cmds_F77 | \
20824 module_expsym_cmds_F77 | \
20825 old_archive_from_expsyms_cmds_F77 | \
20826 export_symbols_cmds_F77 | \
20827 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20828 postinstall_cmds | postuninstall_cmds | \
20829 old_postinstall_cmds | old_postuninstall_cmds | \
20830 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20831 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020832 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 +000020833 ;;
20834 *)
20835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20836 ;;
20837 esac
20838 done
20839
20840 case $lt_echo in
20841 *'\$0 --fallback-echo"')
20842 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20843 ;;
20844 esac
20845
20846cfgfile="$ofile"
20847
20848 cat <<__EOF__ >> "$cfgfile"
20849# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20850
20851# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20852
20853# Shell to use when invoking shell scripts.
20854SHELL=$lt_SHELL
20855
20856# Whether or not to build shared libraries.
20857build_libtool_libs=$enable_shared
20858
20859# Whether or not to build static libraries.
20860build_old_libs=$enable_static
20861
20862# Whether or not to add -lc for building shared libraries.
20863build_libtool_need_lc=$archive_cmds_need_lc_F77
20864
20865# Whether or not to disallow shared libs when runtime libs are static
20866allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20867
20868# Whether or not to optimize for fast installation.
20869fast_install=$enable_fast_install
20870
20871# The host system.
20872host_alias=$host_alias
20873host=$host
20874
20875# An echo program that does not interpret backslashes.
20876echo=$lt_echo
20877
20878# The archiver.
20879AR=$lt_AR
20880AR_FLAGS=$lt_AR_FLAGS
20881
20882# A C compiler.
20883LTCC=$lt_LTCC
20884
20885# A language-specific compiler.
20886CC=$lt_compiler_F77
20887
20888# Is the compiler the GNU C compiler?
20889with_gcc=$GCC_F77
20890
20891# An ERE matcher.
20892EGREP=$lt_EGREP
20893
20894# The linker used to build libraries.
20895LD=$lt_LD_F77
20896
20897# Whether we need hard or soft links.
20898LN_S=$lt_LN_S
20899
20900# A BSD-compatible nm program.
20901NM=$lt_NM
20902
20903# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020904STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020905
20906# Used to examine libraries when file_magic_cmd begins "file"
20907MAGIC_CMD=$MAGIC_CMD
20908
20909# Used on cygwin: DLL creation program.
20910DLLTOOL="$DLLTOOL"
20911
20912# Used on cygwin: object dumper.
20913OBJDUMP="$OBJDUMP"
20914
20915# Used on cygwin: assembler.
20916AS="$AS"
20917
20918# The name of the directory that contains temporary libtool files.
20919objdir=$objdir
20920
20921# How to create reloadable object files.
20922reload_flag=$lt_reload_flag
20923reload_cmds=$lt_reload_cmds
20924
20925# How to pass a linker flag through the compiler.
20926wl=$lt_lt_prog_compiler_wl_F77
20927
20928# Object file suffix (normally "o").
20929objext="$ac_objext"
20930
20931# Old archive suffix (normally "a").
20932libext="$libext"
20933
20934# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020935shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020936
20937# Executable file suffix (normally "").
20938exeext="$exeext"
20939
20940# Additional compiler flags for building library objects.
20941pic_flag=$lt_lt_prog_compiler_pic_F77
20942pic_mode=$pic_mode
20943
20944# What is the maximum length of a command?
20945max_cmd_len=$lt_cv_sys_max_cmd_len
20946
20947# Does compiler simultaneously support -c and -o options?
20948compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20949
20950# Must we lock files when doing compilation ?
20951need_locks=$lt_need_locks
20952
20953# Do we need the lib prefix for modules?
20954need_lib_prefix=$need_lib_prefix
20955
20956# Do we need a version for libraries?
20957need_version=$need_version
20958
20959# Whether dlopen is supported.
20960dlopen_support=$enable_dlopen
20961
20962# Whether dlopen of programs is supported.
20963dlopen_self=$enable_dlopen_self
20964
20965# Whether dlopen of statically linked programs is supported.
20966dlopen_self_static=$enable_dlopen_self_static
20967
20968# Compiler flag to prevent dynamic linking.
20969link_static_flag=$lt_lt_prog_compiler_static_F77
20970
20971# Compiler flag to turn off builtin functions.
20972no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20973
20974# Compiler flag to allow reflexive dlopens.
20975export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20976
20977# Compiler flag to generate shared objects directly from archives.
20978whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20979
20980# Compiler flag to generate thread-safe objects.
20981thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20982
20983# Library versioning type.
20984version_type=$version_type
20985
20986# Format of library name prefix.
20987libname_spec=$lt_libname_spec
20988
20989# List of archive names. First name is the real one, the rest are links.
20990# The last name is the one that the linker finds with -lNAME.
20991library_names_spec=$lt_library_names_spec
20992
20993# The coded name of the library, if different from the real name.
20994soname_spec=$lt_soname_spec
20995
20996# Commands used to build and install an old-style archive.
20997RANLIB=$lt_RANLIB
20998old_archive_cmds=$lt_old_archive_cmds_F77
20999old_postinstall_cmds=$lt_old_postinstall_cmds
21000old_postuninstall_cmds=$lt_old_postuninstall_cmds
21001
21002# Create an old-style archive from a shared archive.
21003old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21004
21005# Create a temporary old-style archive to link instead of a shared archive.
21006old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21007
21008# Commands used to build and install a shared archive.
21009archive_cmds=$lt_archive_cmds_F77
21010archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21011postinstall_cmds=$lt_postinstall_cmds
21012postuninstall_cmds=$lt_postuninstall_cmds
21013
21014# Commands used to build a loadable module (assumed same as above if empty)
21015module_cmds=$lt_module_cmds_F77
21016module_expsym_cmds=$lt_module_expsym_cmds_F77
21017
21018# Commands to strip libraries.
21019old_striplib=$lt_old_striplib
21020striplib=$lt_striplib
21021
21022# Dependencies to place before the objects being linked to create a
21023# shared library.
21024predep_objects=$lt_predep_objects_F77
21025
21026# Dependencies to place after the objects being linked to create a
21027# shared library.
21028postdep_objects=$lt_postdep_objects_F77
21029
21030# Dependencies to place before the objects being linked to create a
21031# shared library.
21032predeps=$lt_predeps_F77
21033
21034# Dependencies to place after the objects being linked to create a
21035# shared library.
21036postdeps=$lt_postdeps_F77
21037
21038# The library search path used internally by the compiler when linking
21039# a shared library.
21040compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21041
21042# Method to check whether dependent libraries are shared objects.
21043deplibs_check_method=$lt_deplibs_check_method
21044
21045# Command to use when deplibs_check_method == file_magic.
21046file_magic_cmd=$lt_file_magic_cmd
21047
21048# Flag that allows shared libraries with undefined symbols to be built.
21049allow_undefined_flag=$lt_allow_undefined_flag_F77
21050
21051# Flag that forces no undefined symbols.
21052no_undefined_flag=$lt_no_undefined_flag_F77
21053
21054# Commands used to finish a libtool library installation in a directory.
21055finish_cmds=$lt_finish_cmds
21056
21057# Same as above, but a single script fragment to be evaled but not shown.
21058finish_eval=$lt_finish_eval
21059
21060# Take the output of nm and produce a listing of raw symbols and C names.
21061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21062
21063# Transform the output of nm in a proper C declaration
21064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21065
21066# Transform the output of nm in a C name address pair
21067global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21068
21069# This is the shared library runtime path variable.
21070runpath_var=$runpath_var
21071
21072# This is the shared library path variable.
21073shlibpath_var=$shlibpath_var
21074
21075# Is shlibpath searched before the hard-coded library search path?
21076shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21077
21078# How to hardcode a shared library path into an executable.
21079hardcode_action=$hardcode_action_F77
21080
21081# Whether we should hardcode library paths into libraries.
21082hardcode_into_libs=$hardcode_into_libs
21083
21084# Flag to hardcode \$libdir into a binary during linking.
21085# This must work even if \$libdir does not exist.
21086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21087
21088# If ld is used when linking, flag to hardcode \$libdir into
21089# a binary during linking. This must work even if \$libdir does
21090# not exist.
21091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21092
21093# Whether we need a single -rpath flag with a separated argument.
21094hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21095
21096# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21097# resulting binary.
21098hardcode_direct=$hardcode_direct_F77
21099
21100# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21101# resulting binary.
21102hardcode_minus_L=$hardcode_minus_L_F77
21103
21104# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21105# the resulting binary.
21106hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21107
21108# Set to yes if building a shared library automatically hardcodes DIR into the library
21109# and all subsequent libraries and executables linked against it.
21110hardcode_automatic=$hardcode_automatic_F77
21111
21112# Variables whose values should be saved in libtool wrapper scripts and
21113# restored at relink time.
21114variables_saved_for_relink="$variables_saved_for_relink"
21115
21116# Whether libtool must link a program against all its dependency libraries.
21117link_all_deplibs=$link_all_deplibs_F77
21118
21119# Compile-time system search path for libraries
21120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21121
21122# Run-time system search path for libraries
21123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21124
21125# Fix the shell variable \$srcfile for the compiler.
21126fix_srcfile_path="$fix_srcfile_path_F77"
21127
21128# Set to yes if exported symbols are required.
21129always_export_symbols=$always_export_symbols_F77
21130
21131# The commands to list exported symbols.
21132export_symbols_cmds=$lt_export_symbols_cmds_F77
21133
21134# The commands to extract the exported symbol list from a shared archive.
21135extract_expsyms_cmds=$lt_extract_expsyms_cmds
21136
21137# Symbols that should not be listed in the preloaded symbols.
21138exclude_expsyms=$lt_exclude_expsyms_F77
21139
21140# Symbols that must always be exported.
21141include_expsyms=$lt_include_expsyms_F77
21142
21143# ### END LIBTOOL TAG CONFIG: $tagname
21144
21145__EOF__
21146
21147
21148else
21149 # If there is no Makefile yet, we rely on a make rule to execute
21150 # `config.status --recheck' to rerun these tests and create the
21151 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021152 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21153 if test -f "$ltmain_in"; then
21154 test -f Makefile && make "$ltmain"
21155 fi
John Criswell47fdd832003-07-14 16:52:07 +000021156fi
21157
21158
21159ac_ext=c
21160ac_cpp='$CPP $CPPFLAGS'
21161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21163ac_compiler_gnu=$ac_cv_c_compiler_gnu
21164
21165CC="$lt_save_CC"
21166
21167 else
21168 tagname=""
21169 fi
21170 ;;
21171
21172 GCJ)
21173 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021174 ac_ext=c
21175ac_cpp='$CPP $CPPFLAGS'
21176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21178ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021179
21180
21181# Source file extension for Java test sources.
21182ac_ext=java
21183
21184# Object file extension for compiled Java test sources.
21185objext=o
21186objext_GCJ=$objext
21187
21188# Code to be used in simple compile tests
21189lt_simple_compile_test_code="class foo {}\n"
21190
21191# Code to be used in simple link tests
21192lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21193
21194# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21195
21196# If no C compiler was specified, use CC.
21197LTCC=${LTCC-"$CC"}
21198
21199# Allow CC to be a program name with arguments.
21200compiler=$CC
21201
21202
21203# Allow CC to be a program name with arguments.
21204lt_save_CC="$CC"
21205CC=${GCJ-"gcj"}
21206compiler=$CC
21207compiler_GCJ=$CC
21208
21209# GCJ did not exist at the time GCC didn't implicitly link libc in.
21210archive_cmds_need_lc_GCJ=no
21211
John Criswell47fdd832003-07-14 16:52:07 +000021212
21213lt_prog_compiler_no_builtin_flag_GCJ=
21214
21215if test "$GCC" = yes; then
21216 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21217
Reid Spencer2706f8c2004-09-19 23:53:36 +000021218
21219echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021220echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21221if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223else
21224 lt_cv_prog_compiler_rtti_exceptions=no
21225 ac_outfile=conftest.$ac_objext
21226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21227 lt_compiler_flag="-fno-rtti -fno-exceptions"
21228 # Insert the option either (1) after the last *FLAGS variable, or
21229 # (2) before a word containing "conftest.", or (3) at the end.
21230 # Note that $ac_compile itself does not contain backslashes and begins
21231 # with a dollar sign (not a hyphen), so the echo should work correctly.
21232 # The option is referenced via a variable to avoid confusing sed.
21233 lt_compile=`echo "$ac_compile" | $SED \
21234 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21236 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000021237 (eval echo "\"\$as_me:21237: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021238 (eval "$lt_compile" 2>conftest.err)
21239 ac_status=$?
21240 cat conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000021241 echo "$as_me:21241: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021242 if (exit $ac_status) && test -s "$ac_outfile"; then
21243 # The compiler can only warn and ignore the option if not recognized
21244 # So say no if there are warnings
21245 if test ! -s conftest.err; then
21246 lt_cv_prog_compiler_rtti_exceptions=yes
21247 fi
21248 fi
21249 $rm conftest*
21250
21251fi
21252echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21253echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21254
21255if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21256 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21257else
21258 :
21259fi
21260
21261fi
21262
21263lt_prog_compiler_wl_GCJ=
21264lt_prog_compiler_pic_GCJ=
21265lt_prog_compiler_static_GCJ=
21266
21267echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21268echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21269
21270 if test "$GCC" = yes; then
21271 lt_prog_compiler_wl_GCJ='-Wl,'
21272 lt_prog_compiler_static_GCJ='-static'
21273
21274 case $host_os in
21275 aix*)
21276 # All AIX code is PIC.
21277 if test "$host_cpu" = ia64; then
21278 # AIX 5 now supports IA64 processor
21279 lt_prog_compiler_static_GCJ='-Bstatic'
21280 fi
21281 ;;
21282
21283 amigaos*)
21284 # FIXME: we need at least 68020 code to build shared libraries, but
21285 # adding the `-m68020' flag to GCC prevents building anything better,
21286 # like `-m68040'.
21287 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21288 ;;
21289
21290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21291 # PIC is the default for these OSes.
21292 ;;
21293
21294 mingw* | pw32* | os2*)
21295 # This hack is so that the source file can tell whether it is being
21296 # built for inclusion in a dll (and should export symbols for example).
21297 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21298 ;;
21299
21300 darwin* | rhapsody*)
21301 # PIC is the default on this platform
21302 # Common symbols not allowed in MH_DYLIB files
21303 lt_prog_compiler_pic_GCJ='-fno-common'
21304 ;;
21305
21306 msdosdjgpp*)
21307 # Just because we use GCC doesn't mean we suddenly get shared libraries
21308 # on systems that don't support them.
21309 lt_prog_compiler_can_build_shared_GCJ=no
21310 enable_shared=no
21311 ;;
21312
21313 sysv4*MP*)
21314 if test -d /usr/nec; then
21315 lt_prog_compiler_pic_GCJ=-Kconform_pic
21316 fi
21317 ;;
21318
21319 hpux*)
21320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21321 # not for PA HP-UX.
21322 case "$host_cpu" in
21323 hppa*64*|ia64*)
21324 # +Z the default
21325 ;;
21326 *)
21327 lt_prog_compiler_pic_GCJ='-fPIC'
21328 ;;
21329 esac
21330 ;;
21331
21332 *)
21333 lt_prog_compiler_pic_GCJ='-fPIC'
21334 ;;
21335 esac
21336 else
21337 # PORTME Check for flag to pass linker flags through the system compiler.
21338 case $host_os in
21339 aix*)
21340 lt_prog_compiler_wl_GCJ='-Wl,'
21341 if test "$host_cpu" = ia64; then
21342 # AIX 5 now supports IA64 processor
21343 lt_prog_compiler_static_GCJ='-Bstatic'
21344 else
21345 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21346 fi
21347 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021348 darwin*)
21349 # PIC is the default on this platform
21350 # Common symbols not allowed in MH_DYLIB files
21351 case "$cc_basename" in
21352 xlc*)
21353 lt_prog_compiler_pic_GCJ='-qnocommon'
21354 lt_prog_compiler_wl_GCJ='-Wl,'
21355 ;;
21356 esac
21357 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021358
21359 mingw* | pw32* | os2*)
21360 # This hack is so that the source file can tell whether it is being
21361 # built for inclusion in a dll (and should export symbols for example).
21362 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21363 ;;
21364
21365 hpux9* | hpux10* | hpux11*)
21366 lt_prog_compiler_wl_GCJ='-Wl,'
21367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21368 # not for PA HP-UX.
21369 case "$host_cpu" in
21370 hppa*64*|ia64*)
21371 # +Z the default
21372 ;;
21373 *)
21374 lt_prog_compiler_pic_GCJ='+Z'
21375 ;;
21376 esac
21377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21378 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21379 ;;
21380
21381 irix5* | irix6* | nonstopux*)
21382 lt_prog_compiler_wl_GCJ='-Wl,'
21383 # PIC (with -KPIC) is the default.
21384 lt_prog_compiler_static_GCJ='-non_shared'
21385 ;;
21386
21387 newsos6)
21388 lt_prog_compiler_pic_GCJ='-KPIC'
21389 lt_prog_compiler_static_GCJ='-Bstatic'
21390 ;;
21391
21392 linux*)
21393 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021394 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021395 lt_prog_compiler_wl_GCJ='-Wl,'
21396 lt_prog_compiler_pic_GCJ='-KPIC'
21397 lt_prog_compiler_static_GCJ='-static'
21398 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021399 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021400 lt_prog_compiler_wl_GCJ='-Wl,'
21401 # All Alpha code is PIC.
21402 lt_prog_compiler_static_GCJ='-non_shared'
21403 ;;
21404 esac
21405 ;;
21406
21407 osf3* | osf4* | osf5*)
21408 lt_prog_compiler_wl_GCJ='-Wl,'
21409 # All OSF/1 code is PIC.
21410 lt_prog_compiler_static_GCJ='-non_shared'
21411 ;;
21412
21413 sco3.2v5*)
21414 lt_prog_compiler_pic_GCJ='-Kpic'
21415 lt_prog_compiler_static_GCJ='-dn'
21416 ;;
21417
21418 solaris*)
21419 lt_prog_compiler_wl_GCJ='-Wl,'
21420 lt_prog_compiler_pic_GCJ='-KPIC'
21421 lt_prog_compiler_static_GCJ='-Bstatic'
21422 ;;
21423
21424 sunos4*)
21425 lt_prog_compiler_wl_GCJ='-Qoption ld '
21426 lt_prog_compiler_pic_GCJ='-PIC'
21427 lt_prog_compiler_static_GCJ='-Bstatic'
21428 ;;
21429
21430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21431 lt_prog_compiler_wl_GCJ='-Wl,'
21432 lt_prog_compiler_pic_GCJ='-KPIC'
21433 lt_prog_compiler_static_GCJ='-Bstatic'
21434 ;;
21435
21436 sysv4*MP*)
21437 if test -d /usr/nec ;then
21438 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21439 lt_prog_compiler_static_GCJ='-Bstatic'
21440 fi
21441 ;;
21442
21443 uts4*)
21444 lt_prog_compiler_pic_GCJ='-pic'
21445 lt_prog_compiler_static_GCJ='-Bstatic'
21446 ;;
21447
21448 *)
21449 lt_prog_compiler_can_build_shared_GCJ=no
21450 ;;
21451 esac
21452 fi
21453
21454echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21455echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21456
21457#
21458# Check to make sure the PIC flag actually works.
21459#
21460if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021461
21462echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021463echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21464if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
21466else
21467 lt_prog_compiler_pic_works_GCJ=no
21468 ac_outfile=conftest.$ac_objext
21469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21470 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21471 # Insert the option either (1) after the last *FLAGS variable, or
21472 # (2) before a word containing "conftest.", or (3) at the end.
21473 # Note that $ac_compile itself does not contain backslashes and begins
21474 # with a dollar sign (not a hyphen), so the echo should work correctly.
21475 # The option is referenced via a variable to avoid confusing sed.
21476 lt_compile=`echo "$ac_compile" | $SED \
21477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21479 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000021480 (eval echo "\"\$as_me:21480: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021481 (eval "$lt_compile" 2>conftest.err)
21482 ac_status=$?
21483 cat conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000021484 echo "$as_me:21484: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021485 if (exit $ac_status) && test -s "$ac_outfile"; then
21486 # The compiler can only warn and ignore the option if not recognized
21487 # So say no if there are warnings
21488 if test ! -s conftest.err; then
21489 lt_prog_compiler_pic_works_GCJ=yes
21490 fi
21491 fi
21492 $rm conftest*
21493
21494fi
21495echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21496echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21497
21498if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21499 case $lt_prog_compiler_pic_GCJ in
21500 "" | " "*) ;;
21501 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21502 esac
21503else
21504 lt_prog_compiler_pic_GCJ=
21505 lt_prog_compiler_can_build_shared_GCJ=no
21506fi
21507
21508fi
21509case "$host_os" in
21510 # For platforms which do not support PIC, -DPIC is meaningless:
21511 *djgpp*)
21512 lt_prog_compiler_pic_GCJ=
21513 ;;
21514 *)
21515 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21516 ;;
21517esac
21518
21519echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21520echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21521if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523else
21524 lt_cv_prog_compiler_c_o_GCJ=no
21525 $rm -r conftest 2>/dev/null
21526 mkdir conftest
21527 cd conftest
21528 mkdir out
21529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21530
John Criswell47fdd832003-07-14 16:52:07 +000021531 lt_compiler_flag="-o out/conftest2.$ac_objext"
21532 # Insert the option either (1) after the last *FLAGS variable, or
21533 # (2) before a word containing "conftest.", or (3) at the end.
21534 # Note that $ac_compile itself does not contain backslashes and begins
21535 # with a dollar sign (not a hyphen), so the echo should work correctly.
21536 lt_compile=`echo "$ac_compile" | $SED \
21537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21539 -e 's:$: $lt_compiler_flag:'`
Reid Spencer54d14482006-04-07 16:01:51 +000021540 (eval echo "\"\$as_me:21540: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021541 (eval "$lt_compile" 2>out/conftest.err)
21542 ac_status=$?
21543 cat out/conftest.err >&5
Reid Spencer54d14482006-04-07 16:01:51 +000021544 echo "$as_me:21544: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21546 then
21547 # The compiler can only warn and ignore the option if not recognized
21548 # So say no if there are warnings
21549 if test ! -s out/conftest.err; then
21550 lt_cv_prog_compiler_c_o_GCJ=yes
21551 fi
21552 fi
21553 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021554 $rm conftest*
21555 # SGI C++ compiler will create directory out/ii_files/ for
21556 # template instantiation
21557 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21558 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021559 cd ..
21560 rmdir conftest
21561 $rm conftest*
21562
21563fi
21564echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21565echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21566
21567
21568hard_links="nottested"
21569if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21570 # do not overwrite the value of need_locks provided by the user
21571 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21572echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21573 hard_links=yes
21574 $rm conftest*
21575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21576 touch conftest.a
21577 ln conftest.a conftest.b 2>&5 || hard_links=no
21578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21579 echo "$as_me:$LINENO: result: $hard_links" >&5
21580echo "${ECHO_T}$hard_links" >&6
21581 if test "$hard_links" = no; then
21582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21583echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21584 need_locks=warn
21585 fi
21586else
21587 need_locks=no
21588fi
21589
21590echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21591echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21592
21593 runpath_var=
21594 allow_undefined_flag_GCJ=
21595 enable_shared_with_static_runtimes_GCJ=no
21596 archive_cmds_GCJ=
21597 archive_expsym_cmds_GCJ=
21598 old_archive_From_new_cmds_GCJ=
21599 old_archive_from_expsyms_cmds_GCJ=
21600 export_dynamic_flag_spec_GCJ=
21601 whole_archive_flag_spec_GCJ=
21602 thread_safe_flag_spec_GCJ=
21603 hardcode_libdir_flag_spec_GCJ=
21604 hardcode_libdir_flag_spec_ld_GCJ=
21605 hardcode_libdir_separator_GCJ=
21606 hardcode_direct_GCJ=no
21607 hardcode_minus_L_GCJ=no
21608 hardcode_shlibpath_var_GCJ=unsupported
21609 link_all_deplibs_GCJ=unknown
21610 hardcode_automatic_GCJ=no
21611 module_cmds_GCJ=
21612 module_expsym_cmds_GCJ=
21613 always_export_symbols_GCJ=no
21614 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21615 # include_expsyms should be a list of space-separated symbols to be *always*
21616 # included in the symbol list
21617 include_expsyms_GCJ=
21618 # exclude_expsyms can be an extended regexp of symbols to exclude
21619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21621 # as well as any symbol that contains `d'.
21622 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21624 # platforms (ab)use it in PIC code, but their linkers get confused if
21625 # the symbol is explicitly referenced. Since portable code cannot
21626 # rely on this symbol name, it's probably fine to never include it in
21627 # preloaded symbol tables.
21628 extract_expsyms_cmds=
21629
21630 case $host_os in
21631 cygwin* | mingw* | pw32*)
21632 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21633 # When not using gcc, we currently assume that we are using
21634 # Microsoft Visual C++.
21635 if test "$GCC" != yes; then
21636 with_gnu_ld=no
21637 fi
21638 ;;
21639 openbsd*)
21640 with_gnu_ld=no
21641 ;;
21642 esac
21643
21644 ld_shlibs_GCJ=yes
21645 if test "$with_gnu_ld" = yes; then
21646 # If archive_cmds runs LD, not CC, wlarc should be empty
21647 wlarc='${wl}'
21648
21649 # See if GNU ld supports shared libraries.
21650 case $host_os in
21651 aix3* | aix4* | aix5*)
21652 # On AIX/PPC, the GNU linker is very broken
21653 if test "$host_cpu" != ia64; then
21654 ld_shlibs_GCJ=no
21655 cat <<EOF 1>&2
21656
21657*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21658*** to be unable to reliably create shared libraries on AIX.
21659*** Therefore, libtool is disabling shared libraries support. If you
21660*** really care for shared libraries, you may want to modify your PATH
21661*** so that a non-GNU linker is found, and then restart.
21662
21663EOF
21664 fi
21665 ;;
21666
21667 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021668 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 +000021669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21670 hardcode_minus_L_GCJ=yes
21671
21672 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21673 # that the semantics of dynamic libraries on AmigaOS, at least up
21674 # to version 4, is to share data among multiple programs linked
21675 # with the same dynamic library. Since this doesn't match the
21676 # behavior of shared libraries on other platforms, we can't use
21677 # them.
21678 ld_shlibs_GCJ=no
21679 ;;
21680
21681 beos*)
21682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21683 allow_undefined_flag_GCJ=unsupported
21684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21685 # support --undefined. This deserves some investigation. FIXME
21686 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21687 else
21688 ld_shlibs_GCJ=no
21689 fi
21690 ;;
21691
21692 cygwin* | mingw* | pw32*)
21693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21694 # as there is no search path for DLLs.
21695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21696 allow_undefined_flag_GCJ=unsupported
21697 always_export_symbols_GCJ=no
21698 enable_shared_with_static_runtimes_GCJ=yes
21699 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21700
21701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21703 # If the export-symbols file already is a .def file (1st line
21704 # is EXPORTS), use it as is; otherwise, prepend...
21705 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21706 cp $export_symbols $output_objdir/$soname.def;
21707 else
21708 echo EXPORTS > $output_objdir/$soname.def;
21709 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021710 fi~
21711 $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 +000021712 else
21713 ld_shlibs=no
21714 fi
21715 ;;
21716
21717 netbsd*)
21718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21719 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21720 wlarc=
21721 else
21722 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21723 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21724 fi
21725 ;;
21726
21727 solaris* | sysv5*)
21728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21729 ld_shlibs_GCJ=no
21730 cat <<EOF 1>&2
21731
21732*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21733*** create shared libraries on Solaris systems. Therefore, libtool
21734*** is disabling shared libraries support. We urge you to upgrade GNU
21735*** binutils to release 2.9.1 or newer. Another option is to modify
21736*** your PATH or compiler configuration so that the native linker is
21737*** used, and then restart.
21738
21739EOF
21740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21741 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21742 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21743 else
21744 ld_shlibs_GCJ=no
21745 fi
21746 ;;
21747
21748 sunos4*)
21749 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21750 wlarc=
21751 hardcode_direct_GCJ=yes
21752 hardcode_shlibpath_var_GCJ=no
21753 ;;
21754
Reid Spencer2706f8c2004-09-19 23:53:36 +000021755 linux*)
21756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21757 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21758 archive_cmds_GCJ="$tmp_archive_cmds"
21759 supports_anon_versioning=no
21760 case `$LD -v 2>/dev/null` in
21761 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21762 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21763 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21764 *\ 2.11.*) ;; # other 2.11 versions
21765 *) supports_anon_versioning=yes ;;
21766 esac
21767 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021768 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21769cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21770$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021771 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21772 else
21773 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21774 fi
21775 else
21776 ld_shlibs_GCJ=no
21777 fi
21778 ;;
21779
John Criswell47fdd832003-07-14 16:52:07 +000021780 *)
21781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21782 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21783 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21784 else
21785 ld_shlibs_GCJ=no
21786 fi
21787 ;;
21788 esac
21789
21790 if test "$ld_shlibs_GCJ" = yes; then
21791 runpath_var=LD_RUN_PATH
21792 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21793 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21794 # ancient GNU ld didn't support --whole-archive et. al.
21795 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21796 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21797 else
21798 whole_archive_flag_spec_GCJ=
21799 fi
21800 fi
21801 else
21802 # PORTME fill in a description of your system's linker (not GNU ld)
21803 case $host_os in
21804 aix3*)
21805 allow_undefined_flag_GCJ=unsupported
21806 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021807 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 +000021808 # Note: this linker hardcodes the directories in LIBPATH if there
21809 # are no directories specified by -L.
21810 hardcode_minus_L_GCJ=yes
21811 if test "$GCC" = yes && test -z "$link_static_flag"; then
21812 # Neither direct hardcoding nor static linking is supported with a
21813 # broken collect2.
21814 hardcode_direct_GCJ=unsupported
21815 fi
21816 ;;
21817
21818 aix4* | aix5*)
21819 if test "$host_cpu" = ia64; then
21820 # On IA64, the linker does run time linking by default, so we don't
21821 # have to do anything special.
21822 aix_use_runtimelinking=no
21823 exp_sym_flag='-Bexport'
21824 no_entry_flag=""
21825 else
21826 # If we're using GNU nm, then we don't want the "-C" option.
21827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21828 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21829 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'
21830 else
21831 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'
21832 fi
21833 aix_use_runtimelinking=no
21834
21835 # Test if we are trying to use run time linking or normal
21836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21837 # need to do runtime linking.
21838 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21839 for ld_flag in $LDFLAGS; do
21840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21841 aix_use_runtimelinking=yes
21842 break
21843 fi
21844 done
21845 esac
21846
21847 exp_sym_flag='-bexport'
21848 no_entry_flag='-bnoentry'
21849 fi
21850
21851 # When large executables or shared objects are built, AIX ld can
21852 # have problems creating the table of contents. If linking a library
21853 # or program results in "error TOC overflow" add -mminimal-toc to
21854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21856
21857 archive_cmds_GCJ=''
21858 hardcode_direct_GCJ=yes
21859 hardcode_libdir_separator_GCJ=':'
21860 link_all_deplibs_GCJ=yes
21861
21862 if test "$GCC" = yes; then
21863 case $host_os in aix4.012|aix4.012.*)
21864 # We only want to do this on AIX 4.2 and lower, the check
21865 # below for broken collect2 doesn't work under 4.3+
21866 collect2name=`${CC} -print-prog-name=collect2`
21867 if test -f "$collect2name" && \
21868 strings "$collect2name" | grep resolve_lib_name >/dev/null
21869 then
21870 # We have reworked collect2
21871 hardcode_direct_GCJ=yes
21872 else
21873 # We have old collect2
21874 hardcode_direct_GCJ=unsupported
21875 # It fails to find uninstalled libraries when the uninstalled
21876 # path is not listed in the libpath. Setting hardcode_minus_L
21877 # to unsupported forces relinking
21878 hardcode_minus_L_GCJ=yes
21879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21880 hardcode_libdir_separator_GCJ=
21881 fi
21882 esac
21883 shared_flag='-shared'
21884 else
21885 # not using gcc
21886 if test "$host_cpu" = ia64; then
21887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21888 # chokes on -Wl,-G. The following line is correct:
21889 shared_flag='-G'
21890 else
21891 if test "$aix_use_runtimelinking" = yes; then
21892 shared_flag='${wl}-G'
21893 else
21894 shared_flag='${wl}-bM:SRE'
21895 fi
21896 fi
21897 fi
21898
21899 # It seems that -bexpall does not export symbols beginning with
21900 # underscore (_), so it is better to generate a list of symbols to export.
21901 always_export_symbols_GCJ=yes
21902 if test "$aix_use_runtimelinking" = yes; then
21903 # Warning - without using the other runtime loading flags (-brtl),
21904 # -berok will link without error, but may produce a broken library.
21905 allow_undefined_flag_GCJ='-berok'
21906 # Determine the default libpath from the value encoded in an empty executable.
21907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021908/* confdefs.h. */
21909_ACEOF
21910cat confdefs.h >>conftest.$ac_ext
21911cat >>conftest.$ac_ext <<_ACEOF
21912/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021913
John Criswell47fdd832003-07-14 16:52:07 +000021914int
21915main ()
21916{
21917
21918 ;
21919 return 0;
21920}
21921_ACEOF
21922rm -f conftest.$ac_objext conftest$ac_exeext
21923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021924 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021926 grep -v '^ *+' conftest.er1 >conftest.err
21927 rm -f conftest.er1
21928 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021931 { ac_try='test -z "$ac_c_werror_flag"
21932 || test ! -s conftest.err'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; } &&
21938 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21941 ac_status=$?
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; }; then
21944
21945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21946}'`
21947# Check for a 64-bit object if we didn't find anything.
21948if 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; }
21949}'`; fi
21950else
21951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021952sed 's/^/| /' conftest.$ac_ext >&5
21953
John Criswell47fdd832003-07-14 16:52:07 +000021954fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021955rm -f conftest.err conftest.$ac_objext \
21956 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21958
21959 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21960 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"
21961 else
21962 if test "$host_cpu" = ia64; then
21963 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21964 allow_undefined_flag_GCJ="-z nodefs"
21965 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"
21966 else
21967 # Determine the default libpath from the value encoded in an empty executable.
21968 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021969/* confdefs.h. */
21970_ACEOF
21971cat confdefs.h >>conftest.$ac_ext
21972cat >>conftest.$ac_ext <<_ACEOF
21973/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021974
John Criswell47fdd832003-07-14 16:52:07 +000021975int
21976main ()
21977{
21978
21979 ;
21980 return 0;
21981}
21982_ACEOF
21983rm -f conftest.$ac_objext conftest$ac_exeext
21984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021985 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021986 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021987 grep -v '^ *+' conftest.er1 >conftest.err
21988 rm -f conftest.er1
21989 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021992 { ac_try='test -z "$ac_c_werror_flag"
21993 || test ! -s conftest.err'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; } &&
21999 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22002 ac_status=$?
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; }; then
22005
22006aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22007}'`
22008# Check for a 64-bit object if we didn't find anything.
22009if 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; }
22010}'`; fi
22011else
22012 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022013sed 's/^/| /' conftest.$ac_ext >&5
22014
John Criswell47fdd832003-07-14 16:52:07 +000022015fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022016rm -f conftest.err conftest.$ac_objext \
22017 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22019
22020 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22021 # Warning - without using the other run time loading flags,
22022 # -berok will link without error, but may produce a broken library.
22023 no_undefined_flag_GCJ=' ${wl}-bernotok'
22024 allow_undefined_flag_GCJ=' ${wl}-berok'
22025 # -bexpall does not export symbols beginning with underscore (_)
22026 always_export_symbols_GCJ=yes
22027 # Exported symbols can be pulled into shared objects from archives
22028 whole_archive_flag_spec_GCJ=' '
22029 archive_cmds_need_lc_GCJ=yes
22030 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022031 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 +000022032 fi
22033 fi
22034 ;;
22035
22036 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022037 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 +000022038 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22039 hardcode_minus_L_GCJ=yes
22040 # see comment about different semantics on the GNU ld section
22041 ld_shlibs_GCJ=no
22042 ;;
22043
Reid Spencer2706f8c2004-09-19 23:53:36 +000022044 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022045 export_dynamic_flag_spec_GCJ=-rdynamic
22046 ;;
22047
22048 cygwin* | mingw* | pw32*)
22049 # When not using gcc, we currently assume that we are using
22050 # Microsoft Visual C++.
22051 # hardcode_libdir_flag_spec is actually meaningless, as there is
22052 # no search path for DLLs.
22053 hardcode_libdir_flag_spec_GCJ=' '
22054 allow_undefined_flag_GCJ=unsupported
22055 # Tell ltmain to make .lib files, not .a files.
22056 libext=lib
22057 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022058 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022059 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022060 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 +000022061 # The linker will automatically build a .lib file if we build a DLL.
22062 old_archive_From_new_cmds_GCJ='true'
22063 # FIXME: Should let the user specify the lib program.
22064 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22065 fix_srcfile_path='`cygpath -w "$srcfile"`'
22066 enable_shared_with_static_runtimes_GCJ=yes
22067 ;;
22068
22069 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022070 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022071 rhapsody* | darwin1.[012])
22072 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22073 ;;
22074 *) # Darwin 1.3 on
22075 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22076 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22077 else
22078 case ${MACOSX_DEPLOYMENT_TARGET} in
22079 10.[012])
22080 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22081 ;;
22082 10.*)
22083 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22084 ;;
22085 esac
22086 fi
22087 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022088 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022089 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022090 hardcode_direct_GCJ=no
22091 hardcode_automatic_GCJ=yes
22092 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022093 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022094 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022095 if test "$GCC" = yes ; then
22096 output_verbose_link_cmd='echo'
22097 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22098 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22099 # 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 +000022100 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}'
22101 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 +000022102 else
22103 case "$cc_basename" in
22104 xlc*)
22105 output_verbose_link_cmd='echo'
22106 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22107 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22108 # 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 +000022109 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}'
22110 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 +000022111 ;;
22112 *)
22113 ld_shlibs_GCJ=no
22114 ;;
22115 esac
John Criswell47fdd832003-07-14 16:52:07 +000022116 fi
22117 ;;
22118
22119 dgux*)
22120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22122 hardcode_shlibpath_var_GCJ=no
22123 ;;
22124
22125 freebsd1*)
22126 ld_shlibs_GCJ=no
22127 ;;
22128
22129 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22130 # support. Future versions do this automatically, but an explicit c++rt0.o
22131 # does not break anything, and helps significantly (at the cost of a little
22132 # extra space).
22133 freebsd2.2*)
22134 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22135 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22136 hardcode_direct_GCJ=yes
22137 hardcode_shlibpath_var_GCJ=no
22138 ;;
22139
22140 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22141 freebsd2*)
22142 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22143 hardcode_direct_GCJ=yes
22144 hardcode_minus_L_GCJ=yes
22145 hardcode_shlibpath_var_GCJ=no
22146 ;;
22147
22148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022149 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022150 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22152 hardcode_direct_GCJ=yes
22153 hardcode_shlibpath_var_GCJ=no
22154 ;;
22155
22156 hpux9*)
22157 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022158 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 +000022159 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022160 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 +000022161 fi
22162 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22163 hardcode_libdir_separator_GCJ=:
22164 hardcode_direct_GCJ=yes
22165
22166 # hardcode_minus_L: Not really in the search PATH,
22167 # but as the default location of the library.
22168 hardcode_minus_L_GCJ=yes
22169 export_dynamic_flag_spec_GCJ='${wl}-E'
22170 ;;
22171
22172 hpux10* | hpux11*)
22173 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22174 case "$host_cpu" in
22175 hppa*64*|ia64*)
22176 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22177 ;;
22178 *)
22179 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22180 ;;
22181 esac
22182 else
22183 case "$host_cpu" in
22184 hppa*64*|ia64*)
22185 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22186 ;;
22187 *)
22188 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22189 ;;
22190 esac
22191 fi
22192 if test "$with_gnu_ld" = no; then
22193 case "$host_cpu" in
22194 hppa*64*)
22195 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22196 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22197 hardcode_libdir_separator_GCJ=:
22198 hardcode_direct_GCJ=no
22199 hardcode_shlibpath_var_GCJ=no
22200 ;;
22201 ia64*)
22202 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22203 hardcode_direct_GCJ=no
22204 hardcode_shlibpath_var_GCJ=no
22205
22206 # hardcode_minus_L: Not really in the search PATH,
22207 # but as the default location of the library.
22208 hardcode_minus_L_GCJ=yes
22209 ;;
22210 *)
22211 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22212 hardcode_libdir_separator_GCJ=:
22213 hardcode_direct_GCJ=yes
22214 export_dynamic_flag_spec_GCJ='${wl}-E'
22215
22216 # hardcode_minus_L: Not really in the search PATH,
22217 # but as the default location of the library.
22218 hardcode_minus_L_GCJ=yes
22219 ;;
22220 esac
22221 fi
22222 ;;
22223
22224 irix5* | irix6* | nonstopux*)
22225 if test "$GCC" = yes; then
22226 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'
22227 else
22228 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'
22229 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22230 fi
22231 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22232 hardcode_libdir_separator_GCJ=:
22233 link_all_deplibs_GCJ=yes
22234 ;;
22235
22236 netbsd*)
22237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22238 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22239 else
22240 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22241 fi
22242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22243 hardcode_direct_GCJ=yes
22244 hardcode_shlibpath_var_GCJ=no
22245 ;;
22246
22247 newsos6)
22248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22249 hardcode_direct_GCJ=yes
22250 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22251 hardcode_libdir_separator_GCJ=:
22252 hardcode_shlibpath_var_GCJ=no
22253 ;;
22254
22255 openbsd*)
22256 hardcode_direct_GCJ=yes
22257 hardcode_shlibpath_var_GCJ=no
22258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22259 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022260 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 +000022261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22262 export_dynamic_flag_spec_GCJ='${wl}-E'
22263 else
22264 case $host_os in
22265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22266 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22267 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22268 ;;
22269 *)
22270 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22271 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22272 ;;
22273 esac
22274 fi
22275 ;;
22276
22277 os2*)
22278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22279 hardcode_minus_L_GCJ=yes
22280 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022281 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 +000022282 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22283 ;;
22284
22285 osf3*)
22286 if test "$GCC" = yes; then
22287 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22288 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'
22289 else
22290 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22291 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'
22292 fi
22293 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22294 hardcode_libdir_separator_GCJ=:
22295 ;;
22296
22297 osf4* | osf5*) # as osf3* with the addition of -msym flag
22298 if test "$GCC" = yes; then
22299 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22300 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'
22301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22302 else
22303 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22304 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 +000022305 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~
22306 $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'
22307
John Criswell47fdd832003-07-14 16:52:07 +000022308 # Both c and cxx compiler support -rpath directly
22309 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22310 fi
22311 hardcode_libdir_separator_GCJ=:
22312 ;;
22313
22314 sco3.2v5*)
22315 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22316 hardcode_shlibpath_var_GCJ=no
22317 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22318 runpath_var=LD_RUN_PATH
22319 hardcode_runpath_var=yes
22320 ;;
22321
22322 solaris*)
22323 no_undefined_flag_GCJ=' -z text'
22324 if test "$GCC" = yes; then
22325 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022326 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22327 $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 +000022328 else
22329 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022330 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22331 $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 +000022332 fi
22333 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22334 hardcode_shlibpath_var_GCJ=no
22335 case $host_os in
22336 solaris2.[0-5] | solaris2.[0-5].*) ;;
22337 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22338 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22339 esac
22340 link_all_deplibs_GCJ=yes
22341 ;;
22342
22343 sunos4*)
22344 if test "x$host_vendor" = xsequent; then
22345 # Use $CC to link under sequent, because it throws in some extra .o
22346 # files that make .init and .fini sections work.
22347 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22348 else
22349 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22350 fi
22351 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22352 hardcode_direct_GCJ=yes
22353 hardcode_minus_L_GCJ=yes
22354 hardcode_shlibpath_var_GCJ=no
22355 ;;
22356
22357 sysv4)
22358 case $host_vendor in
22359 sni)
22360 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22361 hardcode_direct_GCJ=yes # is this really true???
22362 ;;
22363 siemens)
22364 ## LD is ld it makes a PLAMLIB
22365 ## CC just makes a GrossModule.
22366 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22367 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22368 hardcode_direct_GCJ=no
22369 ;;
22370 motorola)
22371 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22372 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22373 ;;
22374 esac
22375 runpath_var='LD_RUN_PATH'
22376 hardcode_shlibpath_var_GCJ=no
22377 ;;
22378
22379 sysv4.3*)
22380 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22381 hardcode_shlibpath_var_GCJ=no
22382 export_dynamic_flag_spec_GCJ='-Bexport'
22383 ;;
22384
22385 sysv4*MP*)
22386 if test -d /usr/nec; then
22387 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22388 hardcode_shlibpath_var_GCJ=no
22389 runpath_var=LD_RUN_PATH
22390 hardcode_runpath_var=yes
22391 ld_shlibs_GCJ=yes
22392 fi
22393 ;;
22394
22395 sysv4.2uw2*)
22396 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22397 hardcode_direct_GCJ=yes
22398 hardcode_minus_L_GCJ=no
22399 hardcode_shlibpath_var_GCJ=no
22400 hardcode_runpath_var=yes
22401 runpath_var=LD_RUN_PATH
22402 ;;
22403
22404 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22405 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22406 if test "$GCC" = yes; then
22407 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22408 else
22409 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22410 fi
22411 runpath_var='LD_RUN_PATH'
22412 hardcode_shlibpath_var_GCJ=no
22413 ;;
22414
22415 sysv5*)
22416 no_undefined_flag_GCJ=' -z text'
22417 # $CC -shared without GNU ld will not create a library from C++
22418 # object files and a static libstdc++, better avoid it by now
22419 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022420 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22421 $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 +000022422 hardcode_libdir_flag_spec_GCJ=
22423 hardcode_shlibpath_var_GCJ=no
22424 runpath_var='LD_RUN_PATH'
22425 ;;
22426
22427 uts4*)
22428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22429 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22430 hardcode_shlibpath_var_GCJ=no
22431 ;;
22432
22433 *)
22434 ld_shlibs_GCJ=no
22435 ;;
22436 esac
22437 fi
22438
22439echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22440echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22441test "$ld_shlibs_GCJ" = no && can_build_shared=no
22442
22443variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22444if test "$GCC" = yes; then
22445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22446fi
22447
22448#
22449# Do we need to explicitly link libc?
22450#
22451case "x$archive_cmds_need_lc_GCJ" in
22452x|xyes)
22453 # Assume -lc should be added
22454 archive_cmds_need_lc_GCJ=yes
22455
22456 if test "$enable_shared" = yes && test "$GCC" = yes; then
22457 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022458 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022459 # FIXME: we may have to deal with multi-command sequences.
22460 ;;
22461 '$CC '*)
22462 # Test whether the compiler implicitly links with -lc since on some
22463 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22464 # to ld, don't add -lc before -lgcc.
22465 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22466echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22467 $rm conftest*
22468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22469
22470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22471 (eval $ac_compile) 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } 2>conftest.err; then
22475 soname=conftest
22476 lib=conftest
22477 libobjs=conftest.$ac_objext
22478 deplibs=
22479 wl=$lt_prog_compiler_wl_GCJ
22480 compiler_flags=-v
22481 linker_flags=-v
22482 verstring=
22483 output_objdir=.
22484 libname=conftest
22485 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22486 allow_undefined_flag_GCJ=
22487 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22488 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }
22492 then
22493 archive_cmds_need_lc_GCJ=no
22494 else
22495 archive_cmds_need_lc_GCJ=yes
22496 fi
22497 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22498 else
22499 cat conftest.err 1>&5
22500 fi
22501 $rm conftest*
22502 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22503echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22504 ;;
22505 esac
22506 fi
22507 ;;
22508esac
22509
John Criswell47fdd832003-07-14 16:52:07 +000022510echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22511echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22512library_names_spec=
22513libname_spec='lib$name'
22514soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022515shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022516postinstall_cmds=
22517postuninstall_cmds=
22518finish_cmds=
22519finish_eval=
22520shlibpath_var=
22521shlibpath_overrides_runpath=unknown
22522version_type=none
22523dynamic_linker="$host_os ld.so"
22524sys_lib_dlsearch_path_spec="/lib /usr/lib"
22525if test "$GCC" = yes; then
22526 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22527 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22528 # if the path contains ";" then we assume it to be the separator
22529 # otherwise default to the standard path separator (i.e. ":") - it is
22530 # assumed that no part of a normal pathname contains ";" but that should
22531 # okay in the real world where ";" in dirpaths is itself problematic.
22532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22533 else
22534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22535 fi
22536else
22537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22538fi
22539need_lib_prefix=unknown
22540hardcode_into_libs=no
22541
22542# when you set need_version to no, make sure it does not cause -set_version
22543# flags to be left without arguments
22544need_version=unknown
22545
22546case $host_os in
22547aix3*)
22548 version_type=linux
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22550 shlibpath_var=LIBPATH
22551
22552 # AIX 3 has no versioning support, so we append a major version to the name.
22553 soname_spec='${libname}${release}${shared_ext}$major'
22554 ;;
22555
22556aix4* | aix5*)
22557 version_type=linux
22558 need_lib_prefix=no
22559 need_version=no
22560 hardcode_into_libs=yes
22561 if test "$host_cpu" = ia64; then
22562 # AIX 5 supports IA64
22563 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22564 shlibpath_var=LD_LIBRARY_PATH
22565 else
22566 # With GCC up to 2.95.x, collect2 would create an import file
22567 # for dependence libraries. The import file would start with
22568 # the line `#! .'. This would cause the generated library to
22569 # depend on `.', always an invalid library. This was fixed in
22570 # development snapshots of GCC prior to 3.0.
22571 case $host_os in
22572 aix4 | aix4.[01] | aix4.[01].*)
22573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22574 echo ' yes '
22575 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22576 :
22577 else
22578 can_build_shared=no
22579 fi
22580 ;;
22581 esac
22582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22583 # soname into executable. Probably we can add versioning support to
22584 # collect2, so additional links can be useful in future.
22585 if test "$aix_use_runtimelinking" = yes; then
22586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22587 # instead of lib<name>.a to let people know that these are not
22588 # typical AIX shared libraries.
22589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22590 else
22591 # We preserve .a as extension for shared libraries through AIX4.2
22592 # and later when we are not doing run time linking.
22593 library_names_spec='${libname}${release}.a $libname.a'
22594 soname_spec='${libname}${release}${shared_ext}$major'
22595 fi
22596 shlibpath_var=LIBPATH
22597 fi
22598 ;;
22599
22600amigaos*)
22601 library_names_spec='$libname.ixlibrary $libname.a'
22602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022603 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 +000022604 ;;
22605
22606beos*)
22607 library_names_spec='${libname}${shared_ext}'
22608 dynamic_linker="$host_os ld.so"
22609 shlibpath_var=LIBRARY_PATH
22610 ;;
22611
Reid Spencer2706f8c2004-09-19 23:53:36 +000022612bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022613 version_type=linux
22614 need_version=no
22615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22616 soname_spec='${libname}${release}${shared_ext}$major'
22617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22618 shlibpath_var=LD_LIBRARY_PATH
22619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22621 # the default ld.so.conf also contains /usr/contrib/lib and
22622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22623 # libtool to hard-code these into programs
22624 ;;
22625
22626cygwin* | mingw* | pw32*)
22627 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022628 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022629 need_version=no
22630 need_lib_prefix=no
22631
22632 case $GCC,$host_os in
22633 yes,cygwin* | yes,mingw* | yes,pw32*)
22634 library_names_spec='$libname.dll.a'
22635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022636 postinstall_cmds='base_file=`basename \${file}`~
22637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22638 dldir=$destdir/`dirname \$dlpath`~
22639 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022640 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22642 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022643 $rm \$dlpath'
22644 shlibpath_overrides_runpath=yes
22645
22646 case $host_os in
22647 cygwin*)
22648 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22649 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 +000022650 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022651 ;;
22652 mingw*)
22653 # MinGW DLLs use traditional 'lib' prefix
22654 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22656 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22657 # It is most probably a Windows format PATH printed by
22658 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22659 # path with ; separators, and with drive letters. We can handle the
22660 # drive letters (cygwin fileutils understands them), so leave them,
22661 # especially as we might pass files found there to a mingw objdump,
22662 # which wouldn't understand a cygwinified path. Ahh.
22663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22664 else
22665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22666 fi
22667 ;;
22668 pw32*)
22669 # pw32 DLLs use 'pw' prefix rather than 'lib'
22670 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22671 ;;
22672 esac
22673 ;;
22674
22675 *)
22676 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22677 ;;
22678 esac
22679 dynamic_linker='Win32 ld.exe'
22680 # FIXME: first we should search . and the directory the executable is in
22681 shlibpath_var=PATH
22682 ;;
22683
22684darwin* | rhapsody*)
22685 dynamic_linker="$host_os dyld"
22686 version_type=darwin
22687 need_lib_prefix=no
22688 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022689 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022690 soname_spec='${libname}${release}${major}$shared_ext'
22691 shlibpath_overrides_runpath=yes
22692 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022693 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022694 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022695 if test "$GCC" = yes; then
22696 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"`
22697 else
22698 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022699 fi
22700 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22701 ;;
22702
22703dgux*)
22704 version_type=linux
22705 need_lib_prefix=no
22706 need_version=no
22707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22708 soname_spec='${libname}${release}${shared_ext}$major'
22709 shlibpath_var=LD_LIBRARY_PATH
22710 ;;
22711
22712freebsd1*)
22713 dynamic_linker=no
22714 ;;
22715
Reid Spencer2706f8c2004-09-19 23:53:36 +000022716kfreebsd*-gnu)
22717 version_type=linux
22718 need_lib_prefix=no
22719 need_version=no
22720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22721 soname_spec='${libname}${release}${shared_ext}$major'
22722 shlibpath_var=LD_LIBRARY_PATH
22723 shlibpath_overrides_runpath=no
22724 hardcode_into_libs=yes
22725 dynamic_linker='GNU ld.so'
22726 ;;
22727
John Criswell47fdd832003-07-14 16:52:07 +000022728freebsd*)
22729 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22730 version_type=freebsd-$objformat
22731 case $version_type in
22732 freebsd-elf*)
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22734 need_version=no
22735 need_lib_prefix=no
22736 ;;
22737 freebsd-*)
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22739 need_version=yes
22740 ;;
22741 esac
22742 shlibpath_var=LD_LIBRARY_PATH
22743 case $host_os in
22744 freebsd2*)
22745 shlibpath_overrides_runpath=yes
22746 ;;
22747 freebsd3.01* | freebsdelf3.01*)
22748 shlibpath_overrides_runpath=yes
22749 hardcode_into_libs=yes
22750 ;;
22751 *) # from 3.2 on
22752 shlibpath_overrides_runpath=no
22753 hardcode_into_libs=yes
22754 ;;
22755 esac
22756 ;;
22757
22758gnu*)
22759 version_type=linux
22760 need_lib_prefix=no
22761 need_version=no
22762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22763 soname_spec='${libname}${release}${shared_ext}$major'
22764 shlibpath_var=LD_LIBRARY_PATH
22765 hardcode_into_libs=yes
22766 ;;
22767
22768hpux9* | hpux10* | hpux11*)
22769 # Give a soname corresponding to the major version so that dld.sl refuses to
22770 # link against other versions.
22771 version_type=sunos
22772 need_lib_prefix=no
22773 need_version=no
22774 case "$host_cpu" in
22775 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022776 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022777 hardcode_into_libs=yes
22778 dynamic_linker="$host_os dld.so"
22779 shlibpath_var=LD_LIBRARY_PATH
22780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782 soname_spec='${libname}${release}${shared_ext}$major'
22783 if test "X$HPUX_IA64_MODE" = X32; then
22784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22785 else
22786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22787 fi
22788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22789 ;;
22790 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022791 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022792 hardcode_into_libs=yes
22793 dynamic_linker="$host_os dld.sl"
22794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22797 soname_spec='${libname}${release}${shared_ext}$major'
22798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22800 ;;
22801 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022802 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022803 dynamic_linker="$host_os dld.sl"
22804 shlibpath_var=SHLIB_PATH
22805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 ;;
22809 esac
22810 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22811 postinstall_cmds='chmod 555 $lib'
22812 ;;
22813
22814irix5* | irix6* | nonstopux*)
22815 case $host_os in
22816 nonstopux*) version_type=nonstopux ;;
22817 *)
22818 if test "$lt_cv_prog_gnu_ld" = yes; then
22819 version_type=linux
22820 else
22821 version_type=irix
22822 fi ;;
22823 esac
22824 need_lib_prefix=no
22825 need_version=no
22826 soname_spec='${libname}${release}${shared_ext}$major'
22827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22828 case $host_os in
22829 irix5* | nonstopux*)
22830 libsuff= shlibsuff=
22831 ;;
22832 *)
22833 case $LD in # libtool.m4 will add one of these switches to LD
22834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22835 libsuff= shlibsuff= libmagic=32-bit;;
22836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22837 libsuff=32 shlibsuff=N32 libmagic=N32;;
22838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22840 *) libsuff= shlibsuff= libmagic=never-match;;
22841 esac
22842 ;;
22843 esac
22844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22845 shlibpath_overrides_runpath=no
22846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22848 hardcode_into_libs=yes
22849 ;;
22850
22851# No shared lib support for Linux oldld, aout, or coff.
22852linux*oldld* | linux*aout* | linux*coff*)
22853 dynamic_linker=no
22854 ;;
22855
22856# This must be Linux ELF.
22857linux*)
22858 version_type=linux
22859 need_lib_prefix=no
22860 need_version=no
22861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=no
22866 # This implies no fast_install, which is unacceptable.
22867 # Some rework will be needed to allow for fast_install
22868 # before this can be enabled.
22869 hardcode_into_libs=yes
22870
Reid Spencer2706f8c2004-09-19 23:53:36 +000022871 # Append ld.so.conf contents to the search path
22872 if test -f /etc/ld.so.conf; then
22873 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22874 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22875 fi
22876
John Criswell47fdd832003-07-14 16:52:07 +000022877 # We used to test for /lib/ld.so.1 and disable shared libraries on
22878 # powerpc, because MkLinux only supported shared libraries with the
22879 # GNU dynamic linker. Since this was broken with cross compilers,
22880 # most powerpc-linux boxes support dynamic linking these days and
22881 # people can always --disable-shared, the test was removed, and we
22882 # assume the GNU/Linux dynamic linker is in use.
22883 dynamic_linker='GNU/Linux ld.so'
22884 ;;
22885
Reid Spencer2706f8c2004-09-19 23:53:36 +000022886knetbsd*-gnu)
22887 version_type=linux
22888 need_lib_prefix=no
22889 need_version=no
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22891 soname_spec='${libname}${release}${shared_ext}$major'
22892 shlibpath_var=LD_LIBRARY_PATH
22893 shlibpath_overrides_runpath=no
22894 hardcode_into_libs=yes
22895 dynamic_linker='GNU ld.so'
22896 ;;
22897
John Criswell47fdd832003-07-14 16:52:07 +000022898netbsd*)
22899 version_type=sunos
22900 need_lib_prefix=no
22901 need_version=no
22902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22905 dynamic_linker='NetBSD (a.out) ld.so'
22906 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022908 soname_spec='${libname}${release}${shared_ext}$major'
22909 dynamic_linker='NetBSD ld.elf_so'
22910 fi
22911 shlibpath_var=LD_LIBRARY_PATH
22912 shlibpath_overrides_runpath=yes
22913 hardcode_into_libs=yes
22914 ;;
22915
22916newsos6)
22917 version_type=linux
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 shlibpath_overrides_runpath=yes
22921 ;;
22922
Reid Spencer2706f8c2004-09-19 23:53:36 +000022923nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022924 version_type=linux
22925 need_lib_prefix=no
22926 need_version=no
22927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22928 soname_spec='${libname}${release}${shared_ext}$major'
22929 shlibpath_var=LD_LIBRARY_PATH
22930 shlibpath_overrides_runpath=yes
22931 ;;
22932
22933openbsd*)
22934 version_type=sunos
22935 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022936 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22939 shlibpath_var=LD_LIBRARY_PATH
22940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22941 case $host_os in
22942 openbsd2.[89] | openbsd2.[89].*)
22943 shlibpath_overrides_runpath=no
22944 ;;
22945 *)
22946 shlibpath_overrides_runpath=yes
22947 ;;
22948 esac
22949 else
22950 shlibpath_overrides_runpath=yes
22951 fi
22952 ;;
22953
22954os2*)
22955 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022956 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022957 need_lib_prefix=no
22958 library_names_spec='$libname${shared_ext} $libname.a'
22959 dynamic_linker='OS/2 ld.exe'
22960 shlibpath_var=LIBPATH
22961 ;;
22962
22963osf3* | osf4* | osf5*)
22964 version_type=osf
22965 need_lib_prefix=no
22966 need_version=no
22967 soname_spec='${libname}${release}${shared_ext}$major'
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 shlibpath_var=LD_LIBRARY_PATH
22970 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22971 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22972 ;;
22973
22974sco3.2v5*)
22975 version_type=osf
22976 soname_spec='${libname}${release}${shared_ext}$major'
22977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22978 shlibpath_var=LD_LIBRARY_PATH
22979 ;;
22980
22981solaris*)
22982 version_type=linux
22983 need_lib_prefix=no
22984 need_version=no
22985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22986 soname_spec='${libname}${release}${shared_ext}$major'
22987 shlibpath_var=LD_LIBRARY_PATH
22988 shlibpath_overrides_runpath=yes
22989 hardcode_into_libs=yes
22990 # ldd complains unless libraries are executable
22991 postinstall_cmds='chmod +x $lib'
22992 ;;
22993
22994sunos4*)
22995 version_type=sunos
22996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22998 shlibpath_var=LD_LIBRARY_PATH
22999 shlibpath_overrides_runpath=yes
23000 if test "$with_gnu_ld" = yes; then
23001 need_lib_prefix=no
23002 fi
23003 need_version=yes
23004 ;;
23005
23006sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23007 version_type=linux
23008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 case $host_vendor in
23012 sni)
23013 shlibpath_overrides_runpath=no
23014 need_lib_prefix=no
23015 export_dynamic_flag_spec='${wl}-Blargedynsym'
23016 runpath_var=LD_RUN_PATH
23017 ;;
23018 siemens)
23019 need_lib_prefix=no
23020 ;;
23021 motorola)
23022 need_lib_prefix=no
23023 need_version=no
23024 shlibpath_overrides_runpath=no
23025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23026 ;;
23027 esac
23028 ;;
23029
23030sysv4*MP*)
23031 if test -d /usr/nec ;then
23032 version_type=linux
23033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23034 soname_spec='$libname${shared_ext}.$major'
23035 shlibpath_var=LD_LIBRARY_PATH
23036 fi
23037 ;;
23038
23039uts4*)
23040 version_type=linux
23041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23042 soname_spec='${libname}${release}${shared_ext}$major'
23043 shlibpath_var=LD_LIBRARY_PATH
23044 ;;
23045
23046*)
23047 dynamic_linker=no
23048 ;;
23049esac
23050echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23051echo "${ECHO_T}$dynamic_linker" >&6
23052test "$dynamic_linker" = no && can_build_shared=no
23053
Reid Spencer2706f8c2004-09-19 23:53:36 +000023054echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23055echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23056hardcode_action_GCJ=
23057if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23058 test -n "$runpath_var_GCJ" || \
23059 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23060
23061 # We can hardcode non-existant directories.
23062 if test "$hardcode_direct_GCJ" != no &&
23063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23064 # have to relink, otherwise we might link with an installed library
23065 # when we should be linking with a yet-to-be-installed one
23066 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23067 test "$hardcode_minus_L_GCJ" != no; then
23068 # Linking always hardcodes the temporary library directory.
23069 hardcode_action_GCJ=relink
23070 else
23071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23072 hardcode_action_GCJ=immediate
23073 fi
23074else
23075 # We cannot hardcode anything, or else we can only hardcode existing
23076 # directories.
23077 hardcode_action_GCJ=unsupported
23078fi
23079echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23080echo "${ECHO_T}$hardcode_action_GCJ" >&6
23081
23082if test "$hardcode_action_GCJ" = relink; then
23083 # Fast installation is not supported
23084 enable_fast_install=no
23085elif test "$shlibpath_overrides_runpath" = yes ||
23086 test "$enable_shared" = no; then
23087 # Fast installation is not necessary
23088 enable_fast_install=needless
23089fi
23090
23091striplib=
23092old_striplib=
23093echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23094echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23095if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23096 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23097 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23098 echo "$as_me:$LINENO: result: yes" >&5
23099echo "${ECHO_T}yes" >&6
23100else
23101# FIXME - insert some real tests, host_os isn't really good enough
23102 case $host_os in
23103 darwin*)
23104 if test -n "$STRIP" ; then
23105 striplib="$STRIP -x"
23106 echo "$as_me:$LINENO: result: yes" >&5
23107echo "${ECHO_T}yes" >&6
23108 else
23109 echo "$as_me:$LINENO: result: no" >&5
23110echo "${ECHO_T}no" >&6
23111fi
23112 ;;
23113 *)
23114 echo "$as_me:$LINENO: result: no" >&5
23115echo "${ECHO_T}no" >&6
23116 ;;
23117 esac
23118fi
23119
John Criswell47fdd832003-07-14 16:52:07 +000023120if test "x$enable_dlopen" != xyes; then
23121 enable_dlopen=unknown
23122 enable_dlopen_self=unknown
23123 enable_dlopen_self_static=unknown
23124else
23125 lt_cv_dlopen=no
23126 lt_cv_dlopen_libs=
23127
23128 case $host_os in
23129 beos*)
23130 lt_cv_dlopen="load_add_on"
23131 lt_cv_dlopen_libs=
23132 lt_cv_dlopen_self=yes
23133 ;;
23134
23135 mingw* | pw32*)
23136 lt_cv_dlopen="LoadLibrary"
23137 lt_cv_dlopen_libs=
23138 ;;
23139
23140 cygwin*)
23141 lt_cv_dlopen="dlopen"
23142 lt_cv_dlopen_libs=
23143 ;;
23144
23145 darwin*)
23146 # if libdl is installed we need to link against it
23147 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23148echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23149if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23151else
23152 ac_check_lib_save_LIBS=$LIBS
23153LIBS="-ldl $LIBS"
23154cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023155/* confdefs.h. */
23156_ACEOF
23157cat confdefs.h >>conftest.$ac_ext
23158cat >>conftest.$ac_ext <<_ACEOF
23159/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023160
23161/* Override any gcc2 internal prototype to avoid an error. */
23162#ifdef __cplusplus
23163extern "C"
23164#endif
23165/* We use char because int might match the return type of a gcc2
23166 builtin and then its argument prototype would still apply. */
23167char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023168int
23169main ()
23170{
23171dlopen ();
23172 ;
23173 return 0;
23174}
23175_ACEOF
23176rm -f conftest.$ac_objext conftest$ac_exeext
23177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023178 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023180 grep -v '^ *+' conftest.er1 >conftest.err
23181 rm -f conftest.er1
23182 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023185 { ac_try='test -z "$ac_c_werror_flag"
23186 || test ! -s conftest.err'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23189 ac_status=$?
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; } &&
23192 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194 (eval $ac_try) 2>&5
23195 ac_status=$?
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; }; then
23198 ac_cv_lib_dl_dlopen=yes
23199else
23200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023201sed 's/^/| /' conftest.$ac_ext >&5
23202
John Criswell47fdd832003-07-14 16:52:07 +000023203ac_cv_lib_dl_dlopen=no
23204fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023205rm -f conftest.err conftest.$ac_objext \
23206 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023207LIBS=$ac_check_lib_save_LIBS
23208fi
23209echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23210echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23211if test $ac_cv_lib_dl_dlopen = yes; then
23212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23213else
23214
23215 lt_cv_dlopen="dyld"
23216 lt_cv_dlopen_libs=
23217 lt_cv_dlopen_self=yes
23218
23219fi
23220
23221 ;;
23222
23223 *)
23224 echo "$as_me:$LINENO: checking for shl_load" >&5
23225echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23226if test "${ac_cv_func_shl_load+set}" = set; then
23227 echo $ECHO_N "(cached) $ECHO_C" >&6
23228else
23229 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023230/* confdefs.h. */
23231_ACEOF
23232cat confdefs.h >>conftest.$ac_ext
23233cat >>conftest.$ac_ext <<_ACEOF
23234/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023235/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23237#define shl_load innocuous_shl_load
23238
John Criswell47fdd832003-07-14 16:52:07 +000023239/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023240 which can conflict with char shl_load (); below.
23241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23242 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023243
John Criswell0c38eaf2003-09-10 15:17:25 +000023244#ifdef __STDC__
23245# include <limits.h>
23246#else
23247# include <assert.h>
23248#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023249
23250#undef shl_load
23251
John Criswell47fdd832003-07-14 16:52:07 +000023252/* Override any gcc2 internal prototype to avoid an error. */
23253#ifdef __cplusplus
23254extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023255{
John Criswell47fdd832003-07-14 16:52:07 +000023256#endif
23257/* We use char because int might match the return type of a gcc2
23258 builtin and then its argument prototype would still apply. */
23259char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023260/* The GNU C library defines this for functions which it implements
23261 to always fail with ENOSYS. Some functions are actually named
23262 something starting with __ and the normal name is an alias. */
23263#if defined (__stub_shl_load) || defined (__stub___shl_load)
23264choke me
23265#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023266char (*f) () = shl_load;
23267#endif
23268#ifdef __cplusplus
23269}
John Criswell47fdd832003-07-14 16:52:07 +000023270#endif
23271
John Criswell0c38eaf2003-09-10 15:17:25 +000023272int
23273main ()
23274{
23275return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023276 ;
23277 return 0;
23278}
23279_ACEOF
23280rm -f conftest.$ac_objext conftest$ac_exeext
23281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023282 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023283 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023289 { ac_try='test -z "$ac_c_werror_flag"
23290 || test ! -s conftest.err'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; } &&
23296 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_cv_func_shl_load=yes
23303else
23304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023305sed 's/^/| /' conftest.$ac_ext >&5
23306
John Criswell47fdd832003-07-14 16:52:07 +000023307ac_cv_func_shl_load=no
23308fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023309rm -f conftest.err conftest.$ac_objext \
23310 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023311fi
23312echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23313echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23314if test $ac_cv_func_shl_load = yes; then
23315 lt_cv_dlopen="shl_load"
23316else
23317 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23318echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23319if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321else
23322 ac_check_lib_save_LIBS=$LIBS
23323LIBS="-ldld $LIBS"
23324cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023325/* confdefs.h. */
23326_ACEOF
23327cat confdefs.h >>conftest.$ac_ext
23328cat >>conftest.$ac_ext <<_ACEOF
23329/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023330
23331/* Override any gcc2 internal prototype to avoid an error. */
23332#ifdef __cplusplus
23333extern "C"
23334#endif
23335/* We use char because int might match the return type of a gcc2
23336 builtin and then its argument prototype would still apply. */
23337char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023338int
23339main ()
23340{
23341shl_load ();
23342 ;
23343 return 0;
23344}
23345_ACEOF
23346rm -f conftest.$ac_objext conftest$ac_exeext
23347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023348 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023349 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023350 grep -v '^ *+' conftest.er1 >conftest.err
23351 rm -f conftest.er1
23352 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023355 { ac_try='test -z "$ac_c_werror_flag"
23356 || test ! -s conftest.err'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; } &&
23362 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23365 ac_status=$?
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; }; then
23368 ac_cv_lib_dld_shl_load=yes
23369else
23370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023371sed 's/^/| /' conftest.$ac_ext >&5
23372
John Criswell47fdd832003-07-14 16:52:07 +000023373ac_cv_lib_dld_shl_load=no
23374fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023375rm -f conftest.err conftest.$ac_objext \
23376 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023377LIBS=$ac_check_lib_save_LIBS
23378fi
23379echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23380echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23381if test $ac_cv_lib_dld_shl_load = yes; then
23382 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23383else
23384 echo "$as_me:$LINENO: checking for dlopen" >&5
23385echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23386if test "${ac_cv_func_dlopen+set}" = set; then
23387 echo $ECHO_N "(cached) $ECHO_C" >&6
23388else
23389 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023390/* confdefs.h. */
23391_ACEOF
23392cat confdefs.h >>conftest.$ac_ext
23393cat >>conftest.$ac_ext <<_ACEOF
23394/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023395/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23397#define dlopen innocuous_dlopen
23398
John Criswell47fdd832003-07-14 16:52:07 +000023399/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023400 which can conflict with char dlopen (); below.
23401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23402 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023403
John Criswell0c38eaf2003-09-10 15:17:25 +000023404#ifdef __STDC__
23405# include <limits.h>
23406#else
23407# include <assert.h>
23408#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023409
23410#undef dlopen
23411
John Criswell47fdd832003-07-14 16:52:07 +000023412/* Override any gcc2 internal prototype to avoid an error. */
23413#ifdef __cplusplus
23414extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023415{
John Criswell47fdd832003-07-14 16:52:07 +000023416#endif
23417/* We use char because int might match the return type of a gcc2
23418 builtin and then its argument prototype would still apply. */
23419char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023420/* The GNU C library defines this for functions which it implements
23421 to always fail with ENOSYS. Some functions are actually named
23422 something starting with __ and the normal name is an alias. */
23423#if defined (__stub_dlopen) || defined (__stub___dlopen)
23424choke me
23425#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023426char (*f) () = dlopen;
23427#endif
23428#ifdef __cplusplus
23429}
John Criswell47fdd832003-07-14 16:52:07 +000023430#endif
23431
John Criswell0c38eaf2003-09-10 15:17:25 +000023432int
23433main ()
23434{
23435return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023436 ;
23437 return 0;
23438}
23439_ACEOF
23440rm -f conftest.$ac_objext conftest$ac_exeext
23441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023442 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023443 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023444 grep -v '^ *+' conftest.er1 >conftest.err
23445 rm -f conftest.er1
23446 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023449 { ac_try='test -z "$ac_c_werror_flag"
23450 || test ! -s conftest.err'
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; } &&
23456 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 ac_cv_func_dlopen=yes
23463else
23464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023465sed 's/^/| /' conftest.$ac_ext >&5
23466
John Criswell47fdd832003-07-14 16:52:07 +000023467ac_cv_func_dlopen=no
23468fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023469rm -f conftest.err conftest.$ac_objext \
23470 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023471fi
23472echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23473echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23474if test $ac_cv_func_dlopen = yes; then
23475 lt_cv_dlopen="dlopen"
23476else
23477 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23478echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23479if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23481else
23482 ac_check_lib_save_LIBS=$LIBS
23483LIBS="-ldl $LIBS"
23484cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023485/* confdefs.h. */
23486_ACEOF
23487cat confdefs.h >>conftest.$ac_ext
23488cat >>conftest.$ac_ext <<_ACEOF
23489/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023490
23491/* Override any gcc2 internal prototype to avoid an error. */
23492#ifdef __cplusplus
23493extern "C"
23494#endif
23495/* We use char because int might match the return type of a gcc2
23496 builtin and then its argument prototype would still apply. */
23497char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023498int
23499main ()
23500{
23501dlopen ();
23502 ;
23503 return 0;
23504}
23505_ACEOF
23506rm -f conftest.$ac_objext conftest$ac_exeext
23507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023508 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023509 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023515 { ac_try='test -z "$ac_c_werror_flag"
23516 || test ! -s conftest.err'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_cv_lib_dl_dlopen=yes
23529else
23530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023531sed 's/^/| /' conftest.$ac_ext >&5
23532
John Criswell47fdd832003-07-14 16:52:07 +000023533ac_cv_lib_dl_dlopen=no
23534fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023535rm -f conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023537LIBS=$ac_check_lib_save_LIBS
23538fi
23539echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23540echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23541if test $ac_cv_lib_dl_dlopen = yes; then
23542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23543else
23544 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23545echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23546if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23547 echo $ECHO_N "(cached) $ECHO_C" >&6
23548else
23549 ac_check_lib_save_LIBS=$LIBS
23550LIBS="-lsvld $LIBS"
23551cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023552/* confdefs.h. */
23553_ACEOF
23554cat confdefs.h >>conftest.$ac_ext
23555cat >>conftest.$ac_ext <<_ACEOF
23556/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023557
23558/* Override any gcc2 internal prototype to avoid an error. */
23559#ifdef __cplusplus
23560extern "C"
23561#endif
23562/* We use char because int might match the return type of a gcc2
23563 builtin and then its argument prototype would still apply. */
23564char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023565int
23566main ()
23567{
23568dlopen ();
23569 ;
23570 return 0;
23571}
23572_ACEOF
23573rm -f conftest.$ac_objext conftest$ac_exeext
23574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023575 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023577 grep -v '^ *+' conftest.er1 >conftest.err
23578 rm -f conftest.er1
23579 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023582 { ac_try='test -z "$ac_c_werror_flag"
23583 || test ! -s conftest.err'
23584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23585 (eval $ac_try) 2>&5
23586 ac_status=$?
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; } &&
23589 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23591 (eval $ac_try) 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; }; then
23595 ac_cv_lib_svld_dlopen=yes
23596else
23597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023598sed 's/^/| /' conftest.$ac_ext >&5
23599
John Criswell47fdd832003-07-14 16:52:07 +000023600ac_cv_lib_svld_dlopen=no
23601fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023602rm -f conftest.err conftest.$ac_objext \
23603 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023604LIBS=$ac_check_lib_save_LIBS
23605fi
23606echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23607echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23608if test $ac_cv_lib_svld_dlopen = yes; then
23609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23610else
23611 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23612echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23613if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23614 echo $ECHO_N "(cached) $ECHO_C" >&6
23615else
23616 ac_check_lib_save_LIBS=$LIBS
23617LIBS="-ldld $LIBS"
23618cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023619/* confdefs.h. */
23620_ACEOF
23621cat confdefs.h >>conftest.$ac_ext
23622cat >>conftest.$ac_ext <<_ACEOF
23623/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023624
23625/* Override any gcc2 internal prototype to avoid an error. */
23626#ifdef __cplusplus
23627extern "C"
23628#endif
23629/* We use char because int might match the return type of a gcc2
23630 builtin and then its argument prototype would still apply. */
23631char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023632int
23633main ()
23634{
23635dld_link ();
23636 ;
23637 return 0;
23638}
23639_ACEOF
23640rm -f conftest.$ac_objext conftest$ac_exeext
23641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023642 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023643 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023644 grep -v '^ *+' conftest.er1 >conftest.err
23645 rm -f conftest.er1
23646 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023649 { ac_try='test -z "$ac_c_werror_flag"
23650 || test ! -s conftest.err'
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_cv_lib_dld_dld_link=yes
23663else
23664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023665sed 's/^/| /' conftest.$ac_ext >&5
23666
John Criswell47fdd832003-07-14 16:52:07 +000023667ac_cv_lib_dld_dld_link=no
23668fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023669rm -f conftest.err conftest.$ac_objext \
23670 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023671LIBS=$ac_check_lib_save_LIBS
23672fi
23673echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23674echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23675if test $ac_cv_lib_dld_dld_link = yes; then
23676 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23677fi
23678
23679
23680fi
23681
23682
23683fi
23684
23685
23686fi
23687
23688
23689fi
23690
23691
23692fi
23693
23694 ;;
23695 esac
23696
23697 if test "x$lt_cv_dlopen" != xno; then
23698 enable_dlopen=yes
23699 else
23700 enable_dlopen=no
23701 fi
23702
23703 case $lt_cv_dlopen in
23704 dlopen)
23705 save_CPPFLAGS="$CPPFLAGS"
23706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23707
23708 save_LDFLAGS="$LDFLAGS"
23709 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23710
23711 save_LIBS="$LIBS"
23712 LIBS="$lt_cv_dlopen_libs $LIBS"
23713
23714 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23715echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23716if test "${lt_cv_dlopen_self+set}" = set; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23718else
23719 if test "$cross_compiling" = yes; then :
23720 lt_cv_dlopen_self=cross
23721else
23722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23723 lt_status=$lt_dlunknown
23724 cat > conftest.$ac_ext <<EOF
Reid Spencer54d14482006-04-07 16:01:51 +000023725#line 23725 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023726#include "confdefs.h"
23727
23728#if HAVE_DLFCN_H
23729#include <dlfcn.h>
23730#endif
23731
23732#include <stdio.h>
23733
23734#ifdef RTLD_GLOBAL
23735# define LT_DLGLOBAL RTLD_GLOBAL
23736#else
23737# ifdef DL_GLOBAL
23738# define LT_DLGLOBAL DL_GLOBAL
23739# else
23740# define LT_DLGLOBAL 0
23741# endif
23742#endif
23743
23744/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23745 find out it does not work in some platform. */
23746#ifndef LT_DLLAZY_OR_NOW
23747# ifdef RTLD_LAZY
23748# define LT_DLLAZY_OR_NOW RTLD_LAZY
23749# else
23750# ifdef DL_LAZY
23751# define LT_DLLAZY_OR_NOW DL_LAZY
23752# else
23753# ifdef RTLD_NOW
23754# define LT_DLLAZY_OR_NOW RTLD_NOW
23755# else
23756# ifdef DL_NOW
23757# define LT_DLLAZY_OR_NOW DL_NOW
23758# else
23759# define LT_DLLAZY_OR_NOW 0
23760# endif
23761# endif
23762# endif
23763# endif
23764#endif
23765
23766#ifdef __cplusplus
23767extern "C" void exit (int);
23768#endif
23769
23770void fnord() { int i=42;}
23771int main ()
23772{
23773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23774 int status = $lt_dlunknown;
23775
23776 if (self)
23777 {
23778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23779 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23780 /* dlclose (self); */
23781 }
23782
23783 exit (status);
23784}
23785EOF
23786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23787 (eval $ac_link) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23791 (./conftest; exit; ) 2>/dev/null
23792 lt_status=$?
23793 case x$lt_status in
23794 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23795 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23796 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23797 esac
23798 else :
23799 # compilation failed
23800 lt_cv_dlopen_self=no
23801 fi
23802fi
23803rm -fr conftest*
23804
23805
23806fi
23807echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23808echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23809
23810 if test "x$lt_cv_dlopen_self" = xyes; then
23811 LDFLAGS="$LDFLAGS $link_static_flag"
23812 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23813echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23814if test "${lt_cv_dlopen_self_static+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23816else
23817 if test "$cross_compiling" = yes; then :
23818 lt_cv_dlopen_self_static=cross
23819else
23820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23821 lt_status=$lt_dlunknown
23822 cat > conftest.$ac_ext <<EOF
Reid Spencer54d14482006-04-07 16:01:51 +000023823#line 23823 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023824#include "confdefs.h"
23825
23826#if HAVE_DLFCN_H
23827#include <dlfcn.h>
23828#endif
23829
23830#include <stdio.h>
23831
23832#ifdef RTLD_GLOBAL
23833# define LT_DLGLOBAL RTLD_GLOBAL
23834#else
23835# ifdef DL_GLOBAL
23836# define LT_DLGLOBAL DL_GLOBAL
23837# else
23838# define LT_DLGLOBAL 0
23839# endif
23840#endif
23841
23842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23843 find out it does not work in some platform. */
23844#ifndef LT_DLLAZY_OR_NOW
23845# ifdef RTLD_LAZY
23846# define LT_DLLAZY_OR_NOW RTLD_LAZY
23847# else
23848# ifdef DL_LAZY
23849# define LT_DLLAZY_OR_NOW DL_LAZY
23850# else
23851# ifdef RTLD_NOW
23852# define LT_DLLAZY_OR_NOW RTLD_NOW
23853# else
23854# ifdef DL_NOW
23855# define LT_DLLAZY_OR_NOW DL_NOW
23856# else
23857# define LT_DLLAZY_OR_NOW 0
23858# endif
23859# endif
23860# endif
23861# endif
23862#endif
23863
23864#ifdef __cplusplus
23865extern "C" void exit (int);
23866#endif
23867
23868void fnord() { int i=42;}
23869int main ()
23870{
23871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23872 int status = $lt_dlunknown;
23873
23874 if (self)
23875 {
23876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23877 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23878 /* dlclose (self); */
23879 }
23880
23881 exit (status);
23882}
23883EOF
23884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23885 (eval $ac_link) 2>&5
23886 ac_status=$?
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23889 (./conftest; exit; ) 2>/dev/null
23890 lt_status=$?
23891 case x$lt_status in
23892 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23893 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23894 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23895 esac
23896 else :
23897 # compilation failed
23898 lt_cv_dlopen_self_static=no
23899 fi
23900fi
23901rm -fr conftest*
23902
23903
23904fi
23905echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23906echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23907 fi
23908
23909 CPPFLAGS="$save_CPPFLAGS"
23910 LDFLAGS="$save_LDFLAGS"
23911 LIBS="$save_LIBS"
23912 ;;
23913 esac
23914
23915 case $lt_cv_dlopen_self in
23916 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23917 *) enable_dlopen_self=unknown ;;
23918 esac
23919
23920 case $lt_cv_dlopen_self_static in
23921 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23922 *) enable_dlopen_self_static=unknown ;;
23923 esac
23924fi
23925
23926
23927# The else clause should only fire when bootstrapping the
23928# libtool distribution, otherwise you forgot to ship ltmain.sh
23929# with your package, and you will get complaints that there are
23930# no rules to generate ltmain.sh.
23931if test -f "$ltmain"; then
23932 # See if we are running on zsh, and set the options which allow our commands through
23933 # without removal of \ escapes.
23934 if test -n "${ZSH_VERSION+set}" ; then
23935 setopt NO_GLOB_SUBST
23936 fi
23937 # Now quote all the things that may contain metacharacters while being
23938 # careful not to overquote the AC_SUBSTed values. We take copies of the
23939 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023940 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23941 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023942 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23943 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23944 deplibs_check_method reload_flag reload_cmds need_locks \
23945 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23946 lt_cv_sys_global_symbol_to_c_name_address \
23947 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23948 old_postinstall_cmds old_postuninstall_cmds \
23949 compiler_GCJ \
23950 CC_GCJ \
23951 LD_GCJ \
23952 lt_prog_compiler_wl_GCJ \
23953 lt_prog_compiler_pic_GCJ \
23954 lt_prog_compiler_static_GCJ \
23955 lt_prog_compiler_no_builtin_flag_GCJ \
23956 export_dynamic_flag_spec_GCJ \
23957 thread_safe_flag_spec_GCJ \
23958 whole_archive_flag_spec_GCJ \
23959 enable_shared_with_static_runtimes_GCJ \
23960 old_archive_cmds_GCJ \
23961 old_archive_from_new_cmds_GCJ \
23962 predep_objects_GCJ \
23963 postdep_objects_GCJ \
23964 predeps_GCJ \
23965 postdeps_GCJ \
23966 compiler_lib_search_path_GCJ \
23967 archive_cmds_GCJ \
23968 archive_expsym_cmds_GCJ \
23969 postinstall_cmds_GCJ \
23970 postuninstall_cmds_GCJ \
23971 old_archive_from_expsyms_cmds_GCJ \
23972 allow_undefined_flag_GCJ \
23973 no_undefined_flag_GCJ \
23974 export_symbols_cmds_GCJ \
23975 hardcode_libdir_flag_spec_GCJ \
23976 hardcode_libdir_flag_spec_ld_GCJ \
23977 hardcode_libdir_separator_GCJ \
23978 hardcode_automatic_GCJ \
23979 module_cmds_GCJ \
23980 module_expsym_cmds_GCJ \
23981 lt_cv_prog_compiler_c_o_GCJ \
23982 exclude_expsyms_GCJ \
23983 include_expsyms_GCJ; do
23984
23985 case $var in
23986 old_archive_cmds_GCJ | \
23987 old_archive_from_new_cmds_GCJ | \
23988 archive_cmds_GCJ | \
23989 archive_expsym_cmds_GCJ | \
23990 module_cmds_GCJ | \
23991 module_expsym_cmds_GCJ | \
23992 old_archive_from_expsyms_cmds_GCJ | \
23993 export_symbols_cmds_GCJ | \
23994 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23995 postinstall_cmds | postuninstall_cmds | \
23996 old_postinstall_cmds | old_postuninstall_cmds | \
23997 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23998 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023999 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 +000024000 ;;
24001 *)
24002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24003 ;;
24004 esac
24005 done
24006
24007 case $lt_echo in
24008 *'\$0 --fallback-echo"')
24009 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24010 ;;
24011 esac
24012
24013cfgfile="$ofile"
24014
24015 cat <<__EOF__ >> "$cfgfile"
24016# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24017
24018# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24019
24020# Shell to use when invoking shell scripts.
24021SHELL=$lt_SHELL
24022
24023# Whether or not to build shared libraries.
24024build_libtool_libs=$enable_shared
24025
24026# Whether or not to build static libraries.
24027build_old_libs=$enable_static
24028
24029# Whether or not to add -lc for building shared libraries.
24030build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24031
24032# Whether or not to disallow shared libs when runtime libs are static
24033allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24034
24035# Whether or not to optimize for fast installation.
24036fast_install=$enable_fast_install
24037
24038# The host system.
24039host_alias=$host_alias
24040host=$host
24041
24042# An echo program that does not interpret backslashes.
24043echo=$lt_echo
24044
24045# The archiver.
24046AR=$lt_AR
24047AR_FLAGS=$lt_AR_FLAGS
24048
24049# A C compiler.
24050LTCC=$lt_LTCC
24051
24052# A language-specific compiler.
24053CC=$lt_compiler_GCJ
24054
24055# Is the compiler the GNU C compiler?
24056with_gcc=$GCC_GCJ
24057
24058# An ERE matcher.
24059EGREP=$lt_EGREP
24060
24061# The linker used to build libraries.
24062LD=$lt_LD_GCJ
24063
24064# Whether we need hard or soft links.
24065LN_S=$lt_LN_S
24066
24067# A BSD-compatible nm program.
24068NM=$lt_NM
24069
24070# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024071STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024072
24073# Used to examine libraries when file_magic_cmd begins "file"
24074MAGIC_CMD=$MAGIC_CMD
24075
24076# Used on cygwin: DLL creation program.
24077DLLTOOL="$DLLTOOL"
24078
24079# Used on cygwin: object dumper.
24080OBJDUMP="$OBJDUMP"
24081
24082# Used on cygwin: assembler.
24083AS="$AS"
24084
24085# The name of the directory that contains temporary libtool files.
24086objdir=$objdir
24087
24088# How to create reloadable object files.
24089reload_flag=$lt_reload_flag
24090reload_cmds=$lt_reload_cmds
24091
24092# How to pass a linker flag through the compiler.
24093wl=$lt_lt_prog_compiler_wl_GCJ
24094
24095# Object file suffix (normally "o").
24096objext="$ac_objext"
24097
24098# Old archive suffix (normally "a").
24099libext="$libext"
24100
24101# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024102shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024103
24104# Executable file suffix (normally "").
24105exeext="$exeext"
24106
24107# Additional compiler flags for building library objects.
24108pic_flag=$lt_lt_prog_compiler_pic_GCJ
24109pic_mode=$pic_mode
24110
24111# What is the maximum length of a command?
24112max_cmd_len=$lt_cv_sys_max_cmd_len
24113
24114# Does compiler simultaneously support -c and -o options?
24115compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24116
24117# Must we lock files when doing compilation ?
24118need_locks=$lt_need_locks
24119
24120# Do we need the lib prefix for modules?
24121need_lib_prefix=$need_lib_prefix
24122
24123# Do we need a version for libraries?
24124need_version=$need_version
24125
24126# Whether dlopen is supported.
24127dlopen_support=$enable_dlopen
24128
24129# Whether dlopen of programs is supported.
24130dlopen_self=$enable_dlopen_self
24131
24132# Whether dlopen of statically linked programs is supported.
24133dlopen_self_static=$enable_dlopen_self_static
24134
24135# Compiler flag to prevent dynamic linking.
24136link_static_flag=$lt_lt_prog_compiler_static_GCJ
24137
24138# Compiler flag to turn off builtin functions.
24139no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24140
24141# Compiler flag to allow reflexive dlopens.
24142export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24143
24144# Compiler flag to generate shared objects directly from archives.
24145whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24146
24147# Compiler flag to generate thread-safe objects.
24148thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24149
24150# Library versioning type.
24151version_type=$version_type
24152
24153# Format of library name prefix.
24154libname_spec=$lt_libname_spec
24155
24156# List of archive names. First name is the real one, the rest are links.
24157# The last name is the one that the linker finds with -lNAME.
24158library_names_spec=$lt_library_names_spec
24159
24160# The coded name of the library, if different from the real name.
24161soname_spec=$lt_soname_spec
24162
24163# Commands used to build and install an old-style archive.
24164RANLIB=$lt_RANLIB
24165old_archive_cmds=$lt_old_archive_cmds_GCJ
24166old_postinstall_cmds=$lt_old_postinstall_cmds
24167old_postuninstall_cmds=$lt_old_postuninstall_cmds
24168
24169# Create an old-style archive from a shared archive.
24170old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24171
24172# Create a temporary old-style archive to link instead of a shared archive.
24173old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24174
24175# Commands used to build and install a shared archive.
24176archive_cmds=$lt_archive_cmds_GCJ
24177archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24178postinstall_cmds=$lt_postinstall_cmds
24179postuninstall_cmds=$lt_postuninstall_cmds
24180
24181# Commands used to build a loadable module (assumed same as above if empty)
24182module_cmds=$lt_module_cmds_GCJ
24183module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24184
24185# Commands to strip libraries.
24186old_striplib=$lt_old_striplib
24187striplib=$lt_striplib
24188
24189# Dependencies to place before the objects being linked to create a
24190# shared library.
24191predep_objects=$lt_predep_objects_GCJ
24192
24193# Dependencies to place after the objects being linked to create a
24194# shared library.
24195postdep_objects=$lt_postdep_objects_GCJ
24196
24197# Dependencies to place before the objects being linked to create a
24198# shared library.
24199predeps=$lt_predeps_GCJ
24200
24201# Dependencies to place after the objects being linked to create a
24202# shared library.
24203postdeps=$lt_postdeps_GCJ
24204
24205# The library search path used internally by the compiler when linking
24206# a shared library.
24207compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24208
24209# Method to check whether dependent libraries are shared objects.
24210deplibs_check_method=$lt_deplibs_check_method
24211
24212# Command to use when deplibs_check_method == file_magic.
24213file_magic_cmd=$lt_file_magic_cmd
24214
24215# Flag that allows shared libraries with undefined symbols to be built.
24216allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24217
24218# Flag that forces no undefined symbols.
24219no_undefined_flag=$lt_no_undefined_flag_GCJ
24220
24221# Commands used to finish a libtool library installation in a directory.
24222finish_cmds=$lt_finish_cmds
24223
24224# Same as above, but a single script fragment to be evaled but not shown.
24225finish_eval=$lt_finish_eval
24226
24227# Take the output of nm and produce a listing of raw symbols and C names.
24228global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24229
24230# Transform the output of nm in a proper C declaration
24231global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24232
24233# Transform the output of nm in a C name address pair
24234global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24235
24236# This is the shared library runtime path variable.
24237runpath_var=$runpath_var
24238
24239# This is the shared library path variable.
24240shlibpath_var=$shlibpath_var
24241
24242# Is shlibpath searched before the hard-coded library search path?
24243shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24244
24245# How to hardcode a shared library path into an executable.
24246hardcode_action=$hardcode_action_GCJ
24247
24248# Whether we should hardcode library paths into libraries.
24249hardcode_into_libs=$hardcode_into_libs
24250
24251# Flag to hardcode \$libdir into a binary during linking.
24252# This must work even if \$libdir does not exist.
24253hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24254
24255# If ld is used when linking, flag to hardcode \$libdir into
24256# a binary during linking. This must work even if \$libdir does
24257# not exist.
24258hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24259
24260# Whether we need a single -rpath flag with a separated argument.
24261hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24262
24263# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24264# resulting binary.
24265hardcode_direct=$hardcode_direct_GCJ
24266
24267# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24268# resulting binary.
24269hardcode_minus_L=$hardcode_minus_L_GCJ
24270
24271# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24272# the resulting binary.
24273hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24274
24275# Set to yes if building a shared library automatically hardcodes DIR into the library
24276# and all subsequent libraries and executables linked against it.
24277hardcode_automatic=$hardcode_automatic_GCJ
24278
24279# Variables whose values should be saved in libtool wrapper scripts and
24280# restored at relink time.
24281variables_saved_for_relink="$variables_saved_for_relink"
24282
24283# Whether libtool must link a program against all its dependency libraries.
24284link_all_deplibs=$link_all_deplibs_GCJ
24285
24286# Compile-time system search path for libraries
24287sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24288
24289# Run-time system search path for libraries
24290sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24291
24292# Fix the shell variable \$srcfile for the compiler.
24293fix_srcfile_path="$fix_srcfile_path_GCJ"
24294
24295# Set to yes if exported symbols are required.
24296always_export_symbols=$always_export_symbols_GCJ
24297
24298# The commands to list exported symbols.
24299export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24300
24301# The commands to extract the exported symbol list from a shared archive.
24302extract_expsyms_cmds=$lt_extract_expsyms_cmds
24303
24304# Symbols that should not be listed in the preloaded symbols.
24305exclude_expsyms=$lt_exclude_expsyms_GCJ
24306
24307# Symbols that must always be exported.
24308include_expsyms=$lt_include_expsyms_GCJ
24309
24310# ### END LIBTOOL TAG CONFIG: $tagname
24311
24312__EOF__
24313
24314
24315else
24316 # If there is no Makefile yet, we rely on a make rule to execute
24317 # `config.status --recheck' to rerun these tests and create the
24318 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024319 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24320 if test -f "$ltmain_in"; then
24321 test -f Makefile && make "$ltmain"
24322 fi
John Criswell47fdd832003-07-14 16:52:07 +000024323fi
24324
24325
24326ac_ext=c
24327ac_cpp='$CPP $CPPFLAGS'
24328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24330ac_compiler_gnu=$ac_cv_c_compiler_gnu
24331
24332CC="$lt_save_CC"
24333
24334 else
24335 tagname=""
24336 fi
24337 ;;
24338
24339 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024340 ac_ext=c
24341ac_cpp='$CPP $CPPFLAGS'
24342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24344ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024345
24346
24347# Source file extension for RC test sources.
24348ac_ext=rc
24349
24350# Object file extension for compiled RC test sources.
24351objext=o
24352objext_RC=$objext
24353
24354# Code to be used in simple compile tests
24355lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24356
24357# Code to be used in simple link tests
24358lt_simple_link_test_code="$lt_simple_compile_test_code"
24359
24360# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24361
24362# If no C compiler was specified, use CC.
24363LTCC=${LTCC-"$CC"}
24364
24365# Allow CC to be a program name with arguments.
24366compiler=$CC
24367
24368
24369# Allow CC to be a program name with arguments.
24370lt_save_CC="$CC"
24371CC=${RC-"windres"}
24372compiler=$CC
24373compiler_RC=$CC
24374lt_cv_prog_compiler_c_o_RC=yes
24375
24376# The else clause should only fire when bootstrapping the
24377# libtool distribution, otherwise you forgot to ship ltmain.sh
24378# with your package, and you will get complaints that there are
24379# no rules to generate ltmain.sh.
24380if test -f "$ltmain"; then
24381 # See if we are running on zsh, and set the options which allow our commands through
24382 # without removal of \ escapes.
24383 if test -n "${ZSH_VERSION+set}" ; then
24384 setopt NO_GLOB_SUBST
24385 fi
24386 # Now quote all the things that may contain metacharacters while being
24387 # careful not to overquote the AC_SUBSTed values. We take copies of the
24388 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24390 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24393 deplibs_check_method reload_flag reload_cmds need_locks \
24394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24395 lt_cv_sys_global_symbol_to_c_name_address \
24396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24397 old_postinstall_cmds old_postuninstall_cmds \
24398 compiler_RC \
24399 CC_RC \
24400 LD_RC \
24401 lt_prog_compiler_wl_RC \
24402 lt_prog_compiler_pic_RC \
24403 lt_prog_compiler_static_RC \
24404 lt_prog_compiler_no_builtin_flag_RC \
24405 export_dynamic_flag_spec_RC \
24406 thread_safe_flag_spec_RC \
24407 whole_archive_flag_spec_RC \
24408 enable_shared_with_static_runtimes_RC \
24409 old_archive_cmds_RC \
24410 old_archive_from_new_cmds_RC \
24411 predep_objects_RC \
24412 postdep_objects_RC \
24413 predeps_RC \
24414 postdeps_RC \
24415 compiler_lib_search_path_RC \
24416 archive_cmds_RC \
24417 archive_expsym_cmds_RC \
24418 postinstall_cmds_RC \
24419 postuninstall_cmds_RC \
24420 old_archive_from_expsyms_cmds_RC \
24421 allow_undefined_flag_RC \
24422 no_undefined_flag_RC \
24423 export_symbols_cmds_RC \
24424 hardcode_libdir_flag_spec_RC \
24425 hardcode_libdir_flag_spec_ld_RC \
24426 hardcode_libdir_separator_RC \
24427 hardcode_automatic_RC \
24428 module_cmds_RC \
24429 module_expsym_cmds_RC \
24430 lt_cv_prog_compiler_c_o_RC \
24431 exclude_expsyms_RC \
24432 include_expsyms_RC; do
24433
24434 case $var in
24435 old_archive_cmds_RC | \
24436 old_archive_from_new_cmds_RC | \
24437 archive_cmds_RC | \
24438 archive_expsym_cmds_RC | \
24439 module_cmds_RC | \
24440 module_expsym_cmds_RC | \
24441 old_archive_from_expsyms_cmds_RC | \
24442 export_symbols_cmds_RC | \
24443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24444 postinstall_cmds | postuninstall_cmds | \
24445 old_postinstall_cmds | old_postuninstall_cmds | \
24446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24447 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024448 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 +000024449 ;;
24450 *)
24451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24452 ;;
24453 esac
24454 done
24455
24456 case $lt_echo in
24457 *'\$0 --fallback-echo"')
24458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24459 ;;
24460 esac
24461
24462cfgfile="$ofile"
24463
24464 cat <<__EOF__ >> "$cfgfile"
24465# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24466
24467# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24468
24469# Shell to use when invoking shell scripts.
24470SHELL=$lt_SHELL
24471
24472# Whether or not to build shared libraries.
24473build_libtool_libs=$enable_shared
24474
24475# Whether or not to build static libraries.
24476build_old_libs=$enable_static
24477
24478# Whether or not to add -lc for building shared libraries.
24479build_libtool_need_lc=$archive_cmds_need_lc_RC
24480
24481# Whether or not to disallow shared libs when runtime libs are static
24482allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24483
24484# Whether or not to optimize for fast installation.
24485fast_install=$enable_fast_install
24486
24487# The host system.
24488host_alias=$host_alias
24489host=$host
24490
24491# An echo program that does not interpret backslashes.
24492echo=$lt_echo
24493
24494# The archiver.
24495AR=$lt_AR
24496AR_FLAGS=$lt_AR_FLAGS
24497
24498# A C compiler.
24499LTCC=$lt_LTCC
24500
24501# A language-specific compiler.
24502CC=$lt_compiler_RC
24503
24504# Is the compiler the GNU C compiler?
24505with_gcc=$GCC_RC
24506
24507# An ERE matcher.
24508EGREP=$lt_EGREP
24509
24510# The linker used to build libraries.
24511LD=$lt_LD_RC
24512
24513# Whether we need hard or soft links.
24514LN_S=$lt_LN_S
24515
24516# A BSD-compatible nm program.
24517NM=$lt_NM
24518
24519# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024520STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024521
24522# Used to examine libraries when file_magic_cmd begins "file"
24523MAGIC_CMD=$MAGIC_CMD
24524
24525# Used on cygwin: DLL creation program.
24526DLLTOOL="$DLLTOOL"
24527
24528# Used on cygwin: object dumper.
24529OBJDUMP="$OBJDUMP"
24530
24531# Used on cygwin: assembler.
24532AS="$AS"
24533
24534# The name of the directory that contains temporary libtool files.
24535objdir=$objdir
24536
24537# How to create reloadable object files.
24538reload_flag=$lt_reload_flag
24539reload_cmds=$lt_reload_cmds
24540
24541# How to pass a linker flag through the compiler.
24542wl=$lt_lt_prog_compiler_wl_RC
24543
24544# Object file suffix (normally "o").
24545objext="$ac_objext"
24546
24547# Old archive suffix (normally "a").
24548libext="$libext"
24549
24550# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024551shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024552
24553# Executable file suffix (normally "").
24554exeext="$exeext"
24555
24556# Additional compiler flags for building library objects.
24557pic_flag=$lt_lt_prog_compiler_pic_RC
24558pic_mode=$pic_mode
24559
24560# What is the maximum length of a command?
24561max_cmd_len=$lt_cv_sys_max_cmd_len
24562
24563# Does compiler simultaneously support -c and -o options?
24564compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24565
24566# Must we lock files when doing compilation ?
24567need_locks=$lt_need_locks
24568
24569# Do we need the lib prefix for modules?
24570need_lib_prefix=$need_lib_prefix
24571
24572# Do we need a version for libraries?
24573need_version=$need_version
24574
24575# Whether dlopen is supported.
24576dlopen_support=$enable_dlopen
24577
24578# Whether dlopen of programs is supported.
24579dlopen_self=$enable_dlopen_self
24580
24581# Whether dlopen of statically linked programs is supported.
24582dlopen_self_static=$enable_dlopen_self_static
24583
24584# Compiler flag to prevent dynamic linking.
24585link_static_flag=$lt_lt_prog_compiler_static_RC
24586
24587# Compiler flag to turn off builtin functions.
24588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24589
24590# Compiler flag to allow reflexive dlopens.
24591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24592
24593# Compiler flag to generate shared objects directly from archives.
24594whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24595
24596# Compiler flag to generate thread-safe objects.
24597thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24598
24599# Library versioning type.
24600version_type=$version_type
24601
24602# Format of library name prefix.
24603libname_spec=$lt_libname_spec
24604
24605# List of archive names. First name is the real one, the rest are links.
24606# The last name is the one that the linker finds with -lNAME.
24607library_names_spec=$lt_library_names_spec
24608
24609# The coded name of the library, if different from the real name.
24610soname_spec=$lt_soname_spec
24611
24612# Commands used to build and install an old-style archive.
24613RANLIB=$lt_RANLIB
24614old_archive_cmds=$lt_old_archive_cmds_RC
24615old_postinstall_cmds=$lt_old_postinstall_cmds
24616old_postuninstall_cmds=$lt_old_postuninstall_cmds
24617
24618# Create an old-style archive from a shared archive.
24619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24620
24621# Create a temporary old-style archive to link instead of a shared archive.
24622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24623
24624# Commands used to build and install a shared archive.
24625archive_cmds=$lt_archive_cmds_RC
24626archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24627postinstall_cmds=$lt_postinstall_cmds
24628postuninstall_cmds=$lt_postuninstall_cmds
24629
24630# Commands used to build a loadable module (assumed same as above if empty)
24631module_cmds=$lt_module_cmds_RC
24632module_expsym_cmds=$lt_module_expsym_cmds_RC
24633
24634# Commands to strip libraries.
24635old_striplib=$lt_old_striplib
24636striplib=$lt_striplib
24637
24638# Dependencies to place before the objects being linked to create a
24639# shared library.
24640predep_objects=$lt_predep_objects_RC
24641
24642# Dependencies to place after the objects being linked to create a
24643# shared library.
24644postdep_objects=$lt_postdep_objects_RC
24645
24646# Dependencies to place before the objects being linked to create a
24647# shared library.
24648predeps=$lt_predeps_RC
24649
24650# Dependencies to place after the objects being linked to create a
24651# shared library.
24652postdeps=$lt_postdeps_RC
24653
24654# The library search path used internally by the compiler when linking
24655# a shared library.
24656compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24657
24658# Method to check whether dependent libraries are shared objects.
24659deplibs_check_method=$lt_deplibs_check_method
24660
24661# Command to use when deplibs_check_method == file_magic.
24662file_magic_cmd=$lt_file_magic_cmd
24663
24664# Flag that allows shared libraries with undefined symbols to be built.
24665allow_undefined_flag=$lt_allow_undefined_flag_RC
24666
24667# Flag that forces no undefined symbols.
24668no_undefined_flag=$lt_no_undefined_flag_RC
24669
24670# Commands used to finish a libtool library installation in a directory.
24671finish_cmds=$lt_finish_cmds
24672
24673# Same as above, but a single script fragment to be evaled but not shown.
24674finish_eval=$lt_finish_eval
24675
24676# Take the output of nm and produce a listing of raw symbols and C names.
24677global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24678
24679# Transform the output of nm in a proper C declaration
24680global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24681
24682# Transform the output of nm in a C name address pair
24683global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24684
24685# This is the shared library runtime path variable.
24686runpath_var=$runpath_var
24687
24688# This is the shared library path variable.
24689shlibpath_var=$shlibpath_var
24690
24691# Is shlibpath searched before the hard-coded library search path?
24692shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24693
24694# How to hardcode a shared library path into an executable.
24695hardcode_action=$hardcode_action_RC
24696
24697# Whether we should hardcode library paths into libraries.
24698hardcode_into_libs=$hardcode_into_libs
24699
24700# Flag to hardcode \$libdir into a binary during linking.
24701# This must work even if \$libdir does not exist.
24702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24703
24704# If ld is used when linking, flag to hardcode \$libdir into
24705# a binary during linking. This must work even if \$libdir does
24706# not exist.
24707hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24708
24709# Whether we need a single -rpath flag with a separated argument.
24710hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24711
24712# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24713# resulting binary.
24714hardcode_direct=$hardcode_direct_RC
24715
24716# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24717# resulting binary.
24718hardcode_minus_L=$hardcode_minus_L_RC
24719
24720# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24721# the resulting binary.
24722hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24723
24724# Set to yes if building a shared library automatically hardcodes DIR into the library
24725# and all subsequent libraries and executables linked against it.
24726hardcode_automatic=$hardcode_automatic_RC
24727
24728# Variables whose values should be saved in libtool wrapper scripts and
24729# restored at relink time.
24730variables_saved_for_relink="$variables_saved_for_relink"
24731
24732# Whether libtool must link a program against all its dependency libraries.
24733link_all_deplibs=$link_all_deplibs_RC
24734
24735# Compile-time system search path for libraries
24736sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24737
24738# Run-time system search path for libraries
24739sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24740
24741# Fix the shell variable \$srcfile for the compiler.
24742fix_srcfile_path="$fix_srcfile_path_RC"
24743
24744# Set to yes if exported symbols are required.
24745always_export_symbols=$always_export_symbols_RC
24746
24747# The commands to list exported symbols.
24748export_symbols_cmds=$lt_export_symbols_cmds_RC
24749
24750# The commands to extract the exported symbol list from a shared archive.
24751extract_expsyms_cmds=$lt_extract_expsyms_cmds
24752
24753# Symbols that should not be listed in the preloaded symbols.
24754exclude_expsyms=$lt_exclude_expsyms_RC
24755
24756# Symbols that must always be exported.
24757include_expsyms=$lt_include_expsyms_RC
24758
24759# ### END LIBTOOL TAG CONFIG: $tagname
24760
24761__EOF__
24762
24763
24764else
24765 # If there is no Makefile yet, we rely on a make rule to execute
24766 # `config.status --recheck' to rerun these tests and create the
24767 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24769 if test -f "$ltmain_in"; then
24770 test -f Makefile && make "$ltmain"
24771 fi
John Criswell47fdd832003-07-14 16:52:07 +000024772fi
24773
24774
24775ac_ext=c
24776ac_cpp='$CPP $CPPFLAGS'
24777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24779ac_compiler_gnu=$ac_cv_c_compiler_gnu
24780
24781CC="$lt_save_CC"
24782
24783 ;;
24784
24785 *)
24786 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24787echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24788 { (exit 1); exit 1; }; }
24789 ;;
24790 esac
24791
24792 # Append the new tag name to the list of available tags.
24793 if test -n "$tagname" ; then
24794 available_tags="$available_tags $tagname"
24795 fi
24796 fi
24797 done
24798 IFS="$lt_save_ifs"
24799
24800 # Now substitute the updated list of available tags.
24801 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24802 mv "${ofile}T" "$ofile"
24803 chmod +x "$ofile"
24804 else
24805 rm -f "${ofile}T"
24806 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24807echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24808 { (exit 1); exit 1; }; }
24809 fi
24810fi
John Criswell7a73b802003-06-30 21:59:07 +000024811
24812
24813
24814# This can be used to rebuild libtool when needed
24815LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24816
24817# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024818LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024819
24820# Prevent multiple expansion
24821
24822
24823
John Criswell47fdd832003-07-14 16:52:07 +000024824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024841
Reid Spencer582a23c2004-12-29 07:07:57 +000024842if test "$lt_cv_dlopen_self" = "yes" ; then
24843
24844cat >>confdefs.h <<\_ACEOF
24845#define CAN_DLOPEN_SELF 1
24846_ACEOF
24847
24848fi
24849
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024850etags_version=`$ETAGS --version 2>&1`
24851case "$etags_version" in
24852 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24853 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24854 *) ETAGSFLAGS="" ;;
24855esac
24856ETAGSFLAGS=$ETAGSFLAGS
24857
24858
Reid Spencer7931a782004-12-27 06:15:02 +000024859if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024860 LLVMGCC="llvm-gcc${EXEEXT}"
24861 LLVMGXX="llvm-g++${EXEEXT}"
24862 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24863set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024864echo "$as_me:$LINENO: checking for $ac_word" >&5
24865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24866if test "${ac_cv_path_LLVMGCC+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24868else
24869 case $LLVMGCC in
24870 [\\/]* | ?:[\\/]*)
24871 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24872 ;;
24873 *)
24874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24875for as_dir in $PATH
24876do
24877 IFS=$as_save_IFS
24878 test -z "$as_dir" && as_dir=.
24879 for ac_exec_ext in '' $ac_executable_extensions; do
24880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24881 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24883 break 2
24884 fi
24885done
24886done
24887
Reid Spencer59473af2004-12-25 07:31:29 +000024888 ;;
24889esac
24890fi
24891LLVMGCC=$ac_cv_path_LLVMGCC
24892
24893if test -n "$LLVMGCC"; then
24894 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24895echo "${ECHO_T}$LLVMGCC" >&6
24896else
24897 echo "$as_me:$LINENO: result: no" >&5
24898echo "${ECHO_T}no" >&6
24899fi
24900
Reid Spencerc84492c2005-06-02 22:34:49 +000024901 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24902set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024903echo "$as_me:$LINENO: checking for $ac_word" >&5
24904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24905if test "${ac_cv_path_LLVMGXX+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24907else
24908 case $LLVMGXX in
24909 [\\/]* | ?:[\\/]*)
24910 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24911 ;;
24912 *)
24913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24914for as_dir in $PATH
24915do
24916 IFS=$as_save_IFS
24917 test -z "$as_dir" && as_dir=.
24918 for ac_exec_ext in '' $ac_executable_extensions; do
24919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24920 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24922 break 2
24923 fi
24924done
24925done
24926
Reid Spencer59473af2004-12-25 07:31:29 +000024927 ;;
24928esac
24929fi
24930LLVMGXX=$ac_cv_path_LLVMGXX
24931
24932if test -n "$LLVMGXX"; then
24933 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24934echo "${ECHO_T}$LLVMGXX" >&6
24935else
24936 echo "$as_me:$LINENO: result: no" >&5
24937echo "${ECHO_T}no" >&6
24938fi
24939
24940else
Reid Spencerc84492c2005-06-02 22:34:49 +000024941 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24942 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024943 LLVMGCC=$LLVMGCC
24944
24945 LLVMGXX=$LLVMGXX
24946
24947fi
24948
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024949echo "$as_me:$LINENO: checking tool compatibility" >&5
24950echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24951
Reid Spencer86901802004-12-08 23:07:27 +000024952ICC=no
24953IXX=no
24954case $CC in
24955 icc*|icpc*)
24956 ICC=yes
24957 IXX=yes
24958 ;;
24959 *)
24960 ;;
24961esac
24962
Duraid Madina937c60a2006-02-15 07:57:42 +000024963if test "$GCC" != "yes" && test "$ICC" != "yes"
24964then
24965 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24966echo "$as_me: error: gcc|icc required but not found" >&2;}
24967 { (exit 1); exit 1; }; }
24968fi
24969
24970if test "$GXX" != "yes" && test "$IXX" != "yes"
24971then
24972 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24973echo "$as_me: error: g++|icc required but not found" >&2;}
24974 { (exit 1); exit 1; }; }
24975fi
24976
Reid Spencer86901802004-12-08 23:07:27 +000024977if test "$GCC" = "yes"
24978then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000024979 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000024980 if test "$gccmajor" -lt "3"
24981 then
24982 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024983echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24984 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024985 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024986fi
24987
24988if test -z "$llvm_cv_gnu_make_command"
24989then
24990 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24991echo "$as_me: error: GNU Make required but not found" >&2;}
24992 { (exit 1); exit 1; }; }
24993fi
24994
24995echo "$as_me:$LINENO: result: ok" >&5
24996echo "${ECHO_T}ok" >&6
24997
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024998
John Criswell7a73b802003-06-30 21:59:07 +000024999
John Criswell7a73b802003-06-30 21:59:07 +000025000echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25001echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25002if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25003 echo $ECHO_N "(cached) $ECHO_C" >&6
25004else
25005 ac_check_lib_save_LIBS=$LIBS
25006LIBS="-lelf $LIBS"
25007cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025008/* confdefs.h. */
25009_ACEOF
25010cat confdefs.h >>conftest.$ac_ext
25011cat >>conftest.$ac_ext <<_ACEOF
25012/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025013
25014/* Override any gcc2 internal prototype to avoid an error. */
25015#ifdef __cplusplus
25016extern "C"
25017#endif
25018/* We use char because int might match the return type of a gcc2
25019 builtin and then its argument prototype would still apply. */
25020char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025021int
25022main ()
25023{
25024elf_begin ();
25025 ;
25026 return 0;
25027}
25028_ACEOF
25029rm -f conftest.$ac_objext conftest$ac_exeext
25030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025031 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025032 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025033 grep -v '^ *+' conftest.er1 >conftest.err
25034 rm -f conftest.er1
25035 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025038 { ac_try='test -z "$ac_c_werror_flag"
25039 || test ! -s conftest.err'
25040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25041 (eval $ac_try) 2>&5
25042 ac_status=$?
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); }; } &&
25045 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25047 (eval $ac_try) 2>&5
25048 ac_status=$?
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); }; }; then
25051 ac_cv_lib_elf_elf_begin=yes
25052else
25053 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025054sed 's/^/| /' conftest.$ac_ext >&5
25055
John Criswell7a73b802003-06-30 21:59:07 +000025056ac_cv_lib_elf_elf_begin=no
25057fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025058rm -f conftest.err conftest.$ac_objext \
25059 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025060LIBS=$ac_check_lib_save_LIBS
25061fi
25062echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25063echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25064if test $ac_cv_lib_elf_elf_begin = yes; then
25065 cat >>confdefs.h <<_ACEOF
25066#define HAVE_LIBELF 1
25067_ACEOF
25068
25069 LIBS="-lelf $LIBS"
25070
25071fi
25072
25073
Reid Spencer3484a992006-01-19 08:31:08 +000025074echo "$as_me:$LINENO: checking for sin in -lm" >&5
25075echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25076if test "${ac_cv_lib_m_sin+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25078else
25079 ac_check_lib_save_LIBS=$LIBS
25080LIBS="-lm $LIBS"
25081cat >conftest.$ac_ext <<_ACEOF
25082/* confdefs.h. */
25083_ACEOF
25084cat confdefs.h >>conftest.$ac_ext
25085cat >>conftest.$ac_ext <<_ACEOF
25086/* end confdefs.h. */
25087
25088/* Override any gcc2 internal prototype to avoid an error. */
25089#ifdef __cplusplus
25090extern "C"
25091#endif
25092/* We use char because int might match the return type of a gcc2
25093 builtin and then its argument prototype would still apply. */
25094char sin ();
25095int
25096main ()
25097{
25098sin ();
25099 ;
25100 return 0;
25101}
25102_ACEOF
25103rm -f conftest.$ac_objext conftest$ac_exeext
25104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25105 (eval $ac_link) 2>conftest.er1
25106 ac_status=$?
25107 grep -v '^ *+' conftest.er1 >conftest.err
25108 rm -f conftest.er1
25109 cat conftest.err >&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } &&
25112 { ac_try='test -z "$ac_c_werror_flag"
25113 || test ! -s conftest.err'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25116 ac_status=$?
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; } &&
25119 { ac_try='test -s conftest$ac_exeext'
25120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25122 ac_status=$?
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; }; then
25125 ac_cv_lib_m_sin=yes
25126else
25127 echo "$as_me: failed program was:" >&5
25128sed 's/^/| /' conftest.$ac_ext >&5
25129
25130ac_cv_lib_m_sin=no
25131fi
25132rm -f conftest.err conftest.$ac_objext \
25133 conftest$ac_exeext conftest.$ac_ext
25134LIBS=$ac_check_lib_save_LIBS
25135fi
25136echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25137echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25138if test $ac_cv_lib_m_sin = yes; then
25139 cat >>confdefs.h <<_ACEOF
25140#define HAVE_LIBM 1
25141_ACEOF
25142
25143 LIBS="-lm $LIBS"
25144
25145fi
25146
Reid Spencer22177fe2005-07-12 15:24:20 +000025147
Reid Spencer17795972004-11-18 09:47:37 +000025148echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25149echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25150if test "${ac_cv_search_lt_dlopen+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25152else
25153 ac_func_search_save_LIBS=$LIBS
25154ac_cv_search_lt_dlopen=no
25155cat >conftest.$ac_ext <<_ACEOF
25156/* confdefs.h. */
25157_ACEOF
25158cat confdefs.h >>conftest.$ac_ext
25159cat >>conftest.$ac_ext <<_ACEOF
25160/* end confdefs.h. */
25161
25162/* Override any gcc2 internal prototype to avoid an error. */
25163#ifdef __cplusplus
25164extern "C"
25165#endif
25166/* We use char because int might match the return type of a gcc2
25167 builtin and then its argument prototype would still apply. */
25168char lt_dlopen ();
25169int
25170main ()
25171{
25172lt_dlopen ();
25173 ;
25174 return 0;
25175}
25176_ACEOF
25177rm -f conftest.$ac_objext conftest$ac_exeext
25178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25179 (eval $ac_link) 2>conftest.er1
25180 ac_status=$?
25181 grep -v '^ *+' conftest.er1 >conftest.err
25182 rm -f conftest.er1
25183 cat conftest.err >&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } &&
25186 { ac_try='test -z "$ac_c_werror_flag"
25187 || test ! -s conftest.err'
25188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189 (eval $ac_try) 2>&5
25190 ac_status=$?
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; } &&
25193 { ac_try='test -s conftest$ac_exeext'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25199 ac_cv_search_lt_dlopen="none required"
25200else
25201 echo "$as_me: failed program was:" >&5
25202sed 's/^/| /' conftest.$ac_ext >&5
25203
25204fi
25205rm -f conftest.err conftest.$ac_objext \
25206 conftest$ac_exeext conftest.$ac_ext
25207if test "$ac_cv_search_lt_dlopen" = no; then
25208 for ac_lib in ltdl; do
25209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25210 cat >conftest.$ac_ext <<_ACEOF
25211/* confdefs.h. */
25212_ACEOF
25213cat confdefs.h >>conftest.$ac_ext
25214cat >>conftest.$ac_ext <<_ACEOF
25215/* end confdefs.h. */
25216
25217/* Override any gcc2 internal prototype to avoid an error. */
25218#ifdef __cplusplus
25219extern "C"
25220#endif
25221/* We use char because int might match the return type of a gcc2
25222 builtin and then its argument prototype would still apply. */
25223char lt_dlopen ();
25224int
25225main ()
25226{
25227lt_dlopen ();
25228 ;
25229 return 0;
25230}
25231_ACEOF
25232rm -f conftest.$ac_objext conftest$ac_exeext
25233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25234 (eval $ac_link) 2>conftest.er1
25235 ac_status=$?
25236 grep -v '^ *+' conftest.er1 >conftest.err
25237 rm -f conftest.er1
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } &&
25241 { ac_try='test -z "$ac_c_werror_flag"
25242 || test ! -s conftest.err'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25245 ac_status=$?
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; } &&
25248 { ac_try='test -s conftest$ac_exeext'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; }; then
25254 ac_cv_search_lt_dlopen="-l$ac_lib"
25255break
25256else
25257 echo "$as_me: failed program was:" >&5
25258sed 's/^/| /' conftest.$ac_ext >&5
25259
25260fi
25261rm -f conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
25263 done
25264fi
25265LIBS=$ac_func_search_save_LIBS
25266fi
25267echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25268echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25269if test "$ac_cv_search_lt_dlopen" != no; then
25270 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25271
25272cat >>confdefs.h <<\_ACEOF
25273#define HAVE_LT_DLOPEN 1
25274_ACEOF
25275
25276else
25277 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25278 not be available" >&5
25279echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25280 not be available" >&2;}
25281fi
25282
25283
John Criswell7a73b802003-06-30 21:59:07 +000025284echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25285echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25286if test "${ac_cv_search_dlopen+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25288else
25289 ac_func_search_save_LIBS=$LIBS
25290ac_cv_search_dlopen=no
25291cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025292/* confdefs.h. */
25293_ACEOF
25294cat confdefs.h >>conftest.$ac_ext
25295cat >>conftest.$ac_ext <<_ACEOF
25296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025297
25298/* Override any gcc2 internal prototype to avoid an error. */
25299#ifdef __cplusplus
25300extern "C"
25301#endif
25302/* We use char because int might match the return type of a gcc2
25303 builtin and then its argument prototype would still apply. */
25304char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025305int
25306main ()
25307{
25308dlopen ();
25309 ;
25310 return 0;
25311}
25312_ACEOF
25313rm -f conftest.$ac_objext conftest$ac_exeext
25314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025315 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025317 grep -v '^ *+' conftest.er1 >conftest.err
25318 rm -f conftest.er1
25319 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025322 { ac_try='test -z "$ac_c_werror_flag"
25323 || test ! -s conftest.err'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; } &&
25329 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331 (eval $ac_try) 2>&5
25332 ac_status=$?
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; }; then
25335 ac_cv_search_dlopen="none required"
25336else
25337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025338sed 's/^/| /' conftest.$ac_ext >&5
25339
John Criswell7a73b802003-06-30 21:59:07 +000025340fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025341rm -f conftest.err conftest.$ac_objext \
25342 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025343if test "$ac_cv_search_dlopen" = no; then
25344 for ac_lib in dl; do
25345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25346 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025347/* confdefs.h. */
25348_ACEOF
25349cat confdefs.h >>conftest.$ac_ext
25350cat >>conftest.$ac_ext <<_ACEOF
25351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025352
25353/* Override any gcc2 internal prototype to avoid an error. */
25354#ifdef __cplusplus
25355extern "C"
25356#endif
25357/* We use char because int might match the return type of a gcc2
25358 builtin and then its argument prototype would still apply. */
25359char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025360int
25361main ()
25362{
25363dlopen ();
25364 ;
25365 return 0;
25366}
25367_ACEOF
25368rm -f conftest.$ac_objext conftest$ac_exeext
25369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025370 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025372 grep -v '^ *+' conftest.er1 >conftest.err
25373 rm -f conftest.er1
25374 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025377 { ac_try='test -z "$ac_c_werror_flag"
25378 || test ! -s conftest.err'
25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380 (eval $ac_try) 2>&5
25381 ac_status=$?
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; } &&
25384 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025385 { (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 ac_cv_search_dlopen="-l$ac_lib"
25391break
25392else
25393 echo "$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 +000025396fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025397rm -f conftest.err conftest.$ac_objext \
25398 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025399 done
25400fi
25401LIBS=$ac_func_search_save_LIBS
25402fi
25403echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25404echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25405if test "$ac_cv_search_dlopen" != no; then
25406 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025407
25408cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025409#define HAVE_DLOPEN 1
25410_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025411
25412else
Brian Gaekec45be042003-10-07 06:01:34 +000025413 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25414echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025415fi
25416
25417
25418echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25419echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25420if test "${ac_cv_search_mallinfo+set}" = set; then
25421 echo $ECHO_N "(cached) $ECHO_C" >&6
25422else
25423 ac_func_search_save_LIBS=$LIBS
25424ac_cv_search_mallinfo=no
25425cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025426/* confdefs.h. */
25427_ACEOF
25428cat confdefs.h >>conftest.$ac_ext
25429cat >>conftest.$ac_ext <<_ACEOF
25430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025431
25432/* Override any gcc2 internal prototype to avoid an error. */
25433#ifdef __cplusplus
25434extern "C"
25435#endif
25436/* We use char because int might match the return type of a gcc2
25437 builtin and then its argument prototype would still apply. */
25438char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025439int
25440main ()
25441{
25442mallinfo ();
25443 ;
25444 return 0;
25445}
25446_ACEOF
25447rm -f conftest.$ac_objext conftest$ac_exeext
25448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025449 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025450 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025456 { ac_try='test -z "$ac_c_werror_flag"
25457 || test ! -s conftest.err'
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; } &&
25463 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25466 ac_status=$?
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
25469 ac_cv_search_mallinfo="none required"
25470else
25471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025472sed 's/^/| /' conftest.$ac_ext >&5
25473
John Criswell7a73b802003-06-30 21:59:07 +000025474fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025475rm -f conftest.err conftest.$ac_objext \
25476 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025477if test "$ac_cv_search_mallinfo" = no; then
25478 for ac_lib in malloc; do
25479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25480 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025481/* confdefs.h. */
25482_ACEOF
25483cat confdefs.h >>conftest.$ac_ext
25484cat >>conftest.$ac_ext <<_ACEOF
25485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025486
25487/* Override any gcc2 internal prototype to avoid an error. */
25488#ifdef __cplusplus
25489extern "C"
25490#endif
25491/* We use char because int might match the return type of a gcc2
25492 builtin and then its argument prototype would still apply. */
25493char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025494int
25495main ()
25496{
25497mallinfo ();
25498 ;
25499 return 0;
25500}
25501_ACEOF
25502rm -f conftest.$ac_objext conftest$ac_exeext
25503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025504 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025505 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025506 grep -v '^ *+' conftest.er1 >conftest.err
25507 rm -f conftest.er1
25508 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025511 { ac_try='test -z "$ac_c_werror_flag"
25512 || test ! -s conftest.err'
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25515 ac_status=$?
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; } &&
25518 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; }; then
25524 ac_cv_search_mallinfo="-l$ac_lib"
25525break
25526else
25527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025528sed 's/^/| /' conftest.$ac_ext >&5
25529
John Criswell7a73b802003-06-30 21:59:07 +000025530fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025531rm -f conftest.err conftest.$ac_objext \
25532 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025533 done
25534fi
25535LIBS=$ac_func_search_save_LIBS
25536fi
25537echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25538echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25539if test "$ac_cv_search_mallinfo" != no; then
25540 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025541
25542cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025543#define HAVE_MALLINFO 1
25544_ACEOF
25545
25546fi
25547
25548
Reid Spencer0a262ba2005-08-24 10:07:20 +000025549if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025550
25551echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25552echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25553if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
25555else
25556 ac_check_lib_save_LIBS=$LIBS
25557LIBS="-lpthread $LIBS"
25558cat >conftest.$ac_ext <<_ACEOF
25559/* confdefs.h. */
25560_ACEOF
25561cat confdefs.h >>conftest.$ac_ext
25562cat >>conftest.$ac_ext <<_ACEOF
25563/* end confdefs.h. */
25564
25565/* Override any gcc2 internal prototype to avoid an error. */
25566#ifdef __cplusplus
25567extern "C"
25568#endif
25569/* We use char because int might match the return type of a gcc2
25570 builtin and then its argument prototype would still apply. */
25571char pthread_mutex_init ();
25572int
25573main ()
25574{
25575pthread_mutex_init ();
25576 ;
25577 return 0;
25578}
25579_ACEOF
25580rm -f conftest.$ac_objext conftest$ac_exeext
25581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25582 (eval $ac_link) 2>conftest.er1
25583 ac_status=$?
25584 grep -v '^ *+' conftest.er1 >conftest.err
25585 rm -f conftest.er1
25586 cat conftest.err >&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } &&
25589 { ac_try='test -z "$ac_c_werror_flag"
25590 || test ! -s conftest.err'
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; } &&
25596 { ac_try='test -s conftest$ac_exeext'
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
25602 ac_cv_lib_pthread_pthread_mutex_init=yes
25603else
25604 echo "$as_me: failed program was:" >&5
25605sed 's/^/| /' conftest.$ac_ext >&5
25606
25607ac_cv_lib_pthread_pthread_mutex_init=no
25608fi
25609rm -f conftest.err conftest.$ac_objext \
25610 conftest$ac_exeext conftest.$ac_ext
25611LIBS=$ac_check_lib_save_LIBS
25612fi
25613echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25614echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25615if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25616 cat >>confdefs.h <<_ACEOF
25617#define HAVE_LIBPTHREAD 1
25618_ACEOF
25619
25620 LIBS="-lpthread $LIBS"
25621
25622fi
25623
Reid Spencer0a262ba2005-08-24 10:07:20 +000025624 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025625echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25626if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25627 echo $ECHO_N "(cached) $ECHO_C" >&6
25628else
25629 ac_func_search_save_LIBS=$LIBS
25630ac_cv_search_pthread_mutex_lock=no
25631cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025632/* confdefs.h. */
25633_ACEOF
25634cat confdefs.h >>conftest.$ac_ext
25635cat >>conftest.$ac_ext <<_ACEOF
25636/* end confdefs.h. */
25637
25638/* Override any gcc2 internal prototype to avoid an error. */
25639#ifdef __cplusplus
25640extern "C"
25641#endif
25642/* We use char because int might match the return type of a gcc2
25643 builtin and then its argument prototype would still apply. */
25644char pthread_mutex_lock ();
25645int
25646main ()
25647{
25648pthread_mutex_lock ();
25649 ;
25650 return 0;
25651}
25652_ACEOF
25653rm -f conftest.$ac_objext conftest$ac_exeext
25654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025655 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025656 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025657 grep -v '^ *+' conftest.er1 >conftest.err
25658 rm -f conftest.er1
25659 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025662 { ac_try='test -z "$ac_c_werror_flag"
25663 || test ! -s conftest.err'
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; } &&
25669 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); }; }; then
25675 ac_cv_search_pthread_mutex_lock="none required"
25676else
25677 echo "$as_me: failed program was:" >&5
25678sed 's/^/| /' conftest.$ac_ext >&5
25679
25680fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025681rm -f conftest.err conftest.$ac_objext \
25682 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025683if test "$ac_cv_search_pthread_mutex_lock" = no; then
25684 for ac_lib in pthread; do
25685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25686 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025687/* confdefs.h. */
25688_ACEOF
25689cat confdefs.h >>conftest.$ac_ext
25690cat >>conftest.$ac_ext <<_ACEOF
25691/* end confdefs.h. */
25692
25693/* Override any gcc2 internal prototype to avoid an error. */
25694#ifdef __cplusplus
25695extern "C"
25696#endif
25697/* We use char because int might match the return type of a gcc2
25698 builtin and then its argument prototype would still apply. */
25699char pthread_mutex_lock ();
25700int
25701main ()
25702{
25703pthread_mutex_lock ();
25704 ;
25705 return 0;
25706}
25707_ACEOF
25708rm -f conftest.$ac_objext conftest$ac_exeext
25709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025710 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025712 grep -v '^ *+' conftest.er1 >conftest.err
25713 rm -f conftest.er1
25714 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025717 { ac_try='test -z "$ac_c_werror_flag"
25718 || test ! -s conftest.err'
25719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720 (eval $ac_try) 2>&5
25721 ac_status=$?
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; } &&
25724 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); }; }; then
25730 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25731break
25732else
25733 echo "$as_me: failed program was:" >&5
25734sed 's/^/| /' conftest.$ac_ext >&5
25735
25736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025737rm -f conftest.err conftest.$ac_objext \
25738 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025739 done
25740fi
25741LIBS=$ac_func_search_save_LIBS
25742fi
25743echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25744echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25745if test "$ac_cv_search_pthread_mutex_lock" != no; then
25746 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025747
John Criswell40468462004-09-24 21:19:06 +000025748cat >>confdefs.h <<\_ACEOF
25749#define HAVE_PTHREAD_MUTEX_LOCK 1
25750_ACEOF
25751
25752fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025753
Reid Spencer0a262ba2005-08-24 10:07:20 +000025754fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025755
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025756
Reid Spencer59473af2004-12-25 07:31:29 +000025757
25758
25759
25760
25761
25762ac_header_dirent=no
25763for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25764 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25765echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25766echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25767if eval "test \"\${$as_ac_Header+set}\" = set"; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25769else
25770 cat >conftest.$ac_ext <<_ACEOF
25771/* confdefs.h. */
25772_ACEOF
25773cat confdefs.h >>conftest.$ac_ext
25774cat >>conftest.$ac_ext <<_ACEOF
25775/* end confdefs.h. */
25776#include <sys/types.h>
25777#include <$ac_hdr>
25778
25779int
25780main ()
25781{
25782if ((DIR *) 0)
25783return 0;
25784 ;
25785 return 0;
25786}
25787_ACEOF
25788rm -f conftest.$ac_objext
25789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25790 (eval $ac_compile) 2>conftest.er1
25791 ac_status=$?
25792 grep -v '^ *+' conftest.er1 >conftest.err
25793 rm -f conftest.er1
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } &&
25797 { ac_try='test -z "$ac_c_werror_flag"
25798 || test ! -s conftest.err'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; } &&
25804 { ac_try='test -s conftest.$ac_objext'
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25807 ac_status=$?
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; }; then
25810 eval "$as_ac_Header=yes"
25811else
25812 echo "$as_me: failed program was:" >&5
25813sed 's/^/| /' conftest.$ac_ext >&5
25814
25815eval "$as_ac_Header=no"
25816fi
25817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25818fi
25819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25821if test `eval echo '${'$as_ac_Header'}'` = yes; then
25822 cat >>confdefs.h <<_ACEOF
25823#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25824_ACEOF
25825
25826ac_header_dirent=$ac_hdr; break
25827fi
25828
25829done
25830# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25831if test $ac_header_dirent = dirent.h; then
25832 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25833echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25834if test "${ac_cv_search_opendir+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25836else
25837 ac_func_search_save_LIBS=$LIBS
25838ac_cv_search_opendir=no
25839cat >conftest.$ac_ext <<_ACEOF
25840/* confdefs.h. */
25841_ACEOF
25842cat confdefs.h >>conftest.$ac_ext
25843cat >>conftest.$ac_ext <<_ACEOF
25844/* end confdefs.h. */
25845
25846/* Override any gcc2 internal prototype to avoid an error. */
25847#ifdef __cplusplus
25848extern "C"
25849#endif
25850/* We use char because int might match the return type of a gcc2
25851 builtin and then its argument prototype would still apply. */
25852char opendir ();
25853int
25854main ()
25855{
25856opendir ();
25857 ;
25858 return 0;
25859}
25860_ACEOF
25861rm -f conftest.$ac_objext conftest$ac_exeext
25862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25863 (eval $ac_link) 2>conftest.er1
25864 ac_status=$?
25865 grep -v '^ *+' conftest.er1 >conftest.err
25866 rm -f conftest.er1
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } &&
25870 { ac_try='test -z "$ac_c_werror_flag"
25871 || test ! -s conftest.err'
25872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25873 (eval $ac_try) 2>&5
25874 ac_status=$?
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); }; } &&
25877 { ac_try='test -s conftest$ac_exeext'
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; }; then
25883 ac_cv_search_opendir="none required"
25884else
25885 echo "$as_me: failed program was:" >&5
25886sed 's/^/| /' conftest.$ac_ext >&5
25887
25888fi
25889rm -f conftest.err conftest.$ac_objext \
25890 conftest$ac_exeext conftest.$ac_ext
25891if test "$ac_cv_search_opendir" = no; then
25892 for ac_lib in dir; do
25893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25894 cat >conftest.$ac_ext <<_ACEOF
25895/* confdefs.h. */
25896_ACEOF
25897cat confdefs.h >>conftest.$ac_ext
25898cat >>conftest.$ac_ext <<_ACEOF
25899/* end confdefs.h. */
25900
25901/* Override any gcc2 internal prototype to avoid an error. */
25902#ifdef __cplusplus
25903extern "C"
25904#endif
25905/* We use char because int might match the return type of a gcc2
25906 builtin and then its argument prototype would still apply. */
25907char opendir ();
25908int
25909main ()
25910{
25911opendir ();
25912 ;
25913 return 0;
25914}
25915_ACEOF
25916rm -f conftest.$ac_objext conftest$ac_exeext
25917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25918 (eval $ac_link) 2>conftest.er1
25919 ac_status=$?
25920 grep -v '^ *+' conftest.er1 >conftest.err
25921 rm -f conftest.er1
25922 cat conftest.err >&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); } &&
25925 { ac_try='test -z "$ac_c_werror_flag"
25926 || test ! -s conftest.err'
25927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928 (eval $ac_try) 2>&5
25929 ac_status=$?
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); }; } &&
25932 { ac_try='test -s conftest$ac_exeext'
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; }; then
25938 ac_cv_search_opendir="-l$ac_lib"
25939break
25940else
25941 echo "$as_me: failed program was:" >&5
25942sed 's/^/| /' conftest.$ac_ext >&5
25943
25944fi
25945rm -f conftest.err conftest.$ac_objext \
25946 conftest$ac_exeext conftest.$ac_ext
25947 done
25948fi
25949LIBS=$ac_func_search_save_LIBS
25950fi
25951echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25952echo "${ECHO_T}$ac_cv_search_opendir" >&6
25953if test "$ac_cv_search_opendir" != no; then
25954 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25955
25956fi
25957
25958else
25959 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25960echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25961if test "${ac_cv_search_opendir+set}" = set; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
25963else
25964 ac_func_search_save_LIBS=$LIBS
25965ac_cv_search_opendir=no
25966cat >conftest.$ac_ext <<_ACEOF
25967/* confdefs.h. */
25968_ACEOF
25969cat confdefs.h >>conftest.$ac_ext
25970cat >>conftest.$ac_ext <<_ACEOF
25971/* end confdefs.h. */
25972
25973/* Override any gcc2 internal prototype to avoid an error. */
25974#ifdef __cplusplus
25975extern "C"
25976#endif
25977/* We use char because int might match the return type of a gcc2
25978 builtin and then its argument prototype would still apply. */
25979char opendir ();
25980int
25981main ()
25982{
25983opendir ();
25984 ;
25985 return 0;
25986}
25987_ACEOF
25988rm -f conftest.$ac_objext conftest$ac_exeext
25989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25990 (eval $ac_link) 2>conftest.er1
25991 ac_status=$?
25992 grep -v '^ *+' conftest.er1 >conftest.err
25993 rm -f conftest.er1
25994 cat conftest.err >&5
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); } &&
25997 { ac_try='test -z "$ac_c_werror_flag"
25998 || test ! -s conftest.err'
25999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; } &&
26004 { ac_try='test -s conftest$ac_exeext'
26005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26006 (eval $ac_try) 2>&5
26007 ac_status=$?
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); }; }; then
26010 ac_cv_search_opendir="none required"
26011else
26012 echo "$as_me: failed program was:" >&5
26013sed 's/^/| /' conftest.$ac_ext >&5
26014
26015fi
26016rm -f conftest.err conftest.$ac_objext \
26017 conftest$ac_exeext conftest.$ac_ext
26018if test "$ac_cv_search_opendir" = no; then
26019 for ac_lib in x; do
26020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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
26028/* Override any gcc2 internal prototype to avoid an error. */
26029#ifdef __cplusplus
26030extern "C"
26031#endif
26032/* We use char because int might match the return type of a gcc2
26033 builtin and then its argument prototype would still apply. */
26034char opendir ();
26035int
26036main ()
26037{
26038opendir ();
26039 ;
26040 return 0;
26041}
26042_ACEOF
26043rm -f conftest.$ac_objext conftest$ac_exeext
26044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26045 (eval $ac_link) 2>conftest.er1
26046 ac_status=$?
26047 grep -v '^ *+' conftest.er1 >conftest.err
26048 rm -f conftest.er1
26049 cat conftest.err >&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } &&
26052 { ac_try='test -z "$ac_c_werror_flag"
26053 || test ! -s conftest.err'
26054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055 (eval $ac_try) 2>&5
26056 ac_status=$?
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); }; } &&
26059 { ac_try='test -s conftest$ac_exeext'
26060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); }; }; then
26065 ac_cv_search_opendir="-l$ac_lib"
26066break
26067else
26068 echo "$as_me: failed program was:" >&5
26069sed 's/^/| /' conftest.$ac_ext >&5
26070
26071fi
26072rm -f conftest.err conftest.$ac_objext \
26073 conftest$ac_exeext conftest.$ac_ext
26074 done
26075fi
26076LIBS=$ac_func_search_save_LIBS
26077fi
26078echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26079echo "${ECHO_T}$ac_cv_search_opendir" >&6
26080if test "$ac_cv_search_opendir" != no; then
26081 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26082
26083fi
26084
26085fi
26086
26087echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26088echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26089if test "${ac_cv_header_mmap_anon+set}" = set; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26091else
26092 ac_ext=c
26093ac_cpp='$CPP $CPPFLAGS'
26094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26096ac_compiler_gnu=$ac_cv_c_compiler_gnu
26097
26098 cat >conftest.$ac_ext <<_ACEOF
26099/* confdefs.h. */
26100_ACEOF
26101cat confdefs.h >>conftest.$ac_ext
26102cat >>conftest.$ac_ext <<_ACEOF
26103/* end confdefs.h. */
26104#include <sys/mman.h>
26105#include <unistd.h>
26106#include <fcntl.h>
26107int
26108main ()
26109{
26110mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26111 ;
26112 return 0;
26113}
26114_ACEOF
26115rm -f conftest.$ac_objext
26116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26117 (eval $ac_compile) 2>conftest.er1
26118 ac_status=$?
26119 grep -v '^ *+' conftest.er1 >conftest.err
26120 rm -f conftest.er1
26121 cat conftest.err >&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
26124 { ac_try='test -z "$ac_c_werror_flag"
26125 || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest.$ac_objext'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 ac_cv_header_mmap_anon=yes
26138else
26139 echo "$as_me: failed program was:" >&5
26140sed 's/^/| /' conftest.$ac_ext >&5
26141
26142ac_cv_header_mmap_anon=no
26143fi
26144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26145 ac_ext=c
26146ac_cpp='$CPP $CPPFLAGS'
26147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26149ac_compiler_gnu=$ac_cv_c_compiler_gnu
26150
26151
26152fi
26153echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26154echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26155if test "$ac_cv_header_mmap_anon" = yes; then
26156
26157cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026158#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026159_ACEOF
26160
26161fi
26162
26163echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26164echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26165if test "${ac_cv_header_stat_broken+set}" = set; then
26166 echo $ECHO_N "(cached) $ECHO_C" >&6
26167else
26168 cat >conftest.$ac_ext <<_ACEOF
26169/* confdefs.h. */
26170_ACEOF
26171cat confdefs.h >>conftest.$ac_ext
26172cat >>conftest.$ac_ext <<_ACEOF
26173/* end confdefs.h. */
26174#include <sys/types.h>
26175#include <sys/stat.h>
26176
26177#if defined(S_ISBLK) && defined(S_IFDIR)
26178# if S_ISBLK (S_IFDIR)
26179You lose.
26180# endif
26181#endif
26182
26183#if defined(S_ISBLK) && defined(S_IFCHR)
26184# if S_ISBLK (S_IFCHR)
26185You lose.
26186# endif
26187#endif
26188
26189#if defined(S_ISLNK) && defined(S_IFREG)
26190# if S_ISLNK (S_IFREG)
26191You lose.
26192# endif
26193#endif
26194
26195#if defined(S_ISSOCK) && defined(S_IFREG)
26196# if S_ISSOCK (S_IFREG)
26197You lose.
26198# endif
26199#endif
26200
26201_ACEOF
26202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26203 $EGREP "You lose" >/dev/null 2>&1; then
26204 ac_cv_header_stat_broken=yes
26205else
26206 ac_cv_header_stat_broken=no
26207fi
26208rm -f conftest*
26209
26210fi
26211echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26212echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26213if test $ac_cv_header_stat_broken = yes; then
26214
26215cat >>confdefs.h <<\_ACEOF
26216#define STAT_MACROS_BROKEN 1
26217_ACEOF
26218
26219fi
26220
John Criswell7a73b802003-06-30 21:59:07 +000026221echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26222echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26223if test "${ac_cv_header_stdc+set}" = set; then
26224 echo $ECHO_N "(cached) $ECHO_C" >&6
26225else
26226 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026227/* confdefs.h. */
26228_ACEOF
26229cat confdefs.h >>conftest.$ac_ext
26230cat >>conftest.$ac_ext <<_ACEOF
26231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026232#include <stdlib.h>
26233#include <stdarg.h>
26234#include <string.h>
26235#include <float.h>
26236
John Criswell0c38eaf2003-09-10 15:17:25 +000026237int
26238main ()
26239{
26240
26241 ;
26242 return 0;
26243}
John Criswell7a73b802003-06-30 21:59:07 +000026244_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026245rm -f conftest.$ac_objext
26246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026248 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026249 grep -v '^ *+' conftest.er1 >conftest.err
26250 rm -f conftest.er1
26251 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026253 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026254 { ac_try='test -z "$ac_c_werror_flag"
26255 || test ! -s conftest.err'
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; } &&
26261 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026267 ac_cv_header_stdc=yes
26268else
26269 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026270sed 's/^/| /' conftest.$ac_ext >&5
26271
26272ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026273fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026275
26276if test $ac_cv_header_stdc = yes; then
26277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26278 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026279/* confdefs.h. */
26280_ACEOF
26281cat confdefs.h >>conftest.$ac_ext
26282cat >>conftest.$ac_ext <<_ACEOF
26283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026284#include <string.h>
26285
26286_ACEOF
26287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026288 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026289 :
26290else
26291 ac_cv_header_stdc=no
26292fi
26293rm -f conftest*
26294
26295fi
26296
26297if test $ac_cv_header_stdc = yes; then
26298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026300/* confdefs.h. */
26301_ACEOF
26302cat confdefs.h >>conftest.$ac_ext
26303cat >>conftest.$ac_ext <<_ACEOF
26304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026305#include <stdlib.h>
26306
26307_ACEOF
26308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026309 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026310 :
26311else
26312 ac_cv_header_stdc=no
26313fi
26314rm -f conftest*
26315
26316fi
26317
26318if test $ac_cv_header_stdc = yes; then
26319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26320 if test "$cross_compiling" = yes; then
26321 :
26322else
26323 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026324/* confdefs.h. */
26325_ACEOF
26326cat confdefs.h >>conftest.$ac_ext
26327cat >>conftest.$ac_ext <<_ACEOF
26328/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026329#include <ctype.h>
26330#if ((' ' & 0x0FF) == 0x020)
26331# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26332# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26333#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026334# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026335 (('a' <= (c) && (c) <= 'i') \
26336 || ('j' <= (c) && (c) <= 'r') \
26337 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026338# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26339#endif
26340
26341#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26342int
26343main ()
26344{
26345 int i;
26346 for (i = 0; i < 256; i++)
26347 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026348 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026349 exit(2);
26350 exit (0);
26351}
26352_ACEOF
26353rm -f conftest$ac_exeext
26354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26355 (eval $ac_link) 2>&5
26356 ac_status=$?
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26360 (eval $ac_try) 2>&5
26361 ac_status=$?
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; }; then
26364 :
26365else
26366 echo "$as_me: program exited with status $ac_status" >&5
26367echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026368sed 's/^/| /' conftest.$ac_ext >&5
26369
John Criswell7a73b802003-06-30 21:59:07 +000026370( exit $ac_status )
26371ac_cv_header_stdc=no
26372fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026374fi
26375fi
26376fi
26377echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26378echo "${ECHO_T}$ac_cv_header_stdc" >&6
26379if test $ac_cv_header_stdc = yes; then
26380
26381cat >>confdefs.h <<\_ACEOF
26382#define STDC_HEADERS 1
26383_ACEOF
26384
26385fi
26386
26387echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26388echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26389if test "${ac_cv_header_sys_wait_h+set}" = set; then
26390 echo $ECHO_N "(cached) $ECHO_C" >&6
26391else
26392 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026393/* confdefs.h. */
26394_ACEOF
26395cat confdefs.h >>conftest.$ac_ext
26396cat >>conftest.$ac_ext <<_ACEOF
26397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026398#include <sys/types.h>
26399#include <sys/wait.h>
26400#ifndef WEXITSTATUS
26401# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26402#endif
26403#ifndef WIFEXITED
26404# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26405#endif
26406
John Criswell7a73b802003-06-30 21:59:07 +000026407int
26408main ()
26409{
26410 int s;
26411 wait (&s);
26412 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26413 ;
26414 return 0;
26415}
26416_ACEOF
26417rm -f conftest.$ac_objext
26418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026419 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026421 grep -v '^ *+' conftest.er1 >conftest.err
26422 rm -f conftest.er1
26423 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026426 { ac_try='test -z "$ac_c_werror_flag"
26427 || test ! -s conftest.err'
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435 (eval $ac_try) 2>&5
26436 ac_status=$?
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); }; }; then
26439 ac_cv_header_sys_wait_h=yes
26440else
26441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026442sed 's/^/| /' conftest.$ac_ext >&5
26443
John Criswell7a73b802003-06-30 21:59:07 +000026444ac_cv_header_sys_wait_h=no
26445fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026447fi
26448echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26449echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26450if test $ac_cv_header_sys_wait_h = yes; then
26451
26452cat >>confdefs.h <<\_ACEOF
26453#define HAVE_SYS_WAIT_H 1
26454_ACEOF
26455
26456fi
26457
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026458echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26459echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26460if test "${ac_cv_header_time+set}" = set; then
26461 echo $ECHO_N "(cached) $ECHO_C" >&6
26462else
26463 cat >conftest.$ac_ext <<_ACEOF
26464/* confdefs.h. */
26465_ACEOF
26466cat confdefs.h >>conftest.$ac_ext
26467cat >>conftest.$ac_ext <<_ACEOF
26468/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026469#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026470#include <sys/time.h>
26471#include <time.h>
26472
26473int
26474main ()
26475{
26476if ((struct tm *) 0)
26477return 0;
26478 ;
26479 return 0;
26480}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026481_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026482rm -f conftest.$ac_objext
26483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26484 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026485 ac_status=$?
26486 grep -v '^ *+' conftest.er1 >conftest.err
26487 rm -f conftest.er1
26488 cat conftest.err >&5
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026490 (exit $ac_status); } &&
26491 { ac_try='test -z "$ac_c_werror_flag"
26492 || test ! -s conftest.err'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; } &&
26498 { ac_try='test -s conftest.$ac_objext'
26499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500 (eval $ac_try) 2>&5
26501 ac_status=$?
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; }; then
26504 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026505else
26506 echo "$as_me: failed program was:" >&5
26507sed 's/^/| /' conftest.$ac_ext >&5
26508
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026509ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026510fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26512fi
26513echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26514echo "${ECHO_T}$ac_cv_header_time" >&6
26515if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026516
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026517cat >>confdefs.h <<\_ACEOF
26518#define TIME_WITH_SYS_TIME 1
26519_ACEOF
26520
26521fi
26522
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026523
Reid Spencer59473af2004-12-25 07:31:29 +000026524
26525
26526
26527
26528
26529
26530for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26531do
26532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26533if eval "test \"\${$as_ac_Header+set}\" = set"; then
26534 echo "$as_me:$LINENO: checking for $ac_header" >&5
26535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26536if eval "test \"\${$as_ac_Header+set}\" = set"; then
26537 echo $ECHO_N "(cached) $ECHO_C" >&6
26538fi
26539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26541else
26542 # Is the header compilable?
26543echo "$as_me:$LINENO: checking $ac_header usability" >&5
26544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26545cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026546/* confdefs.h. */
26547_ACEOF
26548cat confdefs.h >>conftest.$ac_ext
26549cat >>conftest.$ac_ext <<_ACEOF
26550/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026551$ac_includes_default
26552#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026553_ACEOF
26554rm -f conftest.$ac_objext
26555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26556 (eval $ac_compile) 2>conftest.er1
26557 ac_status=$?
26558 grep -v '^ *+' conftest.er1 >conftest.err
26559 rm -f conftest.er1
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } &&
26563 { ac_try='test -z "$ac_c_werror_flag"
26564 || test ! -s conftest.err'
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
26570 { ac_try='test -s conftest.$ac_objext'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026576 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026577else
26578 echo "$as_me: failed program was:" >&5
26579sed 's/^/| /' conftest.$ac_ext >&5
26580
Reid Spencer59473af2004-12-25 07:31:29 +000026581ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026582fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26585echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026586
Reid Spencer59473af2004-12-25 07:31:29 +000026587# Is the header present?
26588echo "$as_me:$LINENO: checking $ac_header presence" >&5
26589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26590cat >conftest.$ac_ext <<_ACEOF
26591/* confdefs.h. */
26592_ACEOF
26593cat confdefs.h >>conftest.$ac_ext
26594cat >>conftest.$ac_ext <<_ACEOF
26595/* end confdefs.h. */
26596#include <$ac_header>
26597_ACEOF
26598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26600 ac_status=$?
26601 grep -v '^ *+' conftest.er1 >conftest.err
26602 rm -f conftest.er1
26603 cat conftest.err >&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } >/dev/null; then
26606 if test -s conftest.err; then
26607 ac_cpp_err=$ac_c_preproc_warn_flag
26608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26609 else
26610 ac_cpp_err=
26611 fi
26612else
26613 ac_cpp_err=yes
26614fi
26615if test -z "$ac_cpp_err"; then
26616 ac_header_preproc=yes
26617else
26618 echo "$as_me: failed program was:" >&5
26619sed 's/^/| /' conftest.$ac_ext >&5
26620
26621 ac_header_preproc=no
26622fi
26623rm -f conftest.err conftest.$ac_ext
26624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26625echo "${ECHO_T}$ac_header_preproc" >&6
26626
26627# So? What about this header?
26628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26629 yes:no: )
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26634 ac_header_preproc=yes
26635 ;;
26636 no:yes:* )
26637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26644echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26649 (
26650 cat <<\_ASBOX
26651## ----------------------------------- ##
26652## Report this to llvmbugs@cs.uiuc.edu ##
26653## ----------------------------------- ##
26654_ASBOX
26655 ) |
26656 sed "s/^/$as_me: WARNING: /" >&2
26657 ;;
26658esac
26659echo "$as_me:$LINENO: checking for $ac_header" >&5
26660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26661if eval "test \"\${$as_ac_Header+set}\" = set"; then
26662 echo $ECHO_N "(cached) $ECHO_C" >&6
26663else
26664 eval "$as_ac_Header=\$ac_header_preproc"
26665fi
26666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026668
26669fi
Reid Spencer59473af2004-12-25 07:31:29 +000026670if test `eval echo '${'$as_ac_Header'}'` = yes; then
26671 cat >>confdefs.h <<_ACEOF
26672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026673_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026674
26675fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026676
Reid Spencer59473af2004-12-25 07:31:29 +000026677done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026678
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026679
26680
Reid Spencer59473af2004-12-25 07:31:29 +000026681
26682
26683
26684
Reid Spencer0a262ba2005-08-24 10:07:20 +000026685for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026686do
26687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26688if eval "test \"\${$as_ac_Header+set}\" = set"; then
26689 echo "$as_me:$LINENO: checking for $ac_header" >&5
26690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26691if eval "test \"\${$as_ac_Header+set}\" = set"; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26693fi
26694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26696else
26697 # Is the header compilable?
26698echo "$as_me:$LINENO: checking $ac_header usability" >&5
26699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26700cat >conftest.$ac_ext <<_ACEOF
26701/* confdefs.h. */
26702_ACEOF
26703cat confdefs.h >>conftest.$ac_ext
26704cat >>conftest.$ac_ext <<_ACEOF
26705/* end confdefs.h. */
26706$ac_includes_default
26707#include <$ac_header>
26708_ACEOF
26709rm -f conftest.$ac_objext
26710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26711 (eval $ac_compile) 2>conftest.er1
26712 ac_status=$?
26713 grep -v '^ *+' conftest.er1 >conftest.err
26714 rm -f conftest.er1
26715 cat conftest.err >&5
26716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717 (exit $ac_status); } &&
26718 { ac_try='test -z "$ac_c_werror_flag"
26719 || test ! -s conftest.err'
26720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26721 (eval $ac_try) 2>&5
26722 ac_status=$?
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); }; } &&
26725 { ac_try='test -s conftest.$ac_objext'
26726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727 (eval $ac_try) 2>&5
26728 ac_status=$?
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }; }; then
26731 ac_header_compiler=yes
26732else
26733 echo "$as_me: failed program was:" >&5
26734sed 's/^/| /' conftest.$ac_ext >&5
26735
26736ac_header_compiler=no
26737fi
26738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26740echo "${ECHO_T}$ac_header_compiler" >&6
26741
26742# Is the header present?
26743echo "$as_me:$LINENO: checking $ac_header presence" >&5
26744echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26745cat >conftest.$ac_ext <<_ACEOF
26746/* confdefs.h. */
26747_ACEOF
26748cat confdefs.h >>conftest.$ac_ext
26749cat >>conftest.$ac_ext <<_ACEOF
26750/* end confdefs.h. */
26751#include <$ac_header>
26752_ACEOF
26753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26755 ac_status=$?
26756 grep -v '^ *+' conftest.er1 >conftest.err
26757 rm -f conftest.er1
26758 cat conftest.err >&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } >/dev/null; then
26761 if test -s conftest.err; then
26762 ac_cpp_err=$ac_c_preproc_warn_flag
26763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26764 else
26765 ac_cpp_err=
26766 fi
26767else
26768 ac_cpp_err=yes
26769fi
26770if test -z "$ac_cpp_err"; then
26771 ac_header_preproc=yes
26772else
26773 echo "$as_me: failed program was:" >&5
26774sed 's/^/| /' conftest.$ac_ext >&5
26775
26776 ac_header_preproc=no
26777fi
26778rm -f conftest.err conftest.$ac_ext
26779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26780echo "${ECHO_T}$ac_header_preproc" >&6
26781
26782# So? What about this header?
26783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26784 yes:no: )
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26789 ac_header_preproc=yes
26790 ;;
26791 no:yes:* )
26792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26804 (
26805 cat <<\_ASBOX
26806## ----------------------------------- ##
26807## Report this to llvmbugs@cs.uiuc.edu ##
26808## ----------------------------------- ##
26809_ASBOX
26810 ) |
26811 sed "s/^/$as_me: WARNING: /" >&2
26812 ;;
26813esac
26814echo "$as_me:$LINENO: checking for $ac_header" >&5
26815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26816if eval "test \"\${$as_ac_Header+set}\" = set"; then
26817 echo $ECHO_N "(cached) $ECHO_C" >&6
26818else
26819 eval "$as_ac_Header=\$ac_header_preproc"
26820fi
26821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26823
26824fi
26825if test `eval echo '${'$as_ac_Header'}'` = yes; then
26826 cat >>confdefs.h <<_ACEOF
26827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26828_ACEOF
26829
26830fi
26831
26832done
26833
26834
26835
26836
26837
26838
26839for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026840do
26841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26842if eval "test \"\${$as_ac_Header+set}\" = set"; then
26843 echo "$as_me:$LINENO: checking for $ac_header" >&5
26844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26845if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026846 echo $ECHO_N "(cached) $ECHO_C" >&6
26847fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026850else
26851 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026852echo "$as_me:$LINENO: checking $ac_header usability" >&5
26853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026854cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026855/* confdefs.h. */
26856_ACEOF
26857cat confdefs.h >>conftest.$ac_ext
26858cat >>conftest.$ac_ext <<_ACEOF
26859/* end confdefs.h. */
26860$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026861#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026862_ACEOF
26863rm -f conftest.$ac_objext
26864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026865 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026867 grep -v '^ *+' conftest.er1 >conftest.err
26868 rm -f conftest.er1
26869 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026872 { ac_try='test -z "$ac_c_werror_flag"
26873 || test ! -s conftest.err'
26874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875 (eval $ac_try) 2>&5
26876 ac_status=$?
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; } &&
26879 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881 (eval $ac_try) 2>&5
26882 ac_status=$?
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; }; then
26885 ac_header_compiler=yes
26886else
26887 echo "$as_me: failed program was:" >&5
26888sed 's/^/| /' conftest.$ac_ext >&5
26889
26890ac_header_compiler=no
26891fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26894echo "${ECHO_T}$ac_header_compiler" >&6
26895
26896# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026897echo "$as_me:$LINENO: checking $ac_header presence" >&5
26898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026899cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026900/* confdefs.h. */
26901_ACEOF
26902cat confdefs.h >>conftest.$ac_ext
26903cat >>conftest.$ac_ext <<_ACEOF
26904/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026905#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026906_ACEOF
26907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26909 ac_status=$?
26910 grep -v '^ *+' conftest.er1 >conftest.err
26911 rm -f conftest.er1
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } >/dev/null; then
26915 if test -s conftest.err; then
26916 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026918 else
26919 ac_cpp_err=
26920 fi
26921else
26922 ac_cpp_err=yes
26923fi
26924if test -z "$ac_cpp_err"; then
26925 ac_header_preproc=yes
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930 ac_header_preproc=no
26931fi
26932rm -f conftest.err conftest.$ac_ext
26933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26934echo "${ECHO_T}$ac_header_preproc" >&6
26935
26936# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26938 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026943 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026944 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026945 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026958 (
26959 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026960## ----------------------------------- ##
26961## Report this to llvmbugs@cs.uiuc.edu ##
26962## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026963_ASBOX
26964 ) |
26965 sed "s/^/$as_me: WARNING: /" >&2
26966 ;;
26967esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026968echo "$as_me:$LINENO: checking for $ac_header" >&5
26969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26970if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026971 echo $ECHO_N "(cached) $ECHO_C" >&6
26972else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026973 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026974fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026977
26978fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026979if test `eval echo '${'$as_ac_Header'}'` = yes; then
26980 cat >>confdefs.h <<_ACEOF
26981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026982_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026983
26984fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026985
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026986done
26987
John Criswell7ed43ad2004-07-19 16:12:29 +000026988
Chris Lattner0b142592005-11-14 06:57:34 +000026989for ac_header in malloc/malloc.h
26990do
26991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26992if eval "test \"\${$as_ac_Header+set}\" = set"; then
26993 echo "$as_me:$LINENO: checking for $ac_header" >&5
26994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26995if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26997fi
26998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27000else
27001 # Is the header compilable?
27002echo "$as_me:$LINENO: checking $ac_header usability" >&5
27003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27004cat >conftest.$ac_ext <<_ACEOF
27005/* confdefs.h. */
27006_ACEOF
27007cat confdefs.h >>conftest.$ac_ext
27008cat >>conftest.$ac_ext <<_ACEOF
27009/* end confdefs.h. */
27010$ac_includes_default
27011#include <$ac_header>
27012_ACEOF
27013rm -f conftest.$ac_objext
27014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27015 (eval $ac_compile) 2>conftest.er1
27016 ac_status=$?
27017 grep -v '^ *+' conftest.er1 >conftest.err
27018 rm -f conftest.er1
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag"
27023 || test ! -s conftest.err'
27024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; } &&
27029 { ac_try='test -s conftest.$ac_objext'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }; then
27035 ac_header_compiler=yes
27036else
27037 echo "$as_me: failed program was:" >&5
27038sed 's/^/| /' conftest.$ac_ext >&5
27039
27040ac_header_compiler=no
27041fi
27042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27044echo "${ECHO_T}$ac_header_compiler" >&6
27045
27046# Is the header present?
27047echo "$as_me:$LINENO: checking $ac_header presence" >&5
27048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27049cat >conftest.$ac_ext <<_ACEOF
27050/* confdefs.h. */
27051_ACEOF
27052cat confdefs.h >>conftest.$ac_ext
27053cat >>conftest.$ac_ext <<_ACEOF
27054/* end confdefs.h. */
27055#include <$ac_header>
27056_ACEOF
27057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27059 ac_status=$?
27060 grep -v '^ *+' conftest.er1 >conftest.err
27061 rm -f conftest.er1
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } >/dev/null; then
27065 if test -s conftest.err; then
27066 ac_cpp_err=$ac_c_preproc_warn_flag
27067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27068 else
27069 ac_cpp_err=
27070 fi
27071else
27072 ac_cpp_err=yes
27073fi
27074if test -z "$ac_cpp_err"; then
27075 ac_header_preproc=yes
27076else
27077 echo "$as_me: failed program was:" >&5
27078sed 's/^/| /' conftest.$ac_ext >&5
27079
27080 ac_header_preproc=no
27081fi
27082rm -f conftest.err conftest.$ac_ext
27083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27084echo "${ECHO_T}$ac_header_preproc" >&6
27085
27086# So? What about this header?
27087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27088 yes:no: )
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27093 ac_header_preproc=yes
27094 ;;
27095 no:yes:* )
27096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27099echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27103echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27108 (
27109 cat <<\_ASBOX
27110## ----------------------------------- ##
27111## Report this to llvmbugs@cs.uiuc.edu ##
27112## ----------------------------------- ##
27113_ASBOX
27114 ) |
27115 sed "s/^/$as_me: WARNING: /" >&2
27116 ;;
27117esac
27118echo "$as_me:$LINENO: checking for $ac_header" >&5
27119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27120if eval "test \"\${$as_ac_Header+set}\" = set"; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123 eval "$as_ac_Header=\$ac_header_preproc"
27124fi
27125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27127
27128fi
27129if test `eval echo '${'$as_ac_Header'}'` = yes; then
27130 cat >>confdefs.h <<_ACEOF
27131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27132_ACEOF
27133
27134fi
27135
27136done
27137
Reid Spencer0a262ba2005-08-24 10:07:20 +000027138if test "$ENABLE_THREADS" -eq 1 ; then
27139
27140for ac_header in pthread.h
27141do
27142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27143if eval "test \"\${$as_ac_Header+set}\" = set"; then
27144 echo "$as_me:$LINENO: checking for $ac_header" >&5
27145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27146if eval "test \"\${$as_ac_Header+set}\" = set"; then
27147 echo $ECHO_N "(cached) $ECHO_C" >&6
27148fi
27149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27151else
27152 # Is the header compilable?
27153echo "$as_me:$LINENO: checking $ac_header usability" >&5
27154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27155cat >conftest.$ac_ext <<_ACEOF
27156/* confdefs.h. */
27157_ACEOF
27158cat confdefs.h >>conftest.$ac_ext
27159cat >>conftest.$ac_ext <<_ACEOF
27160/* end confdefs.h. */
27161$ac_includes_default
27162#include <$ac_header>
27163_ACEOF
27164rm -f conftest.$ac_objext
27165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27166 (eval $ac_compile) 2>conftest.er1
27167 ac_status=$?
27168 grep -v '^ *+' conftest.er1 >conftest.err
27169 rm -f conftest.er1
27170 cat conftest.err >&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); } &&
27173 { ac_try='test -z "$ac_c_werror_flag"
27174 || test ! -s conftest.err'
27175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176 (eval $ac_try) 2>&5
27177 ac_status=$?
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; } &&
27180 { ac_try='test -s conftest.$ac_objext'
27181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182 (eval $ac_try) 2>&5
27183 ac_status=$?
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; }; then
27186 ac_header_compiler=yes
27187else
27188 echo "$as_me: failed program was:" >&5
27189sed 's/^/| /' conftest.$ac_ext >&5
27190
27191ac_header_compiler=no
27192fi
27193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27195echo "${ECHO_T}$ac_header_compiler" >&6
27196
27197# Is the header present?
27198echo "$as_me:$LINENO: checking $ac_header presence" >&5
27199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27200cat >conftest.$ac_ext <<_ACEOF
27201/* confdefs.h. */
27202_ACEOF
27203cat confdefs.h >>conftest.$ac_ext
27204cat >>conftest.$ac_ext <<_ACEOF
27205/* end confdefs.h. */
27206#include <$ac_header>
27207_ACEOF
27208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27210 ac_status=$?
27211 grep -v '^ *+' conftest.er1 >conftest.err
27212 rm -f conftest.er1
27213 cat conftest.err >&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); } >/dev/null; then
27216 if test -s conftest.err; then
27217 ac_cpp_err=$ac_c_preproc_warn_flag
27218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27219 else
27220 ac_cpp_err=
27221 fi
27222else
27223 ac_cpp_err=yes
27224fi
27225if test -z "$ac_cpp_err"; then
27226 ac_header_preproc=yes
27227else
27228 echo "$as_me: failed program was:" >&5
27229sed 's/^/| /' conftest.$ac_ext >&5
27230
27231 ac_header_preproc=no
27232fi
27233rm -f conftest.err conftest.$ac_ext
27234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27235echo "${ECHO_T}$ac_header_preproc" >&6
27236
27237# So? What about this header?
27238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27239 yes:no: )
27240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27244 ac_header_preproc=yes
27245 ;;
27246 no:yes:* )
27247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27259 (
27260 cat <<\_ASBOX
27261## ----------------------------------- ##
27262## Report this to llvmbugs@cs.uiuc.edu ##
27263## ----------------------------------- ##
27264_ASBOX
27265 ) |
27266 sed "s/^/$as_me: WARNING: /" >&2
27267 ;;
27268esac
27269echo "$as_me:$LINENO: checking for $ac_header" >&5
27270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27271if eval "test \"\${$as_ac_Header+set}\" = set"; then
27272 echo $ECHO_N "(cached) $ECHO_C" >&6
27273else
27274 eval "$as_ac_Header=\$ac_header_preproc"
27275fi
27276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27278
27279fi
27280if test `eval echo '${'$as_ac_Header'}'` = yes; then
27281 cat >>confdefs.h <<_ACEOF
27282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27283_ACEOF
27284
27285fi
27286
27287done
27288
27289fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027290
27291
John Criswell7a73b802003-06-30 21:59:07 +000027292echo "$as_me:$LINENO: checking for pid_t" >&5
27293echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27294if test "${ac_cv_type_pid_t+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27296else
27297 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027298/* confdefs.h. */
27299_ACEOF
27300cat confdefs.h >>conftest.$ac_ext
27301cat >>conftest.$ac_ext <<_ACEOF
27302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027303$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027304int
27305main ()
27306{
27307if ((pid_t *) 0)
27308 return 0;
27309if (sizeof (pid_t))
27310 return 0;
27311 ;
27312 return 0;
27313}
27314_ACEOF
27315rm -f conftest.$ac_objext
27316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027317 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027318 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027319 grep -v '^ *+' conftest.er1 >conftest.err
27320 rm -f conftest.er1
27321 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027324 { ac_try='test -z "$ac_c_werror_flag"
27325 || test ! -s conftest.err'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27328 ac_status=$?
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; } &&
27331 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27334 ac_status=$?
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
27337 ac_cv_type_pid_t=yes
27338else
27339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027340sed 's/^/| /' conftest.$ac_ext >&5
27341
John Criswell7a73b802003-06-30 21:59:07 +000027342ac_cv_type_pid_t=no
27343fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027345fi
27346echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27347echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27348if test $ac_cv_type_pid_t = yes; then
27349 :
27350else
27351
27352cat >>confdefs.h <<_ACEOF
27353#define pid_t int
27354_ACEOF
27355
27356fi
27357
27358echo "$as_me:$LINENO: checking for size_t" >&5
27359echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27360if test "${ac_cv_type_size_t+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27362else
27363 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027364/* confdefs.h. */
27365_ACEOF
27366cat confdefs.h >>conftest.$ac_ext
27367cat >>conftest.$ac_ext <<_ACEOF
27368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027369$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027370int
27371main ()
27372{
27373if ((size_t *) 0)
27374 return 0;
27375if (sizeof (size_t))
27376 return 0;
27377 ;
27378 return 0;
27379}
27380_ACEOF
27381rm -f conftest.$ac_objext
27382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027385 grep -v '^ *+' conftest.er1 >conftest.err
27386 rm -f conftest.er1
27387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027390 { ac_try='test -z "$ac_c_werror_flag"
27391 || test ! -s conftest.err'
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 ac_cv_type_size_t=yes
27404else
27405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027406sed 's/^/| /' conftest.$ac_ext >&5
27407
John Criswell7a73b802003-06-30 21:59:07 +000027408ac_cv_type_size_t=no
27409fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027411fi
27412echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27413echo "${ECHO_T}$ac_cv_type_size_t" >&6
27414if test $ac_cv_type_size_t = yes; then
27415 :
27416else
27417
27418cat >>confdefs.h <<_ACEOF
27419#define size_t unsigned
27420_ACEOF
27421
27422fi
27423
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027424echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27425echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27426if test "${ac_cv_type_signal+set}" = set; then
27427 echo $ECHO_N "(cached) $ECHO_C" >&6
27428else
27429 cat >conftest.$ac_ext <<_ACEOF
27430/* confdefs.h. */
27431_ACEOF
27432cat confdefs.h >>conftest.$ac_ext
27433cat >>conftest.$ac_ext <<_ACEOF
27434/* end confdefs.h. */
27435#include <sys/types.h>
27436#include <signal.h>
27437#ifdef signal
27438# undef signal
27439#endif
27440#ifdef __cplusplus
27441extern "C" void (*signal (int, void (*)(int)))(int);
27442#else
27443void (*signal ()) ();
27444#endif
27445
27446int
27447main ()
27448{
27449int i;
27450 ;
27451 return 0;
27452}
27453_ACEOF
27454rm -f conftest.$ac_objext
27455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27456 (eval $ac_compile) 2>conftest.er1
27457 ac_status=$?
27458 grep -v '^ *+' conftest.er1 >conftest.err
27459 rm -f conftest.er1
27460 cat conftest.err >&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } &&
27463 { ac_try='test -z "$ac_c_werror_flag"
27464 || test ! -s conftest.err'
27465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27467 ac_status=$?
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; } &&
27470 { ac_try='test -s conftest.$ac_objext'
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; }; then
27476 ac_cv_type_signal=void
27477else
27478 echo "$as_me: failed program was:" >&5
27479sed 's/^/| /' conftest.$ac_ext >&5
27480
27481ac_cv_type_signal=int
27482fi
27483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27484fi
27485echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27486echo "${ECHO_T}$ac_cv_type_signal" >&6
27487
27488cat >>confdefs.h <<_ACEOF
27489#define RETSIGTYPE $ac_cv_type_signal
27490_ACEOF
27491
27492
27493echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27494echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27495if test "${ac_cv_struct_tm+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27497else
27498 cat >conftest.$ac_ext <<_ACEOF
27499/* confdefs.h. */
27500_ACEOF
27501cat confdefs.h >>conftest.$ac_ext
27502cat >>conftest.$ac_ext <<_ACEOF
27503/* end confdefs.h. */
27504#include <sys/types.h>
27505#include <time.h>
27506
27507int
27508main ()
27509{
27510struct tm *tp; tp->tm_sec;
27511 ;
27512 return 0;
27513}
27514_ACEOF
27515rm -f conftest.$ac_objext
27516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27517 (eval $ac_compile) 2>conftest.er1
27518 ac_status=$?
27519 grep -v '^ *+' conftest.er1 >conftest.err
27520 rm -f conftest.er1
27521 cat conftest.err >&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } &&
27524 { ac_try='test -z "$ac_c_werror_flag"
27525 || test ! -s conftest.err'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27528 ac_status=$?
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; } &&
27531 { ac_try='test -s conftest.$ac_objext'
27532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533 (eval $ac_try) 2>&5
27534 ac_status=$?
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); }; }; then
27537 ac_cv_struct_tm=time.h
27538else
27539 echo "$as_me: failed program was:" >&5
27540sed 's/^/| /' conftest.$ac_ext >&5
27541
27542ac_cv_struct_tm=sys/time.h
27543fi
27544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27545fi
27546echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27547echo "${ECHO_T}$ac_cv_struct_tm" >&6
27548if test $ac_cv_struct_tm = sys/time.h; then
27549
27550cat >>confdefs.h <<\_ACEOF
27551#define TM_IN_SYS_TIME 1
27552_ACEOF
27553
27554fi
27555
John Criswell7a73b802003-06-30 21:59:07 +000027556echo "$as_me:$LINENO: checking for int64_t" >&5
27557echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27558if test "${ac_cv_type_int64_t+set}" = set; then
27559 echo $ECHO_N "(cached) $ECHO_C" >&6
27560else
27561 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027562/* confdefs.h. */
27563_ACEOF
27564cat confdefs.h >>conftest.$ac_ext
27565cat >>conftest.$ac_ext <<_ACEOF
27566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027567$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027568int
27569main ()
27570{
27571if ((int64_t *) 0)
27572 return 0;
27573if (sizeof (int64_t))
27574 return 0;
27575 ;
27576 return 0;
27577}
27578_ACEOF
27579rm -f conftest.$ac_objext
27580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027581 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027582 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027583 grep -v '^ *+' conftest.er1 >conftest.err
27584 rm -f conftest.er1
27585 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027588 { ac_try='test -z "$ac_c_werror_flag"
27589 || test ! -s conftest.err'
27590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591 (eval $ac_try) 2>&5
27592 ac_status=$?
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; } &&
27595 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597 (eval $ac_try) 2>&5
27598 ac_status=$?
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; }; then
27601 ac_cv_type_int64_t=yes
27602else
27603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027604sed 's/^/| /' conftest.$ac_ext >&5
27605
John Criswell7a73b802003-06-30 21:59:07 +000027606ac_cv_type_int64_t=no
27607fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027609fi
27610echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27611echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27612if test $ac_cv_type_int64_t = yes; then
27613
27614cat >>confdefs.h <<_ACEOF
27615#define HAVE_INT64_T 1
27616_ACEOF
27617
27618
27619else
27620 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27621echo "$as_me: error: Type int64_t required but not found" >&2;}
27622 { (exit 1); exit 1; }; }
27623fi
27624
27625echo "$as_me:$LINENO: checking for uint64_t" >&5
27626echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27627if test "${ac_cv_type_uint64_t+set}" = set; then
27628 echo $ECHO_N "(cached) $ECHO_C" >&6
27629else
27630 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027631/* confdefs.h. */
27632_ACEOF
27633cat confdefs.h >>conftest.$ac_ext
27634cat >>conftest.$ac_ext <<_ACEOF
27635/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027636$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027637int
27638main ()
27639{
27640if ((uint64_t *) 0)
27641 return 0;
27642if (sizeof (uint64_t))
27643 return 0;
27644 ;
27645 return 0;
27646}
27647_ACEOF
27648rm -f conftest.$ac_objext
27649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027650 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027651 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027652 grep -v '^ *+' conftest.er1 >conftest.err
27653 rm -f conftest.er1
27654 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027657 { ac_try='test -z "$ac_c_werror_flag"
27658 || test ! -s conftest.err'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27661 ac_status=$?
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; } &&
27664 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27666 (eval $ac_try) 2>&5
27667 ac_status=$?
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_cv_type_uint64_t=yes
27671else
27672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027673sed 's/^/| /' conftest.$ac_ext >&5
27674
John Criswell7a73b802003-06-30 21:59:07 +000027675ac_cv_type_uint64_t=no
27676fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027678fi
27679echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27680echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27681if test $ac_cv_type_uint64_t = yes; then
27682
27683cat >>confdefs.h <<_ACEOF
27684#define HAVE_UINT64_T 1
27685_ACEOF
27686
27687
27688else
Misha Brukmanceca9042004-09-02 23:02:30 +000027689 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027690echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27691if test "${ac_cv_type_u_int64_t+set}" = set; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27693else
27694 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027695/* confdefs.h. */
27696_ACEOF
27697cat confdefs.h >>conftest.$ac_ext
27698cat >>conftest.$ac_ext <<_ACEOF
27699/* end confdefs.h. */
27700$ac_includes_default
27701int
27702main ()
27703{
27704if ((u_int64_t *) 0)
27705 return 0;
27706if (sizeof (u_int64_t))
27707 return 0;
27708 ;
27709 return 0;
27710}
27711_ACEOF
27712rm -f conftest.$ac_objext
27713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027714 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027715 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027716 grep -v '^ *+' conftest.er1 >conftest.err
27717 rm -f conftest.er1
27718 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027721 { ac_try='test -z "$ac_c_werror_flag"
27722 || test ! -s conftest.err'
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27725 ac_status=$?
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; } &&
27728 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730 (eval $ac_try) 2>&5
27731 ac_status=$?
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; }; then
27734 ac_cv_type_u_int64_t=yes
27735else
27736 echo "$as_me: failed program was:" >&5
27737sed 's/^/| /' conftest.$ac_ext >&5
27738
27739ac_cv_type_u_int64_t=no
27740fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027742fi
27743echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27744echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27745if test $ac_cv_type_u_int64_t = yes; then
27746
27747cat >>confdefs.h <<_ACEOF
27748#define HAVE_U_INT64_T 1
27749_ACEOF
27750
27751
Misha Brukmanceca9042004-09-02 23:02:30 +000027752else
27753 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27754echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27755 { (exit 1); exit 1; }; }
27756fi
27757
John Criswell679ff312004-09-02 18:44:44 +000027758fi
27759
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027760
27761
27762
27763
27764
27765
27766
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027767
27768
Reid Spencerdf3be822006-01-23 08:15:53 +000027769for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027770do
27771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27772echo "$as_me:$LINENO: checking for $ac_func" >&5
27773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27774if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027775 echo $ECHO_N "(cached) $ECHO_C" >&6
27776else
27777 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027778/* confdefs.h. */
27779_ACEOF
27780cat confdefs.h >>conftest.$ac_ext
27781cat >>conftest.$ac_ext <<_ACEOF
27782/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27785#define $ac_func innocuous_$ac_func
27786
27787/* System header to define __stub macros and hopefully few prototypes,
27788 which can conflict with char $ac_func (); below.
27789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27790 <limits.h> exists even on freestanding compilers. */
27791
27792#ifdef __STDC__
27793# include <limits.h>
27794#else
27795# include <assert.h>
27796#endif
27797
27798#undef $ac_func
27799
27800/* Override any gcc2 internal prototype to avoid an error. */
27801#ifdef __cplusplus
27802extern "C"
27803{
27804#endif
27805/* We use char because int might match the return type of a gcc2
27806 builtin and then its argument prototype would still apply. */
27807char $ac_func ();
27808/* The GNU C library defines this for functions which it implements
27809 to always fail with ENOSYS. Some functions are actually named
27810 something starting with __ and the normal name is an alias. */
27811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27812choke me
27813#else
27814char (*f) () = $ac_func;
27815#endif
27816#ifdef __cplusplus
27817}
27818#endif
John Criswell7a73b802003-06-30 21:59:07 +000027819
John Criswell7a73b802003-06-30 21:59:07 +000027820int
27821main ()
27822{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027823return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027824 ;
27825 return 0;
27826}
27827_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027828rm -f conftest.$ac_objext conftest$ac_exeext
27829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27830 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027831 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027832 grep -v '^ *+' conftest.er1 >conftest.err
27833 rm -f conftest.er1
27834 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027837 { ac_try='test -z "$ac_c_werror_flag"
27838 || test ! -s conftest.err'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27841 ac_status=$?
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027844 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027850 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027851else
27852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027853sed 's/^/| /' conftest.$ac_ext >&5
27854
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027855eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027856fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027857rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027859fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27862if test `eval echo '${'$as_ac_var'}'` = yes; then
27863 cat >>confdefs.h <<_ACEOF
27864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027865_ACEOF
27866
27867fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027868done
John Criswell7a73b802003-06-30 21:59:07 +000027869
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027870
27871
27872
Reid Spencer6af3d262004-12-15 04:01:48 +000027873
27874
Reid Spencer59473af2004-12-25 07:31:29 +000027875
Reid Spencerdf3be822006-01-23 08:15:53 +000027876for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27877do
27878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27879echo "$as_me:$LINENO: checking for $ac_func" >&5
27880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27881if eval "test \"\${$as_ac_var+set}\" = set"; then
27882 echo $ECHO_N "(cached) $ECHO_C" >&6
27883else
27884 cat >conftest.$ac_ext <<_ACEOF
27885/* confdefs.h. */
27886_ACEOF
27887cat confdefs.h >>conftest.$ac_ext
27888cat >>conftest.$ac_ext <<_ACEOF
27889/* end confdefs.h. */
27890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27892#define $ac_func innocuous_$ac_func
27893
27894/* System header to define __stub macros and hopefully few prototypes,
27895 which can conflict with char $ac_func (); below.
27896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27897 <limits.h> exists even on freestanding compilers. */
27898
27899#ifdef __STDC__
27900# include <limits.h>
27901#else
27902# include <assert.h>
27903#endif
27904
27905#undef $ac_func
27906
27907/* Override any gcc2 internal prototype to avoid an error. */
27908#ifdef __cplusplus
27909extern "C"
27910{
27911#endif
27912/* We use char because int might match the return type of a gcc2
27913 builtin and then its argument prototype would still apply. */
27914char $ac_func ();
27915/* The GNU C library defines this for functions which it implements
27916 to always fail with ENOSYS. Some functions are actually named
27917 something starting with __ and the normal name is an alias. */
27918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27919choke me
27920#else
27921char (*f) () = $ac_func;
27922#endif
27923#ifdef __cplusplus
27924}
27925#endif
27926
27927int
27928main ()
27929{
27930return f != $ac_func;
27931 ;
27932 return 0;
27933}
27934_ACEOF
27935rm -f conftest.$ac_objext conftest$ac_exeext
27936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27937 (eval $ac_link) 2>conftest.er1
27938 ac_status=$?
27939 grep -v '^ *+' conftest.er1 >conftest.err
27940 rm -f conftest.er1
27941 cat conftest.err >&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } &&
27944 { ac_try='test -z "$ac_c_werror_flag"
27945 || test ! -s conftest.err'
27946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947 (eval $ac_try) 2>&5
27948 ac_status=$?
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; } &&
27951 { ac_try='test -s conftest$ac_exeext'
27952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953 (eval $ac_try) 2>&5
27954 ac_status=$?
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; }; then
27957 eval "$as_ac_var=yes"
27958else
27959 echo "$as_me: failed program was:" >&5
27960sed 's/^/| /' conftest.$ac_ext >&5
27961
27962eval "$as_ac_var=no"
27963fi
27964rm -f conftest.err conftest.$ac_objext \
27965 conftest$ac_exeext conftest.$ac_ext
27966fi
27967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27969if test `eval echo '${'$as_ac_var'}'` = yes; then
27970 cat >>confdefs.h <<_ACEOF
27971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27972_ACEOF
27973
27974fi
27975done
27976
27977
27978
27979
27980
27981
27982
27983
27984for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027985do
27986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27987echo "$as_me:$LINENO: checking for $ac_func" >&5
27988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27989if eval "test \"\${$as_ac_var+set}\" = set"; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27991else
27992 cat >conftest.$ac_ext <<_ACEOF
27993/* confdefs.h. */
27994_ACEOF
27995cat confdefs.h >>conftest.$ac_ext
27996cat >>conftest.$ac_ext <<_ACEOF
27997/* end confdefs.h. */
27998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28000#define $ac_func innocuous_$ac_func
28001
28002/* System header to define __stub macros and hopefully few prototypes,
28003 which can conflict with char $ac_func (); below.
28004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28005 <limits.h> exists even on freestanding compilers. */
28006
28007#ifdef __STDC__
28008# include <limits.h>
28009#else
28010# include <assert.h>
28011#endif
28012
28013#undef $ac_func
28014
28015/* Override any gcc2 internal prototype to avoid an error. */
28016#ifdef __cplusplus
28017extern "C"
28018{
28019#endif
28020/* We use char because int might match the return type of a gcc2
28021 builtin and then its argument prototype would still apply. */
28022char $ac_func ();
28023/* The GNU C library defines this for functions which it implements
28024 to always fail with ENOSYS. Some functions are actually named
28025 something starting with __ and the normal name is an alias. */
28026#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28027choke me
28028#else
28029char (*f) () = $ac_func;
28030#endif
28031#ifdef __cplusplus
28032}
28033#endif
28034
28035int
28036main ()
28037{
28038return f != $ac_func;
28039 ;
28040 return 0;
28041}
28042_ACEOF
28043rm -f conftest.$ac_objext conftest$ac_exeext
28044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28045 (eval $ac_link) 2>conftest.er1
28046 ac_status=$?
28047 grep -v '^ *+' conftest.er1 >conftest.err
28048 rm -f conftest.er1
28049 cat conftest.err >&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } &&
28052 { ac_try='test -z "$ac_c_werror_flag"
28053 || test ! -s conftest.err'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } &&
28059 { ac_try='test -s conftest$ac_exeext'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; }; then
28065 eval "$as_ac_var=yes"
28066else
28067 echo "$as_me: failed program was:" >&5
28068sed 's/^/| /' conftest.$ac_ext >&5
28069
28070eval "$as_ac_var=no"
28071fi
28072rm -f conftest.err conftest.$ac_objext \
28073 conftest$ac_exeext conftest.$ac_ext
28074fi
28075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28077if test `eval echo '${'$as_ac_var'}'` = yes; then
28078 cat >>confdefs.h <<_ACEOF
28079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28080_ACEOF
28081
28082fi
28083done
28084
28085
Reid Spencerba46ca32004-12-31 05:49:15 +000028086
28087
Chris Lattner0b142592005-11-14 06:57:34 +000028088
Chris Lattner511f11d2005-11-14 07:25:50 +000028089for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028090do
28091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28092echo "$as_me:$LINENO: checking for $ac_func" >&5
28093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28094if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028095 echo $ECHO_N "(cached) $ECHO_C" >&6
28096else
28097 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028098/* confdefs.h. */
28099_ACEOF
28100cat confdefs.h >>conftest.$ac_ext
28101cat >>conftest.$ac_ext <<_ACEOF
28102/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28105#define $ac_func innocuous_$ac_func
28106
28107/* System header to define __stub macros and hopefully few prototypes,
28108 which can conflict with char $ac_func (); below.
28109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28110 <limits.h> exists even on freestanding compilers. */
28111
28112#ifdef __STDC__
28113# include <limits.h>
28114#else
28115# include <assert.h>
28116#endif
28117
28118#undef $ac_func
28119
28120/* Override any gcc2 internal prototype to avoid an error. */
28121#ifdef __cplusplus
28122extern "C"
28123{
28124#endif
28125/* We use char because int might match the return type of a gcc2
28126 builtin and then its argument prototype would still apply. */
28127char $ac_func ();
28128/* The GNU C library defines this for functions which it implements
28129 to always fail with ENOSYS. Some functions are actually named
28130 something starting with __ and the normal name is an alias. */
28131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28132choke me
28133#else
28134char (*f) () = $ac_func;
28135#endif
28136#ifdef __cplusplus
28137}
28138#endif
John Criswell7a73b802003-06-30 21:59:07 +000028139
John Criswell7a73b802003-06-30 21:59:07 +000028140int
28141main ()
28142{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028143return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028144 ;
28145 return 0;
28146}
28147_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028148rm -f conftest.$ac_objext conftest$ac_exeext
28149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28150 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028152 grep -v '^ *+' conftest.er1 >conftest.err
28153 rm -f conftest.er1
28154 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028157 { ac_try='test -z "$ac_c_werror_flag"
28158 || test ! -s conftest.err'
28159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160 (eval $ac_try) 2>&5
28161 ac_status=$?
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028164 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166 (eval $ac_try) 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028170 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028171else
28172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028173sed 's/^/| /' conftest.$ac_ext >&5
28174
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028175eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028176fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028177rm -f conftest.err conftest.$ac_objext \
28178 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028179fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28182if test `eval echo '${'$as_ac_var'}'` = yes; then
28183 cat >>confdefs.h <<_ACEOF
28184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028185_ACEOF
28186
28187fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028188done
John Criswell7a73b802003-06-30 21:59:07 +000028189
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028190echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28191echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028192if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028193 echo $ECHO_N "(cached) $ECHO_C" >&6
28194else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028195 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028196ac_cpp='$CPP $CPPFLAGS'
28197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199ac_compiler_gnu=$ac_cv_c_compiler_gnu
28200
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028201 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028202 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028203else
28204 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028205
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028206 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028207_ACEOF
28208cat confdefs.h >>conftest.$ac_ext
28209cat >>conftest.$ac_ext <<_ACEOF
28210/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028211
John Criswella0137d32003-10-13 16:22:01 +000028212#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028213#include <stdlib.h>
28214
John Criswella0137d32003-10-13 16:22:01 +000028215int
28216main ()
28217{
28218
Reid Spencer2706f8c2004-09-19 23:53:36 +000028219volatile double A, B;
28220char Buffer[100];
28221A = 1;
28222A /= 10.0;
28223sprintf(Buffer, "%a", A);
28224B = atof(Buffer);
28225if (A != B)
28226 return (1);
28227if (A != 0x1.999999999999ap-4)
28228 return (1);
28229return (0);
John Criswella0137d32003-10-13 16:22:01 +000028230 ;
28231 return 0;
28232}
28233_ACEOF
28234rm -f conftest$ac_exeext
28235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28236 (eval $ac_link) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28242 ac_status=$?
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028245 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028246else
28247 echo "$as_me: program exited with status $ac_status" >&5
28248echo "$as_me: failed program was:" >&5
28249sed 's/^/| /' conftest.$ac_ext >&5
28250
28251( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028252llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028253fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028254rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028255fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028256 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028257ac_cpp='$CPP $CPPFLAGS'
28258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28260ac_compiler_gnu=$ac_cv_c_compiler_gnu
28261
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028262fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028263echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28264echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28265 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028266
28267cat >>confdefs.h <<\_ACEOF
28268#define HAVE_PRINTF_A 1
28269_ACEOF
28270
Reid Spencer2706f8c2004-09-19 23:53:36 +000028271 fi
John Criswella0137d32003-10-13 16:22:01 +000028272
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028273# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28274# for constant arguments. Useless!
28275echo "$as_me:$LINENO: checking for working alloca.h" >&5
28276echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28277if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028278 echo $ECHO_N "(cached) $ECHO_C" >&6
28279else
John Criswell0021c312004-02-13 21:57:29 +000028280 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028281/* confdefs.h. */
28282_ACEOF
28283cat confdefs.h >>conftest.$ac_ext
28284cat >>conftest.$ac_ext <<_ACEOF
28285/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028286#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028287int
28288main ()
28289{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028290char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028291 ;
28292 return 0;
28293}
28294_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028295rm -f conftest.$ac_objext conftest$ac_exeext
28296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28297 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028299 grep -v '^ *+' conftest.er1 >conftest.err
28300 rm -f conftest.er1
28301 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028304 { ac_try='test -z "$ac_c_werror_flag"
28305 || test ! -s conftest.err'
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028311 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028317 ac_cv_working_alloca_h=yes
28318else
28319 echo "$as_me: failed program was:" >&5
28320sed 's/^/| /' conftest.$ac_ext >&5
28321
28322ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028323fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028324rm -f conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
28326fi
28327echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28328echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28329if test $ac_cv_working_alloca_h = yes; then
28330
28331cat >>confdefs.h <<\_ACEOF
28332#define HAVE_ALLOCA_H 1
28333_ACEOF
28334
28335fi
28336
28337echo "$as_me:$LINENO: checking for alloca" >&5
28338echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28339if test "${ac_cv_func_alloca_works+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28341else
28342 cat >conftest.$ac_ext <<_ACEOF
28343/* confdefs.h. */
28344_ACEOF
28345cat confdefs.h >>conftest.$ac_ext
28346cat >>conftest.$ac_ext <<_ACEOF
28347/* end confdefs.h. */
28348#ifdef __GNUC__
28349# define alloca __builtin_alloca
28350#else
28351# ifdef _MSC_VER
28352# include <malloc.h>
28353# define alloca _alloca
28354# else
28355# if HAVE_ALLOCA_H
28356# include <alloca.h>
28357# else
28358# ifdef _AIX
28359 #pragma alloca
28360# else
28361# ifndef alloca /* predefined by HP cc +Olibcalls */
28362char *alloca ();
28363# endif
28364# endif
28365# endif
28366# endif
28367#endif
28368
28369int
28370main ()
28371{
28372char *p = (char *) alloca (1);
28373 ;
28374 return 0;
28375}
28376_ACEOF
28377rm -f conftest.$ac_objext conftest$ac_exeext
28378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28379 (eval $ac_link) 2>conftest.er1
28380 ac_status=$?
28381 grep -v '^ *+' conftest.er1 >conftest.err
28382 rm -f conftest.er1
28383 cat conftest.err >&5
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); } &&
28386 { ac_try='test -z "$ac_c_werror_flag"
28387 || test ! -s conftest.err'
28388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28389 (eval $ac_try) 2>&5
28390 ac_status=$?
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); }; } &&
28393 { ac_try='test -s conftest$ac_exeext'
28394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395 (eval $ac_try) 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; }; then
28399 ac_cv_func_alloca_works=yes
28400else
28401 echo "$as_me: failed program was:" >&5
28402sed 's/^/| /' conftest.$ac_ext >&5
28403
28404ac_cv_func_alloca_works=no
28405fi
28406rm -f conftest.err conftest.$ac_objext \
28407 conftest$ac_exeext conftest.$ac_ext
28408fi
28409echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28410echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28411
28412if test $ac_cv_func_alloca_works = yes; then
28413
28414cat >>confdefs.h <<\_ACEOF
28415#define HAVE_ALLOCA 1
28416_ACEOF
28417
28418else
28419 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28420# that cause trouble. Some versions do not even contain alloca or
28421# contain a buggy version. If you still want to use their alloca,
28422# use ar to extract alloca.o from them instead of compiling alloca.c.
28423
28424ALLOCA=alloca.$ac_objext
28425
28426cat >>confdefs.h <<\_ACEOF
28427#define C_ALLOCA 1
28428_ACEOF
28429
28430
28431echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28432echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28433if test "${ac_cv_os_cray+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436 cat >conftest.$ac_ext <<_ACEOF
28437/* confdefs.h. */
28438_ACEOF
28439cat confdefs.h >>conftest.$ac_ext
28440cat >>conftest.$ac_ext <<_ACEOF
28441/* end confdefs.h. */
28442#if defined(CRAY) && ! defined(CRAY2)
28443webecray
28444#else
28445wenotbecray
28446#endif
28447
28448_ACEOF
28449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28450 $EGREP "webecray" >/dev/null 2>&1; then
28451 ac_cv_os_cray=yes
28452else
28453 ac_cv_os_cray=no
28454fi
28455rm -f conftest*
28456
28457fi
28458echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28459echo "${ECHO_T}$ac_cv_os_cray" >&6
28460if test $ac_cv_os_cray = yes; then
28461 for ac_func in _getb67 GETB67 getb67; do
28462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28463echo "$as_me:$LINENO: checking for $ac_func" >&5
28464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28465if eval "test \"\${$as_ac_var+set}\" = set"; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28467else
28468 cat >conftest.$ac_ext <<_ACEOF
28469/* confdefs.h. */
28470_ACEOF
28471cat confdefs.h >>conftest.$ac_ext
28472cat >>conftest.$ac_ext <<_ACEOF
28473/* end confdefs.h. */
28474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28476#define $ac_func innocuous_$ac_func
28477
28478/* System header to define __stub macros and hopefully few prototypes,
28479 which can conflict with char $ac_func (); below.
28480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28481 <limits.h> exists even on freestanding compilers. */
28482
28483#ifdef __STDC__
28484# include <limits.h>
28485#else
28486# include <assert.h>
28487#endif
28488
28489#undef $ac_func
28490
28491/* Override any gcc2 internal prototype to avoid an error. */
28492#ifdef __cplusplus
28493extern "C"
28494{
28495#endif
28496/* We use char because int might match the return type of a gcc2
28497 builtin and then its argument prototype would still apply. */
28498char $ac_func ();
28499/* The GNU C library defines this for functions which it implements
28500 to always fail with ENOSYS. Some functions are actually named
28501 something starting with __ and the normal name is an alias. */
28502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28503choke me
28504#else
28505char (*f) () = $ac_func;
28506#endif
28507#ifdef __cplusplus
28508}
28509#endif
28510
28511int
28512main ()
28513{
28514return f != $ac_func;
28515 ;
28516 return 0;
28517}
28518_ACEOF
28519rm -f conftest.$ac_objext conftest$ac_exeext
28520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28521 (eval $ac_link) 2>conftest.er1
28522 ac_status=$?
28523 grep -v '^ *+' conftest.er1 >conftest.err
28524 rm -f conftest.er1
28525 cat conftest.err >&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); } &&
28528 { ac_try='test -z "$ac_c_werror_flag"
28529 || test ! -s conftest.err'
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28532 ac_status=$?
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; } &&
28535 { ac_try='test -s conftest$ac_exeext'
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28538 ac_status=$?
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; }; then
28541 eval "$as_ac_var=yes"
28542else
28543 echo "$as_me: failed program was:" >&5
28544sed 's/^/| /' conftest.$ac_ext >&5
28545
28546eval "$as_ac_var=no"
28547fi
28548rm -f conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
28550fi
28551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28553if test `eval echo '${'$as_ac_var'}'` = yes; then
28554
28555cat >>confdefs.h <<_ACEOF
28556#define CRAY_STACKSEG_END $ac_func
28557_ACEOF
28558
28559 break
28560fi
28561
28562 done
28563fi
28564
28565echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28566echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28567if test "${ac_cv_c_stack_direction+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28569else
28570 if test "$cross_compiling" = yes; then
28571 ac_cv_c_stack_direction=0
28572else
28573 cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
28579int
28580find_stack_direction ()
28581{
28582 static char *addr = 0;
28583 auto char dummy;
28584 if (addr == 0)
28585 {
28586 addr = &dummy;
28587 return find_stack_direction ();
28588 }
John Criswell0021c312004-02-13 21:57:29 +000028589 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028590 return (&dummy > addr) ? 1 : -1;
28591}
John Criswell0021c312004-02-13 21:57:29 +000028592
John Criswell0021c312004-02-13 21:57:29 +000028593int
28594main ()
28595{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028596 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028597}
28598_ACEOF
28599rm -f conftest$ac_exeext
28600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28601 (eval $ac_link) 2>&5
28602 ac_status=$?
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028610 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028611else
28612 echo "$as_me: program exited with status $ac_status" >&5
28613echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028617ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028618fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028620fi
28621fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028622echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28623echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28624
28625cat >>confdefs.h <<_ACEOF
28626#define STACK_DIRECTION $ac_cv_c_stack_direction
28627_ACEOF
28628
28629
John Criswell0021c312004-02-13 21:57:29 +000028630fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028631
28632
28633echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28634echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28635if test "${ac_cv_func_rand48+set}" = set; then
28636 echo $ECHO_N "(cached) $ECHO_C" >&6
28637else
28638 ac_ext=cc
28639ac_cpp='$CXXCPP $CPPFLAGS'
28640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28643
28644 cat >conftest.$ac_ext <<_ACEOF
28645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
28650#include <stdlib.h>
28651int
28652main ()
28653{
28654srand48(0);lrand48();drand48();
28655 ;
28656 return 0;
28657}
28658_ACEOF
28659rm -f conftest.$ac_objext
28660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28661 (eval $ac_compile) 2>conftest.er1
28662 ac_status=$?
28663 grep -v '^ *+' conftest.er1 >conftest.err
28664 rm -f conftest.er1
28665 cat conftest.err >&5
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); } &&
28668 { ac_try='test -z "$ac_cxx_werror_flag"
28669 || test ! -s conftest.err'
28670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28671 (eval $ac_try) 2>&5
28672 ac_status=$?
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; } &&
28675 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28681 ac_cv_func_rand48=yes
28682else
28683 echo "$as_me: failed program was:" >&5
28684sed 's/^/| /' conftest.$ac_ext >&5
28685
28686ac_cv_func_rand48=no
28687fi
28688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28689 ac_ext=c
28690ac_cpp='$CPP $CPPFLAGS'
28691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28693ac_compiler_gnu=$ac_cv_c_compiler_gnu
28694
28695fi
28696echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28697echo "${ECHO_T}$ac_cv_func_rand48" >&6
28698
28699if test "$ac_cv_func_rand48" = "yes" ; then
28700
28701cat >>confdefs.h <<\_ACEOF
28702#define HAVE_RAND48 1
28703_ACEOF
28704
28705fi
John Criswell0021c312004-02-13 21:57:29 +000028706
28707
John Criswell7a73b802003-06-30 21:59:07 +000028708echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28709echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28710if test "${ac_cv_cxx_namespaces+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28712else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028713 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028714ac_cpp='$CXXCPP $CPPFLAGS'
28715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28718
28719 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028720/* confdefs.h. */
28721_ACEOF
28722cat confdefs.h >>conftest.$ac_ext
28723cat >>conftest.$ac_ext <<_ACEOF
28724/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028725namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028726int
28727main ()
28728{
28729using namespace Outer::Inner; return i;
28730 ;
28731 return 0;
28732}
28733_ACEOF
28734rm -f conftest.$ac_objext
28735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028736 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028738 grep -v '^ *+' conftest.er1 >conftest.err
28739 rm -f conftest.er1
28740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028743 { ac_try='test -z "$ac_cxx_werror_flag"
28744 || test ! -s conftest.err'
28745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746 (eval $ac_try) 2>&5
28747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28752 (eval $ac_try) 2>&5
28753 ac_status=$?
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 ac_cv_cxx_namespaces=yes
28757else
28758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028759sed 's/^/| /' conftest.$ac_ext >&5
28760
John Criswell7a73b802003-06-30 21:59:07 +000028761ac_cv_cxx_namespaces=no
28762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028764 ac_ext=c
28765ac_cpp='$CPP $CPPFLAGS'
28766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768ac_compiler_gnu=$ac_cv_c_compiler_gnu
28769
28770
28771fi
28772echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28773echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28774if test "$ac_cv_cxx_namespaces" = yes; then
28775
28776cat >>confdefs.h <<\_ACEOF
28777#define HAVE_NAMESPACES
28778_ACEOF
28779
28780fi
28781
Brian Gaeke90583492003-11-10 03:06:28 +000028782echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28783echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28784if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028785 echo $ECHO_N "(cached) $ECHO_C" >&6
28786else
28787
John Criswell7a73b802003-06-30 21:59:07 +000028788 ac_ext=cc
28789ac_cpp='$CXXCPP $CPPFLAGS'
28790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28793
28794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028795/* confdefs.h. */
28796_ACEOF
28797cat confdefs.h >>conftest.$ac_ext
28798cat >>conftest.$ac_ext <<_ACEOF
28799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028800#include <ext/hash_map>
28801#ifdef HAVE_NAMESPACES
28802using namespace std;
28803#endif
John Criswell7a73b802003-06-30 21:59:07 +000028804int
28805main ()
28806{
Brian Gaeke90583492003-11-10 03:06:28 +000028807hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028808 ;
28809 return 0;
28810}
28811_ACEOF
28812rm -f conftest.$ac_objext
28813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028814 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028815 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028816 grep -v '^ *+' conftest.er1 >conftest.err
28817 rm -f conftest.er1
28818 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028821 { ac_try='test -z "$ac_cxx_werror_flag"
28822 || test ! -s conftest.err'
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28825 ac_status=$?
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; } &&
28828 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830 (eval $ac_try) 2>&5
28831 ac_status=$?
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028834 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028835else
28836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028837sed 's/^/| /' conftest.$ac_ext >&5
28838
Brian Gaeke90583492003-11-10 03:06:28 +000028839ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028840fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028842 ac_ext=c
28843ac_cpp='$CPP $CPPFLAGS'
28844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28846ac_compiler_gnu=$ac_cv_c_compiler_gnu
28847
John Criswell7a73b802003-06-30 21:59:07 +000028848fi
Brian Gaeke90583492003-11-10 03:06:28 +000028849echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28850echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028851 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28852 then
John Criswell9f011862004-09-24 18:28:00 +000028853
28854cat >>confdefs.h <<\_ACEOF
28855#define HAVE_STD_EXT_HASH_MAP 1
28856_ACEOF
28857
28858 else
28859
28860cat >>confdefs.h <<\_ACEOF
28861#define HAVE_STD_EXT_HASH_MAP 0
28862_ACEOF
28863
Brian Gaeke90583492003-11-10 03:06:28 +000028864 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028865
Brian Gaeke90583492003-11-10 03:06:28 +000028866 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28867echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28868if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28869 echo $ECHO_N "(cached) $ECHO_C" >&6
28870else
28871
Brian Gaeke90583492003-11-10 03:06:28 +000028872 ac_ext=cc
28873ac_cpp='$CXXCPP $CPPFLAGS'
28874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28877
28878 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028879/* confdefs.h. */
28880_ACEOF
28881cat confdefs.h >>conftest.$ac_ext
28882cat >>conftest.$ac_ext <<_ACEOF
28883/* end confdefs.h. */
28884#include <ext/hash_map>
28885#ifdef HAVE_NAMESPACES
28886using namespace __gnu_cxx;
28887#endif
28888int
28889main ()
28890{
28891hash_map<int,int> t;
28892 ;
28893 return 0;
28894}
28895_ACEOF
28896rm -f conftest.$ac_objext
28897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028898 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028899 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028900 grep -v '^ *+' conftest.er1 >conftest.err
28901 rm -f conftest.er1
28902 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028905 { ac_try='test -z "$ac_cxx_werror_flag"
28906 || test ! -s conftest.err'
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; } &&
28912 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914 (eval $ac_try) 2>&5
28915 ac_status=$?
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); }; }; then
28918 ac_cv_cxx_have_gnu_ext_hash_map=yes
28919else
28920 echo "$as_me: failed program was:" >&5
28921sed 's/^/| /' conftest.$ac_ext >&5
28922
28923ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028924fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028926 ac_ext=c
28927ac_cpp='$CPP $CPPFLAGS'
28928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28930ac_compiler_gnu=$ac_cv_c_compiler_gnu
28931
28932fi
28933echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28934echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028935 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28936 then
John Criswell9f011862004-09-24 18:28:00 +000028937
28938cat >>confdefs.h <<\_ACEOF
28939#define HAVE_GNU_EXT_HASH_MAP 1
28940_ACEOF
28941
28942 else
28943
28944cat >>confdefs.h <<\_ACEOF
28945#define HAVE_GNU_EXT_HASH_MAP 0
28946_ACEOF
28947
Brian Gaeke90583492003-11-10 03:06:28 +000028948 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028949
Brian Gaeke90583492003-11-10 03:06:28 +000028950 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28951echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28952if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28953 echo $ECHO_N "(cached) $ECHO_C" >&6
28954else
John Criswell7a73b802003-06-30 21:59:07 +000028955
Brian Gaeke90583492003-11-10 03:06:28 +000028956 ac_ext=cc
28957ac_cpp='$CXXCPP $CPPFLAGS'
28958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28961
28962 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028963/* confdefs.h. */
28964_ACEOF
28965cat confdefs.h >>conftest.$ac_ext
28966cat >>conftest.$ac_ext <<_ACEOF
28967/* end confdefs.h. */
28968#include <hash_map>
28969int
28970main ()
28971{
28972hash_map<int,int> t;
28973 ;
28974 return 0;
28975}
28976_ACEOF
28977rm -f conftest.$ac_objext
28978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028979 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028980 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028981 grep -v '^ *+' conftest.er1 >conftest.err
28982 rm -f conftest.er1
28983 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028986 { ac_try='test -z "$ac_cxx_werror_flag"
28987 || test ! -s conftest.err'
28988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 (eval $ac_try) 2>&5
28990 ac_status=$?
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); }; } &&
28993 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28995 (eval $ac_try) 2>&5
28996 ac_status=$?
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); }; }; then
28999 ac_cv_cxx_have_global_hash_map=yes
29000else
29001 echo "$as_me: failed program was:" >&5
29002sed 's/^/| /' conftest.$ac_ext >&5
29003
29004ac_cv_cxx_have_global_hash_map=no
29005fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029007 ac_ext=c
29008ac_cpp='$CPP $CPPFLAGS'
29009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29011ac_compiler_gnu=$ac_cv_c_compiler_gnu
29012
29013fi
29014echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29015echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029016 if test "$ac_cv_cxx_have_global_hash_map" = yes
29017 then
John Criswell9f011862004-09-24 18:28:00 +000029018
29019cat >>confdefs.h <<\_ACEOF
29020#define HAVE_GLOBAL_HASH_MAP 1
29021_ACEOF
29022
29023 else
29024
29025cat >>confdefs.h <<\_ACEOF
29026#define HAVE_GLOBAL_HASH_MAP 0
29027_ACEOF
29028
Brian Gaeke90583492003-11-10 03:06:28 +000029029 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029030
Brian Gaeke90583492003-11-10 03:06:28 +000029031echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29032echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29033if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029034 echo $ECHO_N "(cached) $ECHO_C" >&6
29035else
29036
John Criswell7a73b802003-06-30 21:59:07 +000029037 ac_ext=cc
29038ac_cpp='$CXXCPP $CPPFLAGS'
29039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29042
29043 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029044/* confdefs.h. */
29045_ACEOF
29046cat confdefs.h >>conftest.$ac_ext
29047cat >>conftest.$ac_ext <<_ACEOF
29048/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029049#include <ext/hash_set>
29050#ifdef HAVE_NAMESPACES
29051using namespace std;
29052#endif
John Criswell7a73b802003-06-30 21:59:07 +000029053int
29054main ()
29055{
Brian Gaeke90583492003-11-10 03:06:28 +000029056hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029057 ;
29058 return 0;
29059}
29060_ACEOF
29061rm -f conftest.$ac_objext
29062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029063 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029065 grep -v '^ *+' conftest.er1 >conftest.err
29066 rm -f conftest.er1
29067 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029070 { ac_try='test -z "$ac_cxx_werror_flag"
29071 || test ! -s conftest.err'
29072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073 (eval $ac_try) 2>&5
29074 ac_status=$?
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; } &&
29077 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079 (eval $ac_try) 2>&5
29080 ac_status=$?
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029083 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029084else
29085 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029086sed 's/^/| /' conftest.$ac_ext >&5
29087
Brian Gaeke90583492003-11-10 03:06:28 +000029088ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029089fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029091 ac_ext=c
29092ac_cpp='$CPP $CPPFLAGS'
29093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29095ac_compiler_gnu=$ac_cv_c_compiler_gnu
29096
29097fi
29098echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29099echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029100 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29101 then
John Criswell9f011862004-09-24 18:28:00 +000029102
29103cat >>confdefs.h <<\_ACEOF
29104#define HAVE_STD_EXT_HASH_SET 1
29105_ACEOF
29106
29107 else
29108
29109cat >>confdefs.h <<\_ACEOF
29110#define HAVE_STD_EXT_HASH_SET 0
29111_ACEOF
29112
Brian Gaeke90583492003-11-10 03:06:28 +000029113 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029114
Brian Gaeke90583492003-11-10 03:06:28 +000029115 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29116echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29117if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29118 echo $ECHO_N "(cached) $ECHO_C" >&6
29119else
29120
Brian Gaeke90583492003-11-10 03:06:28 +000029121 ac_ext=cc
29122ac_cpp='$CXXCPP $CPPFLAGS'
29123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29126
John Criswell7a73b802003-06-30 21:59:07 +000029127 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029128/* confdefs.h. */
29129_ACEOF
29130cat confdefs.h >>conftest.$ac_ext
29131cat >>conftest.$ac_ext <<_ACEOF
29132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029133#include <ext/hash_set>
29134#ifdef HAVE_NAMESPACES
29135using namespace __gnu_cxx;
29136#endif
John Criswell7a73b802003-06-30 21:59:07 +000029137int
29138main ()
29139{
Brian Gaeke90583492003-11-10 03:06:28 +000029140hash_set<int> t;
29141 ;
29142 return 0;
29143}
29144_ACEOF
29145rm -f conftest.$ac_objext
29146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029147 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029148 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029149 grep -v '^ *+' conftest.er1 >conftest.err
29150 rm -f conftest.er1
29151 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029154 { ac_try='test -z "$ac_cxx_werror_flag"
29155 || test ! -s conftest.err'
29156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157 (eval $ac_try) 2>&5
29158 ac_status=$?
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); }; } &&
29161 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29163 (eval $ac_try) 2>&5
29164 ac_status=$?
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); }; }; then
29167 ac_cv_cxx_have_gnu_ext_hash_set=yes
29168else
29169 echo "$as_me: failed program was:" >&5
29170sed 's/^/| /' conftest.$ac_ext >&5
29171
29172ac_cv_cxx_have_gnu_ext_hash_set=no
29173fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029175 ac_ext=c
29176ac_cpp='$CPP $CPPFLAGS'
29177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29179ac_compiler_gnu=$ac_cv_c_compiler_gnu
29180
29181fi
29182echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29183echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029184 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29185 then
John Criswell9f011862004-09-24 18:28:00 +000029186
29187cat >>confdefs.h <<\_ACEOF
29188#define HAVE_GNU_EXT_HASH_SET 1
29189_ACEOF
29190
29191 else
29192
29193cat >>confdefs.h <<\_ACEOF
29194#define HAVE_GNU_EXT_HASH_SET 0
29195_ACEOF
29196
Brian Gaeke90583492003-11-10 03:06:28 +000029197 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029198
Brian Gaeke90583492003-11-10 03:06:28 +000029199 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29200echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29201if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29202 echo $ECHO_N "(cached) $ECHO_C" >&6
29203else
29204
Brian Gaeke90583492003-11-10 03:06:28 +000029205 ac_ext=cc
29206ac_cpp='$CXXCPP $CPPFLAGS'
29207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29210
29211 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029212/* confdefs.h. */
29213_ACEOF
29214cat confdefs.h >>conftest.$ac_ext
29215cat >>conftest.$ac_ext <<_ACEOF
29216/* end confdefs.h. */
29217#include <hash_set>
29218int
29219main ()
29220{
John Criswell7a73b802003-06-30 21:59:07 +000029221hash_set<int> t; return 0;
29222 ;
29223 return 0;
29224}
29225_ACEOF
29226rm -f conftest.$ac_objext
29227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029228 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029229 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029230 grep -v '^ *+' conftest.er1 >conftest.err
29231 rm -f conftest.er1
29232 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029235 { ac_try='test -z "$ac_cxx_werror_flag"
29236 || test ! -s conftest.err'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29239 ac_status=$?
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; } &&
29242 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029248 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029249else
29250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029251sed 's/^/| /' conftest.$ac_ext >&5
29252
Brian Gaeke90583492003-11-10 03:06:28 +000029253ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029254fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029256 ac_ext=c
29257ac_cpp='$CPP $CPPFLAGS'
29258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29260ac_compiler_gnu=$ac_cv_c_compiler_gnu
29261
John Criswell7a73b802003-06-30 21:59:07 +000029262fi
Brian Gaeke90583492003-11-10 03:06:28 +000029263echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29264echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029265 if test "$ac_cv_cxx_have_global_hash_set" = yes
29266 then
John Criswell9f011862004-09-24 18:28:00 +000029267
29268cat >>confdefs.h <<\_ACEOF
29269#define HAVE_GLOBAL_HASH_SET 1
29270_ACEOF
29271
29272 else
29273
29274cat >>confdefs.h <<\_ACEOF
29275#define HAVE_GLOBAL_HASH_SET 0
29276_ACEOF
29277
Brian Gaeke90583492003-11-10 03:06:28 +000029278 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029279
John Criswell7a73b802003-06-30 21:59:07 +000029280echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29281echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29282if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29283 echo $ECHO_N "(cached) $ECHO_C" >&6
29284else
29285
John Criswell7a73b802003-06-30 21:59:07 +000029286 ac_ext=cc
29287ac_cpp='$CXXCPP $CPPFLAGS'
29288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29291
29292 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029293/* confdefs.h. */
29294_ACEOF
29295cat confdefs.h >>conftest.$ac_ext
29296cat >>conftest.$ac_ext <<_ACEOF
29297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029298#include <iterator>
29299#ifdef HAVE_NAMESPACES
29300using namespace std;
29301#endif
John Criswell7a73b802003-06-30 21:59:07 +000029302int
29303main ()
29304{
29305iterator<int,int,int> t; return 0;
29306 ;
29307 return 0;
29308}
29309_ACEOF
29310rm -f conftest.$ac_objext
29311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029312 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029314 grep -v '^ *+' conftest.er1 >conftest.err
29315 rm -f conftest.er1
29316 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029319 { ac_try='test -z "$ac_cxx_werror_flag"
29320 || test ! -s conftest.err'
29321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; } &&
29326 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; }; then
29332 ac_cv_cxx_have_std_iterator=yes
29333else
29334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029335sed 's/^/| /' conftest.$ac_ext >&5
29336
John Criswell7a73b802003-06-30 21:59:07 +000029337ac_cv_cxx_have_std_iterator=no
29338fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029340 ac_ext=c
29341ac_cpp='$CPP $CPPFLAGS'
29342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29344ac_compiler_gnu=$ac_cv_c_compiler_gnu
29345
29346
29347fi
29348echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29349echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029350if test "$ac_cv_cxx_have_std_iterator" = yes
29351then
John Criswell40468462004-09-24 21:19:06 +000029352
29353cat >>confdefs.h <<\_ACEOF
29354#define HAVE_STD_ITERATOR 1
29355_ACEOF
29356
29357else
29358
29359cat >>confdefs.h <<\_ACEOF
29360#define HAVE_STD_ITERATOR 0
29361_ACEOF
29362
John Criswell7a73b802003-06-30 21:59:07 +000029363fi
29364
29365echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29366echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29367if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29369else
29370
John Criswell7a73b802003-06-30 21:59:07 +000029371 ac_ext=cc
29372ac_cpp='$CXXCPP $CPPFLAGS'
29373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29376
29377 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029383#include <iterator>
29384#ifdef HAVE_NAMESPACES
29385using namespace std;
29386#endif
John Criswell7a73b802003-06-30 21:59:07 +000029387int
29388main ()
29389{
John Criswellc78022e2003-07-29 19:11:58 +000029390bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029391 ;
29392 return 0;
29393}
29394_ACEOF
29395rm -f conftest.$ac_objext
29396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029397 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029404 { ac_try='test -z "$ac_cxx_werror_flag"
29405 || test ! -s conftest.err'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29408 ac_status=$?
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; } &&
29411 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413 (eval $ac_try) 2>&5
29414 ac_status=$?
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
29417 ac_cv_cxx_have_bi_iterator=yes
29418else
29419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029420sed 's/^/| /' conftest.$ac_ext >&5
29421
John Criswell7a73b802003-06-30 21:59:07 +000029422ac_cv_cxx_have_bi_iterator=no
29423fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029425 ac_ext=c
29426ac_cpp='$CPP $CPPFLAGS'
29427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29429ac_compiler_gnu=$ac_cv_c_compiler_gnu
29430
29431
29432fi
29433echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29434echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029435if test "$ac_cv_cxx_have_bi_iterator" = yes
29436then
John Criswell40468462004-09-24 21:19:06 +000029437
29438cat >>confdefs.h <<\_ACEOF
29439#define HAVE_BI_ITERATOR 1
29440_ACEOF
29441
29442else
29443
29444cat >>confdefs.h <<\_ACEOF
29445#define HAVE_BI_ITERATOR 0
29446_ACEOF
29447
John Criswell7a73b802003-06-30 21:59:07 +000029448fi
29449
29450echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29451echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29452if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29454else
29455
John Criswell7a73b802003-06-30 21:59:07 +000029456 ac_ext=cc
29457ac_cpp='$CXXCPP $CPPFLAGS'
29458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29461
29462 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029463/* confdefs.h. */
29464_ACEOF
29465cat confdefs.h >>conftest.$ac_ext
29466cat >>conftest.$ac_ext <<_ACEOF
29467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029468#include <iterator>
29469#ifdef HAVE_NAMESPACES
29470using namespace std;
29471#endif
John Criswell7a73b802003-06-30 21:59:07 +000029472int
29473main ()
29474{
John Criswellc78022e2003-07-29 19:11:58 +000029475forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029476 ;
29477 return 0;
29478}
29479_ACEOF
29480rm -f conftest.$ac_objext
29481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029482 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029483 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029484 grep -v '^ *+' conftest.er1 >conftest.err
29485 rm -f conftest.er1
29486 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029489 { ac_try='test -z "$ac_cxx_werror_flag"
29490 || test ! -s conftest.err'
29491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492 (eval $ac_try) 2>&5
29493 ac_status=$?
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; } &&
29496 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498 (eval $ac_try) 2>&5
29499 ac_status=$?
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; }; then
29502 ac_cv_cxx_have_fwd_iterator=yes
29503else
29504 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029505sed 's/^/| /' conftest.$ac_ext >&5
29506
John Criswell7a73b802003-06-30 21:59:07 +000029507ac_cv_cxx_have_fwd_iterator=no
29508fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029510 ac_ext=c
29511ac_cpp='$CPP $CPPFLAGS'
29512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29514ac_compiler_gnu=$ac_cv_c_compiler_gnu
29515
29516
29517fi
29518echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29519echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029520if test "$ac_cv_cxx_have_fwd_iterator" = yes
29521then
John Criswell40468462004-09-24 21:19:06 +000029522
29523cat >>confdefs.h <<\_ACEOF
29524#define HAVE_FWD_ITERATOR 1
29525_ACEOF
29526
29527else
29528
29529cat >>confdefs.h <<\_ACEOF
29530#define HAVE_FWD_ITERATOR 0
29531_ACEOF
29532
John Criswell7a73b802003-06-30 21:59:07 +000029533fi
29534
29535
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029536echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29537echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29538if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29539 echo $ECHO_N "(cached) $ECHO_C" >&6
29540else
29541 ac_ext=cc
29542ac_cpp='$CXXCPP $CPPFLAGS'
29543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29546
Reid Spencerabec8f92004-10-27 23:03:44 +000029547 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029548/* confdefs.h. */
29549_ACEOF
29550cat confdefs.h >>conftest.$ac_ext
29551cat >>conftest.$ac_ext <<_ACEOF
29552/* end confdefs.h. */
29553#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029554int
29555main ()
29556{
29557float f; isnan(f);
29558 ;
29559 return 0;
29560}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029561_ACEOF
29562rm -f conftest.$ac_objext
29563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029564 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029565 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029566 grep -v '^ *+' conftest.er1 >conftest.err
29567 rm -f conftest.er1
29568 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029571 { ac_try='test -z "$ac_cxx_werror_flag"
29572 || test ! -s conftest.err'
29573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29574 (eval $ac_try) 2>&5
29575 ac_status=$?
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); }; } &&
29578 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29580 (eval $ac_try) 2>&5
29581 ac_status=$?
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; }; then
29584 ac_cv_func_isnan_in_math_h=yes
29585else
29586 echo "$as_me: failed program was:" >&5
29587sed 's/^/| /' conftest.$ac_ext >&5
29588
29589ac_cv_func_isnan_in_math_h=no
29590fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029592 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029593ac_cpp='$CPP $CPPFLAGS'
29594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29596ac_compiler_gnu=$ac_cv_c_compiler_gnu
29597
29598fi
29599echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29600echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029601
29602
29603if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029604
29605cat >>confdefs.h <<\_ACEOF
29606#define HAVE_ISNAN_IN_MATH_H 1
29607_ACEOF
29608
Reid Spencerabec8f92004-10-27 23:03:44 +000029609fi
29610
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029611echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29612echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29613if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29615else
29616 ac_ext=cc
29617ac_cpp='$CXXCPP $CPPFLAGS'
29618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29621
Reid Spencerabec8f92004-10-27 23:03:44 +000029622 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029623/* confdefs.h. */
29624_ACEOF
29625cat confdefs.h >>conftest.$ac_ext
29626cat >>conftest.$ac_ext <<_ACEOF
29627/* end confdefs.h. */
29628#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029629int
29630main ()
29631{
29632float f; isnan(f);
29633 ;
29634 return 0;
29635}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029636_ACEOF
29637rm -f conftest.$ac_objext
29638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029639 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029640 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029641 grep -v '^ *+' conftest.er1 >conftest.err
29642 rm -f conftest.er1
29643 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029646 { ac_try='test -z "$ac_cxx_werror_flag"
29647 || test ! -s conftest.err'
29648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29649 (eval $ac_try) 2>&5
29650 ac_status=$?
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); }; } &&
29653 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655 (eval $ac_try) 2>&5
29656 ac_status=$?
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); }; }; then
29659 ac_cv_func_isnan_in_cmath=yes
29660else
29661 echo "$as_me: failed program was:" >&5
29662sed 's/^/| /' conftest.$ac_ext >&5
29663
29664ac_cv_func_isnan_in_cmath=no
29665fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029667 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029668ac_cpp='$CPP $CPPFLAGS'
29669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29671ac_compiler_gnu=$ac_cv_c_compiler_gnu
29672
29673fi
29674echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29675echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029676
29677if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029678
29679cat >>confdefs.h <<\_ACEOF
29680#define HAVE_ISNAN_IN_CMATH 1
29681_ACEOF
29682
Reid Spencerabec8f92004-10-27 23:03:44 +000029683fi
29684
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029685echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29686echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29687if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29689else
29690 ac_ext=cc
29691ac_cpp='$CXXCPP $CPPFLAGS'
29692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29695
Reid Spencerabec8f92004-10-27 23:03:44 +000029696 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029697/* confdefs.h. */
29698_ACEOF
29699cat confdefs.h >>conftest.$ac_ext
29700cat >>conftest.$ac_ext <<_ACEOF
29701/* end confdefs.h. */
29702#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029703int
29704main ()
29705{
29706float f; std::isnan(f);
29707 ;
29708 return 0;
29709}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029710_ACEOF
29711rm -f conftest.$ac_objext
29712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029713 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029715 grep -v '^ *+' conftest.er1 >conftest.err
29716 rm -f conftest.er1
29717 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029720 { ac_try='test -z "$ac_cxx_werror_flag"
29721 || test ! -s conftest.err'
29722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29723 (eval $ac_try) 2>&5
29724 ac_status=$?
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; } &&
29727 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729 (eval $ac_try) 2>&5
29730 ac_status=$?
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; }; then
29733 ac_cv_func_std_isnan_in_cmath=yes
29734else
29735 echo "$as_me: failed program was:" >&5
29736sed 's/^/| /' conftest.$ac_ext >&5
29737
29738ac_cv_func_std_isnan_in_cmath=no
29739fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029741 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029742ac_cpp='$CPP $CPPFLAGS'
29743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29745ac_compiler_gnu=$ac_cv_c_compiler_gnu
29746
29747fi
29748echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29749echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029750
29751if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029752
29753cat >>confdefs.h <<\_ACEOF
29754#define HAVE_STD_ISNAN_IN_CMATH 1
29755_ACEOF
29756
Reid Spencerabec8f92004-10-27 23:03:44 +000029757fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029758
29759
Brian Gaeke52a551d2004-07-21 03:14:12 +000029760echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29761echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29762if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29764else
29765 ac_ext=cc
29766ac_cpp='$CXXCPP $CPPFLAGS'
29767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29770
Reid Spencerabec8f92004-10-27 23:03:44 +000029771 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029772/* confdefs.h. */
29773_ACEOF
29774cat confdefs.h >>conftest.$ac_ext
29775cat >>conftest.$ac_ext <<_ACEOF
29776/* end confdefs.h. */
29777#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029778int
29779main ()
29780{
29781float f; isinf(f);
29782 ;
29783 return 0;
29784}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029785_ACEOF
29786rm -f conftest.$ac_objext
29787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029788 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029790 grep -v '^ *+' conftest.er1 >conftest.err
29791 rm -f conftest.er1
29792 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029795 { ac_try='test -z "$ac_cxx_werror_flag"
29796 || test ! -s conftest.err'
29797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798 (eval $ac_try) 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; } &&
29802 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; }; then
29808 ac_cv_func_isinf_in_math_h=yes
29809else
29810 echo "$as_me: failed program was:" >&5
29811sed 's/^/| /' conftest.$ac_ext >&5
29812
29813ac_cv_func_isinf_in_math_h=no
29814fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029816 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029817ac_cpp='$CPP $CPPFLAGS'
29818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29820ac_compiler_gnu=$ac_cv_c_compiler_gnu
29821
29822fi
29823echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29824echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029825
29826if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029827
29828cat >>confdefs.h <<\_ACEOF
29829#define HAVE_ISINF_IN_MATH_H 1
29830_ACEOF
29831
Reid Spencerabec8f92004-10-27 23:03:44 +000029832fi
29833
Brian Gaeke52a551d2004-07-21 03:14:12 +000029834echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29835echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29836if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29837 echo $ECHO_N "(cached) $ECHO_C" >&6
29838else
29839 ac_ext=cc
29840ac_cpp='$CXXCPP $CPPFLAGS'
29841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29844
Reid Spencerabec8f92004-10-27 23:03:44 +000029845 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029846/* confdefs.h. */
29847_ACEOF
29848cat confdefs.h >>conftest.$ac_ext
29849cat >>conftest.$ac_ext <<_ACEOF
29850/* end confdefs.h. */
29851#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029852int
29853main ()
29854{
29855float f; isinf(f);
29856 ;
29857 return 0;
29858}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029859_ACEOF
29860rm -f conftest.$ac_objext
29861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029862 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029864 grep -v '^ *+' conftest.er1 >conftest.err
29865 rm -f conftest.er1
29866 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029869 { ac_try='test -z "$ac_cxx_werror_flag"
29870 || test ! -s conftest.err'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29873 ac_status=$?
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; } &&
29876 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29879 ac_status=$?
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; }; then
29882 ac_cv_func_isinf_in_cmath=yes
29883else
29884 echo "$as_me: failed program was:" >&5
29885sed 's/^/| /' conftest.$ac_ext >&5
29886
29887ac_cv_func_isinf_in_cmath=no
29888fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029890 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029891ac_cpp='$CPP $CPPFLAGS'
29892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29894ac_compiler_gnu=$ac_cv_c_compiler_gnu
29895
29896fi
29897echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29898echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029899
29900if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029901
29902cat >>confdefs.h <<\_ACEOF
29903#define HAVE_ISINF_IN_CMATH 1
29904_ACEOF
29905
Reid Spencerabec8f92004-10-27 23:03:44 +000029906fi
29907
Brian Gaeke52a551d2004-07-21 03:14:12 +000029908echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29909echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29910if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29911 echo $ECHO_N "(cached) $ECHO_C" >&6
29912else
29913 ac_ext=cc
29914ac_cpp='$CXXCPP $CPPFLAGS'
29915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29918
Reid Spencerabec8f92004-10-27 23:03:44 +000029919 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029920/* confdefs.h. */
29921_ACEOF
29922cat confdefs.h >>conftest.$ac_ext
29923cat >>conftest.$ac_ext <<_ACEOF
29924/* end confdefs.h. */
29925#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029926int
29927main ()
29928{
29929float f; std::isinf(f)}
29930 ;
29931 return 0;
29932}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029933_ACEOF
29934rm -f conftest.$ac_objext
29935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029936 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029938 grep -v '^ *+' conftest.er1 >conftest.err
29939 rm -f conftest.er1
29940 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029943 { ac_try='test -z "$ac_cxx_werror_flag"
29944 || test ! -s conftest.err'
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29947 ac_status=$?
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; } &&
29950 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29952 (eval $ac_try) 2>&5
29953 ac_status=$?
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); }; }; then
29956 ac_cv_func_std_isinf_in_cmath=yes
29957else
29958 echo "$as_me: failed program was:" >&5
29959sed 's/^/| /' conftest.$ac_ext >&5
29960
29961ac_cv_func_std_isinf_in_cmath=no
29962fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029964 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029965ac_cpp='$CPP $CPPFLAGS'
29966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29968ac_compiler_gnu=$ac_cv_c_compiler_gnu
29969
29970fi
29971echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29972echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029973
29974if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029975
29976cat >>confdefs.h <<\_ACEOF
29977#define HAVE_STD_ISINF_IN_CMATH 1
29978_ACEOF
29979
Reid Spencerabec8f92004-10-27 23:03:44 +000029980fi
29981
Brian Gaeked59a6472004-07-21 03:33:58 +000029982echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29983echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29984if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29986else
29987 ac_ext=cc
29988ac_cpp='$CXXCPP $CPPFLAGS'
29989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29992
Reid Spencerabec8f92004-10-27 23:03:44 +000029993 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029994/* confdefs.h. */
29995_ACEOF
29996cat confdefs.h >>conftest.$ac_ext
29997cat >>conftest.$ac_ext <<_ACEOF
29998/* end confdefs.h. */
29999#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030000int
30001main ()
30002{
30003float f; finite(f);
30004 ;
30005 return 0;
30006}
Brian Gaeked59a6472004-07-21 03:33:58 +000030007_ACEOF
30008rm -f conftest.$ac_objext
30009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030010 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000030011 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030012 grep -v '^ *+' conftest.er1 >conftest.err
30013 rm -f conftest.er1
30014 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030017 { ac_try='test -z "$ac_cxx_werror_flag"
30018 || test ! -s conftest.err'
30019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30020 (eval $ac_try) 2>&5
30021 ac_status=$?
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; } &&
30024 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30026 (eval $ac_try) 2>&5
30027 ac_status=$?
30028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029 (exit $ac_status); }; }; then
30030 ac_cv_func_finite_in_ieeefp_h=yes
30031else
30032 echo "$as_me: failed program was:" >&5
30033sed 's/^/| /' conftest.$ac_ext >&5
30034
30035ac_cv_func_finite_in_ieeefp_h=no
30036fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030038 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030039ac_cpp='$CPP $CPPFLAGS'
30040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30042ac_compiler_gnu=$ac_cv_c_compiler_gnu
30043
30044fi
30045echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30046echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030047
Brian Gaeke6802b552004-10-28 05:06:45 +000030048if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030049
30050cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030051#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030052_ACEOF
30053
Reid Spencerabec8f92004-10-27 23:03:44 +000030054fi
30055
30056
30057
John Criswell7a73b802003-06-30 21:59:07 +000030058
30059
30060for ac_header in stdlib.h unistd.h
30061do
30062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30063if eval "test \"\${$as_ac_Header+set}\" = set"; then
30064 echo "$as_me:$LINENO: checking for $ac_header" >&5
30065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30066if eval "test \"\${$as_ac_Header+set}\" = set"; then
30067 echo $ECHO_N "(cached) $ECHO_C" >&6
30068fi
30069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30071else
30072 # Is the header compilable?
30073echo "$as_me:$LINENO: checking $ac_header usability" >&5
30074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30075cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030076/* confdefs.h. */
30077_ACEOF
30078cat confdefs.h >>conftest.$ac_ext
30079cat >>conftest.$ac_ext <<_ACEOF
30080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030081$ac_includes_default
30082#include <$ac_header>
30083_ACEOF
30084rm -f conftest.$ac_objext
30085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030086 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030088 grep -v '^ *+' conftest.er1 >conftest.err
30089 rm -f conftest.er1
30090 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030093 { ac_try='test -z "$ac_c_werror_flag"
30094 || test ! -s conftest.err'
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30097 ac_status=$?
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; } &&
30100 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102 (eval $ac_try) 2>&5
30103 ac_status=$?
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
30106 ac_header_compiler=yes
30107else
30108 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030109sed 's/^/| /' conftest.$ac_ext >&5
30110
John Criswell7a73b802003-06-30 21:59:07 +000030111ac_header_compiler=no
30112fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30115echo "${ECHO_T}$ac_header_compiler" >&6
30116
30117# Is the header present?
30118echo "$as_me:$LINENO: checking $ac_header presence" >&5
30119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30120cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030121/* confdefs.h. */
30122_ACEOF
30123cat confdefs.h >>conftest.$ac_ext
30124cat >>conftest.$ac_ext <<_ACEOF
30125/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030126#include <$ac_header>
30127_ACEOF
30128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30130 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030131 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030132 rm -f conftest.er1
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } >/dev/null; then
30136 if test -s conftest.err; then
30137 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030139 else
30140 ac_cpp_err=
30141 fi
30142else
30143 ac_cpp_err=yes
30144fi
30145if test -z "$ac_cpp_err"; then
30146 ac_header_preproc=yes
30147else
30148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030149sed 's/^/| /' conftest.$ac_ext >&5
30150
John Criswell7a73b802003-06-30 21:59:07 +000030151 ac_header_preproc=no
30152fi
30153rm -f conftest.err conftest.$ac_ext
30154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30155echo "${ECHO_T}$ac_header_preproc" >&6
30156
30157# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30159 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30164 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030165 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030166 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30170echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30174echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030179 (
30180 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030181## ----------------------------------- ##
30182## Report this to llvmbugs@cs.uiuc.edu ##
30183## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030184_ASBOX
30185 ) |
30186 sed "s/^/$as_me: WARNING: /" >&2
30187 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030188esac
30189echo "$as_me:$LINENO: checking for $ac_header" >&5
30190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30191if eval "test \"\${$as_ac_Header+set}\" = set"; then
30192 echo $ECHO_N "(cached) $ECHO_C" >&6
30193else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030194 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030195fi
30196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30198
30199fi
30200if test `eval echo '${'$as_ac_Header'}'` = yes; then
30201 cat >>confdefs.h <<_ACEOF
30202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30203_ACEOF
30204
30205fi
30206
30207done
30208
30209
30210for ac_func in getpagesize
30211do
30212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30213echo "$as_me:$LINENO: checking for $ac_func" >&5
30214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30215if eval "test \"\${$as_ac_var+set}\" = set"; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30217else
30218 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030219/* confdefs.h. */
30220_ACEOF
30221cat confdefs.h >>conftest.$ac_ext
30222cat >>conftest.$ac_ext <<_ACEOF
30223/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30226#define $ac_func innocuous_$ac_func
30227
John Criswell7a73b802003-06-30 21:59:07 +000030228/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030229 which can conflict with char $ac_func (); below.
30230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30231 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030232
John Criswell0c38eaf2003-09-10 15:17:25 +000030233#ifdef __STDC__
30234# include <limits.h>
30235#else
30236# include <assert.h>
30237#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030238
30239#undef $ac_func
30240
John Criswell7a73b802003-06-30 21:59:07 +000030241/* Override any gcc2 internal prototype to avoid an error. */
30242#ifdef __cplusplus
30243extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030244{
John Criswell7a73b802003-06-30 21:59:07 +000030245#endif
30246/* We use char because int might match the return type of a gcc2
30247 builtin and then its argument prototype would still apply. */
30248char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030249/* The GNU C library defines this for functions which it implements
30250 to always fail with ENOSYS. Some functions are actually named
30251 something starting with __ and the normal name is an alias. */
30252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30253choke me
30254#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030255char (*f) () = $ac_func;
30256#endif
30257#ifdef __cplusplus
30258}
John Criswell7a73b802003-06-30 21:59:07 +000030259#endif
30260
John Criswell0c38eaf2003-09-10 15:17:25 +000030261int
30262main ()
30263{
30264return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030265 ;
30266 return 0;
30267}
30268_ACEOF
30269rm -f conftest.$ac_objext conftest$ac_exeext
30270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030271 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030273 grep -v '^ *+' conftest.er1 >conftest.err
30274 rm -f conftest.er1
30275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030278 { ac_try='test -z "$ac_c_werror_flag"
30279 || test ! -s conftest.err'
30280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; } &&
30285 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287 (eval $ac_try) 2>&5
30288 ac_status=$?
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; }; then
30291 eval "$as_ac_var=yes"
30292else
30293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030294sed 's/^/| /' conftest.$ac_ext >&5
30295
John Criswell7a73b802003-06-30 21:59:07 +000030296eval "$as_ac_var=no"
30297fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030298rm -f conftest.err conftest.$ac_objext \
30299 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030300fi
30301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30303if test `eval echo '${'$as_ac_var'}'` = yes; then
30304 cat >>confdefs.h <<_ACEOF
30305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30306_ACEOF
30307
30308fi
30309done
30310
30311echo "$as_me:$LINENO: checking for working mmap" >&5
30312echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30313if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30315else
30316 if test "$cross_compiling" = yes; then
30317 ac_cv_func_mmap_fixed_mapped=no
30318else
30319 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030320/* confdefs.h. */
30321_ACEOF
30322cat confdefs.h >>conftest.$ac_ext
30323cat >>conftest.$ac_ext <<_ACEOF
30324/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030325$ac_includes_default
30326/* malloc might have been renamed as rpl_malloc. */
30327#undef malloc
30328
30329/* Thanks to Mike Haertel and Jim Avera for this test.
30330 Here is a matrix of mmap possibilities:
30331 mmap private not fixed
30332 mmap private fixed at somewhere currently unmapped
30333 mmap private fixed at somewhere already mapped
30334 mmap shared not fixed
30335 mmap shared fixed at somewhere currently unmapped
30336 mmap shared fixed at somewhere already mapped
30337 For private mappings, we should verify that changes cannot be read()
30338 back from the file, nor mmap's back from the file at a different
30339 address. (There have been systems where private was not correctly
30340 implemented like the infamous i386 svr4.0, and systems where the
30341 VM page cache was not coherent with the file system buffer cache
30342 like early versions of FreeBSD and possibly contemporary NetBSD.)
30343 For shared mappings, we should conversely verify that changes get
30344 propagated back to all the places they're supposed to be.
30345
30346 Grep wants private fixed already mapped.
30347 The main things grep needs to know about mmap are:
30348 * does it exist and is it safe to write into the mmap'd area
30349 * how to use it (BSD variants) */
30350
30351#include <fcntl.h>
30352#include <sys/mman.h>
30353
30354#if !STDC_HEADERS && !HAVE_STDLIB_H
30355char *malloc ();
30356#endif
30357
30358/* This mess was copied from the GNU getpagesize.h. */
30359#if !HAVE_GETPAGESIZE
30360/* Assume that all systems that can run configure have sys/param.h. */
30361# if !HAVE_SYS_PARAM_H
30362# define HAVE_SYS_PARAM_H 1
30363# endif
30364
30365# ifdef _SC_PAGESIZE
30366# define getpagesize() sysconf(_SC_PAGESIZE)
30367# else /* no _SC_PAGESIZE */
30368# if HAVE_SYS_PARAM_H
30369# include <sys/param.h>
30370# ifdef EXEC_PAGESIZE
30371# define getpagesize() EXEC_PAGESIZE
30372# else /* no EXEC_PAGESIZE */
30373# ifdef NBPG
30374# define getpagesize() NBPG * CLSIZE
30375# ifndef CLSIZE
30376# define CLSIZE 1
30377# endif /* no CLSIZE */
30378# else /* no NBPG */
30379# ifdef NBPC
30380# define getpagesize() NBPC
30381# else /* no NBPC */
30382# ifdef PAGESIZE
30383# define getpagesize() PAGESIZE
30384# endif /* PAGESIZE */
30385# endif /* no NBPC */
30386# endif /* no NBPG */
30387# endif /* no EXEC_PAGESIZE */
30388# else /* no HAVE_SYS_PARAM_H */
30389# define getpagesize() 8192 /* punt totally */
30390# endif /* no HAVE_SYS_PARAM_H */
30391# endif /* no _SC_PAGESIZE */
30392
30393#endif /* no HAVE_GETPAGESIZE */
30394
30395int
30396main ()
30397{
30398 char *data, *data2, *data3;
30399 int i, pagesize;
30400 int fd;
30401
30402 pagesize = getpagesize ();
30403
30404 /* First, make a file with some known garbage in it. */
30405 data = (char *) malloc (pagesize);
30406 if (!data)
30407 exit (1);
30408 for (i = 0; i < pagesize; ++i)
30409 *(data + i) = rand ();
30410 umask (0);
30411 fd = creat ("conftest.mmap", 0600);
30412 if (fd < 0)
30413 exit (1);
30414 if (write (fd, data, pagesize) != pagesize)
30415 exit (1);
30416 close (fd);
30417
30418 /* Next, try to mmap the file at a fixed address which already has
30419 something else allocated at it. If we can, also make sure that
30420 we see the same garbage. */
30421 fd = open ("conftest.mmap", O_RDWR);
30422 if (fd < 0)
30423 exit (1);
30424 data2 = (char *) malloc (2 * pagesize);
30425 if (!data2)
30426 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030427 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030429 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030430 exit (1);
30431 for (i = 0; i < pagesize; ++i)
30432 if (*(data + i) != *(data2 + i))
30433 exit (1);
30434
30435 /* Finally, make sure that changes to the mapped area do not
30436 percolate back to the file as seen by read(). (This is a bug on
30437 some variants of i386 svr4.0.) */
30438 for (i = 0; i < pagesize; ++i)
30439 *(data2 + i) = *(data2 + i) + 1;
30440 data3 = (char *) malloc (pagesize);
30441 if (!data3)
30442 exit (1);
30443 if (read (fd, data3, pagesize) != pagesize)
30444 exit (1);
30445 for (i = 0; i < pagesize; ++i)
30446 if (*(data + i) != *(data3 + i))
30447 exit (1);
30448 close (fd);
30449 exit (0);
30450}
30451_ACEOF
30452rm -f conftest$ac_exeext
30453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30454 (eval $ac_link) 2>&5
30455 ac_status=$?
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459 (eval $ac_try) 2>&5
30460 ac_status=$?
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }; }; then
30463 ac_cv_func_mmap_fixed_mapped=yes
30464else
30465 echo "$as_me: program exited with status $ac_status" >&5
30466echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030467sed 's/^/| /' conftest.$ac_ext >&5
30468
John Criswell7a73b802003-06-30 21:59:07 +000030469( exit $ac_status )
30470ac_cv_func_mmap_fixed_mapped=no
30471fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030472rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030473fi
30474fi
30475echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30476echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30477if test $ac_cv_func_mmap_fixed_mapped = yes; then
30478
30479cat >>confdefs.h <<\_ACEOF
30480#define HAVE_MMAP 1
30481_ACEOF
30482
30483fi
30484rm -f conftest.mmap
30485
30486echo "$as_me:$LINENO: checking for mmap of files" >&5
30487echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30488if test "${ac_cv_func_mmap_file+set}" = set; then
30489 echo $ECHO_N "(cached) $ECHO_C" >&6
30490else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030491 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030492ac_cpp='$CPP $CPPFLAGS'
30493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30495ac_compiler_gnu=$ac_cv_c_compiler_gnu
30496
30497 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030498 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030499else
30500 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030501
Reid Spencer777ce172004-09-20 04:09:56 +000030502 /* confdefs.h. */
30503_ACEOF
30504cat confdefs.h >>conftest.$ac_ext
30505cat >>conftest.$ac_ext <<_ACEOF
30506/* end confdefs.h. */
30507
John Criswell7a73b802003-06-30 21:59:07 +000030508#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030509#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030510#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030511
30512int
30513main ()
30514{
John Criswell7a73b802003-06-30 21:59:07 +000030515
30516 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030517 fd = creat ("foo",0777);
30518 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30519 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030520 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030521 ;
30522 return 0;
30523}
John Criswell7a73b802003-06-30 21:59:07 +000030524_ACEOF
30525rm -f conftest$ac_exeext
30526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30527 (eval $ac_link) 2>&5
30528 ac_status=$?
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30532 (eval $ac_try) 2>&5
30533 ac_status=$?
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; }; then
30536 ac_cv_func_mmap_file=yes
30537else
30538 echo "$as_me: program exited with status $ac_status" >&5
30539echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030540sed 's/^/| /' conftest.$ac_ext >&5
30541
John Criswell7a73b802003-06-30 21:59:07 +000030542( exit $ac_status )
30543ac_cv_func_mmap_file=no
30544fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030546fi
30547 ac_ext=c
30548ac_cpp='$CPP $CPPFLAGS'
30549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30551ac_compiler_gnu=$ac_cv_c_compiler_gnu
30552
30553
30554fi
30555echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30556echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30557if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030558
30559cat >>confdefs.h <<\_ACEOF
30560#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030561_ACEOF
30562
30563 MMAP_FILE=yes
30564
30565fi
30566
Reid Spencer7931a782004-12-27 06:15:02 +000030567echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30568echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30569if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30570 echo $ECHO_N "(cached) $ECHO_C" >&6
30571else
Reid Spencer582a23c2004-12-29 07:07:57 +000030572 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030573 ac_cv_need_dev_zero_for_mmap=yes
30574 else
30575 ac_cv_need_dev_zero_for_mmap=no
30576 fi
30577
30578fi
30579echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30580echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30581if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30582
30583cat >>confdefs.h <<\_ACEOF
30584#define NEED_DEV_ZERO_FOR_MMAP 1
30585_ACEOF
30586
30587fi
John Criswell7a73b802003-06-30 21:59:07 +000030588echo "$as_me:$LINENO: checking for mprotect" >&5
30589echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30590if test "${ac_cv_func_mprotect+set}" = set; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30592else
30593 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030594/* confdefs.h. */
30595_ACEOF
30596cat confdefs.h >>conftest.$ac_ext
30597cat >>conftest.$ac_ext <<_ACEOF
30598/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030599/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30601#define mprotect innocuous_mprotect
30602
John Criswell7a73b802003-06-30 21:59:07 +000030603/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030604 which can conflict with char mprotect (); below.
30605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30606 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030607
John Criswell0c38eaf2003-09-10 15:17:25 +000030608#ifdef __STDC__
30609# include <limits.h>
30610#else
30611# include <assert.h>
30612#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030613
30614#undef mprotect
30615
John Criswell7a73b802003-06-30 21:59:07 +000030616/* Override any gcc2 internal prototype to avoid an error. */
30617#ifdef __cplusplus
30618extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030619{
John Criswell7a73b802003-06-30 21:59:07 +000030620#endif
30621/* We use char because int might match the return type of a gcc2
30622 builtin and then its argument prototype would still apply. */
30623char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030624/* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627#if defined (__stub_mprotect) || defined (__stub___mprotect)
30628choke me
30629#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030630char (*f) () = mprotect;
30631#endif
30632#ifdef __cplusplus
30633}
John Criswell7a73b802003-06-30 21:59:07 +000030634#endif
30635
John Criswell0c38eaf2003-09-10 15:17:25 +000030636int
30637main ()
30638{
30639return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030640 ;
30641 return 0;
30642}
30643_ACEOF
30644rm -f conftest.$ac_objext conftest$ac_exeext
30645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030646 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030648 grep -v '^ *+' conftest.er1 >conftest.err
30649 rm -f conftest.er1
30650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030653 { ac_try='test -z "$ac_c_werror_flag"
30654 || test ! -s conftest.err'
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662 (eval $ac_try) 2>&5
30663 ac_status=$?
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 ac_cv_func_mprotect=yes
30667else
30668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030669sed 's/^/| /' conftest.$ac_ext >&5
30670
John Criswell7a73b802003-06-30 21:59:07 +000030671ac_cv_func_mprotect=no
30672fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030673rm -f conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030675fi
30676echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30677echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30678if test $ac_cv_func_mprotect = yes; then
30679 :
30680else
30681 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30682echo "$as_me: error: Function mprotect() required but not found" >&2;}
30683 { (exit 1); exit 1; }; }
30684fi
30685
30686
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030687if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030688then
Reid Spencer582a23c2004-12-29 07:07:57 +000030689 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30690echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030691fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030692if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030693then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030694 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30695echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030696fi
John Criswell7a73b802003-06-30 21:59:07 +000030697
30698
Brian Gaekef3b24102003-11-16 18:38:14 +000030699echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30700echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030701if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30702 echo $ECHO_N "(cached) $ECHO_C" >&6
30703else
30704 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030705if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030706 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000030707 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030708 if test $? -eq 0 ; then
30709 llvm_cv_llvmgcc_sanity="yes"
30710 fi
30711 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030712fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030713fi
30714echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30715echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30716
30717if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030718 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030719 LLVMCC1=$llvmcc1path
30720
Reid Spencer502935f2004-12-22 05:56:56 +000030721 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030722 LLVMCC1PLUS=$llvmcc1pluspath
30723
Reid Spencer502935f2004-12-22 05:56:56 +000030724 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30725 LLVMGCCDIR=$llvmgccdir
30726
Reid Spencer7917d3a2006-04-06 22:00:36 +000030727 llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`
30728 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30729 LLVMGCC_VERSION=$llvmgccversion
30730
30731 LLVMGCC_MAJVERS=$llvmgccmajvers
30732
Brian Gaekef3b24102003-11-16 18:38:14 +000030733fi
30734
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030735SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030736
30737
Reid Spencere9de0912004-08-20 09:03:57 +000030738# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030739# information into substitutions that will end up in Makefile.config.in
30740# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030741eval LLVM_PREFIX="${prefix}";
30742eval LLVM_BINDIR="${prefix}/bin";
30743eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030744eval LLVM_DATADIR="${prefix}/share/llvm";
30745eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30746eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030747eval LLVM_INCLUDEDIR="${prefix}/include";
30748eval LLVM_INFODIR="${prefix}/info";
30749eval LLVM_MANDIR="${prefix}/man";
30750LLVM_CONFIGTIME=`date`
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030762# Place the various directores into the config.h file as #defines so that we
30763# can know about the installation paths within LLVM.
30764
Reid Spencere9de0912004-08-20 09:03:57 +000030765cat >>confdefs.h <<_ACEOF
30766#define LLVM_PREFIX "$LLVM_PREFIX"
30767_ACEOF
30768
30769
30770cat >>confdefs.h <<_ACEOF
30771#define LLVM_BINDIR "$LLVM_BINDIR"
30772_ACEOF
30773
30774
30775cat >>confdefs.h <<_ACEOF
30776#define LLVM_LIBDIR "$LLVM_LIBDIR"
30777_ACEOF
30778
30779
30780cat >>confdefs.h <<_ACEOF
30781#define LLVM_DATADIR "$LLVM_DATADIR"
30782_ACEOF
30783
30784
30785cat >>confdefs.h <<_ACEOF
30786#define LLVM_DATADIR "$LLVM_DOCSDIR"
30787_ACEOF
30788
30789
30790cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030791#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030792_ACEOF
30793
30794
30795cat >>confdefs.h <<_ACEOF
30796#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30797_ACEOF
30798
30799
30800cat >>confdefs.h <<_ACEOF
30801#define LLVM_INFODIR "$LLVM_INFODIR"
30802_ACEOF
30803
30804
30805cat >>confdefs.h <<_ACEOF
30806#define LLVM_MANDIR "$LLVM_MANDIR"
30807_ACEOF
30808
30809
30810cat >>confdefs.h <<_ACEOF
30811#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30812_ACEOF
30813
30814
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030815
30816 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30817
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030818 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30819
30820 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30821
30822 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30823
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030824 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30825
30826
30827 ac_config_files="$ac_config_files Makefile.config"
30828
30829
Reid Spencer1f319422004-11-29 04:56:35 +000030830 ac_config_files="$ac_config_files docs/doxygen.cfg"
30831
30832
Reid Spencerf2722ca2006-03-22 15:59:55 +000030833 ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30834
30835
Reid Spencerc0682832005-02-24 19:05:19 +000030836 ac_config_commands="$ac_config_commands setup"
30837
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030838 ac_config_commands="$ac_config_commands Makefile"
30839
30840
30841 ac_config_commands="$ac_config_commands Makefile.common"
30842
30843
30844 ac_config_commands="$ac_config_commands examples/Makefile"
30845
30846
30847 ac_config_commands="$ac_config_commands lib/Makefile"
30848
30849
30850 ac_config_commands="$ac_config_commands runtime/Makefile"
30851
30852
30853 ac_config_commands="$ac_config_commands test/Makefile"
30854
30855
30856 ac_config_commands="$ac_config_commands test/Makefile.tests"
30857
30858
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030859 ac_config_commands="$ac_config_commands tools/Makefile"
30860
30861
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030862 ac_config_commands="$ac_config_commands utils/Makefile"
30863
30864
30865 ac_config_commands="$ac_config_commands projects/Makefile"
30866
30867
30868
John Criswell7a73b802003-06-30 21:59:07 +000030869cat >confcache <<\_ACEOF
30870# This file is a shell script that caches the results of configure
30871# tests run on this system so they can be shared between configure
30872# scripts and configure runs, see configure's option --config-cache.
30873# It is not useful on other systems. If it contains results you don't
30874# want to keep, you may remove or edit it.
30875#
30876# config.status only pays attention to the cache file if you give it
30877# the --recheck option to rerun configure.
30878#
John Criswell0c38eaf2003-09-10 15:17:25 +000030879# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030880# loading this file, other *unset* `ac_cv_foo' will be assigned the
30881# following values.
30882
30883_ACEOF
30884
30885# The following way of writing the cache mishandles newlines in values,
30886# but we know of no workaround that is simple, portable, and efficient.
30887# So, don't put newlines in cache variables' values.
30888# Ultrix sh set writes to stderr and can't be redirected directly,
30889# and sets the high bit in the cache file unless we assign to the vars.
30890{
30891 (set) 2>&1 |
30892 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30893 *ac_space=\ *)
30894 # `set' does not quote correctly, so add quotes (double-quote
30895 # substitution turns \\\\ into \\, and sed turns \\ into \).
30896 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030897 "s/'/'\\\\''/g;
30898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030899 ;;
30900 *)
30901 # `set' quotes correctly as required by POSIX, so do not add quotes.
30902 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030903 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030904 ;;
30905 esac;
30906} |
30907 sed '
30908 t clear
30909 : clear
30910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30911 t end
30912 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30913 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030914if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030915 if test -w $cache_file; then
30916 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30917 cat confcache >$cache_file
30918 else
30919 echo "not updating unwritable cache $cache_file"
30920 fi
30921fi
30922rm -f confcache
30923
30924test "x$prefix" = xNONE && prefix=$ac_default_prefix
30925# Let make expand exec_prefix.
30926test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30927
30928# VPATH may cause trouble with some makes, so we remove $(srcdir),
30929# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30930# trailing colons and then remove the whole line if VPATH becomes empty
30931# (actually we leave an empty line to preserve line numbers).
30932if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030934s/:*\$(srcdir):*/:/;
30935s/:*\${srcdir}:*/:/;
30936s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030937s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030938s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030939s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030940}'
30941fi
30942
30943DEFS=-DHAVE_CONFIG_H
30944
John Criswell0c38eaf2003-09-10 15:17:25 +000030945ac_libobjs=
30946ac_ltlibobjs=
30947for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30948 # 1. Remove the extension, and $U if already installed.
30949 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030950 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030951 # 2. Add them.
30952 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30953 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30954done
30955LIBOBJS=$ac_libobjs
30956
30957LTLIBOBJS=$ac_ltlibobjs
30958
30959
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030960if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30961 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30962Usually this means the macro was only invoked conditionally." >&5
30963echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30964Usually this means the macro was only invoked conditionally." >&2;}
30965 { (exit 1); exit 1; }; }
30966fi
30967if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30968 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30969Usually this means the macro was only invoked conditionally." >&5
30970echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30971Usually this means the macro was only invoked conditionally." >&2;}
30972 { (exit 1); exit 1; }; }
30973fi
John Criswell7a73b802003-06-30 21:59:07 +000030974
30975: ${CONFIG_STATUS=./config.status}
30976ac_clean_files_save=$ac_clean_files
30977ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30978{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30979echo "$as_me: creating $CONFIG_STATUS" >&6;}
30980cat >$CONFIG_STATUS <<_ACEOF
30981#! $SHELL
30982# Generated by $as_me.
30983# Run this file to recreate the current configuration.
30984# Compiler output produced by configure, useful for debugging
30985# configure, is in config.log if it exists.
30986
30987debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030988ac_cs_recheck=false
30989ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030990SHELL=\${CONFIG_SHELL-$SHELL}
30991_ACEOF
30992
30993cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030994## --------------------- ##
30995## M4sh Initialization. ##
30996## --------------------- ##
30997
30998# Be Bourne compatible
30999if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31000 emulate sh
31001 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031002 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31003 # is contrary to our usage. Disable this feature.
31004 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000031005elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31006 set -o posix
31007fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031008DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000031009
John Criswell7a73b802003-06-30 21:59:07 +000031010# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031011if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031012 as_unset=unset
31013else
31014 as_unset=false
31015fi
31016
John Criswell0c38eaf2003-09-10 15:17:25 +000031017
31018# Work around bugs in pre-3.0 UWIN ksh.
31019$as_unset ENV MAIL MAILPATH
31020PS1='$ '
31021PS2='> '
31022PS4='+ '
31023
31024# NLS nuisances.
31025for as_var in \
31026 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31027 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31028 LC_TELEPHONE LC_TIME
31029do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031030 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031031 eval $as_var=C; export $as_var
31032 else
31033 $as_unset $as_var
31034 fi
31035done
31036
31037# Required to use basename.
31038if expr a : '\(a\)' >/dev/null 2>&1; then
31039 as_expr=expr
31040else
31041 as_expr=false
31042fi
31043
31044if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31045 as_basename=basename
31046else
31047 as_basename=false
31048fi
John Criswell7a73b802003-06-30 21:59:07 +000031049
31050
31051# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031052as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031053$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31054 X"$0" : 'X\(//\)$' \| \
31055 X"$0" : 'X\(/\)$' \| \
31056 . : '\(.\)' 2>/dev/null ||
31057echo X/"$0" |
31058 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31059 /^X\/\(\/\/\)$/{ s//\1/; q; }
31060 /^X\/\(\/\).*/{ s//\1/; q; }
31061 s/.*/./; q'`
31062
John Criswell0c38eaf2003-09-10 15:17:25 +000031063
John Criswell7a73b802003-06-30 21:59:07 +000031064# PATH needs CR, and LINENO needs CR and PATH.
31065# Avoid depending upon Character Ranges.
31066as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31068as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31069as_cr_digits='0123456789'
31070as_cr_alnum=$as_cr_Letters$as_cr_digits
31071
31072# The user is always right.
31073if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031074 echo "#! /bin/sh" >conf$$.sh
31075 echo "exit 0" >>conf$$.sh
31076 chmod +x conf$$.sh
31077 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031078 PATH_SEPARATOR=';'
31079 else
31080 PATH_SEPARATOR=:
31081 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031082 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031083fi
31084
31085
31086 as_lineno_1=$LINENO
31087 as_lineno_2=$LINENO
31088 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31089 test "x$as_lineno_1" != "x$as_lineno_2" &&
31090 test "x$as_lineno_3" = "x$as_lineno_2" || {
31091 # Find who we are. Look in the path if we contain no path at all
31092 # relative or not.
31093 case $0 in
31094 *[\\/]* ) as_myself=$0 ;;
31095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31096for as_dir in $PATH
31097do
31098 IFS=$as_save_IFS
31099 test -z "$as_dir" && as_dir=.
31100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31101done
31102
31103 ;;
31104 esac
31105 # We did not find ourselves, most probably we were run as `sh COMMAND'
31106 # in which case we are not to be found in the path.
31107 if test "x$as_myself" = x; then
31108 as_myself=$0
31109 fi
31110 if test ! -f "$as_myself"; then
31111 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31112echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31113 { (exit 1); exit 1; }; }
31114 fi
31115 case $CONFIG_SHELL in
31116 '')
31117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31118for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31119do
31120 IFS=$as_save_IFS
31121 test -z "$as_dir" && as_dir=.
31122 for as_base in sh bash ksh sh5; do
31123 case $as_dir in
31124 /*)
31125 if ("$as_dir/$as_base" -c '
31126 as_lineno_1=$LINENO
31127 as_lineno_2=$LINENO
31128 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31129 test "x$as_lineno_1" != "x$as_lineno_2" &&
31130 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031131 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31132 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031133 CONFIG_SHELL=$as_dir/$as_base
31134 export CONFIG_SHELL
31135 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31136 fi;;
31137 esac
31138 done
31139done
31140;;
31141 esac
31142
31143 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31144 # uniformly replaced by the line number. The first 'sed' inserts a
31145 # line-number line before each line; the second 'sed' does the real
31146 # work. The second script uses 'N' to pair each line-number line
31147 # with the numbered line, and appends trailing '-' during
31148 # substitution so that $LINENO is not a special case at line end.
31149 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31150 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31151 sed '=' <$as_myself |
31152 sed '
31153 N
31154 s,$,-,
31155 : loop
31156 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31157 t loop
31158 s,-$,,
31159 s,^['$as_cr_digits']*\n,,
31160 ' >$as_me.lineno &&
31161 chmod +x $as_me.lineno ||
31162 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31163echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31164 { (exit 1); exit 1; }; }
31165
31166 # Don't try to exec as it changes $[0], causing all sort of problems
31167 # (the dirname of $[0] is not the place where we might find the
31168 # original and so on. Autoconf is especially sensible to this).
31169 . ./$as_me.lineno
31170 # Exit status is that of the last command.
31171 exit
31172}
31173
31174
31175case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31176 *c*,-n*) ECHO_N= ECHO_C='
31177' ECHO_T=' ' ;;
31178 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31179 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31180esac
31181
31182if expr a : '\(a\)' >/dev/null 2>&1; then
31183 as_expr=expr
31184else
31185 as_expr=false
31186fi
31187
31188rm -f conf$$ conf$$.exe conf$$.file
31189echo >conf$$.file
31190if ln -s conf$$.file conf$$ 2>/dev/null; then
31191 # We could just check for DJGPP; but this test a) works b) is more generic
31192 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31193 if test -f conf$$.exe; then
31194 # Don't use ln at all; we don't have any links
31195 as_ln_s='cp -p'
31196 else
31197 as_ln_s='ln -s'
31198 fi
31199elif ln conf$$.file conf$$ 2>/dev/null; then
31200 as_ln_s=ln
31201else
31202 as_ln_s='cp -p'
31203fi
31204rm -f conf$$ conf$$.exe conf$$.file
31205
John Criswell0c38eaf2003-09-10 15:17:25 +000031206if mkdir -p . 2>/dev/null; then
31207 as_mkdir_p=:
31208else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031209 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031210 as_mkdir_p=false
31211fi
31212
John Criswell7a73b802003-06-30 21:59:07 +000031213as_executable_p="test -f"
31214
31215# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031216as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031217
31218# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031219as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031220
31221
31222# IFS
31223# We need space, tab and new line, in precisely that order.
31224as_nl='
31225'
31226IFS=" $as_nl"
31227
31228# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031229$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031230
31231exec 6>&1
31232
31233# Open the log real soon, to keep \$[0] and so on meaningful, and to
31234# report actual input values of CONFIG_FILES etc. instead of their
31235# values after options handling. Logging --version etc. is OK.
31236exec 5>>config.log
31237{
31238 echo
31239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31240## Running $as_me. ##
31241_ASBOX
31242} >&5
31243cat >&5 <<_CSEOF
31244
John Criswelle2503892005-11-08 21:13:01 +000031245This file was extended by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031246generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031247
31248 CONFIG_FILES = $CONFIG_FILES
31249 CONFIG_HEADERS = $CONFIG_HEADERS
31250 CONFIG_LINKS = $CONFIG_LINKS
31251 CONFIG_COMMANDS = $CONFIG_COMMANDS
31252 $ $0 $@
31253
31254_CSEOF
31255echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31256echo >&5
31257_ACEOF
31258
31259# Files that config.status was made for.
31260if test -n "$ac_config_files"; then
31261 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31262fi
31263
31264if test -n "$ac_config_headers"; then
31265 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31266fi
31267
31268if test -n "$ac_config_links"; then
31269 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31270fi
31271
31272if test -n "$ac_config_commands"; then
31273 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31274fi
31275
31276cat >>$CONFIG_STATUS <<\_ACEOF
31277
31278ac_cs_usage="\
31279\`$as_me' instantiates files from templates according to the
31280current configuration.
31281
31282Usage: $0 [OPTIONS] [FILE]...
31283
31284 -h, --help print this help, then exit
31285 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031286 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031287 -d, --debug don't remove temporary files
31288 --recheck update $as_me by reconfiguring in the same conditions
31289 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031290 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031291 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031292 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031293
31294Configuration files:
31295$config_files
31296
31297Configuration headers:
31298$config_headers
31299
John Criswellc764fbc2003-09-06 15:17:13 +000031300Configuration commands:
31301$config_commands
31302
John Criswell7a73b802003-06-30 21:59:07 +000031303Report bugs to <bug-autoconf@gnu.org>."
31304_ACEOF
31305
31306cat >>$CONFIG_STATUS <<_ACEOF
31307ac_cs_version="\\
John Criswelle2503892005-11-08 21:13:01 +000031308llvm config.status 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031309configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031310 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31311
Reid Spencer2706f8c2004-09-19 23:53:36 +000031312Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031313This config.status script is free software; the Free Software Foundation
31314gives unlimited permission to copy, distribute and modify it."
31315srcdir=$srcdir
31316INSTALL="$INSTALL"
31317_ACEOF
31318
31319cat >>$CONFIG_STATUS <<\_ACEOF
31320# If no file are specified by the user, then we need to provide default
31321# value. By we need to know if files were specified by the user.
31322ac_need_defaults=:
31323while test $# != 0
31324do
31325 case $1 in
31326 --*=*)
31327 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31328 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031329 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031330 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031331 -*)
31332 ac_option=$1
31333 ac_optarg=$2
31334 ac_shift=shift
31335 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031336 *) # This is not an option, so the user has probably given explicit
31337 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031338 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031339 ac_need_defaults=false;;
31340 esac
31341
John Criswell0c38eaf2003-09-10 15:17:25 +000031342 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031343 # Handling of the options.
31344_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031345cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31347 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031348 --version | --vers* | -V )
31349 echo "$ac_cs_version"; exit 0 ;;
31350 --he | --h)
31351 # Conflict between --help and --header
31352 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31353Try \`$0 --help' for more information." >&5
31354echo "$as_me: error: ambiguous option: $1
31355Try \`$0 --help' for more information." >&2;}
31356 { (exit 1); exit 1; }; };;
31357 --help | --hel | -h )
31358 echo "$ac_cs_usage"; exit 0 ;;
31359 --debug | --d* | -d )
31360 debug=: ;;
31361 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031362 $ac_shift
31363 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031364 ac_need_defaults=false;;
31365 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031366 $ac_shift
31367 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031368 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31371 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031372
31373 # This is an error.
31374 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31375Try \`$0 --help' for more information." >&5
31376echo "$as_me: error: unrecognized option: $1
31377Try \`$0 --help' for more information." >&2;}
31378 { (exit 1); exit 1; }; } ;;
31379
31380 *) ac_config_targets="$ac_config_targets $1" ;;
31381
31382 esac
31383 shift
31384done
31385
John Criswell0c38eaf2003-09-10 15:17:25 +000031386ac_configure_extra_args=
31387
31388if $ac_cs_silent; then
31389 exec 6>/dev/null
31390 ac_configure_extra_args="$ac_configure_extra_args --silent"
31391fi
31392
31393_ACEOF
31394cat >>$CONFIG_STATUS <<_ACEOF
31395if \$ac_cs_recheck; then
31396 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31397 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31398fi
31399
John Criswell7a73b802003-06-30 21:59:07 +000031400_ACEOF
31401
John Criswellc764fbc2003-09-06 15:17:13 +000031402cat >>$CONFIG_STATUS <<_ACEOF
31403#
31404# INIT-COMMANDS section.
31405#
John Criswell7a73b802003-06-30 21:59:07 +000031406
Reid Spencerc0682832005-02-24 19:05:19 +000031407llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031408
31409_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031410
31411
31412
31413cat >>$CONFIG_STATUS <<\_ACEOF
31414for ac_config_target in $ac_config_targets
31415do
31416 case "$ac_config_target" in
31417 # Handling of arguments.
31418 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031419 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerf2722ca2006-03-22 15:59:55 +000031420 "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031421 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031422 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31423 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031424 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031425 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031426 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031427 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31428 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031429 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031430 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031431 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031432 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031433 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031434 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31435 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031436 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031437 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31438echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31439 { (exit 1); exit 1; }; };;
31440 esac
31441done
31442
31443# If the user did not use the arguments to specify the items to instantiate,
31444# then the envvar interface is used. Set only those that are not.
31445# We use the long form for the default assignment because of an extremely
31446# bizarre bug on SunOS 4.1.3.
31447if $ac_need_defaults; then
31448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31449 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031451fi
31452
John Criswell0c38eaf2003-09-10 15:17:25 +000031453# Have a temporary directory for convenience. Make it in the build tree
31454# simply because there is no reason to put it here, and in addition,
31455# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031456# Create a temporary directory, and hook for its removal unless debugging.
31457$debug ||
31458{
31459 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31460 trap '{ (exit 1); exit 1; }' 1 2 13 15
31461}
31462
31463# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031464
John Criswell7a73b802003-06-30 21:59:07 +000031465{
John Criswell0c38eaf2003-09-10 15:17:25 +000031466 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031467 test -n "$tmp" && test -d "$tmp"
31468} ||
31469{
John Criswell0c38eaf2003-09-10 15:17:25 +000031470 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031471 (umask 077 && mkdir $tmp)
31472} ||
31473{
John Criswell0c38eaf2003-09-10 15:17:25 +000031474 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031475 { (exit 1); exit 1; }
31476}
31477
31478_ACEOF
31479
31480cat >>$CONFIG_STATUS <<_ACEOF
31481
31482#
31483# CONFIG_FILES section.
31484#
31485
31486# No need to generate the scripts if there are no CONFIG_FILES.
31487# This happens for instance when ./config.status config.h
31488if test -n "\$CONFIG_FILES"; then
31489 # Protect against being on the right side of a sed subst in config.status.
31490 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31491 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31492s,@SHELL@,$SHELL,;t t
31493s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31494s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31495s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31496s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31497s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31498s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31499s,@exec_prefix@,$exec_prefix,;t t
31500s,@prefix@,$prefix,;t t
31501s,@program_transform_name@,$program_transform_name,;t t
31502s,@bindir@,$bindir,;t t
31503s,@sbindir@,$sbindir,;t t
31504s,@libexecdir@,$libexecdir,;t t
31505s,@datadir@,$datadir,;t t
31506s,@sysconfdir@,$sysconfdir,;t t
31507s,@sharedstatedir@,$sharedstatedir,;t t
31508s,@localstatedir@,$localstatedir,;t t
31509s,@libdir@,$libdir,;t t
31510s,@includedir@,$includedir,;t t
31511s,@oldincludedir@,$oldincludedir,;t t
31512s,@infodir@,$infodir,;t t
31513s,@mandir@,$mandir,;t t
31514s,@build_alias@,$build_alias,;t t
31515s,@host_alias@,$host_alias,;t t
31516s,@target_alias@,$target_alias,;t t
31517s,@DEFS@,$DEFS,;t t
31518s,@ECHO_C@,$ECHO_C,;t t
31519s,@ECHO_N@,$ECHO_N,;t t
31520s,@ECHO_T@,$ECHO_T,;t t
31521s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031522s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031523s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031524s,@build@,$build,;t t
31525s,@build_cpu@,$build_cpu,;t t
31526s,@build_vendor@,$build_vendor,;t t
31527s,@build_os@,$build_os,;t t
31528s,@host@,$host,;t t
31529s,@host_cpu@,$host_cpu,;t t
31530s,@host_vendor@,$host_vendor,;t t
31531s,@host_os@,$host_os,;t t
31532s,@target@,$target,;t t
31533s,@target_cpu@,$target_cpu,;t t
31534s,@target_vendor@,$target_vendor,;t t
31535s,@target_os@,$target_os,;t t
31536s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031537s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31538s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031539s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031540s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031541s,@CC@,$CC,;t t
31542s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031543s,@LDFLAGS@,$LDFLAGS,;t t
31544s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031545s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031546s,@EXEEXT@,$EXEEXT,;t t
31547s,@OBJEXT@,$OBJEXT,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000031548s,@CVSBUILD@,$CVSBUILD,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031549s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000031550s,@ENABLE_ASSERTIONS@,$ENABLE_ASSERTIONS,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031551s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031552s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031553s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031554s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031555s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031556s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031557s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031558s,@CXX@,$CXX,;t t
31559s,@CXXFLAGS@,$CXXFLAGS,;t t
31560s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031561s,@LEX@,$LEX,;t t
31562s,@LEXLIB@,$LEXLIB,;t t
31563s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031564s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031565s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031566s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031567s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031568s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031569s,@CMP@,$CMP,;t t
31570s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031571s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031572s,@FIND@,$FIND,;t t
31573s,@GREP@,$GREP,;t t
31574s,@MKDIR@,$MKDIR,;t t
31575s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031576s,@RANLIB@,$RANLIB,;t t
31577s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031578s,@RM@,$RM,;t t
31579s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031580s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031581s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031582s,@GV@,$GV,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031583s,@PERL@,$PERL,;t t
31584s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031585s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31586s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31587s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031588s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031589s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031590s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031591s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031592s,@GROFF@,$GROFF,;t t
31593s,@GZIP@,$GZIP,;t t
31594s,@POD2HTML@,$POD2HTML,;t t
31595s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031596s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031597s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031598s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031599s,@EGREP@,$EGREP,;t t
31600s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31601s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31602s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31603s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31604s,@LIBADD_DL@,$LIBADD_DL,;t t
31605s,@ECHO@,$ECHO,;t t
31606s,@AR@,$AR,;t t
31607s,@ac_ct_AR@,$ac_ct_AR,;t t
31608s,@STRIP@,$STRIP,;t t
31609s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31610s,@CXXCPP@,$CXXCPP,;t t
31611s,@F77@,$F77,;t t
31612s,@FFLAGS@,$FFLAGS,;t t
31613s,@ac_ct_F77@,$ac_ct_F77,;t t
31614s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031615s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031616s,@LLVMGCC@,$LLVMGCC,;t t
31617s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031618s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031619s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031620s,@LLVMCC1@,$LLVMCC1,;t t
31621s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031622s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000031623s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31624s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031625s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031626s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31627s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31628s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31629s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31630s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31631s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31632s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31633s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31634s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31635s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031636s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031637s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031638CEOF
31639
31640_ACEOF
31641
31642 cat >>$CONFIG_STATUS <<\_ACEOF
31643 # Split the substitutions into bite-sized pieces for seds with
31644 # small command number limits, like on Digital OSF/1 and HP-UX.
31645 ac_max_sed_lines=48
31646 ac_sed_frag=1 # Number of current file.
31647 ac_beg=1 # First line for current file.
31648 ac_end=$ac_max_sed_lines # Line after last line for current file.
31649 ac_more_lines=:
31650 ac_sed_cmds=
31651 while $ac_more_lines; do
31652 if test $ac_beg -gt 1; then
31653 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31654 else
31655 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31656 fi
31657 if test ! -s $tmp/subs.frag; then
31658 ac_more_lines=false
31659 else
31660 # The purpose of the label and of the branching condition is to
31661 # speed up the sed processing (if there are no `@' at all, there
31662 # is no need to browse any of the substitutions).
31663 # These are the two extra sed commands mentioned above.
31664 (echo ':t
31665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31666 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031667 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031668 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031669 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031670 fi
31671 ac_sed_frag=`expr $ac_sed_frag + 1`
31672 ac_beg=$ac_end
31673 ac_end=`expr $ac_end + $ac_max_sed_lines`
31674 fi
31675 done
31676 if test -z "$ac_sed_cmds"; then
31677 ac_sed_cmds=cat
31678 fi
31679fi # test -n "$CONFIG_FILES"
31680
31681_ACEOF
31682cat >>$CONFIG_STATUS <<\_ACEOF
31683for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31685 case $ac_file in
31686 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031687 cat >$tmp/stdin
31688 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031690 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031692 * ) ac_file_in=$ac_file.in ;;
31693 esac
31694
31695 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31696 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031698 X"$ac_file" : 'X\(//\)[^/]' \| \
31699 X"$ac_file" : 'X\(//\)$' \| \
31700 X"$ac_file" : 'X\(/\)' \| \
31701 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031702echo X"$ac_file" |
31703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31705 /^X\(\/\/\)$/{ s//\1/; q; }
31706 /^X\(\/\).*/{ s//\1/; q; }
31707 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031708 { if $as_mkdir_p; then
31709 mkdir -p "$ac_dir"
31710 else
31711 as_dir="$ac_dir"
31712 as_dirs=
31713 while test ! -d "$as_dir"; do
31714 as_dirs="$as_dir $as_dirs"
31715 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31716$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031717 X"$as_dir" : 'X\(//\)[^/]' \| \
31718 X"$as_dir" : 'X\(//\)$' \| \
31719 X"$as_dir" : 'X\(/\)' \| \
31720 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031721echo X"$as_dir" |
31722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31724 /^X\(\/\/\)$/{ s//\1/; q; }
31725 /^X\(\/\).*/{ s//\1/; q; }
31726 s/.*/./; q'`
31727 done
31728 test ! -n "$as_dirs" || mkdir $as_dirs
31729 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31730echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31731 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031732
31733 ac_builddir=.
31734
31735if test "$ac_dir" != .; then
31736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31737 # A "../" for each directory in $ac_dir_suffix.
31738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31739else
31740 ac_dir_suffix= ac_top_builddir=
31741fi
31742
31743case $srcdir in
31744 .) # No --srcdir option. We are building in place.
31745 ac_srcdir=.
31746 if test -z "$ac_top_builddir"; then
31747 ac_top_srcdir=.
31748 else
31749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31750 fi ;;
31751 [\\/]* | ?:[\\/]* ) # Absolute path.
31752 ac_srcdir=$srcdir$ac_dir_suffix;
31753 ac_top_srcdir=$srcdir ;;
31754 *) # Relative path.
31755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31757esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031758
31759# Do not use `cd foo && pwd` to compute absolute paths, because
31760# the directories may not exist.
31761case `pwd` in
31762.) ac_abs_builddir="$ac_dir";;
31763*)
31764 case "$ac_dir" in
31765 .) ac_abs_builddir=`pwd`;;
31766 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31767 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31768 esac;;
31769esac
31770case $ac_abs_builddir in
31771.) ac_abs_top_builddir=${ac_top_builddir}.;;
31772*)
31773 case ${ac_top_builddir}. in
31774 .) ac_abs_top_builddir=$ac_abs_builddir;;
31775 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31776 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31777 esac;;
31778esac
31779case $ac_abs_builddir in
31780.) ac_abs_srcdir=$ac_srcdir;;
31781*)
31782 case $ac_srcdir in
31783 .) ac_abs_srcdir=$ac_abs_builddir;;
31784 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31785 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31786 esac;;
31787esac
31788case $ac_abs_builddir in
31789.) ac_abs_top_srcdir=$ac_top_srcdir;;
31790*)
31791 case $ac_top_srcdir in
31792 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31793 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31794 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31795 esac;;
31796esac
John Criswell7a73b802003-06-30 21:59:07 +000031797
31798
31799 case $INSTALL in
31800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31801 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31802 esac
31803
31804 if test x"$ac_file" != x-; then
31805 { echo "$as_me:$LINENO: creating $ac_file" >&5
31806echo "$as_me: creating $ac_file" >&6;}
31807 rm -f "$ac_file"
31808 fi
31809 # Let's still pretend it is `configure' which instantiates (i.e., don't
31810 # use $as_me), people would be surprised to read:
31811 # /* config.h. Generated by config.status. */
31812 if test x"$ac_file" = x-; then
31813 configure_input=
31814 else
31815 configure_input="$ac_file. "
31816 fi
31817 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031818 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031819
31820 # First look for the input files in the build tree, otherwise in the
31821 # src tree.
31822 ac_file_inputs=`IFS=:
31823 for f in $ac_file_in; do
31824 case $f in
31825 -) echo $tmp/stdin ;;
31826 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031827 # Absolute (can't be DOS-style, as IFS=:)
31828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031829echo "$as_me: error: cannot find input file: $f" >&2;}
31830 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031831 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031832 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031833 if test -f "$f"; then
31834 # Build tree
31835 echo "$f"
31836 elif test -f "$srcdir/$f"; then
31837 # Source tree
31838 echo "$srcdir/$f"
31839 else
31840 # /dev/null tree
31841 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031842echo "$as_me: error: cannot find input file: $f" >&2;}
31843 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031844 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031845 esac
31846 done` || { (exit 1); exit 1; }
31847_ACEOF
31848cat >>$CONFIG_STATUS <<_ACEOF
31849 sed "$ac_vpsub
31850$extrasub
31851_ACEOF
31852cat >>$CONFIG_STATUS <<\_ACEOF
31853:t
31854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31855s,@configure_input@,$configure_input,;t t
31856s,@srcdir@,$ac_srcdir,;t t
31857s,@abs_srcdir@,$ac_abs_srcdir,;t t
31858s,@top_srcdir@,$ac_top_srcdir,;t t
31859s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31860s,@builddir@,$ac_builddir,;t t
31861s,@abs_builddir@,$ac_abs_builddir,;t t
31862s,@top_builddir@,$ac_top_builddir,;t t
31863s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31864s,@INSTALL@,$ac_INSTALL,;t t
31865" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31866 rm -f $tmp/stdin
31867 if test x"$ac_file" != x-; then
31868 mv $tmp/out $ac_file
31869 else
31870 cat $tmp/out
31871 rm -f $tmp/out
31872 fi
31873
31874done
31875_ACEOF
31876cat >>$CONFIG_STATUS <<\_ACEOF
31877
31878#
31879# CONFIG_HEADER section.
31880#
31881
31882# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31883# NAME is the cpp macro being defined and VALUE is the value it is being given.
31884#
31885# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031886ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31887ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031888ac_dC=' '
31889ac_dD=',;t'
31890# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031891ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031892ac_uB='$,\1#\2define\3'
31893ac_uC=' '
31894ac_uD=',;t'
31895
31896for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31898 case $ac_file in
31899 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031900 cat >$tmp/stdin
31901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031905 * ) ac_file_in=$ac_file.in ;;
31906 esac
31907
31908 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31909echo "$as_me: creating $ac_file" >&6;}
31910
31911 # First look for the input files in the build tree, otherwise in the
31912 # src tree.
31913 ac_file_inputs=`IFS=:
31914 for f in $ac_file_in; do
31915 case $f in
31916 -) echo $tmp/stdin ;;
31917 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031918 # Absolute (can't be DOS-style, as IFS=:)
31919 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031920echo "$as_me: error: cannot find input file: $f" >&2;}
31921 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031922 # Do quote $f, to prevent DOS paths from being IFS'd.
31923 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031924 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031925 if test -f "$f"; then
31926 # Build tree
31927 echo "$f"
31928 elif test -f "$srcdir/$f"; then
31929 # Source tree
31930 echo "$srcdir/$f"
31931 else
31932 # /dev/null tree
31933 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031934echo "$as_me: error: cannot find input file: $f" >&2;}
31935 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031936 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031937 esac
31938 done` || { (exit 1); exit 1; }
31939 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031940 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031941
31942_ACEOF
31943
31944# Transform confdefs.h into two sed scripts, `conftest.defines' and
31945# `conftest.undefs', that substitutes the proper values into
31946# config.h.in to produce config.h. The first handles `#define'
31947# templates, and the second `#undef' templates.
31948# And first: Protect against being on the right side of a sed subst in
31949# config.status. Protect against being in an unquoted here document
31950# in config.status.
31951rm -f conftest.defines conftest.undefs
31952# Using a here document instead of a string reduces the quoting nightmare.
31953# Putting comments in sed scripts is not portable.
31954#
31955# `end' is used to avoid that the second main sed command (meant for
31956# 0-ary CPP macros) applies to n-ary macro definitions.
31957# See the Autoconf documentation for `clear'.
31958cat >confdef2sed.sed <<\_ACEOF
31959s/[\\&,]/\\&/g
31960s,[\\$`],\\&,g
31961t clear
31962: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031963s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031964t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031965s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031966: end
31967_ACEOF
31968# If some macros were called several times there might be several times
31969# the same #defines, which is useless. Nevertheless, we may not want to
31970# sort them, since we want the *last* AC-DEFINE to be honored.
31971uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31972sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31973rm -f confdef2sed.sed
31974
31975# This sed command replaces #undef with comments. This is necessary, for
31976# example, in the case of _POSIX_SOURCE, which is predefined and required
31977# on some systems where configure will not decide to define it.
31978cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031979s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031980_ACEOF
31981
31982# Break up conftest.defines because some shells have a limit on the size
31983# of here documents, and old seds have small limits too (100 cmds).
31984echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031985echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031986echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31987echo ' :' >>$CONFIG_STATUS
31988rm -f conftest.tail
31989while grep . conftest.defines >/dev/null
31990do
31991 # Write a limited-size here document to $tmp/defines.sed.
31992 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31993 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031994 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031995 # Work around the forget-to-reset-the-flag bug.
31996 echo 't clr' >>$CONFIG_STATUS
31997 echo ': clr' >>$CONFIG_STATUS
31998 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31999 echo 'CEOF
32000 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32001 rm -f $tmp/in
32002 mv $tmp/out $tmp/in
32003' >>$CONFIG_STATUS
32004 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32005 rm -f conftest.defines
32006 mv conftest.tail conftest.defines
32007done
32008rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000032009echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032010echo >>$CONFIG_STATUS
32011
32012# Break up conftest.undefs because some shells have a limit on the size
32013# of here documents, and old seds have small limits too (100 cmds).
32014echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32015rm -f conftest.tail
32016while grep . conftest.undefs >/dev/null
32017do
32018 # Write a limited-size here document to $tmp/undefs.sed.
32019 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32020 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000032021 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032022 # Work around the forget-to-reset-the-flag bug.
32023 echo 't clr' >>$CONFIG_STATUS
32024 echo ': clr' >>$CONFIG_STATUS
32025 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32026 echo 'CEOF
32027 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32028 rm -f $tmp/in
32029 mv $tmp/out $tmp/in
32030' >>$CONFIG_STATUS
32031 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32032 rm -f conftest.undefs
32033 mv conftest.tail conftest.undefs
32034done
32035rm -f conftest.undefs
32036
32037cat >>$CONFIG_STATUS <<\_ACEOF
32038 # Let's still pretend it is `configure' which instantiates (i.e., don't
32039 # use $as_me), people would be surprised to read:
32040 # /* config.h. Generated by config.status. */
32041 if test x"$ac_file" = x-; then
32042 echo "/* Generated by configure. */" >$tmp/config.h
32043 else
32044 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32045 fi
32046 cat $tmp/in >>$tmp/config.h
32047 rm -f $tmp/in
32048 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032049 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032050 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32051echo "$as_me: $ac_file is unchanged" >&6;}
32052 else
32053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032055 X"$ac_file" : 'X\(//\)[^/]' \| \
32056 X"$ac_file" : 'X\(//\)$' \| \
32057 X"$ac_file" : 'X\(/\)' \| \
32058 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032059echo X"$ac_file" |
32060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32062 /^X\(\/\/\)$/{ s//\1/; q; }
32063 /^X\(\/\).*/{ s//\1/; q; }
32064 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032065 { if $as_mkdir_p; then
32066 mkdir -p "$ac_dir"
32067 else
32068 as_dir="$ac_dir"
32069 as_dirs=
32070 while test ! -d "$as_dir"; do
32071 as_dirs="$as_dir $as_dirs"
32072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032074 X"$as_dir" : 'X\(//\)[^/]' \| \
32075 X"$as_dir" : 'X\(//\)$' \| \
32076 X"$as_dir" : 'X\(/\)' \| \
32077 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032078echo X"$as_dir" |
32079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32081 /^X\(\/\/\)$/{ s//\1/; q; }
32082 /^X\(\/\).*/{ s//\1/; q; }
32083 s/.*/./; q'`
32084 done
32085 test ! -n "$as_dirs" || mkdir $as_dirs
32086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32087echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32088 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032089
32090 rm -f $ac_file
32091 mv $tmp/config.h $ac_file
32092 fi
32093 else
32094 cat $tmp/config.h
32095 rm -f $tmp/config.h
32096 fi
32097done
32098_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032099cat >>$CONFIG_STATUS <<\_ACEOF
32100
32101#
32102# CONFIG_COMMANDS section.
32103#
32104for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32105 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32106 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32107 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32108$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032109 X"$ac_dest" : 'X\(//\)[^/]' \| \
32110 X"$ac_dest" : 'X\(//\)$' \| \
32111 X"$ac_dest" : 'X\(/\)' \| \
32112 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032113echo X"$ac_dest" |
32114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32116 /^X\(\/\/\)$/{ s//\1/; q; }
32117 /^X\(\/\).*/{ s//\1/; q; }
32118 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032119 { if $as_mkdir_p; then
32120 mkdir -p "$ac_dir"
32121 else
32122 as_dir="$ac_dir"
32123 as_dirs=
32124 while test ! -d "$as_dir"; do
32125 as_dirs="$as_dir $as_dirs"
32126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32128 X"$as_dir" : 'X\(//\)[^/]' \| \
32129 X"$as_dir" : 'X\(//\)$' \| \
32130 X"$as_dir" : 'X\(/\)' \| \
32131 . : '\(.\)' 2>/dev/null ||
32132echo X"$as_dir" |
32133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32135 /^X\(\/\/\)$/{ s//\1/; q; }
32136 /^X\(\/\).*/{ s//\1/; q; }
32137 s/.*/./; q'`
32138 done
32139 test ! -n "$as_dirs" || mkdir $as_dirs
32140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32141echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32142 { (exit 1); exit 1; }; }; }
32143
John Criswellc764fbc2003-09-06 15:17:13 +000032144 ac_builddir=.
32145
32146if test "$ac_dir" != .; then
32147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32148 # A "../" for each directory in $ac_dir_suffix.
32149 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32150else
32151 ac_dir_suffix= ac_top_builddir=
32152fi
32153
32154case $srcdir in
32155 .) # No --srcdir option. We are building in place.
32156 ac_srcdir=.
32157 if test -z "$ac_top_builddir"; then
32158 ac_top_srcdir=.
32159 else
32160 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32161 fi ;;
32162 [\\/]* | ?:[\\/]* ) # Absolute path.
32163 ac_srcdir=$srcdir$ac_dir_suffix;
32164 ac_top_srcdir=$srcdir ;;
32165 *) # Relative path.
32166 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32167 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32168esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032169
32170# Do not use `cd foo && pwd` to compute absolute paths, because
32171# the directories may not exist.
32172case `pwd` in
32173.) ac_abs_builddir="$ac_dir";;
32174*)
32175 case "$ac_dir" in
32176 .) ac_abs_builddir=`pwd`;;
32177 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32178 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32179 esac;;
32180esac
32181case $ac_abs_builddir in
32182.) ac_abs_top_builddir=${ac_top_builddir}.;;
32183*)
32184 case ${ac_top_builddir}. in
32185 .) ac_abs_top_builddir=$ac_abs_builddir;;
32186 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32187 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32188 esac;;
32189esac
32190case $ac_abs_builddir in
32191.) ac_abs_srcdir=$ac_srcdir;;
32192*)
32193 case $ac_srcdir in
32194 .) ac_abs_srcdir=$ac_abs_builddir;;
32195 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32196 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32197 esac;;
32198esac
32199case $ac_abs_builddir in
32200.) ac_abs_top_srcdir=$ac_top_srcdir;;
32201*)
32202 case $ac_top_srcdir in
32203 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32204 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32205 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32206 esac;;
32207esac
John Criswellc764fbc2003-09-06 15:17:13 +000032208
32209
32210 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32211echo "$as_me: executing $ac_dest commands" >&6;}
32212 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032213 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32214 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32215 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32216 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32217 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32218 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32219 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32220 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32221 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32222 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32223 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32224 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32225 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32226 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32227 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32228 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32229 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32230 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32231 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32232 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032233 esac
32234done
32235_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032236
32237cat >>$CONFIG_STATUS <<\_ACEOF
32238
32239{ (exit 0); exit 0; }
32240_ACEOF
32241chmod +x $CONFIG_STATUS
32242ac_clean_files=$ac_clean_files_save
32243
32244
32245# configure is writing to config.log, and then calls config.status.
32246# config.status does its own redirection, appending to config.log.
32247# Unfortunately, on DOS this fails, as config.log is still kept open
32248# by configure, so config.status won't be able to write to it; its
32249# output is simply discarded. So we exec the FD to /dev/null,
32250# effectively closing config.log, so it can be properly (re)opened and
32251# appended to by config.status. When coming back to configure, we
32252# need to make the FD available again.
32253if test "$no_create" != yes; then
32254 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032255 ac_config_status_args=
32256 test "$silent" = yes &&
32257 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032258 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032260 exec 5>>config.log
32261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32262 # would make configure fail if this is the last instruction.
32263 $ac_cs_success || { (exit 1); exit 1; }
32264fi
32265
John Criswell12399a12003-09-30 15:55:44 +000032266#
32267# CONFIG_SUBDIRS section.
32268#
32269if test "$no_recursion" != yes; then
32270
32271 # Remove --cache-file and --srcdir arguments so they do not pile up.
32272 ac_sub_configure_args=
32273 ac_prev=
32274 for ac_arg in $ac_configure_args; do
32275 if test -n "$ac_prev"; then
32276 ac_prev=
32277 continue
32278 fi
32279 case $ac_arg in
32280 -cache-file | --cache-file | --cache-fil | --cache-fi \
32281 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32282 ac_prev=cache_file ;;
32283 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32284 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32285 | --c=*)
32286 ;;
32287 --config-cache | -C)
32288 ;;
32289 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32290 ac_prev=srcdir ;;
32291 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32292 ;;
32293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32294 ac_prev=prefix ;;
32295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32296 ;;
32297 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32298 esac
32299 done
32300
32301 # Always prepend --prefix to ensure using the same prefix
32302 # in subdir configurations.
32303 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32304
32305 ac_popdir=`pwd`
32306 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32307
32308 # Do not complain, so a configure script can configure whichever
32309 # parts of a large source tree are present.
32310 test -d $srcdir/$ac_dir || continue
32311
32312 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32313echo "$as_me: configuring in $ac_dir" >&6;}
32314 { if $as_mkdir_p; then
32315 mkdir -p "$ac_dir"
32316 else
32317 as_dir="$ac_dir"
32318 as_dirs=
32319 while test ! -d "$as_dir"; do
32320 as_dirs="$as_dir $as_dirs"
32321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032323 X"$as_dir" : 'X\(//\)[^/]' \| \
32324 X"$as_dir" : 'X\(//\)$' \| \
32325 X"$as_dir" : 'X\(/\)' \| \
32326 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032327echo X"$as_dir" |
32328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32330 /^X\(\/\/\)$/{ s//\1/; q; }
32331 /^X\(\/\).*/{ s//\1/; q; }
32332 s/.*/./; q'`
32333 done
32334 test ! -n "$as_dirs" || mkdir $as_dirs
32335 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32336echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32337 { (exit 1); exit 1; }; }; }
32338
32339 ac_builddir=.
32340
32341if test "$ac_dir" != .; then
32342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32343 # A "../" for each directory in $ac_dir_suffix.
32344 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32345else
32346 ac_dir_suffix= ac_top_builddir=
32347fi
32348
32349case $srcdir in
32350 .) # No --srcdir option. We are building in place.
32351 ac_srcdir=.
32352 if test -z "$ac_top_builddir"; then
32353 ac_top_srcdir=.
32354 else
32355 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32356 fi ;;
32357 [\\/]* | ?:[\\/]* ) # Absolute path.
32358 ac_srcdir=$srcdir$ac_dir_suffix;
32359 ac_top_srcdir=$srcdir ;;
32360 *) # Relative path.
32361 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32362 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32363esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032364
32365# Do not use `cd foo && pwd` to compute absolute paths, because
32366# the directories may not exist.
32367case `pwd` in
32368.) ac_abs_builddir="$ac_dir";;
32369*)
32370 case "$ac_dir" in
32371 .) ac_abs_builddir=`pwd`;;
32372 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32373 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32374 esac;;
32375esac
32376case $ac_abs_builddir in
32377.) ac_abs_top_builddir=${ac_top_builddir}.;;
32378*)
32379 case ${ac_top_builddir}. in
32380 .) ac_abs_top_builddir=$ac_abs_builddir;;
32381 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32382 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32383 esac;;
32384esac
32385case $ac_abs_builddir in
32386.) ac_abs_srcdir=$ac_srcdir;;
32387*)
32388 case $ac_srcdir in
32389 .) ac_abs_srcdir=$ac_abs_builddir;;
32390 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32391 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32392 esac;;
32393esac
32394case $ac_abs_builddir in
32395.) ac_abs_top_srcdir=$ac_top_srcdir;;
32396*)
32397 case $ac_top_srcdir in
32398 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32399 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32400 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32401 esac;;
32402esac
John Criswell12399a12003-09-30 15:55:44 +000032403
32404
32405 cd $ac_dir
32406
32407 # Check for guested configure; otherwise get Cygnus style configure.
32408 if test -f $ac_srcdir/configure.gnu; then
32409 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32410 elif test -f $ac_srcdir/configure; then
32411 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32412 elif test -f $ac_srcdir/configure.in; then
32413 ac_sub_configure=$ac_configure
32414 else
32415 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32416echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32417 ac_sub_configure=
32418 fi
32419
32420 # The recursion is here.
32421 if test -n "$ac_sub_configure"; then
32422 # Make the cache file name correct relative to the subdirectory.
32423 case $cache_file in
32424 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32425 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032426 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032427 esac
32428
32429 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32430echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32431 # The eval makes quoting arguments work.
32432 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032433 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32434 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032435echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32436 { (exit 1); exit 1; }; }
32437 fi
32438
32439 cd $ac_popdir
32440 done
32441fi
32442
Brian Gaekef3b24102003-11-16 18:38:14 +000032443
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032444if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032445 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32446echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032447 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32448echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32449 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32450echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32451 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32452echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32453 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32454echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032455fi