blob: e57466b8c7ad4caad096c3329892dfa502878b85 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer1bc68642006-07-27 23:00:30 +00003# Generated by GNU Autoconf 2.59 for llvm 1.9cvs.
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-'
Reid Spencer1bc68642006-07-27 23:00:30 +0000428PACKAGE_VERSION='1.9cvs'
429PACKAGE_STRING='llvm 1.9cvs'
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"
John Criswell0389cf72006-06-20 17:44:40 +0000435ac_subdirs_all="$ac_subdirs_all projects/privbracket"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000436ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell241116f2005-12-19 20:27:24 +0000442ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
John Criswell7a73b802003-06-30 21:59:07 +0000443# Factoring default headers for most tests.
444ac_includes_default="\
445#include <stdio.h>
446#if HAVE_SYS_TYPES_H
447# include <sys/types.h>
448#endif
449#if HAVE_SYS_STAT_H
450# include <sys/stat.h>
451#endif
452#if STDC_HEADERS
453# include <stdlib.h>
454# include <stddef.h>
455#else
456# if HAVE_STDLIB_H
457# include <stdlib.h>
458# endif
459#endif
460#if HAVE_STRING_H
461# if !STDC_HEADERS && HAVE_MEMORY_H
462# include <memory.h>
463# endif
464# include <string.h>
465#endif
466#if HAVE_STRINGS_H
467# include <strings.h>
468#endif
469#if HAVE_INTTYPES_H
470# include <inttypes.h>
471#else
472# if HAVE_STDINT_H
473# include <stdint.h>
474# endif
475#endif
476#if HAVE_UNISTD_H
477# include <unistd.h>
478#endif"
479
Reid Spencer1bc68642006-07-27 23:00:30 +0000480ac_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 LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON NM ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 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 +0000481ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000482
483# Initialize some variables set by options.
484ac_init_help=
485ac_init_version=false
486# The variables have the same names as the options, with
487# dashes changed to underlines.
488cache_file=/dev/null
489exec_prefix=NONE
490no_create=
491no_recursion=
492prefix=NONE
493program_prefix=NONE
494program_suffix=NONE
495program_transform_name=s,x,x,
496silent=
497site=
498srcdir=
499verbose=
500x_includes=NONE
501x_libraries=NONE
502
503# Installation directory options.
504# These are left unexpanded so users can "make install exec_prefix=/foo"
505# and all the variables that are supposed to be based on exec_prefix
506# by default will actually change.
507# Use braces instead of parens because sh, perl, etc. also accept them.
508bindir='${exec_prefix}/bin'
509sbindir='${exec_prefix}/sbin'
510libexecdir='${exec_prefix}/libexec'
511datadir='${prefix}/share'
512sysconfdir='${prefix}/etc'
513sharedstatedir='${prefix}/com'
514localstatedir='${prefix}/var'
515libdir='${exec_prefix}/lib'
516includedir='${prefix}/include'
517oldincludedir='/usr/include'
518infodir='${prefix}/info'
519mandir='${prefix}/man'
520
521ac_prev=
522for ac_option
523do
524 # If the previous option needs an argument, assign it.
525 if test -n "$ac_prev"; then
526 eval "$ac_prev=\$ac_option"
527 ac_prev=
528 continue
529 fi
530
531 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533 # Accept the important Cygnus configure options, so we can diagnose typos.
534
535 case $ac_option in
536
537 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 ac_prev=bindir ;;
539 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540 bindir=$ac_optarg ;;
541
542 -build | --build | --buil | --bui | --bu)
543 ac_prev=build_alias ;;
544 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545 build_alias=$ac_optarg ;;
546
547 -cache-file | --cache-file | --cache-fil | --cache-fi \
548 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549 ac_prev=cache_file ;;
550 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552 cache_file=$ac_optarg ;;
553
554 --config-cache | -C)
555 cache_file=config.cache ;;
556
557 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 ac_prev=datadir ;;
559 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 | --da=*)
561 datadir=$ac_optarg ;;
562
563 -disable-* | --disable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 eval "enable_$ac_feature=no" ;;
571
572 -enable-* | --enable-*)
573 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577 { (exit 1); exit 1; }; }
578 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 case $ac_option in
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 *) ac_optarg=yes ;;
582 esac
583 eval "enable_$ac_feature='$ac_optarg'" ;;
584
585 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587 | --exec | --exe | --ex)
588 ac_prev=exec_prefix ;;
589 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591 | --exec=* | --exe=* | --ex=*)
592 exec_prefix=$ac_optarg ;;
593
594 -gas | --gas | --ga | --g)
595 # Obsolete; use --with-gas.
596 with_gas=yes ;;
597
598 -help | --help | --hel | --he | -h)
599 ac_init_help=long ;;
600 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601 ac_init_help=recursive ;;
602 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603 ac_init_help=short ;;
604
605 -host | --host | --hos | --ho)
606 ac_prev=host_alias ;;
607 -host=* | --host=* | --hos=* | --ho=*)
608 host_alias=$ac_optarg ;;
609
610 -includedir | --includedir | --includedi | --included | --include \
611 | --includ | --inclu | --incl | --inc)
612 ac_prev=includedir ;;
613 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614 | --includ=* | --inclu=* | --incl=* | --inc=*)
615 includedir=$ac_optarg ;;
616
617 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 ac_prev=infodir ;;
619 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620 infodir=$ac_optarg ;;
621
622 -libdir | --libdir | --libdi | --libd)
623 ac_prev=libdir ;;
624 -libdir=* | --libdir=* | --libdi=* | --libd=*)
625 libdir=$ac_optarg ;;
626
627 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628 | --libexe | --libex | --libe)
629 ac_prev=libexecdir ;;
630 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631 | --libexe=* | --libex=* | --libe=*)
632 libexecdir=$ac_optarg ;;
633
634 -localstatedir | --localstatedir | --localstatedi | --localstated \
635 | --localstate | --localstat | --localsta | --localst \
636 | --locals | --local | --loca | --loc | --lo)
637 ac_prev=localstatedir ;;
638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641 localstatedir=$ac_optarg ;;
642
643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 ac_prev=mandir ;;
645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646 mandir=$ac_optarg ;;
647
648 -nfp | --nfp | --nf)
649 # Obsolete; use --without-fp.
650 with_fp=no ;;
651
652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653 | --no-cr | --no-c | -n)
654 no_create=yes ;;
655
656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658 no_recursion=yes ;;
659
660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662 | --oldin | --oldi | --old | --ol | --o)
663 ac_prev=oldincludedir ;;
664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667 oldincludedir=$ac_optarg ;;
668
669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 ac_prev=prefix ;;
671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672 prefix=$ac_optarg ;;
673
674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
675 | --program-pre | --program-pr | --program-p)
676 ac_prev=program_prefix ;;
677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679 program_prefix=$ac_optarg ;;
680
681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
682 | --program-suf | --program-su | --program-s)
683 ac_prev=program_suffix ;;
684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686 program_suffix=$ac_optarg ;;
687
688 -program-transform-name | --program-transform-name \
689 | --program-transform-nam | --program-transform-na \
690 | --program-transform-n | --program-transform- \
691 | --program-transform | --program-transfor \
692 | --program-transfo | --program-transf \
693 | --program-trans | --program-tran \
694 | --progr-tra | --program-tr | --program-t)
695 ac_prev=program_transform_name ;;
696 -program-transform-name=* | --program-transform-name=* \
697 | --program-transform-nam=* | --program-transform-na=* \
698 | --program-transform-n=* | --program-transform-=* \
699 | --program-transform=* | --program-transfor=* \
700 | --program-transfo=* | --program-transf=* \
701 | --program-trans=* | --program-tran=* \
702 | --progr-tra=* | --program-tr=* | --program-t=*)
703 program_transform_name=$ac_optarg ;;
704
705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706 | -silent | --silent | --silen | --sile | --sil)
707 silent=yes ;;
708
709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 ac_prev=sbindir ;;
711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 | --sbi=* | --sb=*)
713 sbindir=$ac_optarg ;;
714
715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717 | --sharedst | --shareds | --shared | --share | --shar \
718 | --sha | --sh)
719 ac_prev=sharedstatedir ;;
720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 | --sha=* | --sh=*)
724 sharedstatedir=$ac_optarg ;;
725
726 -site | --site | --sit)
727 ac_prev=site ;;
728 -site=* | --site=* | --sit=*)
729 site=$ac_optarg ;;
730
731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 ac_prev=srcdir ;;
733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734 srcdir=$ac_optarg ;;
735
736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737 | --syscon | --sysco | --sysc | --sys | --sy)
738 ac_prev=sysconfdir ;;
739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741 sysconfdir=$ac_optarg ;;
742
743 -target | --target | --targe | --targ | --tar | --ta | --t)
744 ac_prev=target_alias ;;
745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746 target_alias=$ac_optarg ;;
747
748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
749 verbose=yes ;;
750
751 -version | --version | --versio | --versi | --vers | -V)
752 ac_init_version=: ;;
753
754 -with-* | --with-*)
755 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 case $ac_option in
762 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763 *) ac_optarg=yes ;;
764 esac
765 eval "with_$ac_package='$ac_optarg'" ;;
766
767 -without-* | --without-*)
768 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771 { echo "$as_me: error: invalid package name: $ac_package" >&2
772 { (exit 1); exit 1; }; }
773 ac_package=`echo $ac_package | sed 's/-/_/g'`
774 eval "with_$ac_package=no" ;;
775
776 --x)
777 # Obsolete; use --with-x.
778 with_x=yes ;;
779
780 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781 | --x-incl | --x-inc | --x-in | --x-i)
782 ac_prev=x_includes ;;
783 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785 x_includes=$ac_optarg ;;
786
787 -x-libraries | --x-libraries | --x-librarie | --x-librari \
788 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789 ac_prev=x_libraries ;;
790 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792 x_libraries=$ac_optarg ;;
793
794 -*) { echo "$as_me: error: unrecognized option: $ac_option
795Try \`$0 --help' for more information." >&2
796 { (exit 1); exit 1; }; }
797 ;;
798
799 *=*)
800 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804 { (exit 1); exit 1; }; }
805 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806 eval "$ac_envvar='$ac_optarg'"
807 export $ac_envvar ;;
808
809 *)
810 # FIXME: should be removed in autoconf 3.0.
811 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815 ;;
816
817 esac
818done
819
820if test -n "$ac_prev"; then
821 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822 { echo "$as_me: error: missing argument to $ac_option" >&2
823 { (exit 1); exit 1; }; }
824fi
825
826# Be sure to have absolute paths.
827for ac_var in exec_prefix prefix
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# Be sure to have absolute paths.
838for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000839 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000840do
841 eval ac_val=$`echo $ac_var`
842 case $ac_val in
843 [\\/$]* | ?:[\\/]* ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
846 esac
847done
848
849# There might be people who depend on the old broken behavior: `$host'
850# used to hold the argument of --host etc.
851# FIXME: To remove some day.
852build=$build_alias
853host=$host_alias
854target=$target_alias
855
856# FIXME: To remove some day.
857if test "x$host_alias" != x; then
858 if test "x$build_alias" = x; then
859 cross_compiling=maybe
860 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861 If a cross compiler is detected then cross compile mode will be used." >&2
862 elif test "x$build_alias" != "x$host_alias"; then
863 cross_compiling=yes
864 fi
865fi
866
867ac_tool_prefix=
868test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870test "$silent" = yes && exec 6>/dev/null
871
872
873# Find the source files, if location was not specified.
874if test -z "$srcdir"; then
875 ac_srcdir_defaulted=yes
876 # Try the directory containing this script, then its parent.
877 ac_confdir=`(dirname "$0") 2>/dev/null ||
878$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000879 X"$0" : 'X\(//\)[^/]' \| \
880 X"$0" : 'X\(//\)$' \| \
881 X"$0" : 'X\(/\)' \| \
882 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000883echo X"$0" |
884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886 /^X\(\/\/\)$/{ s//\1/; q; }
887 /^X\(\/\).*/{ s//\1/; q; }
888 s/.*/./; q'`
889 srcdir=$ac_confdir
890 if test ! -r $srcdir/$ac_unique_file; then
891 srcdir=..
892 fi
893else
894 ac_srcdir_defaulted=no
895fi
896if test ! -r $srcdir/$ac_unique_file; then
897 if test "$ac_srcdir_defaulted" = yes; then
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899 { (exit 1); exit 1; }; }
900 else
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902 { (exit 1); exit 1; }; }
903 fi
904fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000905(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000908srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909ac_env_build_alias_set=${build_alias+set}
910ac_env_build_alias_value=$build_alias
911ac_cv_env_build_alias_set=${build_alias+set}
912ac_cv_env_build_alias_value=$build_alias
913ac_env_host_alias_set=${host_alias+set}
914ac_env_host_alias_value=$host_alias
915ac_cv_env_host_alias_set=${host_alias+set}
916ac_cv_env_host_alias_value=$host_alias
917ac_env_target_alias_set=${target_alias+set}
918ac_env_target_alias_value=$target_alias
919ac_cv_env_target_alias_set=${target_alias+set}
920ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000921ac_env_CC_set=${CC+set}
922ac_env_CC_value=$CC
923ac_cv_env_CC_set=${CC+set}
924ac_cv_env_CC_value=$CC
925ac_env_CFLAGS_set=${CFLAGS+set}
926ac_env_CFLAGS_value=$CFLAGS
927ac_cv_env_CFLAGS_set=${CFLAGS+set}
928ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000929ac_env_LDFLAGS_set=${LDFLAGS+set}
930ac_env_LDFLAGS_value=$LDFLAGS
931ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932ac_cv_env_LDFLAGS_value=$LDFLAGS
933ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_env_CPPFLAGS_value=$CPPFLAGS
935ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000937ac_env_CPP_set=${CPP+set}
938ac_env_CPP_value=$CPP
939ac_cv_env_CPP_set=${CPP+set}
940ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000941ac_env_CXX_set=${CXX+set}
942ac_env_CXX_value=$CXX
943ac_cv_env_CXX_set=${CXX+set}
944ac_cv_env_CXX_value=$CXX
945ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_env_CXXFLAGS_value=$CXXFLAGS
947ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000949ac_env_CXXCPP_set=${CXXCPP+set}
950ac_env_CXXCPP_value=$CXXCPP
951ac_cv_env_CXXCPP_set=${CXXCPP+set}
952ac_cv_env_CXXCPP_value=$CXXCPP
953ac_env_F77_set=${F77+set}
954ac_env_F77_value=$F77
955ac_cv_env_F77_set=${F77+set}
956ac_cv_env_F77_value=$F77
957ac_env_FFLAGS_set=${FFLAGS+set}
958ac_env_FFLAGS_value=$FFLAGS
959ac_cv_env_FFLAGS_set=${FFLAGS+set}
960ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
968 cat <<_ACEOF
Reid Spencer1bc68642006-07-27 23:00:30 +0000969\`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE. See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991 cat <<_ACEOF
992Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000994 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000996 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1018_ACEOF
1019
1020 cat <<\_ACEOF
1021
1022System types:
1023 --build=BUILD configure for building on BUILD [guessed]
1024 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1025 --target=TARGET configure for building compilers for TARGET [HOST]
1026_ACEOF
1027fi
1028
1029if test -n "$ac_init_help"; then
1030 case $ac_init_help in
Reid Spencer1bc68642006-07-27 23:00:30 +00001031 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001032 esac
1033 cat <<\_ACEOF
1034
1035Optional Features:
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001038 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001039 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001040 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001042 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001043 --enable-threads Use threads if available (default is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001044 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001045 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001046 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001047 --enable-shared[=PKGS]
1048 build shared libraries [default=yes]
1049 --enable-static[=PKGS]
1050 build static libraries [default=yes]
1051 --enable-fast-install[=PKGS]
1052 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001053 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Optional Packages:
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001058 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1059 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001060 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001061 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-pic try to use only PIC/non-PIC objects [default=use
1064 both]
1065 --with-tags[=TAGS]
1066 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001069 CC C compiler command
1070 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001075 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001081
1082Use these variables to override the choices made by `configure' or to help
1083it to find libraries and programs with nonstandard names/locations.
1084
1085Report bugs to <llvmbugs@cs.uiuc.edu>.
1086_ACEOF
1087fi
1088
1089if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1091 ac_popdir=`pwd`
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1094 ac_builddir=.
1095
1096if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100else
1101 ac_dir_suffix= ac_top_builddir=
1102fi
1103
1104case $srcdir in
1105 .) # No --srcdir option. We are building in place.
1106 ac_srcdir=.
1107 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=.
1109 else
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 fi ;;
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1115 *) # Relative path.
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001119
1120# Do not use `cd foo && pwd` to compute absolute paths, because
1121# the directories may not exist.
1122case `pwd` in
1123.) ac_abs_builddir="$ac_dir";;
1124*)
1125 case "$ac_dir" in
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_builddir=${ac_top_builddir}.;;
1133*)
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_srcdir=$ac_srcdir;;
1142*)
1143 case $ac_srcdir in
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_srcdir=$ac_top_srcdir;;
1151*)
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 esac;;
1157esac
John Criswell7a73b802003-06-30 21:59:07 +00001158
1159 cd $ac_dir
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1162 echo
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1165 echo
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001168 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001169 echo
1170 $ac_configure --help
1171 else
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 fi
1174 cd $ac_popdir
1175 done
1176fi
1177
1178test -n "$ac_init_help" && exit 0
1179if $ac_init_version; then
1180 cat <<\_ACEOF
Reid Spencer1bc68642006-07-27 23:00:30 +00001181llvm configure 1.9cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001182generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001183
Reid Spencer2706f8c2004-09-19 23:53:36 +00001184Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001185This configure script is free software; the Free Software Foundation
1186gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001187
John Criswellc0c186d2005-11-08 21:11:33 +00001188Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001189_ACEOF
1190 exit 0
1191fi
1192exec 5>config.log
1193cat >&5 <<_ACEOF
1194This file contains any messages produced by compilers while
1195running configure, to aid debugging if configure makes a mistake.
1196
Reid Spencer1bc68642006-07-27 23:00:30 +00001197It was created by llvm $as_me 1.9cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001198generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001199
1200 $ $0 $@
1201
1202_ACEOF
1203{
1204cat <<_ASUNAME
1205## --------- ##
1206## Platform. ##
1207## --------- ##
1208
1209hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1217
1218/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1225
1226_ASUNAME
1227
1228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229for as_dir in $PATH
1230do
1231 IFS=$as_save_IFS
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1234done
1235
1236} >&5
1237
1238cat >&5 <<_ACEOF
1239
1240
1241## ----------- ##
1242## Core tests. ##
1243## ----------- ##
1244
1245_ACEOF
1246
1247
1248# Keep a trace of the command line.
1249# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001250# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001251# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001252# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001253ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001254ac_configure_args0=
1255ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001256ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001257ac_must_keep_next=false
1258for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001259do
John Criswell0c38eaf2003-09-10 15:17:25 +00001260 for ac_arg
1261 do
1262 case $ac_arg in
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 continue ;;
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 esac
1270 case $ac_pass in
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272 2)
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001275 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001276 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001277 case $ac_arg in
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 esac
1285 ;;
1286 -* ) ac_must_keep_next=true ;;
1287 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001288 fi
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1291 ac_sep=" "
1292 ;;
1293 esac
1294 done
John Criswell7a73b802003-06-30 21:59:07 +00001295done
John Criswell0c38eaf2003-09-10 15:17:25 +00001296$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297$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 +00001298
1299# When interrupted or exit'd, cleanup temporary files, and complete
1300# config.log. We remove comments because anyway the quotes in there
1301# would cause problems or look ugly.
1302# WARNING: Be sure not to use single quotes in there, as some shells,
1303# such as our DU 5.0 friend, will then `close' the trap.
1304trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1306 {
1307 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001308
John Criswell7a73b802003-06-30 21:59:07 +00001309 cat <<\_ASBOX
1310## ---------------- ##
1311## Cache variables. ##
1312## ---------------- ##
1313_ASBOX
1314 echo
1315 # The following way of writing the cache mishandles newlines in values,
1316{
1317 (set) 2>&1 |
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 *ac_space=\ *)
1320 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001323 ;;
1324 *)
1325 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001327 ;;
1328 esac;
1329}
1330 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001331
1332 cat <<\_ASBOX
1333## ----------------- ##
1334## Output variables. ##
1335## ----------------- ##
1336_ASBOX
1337 echo
1338 for ac_var in $ac_subst_vars
1339 do
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1342 done | sort
1343 echo
1344
1345 if test -n "$ac_subst_files"; then
1346 cat <<\_ASBOX
1347## ------------- ##
1348## Output files. ##
1349## ------------- ##
1350_ASBOX
1351 echo
1352 for ac_var in $ac_subst_files
1353 do
1354 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001355 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001356 done | sort
1357 echo
1358 fi
1359
John Criswell7a73b802003-06-30 21:59:07 +00001360 if test -s confdefs.h; then
1361 cat <<\_ASBOX
1362## ----------- ##
1363## confdefs.h. ##
1364## ----------- ##
1365_ASBOX
1366 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001367 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001368 echo
1369 fi
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1373 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001374 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 exit $exit_status
1377 ' 0
1378for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380done
1381ac_signal=0
1382
1383# confdefs.h avoids OS command line length limits that DEFS can exceed.
1384rm -rf conftest* confdefs.h
1385# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386echo >confdefs.h
1387
1388# Predefined preprocessor variables.
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_NAME "$PACKAGE_NAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_VERSION "$PACKAGE_VERSION"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_STRING "$PACKAGE_STRING"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412_ACEOF
1413
1414
1415# Let the site file select an alternate cache file if it wants to.
1416# Prefer explicitly selected file to automatically selected ones.
1417if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420 else
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 fi
1423fi
1424for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1429 . "$ac_site_file"
1430 fi
1431done
1432
1433if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438echo "$as_me: loading cache $cache_file" >&6;}
1439 case $cache_file in
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1442 esac
1443 fi
1444else
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446echo "$as_me: creating cache $cache_file" >&6;}
1447 >$cache_file
1448fi
1449
1450# Check that the precious variables saved in the cache have kept the same
1451# value.
1452ac_cache_corrupted=false
1453for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1460 set,)
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1464 ,set)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,);;
1469 *)
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001472echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001474echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001476echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001477 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001478 fi;;
1479 esac
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1482 case $ac_new_val in
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1486 esac
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490 esac
1491 fi
1492done
1493if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1499fi
1500
1501ac_ext=c
1502ac_cpp='$CPP $CPPFLAGS'
1503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1531
1532
John Criswell0c38eaf2003-09-10 15:17:25 +00001533
Misha Brukman19098e52005-05-12 22:15:34 +00001534LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001535
1536
1537
1538
1539
1540
1541
John Criswell7a73b802003-06-30 21:59:07 +00001542ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001543for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001544 if test -f $ac_dir/install-sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 break
1548 elif test -f $ac_dir/install.sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1551 break
1552 elif test -f $ac_dir/shtool; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1555 break
1556 fi
1557done
1558if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001561 { (exit 1); exit 1; }; }
1562fi
1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
John Criswell392aaa32003-07-22 19:18:09 +00001567
Reid Spencer2706f8c2004-09-19 23:53:36 +00001568if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001569 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001571echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001573 fi
John Criswell93e1c722003-09-15 17:04:06 +00001574fi
1575
John Criswell33a911a2003-11-25 20:36:46 +00001576for i in `ls ${srcdir}/projects`
1577do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001578 if test -d ${srcdir}/projects/${i} ; then
1579 case ${i} in
1580 "CVS") ;;
1581 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/sample"
1584 ;;
1585 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001586
Reid Spencer4d68ba22004-09-07 16:35:45 +00001587subdirs="$subdirs projects/Stacker"
1588 ;;
John Criswell0389cf72006-06-20 17:44:40 +00001589 "privbracket")
1590
1591subdirs="$subdirs projects/privbracket"
1592 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001593 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001594
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595subdirs="$subdirs projects/llvm-test"
1596 ;;
1597 "llvm-reopt")
1598
1599subdirs="$subdirs projects/llvm-reopt"
1600;;
1601 "llvm-gcc")
1602
1603subdirs="$subdirs projects/llvm-gcc"
1604 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001605 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001606
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001607subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001608 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001609 "llvm-tv")
1610
1611subdirs="$subdirs projects/llvm-tv"
1612 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001613 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001614
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001615subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001616 ;;
John Criswell241116f2005-12-19 20:27:24 +00001617 "llvm-kernel")
1618
1619subdirs="$subdirs projects/llvm-kernel"
1620 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001621 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001622 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001624 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001625 esac
John Criswell33a911a2003-11-25 20:36:46 +00001626 fi
1627done
John Criswell559a6c12003-09-30 16:31:48 +00001628
John Criswell7a73b802003-06-30 21:59:07 +00001629
1630# Make sure we can run config.sub.
1631$ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636echo "$as_me:$LINENO: checking build system type" >&5
1637echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 ac_cv_build_alias=$build_alias
1642test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653fi
1654echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655echo "${ECHO_T}$ac_cv_build" >&6
1656build=$ac_cv_build
1657build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662echo "$as_me:$LINENO: checking host system type" >&5
1663echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667 ac_cv_host_alias=$host_alias
1668test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675fi
1676echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677echo "${ECHO_T}$ac_cv_host" >&6
1678host=$ac_cv_host
1679host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684echo "$as_me:$LINENO: checking target system type" >&5
1685echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686if test "${ac_cv_target+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689 ac_cv_target_alias=$target_alias
1690test "x$ac_cv_target_alias" = "x" &&
1691 ac_cv_target_alias=$ac_cv_host_alias
1692ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695 { (exit 1); exit 1; }; }
1696
1697fi
1698echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699echo "${ECHO_T}$ac_cv_target" >&6
1700target=$ac_cv_target
1701target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706# The aliases save the names the user supplied, while $host etc.
1707# will get canonicalized.
1708test -n "$target_alias" &&
1709 test "$program_prefix$program_suffix$program_transform_name" = \
1710 NONENONEs,x,x, &&
1711 program_prefix=${target_alias}-
1712
Reid Spencere2cfe5d2006-07-26 21:14:56 +00001713echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
1714echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6
Reid Spencer7b3e8512004-12-24 06:29:05 +00001715if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00001718 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001719 *-*-aix*)
1720 llvm_cv_os_type="AIX"
1721 llvm_cv_platform_type="Unix" ;;
1722 *-*-cygwin*)
1723 llvm_cv_os_type="Cygwin"
1724 llvm_cv_platform_type="Unix" ;;
1725 *-*-darwin*)
1726 llvm_cv_os_type="Darwin"
1727 llvm_cv_platform_type="Unix" ;;
1728 *-*-freebsd*)
1729 llvm_cv_os_type="FreeBSD"
1730 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00001731 *-*-openbsd*)
1732 llvm_cv_os_type="OpenBSD"
1733 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001734 *-*-hpux*)
1735 llvm_cv_os_type="HP-UX"
1736 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001737 *-*-interix*)
1738 llvm_cv_os_type="Interix"
1739 llvm_cv_platform_type="Unix" ;;
1740 *-*-linux*)
1741 llvm_cv_os_type="Linux"
1742 llvm_cv_platform_type="Unix" ;;
1743 *-*-solaris*)
1744 llvm_cv_os_type="SunOS"
1745 llvm_cv_platform_type="Unix" ;;
1746 *-*-win32*)
1747 llvm_cv_os_type="Win32"
1748 llvm_cv_platform_type="Win32" ;;
1749 *-*-mingw*)
1750 llvm_cv_os_type="MingW"
1751 llvm_cv_platform_type="Win32" ;;
1752 *)
1753 llvm_cv_os_type="Unknown"
1754 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001755esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001756fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001757echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001759
Reid Spencer7b3e8512004-12-24 06:29:05 +00001760if test "$llvm_cv_os_type" = "Unknown" ; then
1761 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001763 { (exit 1); exit 1; }; }
1764fi
1765
Reid Spencer7b3e8512004-12-24 06:29:05 +00001766OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001767
1768
Reid Spencer7b3e8512004-12-24 06:29:05 +00001769case $llvm_cv_platform_type in
1770 Unix)
1771
1772cat >>confdefs.h <<\_ACEOF
1773#define LLVM_ON_UNIX 1
1774_ACEOF
1775
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001776 LLVM_ON_UNIX=1
1777
1778 LLVM_ON_WIN32=0
1779
Reid Spencer7b3e8512004-12-24 06:29:05 +00001780 ;;
1781 Win32)
1782
1783cat >>confdefs.h <<\_ACEOF
1784#define LLVM_ON_WIN32 1
1785_ACEOF
1786
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001787 LLVM_ON_UNIX=0
1788
1789 LLVM_ON_WIN32=1
1790
Reid Spencer7b3e8512004-12-24 06:29:05 +00001791 ;;
1792esac
1793
Reid Spencer73fb5482004-08-31 14:20:36 +00001794echo "$as_me:$LINENO: checking target architecture" >&5
1795echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001796if test "${llvm_cv_target_arch+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001800 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001801 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001802 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1803 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001804 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001805 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001806 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001807esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001808fi
1809echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001811
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001812if test "$llvm_cv_target_arch" = "Unknown" ; then
1813 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1815fi
John Criswell76595452003-07-01 22:07:39 +00001816
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001817ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001818
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001819
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001820ac_ext=c
1821ac_cpp='$CPP $CPPFLAGS'
1822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001825if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1835else
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1846 fi
1847done
1848done
1849
1850fi
1851fi
1852CC=$ac_cv_prog_CC
1853if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855echo "${ECHO_T}$CC" >&6
1856else
1857 echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861fi
1862if test -z "$ac_cv_prog_CC"; then
1863 ac_ct_CC=$CC
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865set dummy gcc; ac_word=$2
1866echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885done
1886done
1887
1888fi
1889fi
1890ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893echo "${ECHO_T}$ac_ct_CC" >&6
1894else
1895 echo "$as_me:$LINENO: result: no" >&5
1896echo "${ECHO_T}no" >&6
1897fi
1898
1899 CC=$ac_ct_CC
1900else
1901 CC="$ac_cv_prog_CC"
1902fi
1903
1904if test -z "$CC"; then
1905 if test -n "$ac_tool_prefix"; then
1906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907set dummy ${ac_tool_prefix}cc; ac_word=$2
1908echo "$as_me:$LINENO: checking for $ac_word" >&5
1909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912else
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1915else
1916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917for as_dir in $PATH
1918do
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_CC="${ac_tool_prefix}cc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 break 2
1926 fi
1927done
1928done
1929
1930fi
1931fi
1932CC=$ac_cv_prog_CC
1933if test -n "$CC"; then
1934 echo "$as_me:$LINENO: result: $CC" >&5
1935echo "${ECHO_T}$CC" >&6
1936else
1937 echo "$as_me:$LINENO: result: no" >&5
1938echo "${ECHO_T}no" >&6
1939fi
1940
1941fi
1942if test -z "$ac_cv_prog_CC"; then
1943 ac_ct_CC=$CC
1944 # Extract the first word of "cc", so it can be a program name with args.
1945set dummy cc; ac_word=$2
1946echo "$as_me:$LINENO: checking for $ac_word" >&5
1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953else
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="cc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 break 2
1964 fi
1965done
1966done
1967
1968fi
1969fi
1970ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973echo "${ECHO_T}$ac_ct_CC" >&6
1974else
1975 echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6
1977fi
1978
1979 CC=$ac_ct_CC
1980else
1981 CC="$ac_cv_prog_CC"
1982fi
1983
1984fi
1985if test -z "$CC"; then
1986 # Extract the first word of "cc", so it can be a program name with args.
1987set dummy cc; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1995else
1996 ac_prog_rejected=no
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005 ac_prog_rejected=yes
2006 continue
2007 fi
2008 ac_cv_prog_CC="cc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2
2011 fi
2012done
2013done
2014
2015if test $ac_prog_rejected = yes; then
2016 # We found a bogon in the path, so make sure we never use it.
2017 set dummy $ac_cv_prog_CC
2018 shift
2019 if test $# != 0; then
2020 # We chose a different compiler from the bogus one.
2021 # However, it has the same basename, so the bogon will be chosen
2022 # first if we set CC to just the basename; use the full file name.
2023 shift
2024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025 fi
2026fi
2027fi
2028fi
2029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6
2033else
2034 echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038fi
2039if test -z "$CC"; then
2040 if test -n "$ac_tool_prefix"; then
2041 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002042 do
2043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002047if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 break 2
2063 fi
2064done
2065done
2066
2067fi
2068fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069CC=$ac_cv_prog_CC
2070if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002073else
2074 echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6
2076fi
2077
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002079 done
2080fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081if test -z "$CC"; then
2082 ac_ct_CC=$CC
2083 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002084do
2085 # Extract the first word of "$ac_prog", so it can be a program name with args.
2086set dummy $ac_prog; ac_word=$2
2087echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002094else
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 break 2
2105 fi
2106done
2107done
2108
2109fi
2110fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
2113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002115else
2116 echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6
2118fi
2119
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002120 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002121done
John Criswell7a73b802003-06-30 21:59:07 +00002122
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002123 CC=$ac_ct_CC
2124fi
2125
John Criswell7a73b802003-06-30 21:59:07 +00002126fi
2127
2128
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002129test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: no acceptable C compiler found in \$PATH
2132See \`config.log' for more details." >&2;}
2133 { (exit 1); exit 1; }; }
2134
John Criswell7a73b802003-06-30 21:59:07 +00002135# Provide some information about the compiler.
2136echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002137 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002138ac_compiler=`set X $ac_compile; echo $2`
2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140 (eval $ac_compiler --version </dev/null >&5) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145 (eval $ac_compiler -v </dev/null >&5) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150 (eval $ac_compiler -V </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154
2155cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002156/* confdefs.h. */
2157_ACEOF
2158cat confdefs.h >>conftest.$ac_ext
2159cat >>conftest.$ac_ext <<_ACEOF
2160/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002161
John Criswell7a73b802003-06-30 21:59:07 +00002162int
2163main ()
2164{
2165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002171ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002172# Try to create an executable without -o first, disregard a.out.
2173# It will help us diagnose broken compilers, and finding out an intuition
2174# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002175echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002177ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179 (eval $ac_link_default) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 # Find the output, starting from the most likely. This scheme is
2184# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2185# resort.
2186
2187# Be careful to initialize this variable, since it used to be cached.
2188# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2189ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002190# b.out is created by i960 compilers.
2191for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192do
2193 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002194 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002196 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002197 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002198 # This is the source file.
2199 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002200 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 # We found the default executable, but exeext='' is most
2202 # certainly right.
2203 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002204 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 # FIXME: I believe we export ac_cv_exeext for Libtool,
2207 # but it would be cool to find out if it's true. Does anybody
2208 # maintain Libtool? --akim.
2209 export ac_cv_exeext
2210 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002211 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002212 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002213 esac
2214done
2215else
2216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002217sed 's/^/| /' conftest.$ac_ext >&5
2218
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002219{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002220See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002221echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002222See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002223 { (exit 77); exit 77; }; }
2224fi
2225
2226ac_exeext=$ac_cv_exeext
2227echo "$as_me:$LINENO: result: $ac_file" >&5
2228echo "${ECHO_T}$ac_file" >&6
2229
2230# Check the compiler produces executables we can run. If not, either
2231# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002232echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002234# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235# If not cross compiling, check that we can run a simple program.
2236if test "$cross_compiling" != yes; then
2237 if { ac_try='./$ac_file'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 cross_compiling=no
2244 else
2245 if test "$cross_compiling" = maybe; then
2246 cross_compiling=yes
2247 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002248 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002251echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002252If you meant to cross compile, use \`--host'.
2253See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002254 { (exit 1); exit 1; }; }
2255 fi
2256 fi
2257fi
2258echo "$as_me:$LINENO: result: yes" >&5
2259echo "${ECHO_T}yes" >&6
2260
John Criswell0c38eaf2003-09-10 15:17:25 +00002261rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002262ac_clean_files=$ac_clean_files_save
2263# Check the compiler produces executables we can run. If not, either
2264# the compiler is broken, or we cross compile.
2265echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268echo "${ECHO_T}$cross_compiling" >&6
2269
2270echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273 (eval $ac_link) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2279# work properly (i.e., refer to `conftest.exe'), while it won't with
2280# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002281for ac_file in conftest.exe conftest conftest.*; do
2282 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002283 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002286 export ac_cv_exeext
2287 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002288 * ) break;;
2289 esac
2290done
2291else
John Criswell0c38eaf2003-09-10 15:17:25 +00002292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002296 { (exit 1); exit 1; }; }
2297fi
2298
2299rm -f conftest$ac_cv_exeext
2300echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301echo "${ECHO_T}$ac_cv_exeext" >&6
2302
2303rm -f conftest.$ac_ext
2304EXEEXT=$ac_cv_exeext
2305ac_exeext=$EXEEXT
2306echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002312/* confdefs.h. */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002317
John Criswell7a73b802003-06-30 21:59:07 +00002318int
2319main ()
2320{
2321
2322 ;
2323 return 0;
2324}
2325_ACEOF
2326rm -f conftest.o conftest.obj
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2333 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336 break;;
2337 esac
2338done
2339else
2340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002347 { (exit 1); exit 1; }; }
2348fi
2349
2350rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351fi
2352echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353echo "${ECHO_T}$ac_cv_objext" >&6
2354OBJEXT=$ac_cv_objext
2355ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002367
John Criswell7a73b802003-06-30 21:59:07 +00002368int
2369main ()
2370{
2371#ifndef __GNUC__
2372 choke me
2373#endif
2374
2375 ;
2376 return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002381 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_compiler_gnu=yes
2402else
2403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002404sed 's/^/| /' conftest.$ac_ext >&5
2405
John Criswell7a73b802003-06-30 21:59:07 +00002406ac_compiler_gnu=no
2407fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002410
2411fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414GCC=`test $ac_compiler_gnu = yes && echo yes`
2415ac_test_CFLAGS=${CFLAGS+set}
2416ac_save_CFLAGS=$CFLAGS
2417CFLAGS="-g"
2418echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002429
John Criswell7a73b802003-06-30 21:59:07 +00002430int
2431main ()
2432{
2433
2434 ;
2435 return 0;
2436}
2437_ACEOF
2438rm -f conftest.$ac_objext
2439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002440 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002442 grep -v '^ *+' conftest.er1 >conftest.err
2443 rm -f conftest.er1
2444 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002448 || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002461else
2462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002463sed 's/^/| /' conftest.$ac_ext >&5
2464
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002468fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471if test "$ac_test_CFLAGS" = set; then
2472 CFLAGS=$ac_save_CFLAGS
2473elif test $ac_cv_prog_cc_g = yes; then
2474 if test "$GCC" = yes; then
2475 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002476 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002478 fi
2479else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480 if test "$GCC" = yes; then
2481 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002482 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002484 fi
2485fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 ac_cv_prog_cc_stdc=no
2492ac_save_CC=$CC
2493cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h. */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h. */
2499#include <stdarg.h>
2500#include <stdio.h>
2501#include <sys/types.h>
2502#include <sys/stat.h>
2503/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2504struct buf { int x; };
2505FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506static char *e (p, i)
2507 char **p;
2508 int i;
2509{
2510 return p[i];
2511}
2512static char *f (char * (*g) (char **, int), char **p, ...)
2513{
2514 char *s;
2515 va_list v;
2516 va_start (v,p);
2517 s = g (p, va_arg (v,int));
2518 va_end (v);
2519 return s;
2520}
2521
2522/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2523 function prototypes and stuff, but not '\xHH' hex character constants.
2524 These don't provoke an error unfortunately, instead are silently treated
2525 as 'x'. The following induces an error, until -std1 is added to get
2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2527 array size at least. It's necessary to write '\x00'==0 to get something
2528 that's true only with -std1. */
2529int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2530
2531int test (int i, double x);
2532struct s1 {int (*f) (int a);};
2533struct s2 {int (*f) (double a);};
2534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535int argc;
2536char **argv;
2537int
2538main ()
2539{
2540return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545# Don't try gcc -ansi; that turns off useful extensions and
2546# breaks some systems' header files.
2547# AIX -qlanglvl=ansi
2548# Ultrix and OSF/1 -std1
2549# HP-UX 10.20 and later -Ae
2550# HP-UX older versions -Aa -D_HPUX_SOURCE
2551# SVR4 -Xc -D__EXTENSIONS__
2552for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2553do
2554 CC="$ac_save_CC $ac_arg"
2555 rm -f conftest.$ac_objext
2556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_prog_cc_stdc=$ac_arg
2578break
2579else
2580 echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583fi
2584rm -f conftest.err conftest.$ac_objext
2585done
2586rm -f conftest.$ac_ext conftest.$ac_objext
2587CC=$ac_save_CC
2588
2589fi
2590
2591case "x$ac_cv_prog_cc_stdc" in
2592 x|xno)
2593 echo "$as_me:$LINENO: result: none needed" >&5
2594echo "${ECHO_T}none needed" >&6 ;;
2595 *)
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598 CC="$CC $ac_cv_prog_cc_stdc" ;;
2599esac
2600
2601# Some people use a C++ compiler to compile C. Since we use `exit',
2602# in C++ we need to declare it. In case someone uses the same compiler
2603# for both compiling C and C++ we need to have the C++ compiler decide
2604# the declaration of exit, since it's the most demanding environment.
2605cat >conftest.$ac_ext <<_ACEOF
2606#ifndef __cplusplus
2607 choke me
2608#endif
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2613 ac_status=$?
2614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002633 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2638 'void exit (int);'
2639do
2640 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002646$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002647#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002648int
2649main ()
2650{
2651exit (42);
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002658 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 :
2679else
2680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002681sed 's/^/| /' conftest.$ac_ext >&5
2682
John Criswell7a73b802003-06-30 21:59:07 +00002683continue
2684fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002686 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002687/* confdefs.h. */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002692$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002693int
2694main ()
2695{
2696exit (42);
2697 ;
2698 return 0;
2699}
2700_ACEOF
2701rm -f conftest.$ac_objext
2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002703 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002704 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002710 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 break
2724else
2725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002726sed 's/^/| /' conftest.$ac_ext >&5
2727
John Criswell7a73b802003-06-30 21:59:07 +00002728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002730done
2731rm -f conftest*
2732if test -n "$ac_declaration"; then
2733 echo '#ifdef __cplusplus' >>confdefs.h
2734 echo $ac_declaration >>confdefs.h
2735 echo '#endif' >>confdefs.h
2736fi
2737
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738else
2739 echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742fi
2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750
2751echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753if test "${ac_cv_c_bigendian+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756 # See if sys/param.h defines the BYTE_ORDER macro.
2757cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h. */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h. */
2763#include <sys/types.h>
2764#include <sys/param.h>
2765
2766int
2767main ()
2768{
2769#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2770 bogus endian macros
2771#endif
2772
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 # It does; now see whether it defined to BIG_ENDIAN or not.
2800cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h. */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h. */
2806#include <sys/types.h>
2807#include <sys/param.h>
2808
2809int
2810main ()
2811{
2812#if BYTE_ORDER != BIG_ENDIAN
2813 not big endian
2814#endif
2815
2816 ;
2817 return 0;
2818}
2819_ACEOF
2820rm -f conftest.$ac_objext
2821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_c_bigendian=yes
2843else
2844 echo "$as_me: failed program was:" >&5
2845sed 's/^/| /' conftest.$ac_ext >&5
2846
2847ac_cv_c_bigendian=no
2848fi
2849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850else
2851 echo "$as_me: failed program was:" >&5
2852sed 's/^/| /' conftest.$ac_ext >&5
2853
2854# It does not; compile a test program.
2855if test "$cross_compiling" = yes; then
2856 # try to guess the endianness by grepping values into an object file
2857 ac_cv_c_bigendian=unknown
2858 cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2870int
2871main ()
2872{
2873 _ascii (); _ebcdic ();
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901 ac_cv_c_bigendian=yes
2902fi
2903if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904 if test "$ac_cv_c_bigendian" = unknown; then
2905 ac_cv_c_bigendian=no
2906 else
2907 # finding both strings is unlikely to happen, but who knows?
2908 ac_cv_c_bigendian=unknown
2909 fi
2910fi
2911else
2912 echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915fi
2916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917else
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924int
2925main ()
2926{
2927 /* Are we little or big endian? From Harbison&Steele. */
2928 union
2929 {
2930 long l;
2931 char c[sizeof (long)];
2932 } u;
2933 u.l = 1;
2934 exit (u.c[sizeof (long) - 1] == 1);
2935}
2936_ACEOF
2937rm -f conftest$ac_exeext
2938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_c_bigendian=no
2949else
2950 echo "$as_me: program exited with status $ac_status" >&5
2951echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954( exit $ac_status )
2955ac_cv_c_bigendian=yes
2956fi
2957rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2958fi
2959fi
2960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961fi
2962echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964case $ac_cv_c_bigendian in
2965 yes)
2966 ENDIAN=big
2967 ;;
2968 no)
2969 ENDIAN=little
2970 ;;
2971 *)
2972 { { echo "$as_me:$LINENO: error: unknown endianness
2973presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974echo "$as_me: error: unknown endianness
2975presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976 { (exit 1); exit 1; }; } ;;
2977esac
2978
2979
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002980if test "$cross_compiling" = yes; then
2981 LLVM_CROSS_COMPILING=1
2982
2983
2984echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
2985echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6
2986if test "${ac_cv_build_exeext+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2990 ac_cv_build_exeext=.exe
2991else
2992 ac_build_prefix=${build_alias}-
2993
2994 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
2995set dummy ${ac_build_prefix}gcc; ac_word=$2
2996echo "$as_me:$LINENO: checking for $ac_word" >&5
2997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 if test -n "$BUILD_CC"; then
3002 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015done
3016done
3017
3018fi
3019fi
3020BUILD_CC=$ac_cv_prog_BUILD_CC
3021if test -n "$BUILD_CC"; then
3022 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3023echo "${ECHO_T}$BUILD_CC" >&6
3024else
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027fi
3028
3029 if test -z "$BUILD_CC"; then
3030 # Extract the first word of "gcc", so it can be a program name with args.
3031set dummy gcc; ac_word=$2
3032echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 if test -n "$BUILD_CC"; then
3038 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_BUILD_CC="gcc"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051done
3052done
3053
3054fi
3055fi
3056BUILD_CC=$ac_cv_prog_BUILD_CC
3057if test -n "$BUILD_CC"; then
3058 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3059echo "${ECHO_T}$BUILD_CC" >&6
3060else
3061 echo "$as_me:$LINENO: result: no" >&5
3062echo "${ECHO_T}no" >&6
3063fi
3064
3065 if test -z "$BUILD_CC"; then
3066 # Extract the first word of "cc", so it can be a program name with args.
3067set dummy cc; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 if test -n "$BUILD_CC"; then
3074 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3075else
3076 ac_prog_rejected=no
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085 ac_prog_rejected=yes
3086 continue
3087 fi
3088 ac_cv_prog_BUILD_CC="cc"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
3095if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_BUILD_CC
3098 shift
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set BUILD_CC to just the basename; use the full file name.
3103 shift
3104 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
3105 fi
3106fi
3107fi
3108fi
3109BUILD_CC=$ac_cv_prog_BUILD_CC
3110if test -n "$BUILD_CC"; then
3111 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3112echo "${ECHO_T}$BUILD_CC" >&6
3113else
3114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116fi
3117
3118 fi
3119 fi
3120 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3121echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3122 { (exit 1); exit 1; }; }
3123 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3124 rm -f conftest*
3125 echo 'int main () { return 0; }' > conftest.$ac_ext
3126 ac_cv_build_exeext=
3127 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
3128 (eval $ac_build_link) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 for file in conftest.*; do
3133 case $file in
3134 *.c | *.o | *.obj) ;;
3135 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
3136 esac
3137 done
3138 else
3139 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
3140echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
3141 { (exit 1); exit 1; }; }
3142 fi
3143 rm -f conftest*
3144 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
3145fi
3146fi
3147
3148BUILD_EXEEXT=""
3149test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
3150echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
3151echo "${ECHO_T}${ac_cv_build_exeext}" >&6
3152ac_build_exeext=$BUILD_EXEEXT
3153
3154else
3155 LLVM_CROSS_COMPILING=0
3156
3157fi
3158
Reid Spencer4ebf3312006-04-08 01:41:26 +00003159if test -d "CVS" -o -d "${srcdir}/CVS"; then
Reid Spencer54d14482006-04-07 16:01:51 +00003160 cvsbuild="yes"
3161 optimize="no"
Reid Spencer54d14482006-04-07 16:01:51 +00003162 CVSBUILD=CVSBUILD=1
3163
3164else
3165 cvsbuild="no"
3166 optimize="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00003167fi
3168
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003169
3170# Check whether --enable-optimized or --disable-optimized was given.
3171if test "${enable_optimized+set}" = set; then
3172 enableval="$enable_optimized"
3173
3174else
Reid Spencer54d14482006-04-07 16:01:51 +00003175 enableval=$optimize
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003176fi;
3177if test ${enableval} = "no" ; then
3178 ENABLE_OPTIMIZED=
3179
3180else
3181 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3182
3183fi
3184
Reid Spencer54d14482006-04-07 16:01:51 +00003185# Check whether --enable-assertions or --disable-assertions was given.
3186if test "${enable_assertions+set}" = set; then
3187 enableval="$enable_assertions"
3188
3189else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003190 enableval="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00003191fi;
Reid Spencerc28ccd82006-04-09 20:42:14 +00003192if test ${enableval} = "yes" ; then
3193 DISABLE_ASSERTIONS=
Reid Spencer54d14482006-04-07 16:01:51 +00003194
3195else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003196 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
Reid Spencer54d14482006-04-07 16:01:51 +00003197
3198fi
3199
Reid Spencer6e96d812005-12-21 03:31:53 +00003200# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3201if test "${enable_debug_runtime+set}" = set; then
3202 enableval="$enable_debug_runtime"
3203
3204else
3205 enableval=no
3206fi;
3207if test ${enableval} = "no" ; then
3208 DEBUG_RUNTIME=
3209
3210else
3211 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3212
3213fi
3214
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215# Check whether --enable-jit or --disable-jit was given.
3216if test "${enable_jit+set}" = set; then
3217 enableval="$enable_jit"
3218
3219else
3220 enableval=default
3221fi;
3222if test ${enableval} = "no"
3223then
3224 JIT=
3225
3226else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003227 case "$llvm_cv_target_arch" in
Reid Spencerb195d9d2006-03-23 23:21:29 +00003228 x86) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003230 Sparc) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003231 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003232 PowerPC) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003234 x86_64) TARGET_HAS_JIT=0
Reid Spencer95ed8432004-12-23 06:22:33 +00003235 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003236 Alpha) TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003237 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003238 IA64) TARGET_HAS_JIT=0
Reid Spencer945de9b2005-04-22 07:27:28 +00003239 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003240 *) TARGET_HAS_JIT=0
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003241 ;;
3242 esac
3243fi
3244
Reid Spencer1f319422004-11-29 04:56:35 +00003245# Check whether --enable-doxygen or --disable-doxygen was given.
3246if test "${enable_doxygen+set}" = set; then
3247 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003248
Reid Spencer1f319422004-11-29 04:56:35 +00003249else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003250 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003251fi;
3252case "$enableval" in
3253 yes) ENABLE_DOXYGEN=1
3254 ;;
3255 no) ENABLE_DOXYGEN=0
3256 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003257 default) ENABLE_DOXYGEN=0
3258 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3260echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3261 { (exit 1); exit 1; }; } ;;
3262esac
3263
Reid Spencer0a262ba2005-08-24 10:07:20 +00003264# Check whether --enable-threads or --disable-threads was given.
3265if test "${enable_threads+set}" = set; then
3266 enableval="$enable_threads"
3267
3268else
3269 enableval=yes
3270fi;
3271case "$enableval" in
3272 yes) ENABLE_THREADS=1
3273 ;;
3274 no) ENABLE_THREADS=0
3275 ;;
3276 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3277echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3278 { (exit 1); exit 1; }; } ;;
3279esac
3280
3281cat >>confdefs.h <<_ACEOF
3282#define ENABLE_THREADS $ENABLE_THREADS
3283_ACEOF
3284
3285
Reid Spencer945de9b2005-04-22 07:27:28 +00003286TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003287# Check whether --enable-targets or --disable-targets was given.
3288if test "${enable_targets+set}" = set; then
3289 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003290
3291else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003292 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003293fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003294case "$enableval" in
Rafael Espindola7bc59bc2006-05-14 22:18:28 +00003295 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003296 host-only)
3297 case "$llvm_cv_target_arch" in
3298 x86) TARGETS_TO_BUILD="X86" ;;
3299 x86_64) TARGETS_TO_BUILD="X86" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003300 Sparc) TARGETS_TO_BUILD="Sparc" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003301 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3302 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3303 IA64) TARGETS_TO_BUILD="IA64" ;;
3304 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003305echo "$as_me: error: Can not set target to build" >&2;}
3306 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003307 esac
3308 ;;
3309 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3310 case "$a_target" in
3311 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3312 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003313 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003314 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3315 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3316 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003317 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3318echo "$as_me: error: Unrecognized target $a_target" >&2;}
3319 { (exit 1); exit 1; }; } ;;
3320 esac
3321 done
3322 ;;
3323esac
Reid Spencer675f0922005-04-22 17:06:18 +00003324TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003325TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3326
3327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328
Reid Spencer59473af2004-12-25 07:31:29 +00003329# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3330if test "${with_llvmgccdir+set}" = set; then
3331 withval="$with_llvmgccdir"
3332
3333else
3334 withval=default
3335fi;
3336case "$withval" in
3337 default) WITH_LLVMGCCDIR=default ;;
Reid Spencer0fa145d2006-05-21 10:40:20 +00003338 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Reid Spencer59473af2004-12-25 07:31:29 +00003339 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3340echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3341 { (exit 1); exit 1; }; } ;;
3342esac
3343
3344
Evan Chengcf9be262006-06-20 22:16:32 +00003345# Check whether --with-extra-options or --without-extra-options was given.
3346if test "${with_extra_options+set}" = set; then
Reid Spencere2cfe5d2006-07-26 21:14:56 +00003347 withval="$with_extra_options"
Evan Chengcf9be262006-06-20 22:16:32 +00003348
3349else
3350 extraopts=default
3351fi;
3352case "$extraopts" in
3353 default) EXTRA_OPTIONS= ;;
3354 *) EXTRA_OPTIONS=$extraopts ;;
3355esac
3356EXTRA_OPTIONS=$EXTRA_OPTIONS
3357
3358
3359
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3367# On Suns, sometimes $CPP names a directory.
3368if test -n "$CPP" && test -d "$CPP"; then
3369 CPP=
3370fi
3371if test -z "$CPP"; then
3372 if test "${ac_cv_prog_CPP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375 # Double quotes because CPP needs to be expanded
3376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377 do
3378 ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h. */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h. */
3393#ifdef __STDC__
3394# include <limits.h>
3395#else
3396# include <assert.h>
3397#endif
3398 Syntax error
3399_ACEOF
3400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 else
3412 ac_cpp_err=
3413 fi
3414else
3415 ac_cpp_err=yes
3416fi
3417if test -z "$ac_cpp_err"; then
3418 :
3419else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 # Broken: fails on valid input.
3424continue
3425fi
3426rm -f conftest.err conftest.$ac_ext
3427
3428 # OK, works on sane cases. Now check whether non-existent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h. */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h. */
3436#include <ac_nonexistent.h>
3437_ACEOF
3438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3457continue
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 # Passes both tests.
3463ac_preproc_ok=:
3464break
3465fi
3466rm -f conftest.err conftest.$ac_ext
3467
3468done
3469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470rm -f conftest.err conftest.$ac_ext
3471if $ac_preproc_ok; then
3472 break
3473fi
3474
3475 done
3476 ac_cv_prog_CPP=$CPP
3477
3478fi
3479 CPP=$ac_cv_prog_CPP
3480else
3481 ac_cv_prog_CPP=$CPP
3482fi
3483echo "$as_me:$LINENO: result: $CPP" >&5
3484echo "${ECHO_T}$CPP" >&6
3485ac_preproc_ok=false
3486for ac_c_preproc_warn_flag in '' yes
3487do
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h. */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h. */
3500#ifdef __STDC__
3501# include <limits.h>
3502#else
3503# include <assert.h>
3504#endif
3505 Syntax error
3506_ACEOF
3507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518 else
3519 ac_cpp_err=
3520 fi
3521else
3522 ac_cpp_err=yes
3523fi
3524if test -z "$ac_cpp_err"; then
3525 :
3526else
3527 echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 # Broken: fails on valid input.
3531continue
3532fi
3533rm -f conftest.err conftest.$ac_ext
3534
3535 # OK, works on sane cases. Now check whether non-existent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h. */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h. */
3543#include <ac_nonexistent.h>
3544_ACEOF
3545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556 else
3557 ac_cpp_err=
3558 fi
3559else
3560 ac_cpp_err=yes
3561fi
3562if test -z "$ac_cpp_err"; then
3563 # Broken: success on invalid input.
3564continue
3565else
3566 echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 # Passes both tests.
3570ac_preproc_ok=:
3571break
3572fi
3573rm -f conftest.err conftest.$ac_ext
3574
3575done
3576# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577rm -f conftest.err conftest.$ac_ext
3578if $ac_preproc_ok; then
3579 :
3580else
3581 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3582See \`config.log' for more details." >&5
3583echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3584See \`config.log' for more details." >&2;}
3585 { (exit 1); exit 1; }; }
3586fi
3587
John Criswell7a73b802003-06-30 21:59:07 +00003588ac_ext=c
3589ac_cpp='$CPP $CPPFLAGS'
3590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594ac_ext=c
3595ac_cpp='$CPP $CPPFLAGS'
3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599if test -n "$ac_tool_prefix"; then
3600 for ac_prog in gcc
3601 do
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604echo "$as_me:$LINENO: checking for $ac_word" >&5
3605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606if test "${ac_cv_prog_CC+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623done
3624done
3625
3626fi
3627fi
3628CC=$ac_cv_prog_CC
3629if test -n "$CC"; then
3630 echo "$as_me:$LINENO: result: $CC" >&5
3631echo "${ECHO_T}$CC" >&6
3632else
3633 echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
3635fi
3636
3637 test -n "$CC" && break
3638 done
3639fi
3640if test -z "$CC"; then
3641 ac_ct_CC=$CC
3642 for ac_prog in gcc
3643do
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645set dummy $ac_prog; ac_word=$2
3646echo "$as_me:$LINENO: checking for $ac_word" >&5
3647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651 if test -n "$ac_ct_CC"; then
3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_ac_ct_CC="$ac_prog"
3662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665done
3666done
3667
3668fi
3669fi
3670ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671if test -n "$ac_ct_CC"; then
3672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673echo "${ECHO_T}$ac_ct_CC" >&6
3674else
3675 echo "$as_me:$LINENO: result: no" >&5
3676echo "${ECHO_T}no" >&6
3677fi
3678
3679 test -n "$ac_ct_CC" && break
3680done
3681
3682 CC=$ac_ct_CC
3683fi
3684
3685
John Criswell0c38eaf2003-09-10 15:17:25 +00003686test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3687See \`config.log' for more details." >&5
3688echo "$as_me: error: no acceptable C compiler found in \$PATH
3689See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003690 { (exit 1); exit 1; }; }
3691
3692# Provide some information about the compiler.
3693echo "$as_me:$LINENO:" \
3694 "checking for C compiler version" >&5
3695ac_compiler=`set X $ac_compile; echo $2`
3696{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3697 (eval $ac_compiler --version </dev/null >&5) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }
3701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3702 (eval $ac_compiler -v </dev/null >&5) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }
3706{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3707 (eval $ac_compiler -V </dev/null >&5) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }
3711
3712echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3713echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3714if test "${ac_cv_c_compiler_gnu+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003718/* confdefs.h. */
3719_ACEOF
3720cat confdefs.h >>conftest.$ac_ext
3721cat >>conftest.$ac_ext <<_ACEOF
3722/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003723
John Criswell7a73b802003-06-30 21:59:07 +00003724int
3725main ()
3726{
3727#ifndef __GNUC__
3728 choke me
3729#endif
3730
3731 ;
3732 return 0;
3733}
3734_ACEOF
3735rm -f conftest.$ac_objext
3736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003737 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003744 { ac_try='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_compiler_gnu=yes
3758else
3759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003760sed 's/^/| /' conftest.$ac_ext >&5
3761
John Criswell7a73b802003-06-30 21:59:07 +00003762ac_compiler_gnu=no
3763fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003765ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766
3767fi
3768echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3769echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3770GCC=`test $ac_compiler_gnu = yes && echo yes`
3771ac_test_CFLAGS=${CFLAGS+set}
3772ac_save_CFLAGS=$CFLAGS
3773CFLAGS="-g"
3774echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3775echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3776if test "${ac_cv_prog_cc_g+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003780/* confdefs.h. */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003785
John Criswell7a73b802003-06-30 21:59:07 +00003786int
3787main ()
3788{
3789
3790 ;
3791 return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext
3795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003796 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003797 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003803 { ac_try='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_cv_prog_cc_g=yes
3817else
3818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003819sed 's/^/| /' conftest.$ac_ext >&5
3820
John Criswell7a73b802003-06-30 21:59:07 +00003821ac_cv_prog_cc_g=no
3822fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003824fi
3825echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3826echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3827if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3831 CFLAGS="-g -O2"
3832 else
3833 CFLAGS="-g"
3834 fi
3835else
3836 if test "$GCC" = yes; then
3837 CFLAGS="-O2"
3838 else
3839 CFLAGS=
3840 fi
3841fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003842echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3843echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3844if test "${ac_cv_prog_cc_stdc+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 ac_cv_prog_cc_stdc=no
3848ac_save_CC=$CC
3849cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
3855#include <stdarg.h>
3856#include <stdio.h>
3857#include <sys/types.h>
3858#include <sys/stat.h>
3859/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860struct buf { int x; };
3861FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862static char *e (p, i)
3863 char **p;
3864 int i;
3865{
3866 return p[i];
3867}
3868static char *f (char * (*g) (char **, int), char **p, ...)
3869{
3870 char *s;
3871 va_list v;
3872 va_start (v,p);
3873 s = g (p, va_arg (v,int));
3874 va_end (v);
3875 return s;
3876}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003877
3878/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std1 is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std1. */
3885int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
John Criswell0c38eaf2003-09-10 15:17:25 +00003887int test (int i, double x);
3888struct s1 {int (*f) (int a);};
3889struct s2 {int (*f) (double a);};
3890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891int argc;
3892char **argv;
3893int
3894main ()
3895{
3896return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901# Don't try gcc -ansi; that turns off useful extensions and
3902# breaks some systems' header files.
3903# AIX -qlanglvl=ansi
3904# Ultrix and OSF/1 -std1
3905# HP-UX 10.20 and later -Ae
3906# HP-UX older versions -Aa -D_HPUX_SOURCE
3907# SVR4 -Xc -D__EXTENSIONS__
3908for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909do
3910 CC="$ac_save_CC $ac_arg"
3911 rm -f conftest.$ac_objext
3912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003913 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003914 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003920 { ac_try='test -z "$ac_c_werror_flag"
3921 || test ! -s conftest.err'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; } &&
3927 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 ac_cv_prog_cc_stdc=$ac_arg
3934break
3935else
3936 echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003940rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003941done
3942rm -f conftest.$ac_ext conftest.$ac_objext
3943CC=$ac_save_CC
3944
3945fi
3946
3947case "x$ac_cv_prog_cc_stdc" in
3948 x|xno)
3949 echo "$as_me:$LINENO: result: none needed" >&5
3950echo "${ECHO_T}none needed" >&6 ;;
3951 *)
3952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3953echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3954 CC="$CC $ac_cv_prog_cc_stdc" ;;
3955esac
3956
John Criswell7a73b802003-06-30 21:59:07 +00003957# Some people use a C++ compiler to compile C. Since we use `exit',
3958# in C++ we need to declare it. In case someone uses the same compiler
3959# for both compiling C and C++ we need to have the C++ compiler decide
3960# the declaration of exit, since it's the most demanding environment.
3961cat >conftest.$ac_ext <<_ACEOF
3962#ifndef __cplusplus
3963 choke me
3964#endif
3965_ACEOF
3966rm -f conftest.$ac_objext
3967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003968 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003975 { ac_try='test -z "$ac_c_werror_flag"
3976 || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003989 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003990 'extern "C" void std::exit (int) throw (); using std::exit;' \
3991 'extern "C" void std::exit (int); using std::exit;' \
3992 'extern "C" void exit (int) throw ();' \
3993 'extern "C" void exit (int);' \
3994 'void exit (int);'
3995do
3996 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00004002$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00004003#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004004int
4005main ()
4006{
4007exit (42);
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004014 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004015 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004021 { ac_try='test -z "$ac_c_werror_flag"
4022 || test ! -s conftest.err'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 :
4035else
4036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004037sed 's/^/| /' conftest.$ac_ext >&5
4038
John Criswell7a73b802003-06-30 21:59:07 +00004039continue
4040fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004042 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004048$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00004049int
4050main ()
4051{
4052exit (42);
4053 ;
4054 return 0;
4055}
4056_ACEOF
4057rm -f conftest.$ac_objext
4058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004059 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004066 { ac_try='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 break
4080else
4081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004082sed 's/^/| /' conftest.$ac_ext >&5
4083
John Criswell7a73b802003-06-30 21:59:07 +00004084fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004086done
4087rm -f conftest*
4088if test -n "$ac_declaration"; then
4089 echo '#ifdef __cplusplus' >>confdefs.h
4090 echo $ac_declaration >>confdefs.h
4091 echo '#endif' >>confdefs.h
4092fi
4093
4094else
4095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004096sed 's/^/| /' conftest.$ac_ext >&5
4097
John Criswell7a73b802003-06-30 21:59:07 +00004098fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004100ac_ext=c
4101ac_cpp='$CPP $CPPFLAGS'
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004106ac_ext=cc
4107ac_cpp='$CXXCPP $CPPFLAGS'
4108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4111if test -n "$ac_tool_prefix"; then
4112 for ac_prog in $CCC g++
4113 do
4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116echo "$as_me:$LINENO: checking for $ac_word" >&5
4117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004121 if test -n "$CXX"; then
4122 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00004126do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135done
4136done
4137
4138fi
4139fi
4140CXX=$ac_cv_prog_CXX
4141if test -n "$CXX"; then
4142 echo "$as_me:$LINENO: result: $CXX" >&5
4143echo "${ECHO_T}$CXX" >&6
4144else
4145 echo "$as_me:$LINENO: result: no" >&5
4146echo "${ECHO_T}no" >&6
4147fi
4148
4149 test -n "$CXX" && break
4150 done
4151fi
4152if test -z "$CXX"; then
4153 ac_ct_CXX=$CXX
4154 for ac_prog in $CCC g++
4155do
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157set dummy $ac_prog; ac_word=$2
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 if test -n "$ac_ct_CXX"; then
4164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_CXX="$ac_prog"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177done
4178done
4179
4180fi
4181fi
4182ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4183if test -n "$ac_ct_CXX"; then
4184 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4185echo "${ECHO_T}$ac_ct_CXX" >&6
4186else
4187 echo "$as_me:$LINENO: result: no" >&5
4188echo "${ECHO_T}no" >&6
4189fi
4190
4191 test -n "$ac_ct_CXX" && break
4192done
4193test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4194
4195 CXX=$ac_ct_CXX
4196fi
4197
4198
4199# Provide some information about the compiler.
4200echo "$as_me:$LINENO:" \
4201 "checking for C++ compiler version" >&5
4202ac_compiler=`set X $ac_compile; echo $2`
4203{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4204 (eval $ac_compiler --version </dev/null >&5) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }
4208{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4209 (eval $ac_compiler -v </dev/null >&5) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
4213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4214 (eval $ac_compiler -V </dev/null >&5) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }
4218
4219echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4220echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4221if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
John Criswell7a73b802003-06-30 21:59:07 +00004224 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004225/* confdefs.h. */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004230
4231int
4232main ()
4233{
4234#ifndef __GNUC__
4235 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004236#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004237
4238 ;
4239 return 0;
4240}
John Criswell7a73b802003-06-30 21:59:07 +00004241_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004242rm -f conftest.$ac_objext
4243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004245 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004246 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_cxx_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_compiler_gnu=yes
4265else
4266 echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269ac_compiler_gnu=no
4270fi
4271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4273
4274fi
4275echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4276echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4277GXX=`test $ac_compiler_gnu = yes && echo yes`
4278ac_test_CXXFLAGS=${CXXFLAGS+set}
4279ac_save_CXXFLAGS=$CXXFLAGS
4280CXXFLAGS="-g"
4281echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4282echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4283if test "${ac_cv_prog_cxx_g+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
4292
4293int
4294main ()
4295{
4296
4297 ;
4298 return 0;
4299}
4300_ACEOF
4301rm -f conftest.$ac_objext
4302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303 (eval $ac_compile) 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_cxx_werror_flag"
4311 || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_prog_cxx_g=yes
4324else
4325 echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328ac_cv_prog_cxx_g=no
4329fi
4330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4333echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4334if test "$ac_test_CXXFLAGS" = set; then
4335 CXXFLAGS=$ac_save_CXXFLAGS
4336elif test $ac_cv_prog_cxx_g = yes; then
4337 if test "$GXX" = yes; then
4338 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004339 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004340 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004341 fi
4342else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004343 if test "$GXX" = yes; then
4344 CXXFLAGS="-O2"
4345 else
4346 CXXFLAGS=
4347 fi
John Criswell7a73b802003-06-30 21:59:07 +00004348fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004349for ac_declaration in \
4350 '' \
4351 'extern "C" void std::exit (int) throw (); using std::exit;' \
4352 'extern "C" void std::exit (int); using std::exit;' \
4353 'extern "C" void exit (int) throw ();' \
4354 'extern "C" void exit (int);' \
4355 'void exit (int);'
4356do
4357 cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */
4363$ac_declaration
4364#include <stdlib.h>
4365int
4366main ()
4367{
4368exit (42);
4369 ;
4370 return 0;
4371}
4372_ACEOF
4373rm -f conftest.$ac_objext
4374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_cxx_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 (eval $ac_try) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004395 :
4396else
4397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004398sed 's/^/| /' conftest.$ac_ext >&5
4399
John Criswell7a73b802003-06-30 21:59:07 +00004400continue
4401fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004403 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004404/* confdefs.h. */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004409$ac_declaration
4410int
4411main ()
4412{
4413exit (42);
4414 ;
4415 return 0;
4416}
John Criswell7a73b802003-06-30 21:59:07 +00004417_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004418rm -f conftest.$ac_objext
4419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004421 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004422 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_cxx_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004440 break
John Criswell7a73b802003-06-30 21:59:07 +00004441else
4442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004443sed 's/^/| /' conftest.$ac_ext >&5
4444
John Criswell7a73b802003-06-30 21:59:07 +00004445fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004447done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004448rm -f conftest*
4449if test -n "$ac_declaration"; then
4450 echo '#ifdef __cplusplus' >>confdefs.h
4451 echo $ac_declaration >>confdefs.h
4452 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004453fi
4454
4455ac_ext=c
4456ac_cpp='$CPP $CPPFLAGS'
4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
John Criswell7a73b802003-06-30 21:59:07 +00004461echo "$as_me:$LINENO: checking " >&5
4462echo $ECHO_N "checking ... $ECHO_C" >&6
4463if test "${ac_cv_has_flex+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466 for ac_prog in flex lex
4467do
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469set dummy $ac_prog; ac_word=$2
4470echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472if test "${ac_cv_prog_LEX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475 if test -n "$LEX"; then
4476 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_LEX="$ac_prog"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489done
4490done
4491
4492fi
4493fi
4494LEX=$ac_cv_prog_LEX
4495if test -n "$LEX"; then
4496 echo "$as_me:$LINENO: result: $LEX" >&5
4497echo "${ECHO_T}$LEX" >&6
4498else
4499 echo "$as_me:$LINENO: result: no" >&5
4500echo "${ECHO_T}no" >&6
4501fi
4502
4503 test -n "$LEX" && break
4504done
4505test -n "$LEX" || LEX=":"
4506
4507if test -z "$LEXLIB"
4508then
4509 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4510echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4511if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514 ac_check_lib_save_LIBS=$LIBS
4515LIBS="-lfl $LIBS"
4516cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004522
4523/* Override any gcc2 internal prototype to avoid an error. */
4524#ifdef __cplusplus
4525extern "C"
4526#endif
4527/* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4529char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004530int
4531main ()
4532{
4533yywrap ();
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext conftest$ac_exeext
4539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004540 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004541 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_fl_yywrap=yes
4561else
4562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004563sed 's/^/| /' conftest.$ac_ext >&5
4564
John Criswell7a73b802003-06-30 21:59:07 +00004565ac_cv_lib_fl_yywrap=no
4566fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004567rm -f conftest.err conftest.$ac_objext \
4568 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004569LIBS=$ac_check_lib_save_LIBS
4570fi
4571echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4572echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4573if test $ac_cv_lib_fl_yywrap = yes; then
4574 LEXLIB="-lfl"
4575else
4576 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4577echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4578if test "${ac_cv_lib_l_yywrap+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 ac_check_lib_save_LIBS=$LIBS
4582LIBS="-ll $LIBS"
4583cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004589
4590/* Override any gcc2 internal prototype to avoid an error. */
4591#ifdef __cplusplus
4592extern "C"
4593#endif
4594/* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4596char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004597int
4598main ()
4599{
4600yywrap ();
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605rm -f conftest.$ac_objext conftest$ac_exeext
4606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004607 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004608 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_lib_l_yywrap=yes
4628else
4629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
John Criswell7a73b802003-06-30 21:59:07 +00004632ac_cv_lib_l_yywrap=no
4633fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004634rm -f conftest.err conftest.$ac_objext \
4635 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004636LIBS=$ac_check_lib_save_LIBS
4637fi
4638echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4639echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4640if test $ac_cv_lib_l_yywrap = yes; then
4641 LEXLIB="-ll"
4642fi
4643
4644fi
4645
4646fi
4647
4648if test "x$LEX" != "x:"; then
4649 echo "$as_me:$LINENO: checking lex output file root" >&5
4650echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4651if test "${ac_cv_prog_lex_root+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 # The minimal lex program is just a single line: %%. But some broken lexes
4655# (Solaris, I think it was) want two %% lines, so accommodate them.
4656cat >conftest.l <<_ACEOF
4657%%
4658%%
4659_ACEOF
4660{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4661 (eval $LEX conftest.l) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }
4665if test -f lex.yy.c; then
4666 ac_cv_prog_lex_root=lex.yy
4667elif test -f lexyy.c; then
4668 ac_cv_prog_lex_root=lexyy
4669else
4670 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4671echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4672 { (exit 1); exit 1; }; }
4673fi
4674fi
4675echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4676echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4677rm -f conftest.l
4678LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4679
4680echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4681echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4682if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685 # POSIX says lex can declare yytext either as a pointer or an array; the
4686# default is implementation-dependent. Figure out which it is, since
4687# not all implementations provide the %pointer and %array declarations.
4688ac_cv_prog_lex_yytext_pointer=no
4689echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4690ac_save_LIBS=$LIBS
4691LIBS="$LIBS $LEXLIB"
4692cat >conftest.$ac_ext <<_ACEOF
4693`cat $LEX_OUTPUT_ROOT.c`
4694_ACEOF
4695rm -f conftest.$ac_objext conftest$ac_exeext
4696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004697 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_prog_lex_yytext_pointer=yes
4718else
4719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004720sed 's/^/| /' conftest.$ac_ext >&5
4721
John Criswell7a73b802003-06-30 21:59:07 +00004722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004723rm -f conftest.err conftest.$ac_objext \
4724 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004725LIBS=$ac_save_LIBS
4726rm -f "${LEX_OUTPUT_ROOT}.c"
4727
4728fi
4729echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4730echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4731if test $ac_cv_prog_lex_yytext_pointer = yes; then
4732
4733cat >>confdefs.h <<\_ACEOF
4734#define YYTEXT_POINTER 1
4735_ACEOF
4736
4737fi
4738
4739fi
4740
4741fi
4742echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4743echo "${ECHO_T}$ac_cv_has_flex" >&6
4744if test "$LEX" != "flex"; then
4745 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4746echo "$as_me: error: flex not found but required" >&2;}
4747 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004748else
4749 FLEX=flex
4750
John Criswell7a73b802003-06-30 21:59:07 +00004751fi
4752
4753echo "$as_me:$LINENO: checking " >&5
4754echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004755if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 for ac_prog in 'bison -y' byacc
4759do
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761set dummy $ac_prog; ac_word=$2
4762echo "$as_me:$LINENO: checking for $ac_word" >&5
4763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764if test "${ac_cv_prog_YACC+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 if test -n "$YACC"; then
4768 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4769else
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_YACC="$ac_prog"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781done
4782done
4783
4784fi
4785fi
4786YACC=$ac_cv_prog_YACC
4787if test -n "$YACC"; then
4788 echo "$as_me:$LINENO: result: $YACC" >&5
4789echo "${ECHO_T}$YACC" >&6
4790else
4791 echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6
4793fi
4794
4795 test -n "$YACC" && break
4796done
4797test -n "$YACC" || YACC="yacc"
4798
John Criswell7a73b802003-06-30 21:59:07 +00004799fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004800echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4801echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004802if test "$YACC" != "bison -y"; then
4803 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4804echo "$as_me: error: bison not found but required" >&2;}
4805 { (exit 1); exit 1; }; }
4806else
Brian Gaeke12810632004-01-13 06:52:10 +00004807 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004808
4809fi
4810
Reid Spencer1bc68642006-07-27 23:00:30 +00004811echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4812echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4813if test "${lt_cv_path_NM+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 if test -n "$NM"; then
4817 # Let the user override the test.
4818 lt_cv_path_NM="$NM"
4819else
4820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4821 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4822 IFS="$lt_save_ifs"
4823 test -z "$ac_dir" && ac_dir=.
4824 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4825 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4826 # Check to see if the nm accepts a BSD-compat flag.
4827 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4828 # nm: unknown option "B" ignored
4829 # Tru64's nm complains that /dev/null is an invalid object file
4830 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4831 */dev/null* | *'Invalid file or object type'*)
4832 lt_cv_path_NM="$tmp_nm -B"
4833 break
4834 ;;
4835 *)
4836 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4837 */dev/null*)
4838 lt_cv_path_NM="$tmp_nm -p"
4839 break
4840 ;;
4841 *)
4842 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4843 continue # so that we can try to find one that supports BSD flags
4844 ;;
4845 esac
4846 esac
4847 fi
4848 done
4849 IFS="$lt_save_ifs"
4850 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4851fi
4852fi
4853echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4854echo "${ECHO_T}$lt_cv_path_NM" >&6
4855NM="$lt_cv_path_NM"
4856
4857
4858
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004859echo "$as_me:$LINENO: checking for GNU make" >&5
4860echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4861if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004864 llvm_cv_gnu_make_command=''
4865 for a in "$MAKE" make gmake gnumake ; do
4866 if test -z "$a" ; then continue ; fi ;
4867 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4868 then
4869 llvm_cv_gnu_make_command=$a ;
4870 break;
John Criswell47fdd832003-07-14 16:52:07 +00004871 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004872 done
John Criswell7a73b802003-06-30 21:59:07 +00004873fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004874echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4875echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4876 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4877 ifGNUmake='' ;
4878 else
4879 ifGNUmake='#' ;
4880 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4881echo "${ECHO_T}\"Not found\"" >&6;
4882 fi
John Criswell7a73b802003-06-30 21:59:07 +00004883
John Criswell7a73b802003-06-30 21:59:07 +00004884
4885echo "$as_me:$LINENO: checking whether ln -s works" >&5
4886echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4887LN_S=$as_ln_s
4888if test "$LN_S" = "ln -s"; then
4889 echo "$as_me:$LINENO: result: yes" >&5
4890echo "${ECHO_T}yes" >&6
4891else
4892 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4893echo "${ECHO_T}no, using $LN_S" >&6
4894fi
4895
Reid Spencer8a2d4712004-12-16 17:48:14 +00004896# Extract the first word of "cmp", so it can be a program name with args.
4897set dummy cmp; ac_word=$2
4898echo "$as_me:$LINENO: checking for $ac_word" >&5
4899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900if test "${ac_cv_path_CMP+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 case $CMP in
4904 [\\/]* | ?:[\\/]*)
4905 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4906 ;;
4907 *)
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920done
4921
4922 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4923 ;;
4924esac
4925fi
4926CMP=$ac_cv_path_CMP
4927
4928if test -n "$CMP"; then
4929 echo "$as_me:$LINENO: result: $CMP" >&5
4930echo "${ECHO_T}$CMP" >&6
4931else
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934fi
4935
4936# Extract the first word of "cp", so it can be a program name with args.
4937set dummy cp; ac_word=$2
4938echo "$as_me:$LINENO: checking for $ac_word" >&5
4939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940if test "${ac_cv_path_CP+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943 case $CP in
4944 [\\/]* | ?:[\\/]*)
4945 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4946 ;;
4947 *)
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959done
4960done
4961
4962 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4963 ;;
4964esac
4965fi
4966CP=$ac_cv_path_CP
4967
4968if test -n "$CP"; then
4969 echo "$as_me:$LINENO: result: $CP" >&5
4970echo "${ECHO_T}$CP" >&6
4971else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974fi
4975
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004976# Extract the first word of "date", so it can be a program name with args.
4977set dummy date; ac_word=$2
4978echo "$as_me:$LINENO: checking for $ac_word" >&5
4979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004983 case $DATE in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004986 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004987 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004998 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004999done
5000done
John Criswell7a73b802003-06-30 21:59:07 +00005001
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005002 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00005003 ;;
John Criswell7a73b802003-06-30 21:59:07 +00005004esac
John Criswell7a73b802003-06-30 21:59:07 +00005005fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005006DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00005007
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005008if test -n "$DATE"; then
5009 echo "$as_me:$LINENO: result: $DATE" >&5
5010echo "${ECHO_T}$DATE" >&6
5011else
5012 echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014fi
John Criswell7a73b802003-06-30 21:59:07 +00005015
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005016# Extract the first word of "find", so it can be a program name with args.
5017set dummy find; ac_word=$2
5018echo "$as_me:$LINENO: checking for $ac_word" >&5
5019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00005021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005023 case $FIND in
5024 [\\/]* | ?:[\\/]*)
5025 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5026 ;;
5027 *)
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039done
5040done
5041
5042 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5043 ;;
5044esac
5045fi
5046FIND=$ac_cv_path_FIND
5047
5048if test -n "$FIND"; then
5049 echo "$as_me:$LINENO: result: $FIND" >&5
5050echo "${ECHO_T}$FIND" >&6
5051else
5052 echo "$as_me:$LINENO: result: no" >&5
5053echo "${ECHO_T}no" >&6
5054fi
5055
5056# Extract the first word of "grep", so it can be a program name with args.
5057set dummy grep; ac_word=$2
5058echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060if test "${ac_cv_path_GREP+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063 case $GREP in
5064 [\\/]* | ?:[\\/]*)
5065 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5066 ;;
5067 *)
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079done
5080done
5081
5082 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5083 ;;
5084esac
5085fi
5086GREP=$ac_cv_path_GREP
5087
5088if test -n "$GREP"; then
5089 echo "$as_me:$LINENO: result: $GREP" >&5
5090echo "${ECHO_T}$GREP" >&6
5091else
5092 echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6
5094fi
5095
5096# Extract the first word of "mkdir", so it can be a program name with args.
5097set dummy mkdir; ac_word=$2
5098echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100if test "${ac_cv_path_MKDIR+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103 case $MKDIR in
5104 [\\/]* | ?:[\\/]*)
5105 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5106 ;;
5107 *)
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120done
5121
5122 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5123 ;;
5124esac
5125fi
5126MKDIR=$ac_cv_path_MKDIR
5127
5128if test -n "$MKDIR"; then
5129 echo "$as_me:$LINENO: result: $MKDIR" >&5
5130echo "${ECHO_T}$MKDIR" >&6
5131else
5132 echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
5134fi
5135
5136# Extract the first word of "mv", so it can be a program name with args.
5137set dummy mv; ac_word=$2
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_path_MV+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143 case $MV in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5146 ;;
5147 *)
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160done
5161
5162 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5163 ;;
5164esac
5165fi
5166MV=$ac_cv_path_MV
5167
5168if test -n "$MV"; then
5169 echo "$as_me:$LINENO: result: $MV" >&5
5170echo "${ECHO_T}$MV" >&6
5171else
5172 echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174fi
5175
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005176if test -n "$ac_tool_prefix"; then
5177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5178set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5179echo "$as_me:$LINENO: checking for $ac_word" >&5
5180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5181if test "${ac_cv_prog_RANLIB+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 if test -n "$RANLIB"; then
5185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5186else
5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198done
5199done
5200
5201fi
5202fi
5203RANLIB=$ac_cv_prog_RANLIB
5204if test -n "$RANLIB"; then
5205 echo "$as_me:$LINENO: result: $RANLIB" >&5
5206echo "${ECHO_T}$RANLIB" >&6
5207else
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210fi
5211
5212fi
5213if test -z "$ac_cv_prog_RANLIB"; then
5214 ac_ct_RANLIB=$RANLIB
5215 # Extract the first word of "ranlib", so it can be a program name with args.
5216set dummy ranlib; ac_word=$2
5217echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 if test -n "$ac_ct_RANLIB"; then
5223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ac_ct_RANLIB="ranlib"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236done
5237done
5238
5239 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5240fi
5241fi
5242ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5243if test -n "$ac_ct_RANLIB"; then
5244 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5245echo "${ECHO_T}$ac_ct_RANLIB" >&6
5246else
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249fi
5250
5251 RANLIB=$ac_ct_RANLIB
5252else
5253 RANLIB="$ac_cv_prog_RANLIB"
5254fi
5255
5256# Extract the first word of "rm", so it can be a program name with args.
5257set dummy rm; ac_word=$2
5258echo "$as_me:$LINENO: checking for $ac_word" >&5
5259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260if test "${ac_cv_path_RM+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263 case $RM in
5264 [\\/]* | ?:[\\/]*)
5265 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5266 ;;
5267 *)
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279done
5280done
5281
5282 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5283 ;;
5284esac
5285fi
5286RM=$ac_cv_path_RM
5287
5288if test -n "$RM"; then
5289 echo "$as_me:$LINENO: result: $RM" >&5
5290echo "${ECHO_T}$RM" >&6
5291else
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294fi
5295
5296# Extract the first word of "sed", so it can be a program name with args.
5297set dummy sed; ac_word=$2
5298echo "$as_me:$LINENO: checking for $ac_word" >&5
5299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300if test "${ac_cv_path_SED+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303 case $SED in
5304 [\\/]* | ?:[\\/]*)
5305 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5306 ;;
5307 *)
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309for as_dir in $PATH
5310do
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 break 2
5318 fi
5319done
5320done
5321
5322 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5323 ;;
5324esac
5325fi
5326SED=$ac_cv_path_SED
5327
5328if test -n "$SED"; then
5329 echo "$as_me:$LINENO: result: $SED" >&5
5330echo "${ECHO_T}$SED" >&6
5331else
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
5334fi
5335
5336# Extract the first word of "tar", so it can be a program name with args.
5337set dummy tar; ac_word=$2
5338echo "$as_me:$LINENO: checking for $ac_word" >&5
5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340if test "${ac_cv_path_TAR+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343 case $TAR in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359done
5360done
5361
5362 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5363 ;;
5364esac
5365fi
5366TAR=$ac_cv_path_TAR
5367
5368if test -n "$TAR"; then
5369 echo "$as_me:$LINENO: result: $TAR" >&5
5370echo "${ECHO_T}$TAR" >&6
5371else
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374fi
5375
Reid Spencerecbd2422006-06-02 23:13:18 +00005376
Reid Spencer8a2246f2005-07-13 03:20:14 +00005377# Extract the first word of "Graphviz", so it can be a program name with args.
5378set dummy Graphviz; ac_word=$2
5379echo "$as_me:$LINENO: checking for $ac_word" >&5
5380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384 case $GRAPHVIZ in
5385 [\\/]* | ?:[\\/]*)
5386 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5387 ;;
5388 *)
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400done
5401done
5402
Reid Spencerc232a652005-07-14 02:25:12 +00005403 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005404 ;;
5405esac
5406fi
5407GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5408
5409if test -n "$GRAPHVIZ"; then
5410 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5411echo "${ECHO_T}$GRAPHVIZ" >&6
5412else
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415fi
5416
Reid Spencerc232a652005-07-14 02:25:12 +00005417if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005418
5419cat >>confdefs.h <<\_ACEOF
5420#define HAVE_GRAPHVIZ 1
5421_ACEOF
5422
Reid Spencercaf0ece2006-06-05 15:54:38 +00005423 if test "$llvm_cv_os_type" == "MingW" ; then
5424 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5425 fi
Reid Spencerc232a652005-07-14 02:25:12 +00005426
Reid Spencerbe130282005-07-14 05:19:12 +00005427cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005428#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
Reid Spencerc232a652005-07-14 02:25:12 +00005429_ACEOF
5430
Reid Spencer8a2246f2005-07-13 03:20:14 +00005431fi
Reid Spencercaf0ece2006-06-05 15:54:38 +00005432# Extract the first word of "dot", so it can be a program name with args.
5433set dummy dot; ac_word=$2
5434echo "$as_me:$LINENO: checking for $ac_word" >&5
5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436if test "${ac_cv_path_DOT+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439 case $DOT in
5440 [\\/]* | ?:[\\/]*)
5441 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5442 ;;
5443 *)
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455done
5456done
5457
5458 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5459 ;;
5460esac
5461fi
5462DOT=$ac_cv_path_DOT
5463
5464if test -n "$DOT"; then
5465 echo "$as_me:$LINENO: result: $DOT" >&5
5466echo "${ECHO_T}$DOT" >&6
5467else
5468 echo "$as_me:$LINENO: result: no" >&5
5469echo "${ECHO_T}no" >&6
5470fi
5471
5472if test "$DOT" != "echo dot" ; then
5473
5474cat >>confdefs.h <<\_ACEOF
5475#define HAVE_DOT 1
5476_ACEOF
5477
5478 if test "$llvm_cv_os_type" == "MingW" ; then
5479 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5480 fi
5481
5482cat >>confdefs.h <<_ACEOF
5483#define LLVM_PATH_DOT "$DOT${EXEEXT}"
5484_ACEOF
5485
5486fi
5487for ac_prog in gv gsview32
5488do
5489 # Extract the first word of "$ac_prog", so it can be a program name with args.
5490set dummy $ac_prog; ac_word=$2
Reid Spencerbe130282005-07-14 05:19:12 +00005491echo "$as_me:$LINENO: checking for $ac_word" >&5
5492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5493if test "${ac_cv_path_GV+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 case $GV in
5497 [\\/]* | ?:[\\/]*)
5498 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5499 ;;
5500 *)
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512done
5513done
5514
Reid Spencerbe130282005-07-14 05:19:12 +00005515 ;;
5516esac
5517fi
5518GV=$ac_cv_path_GV
5519
5520if test -n "$GV"; then
5521 echo "$as_me:$LINENO: result: $GV" >&5
5522echo "${ECHO_T}$GV" >&6
5523else
5524 echo "$as_me:$LINENO: result: no" >&5
5525echo "${ECHO_T}no" >&6
5526fi
5527
Reid Spencercaf0ece2006-06-05 15:54:38 +00005528 test -n "$GV" && break
5529done
5530test -n "$GV" || GV="echo gv"
5531
Misha Brukmanf83d4062005-11-01 21:00:49 +00005532if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005533
5534cat >>confdefs.h <<\_ACEOF
5535#define HAVE_GV 1
5536_ACEOF
5537
Reid Spencercaf0ece2006-06-05 15:54:38 +00005538 if test "$llvm_cv_os_type" == "MingW" ; then
5539 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5540 fi
Reid Spencerbe130282005-07-14 05:19:12 +00005541
5542cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005543#define LLVM_PATH_GV "$GV${EXEEXT}"
Reid Spencerbe130282005-07-14 05:19:12 +00005544_ACEOF
5545
5546fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005547# Extract the first word of "dotty", so it can be a program name with args.
5548set dummy dotty; ac_word=$2
5549echo "$as_me:$LINENO: checking for $ac_word" >&5
5550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551if test "${ac_cv_path_DOTTY+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554 case $DOTTY in
5555 [\\/]* | ?:[\\/]*)
5556 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5557 ;;
5558 *)
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570done
5571done
5572
5573 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5574 ;;
5575esac
5576fi
5577DOTTY=$ac_cv_path_DOTTY
5578
5579if test -n "$DOTTY"; then
5580 echo "$as_me:$LINENO: result: $DOTTY" >&5
5581echo "${ECHO_T}$DOTTY" >&6
5582else
5583 echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586
5587if test "$DOTTY" != "echo dotty" ; then
5588
5589cat >>confdefs.h <<\_ACEOF
5590#define HAVE_DOTTY 1
5591_ACEOF
5592
Reid Spencercaf0ece2006-06-05 15:54:38 +00005593 if test "$llvm_cv_os_type" == "MingW" ; then
5594 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5595 fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005596
5597cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005598#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
Reid Spencerecbd2422006-06-02 23:13:18 +00005599_ACEOF
5600
5601fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005602
Reid Spencerb195d9d2006-03-23 23:21:29 +00005603
5604# Extract the first word of "perl", so it can be a program name with args.
5605set dummy perl; ac_word=$2
5606echo "$as_me:$LINENO: checking for $ac_word" >&5
5607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608if test "${ac_cv_path_PERL+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611 case $PERL in
5612 [\\/]* | ?:[\\/]*)
5613 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5614 ;;
5615 *)
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5626 fi
5627done
5628done
5629
5630 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5631 ;;
5632esac
5633fi
5634PERL=$ac_cv_path_PERL
5635
5636if test -n "$PERL"; then
5637 echo "$as_me:$LINENO: result: $PERL" >&5
5638echo "${ECHO_T}$PERL" >&6
5639else
5640 echo "$as_me:$LINENO: result: no" >&5
5641echo "${ECHO_T}no" >&6
5642fi
5643
5644if test "$PERL" != "none"; then
5645 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5646echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5647 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5648 echo "$as_me:$LINENO: result: yes" >&5
5649echo "${ECHO_T}yes" >&6
5650 else
5651 PERL=none
5652 echo "$as_me:$LINENO: result: not found" >&5
5653echo "${ECHO_T}not found" >&6
5654 fi
5655fi
5656
5657
5658if test x"$PERL" = xnone; then
5659 HAVE_PERL=0
5660
5661else
5662 HAVE_PERL=1
5663
5664fi
5665
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005666# Find a good install program. We prefer a C program (faster),
5667# so one script is as good as another. But avoid the broken or
5668# incompatible versions:
5669# SysV /etc/install, /usr/sbin/install
5670# SunOS /usr/etc/install
5671# IRIX /sbin/install
5672# AIX /bin/install
5673# AmigaOS /C/install, which installs bootblocks on floppy discs
5674# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5675# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5676# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5677# OS/2's system install, which has a completely different semantic
5678# ./install, which can be erroneously created by make from ./install.sh.
5679echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5680echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5681if test -z "$INSTALL"; then
5682if test "${ac_cv_path_install+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 # Account for people who put trailing slashes in PATH elements.
5691case $as_dir/ in
5692 ./ | .// | /cC/* | \
5693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5694 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5695 /usr/ucb/* ) ;;
5696 *)
5697 # OSF1 and SCO ODT 3.0 have their own names for install.
5698 # Don't use installbsd from OSF since it installs stuff as root
5699 # by default.
5700 for ac_prog in ginstall scoinst install; do
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5703 if test $ac_prog = install &&
5704 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5705 # AIX install. It has an incompatible calling convention.
5706 :
5707 elif test $ac_prog = install &&
5708 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5709 # program-specific install script used by HP pwplus--don't use.
5710 :
5711 else
5712 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5713 break 3
5714 fi
5715 fi
5716 done
5717 done
5718 ;;
5719esac
5720done
5721
5722
5723fi
5724 if test "${ac_cv_path_install+set}" = set; then
5725 INSTALL=$ac_cv_path_install
5726 else
5727 # As a last resort, use the slow shell script. We don't cache a
5728 # path for INSTALL within a source directory, because that will
5729 # break other packages using the cache if that directory is
5730 # removed, or if the path is relative.
5731 INSTALL=$ac_install_sh
5732 fi
5733fi
5734echo "$as_me:$LINENO: result: $INSTALL" >&5
5735echo "${ECHO_T}$INSTALL" >&6
5736
5737# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5738# It thinks the first close brace ends the variable substitution.
5739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5740
5741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5742
5743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5744
5745
5746# Extract the first word of "bzip2", so it can be a program name with args.
5747set dummy bzip2; ac_word=$2
5748echo "$as_me:$LINENO: checking for $ac_word" >&5
5749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750if test "${ac_cv_path_BZIP2+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 case $BZIP2 in
5754 [\\/]* | ?:[\\/]*)
5755 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5756 ;;
5757 *)
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769done
5770done
5771
Reid Spencerf9b458c2006-04-27 07:49:24 +00005772 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005773 ;;
5774esac
5775fi
5776BZIP2=$ac_cv_path_BZIP2
5777
5778if test -n "$BZIP2"; then
5779 echo "$as_me:$LINENO: result: $BZIP2" >&5
5780echo "${ECHO_T}$BZIP2" >&6
5781else
5782 echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784fi
5785
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005786# Extract the first word of "doxygen", so it can be a program name with args.
5787set dummy doxygen; ac_word=$2
5788echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790if test "${ac_cv_path_DOXYGEN+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793 case $DOXYGEN in
5794 [\\/]* | ?:[\\/]*)
5795 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5796 ;;
5797 *)
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809done
5810done
5811
Reid Spencerf9b458c2006-04-27 07:49:24 +00005812 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005813 ;;
5814esac
5815fi
5816DOXYGEN=$ac_cv_path_DOXYGEN
5817
5818if test -n "$DOXYGEN"; then
5819 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5820echo "${ECHO_T}$DOXYGEN" >&6
5821else
5822 echo "$as_me:$LINENO: result: no" >&5
5823echo "${ECHO_T}no" >&6
5824fi
5825
5826# Extract the first word of "etags", so it can be a program name with args.
5827set dummy etags; ac_word=$2
5828echo "$as_me:$LINENO: checking for $ac_word" >&5
5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830if test "${ac_cv_path_ETAGS+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 case $ETAGS in
5834 [\\/]* | ?:[\\/]*)
5835 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5836 ;;
5837 *)
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849done
5850done
5851
Reid Spencerf9b458c2006-04-27 07:49:24 +00005852 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005853 ;;
5854esac
5855fi
5856ETAGS=$ac_cv_path_ETAGS
5857
5858if test -n "$ETAGS"; then
5859 echo "$as_me:$LINENO: result: $ETAGS" >&5
5860echo "${ECHO_T}$ETAGS" >&6
5861else
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864fi
5865
5866# Extract the first word of "groff", so it can be a program name with args.
5867set dummy groff; ac_word=$2
5868echo "$as_me:$LINENO: checking for $ac_word" >&5
5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870if test "${ac_cv_path_GROFF+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872else
5873 case $GROFF in
5874 [\\/]* | ?:[\\/]*)
5875 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5876 ;;
5877 *)
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890done
5891
Reid Spencerf9b458c2006-04-27 07:49:24 +00005892 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005893 ;;
5894esac
5895fi
5896GROFF=$ac_cv_path_GROFF
5897
5898if test -n "$GROFF"; then
5899 echo "$as_me:$LINENO: result: $GROFF" >&5
5900echo "${ECHO_T}$GROFF" >&6
5901else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904fi
5905
5906# Extract the first word of "gzip", so it can be a program name with args.
5907set dummy gzip; ac_word=$2
5908echo "$as_me:$LINENO: checking for $ac_word" >&5
5909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910if test "${ac_cv_path_GZIP+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913 case $GZIP in
5914 [\\/]* | ?:[\\/]*)
5915 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5916 ;;
5917 *)
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930done
5931
Reid Spencerf9b458c2006-04-27 07:49:24 +00005932 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005933 ;;
5934esac
5935fi
5936GZIP=$ac_cv_path_GZIP
5937
5938if test -n "$GZIP"; then
5939 echo "$as_me:$LINENO: result: $GZIP" >&5
5940echo "${ECHO_T}$GZIP" >&6
5941else
5942 echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
5944fi
5945
5946# Extract the first word of "pod2html", so it can be a program name with args.
5947set dummy pod2html; ac_word=$2
5948echo "$as_me:$LINENO: checking for $ac_word" >&5
5949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950if test "${ac_cv_path_POD2HTML+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953 case $POD2HTML in
5954 [\\/]* | ?:[\\/]*)
5955 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5956 ;;
5957 *)
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969done
5970done
5971
Reid Spencerf9b458c2006-04-27 07:49:24 +00005972 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005973 ;;
5974esac
5975fi
5976POD2HTML=$ac_cv_path_POD2HTML
5977
5978if test -n "$POD2HTML"; then
5979 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5980echo "${ECHO_T}$POD2HTML" >&6
5981else
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984fi
5985
5986# Extract the first word of "pod2man", so it can be a program name with args.
5987set dummy pod2man; ac_word=$2
5988echo "$as_me:$LINENO: checking for $ac_word" >&5
5989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990if test "${ac_cv_path_POD2MAN+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993 case $POD2MAN in
5994 [\\/]* | ?:[\\/]*)
5995 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5996 ;;
5997 *)
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010done
6011
Reid Spencerf9b458c2006-04-27 07:49:24 +00006012 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006013 ;;
6014esac
6015fi
6016POD2MAN=$ac_cv_path_POD2MAN
6017
6018if test -n "$POD2MAN"; then
6019 echo "$as_me:$LINENO: result: $POD2MAN" >&5
6020echo "${ECHO_T}$POD2MAN" >&6
6021else
6022 echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
6024fi
6025
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006026# Extract the first word of "runtest", so it can be a program name with args.
6027set dummy runtest; ac_word=$2
6028echo "$as_me:$LINENO: checking for $ac_word" >&5
6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030if test "${ac_cv_path_RUNTEST+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 case $RUNTEST in
6034 [\\/]* | ?:[\\/]*)
6035 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
6036 ;;
6037 *)
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050done
6051
Reid Spencerf9b458c2006-04-27 07:49:24 +00006052 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006053 ;;
6054esac
6055fi
6056RUNTEST=$ac_cv_path_RUNTEST
6057
6058if test -n "$RUNTEST"; then
6059 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6060echo "${ECHO_T}$RUNTEST" >&6
6061else
6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
6064fi
6065
Reid Spencer0fcb9412004-11-30 08:11:54 +00006066
Reid Spencer0fcb9412004-11-30 08:11:54 +00006067no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00006068echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
6069echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00006070
6071# Check whether --with-tclinclude or --without-tclinclude was given.
6072if test "${with_tclinclude+set}" = set; then
6073 withval="$with_tclinclude"
6074 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00006075else
6076 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00006077fi;
6078if test "${ac_cv_path_tclsh+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081
6082if test x"${with_tclinclude}" != x ; then
6083 if test -f ${with_tclinclude}/tclsh ; then
6084 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
6085 elif test -f ${with_tclinclude}/src/tclsh ; then
6086 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
6087 else
6088 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
6089echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
6090 { (exit 1); exit 1; }; }
6091 fi
6092fi
6093
Reid Spencer0fcb9412004-11-30 08:11:54 +00006094if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00006095 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00006096echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00006097 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 +00006098do
6099 # Extract the first word of "$ac_prog", so it can be a program name with args.
6100set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00006101echo "$as_me:$LINENO: checking for $ac_word" >&5
6102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00006103if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00006104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105else
Reid Spencercda35f82004-12-02 04:17:20 +00006106 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00006107 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00006108 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00006109 ;;
6110 *)
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00006118 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00006119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122done
6123done
6124
6125 ;;
6126esac
6127fi
Reid Spencercda35f82004-12-02 04:17:20 +00006128TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00006129
Reid Spencercda35f82004-12-02 04:17:20 +00006130if test -n "$TCLSH"; then
6131 echo "$as_me:$LINENO: result: $TCLSH" >&5
6132echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00006133else
6134 echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
6136fi
6137
Reid Spencercda35f82004-12-02 04:17:20 +00006138 test -n "$TCLSH" && break
6139done
Reid Spencer0fcb9412004-11-30 08:11:54 +00006140
Reid Spencercda35f82004-12-02 04:17:20 +00006141 if test x"${TCLSH}" = x ; then
6142 ac_cv_path_tclsh='';
6143 else
6144 ac_cv_path_tclsh="${TCLSH}";
6145 fi
6146else
6147 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
6148echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
6149 TCLSH="${ac_cv_path_tclsh}"
6150
6151fi
6152
6153fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00006154
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006155# Extract the first word of "zip", so it can be a program name with args.
6156set dummy zip; ac_word=$2
6157echo "$as_me:$LINENO: checking for $ac_word" >&5
6158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6159if test "${ac_cv_path_ZIP+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162 case $ZIP in
6163 [\\/]* | ?:[\\/]*)
6164 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6165 ;;
6166 *)
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178done
6179done
6180
Reid Spencerf9b458c2006-04-27 07:49:24 +00006181 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006182 ;;
6183esac
6184fi
6185ZIP=$ac_cv_path_ZIP
6186
6187if test -n "$ZIP"; then
6188 echo "$as_me:$LINENO: result: $ZIP" >&5
6189echo "${ECHO_T}$ZIP" >&6
6190else
6191 echo "$as_me:$LINENO: result: no" >&5
6192echo "${ECHO_T}no" >&6
6193fi
6194
6195
6196echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
6197echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
6198if test "${llvm_cv_link_use_r+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00006202ac_cpp='$CPP $CPPFLAGS'
6203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006207 oldcflags="$CFLAGS"
6208 CFLAGS="$CFLAGS -Wl,-R."
6209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006210/* confdefs.h. */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00006215
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006216int
6217main ()
6218{
6219int main() { return 0; }
6220 ;
6221 return 0;
6222}
John Criswell47fdd832003-07-14 16:52:07 +00006223_ACEOF
6224rm -f conftest.$ac_objext conftest$ac_exeext
6225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006226 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006233 { ac_try='test -z "$ac_c_werror_flag"
6234 || test ! -s conftest.err'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006246 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00006247else
John Criswell47fdd832003-07-14 16:52:07 +00006248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006249sed 's/^/| /' conftest.$ac_ext >&5
6250
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006251llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00006252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006253rm -f conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006255 CFLAGS="$oldcflags"
6256 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00006257ac_cpp='$CPP $CPPFLAGS'
6258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260ac_compiler_gnu=$ac_cv_c_compiler_gnu
6261
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006262
John Criswell7a73b802003-06-30 21:59:07 +00006263fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006264echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6265echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6266if test "$llvm_cv_link_use_r" = yes ; then
6267
6268cat >>confdefs.h <<\_ACEOF
6269#define HAVE_LINK_R 1
6270_ACEOF
6271
John Criswell47fdd832003-07-14 16:52:07 +00006272 fi
John Criswell47fdd832003-07-14 16:52:07 +00006273
John Criswell47fdd832003-07-14 16:52:07 +00006274
John Criswell47fdd832003-07-14 16:52:07 +00006275
John Criswell7a73b802003-06-30 21:59:07 +00006276
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006277echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6278echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6279if test "${ac_cv_c_const+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281else
6282 cat >conftest.$ac_ext <<_ACEOF
6283/* confdefs.h. */
6284_ACEOF
6285cat confdefs.h >>conftest.$ac_ext
6286cat >>conftest.$ac_ext <<_ACEOF
6287/* end confdefs.h. */
6288
6289int
6290main ()
6291{
6292/* FIXME: Include the comments suggested by Paul. */
6293#ifndef __cplusplus
6294 /* Ultrix mips cc rejects this. */
6295 typedef int charset[2];
6296 const charset x;
6297 /* SunOS 4.1.1 cc rejects this. */
6298 char const *const *ccp;
6299 char **p;
6300 /* NEC SVR4.0.2 mips cc rejects this. */
6301 struct point {int x, y;};
6302 static struct point const zero = {0,0};
6303 /* AIX XL C 1.02.0.0 rejects this.
6304 It does not let you subtract one const X* pointer from another in
6305 an arm of an if-expression whose if-part is not a constant
6306 expression */
6307 const char *g = "string";
6308 ccp = &g + (g ? g-g : 0);
6309 /* HPUX 7.0 cc rejects these. */
6310 ++ccp;
6311 p = (char**) ccp;
6312 ccp = (char const *const *) p;
6313 { /* SCO 3.2v4 cc rejects this. */
6314 char *t;
6315 char const *s = 0 ? (char *) 0 : (char const *) 0;
6316
6317 *t++ = 0;
6318 }
6319 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6320 int x[] = {25, 17};
6321 const int *foo = &x[0];
6322 ++foo;
6323 }
6324 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6325 typedef const int *iptr;
6326 iptr p = 0;
6327 ++p;
6328 }
6329 { /* AIX XL C 1.02.0.0 rejects this saying
6330 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6331 struct s { int j; const int *ap[3]; };
6332 struct s *b; b->j = 5;
6333 }
6334 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6335 const int foo = 10;
6336 }
6337#endif
6338
6339 ;
6340 return 0;
6341}
6342_ACEOF
6343rm -f conftest.$ac_objext
6344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_cv_c_const=yes
6366else
6367 echo "$as_me: failed program was:" >&5
6368sed 's/^/| /' conftest.$ac_ext >&5
6369
6370ac_cv_c_const=no
6371fi
6372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373fi
6374echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6375echo "${ECHO_T}$ac_cv_c_const" >&6
6376if test $ac_cv_c_const = no; then
6377
6378cat >>confdefs.h <<\_ACEOF
6379#define const
6380_ACEOF
6381
6382fi
6383
6384
6385echo "$as_me:$LINENO: checking for egrep" >&5
6386echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6387if test "${ac_cv_prog_egrep+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389else
6390 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6391 then ac_cv_prog_egrep='grep -E'
6392 else ac_cv_prog_egrep='egrep'
6393 fi
6394fi
6395echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6396echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6397 EGREP=$ac_cv_prog_egrep
6398
John Criswell7a73b802003-06-30 21:59:07 +00006399
6400echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6401echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6402if test "${ac_cv_header_stdc+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006406/* confdefs.h. */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006411#include <stdlib.h>
6412#include <stdarg.h>
6413#include <string.h>
6414#include <float.h>
6415
John Criswell0c38eaf2003-09-10 15:17:25 +00006416int
6417main ()
6418{
6419
6420 ;
6421 return 0;
6422}
John Criswell7a73b802003-06-30 21:59:07 +00006423_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006424rm -f conftest.$ac_objext
6425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006426 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006432 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006433 { ac_try='test -z "$ac_c_werror_flag"
6434 || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006446 ac_cv_header_stdc=yes
6447else
6448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006449sed 's/^/| /' conftest.$ac_ext >&5
6450
6451ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006452fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006454
6455if test $ac_cv_header_stdc = yes; then
6456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6457 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006458/* confdefs.h. */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006463#include <string.h>
6464
6465_ACEOF
6466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006467 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006468 :
6469else
6470 ac_cv_header_stdc=no
6471fi
6472rm -f conftest*
6473
6474fi
6475
6476if test $ac_cv_header_stdc = yes; then
6477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6478 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006479/* confdefs.h. */
6480_ACEOF
6481cat confdefs.h >>conftest.$ac_ext
6482cat >>conftest.$ac_ext <<_ACEOF
6483/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006484#include <stdlib.h>
6485
6486_ACEOF
6487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006488 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006489 :
6490else
6491 ac_cv_header_stdc=no
6492fi
6493rm -f conftest*
6494
6495fi
6496
6497if test $ac_cv_header_stdc = yes; then
6498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6499 if test "$cross_compiling" = yes; then
6500 :
6501else
6502 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006503/* confdefs.h. */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
6507/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006508#include <ctype.h>
6509#if ((' ' & 0x0FF) == 0x020)
6510# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6511# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6512#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006513# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006514 (('a' <= (c) && (c) <= 'i') \
6515 || ('j' <= (c) && (c) <= 'r') \
6516 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006517# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6518#endif
6519
6520#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6521int
6522main ()
6523{
6524 int i;
6525 for (i = 0; i < 256; i++)
6526 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006527 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006528 exit(2);
6529 exit (0);
6530}
6531_ACEOF
6532rm -f conftest$ac_exeext
6533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534 (eval $ac_link) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 :
6544else
6545 echo "$as_me: program exited with status $ac_status" >&5
6546echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006547sed 's/^/| /' conftest.$ac_ext >&5
6548
John Criswell7a73b802003-06-30 21:59:07 +00006549( exit $ac_status )
6550ac_cv_header_stdc=no
6551fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006552rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006553fi
6554fi
6555fi
6556echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6557echo "${ECHO_T}$ac_cv_header_stdc" >&6
6558if test $ac_cv_header_stdc = yes; then
6559
6560cat >>confdefs.h <<\_ACEOF
6561#define STDC_HEADERS 1
6562_ACEOF
6563
6564fi
6565
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006566
6567
6568
6569
6570
6571ac_header_dirent=no
6572for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6573 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6574echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6575echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6576if eval "test \"\${$as_ac_Header+set}\" = set"; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579 cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h. */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h. */
6585#include <sys/types.h>
6586#include <$ac_hdr>
6587
6588int
6589main ()
6590{
6591if ((DIR *) 0)
6592return 0;
6593 ;
6594 return 0;
6595}
6596_ACEOF
6597rm -f conftest.$ac_objext
6598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599 (eval $ac_compile) 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -z "$ac_c_werror_flag"
6607 || test ! -s conftest.err'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; } &&
6613 { ac_try='test -s conftest.$ac_objext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 eval "$as_ac_Header=yes"
6620else
6621 echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
6624eval "$as_ac_Header=no"
6625fi
6626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627fi
6628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6630if test `eval echo '${'$as_ac_Header'}'` = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6633_ACEOF
6634
6635ac_header_dirent=$ac_hdr; break
6636fi
6637
6638done
6639# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6640if test $ac_header_dirent = dirent.h; then
6641 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6642echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6643if test "${ac_cv_search_opendir+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646 ac_func_search_save_LIBS=$LIBS
6647ac_cv_search_opendir=no
6648cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h. */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h. */
6654
6655/* Override any gcc2 internal prototype to avoid an error. */
6656#ifdef __cplusplus
6657extern "C"
6658#endif
6659/* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661char opendir ();
6662int
6663main ()
6664{
6665opendir ();
6666 ;
6667 return 0;
6668}
6669_ACEOF
6670rm -f conftest.$ac_objext conftest$ac_exeext
6671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_search_opendir="none required"
6693else
6694 echo "$as_me: failed program was:" >&5
6695sed 's/^/| /' conftest.$ac_ext >&5
6696
6697fi
6698rm -f conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6700if test "$ac_cv_search_opendir" = no; then
6701 for ac_lib in dir; do
6702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6703 cat >conftest.$ac_ext <<_ACEOF
6704/* confdefs.h. */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h. */
6709
6710/* Override any gcc2 internal prototype to avoid an error. */
6711#ifdef __cplusplus
6712extern "C"
6713#endif
6714/* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6716char opendir ();
6717int
6718main ()
6719{
6720opendir ();
6721 ;
6722 return 0;
6723}
6724_ACEOF
6725rm -f conftest.$ac_objext conftest$ac_exeext
6726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_search_opendir="-l$ac_lib"
6748break
6749else
6750 echo "$as_me: failed program was:" >&5
6751sed 's/^/| /' conftest.$ac_ext >&5
6752
6753fi
6754rm -f conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 done
6757fi
6758LIBS=$ac_func_search_save_LIBS
6759fi
6760echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6761echo "${ECHO_T}$ac_cv_search_opendir" >&6
6762if test "$ac_cv_search_opendir" != no; then
6763 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6764
6765fi
6766
6767else
6768 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6769echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6770if test "${ac_cv_search_opendir+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773 ac_func_search_save_LIBS=$LIBS
6774ac_cv_search_opendir=no
6775cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h. */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
6781
6782/* Override any gcc2 internal prototype to avoid an error. */
6783#ifdef __cplusplus
6784extern "C"
6785#endif
6786/* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6788char opendir ();
6789int
6790main ()
6791{
6792opendir ();
6793 ;
6794 return 0;
6795}
6796_ACEOF
6797rm -f conftest.$ac_objext conftest$ac_exeext
6798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest$ac_exeext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_cv_search_opendir="none required"
6820else
6821 echo "$as_me: failed program was:" >&5
6822sed 's/^/| /' conftest.$ac_ext >&5
6823
6824fi
6825rm -f conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext
6827if test "$ac_cv_search_opendir" = no; then
6828 for ac_lib in x; do
6829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6830 cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h. */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h. */
6836
6837/* Override any gcc2 internal prototype to avoid an error. */
6838#ifdef __cplusplus
6839extern "C"
6840#endif
6841/* We use char because int might match the return type of a gcc2
6842 builtin and then its argument prototype would still apply. */
6843char opendir ();
6844int
6845main ()
6846{
6847opendir ();
6848 ;
6849 return 0;
6850}
6851_ACEOF
6852rm -f conftest.$ac_objext conftest$ac_exeext
6853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6854 (eval $ac_link) 2>conftest.er1
6855 ac_status=$?
6856 grep -v '^ *+' conftest.er1 >conftest.err
6857 rm -f conftest.er1
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag"
6862 || test ! -s conftest.err'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try='test -s conftest$ac_exeext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_search_opendir="-l$ac_lib"
6875break
6876else
6877 echo "$as_me: failed program was:" >&5
6878sed 's/^/| /' conftest.$ac_ext >&5
6879
6880fi
6881rm -f conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6883 done
6884fi
6885LIBS=$ac_func_search_save_LIBS
6886fi
6887echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6888echo "${ECHO_T}$ac_cv_search_opendir" >&6
6889if test "$ac_cv_search_opendir" != no; then
6890 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6891
6892fi
6893
6894fi
6895
John Criswell7a73b802003-06-30 21:59:07 +00006896# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006907 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006908do
6909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6910echo "$as_me:$LINENO: checking for $ac_header" >&5
6911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6912if eval "test \"\${$as_ac_Header+set}\" = set"; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914else
6915 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006916/* confdefs.h. */
6917_ACEOF
6918cat confdefs.h >>conftest.$ac_ext
6919cat >>conftest.$ac_ext <<_ACEOF
6920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006921$ac_includes_default
6922
6923#include <$ac_header>
6924_ACEOF
6925rm -f conftest.$ac_objext
6926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006927 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006928 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006934 { ac_try='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 eval "$as_ac_Header=yes"
6948else
6949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006950sed 's/^/| /' conftest.$ac_ext >&5
6951
John Criswell7a73b802003-06-30 21:59:07 +00006952eval "$as_ac_Header=no"
6953fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006955fi
6956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6958if test `eval echo '${'$as_ac_Header'}'` = yes; then
6959 cat >>confdefs.h <<_ACEOF
6960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6961_ACEOF
6962
6963fi
6964
6965done
6966
6967
6968
6969for ac_header in dlfcn.h
6970do
6971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006972if eval "test \"\${$as_ac_Header+set}\" = set"; then
6973 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6975if eval "test \"\${$as_ac_Header+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006977fi
6978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006980else
Brian Gaeke0a621332004-09-08 20:38:05 +00006981 # Is the header compilable?
6982echo "$as_me:$LINENO: checking $ac_header usability" >&5
6983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6984cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006985/* confdefs.h. */
6986_ACEOF
6987cat confdefs.h >>conftest.$ac_ext
6988cat >>conftest.$ac_ext <<_ACEOF
6989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006990$ac_includes_default
6991#include <$ac_header>
6992_ACEOF
6993rm -f conftest.$ac_objext
6994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006995 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006996 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00007000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00007002 { ac_try='test -z "$ac_c_werror_flag"
7003 || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00007010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00007015 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00007016else
7017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007018sed 's/^/| /' conftest.$ac_ext >&5
7019
Brian Gaeke0a621332004-09-08 20:38:05 +00007020ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00007021fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00007022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00007023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7024echo "${ECHO_T}$ac_header_compiler" >&6
7025
7026# Is the header present?
7027echo "$as_me:$LINENO: checking $ac_header presence" >&5
7028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7029cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00007030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
7035#include <$ac_header>
7036_ACEOF
7037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } >/dev/null; then
7045 if test -s conftest.err; then
7046 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00007047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00007048 else
7049 ac_cpp_err=
7050 fi
7051else
7052 ac_cpp_err=yes
7053fi
7054if test -z "$ac_cpp_err"; then
7055 ac_header_preproc=yes
7056else
7057 echo "$as_me: failed program was:" >&5
7058sed 's/^/| /' conftest.$ac_ext >&5
7059
7060 ac_header_preproc=no
7061fi
7062rm -f conftest.err conftest.$ac_ext
7063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7064echo "${ECHO_T}$ac_header_preproc" >&6
7065
7066# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00007067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7068 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00007069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00007071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7073 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00007074 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00007075 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00007076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00007078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00007084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00007086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00007088 (
7089 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00007090## ----------------------------------- ##
7091## Report this to llvmbugs@cs.uiuc.edu ##
7092## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00007093_ASBOX
7094 ) |
7095 sed "s/^/$as_me: WARNING: /" >&2
7096 ;;
7097esac
7098echo "$as_me:$LINENO: checking for $ac_header" >&5
7099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7100if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007103 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00007104fi
7105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00007107
7108fi
John Criswell7a73b802003-06-30 21:59:07 +00007109if test `eval echo '${'$as_ac_Header'}'` = yes; then
7110 cat >>confdefs.h <<_ACEOF
7111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7112_ACEOF
7113
7114fi
7115
7116done
7117
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007118# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7119if test "${enable_ltdl_install+set}" = set; then
7120 enableval="$enable_ltdl_install"
7121
7122fi;
7123
7124
7125
7126if test x"${enable_ltdl_install-no}" != xno; then
7127 INSTALL_LTDL_TRUE=
7128 INSTALL_LTDL_FALSE='#'
7129else
7130 INSTALL_LTDL_TRUE='#'
7131 INSTALL_LTDL_FALSE=
7132fi
7133
7134
7135
7136if test x"${enable_ltdl_convenience-no}" != xno; then
7137 CONVENIENCE_LTDL_TRUE=
7138 CONVENIENCE_LTDL_FALSE='#'
7139else
7140 CONVENIENCE_LTDL_TRUE='#'
7141 CONVENIENCE_LTDL_FALSE=
7142fi
7143
7144
7145echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7146echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7147library_names_spec=
7148libname_spec='lib$name'
7149soname_spec=
7150shrext_cmds=".so"
7151postinstall_cmds=
7152postuninstall_cmds=
7153finish_cmds=
7154finish_eval=
7155shlibpath_var=
7156shlibpath_overrides_runpath=unknown
7157version_type=none
7158dynamic_linker="$host_os ld.so"
7159sys_lib_dlsearch_path_spec="/lib /usr/lib"
7160if test "$GCC" = yes; then
7161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7162 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7163 # if the path contains ";" then we assume it to be the separator
7164 # otherwise default to the standard path separator (i.e. ":") - it is
7165 # assumed that no part of a normal pathname contains ";" but that should
7166 # okay in the real world where ";" in dirpaths is itself problematic.
7167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7168 else
7169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7170 fi
7171else
7172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7173fi
7174need_lib_prefix=unknown
7175hardcode_into_libs=no
7176
7177# when you set need_version to no, make sure it does not cause -set_version
7178# flags to be left without arguments
7179need_version=unknown
7180
7181case $host_os in
7182aix3*)
7183 version_type=linux
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7185 shlibpath_var=LIBPATH
7186
7187 # AIX 3 has no versioning support, so we append a major version to the name.
7188 soname_spec='${libname}${release}${shared_ext}$major'
7189 ;;
7190
7191aix4* | aix5*)
7192 version_type=linux
7193 need_lib_prefix=no
7194 need_version=no
7195 hardcode_into_libs=yes
7196 if test "$host_cpu" = ia64; then
7197 # AIX 5 supports IA64
7198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7199 shlibpath_var=LD_LIBRARY_PATH
7200 else
7201 # With GCC up to 2.95.x, collect2 would create an import file
7202 # for dependence libraries. The import file would start with
7203 # the line `#! .'. This would cause the generated library to
7204 # depend on `.', always an invalid library. This was fixed in
7205 # development snapshots of GCC prior to 3.0.
7206 case $host_os in
7207 aix4 | aix4.[01] | aix4.[01].*)
7208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7209 echo ' yes '
7210 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7211 :
7212 else
7213 can_build_shared=no
7214 fi
7215 ;;
7216 esac
7217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7218 # soname into executable. Probably we can add versioning support to
7219 # collect2, so additional links can be useful in future.
7220 if test "$aix_use_runtimelinking" = yes; then
7221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7222 # instead of lib<name>.a to let people know that these are not
7223 # typical AIX shared libraries.
7224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7225 else
7226 # We preserve .a as extension for shared libraries through AIX4.2
7227 # and later when we are not doing run time linking.
7228 library_names_spec='${libname}${release}.a $libname.a'
7229 soname_spec='${libname}${release}${shared_ext}$major'
7230 fi
7231 shlibpath_var=LIBPATH
7232 fi
7233 ;;
7234
7235amigaos*)
7236 library_names_spec='$libname.ixlibrary $libname.a'
7237 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7238 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'
7239 ;;
7240
7241beos*)
7242 library_names_spec='${libname}${shared_ext}'
7243 dynamic_linker="$host_os ld.so"
7244 shlibpath_var=LIBRARY_PATH
7245 ;;
7246
7247bsdi[45]*)
7248 version_type=linux
7249 need_version=no
7250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7251 soname_spec='${libname}${release}${shared_ext}$major'
7252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7253 shlibpath_var=LD_LIBRARY_PATH
7254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7256 # the default ld.so.conf also contains /usr/contrib/lib and
7257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7258 # libtool to hard-code these into programs
7259 ;;
7260
7261cygwin* | mingw* | pw32*)
7262 version_type=windows
7263 shrext_cmds=".dll"
7264 need_version=no
7265 need_lib_prefix=no
7266
7267 case $GCC,$host_os in
7268 yes,cygwin* | yes,mingw* | yes,pw32*)
7269 library_names_spec='$libname.dll.a'
7270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7271 postinstall_cmds='base_file=`basename \${file}`~
7272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7273 dldir=$destdir/`dirname \$dlpath`~
7274 test -d \$dldir || mkdir -p \$dldir~
7275 $install_prog $dir/$dlname \$dldir/$dlname'
7276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7277 dlpath=$dir/\$dldll~
7278 $rm \$dlpath'
7279 shlibpath_overrides_runpath=yes
7280
7281 case $host_os in
7282 cygwin*)
7283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7286 ;;
7287 mingw*)
7288 # MinGW DLLs use traditional 'lib' prefix
7289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7292 # It is most probably a Windows format PATH printed by
7293 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7294 # path with ; separators, and with drive letters. We can handle the
7295 # drive letters (cygwin fileutils understands them), so leave them,
7296 # especially as we might pass files found there to a mingw objdump,
7297 # which wouldn't understand a cygwinified path. Ahh.
7298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7299 else
7300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7301 fi
7302 ;;
7303 pw32*)
7304 # pw32 DLLs use 'pw' prefix rather than 'lib'
7305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7306 ;;
7307 esac
7308 ;;
7309
7310 *)
7311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7312 ;;
7313 esac
7314 dynamic_linker='Win32 ld.exe'
7315 # FIXME: first we should search . and the directory the executable is in
7316 shlibpath_var=PATH
7317 ;;
7318
7319darwin* | rhapsody*)
7320 dynamic_linker="$host_os dyld"
7321 version_type=darwin
7322 need_lib_prefix=no
7323 need_version=no
7324 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7325 soname_spec='${libname}${release}${major}$shared_ext'
7326 shlibpath_overrides_runpath=yes
7327 shlibpath_var=DYLD_LIBRARY_PATH
7328 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7329 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7330 if test "$GCC" = yes; then
7331 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"`
7332 else
7333 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7334 fi
7335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7336 ;;
7337
7338dgux*)
7339 version_type=linux
7340 need_lib_prefix=no
7341 need_version=no
7342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7343 soname_spec='${libname}${release}${shared_ext}$major'
7344 shlibpath_var=LD_LIBRARY_PATH
7345 ;;
7346
7347freebsd1*)
7348 dynamic_linker=no
7349 ;;
7350
7351kfreebsd*-gnu)
7352 version_type=linux
7353 need_lib_prefix=no
7354 need_version=no
7355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7356 soname_spec='${libname}${release}${shared_ext}$major'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath=no
7359 hardcode_into_libs=yes
7360 dynamic_linker='GNU ld.so'
7361 ;;
7362
7363freebsd*)
7364 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7365 version_type=freebsd-$objformat
7366 case $version_type in
7367 freebsd-elf*)
7368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7369 need_version=no
7370 need_lib_prefix=no
7371 ;;
7372 freebsd-*)
7373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7374 need_version=yes
7375 ;;
7376 esac
7377 shlibpath_var=LD_LIBRARY_PATH
7378 case $host_os in
7379 freebsd2*)
7380 shlibpath_overrides_runpath=yes
7381 ;;
7382 freebsd3.01* | freebsdelf3.01*)
7383 shlibpath_overrides_runpath=yes
7384 hardcode_into_libs=yes
7385 ;;
7386 *) # from 3.2 on
7387 shlibpath_overrides_runpath=no
7388 hardcode_into_libs=yes
7389 ;;
7390 esac
7391 ;;
7392
7393gnu*)
7394 version_type=linux
7395 need_lib_prefix=no
7396 need_version=no
7397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7398 soname_spec='${libname}${release}${shared_ext}$major'
7399 shlibpath_var=LD_LIBRARY_PATH
7400 hardcode_into_libs=yes
7401 ;;
7402
7403hpux9* | hpux10* | hpux11*)
7404 # Give a soname corresponding to the major version so that dld.sl refuses to
7405 # link against other versions.
7406 version_type=sunos
7407 need_lib_prefix=no
7408 need_version=no
7409 case "$host_cpu" in
7410 ia64*)
7411 shrext_cmds='.so'
7412 hardcode_into_libs=yes
7413 dynamic_linker="$host_os dld.so"
7414 shlibpath_var=LD_LIBRARY_PATH
7415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7417 soname_spec='${libname}${release}${shared_ext}$major'
7418 if test "X$HPUX_IA64_MODE" = X32; then
7419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7420 else
7421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7422 fi
7423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7424 ;;
7425 hppa*64*)
7426 shrext_cmds='.sl'
7427 hardcode_into_libs=yes
7428 dynamic_linker="$host_os dld.sl"
7429 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7432 soname_spec='${libname}${release}${shared_ext}$major'
7433 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7435 ;;
7436 *)
7437 shrext_cmds='.sl'
7438 dynamic_linker="$host_os dld.sl"
7439 shlibpath_var=SHLIB_PATH
7440 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7442 soname_spec='${libname}${release}${shared_ext}$major'
7443 ;;
7444 esac
7445 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7446 postinstall_cmds='chmod 555 $lib'
7447 ;;
7448
7449irix5* | irix6* | nonstopux*)
7450 case $host_os in
7451 nonstopux*) version_type=nonstopux ;;
7452 *)
7453 if test "$lt_cv_prog_gnu_ld" = yes; then
7454 version_type=linux
7455 else
7456 version_type=irix
7457 fi ;;
7458 esac
7459 need_lib_prefix=no
7460 need_version=no
7461 soname_spec='${libname}${release}${shared_ext}$major'
7462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7463 case $host_os in
7464 irix5* | nonstopux*)
7465 libsuff= shlibsuff=
7466 ;;
7467 *)
7468 case $LD in # libtool.m4 will add one of these switches to LD
7469 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7470 libsuff= shlibsuff= libmagic=32-bit;;
7471 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7472 libsuff=32 shlibsuff=N32 libmagic=N32;;
7473 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7474 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7475 *) libsuff= shlibsuff= libmagic=never-match;;
7476 esac
7477 ;;
7478 esac
7479 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7480 shlibpath_overrides_runpath=no
7481 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7482 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7483 hardcode_into_libs=yes
7484 ;;
7485
7486# No shared lib support for Linux oldld, aout, or coff.
7487linux*oldld* | linux*aout* | linux*coff*)
7488 dynamic_linker=no
7489 ;;
7490
7491# This must be Linux ELF.
7492linux*)
7493 version_type=linux
7494 need_lib_prefix=no
7495 need_version=no
7496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7497 soname_spec='${libname}${release}${shared_ext}$major'
7498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7499 shlibpath_var=LD_LIBRARY_PATH
7500 shlibpath_overrides_runpath=no
7501 # This implies no fast_install, which is unacceptable.
7502 # Some rework will be needed to allow for fast_install
7503 # before this can be enabled.
7504 hardcode_into_libs=yes
7505
7506 # Append ld.so.conf contents to the search path
7507 if test -f /etc/ld.so.conf; then
7508 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7509 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7510 fi
7511
7512 # We used to test for /lib/ld.so.1 and disable shared libraries on
7513 # powerpc, because MkLinux only supported shared libraries with the
7514 # GNU dynamic linker. Since this was broken with cross compilers,
7515 # most powerpc-linux boxes support dynamic linking these days and
7516 # people can always --disable-shared, the test was removed, and we
7517 # assume the GNU/Linux dynamic linker is in use.
7518 dynamic_linker='GNU/Linux ld.so'
7519 ;;
7520
7521knetbsd*-gnu)
7522 version_type=linux
7523 need_lib_prefix=no
7524 need_version=no
7525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7526 soname_spec='${libname}${release}${shared_ext}$major'
7527 shlibpath_var=LD_LIBRARY_PATH
7528 shlibpath_overrides_runpath=no
7529 hardcode_into_libs=yes
7530 dynamic_linker='GNU ld.so'
7531 ;;
7532
7533netbsd*)
7534 version_type=sunos
7535 need_lib_prefix=no
7536 need_version=no
7537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540 dynamic_linker='NetBSD (a.out) ld.so'
7541 else
7542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7543 soname_spec='${libname}${release}${shared_ext}$major'
7544 dynamic_linker='NetBSD ld.elf_so'
7545 fi
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7548 hardcode_into_libs=yes
7549 ;;
7550
7551newsos6)
7552 version_type=linux
7553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554 shlibpath_var=LD_LIBRARY_PATH
7555 shlibpath_overrides_runpath=yes
7556 ;;
7557
7558nto-qnx*)
7559 version_type=linux
7560 need_lib_prefix=no
7561 need_version=no
7562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563 soname_spec='${libname}${release}${shared_ext}$major'
7564 shlibpath_var=LD_LIBRARY_PATH
7565 shlibpath_overrides_runpath=yes
7566 ;;
7567
7568openbsd*)
7569 version_type=sunos
7570 need_lib_prefix=no
7571 need_version=no
7572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574 shlibpath_var=LD_LIBRARY_PATH
7575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7576 case $host_os in
7577 openbsd2.[89] | openbsd2.[89].*)
7578 shlibpath_overrides_runpath=no
7579 ;;
7580 *)
7581 shlibpath_overrides_runpath=yes
7582 ;;
7583 esac
7584 else
7585 shlibpath_overrides_runpath=yes
7586 fi
7587 ;;
7588
7589os2*)
7590 libname_spec='$name'
7591 shrext_cmds=".dll"
7592 need_lib_prefix=no
7593 library_names_spec='$libname${shared_ext} $libname.a'
7594 dynamic_linker='OS/2 ld.exe'
7595 shlibpath_var=LIBPATH
7596 ;;
7597
7598osf3* | osf4* | osf5*)
7599 version_type=osf
7600 need_lib_prefix=no
7601 need_version=no
7602 soname_spec='${libname}${release}${shared_ext}$major'
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604 shlibpath_var=LD_LIBRARY_PATH
7605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7607 ;;
7608
7609sco3.2v5*)
7610 version_type=osf
7611 soname_spec='${libname}${release}${shared_ext}$major'
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613 shlibpath_var=LD_LIBRARY_PATH
7614 ;;
7615
7616solaris*)
7617 version_type=linux
7618 need_lib_prefix=no
7619 need_version=no
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 soname_spec='${libname}${release}${shared_ext}$major'
7622 shlibpath_var=LD_LIBRARY_PATH
7623 shlibpath_overrides_runpath=yes
7624 hardcode_into_libs=yes
7625 # ldd complains unless libraries are executable
7626 postinstall_cmds='chmod +x $lib'
7627 ;;
7628
7629sunos4*)
7630 version_type=sunos
7631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633 shlibpath_var=LD_LIBRARY_PATH
7634 shlibpath_overrides_runpath=yes
7635 if test "$with_gnu_ld" = yes; then
7636 need_lib_prefix=no
7637 fi
7638 need_version=yes
7639 ;;
7640
7641sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7642 version_type=linux
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 soname_spec='${libname}${release}${shared_ext}$major'
7645 shlibpath_var=LD_LIBRARY_PATH
7646 case $host_vendor in
7647 sni)
7648 shlibpath_overrides_runpath=no
7649 need_lib_prefix=no
7650 export_dynamic_flag_spec='${wl}-Blargedynsym'
7651 runpath_var=LD_RUN_PATH
7652 ;;
7653 siemens)
7654 need_lib_prefix=no
7655 ;;
7656 motorola)
7657 need_lib_prefix=no
7658 need_version=no
7659 shlibpath_overrides_runpath=no
7660 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7661 ;;
7662 esac
7663 ;;
7664
7665sysv4*MP*)
7666 if test -d /usr/nec ;then
7667 version_type=linux
7668 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669 soname_spec='$libname${shared_ext}.$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7671 fi
7672 ;;
7673
7674uts4*)
7675 version_type=linux
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 shlibpath_var=LD_LIBRARY_PATH
7679 ;;
7680
7681*)
7682 dynamic_linker=no
7683 ;;
7684esac
7685echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686echo "${ECHO_T}$dynamic_linker" >&6
7687test "$dynamic_linker" = no && can_build_shared=no
7688
7689
7690echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7691echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7692if test "${libltdl_cv_shlibext+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695
7696module=yes
7697eval libltdl_cv_shlibext=$shrext_cmds
7698
7699fi
7700echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7701echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7702if test -n "$libltdl_cv_shlibext"; then
7703
7704cat >>confdefs.h <<_ACEOF
7705#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7706_ACEOF
7707
7708fi
7709
7710
7711echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7712echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7713if test "${libltdl_cv_shlibpath_var+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 libltdl_cv_shlibpath_var="$shlibpath_var"
7717fi
7718echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7719echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7720if test -n "$libltdl_cv_shlibpath_var"; then
7721
7722cat >>confdefs.h <<_ACEOF
7723#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7724_ACEOF
7725
7726fi
7727
7728
7729echo "$as_me:$LINENO: checking for the default library search path" >&5
7730echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7731if test "${libltdl_cv_sys_search_path+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7735fi
7736echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7737echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7738if test -n "$libltdl_cv_sys_search_path"; then
7739 sys_search_path=
7740 for dir in $libltdl_cv_sys_search_path; do
7741 if test -z "$sys_search_path"; then
7742 sys_search_path="$dir"
7743 else
7744 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7745 fi
7746 done
7747
7748cat >>confdefs.h <<_ACEOF
7749#define LTDL_SYSSEARCHPATH "$sys_search_path"
7750_ACEOF
7751
7752fi
7753
7754echo "$as_me:$LINENO: checking for objdir" >&5
7755echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7756if test "${libltdl_cv_objdir+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759 libltdl_cv_objdir="$objdir"
7760 if test -n "$objdir"; then
7761 :
7762 else
7763 rm -f .libs 2>/dev/null
7764 mkdir .libs 2>/dev/null
7765 if test -d .libs; then
7766 libltdl_cv_objdir=.libs
7767 else
7768 # MS-DOS does not allow filenames that begin with a dot.
7769 libltdl_cv_objdir=_libs
7770 fi
7771 rmdir .libs 2>/dev/null
7772 fi
7773
7774fi
7775echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7776echo "${ECHO_T}$libltdl_cv_objdir" >&6
7777
7778cat >>confdefs.h <<_ACEOF
7779#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7780_ACEOF
7781
7782
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007783
7784
7785
7786
7787# Check for command to grab the raw symbol name followed by C symbol from nm.
7788echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7789echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7790if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793
7794# These are sane defaults that work on at least a few old systems.
7795# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7796
7797# Character class describing NM global symbol codes.
7798symcode='[BCDEGRST]'
7799
7800# Regexp to match symbols that can be accessed directly from C.
7801sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7802
7803# Transform the above into a raw symbol and a C symbol.
7804symxfrm='\1 \2\3 \3'
7805
7806# Transform an extracted symbol line into a proper C declaration
7807lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7808
7809# Transform an extracted symbol line into symbol name and symbol address
7810lt_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'"
7811
7812# Define system-specific variables.
7813case $host_os in
7814aix*)
7815 symcode='[BCDT]'
7816 ;;
7817cygwin* | mingw* | pw32*)
7818 symcode='[ABCDGISTW]'
7819 ;;
7820hpux*) # Its linker distinguishes data from code symbols
7821 if test "$host_cpu" = ia64; then
7822 symcode='[ABCDEGRST]'
7823 fi
7824 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7825 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'"
7826 ;;
7827linux*)
7828 if test "$host_cpu" = ia64; then
7829 symcode='[ABCDGIRSTW]'
7830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7831 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'"
7832 fi
7833 ;;
7834irix* | nonstopux*)
7835 symcode='[BCDEGRST]'
7836 ;;
7837osf*)
7838 symcode='[BCDEGQRST]'
7839 ;;
7840solaris* | sysv5*)
7841 symcode='[BDRT]'
7842 ;;
7843sysv4)
7844 symcode='[DFNSTU]'
7845 ;;
7846esac
7847
7848# Handle CRLF in mingw tool chain
7849opt_cr=
7850case $build_os in
7851mingw*)
7852 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7853 ;;
7854esac
7855
7856# If we're using GNU nm, then use its standard symbol codes.
7857case `$NM -V 2>&1` in
7858*GNU* | *'with BFD'*)
7859 symcode='[ABCDGIRSTW]' ;;
7860esac
7861
7862# Try without a prefix undercore, then with it.
7863for ac_symprfx in "" "_"; do
7864
7865 # Write the raw and C identifiers.
7866 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7867
7868 # Check to see that the pipe works correctly.
7869 pipe_works=no
7870
7871 rm -f conftest*
7872 cat > conftest.$ac_ext <<EOF
7873#ifdef __cplusplus
7874extern "C" {
7875#endif
7876char nm_test_var;
7877void nm_test_func(){}
7878#ifdef __cplusplus
7879}
7880#endif
7881int main(){nm_test_var='a';nm_test_func();return(0);}
7882EOF
7883
7884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7885 (eval $ac_compile) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; then
7889 # Now try to grab the symbols.
7890 nlist=conftest.nm
7891 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7892 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && test -s "$nlist"; then
7896 # Try sorting and uniquifying the output.
7897 if sort "$nlist" | uniq > "$nlist"T; then
7898 mv -f "$nlist"T "$nlist"
7899 else
7900 rm -f "$nlist"T
7901 fi
7902
7903 # Make sure that we snagged all the symbols we need.
7904 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7905 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7906 cat <<EOF > conftest.$ac_ext
7907#ifdef __cplusplus
7908extern "C" {
7909#endif
7910
7911EOF
7912 # Now generate the symbol file.
7913 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7914
7915 cat <<EOF >> conftest.$ac_ext
7916#if defined (__STDC__) && __STDC__
7917# define lt_ptr_t void *
7918#else
7919# define lt_ptr_t char *
7920# define const
7921#endif
7922
7923/* The mapping between symbol names and symbols. */
7924const struct {
7925 const char *name;
7926 lt_ptr_t address;
7927}
7928lt_preloaded_symbols[] =
7929{
7930EOF
7931 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7932 cat <<\EOF >> conftest.$ac_ext
7933 {0, (lt_ptr_t) 0}
7934};
7935
7936#ifdef __cplusplus
7937}
7938#endif
7939EOF
7940 # Now try linking the two files.
7941 mv conftest.$ac_objext conftstm.$ac_objext
7942 lt_save_LIBS="$LIBS"
7943 lt_save_CFLAGS="$CFLAGS"
7944 LIBS="conftstm.$ac_objext"
7945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7947 (eval $ac_link) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7951 pipe_works=yes
7952 fi
7953 LIBS="$lt_save_LIBS"
7954 CFLAGS="$lt_save_CFLAGS"
7955 else
7956 echo "cannot find nm_test_func in $nlist" >&5
7957 fi
7958 else
7959 echo "cannot find nm_test_var in $nlist" >&5
7960 fi
7961 else
7962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7963 fi
7964 else
7965 echo "$progname: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 fi
7968 rm -f conftest* conftst*
7969
7970 # Do not use the global_symbol_pipe unless it works.
7971 if test "$pipe_works" = yes; then
7972 break
7973 else
7974 lt_cv_sys_global_symbol_pipe=
7975 fi
7976done
7977
7978fi
7979
7980if test -z "$lt_cv_sys_global_symbol_pipe"; then
7981 lt_cv_sys_global_symbol_to_cdecl=
7982fi
7983if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7984 echo "$as_me:$LINENO: result: failed" >&5
7985echo "${ECHO_T}failed" >&6
7986else
7987 echo "$as_me:$LINENO: result: ok" >&5
7988echo "${ECHO_T}ok" >&6
7989fi
7990
7991
7992echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7993echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7994if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7998 libltdl_cv_preloaded_symbols=yes
7999 else
8000 libltdl_cv_preloaded_symbols=no
8001 fi
8002
8003fi
8004echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
8005echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
8006if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8007
8008cat >>confdefs.h <<\_ACEOF
8009#define HAVE_PRELOADED_SYMBOLS 1
8010_ACEOF
8011
8012fi
8013
8014LIBADD_DL=
8015
8016ac_ext=c
8017ac_cpp='$CPP $CPPFLAGS'
8018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022
8023echo "$as_me:$LINENO: checking for shl_load" >&5
8024echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8025if test "${ac_cv_func_shl_load+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028 cat >conftest.$ac_ext <<_ACEOF
8029/* confdefs.h. */
8030_ACEOF
8031cat confdefs.h >>conftest.$ac_ext
8032cat >>conftest.$ac_ext <<_ACEOF
8033/* end confdefs.h. */
8034/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8036#define shl_load innocuous_shl_load
8037
8038/* System header to define __stub macros and hopefully few prototypes,
8039 which can conflict with char shl_load (); below.
8040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8041 <limits.h> exists even on freestanding compilers. */
8042
8043#ifdef __STDC__
8044# include <limits.h>
8045#else
8046# include <assert.h>
8047#endif
8048
8049#undef shl_load
8050
8051/* Override any gcc2 internal prototype to avoid an error. */
8052#ifdef __cplusplus
8053extern "C"
8054{
8055#endif
8056/* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8058char shl_load ();
8059/* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062#if defined (__stub_shl_load) || defined (__stub___shl_load)
8063choke me
8064#else
8065char (*f) () = shl_load;
8066#endif
8067#ifdef __cplusplus
8068}
8069#endif
8070
8071int
8072main ()
8073{
8074return f != shl_load;
8075 ;
8076 return 0;
8077}
8078_ACEOF
8079rm -f conftest.$ac_objext conftest$ac_exeext
8080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081 (eval $ac_link) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest$ac_exeext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_cv_func_shl_load=yes
8102else
8103 echo "$as_me: failed program was:" >&5
8104sed 's/^/| /' conftest.$ac_ext >&5
8105
8106ac_cv_func_shl_load=no
8107fi
8108rm -f conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8110fi
8111echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8112echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8113if test $ac_cv_func_shl_load = yes; then
8114
8115cat >>confdefs.h <<\_ACEOF
8116#define HAVE_SHL_LOAD 1
8117_ACEOF
8118
8119else
8120 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8121echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8122if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124else
8125 ac_check_lib_save_LIBS=$LIBS
8126LIBS="-ldld $LIBS"
8127cat >conftest.$ac_ext <<_ACEOF
8128/* confdefs.h. */
8129_ACEOF
8130cat confdefs.h >>conftest.$ac_ext
8131cat >>conftest.$ac_ext <<_ACEOF
8132/* end confdefs.h. */
8133
8134/* Override any gcc2 internal prototype to avoid an error. */
8135#ifdef __cplusplus
8136extern "C"
8137#endif
8138/* We use char because int might match the return type of a gcc2
8139 builtin and then its argument prototype would still apply. */
8140char shl_load ();
8141int
8142main ()
8143{
8144shl_load ();
8145 ;
8146 return 0;
8147}
8148_ACEOF
8149rm -f conftest.$ac_objext conftest$ac_exeext
8150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8151 (eval $ac_link) 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try='test -z "$ac_c_werror_flag"
8159 || test ! -s conftest.err'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; } &&
8165 { ac_try='test -s conftest$ac_exeext'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8171 ac_cv_lib_dld_shl_load=yes
8172else
8173 echo "$as_me: failed program was:" >&5
8174sed 's/^/| /' conftest.$ac_ext >&5
8175
8176ac_cv_lib_dld_shl_load=no
8177fi
8178rm -f conftest.err conftest.$ac_objext \
8179 conftest$ac_exeext conftest.$ac_ext
8180LIBS=$ac_check_lib_save_LIBS
8181fi
8182echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8183echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8184if test $ac_cv_lib_dld_shl_load = yes; then
8185
8186cat >>confdefs.h <<\_ACEOF
8187#define HAVE_SHL_LOAD 1
8188_ACEOF
8189
8190 LIBADD_DL="$LIBADD_DL -ldld"
8191else
8192 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8193echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8194if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197 ac_check_lib_save_LIBS=$LIBS
8198LIBS="-ldl $LIBS"
8199cat >conftest.$ac_ext <<_ACEOF
8200/* confdefs.h. */
8201_ACEOF
8202cat confdefs.h >>conftest.$ac_ext
8203cat >>conftest.$ac_ext <<_ACEOF
8204/* end confdefs.h. */
8205
8206/* Override any gcc2 internal prototype to avoid an error. */
8207#ifdef __cplusplus
8208extern "C"
8209#endif
8210/* We use char because int might match the return type of a gcc2
8211 builtin and then its argument prototype would still apply. */
8212char dlopen ();
8213int
8214main ()
8215{
8216dlopen ();
8217 ;
8218 return 0;
8219}
8220_ACEOF
8221rm -f conftest.$ac_objext conftest$ac_exeext
8222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_lib_dl_dlopen=yes
8244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248ac_cv_lib_dl_dlopen=no
8249fi
8250rm -f conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252LIBS=$ac_check_lib_save_LIBS
8253fi
8254echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8255echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8256if test $ac_cv_lib_dl_dlopen = yes; then
8257
8258cat >>confdefs.h <<\_ACEOF
8259#define HAVE_LIBDL 1
8260_ACEOF
8261
8262 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8263else
8264 cat >conftest.$ac_ext <<_ACEOF
8265/* confdefs.h. */
8266_ACEOF
8267cat confdefs.h >>conftest.$ac_ext
8268cat >>conftest.$ac_ext <<_ACEOF
8269/* end confdefs.h. */
8270#if HAVE_DLFCN_H
8271# include <dlfcn.h>
8272#endif
8273
8274int
8275main ()
8276{
8277dlopen(0, 0);
8278 ;
8279 return 0;
8280}
8281_ACEOF
8282rm -f conftest.$ac_objext conftest$ac_exeext
8283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304
8305cat >>confdefs.h <<\_ACEOF
8306#define HAVE_LIBDL 1
8307_ACEOF
8308 libltdl_cv_func_dlopen="yes"
8309else
8310 echo "$as_me: failed program was:" >&5
8311sed 's/^/| /' conftest.$ac_ext >&5
8312
8313echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8314echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8315if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318 ac_check_lib_save_LIBS=$LIBS
8319LIBS="-lsvld $LIBS"
8320cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h. */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h. */
8326
8327/* Override any gcc2 internal prototype to avoid an error. */
8328#ifdef __cplusplus
8329extern "C"
8330#endif
8331/* We use char because int might match the return type of a gcc2
8332 builtin and then its argument prototype would still apply. */
8333char dlopen ();
8334int
8335main ()
8336{
8337dlopen ();
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext conftest$ac_exeext
8343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -z "$ac_c_werror_flag"
8352 || test ! -s conftest.err'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_lib_svld_dlopen=yes
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369ac_cv_lib_svld_dlopen=no
8370fi
8371rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373LIBS=$ac_check_lib_save_LIBS
8374fi
8375echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8376echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8377if test $ac_cv_lib_svld_dlopen = yes; then
8378
8379cat >>confdefs.h <<\_ACEOF
8380#define HAVE_LIBDL 1
8381_ACEOF
8382
8383 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8384else
8385 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8386echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8387if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389else
8390 ac_check_lib_save_LIBS=$LIBS
8391LIBS="-ldld $LIBS"
8392cat >conftest.$ac_ext <<_ACEOF
8393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
8398
8399/* Override any gcc2 internal prototype to avoid an error. */
8400#ifdef __cplusplus
8401extern "C"
8402#endif
8403/* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8405char dld_link ();
8406int
8407main ()
8408{
8409dld_link ();
8410 ;
8411 return 0;
8412}
8413_ACEOF
8414rm -f conftest.$ac_objext conftest$ac_exeext
8415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_lib_dld_dld_link=yes
8437else
8438 echo "$as_me: failed program was:" >&5
8439sed 's/^/| /' conftest.$ac_ext >&5
8440
8441ac_cv_lib_dld_dld_link=no
8442fi
8443rm -f conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445LIBS=$ac_check_lib_save_LIBS
8446fi
8447echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8448echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8449if test $ac_cv_lib_dld_dld_link = yes; then
8450
8451cat >>confdefs.h <<\_ACEOF
8452#define HAVE_DLD 1
8453_ACEOF
8454
8455 LIBADD_DL="$LIBADD_DL -ldld"
8456else
8457 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8458echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8459if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8461else
8462 cat >conftest.$ac_ext <<_ACEOF
8463/* confdefs.h. */
8464_ACEOF
8465cat confdefs.h >>conftest.$ac_ext
8466cat >>conftest.$ac_ext <<_ACEOF
8467/* end confdefs.h. */
8468/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8470#define _dyld_func_lookup innocuous__dyld_func_lookup
8471
8472/* System header to define __stub macros and hopefully few prototypes,
8473 which can conflict with char _dyld_func_lookup (); below.
8474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8475 <limits.h> exists even on freestanding compilers. */
8476
8477#ifdef __STDC__
8478# include <limits.h>
8479#else
8480# include <assert.h>
8481#endif
8482
8483#undef _dyld_func_lookup
8484
8485/* Override any gcc2 internal prototype to avoid an error. */
8486#ifdef __cplusplus
8487extern "C"
8488{
8489#endif
8490/* We use char because int might match the return type of a gcc2
8491 builtin and then its argument prototype would still apply. */
8492char _dyld_func_lookup ();
8493/* The GNU C library defines this for functions which it implements
8494 to always fail with ENOSYS. Some functions are actually named
8495 something starting with __ and the normal name is an alias. */
8496#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8497choke me
8498#else
8499char (*f) () = _dyld_func_lookup;
8500#endif
8501#ifdef __cplusplus
8502}
8503#endif
8504
8505int
8506main ()
8507{
8508return f != _dyld_func_lookup;
8509 ;
8510 return 0;
8511}
8512_ACEOF
8513rm -f conftest.$ac_objext conftest$ac_exeext
8514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag"
8523 || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 (eval $ac_try) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_func__dyld_func_lookup=yes
8536else
8537 echo "$as_me: failed program was:" >&5
8538sed 's/^/| /' conftest.$ac_ext >&5
8539
8540ac_cv_func__dyld_func_lookup=no
8541fi
8542rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544fi
8545echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8546echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8547if test $ac_cv_func__dyld_func_lookup = yes; then
8548
8549cat >>confdefs.h <<\_ACEOF
8550#define HAVE_DYLD 1
8551_ACEOF
8552
8553fi
8554
8555
8556fi
8557
8558
8559fi
8560
8561
8562fi
8563rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565
8566fi
8567
8568
8569fi
8570
8571
8572fi
8573
8574
8575if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8576then
8577 lt_save_LIBS="$LIBS"
8578 LIBS="$LIBS $LIBADD_DL"
8579
8580for ac_func in dlerror
8581do
8582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8583echo "$as_me:$LINENO: checking for $ac_func" >&5
8584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8585if eval "test \"\${$as_ac_var+set}\" = set"; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587else
8588 cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h. */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h. */
8594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8596#define $ac_func innocuous_$ac_func
8597
8598/* System header to define __stub macros and hopefully few prototypes,
8599 which can conflict with char $ac_func (); below.
8600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601 <limits.h> exists even on freestanding compilers. */
8602
8603#ifdef __STDC__
8604# include <limits.h>
8605#else
8606# include <assert.h>
8607#endif
8608
8609#undef $ac_func
8610
8611/* Override any gcc2 internal prototype to avoid an error. */
8612#ifdef __cplusplus
8613extern "C"
8614{
8615#endif
8616/* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8618char $ac_func ();
8619/* The GNU C library defines this for functions which it implements
8620 to always fail with ENOSYS. Some functions are actually named
8621 something starting with __ and the normal name is an alias. */
8622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8623choke me
8624#else
8625char (*f) () = $ac_func;
8626#endif
8627#ifdef __cplusplus
8628}
8629#endif
8630
8631int
8632main ()
8633{
8634return f != $ac_func;
8635 ;
8636 return 0;
8637}
8638_ACEOF
8639rm -f conftest.$ac_objext conftest$ac_exeext
8640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag"
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try='test -s conftest$ac_exeext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 eval "$as_ac_var=yes"
8662else
8663 echo "$as_me: failed program was:" >&5
8664sed 's/^/| /' conftest.$ac_ext >&5
8665
8666eval "$as_ac_var=no"
8667fi
8668rm -f conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8670fi
8671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8673if test `eval echo '${'$as_ac_var'}'` = yes; then
8674 cat >>confdefs.h <<_ACEOF
8675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8676_ACEOF
8677
8678fi
8679done
8680
8681 LIBS="$lt_save_LIBS"
8682fi
8683ac_ext=c
8684ac_cpp='$CPP $CPPFLAGS'
8685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688
8689
8690
8691echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8692echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8693if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695else
8696 ac_cv_sys_symbol_underscore=no
8697 cat > conftest.$ac_ext <<EOF
8698void nm_test_func(){}
8699int main(){nm_test_func;return 0;}
8700EOF
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; then
8706 # Now try to grab the symbols.
8707 ac_nlist=conftest.nm
8708 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8709 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } && test -s "$ac_nlist"; then
8713 # See whether the symbols have a leading underscore.
8714 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8715 ac_cv_sys_symbol_underscore=yes
8716 else
8717 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8718 :
8719 else
8720 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8721 fi
8722 fi
8723 else
8724 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8725 fi
8726 else
8727 echo "configure: failed program was:" >&5
8728 cat conftest.c >&5
8729 fi
8730 rm -rf conftest*
8731
8732fi
8733echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8734echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8735
8736
8737if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8738 if test x"$libltdl_cv_func_dlopen" = xyes ||
8739 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8740 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8741echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8742if test "${libltdl_cv_need_uscore+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else
8745 libltdl_cv_need_uscore=unknown
8746 save_LIBS="$LIBS"
8747 LIBS="$LIBS $LIBADD_DL"
8748 if test "$cross_compiling" = yes; then :
8749 libltdl_cv_need_uscore=cross
8750else
8751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8752 lt_status=$lt_dlunknown
8753 cat > conftest.$ac_ext <<EOF
Reid Spencer1bc68642006-07-27 23:00:30 +00008754#line 8754 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008755#include "confdefs.h"
8756
8757#if HAVE_DLFCN_H
8758#include <dlfcn.h>
8759#endif
8760
8761#include <stdio.h>
8762
8763#ifdef RTLD_GLOBAL
8764# define LT_DLGLOBAL RTLD_GLOBAL
8765#else
8766# ifdef DL_GLOBAL
8767# define LT_DLGLOBAL DL_GLOBAL
8768# else
8769# define LT_DLGLOBAL 0
8770# endif
8771#endif
8772
8773/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8774 find out it does not work in some platform. */
8775#ifndef LT_DLLAZY_OR_NOW
8776# ifdef RTLD_LAZY
8777# define LT_DLLAZY_OR_NOW RTLD_LAZY
8778# else
8779# ifdef DL_LAZY
8780# define LT_DLLAZY_OR_NOW DL_LAZY
8781# else
8782# ifdef RTLD_NOW
8783# define LT_DLLAZY_OR_NOW RTLD_NOW
8784# else
8785# ifdef DL_NOW
8786# define LT_DLLAZY_OR_NOW DL_NOW
8787# else
8788# define LT_DLLAZY_OR_NOW 0
8789# endif
8790# endif
8791# endif
8792# endif
8793#endif
8794
8795#ifdef __cplusplus
8796extern "C" void exit (int);
8797#endif
8798
8799void fnord() { int i=42;}
8800int main ()
8801{
8802 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8803 int status = $lt_dlunknown;
8804
8805 if (self)
8806 {
8807 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8808 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8809 /* dlclose (self); */
8810 }
8811
8812 exit (status);
8813}
8814EOF
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8820 (./conftest; exit; ) 2>/dev/null
8821 lt_status=$?
8822 case x$lt_status in
8823 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8824 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8825 x$lt_unknown|x*) ;;
8826 esac
8827 else :
8828 # compilation failed
8829
8830 fi
8831fi
8832rm -fr conftest*
8833
8834 LIBS="$save_LIBS"
8835
8836fi
8837echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8838echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8839 fi
8840fi
8841
8842if test x"$libltdl_cv_need_uscore" = xyes; then
8843
8844cat >>confdefs.h <<\_ACEOF
8845#define NEED_USCORE 1
8846_ACEOF
8847
8848fi
8849
8850
8851echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8852echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8853if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8855else
8856 # PORTME does your system automatically load deplibs for dlopen?
8857 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8858 # For now, we just catch OSes we know something about -- in the
8859 # future, we'll try test this programmatically.
8860 libltdl_cv_sys_dlopen_deplibs=unknown
8861 case "$host_os" in
8862 aix3*|aix4.1.*|aix4.2.*)
8863 # Unknown whether this is true for these versions of AIX, but
8864 # we want this `case' here to explicitly catch those versions.
8865 libltdl_cv_sys_dlopen_deplibs=unknown
8866 ;;
8867 aix[45]*)
8868 libltdl_cv_sys_dlopen_deplibs=yes
8869 ;;
8870 darwin*)
8871 # Assuming the user has installed a libdl from somewhere, this is true
8872 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8873 libltdl_cv_sys_dlopen_deplibs=yes
8874 ;;
8875 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8876 # GNU and its variants, using gnu ld.so (Glibc)
8877 libltdl_cv_sys_dlopen_deplibs=yes
8878 ;;
8879 hpux10*|hpux11*)
8880 libltdl_cv_sys_dlopen_deplibs=yes
8881 ;;
8882 irix[12345]*|irix6.[01]*)
8883 # Catch all versions of IRIX before 6.2, and indicate that we don't
8884 # know how it worked for any of those versions.
8885 libltdl_cv_sys_dlopen_deplibs=unknown
8886 ;;
8887 irix*)
8888 # The case above catches anything before 6.2, and it's known that
8889 # at 6.2 and later dlopen does load deplibs.
8890 libltdl_cv_sys_dlopen_deplibs=yes
8891 ;;
8892 netbsd*)
8893 libltdl_cv_sys_dlopen_deplibs=yes
8894 ;;
8895 openbsd*)
8896 libltdl_cv_sys_dlopen_deplibs=yes
8897 ;;
8898 osf[1234]*)
8899 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8900 # it did *not* use an RPATH in a shared library to find objects the
8901 # library depends on, so we explictly say `no'.
8902 libltdl_cv_sys_dlopen_deplibs=no
8903 ;;
8904 osf5.0|osf5.0a|osf5.1)
8905 # dlopen *does* load deplibs and with the right loader patch applied
8906 # it even uses RPATH in a shared library to search for shared objects
8907 # that the library depends on, but there's no easy way to know if that
8908 # patch is installed. Since this is the case, all we can really
8909 # say is unknown -- it depends on the patch being installed. If
8910 # it is, this changes to `yes'. Without it, it would be `no'.
8911 libltdl_cv_sys_dlopen_deplibs=unknown
8912 ;;
8913 osf*)
8914 # the two cases above should catch all versions of osf <= 5.1. Read
8915 # the comments above for what we know about them.
8916 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8917 # is used to find them so we can finally say `yes'.
8918 libltdl_cv_sys_dlopen_deplibs=yes
8919 ;;
8920 solaris*)
8921 libltdl_cv_sys_dlopen_deplibs=yes
8922 ;;
8923 esac
8924
8925fi
8926echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8927echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8928if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8929
8930cat >>confdefs.h <<\_ACEOF
8931#define LTDL_DLOPEN_DEPLIBS 1
8932_ACEOF
8933
8934fi
8935
8936
8937for ac_header in argz.h
8938do
8939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940if eval "test \"\${$as_ac_Header+set}\" = set"; then
8941 echo "$as_me:$LINENO: checking for $ac_header" >&5
8942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945fi
8946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8948else
8949 # Is the header compilable?
8950echo "$as_me:$LINENO: checking $ac_header usability" >&5
8951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8952cat >conftest.$ac_ext <<_ACEOF
8953/* confdefs.h. */
8954_ACEOF
8955cat confdefs.h >>conftest.$ac_ext
8956cat >>conftest.$ac_ext <<_ACEOF
8957/* end confdefs.h. */
8958$ac_includes_default
8959#include <$ac_header>
8960_ACEOF
8961rm -f conftest.$ac_objext
8962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8963 (eval $ac_compile) 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try='test -z "$ac_c_werror_flag"
8971 || test ! -s conftest.err'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 ac_header_compiler=yes
8984else
8985 echo "$as_me: failed program was:" >&5
8986sed 's/^/| /' conftest.$ac_ext >&5
8987
8988ac_header_compiler=no
8989fi
8990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8992echo "${ECHO_T}$ac_header_compiler" >&6
8993
8994# Is the header present?
8995echo "$as_me:$LINENO: checking $ac_header presence" >&5
8996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8997cat >conftest.$ac_ext <<_ACEOF
8998/* confdefs.h. */
8999_ACEOF
9000cat confdefs.h >>conftest.$ac_ext
9001cat >>conftest.$ac_ext <<_ACEOF
9002/* end confdefs.h. */
9003#include <$ac_header>
9004_ACEOF
9005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } >/dev/null; then
9013 if test -s conftest.err; then
9014 ac_cpp_err=$ac_c_preproc_warn_flag
9015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9016 else
9017 ac_cpp_err=
9018 fi
9019else
9020 ac_cpp_err=yes
9021fi
9022if test -z "$ac_cpp_err"; then
9023 ac_header_preproc=yes
9024else
9025 echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028 ac_header_preproc=no
9029fi
9030rm -f conftest.err conftest.$ac_ext
9031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9032echo "${ECHO_T}$ac_header_preproc" >&6
9033
9034# So? What about this header?
9035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9036 yes:no: )
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9041 ac_header_preproc=yes
9042 ;;
9043 no:yes:* )
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9056 (
9057 cat <<\_ASBOX
9058## ----------------------------------- ##
9059## Report this to llvmbugs@cs.uiuc.edu ##
9060## ----------------------------------- ##
9061_ASBOX
9062 ) |
9063 sed "s/^/$as_me: WARNING: /" >&2
9064 ;;
9065esac
9066echo "$as_me:$LINENO: checking for $ac_header" >&5
9067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9068if eval "test \"\${$as_ac_Header+set}\" = set"; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070else
9071 eval "$as_ac_Header=\$ac_header_preproc"
9072fi
9073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9075
9076fi
9077if test `eval echo '${'$as_ac_Header'}'` = yes; then
9078 cat >>confdefs.h <<_ACEOF
9079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9080_ACEOF
9081
9082fi
9083
9084done
9085
9086
9087echo "$as_me:$LINENO: checking for error_t" >&5
9088echo $ECHO_N "checking for error_t... $ECHO_C" >&6
9089if test "${ac_cv_type_error_t+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091else
9092 cat >conftest.$ac_ext <<_ACEOF
9093/* confdefs.h. */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
9097/* end confdefs.h. */
9098#if HAVE_ARGZ_H
9099# include <argz.h>
9100#endif
9101
9102int
9103main ()
9104{
9105if ((error_t *) 0)
9106 return 0;
9107if (sizeof (error_t))
9108 return 0;
9109 ;
9110 return 0;
9111}
9112_ACEOF
9113rm -f conftest.$ac_objext
9114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9115 (eval $ac_compile) 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -z "$ac_c_werror_flag"
9123 || test ! -s conftest.err'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; } &&
9129 { ac_try='test -s conftest.$ac_objext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 (eval $ac_try) 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 ac_cv_type_error_t=yes
9136else
9137 echo "$as_me: failed program was:" >&5
9138sed 's/^/| /' conftest.$ac_ext >&5
9139
9140ac_cv_type_error_t=no
9141fi
9142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9143fi
9144echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9145echo "${ECHO_T}$ac_cv_type_error_t" >&6
9146if test $ac_cv_type_error_t = yes; then
9147
9148cat >>confdefs.h <<_ACEOF
9149#define HAVE_ERROR_T 1
9150_ACEOF
9151
9152
9153else
9154
9155cat >>confdefs.h <<\_ACEOF
9156#define error_t int
9157_ACEOF
9158
9159fi
9160
9161
9162
9163
9164
9165
9166
9167for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9168do
9169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9170echo "$as_me:$LINENO: checking for $ac_func" >&5
9171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9172if eval "test \"\${$as_ac_var+set}\" = set"; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else
9175 cat >conftest.$ac_ext <<_ACEOF
9176/* confdefs.h. */
9177_ACEOF
9178cat confdefs.h >>conftest.$ac_ext
9179cat >>conftest.$ac_ext <<_ACEOF
9180/* end confdefs.h. */
9181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9183#define $ac_func innocuous_$ac_func
9184
9185/* System header to define __stub macros and hopefully few prototypes,
9186 which can conflict with char $ac_func (); below.
9187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9188 <limits.h> exists even on freestanding compilers. */
9189
9190#ifdef __STDC__
9191# include <limits.h>
9192#else
9193# include <assert.h>
9194#endif
9195
9196#undef $ac_func
9197
9198/* Override any gcc2 internal prototype to avoid an error. */
9199#ifdef __cplusplus
9200extern "C"
9201{
9202#endif
9203/* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9205char $ac_func ();
9206/* The GNU C library defines this for functions which it implements
9207 to always fail with ENOSYS. Some functions are actually named
9208 something starting with __ and the normal name is an alias. */
9209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9210choke me
9211#else
9212char (*f) () = $ac_func;
9213#endif
9214#ifdef __cplusplus
9215}
9216#endif
9217
9218int
9219main ()
9220{
9221return f != $ac_func;
9222 ;
9223 return 0;
9224}
9225_ACEOF
9226rm -f conftest.$ac_objext conftest$ac_exeext
9227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228 (eval $ac_link) 2>conftest.er1
9229 ac_status=$?
9230 grep -v '^ *+' conftest.er1 >conftest.err
9231 rm -f conftest.er1
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -z "$ac_c_werror_flag"
9236 || test ! -s conftest.err'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 eval "$as_ac_var=yes"
9249else
9250 echo "$as_me: failed program was:" >&5
9251sed 's/^/| /' conftest.$ac_ext >&5
9252
9253eval "$as_ac_var=no"
9254fi
9255rm -f conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257fi
9258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9259echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9260if test `eval echo '${'$as_ac_var'}'` = yes; then
9261 cat >>confdefs.h <<_ACEOF
9262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9263_ACEOF
9264
9265fi
9266done
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9296 stdio.h unistd.h
9297do
9298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9299if eval "test \"\${$as_ac_Header+set}\" = set"; then
9300 echo "$as_me:$LINENO: checking for $ac_header" >&5
9301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9302if eval "test \"\${$as_ac_Header+set}\" = set"; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304fi
9305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9307else
9308 # Is the header compilable?
9309echo "$as_me:$LINENO: checking $ac_header usability" >&5
9310echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9311cat >conftest.$ac_ext <<_ACEOF
9312/* confdefs.h. */
9313_ACEOF
9314cat confdefs.h >>conftest.$ac_ext
9315cat >>conftest.$ac_ext <<_ACEOF
9316/* end confdefs.h. */
9317$ac_includes_default
9318#include <$ac_header>
9319_ACEOF
9320rm -f conftest.$ac_objext
9321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 ac_header_compiler=yes
9343else
9344 echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347ac_header_compiler=no
9348fi
9349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9351echo "${ECHO_T}$ac_header_compiler" >&6
9352
9353# Is the header present?
9354echo "$as_me:$LINENO: checking $ac_header presence" >&5
9355echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9356cat >conftest.$ac_ext <<_ACEOF
9357/* confdefs.h. */
9358_ACEOF
9359cat confdefs.h >>conftest.$ac_ext
9360cat >>conftest.$ac_ext <<_ACEOF
9361/* end confdefs.h. */
9362#include <$ac_header>
9363_ACEOF
9364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } >/dev/null; then
9372 if test -s conftest.err; then
9373 ac_cpp_err=$ac_c_preproc_warn_flag
9374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9375 else
9376 ac_cpp_err=
9377 fi
9378else
9379 ac_cpp_err=yes
9380fi
9381if test -z "$ac_cpp_err"; then
9382 ac_header_preproc=yes
9383else
9384 echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 ac_header_preproc=no
9388fi
9389rm -f conftest.err conftest.$ac_ext
9390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9391echo "${ECHO_T}$ac_header_preproc" >&6
9392
9393# So? What about this header?
9394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9395 yes:no: )
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9400 ac_header_preproc=yes
9401 ;;
9402 no:yes:* )
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9415 (
9416 cat <<\_ASBOX
9417## ----------------------------------- ##
9418## Report this to llvmbugs@cs.uiuc.edu ##
9419## ----------------------------------- ##
9420_ASBOX
9421 ) |
9422 sed "s/^/$as_me: WARNING: /" >&2
9423 ;;
9424esac
9425echo "$as_me:$LINENO: checking for $ac_header" >&5
9426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9427if eval "test \"\${$as_ac_Header+set}\" = set"; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429else
9430 eval "$as_ac_Header=\$ac_header_preproc"
9431fi
9432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9434
9435fi
9436if test `eval echo '${'$as_ac_Header'}'` = yes; then
9437 cat >>confdefs.h <<_ACEOF
9438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9439_ACEOF
9440
9441fi
9442
9443done
9444
9445
9446
9447
9448
9449for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9450do
9451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452if eval "test \"\${$as_ac_Header+set}\" = set"; then
9453 echo "$as_me:$LINENO: checking for $ac_header" >&5
9454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9455if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457fi
9458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9460else
9461 # Is the header compilable?
9462echo "$as_me:$LINENO: checking $ac_header usability" >&5
9463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9464cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h. */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h. */
9470$ac_includes_default
9471#include <$ac_header>
9472_ACEOF
9473rm -f conftest.$ac_objext
9474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
9482 { ac_try='test -z "$ac_c_werror_flag"
9483 || test ! -s conftest.err'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 ac_header_compiler=yes
9496else
9497 echo "$as_me: failed program was:" >&5
9498sed 's/^/| /' conftest.$ac_ext >&5
9499
9500ac_header_compiler=no
9501fi
9502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9504echo "${ECHO_T}$ac_header_compiler" >&6
9505
9506# Is the header present?
9507echo "$as_me:$LINENO: checking $ac_header presence" >&5
9508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9509cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515#include <$ac_header>
9516_ACEOF
9517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } >/dev/null; then
9525 if test -s conftest.err; then
9526 ac_cpp_err=$ac_c_preproc_warn_flag
9527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9528 else
9529 ac_cpp_err=
9530 fi
9531else
9532 ac_cpp_err=yes
9533fi
9534if test -z "$ac_cpp_err"; then
9535 ac_header_preproc=yes
9536else
9537 echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540 ac_header_preproc=no
9541fi
9542rm -f conftest.err conftest.$ac_ext
9543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9544echo "${ECHO_T}$ac_header_preproc" >&6
9545
9546# So? What about this header?
9547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9548 yes:no: )
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9553 ac_header_preproc=yes
9554 ;;
9555 no:yes:* )
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9563echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9568 (
9569 cat <<\_ASBOX
9570## ----------------------------------- ##
9571## Report this to llvmbugs@cs.uiuc.edu ##
9572## ----------------------------------- ##
9573_ASBOX
9574 ) |
9575 sed "s/^/$as_me: WARNING: /" >&2
9576 ;;
9577esac
9578echo "$as_me:$LINENO: checking for $ac_header" >&5
9579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9580if eval "test \"\${$as_ac_Header+set}\" = set"; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583 eval "$as_ac_Header=\$ac_header_preproc"
9584fi
9585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9587
9588fi
9589if test `eval echo '${'$as_ac_Header'}'` = yes; then
9590 cat >>confdefs.h <<_ACEOF
9591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9592_ACEOF
9593
9594fi
9595
9596done
9597
9598
9599
9600for ac_header in string.h strings.h
9601do
9602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9603if eval "test \"\${$as_ac_Header+set}\" = set"; then
9604 echo "$as_me:$LINENO: checking for $ac_header" >&5
9605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9606if eval "test \"\${$as_ac_Header+set}\" = set"; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608fi
9609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9611else
9612 # Is the header compilable?
9613echo "$as_me:$LINENO: checking $ac_header usability" >&5
9614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9615cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
9621$ac_includes_default
9622#include <$ac_header>
9623_ACEOF
9624rm -f conftest.$ac_objext
9625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_c_werror_flag"
9634 || test ! -s conftest.err'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9646 ac_header_compiler=yes
9647else
9648 echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
9651ac_header_compiler=no
9652fi
9653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9655echo "${ECHO_T}$ac_header_compiler" >&6
9656
9657# Is the header present?
9658echo "$as_me:$LINENO: checking $ac_header presence" >&5
9659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9660cat >conftest.$ac_ext <<_ACEOF
9661/* confdefs.h. */
9662_ACEOF
9663cat confdefs.h >>conftest.$ac_ext
9664cat >>conftest.$ac_ext <<_ACEOF
9665/* end confdefs.h. */
9666#include <$ac_header>
9667_ACEOF
9668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } >/dev/null; then
9676 if test -s conftest.err; then
9677 ac_cpp_err=$ac_c_preproc_warn_flag
9678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9679 else
9680 ac_cpp_err=
9681 fi
9682else
9683 ac_cpp_err=yes
9684fi
9685if test -z "$ac_cpp_err"; then
9686 ac_header_preproc=yes
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_header_preproc=no
9692fi
9693rm -f conftest.err conftest.$ac_ext
9694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695echo "${ECHO_T}$ac_header_preproc" >&6
9696
9697# So? What about this header?
9698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9699 yes:no: )
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9704 ac_header_preproc=yes
9705 ;;
9706 no:yes:* )
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9719 (
9720 cat <<\_ASBOX
9721## ----------------------------------- ##
9722## Report this to llvmbugs@cs.uiuc.edu ##
9723## ----------------------------------- ##
9724_ASBOX
9725 ) |
9726 sed "s/^/$as_me: WARNING: /" >&2
9727 ;;
9728esac
9729echo "$as_me:$LINENO: checking for $ac_header" >&5
9730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9731if eval "test \"\${$as_ac_Header+set}\" = set"; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734 eval "$as_ac_Header=\$ac_header_preproc"
9735fi
9736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9738
9739fi
9740if test `eval echo '${'$as_ac_Header'}'` = yes; then
9741 cat >>confdefs.h <<_ACEOF
9742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9743_ACEOF
9744 break
9745fi
9746
9747done
9748
9749
9750
9751
9752for ac_func in strchr index
9753do
9754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9755echo "$as_me:$LINENO: checking for $ac_func" >&5
9756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9757if eval "test \"\${$as_ac_var+set}\" = set"; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760 cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h. */
9766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9768#define $ac_func innocuous_$ac_func
9769
9770/* System header to define __stub macros and hopefully few prototypes,
9771 which can conflict with char $ac_func (); below.
9772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773 <limits.h> exists even on freestanding compilers. */
9774
9775#ifdef __STDC__
9776# include <limits.h>
9777#else
9778# include <assert.h>
9779#endif
9780
9781#undef $ac_func
9782
9783/* Override any gcc2 internal prototype to avoid an error. */
9784#ifdef __cplusplus
9785extern "C"
9786{
9787#endif
9788/* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9790char $ac_func ();
9791/* The GNU C library defines this for functions which it implements
9792 to always fail with ENOSYS. Some functions are actually named
9793 something starting with __ and the normal name is an alias. */
9794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9795choke me
9796#else
9797char (*f) () = $ac_func;
9798#endif
9799#ifdef __cplusplus
9800}
9801#endif
9802
9803int
9804main ()
9805{
9806return f != $ac_func;
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext conftest$ac_exeext
9812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813 (eval $ac_link) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag"
9821 || test ! -s conftest.err'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 (eval $ac_try) 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 eval "$as_ac_var=yes"
9834else
9835 echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838eval "$as_ac_var=no"
9839fi
9840rm -f conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842fi
9843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9845if test `eval echo '${'$as_ac_var'}'` = yes; then
9846 cat >>confdefs.h <<_ACEOF
9847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9848_ACEOF
9849 break
9850fi
9851done
9852
9853
9854
9855for ac_func in strrchr rindex
9856do
9857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9858echo "$as_me:$LINENO: checking for $ac_func" >&5
9859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9860if eval "test \"\${$as_ac_var+set}\" = set"; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 cat >conftest.$ac_ext <<_ACEOF
9864/* confdefs.h. */
9865_ACEOF
9866cat confdefs.h >>conftest.$ac_ext
9867cat >>conftest.$ac_ext <<_ACEOF
9868/* end confdefs.h. */
9869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9871#define $ac_func innocuous_$ac_func
9872
9873/* System header to define __stub macros and hopefully few prototypes,
9874 which can conflict with char $ac_func (); below.
9875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9876 <limits.h> exists even on freestanding compilers. */
9877
9878#ifdef __STDC__
9879# include <limits.h>
9880#else
9881# include <assert.h>
9882#endif
9883
9884#undef $ac_func
9885
9886/* Override any gcc2 internal prototype to avoid an error. */
9887#ifdef __cplusplus
9888extern "C"
9889{
9890#endif
9891/* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9893char $ac_func ();
9894/* The GNU C library defines this for functions which it implements
9895 to always fail with ENOSYS. Some functions are actually named
9896 something starting with __ and the normal name is an alias. */
9897#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898choke me
9899#else
9900char (*f) () = $ac_func;
9901#endif
9902#ifdef __cplusplus
9903}
9904#endif
9905
9906int
9907main ()
9908{
9909return f != $ac_func;
9910 ;
9911 return 0;
9912}
9913_ACEOF
9914rm -f conftest.$ac_objext conftest$ac_exeext
9915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916 (eval $ac_link) 2>conftest.er1
9917 ac_status=$?
9918 grep -v '^ *+' conftest.er1 >conftest.err
9919 rm -f conftest.er1
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -z "$ac_c_werror_flag"
9924 || test ! -s conftest.err'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 (eval $ac_try) 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 (eval $ac_try) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 eval "$as_ac_var=yes"
9937else
9938 echo "$as_me: failed program was:" >&5
9939sed 's/^/| /' conftest.$ac_ext >&5
9940
9941eval "$as_ac_var=no"
9942fi
9943rm -f conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9945fi
9946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9947echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9948if test `eval echo '${'$as_ac_var'}'` = yes; then
9949 cat >>confdefs.h <<_ACEOF
9950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9951_ACEOF
9952 break
9953fi
9954done
9955
9956
9957
9958for ac_func in memcpy bcopy
9959do
9960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9961echo "$as_me:$LINENO: checking for $ac_func" >&5
9962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9963if eval "test \"\${$as_ac_var+set}\" = set"; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966 cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h. */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h. */
9972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9974#define $ac_func innocuous_$ac_func
9975
9976/* System header to define __stub macros and hopefully few prototypes,
9977 which can conflict with char $ac_func (); below.
9978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979 <limits.h> exists even on freestanding compilers. */
9980
9981#ifdef __STDC__
9982# include <limits.h>
9983#else
9984# include <assert.h>
9985#endif
9986
9987#undef $ac_func
9988
9989/* Override any gcc2 internal prototype to avoid an error. */
9990#ifdef __cplusplus
9991extern "C"
9992{
9993#endif
9994/* We use char because int might match the return type of a gcc2
9995 builtin and then its argument prototype would still apply. */
9996char $ac_func ();
9997/* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10001choke me
10002#else
10003char (*f) () = $ac_func;
10004#endif
10005#ifdef __cplusplus
10006}
10007#endif
10008
10009int
10010main ()
10011{
10012return f != $ac_func;
10013 ;
10014 return 0;
10015}
10016_ACEOF
10017rm -f conftest.$ac_objext conftest$ac_exeext
10018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag"
10027 || test ! -s conftest.err'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10039 eval "$as_ac_var=yes"
10040else
10041 echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
10043
10044eval "$as_ac_var=no"
10045fi
10046rm -f conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10048fi
10049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10051if test `eval echo '${'$as_ac_var'}'` = yes; then
10052 cat >>confdefs.h <<_ACEOF
10053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054_ACEOF
10055 break
10056fi
10057done
10058
10059
10060
10061for ac_func in memmove strcmp
10062do
10063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10064echo "$as_me:$LINENO: checking for $ac_func" >&5
10065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10066if eval "test \"\${$as_ac_var+set}\" = set"; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h. */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h. */
10075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10077#define $ac_func innocuous_$ac_func
10078
10079/* System header to define __stub macros and hopefully few prototypes,
10080 which can conflict with char $ac_func (); below.
10081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082 <limits.h> exists even on freestanding compilers. */
10083
10084#ifdef __STDC__
10085# include <limits.h>
10086#else
10087# include <assert.h>
10088#endif
10089
10090#undef $ac_func
10091
10092/* Override any gcc2 internal prototype to avoid an error. */
10093#ifdef __cplusplus
10094extern "C"
10095{
10096#endif
10097/* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */
10099char $ac_func ();
10100/* The GNU C library defines this for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10104choke me
10105#else
10106char (*f) () = $ac_func;
10107#endif
10108#ifdef __cplusplus
10109}
10110#endif
10111
10112int
10113main ()
10114{
10115return f != $ac_func;
10116 ;
10117 return 0;
10118}
10119_ACEOF
10120rm -f conftest.$ac_objext conftest$ac_exeext
10121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 eval "$as_ac_var=yes"
10143else
10144 echo "$as_me: failed program was:" >&5
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
10147eval "$as_ac_var=no"
10148fi
10149rm -f conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151fi
10152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10154if test `eval echo '${'$as_ac_var'}'` = yes; then
10155 cat >>confdefs.h <<_ACEOF
10156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10157_ACEOF
10158
10159fi
10160done
10161
10162
10163
10164
10165for ac_func in closedir opendir readdir
10166do
10167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10168echo "$as_me:$LINENO: checking for $ac_func" >&5
10169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10170if eval "test \"\${$as_ac_var+set}\" = set"; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172else
10173 cat >conftest.$ac_ext <<_ACEOF
10174/* confdefs.h. */
10175_ACEOF
10176cat confdefs.h >>conftest.$ac_ext
10177cat >>conftest.$ac_ext <<_ACEOF
10178/* end confdefs.h. */
10179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10181#define $ac_func innocuous_$ac_func
10182
10183/* System header to define __stub macros and hopefully few prototypes,
10184 which can conflict with char $ac_func (); below.
10185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186 <limits.h> exists even on freestanding compilers. */
10187
10188#ifdef __STDC__
10189# include <limits.h>
10190#else
10191# include <assert.h>
10192#endif
10193
10194#undef $ac_func
10195
10196/* Override any gcc2 internal prototype to avoid an error. */
10197#ifdef __cplusplus
10198extern "C"
10199{
10200#endif
10201/* We use char because int might match the return type of a gcc2
10202 builtin and then its argument prototype would still apply. */
10203char $ac_func ();
10204/* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10208choke me
10209#else
10210char (*f) () = $ac_func;
10211#endif
10212#ifdef __cplusplus
10213}
10214#endif
10215
10216int
10217main ()
10218{
10219return f != $ac_func;
10220 ;
10221 return 0;
10222}
10223_ACEOF
10224rm -f conftest.$ac_objext conftest$ac_exeext
10225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226 (eval $ac_link) 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -z "$ac_c_werror_flag"
10234 || test ! -s conftest.err'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 eval "$as_ac_var=yes"
10247else
10248 echo "$as_me: failed program was:" >&5
10249sed 's/^/| /' conftest.$ac_ext >&5
10250
10251eval "$as_ac_var=no"
10252fi
10253rm -f conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255fi
10256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10258if test `eval echo '${'$as_ac_var'}'` = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10261_ACEOF
10262
10263fi
10264done
10265
10266
10267# Check whether --enable-shared or --disable-shared was given.
10268if test "${enable_shared+set}" = set; then
10269 enableval="$enable_shared"
10270 p=${PACKAGE-default}
10271 case $enableval in
10272 yes) enable_shared=yes ;;
10273 no) enable_shared=no ;;
10274 *)
10275 enable_shared=no
10276 # Look at the argument we got. We use all the common list separators.
10277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10278 for pkg in $enableval; do
10279 IFS="$lt_save_ifs"
10280 if test "X$pkg" = "X$p"; then
10281 enable_shared=yes
10282 fi
10283 done
10284 IFS="$lt_save_ifs"
10285 ;;
10286 esac
10287else
10288 enable_shared=yes
10289fi;
10290
10291# Check whether --enable-static or --disable-static was given.
10292if test "${enable_static+set}" = set; then
10293 enableval="$enable_static"
10294 p=${PACKAGE-default}
10295 case $enableval in
10296 yes) enable_static=yes ;;
10297 no) enable_static=no ;;
10298 *)
10299 enable_static=no
10300 # Look at the argument we got. We use all the common list separators.
10301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10302 for pkg in $enableval; do
10303 IFS="$lt_save_ifs"
10304 if test "X$pkg" = "X$p"; then
10305 enable_static=yes
10306 fi
10307 done
10308 IFS="$lt_save_ifs"
10309 ;;
10310 esac
10311else
10312 enable_static=yes
10313fi;
10314
10315# Check whether --enable-fast-install or --disable-fast-install was given.
10316if test "${enable_fast_install+set}" = set; then
10317 enableval="$enable_fast_install"
10318 p=${PACKAGE-default}
10319 case $enableval in
10320 yes) enable_fast_install=yes ;;
10321 no) enable_fast_install=no ;;
10322 *)
10323 enable_fast_install=no
10324 # Look at the argument we got. We use all the common list separators.
10325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10326 for pkg in $enableval; do
10327 IFS="$lt_save_ifs"
10328 if test "X$pkg" = "X$p"; then
10329 enable_fast_install=yes
10330 fi
10331 done
10332 IFS="$lt_save_ifs"
10333 ;;
10334 esac
10335else
10336 enable_fast_install=yes
10337fi;
10338
10339echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10340echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10341if test "${lt_cv_path_SED+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343else
10344 # Loop through the user's path and test for sed and gsed.
10345# Then use that list of sed's as ones to test for truncation.
10346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347for as_dir in $PATH
10348do
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
10351 for lt_ac_prog in sed gsed; do
10352 for ac_exec_ext in '' $ac_executable_extensions; do
10353 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10354 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10355 fi
10356 done
10357 done
10358done
10359lt_ac_max=0
10360lt_ac_count=0
10361# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10362# along with /bin/sed that truncates output.
10363for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10364 test ! -f $lt_ac_sed && break
10365 cat /dev/null > conftest.in
10366 lt_ac_count=0
10367 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10368 # Check for GNU sed and select it if it is found.
10369 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10370 lt_cv_path_SED=$lt_ac_sed
10371 break
10372 fi
10373 while true; do
10374 cat conftest.in conftest.in >conftest.tmp
10375 mv conftest.tmp conftest.in
10376 cp conftest.in conftest.nl
10377 echo >>conftest.nl
10378 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10379 cmp -s conftest.out conftest.nl || break
10380 # 10000 chars as input seems more than enough
10381 test $lt_ac_count -gt 10 && break
10382 lt_ac_count=`expr $lt_ac_count + 1`
10383 if test $lt_ac_count -gt $lt_ac_max; then
10384 lt_ac_max=$lt_ac_count
10385 lt_cv_path_SED=$lt_ac_sed
10386 fi
10387 done
10388done
10389
10390fi
10391
10392SED=$lt_cv_path_SED
10393echo "$as_me:$LINENO: result: $SED" >&5
10394echo "${ECHO_T}$SED" >&6
10395
10396
10397# Check whether --with-gnu-ld or --without-gnu-ld was given.
10398if test "${with_gnu_ld+set}" = set; then
10399 withval="$with_gnu_ld"
10400 test "$withval" = no || with_gnu_ld=yes
10401else
10402 with_gnu_ld=no
10403fi;
10404ac_prog=ld
10405if test "$GCC" = yes; then
10406 # Check if gcc -print-prog-name=ld gives a path.
10407 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10408echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10409 case $host in
10410 *-*-mingw*)
10411 # gcc leaves a trailing carriage return which upsets mingw
10412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10413 *)
10414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10415 esac
10416 case $ac_prog in
10417 # Accept absolute paths.
10418 [\\/]* | ?:[\\/]*)
10419 re_direlt='/[^/][^/]*/\.\./'
10420 # Canonicalize the pathname of ld
10421 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10422 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10423 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10424 done
10425 test -z "$LD" && LD="$ac_prog"
10426 ;;
10427 "")
10428 # If it fails, then pretend we aren't using GCC.
10429 ac_prog=ld
10430 ;;
10431 *)
10432 # If it is relative, then search for the first ld in PATH.
10433 with_gnu_ld=unknown
10434 ;;
10435 esac
10436elif test "$with_gnu_ld" = yes; then
10437 echo "$as_me:$LINENO: checking for GNU ld" >&5
10438echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10439else
10440 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10441echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10442fi
10443if test "${lt_cv_path_LD+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445else
10446 if test -z "$LD"; then
10447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10448 for ac_dir in $PATH; do
10449 IFS="$lt_save_ifs"
10450 test -z "$ac_dir" && ac_dir=.
10451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10452 lt_cv_path_LD="$ac_dir/$ac_prog"
10453 # Check to see if the program is GNU ld. I'd rather use --version,
10454 # but apparently some GNU ld's only accept -v.
10455 # Break only if it was the GNU/non-GNU ld that we prefer.
10456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10457 *GNU* | *'with BFD'*)
10458 test "$with_gnu_ld" != no && break
10459 ;;
10460 *)
10461 test "$with_gnu_ld" != yes && break
10462 ;;
10463 esac
10464 fi
10465 done
10466 IFS="$lt_save_ifs"
10467else
10468 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10469fi
10470fi
10471
10472LD="$lt_cv_path_LD"
10473if test -n "$LD"; then
10474 echo "$as_me:$LINENO: result: $LD" >&5
10475echo "${ECHO_T}$LD" >&6
10476else
10477 echo "$as_me:$LINENO: result: no" >&5
10478echo "${ECHO_T}no" >&6
10479fi
10480test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10481echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10482 { (exit 1); exit 1; }; }
10483echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10484echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10485if test "${lt_cv_prog_gnu_ld+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10489case `$LD -v 2>&1 </dev/null` in
10490*GNU* | *'with BFD'*)
10491 lt_cv_prog_gnu_ld=yes
10492 ;;
10493*)
10494 lt_cv_prog_gnu_ld=no
10495 ;;
10496esac
10497fi
10498echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10499echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10500with_gnu_ld=$lt_cv_prog_gnu_ld
10501
10502
10503echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10504echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10505if test "${lt_cv_ld_reload_flag+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
10508 lt_cv_ld_reload_flag='-r'
10509fi
10510echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10511echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10512reload_flag=$lt_cv_ld_reload_flag
10513case $reload_flag in
10514"" | " "*) ;;
10515*) reload_flag=" $reload_flag" ;;
10516esac
10517reload_cmds='$LD$reload_flag -o $output$reload_objs'
10518case $host_os in
10519 darwin*)
10520 if test "$GCC" = yes; then
Chris Lattnerb6f93412006-04-19 18:38:19 +000010521 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010522 else
10523 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10524 fi
10525 ;;
10526esac
10527
10528echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10529echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10530if test "${lt_cv_deplibs_check_method+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533 lt_cv_file_magic_cmd='$MAGIC_CMD'
10534lt_cv_file_magic_test_file=
10535lt_cv_deplibs_check_method='unknown'
10536# Need to set the preceding variable on all platforms that support
10537# interlibrary dependencies.
10538# 'none' -- dependencies not supported.
10539# `unknown' -- same as none, but documents that we really don't know.
10540# 'pass_all' -- all dependencies passed with no checks.
10541# 'test_compile' -- check by making test program.
10542# 'file_magic [[regex]]' -- check by looking for files in library path
10543# which responds to the $file_magic_cmd with a given extended regex.
10544# If you have `file' or equivalent on your system and you're not sure
10545# whether `pass_all' will *always* work, you probably want this one.
10546
10547case $host_os in
10548aix4* | aix5*)
10549 lt_cv_deplibs_check_method=pass_all
10550 ;;
10551
10552beos*)
10553 lt_cv_deplibs_check_method=pass_all
10554 ;;
10555
10556bsdi[45]*)
10557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10558 lt_cv_file_magic_cmd='/usr/bin/file -L'
10559 lt_cv_file_magic_test_file=/shlib/libc.so
10560 ;;
10561
10562cygwin*)
10563 # func_win32_libid is a shell function defined in ltmain.sh
10564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10565 lt_cv_file_magic_cmd='func_win32_libid'
10566 ;;
10567
10568mingw* | pw32*)
10569 # Base MSYS/MinGW do not provide the 'file' command needed by
10570 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10571 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10572 lt_cv_file_magic_cmd='$OBJDUMP -f'
10573 ;;
10574
10575darwin* | rhapsody*)
10576 lt_cv_deplibs_check_method=pass_all
10577 ;;
10578
10579freebsd* | kfreebsd*-gnu)
10580 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10581 case $host_cpu in
10582 i*86 )
10583 # Not sure whether the presence of OpenBSD here was a mistake.
10584 # Let's accept both of them until this is cleared up.
10585 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10586 lt_cv_file_magic_cmd=/usr/bin/file
10587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10588 ;;
10589 esac
10590 else
10591 lt_cv_deplibs_check_method=pass_all
10592 fi
10593 ;;
10594
10595gnu*)
10596 lt_cv_deplibs_check_method=pass_all
10597 ;;
10598
10599hpux10.20* | hpux11*)
10600 lt_cv_file_magic_cmd=/usr/bin/file
10601 case "$host_cpu" in
10602 ia64*)
10603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10604 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10605 ;;
10606 hppa*64*)
10607 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]'
10608 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10609 ;;
10610 *)
10611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10612 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10613 ;;
10614 esac
10615 ;;
10616
10617irix5* | irix6* | nonstopux*)
10618 case $LD in
10619 *-32|*"-32 ") libmagic=32-bit;;
10620 *-n32|*"-n32 ") libmagic=N32;;
10621 *-64|*"-64 ") libmagic=64-bit;;
10622 *) libmagic=never-match;;
10623 esac
10624 lt_cv_deplibs_check_method=pass_all
10625 ;;
10626
10627# This must be Linux ELF.
10628linux*)
10629 lt_cv_deplibs_check_method=pass_all
10630 ;;
10631
10632netbsd*)
10633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10635 else
10636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10637 fi
10638 ;;
10639
10640newos6*)
10641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10642 lt_cv_file_magic_cmd=/usr/bin/file
10643 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10644 ;;
10645
10646nto-qnx*)
10647 lt_cv_deplibs_check_method=unknown
10648 ;;
10649
10650openbsd*)
10651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10653 else
10654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10655 fi
10656 ;;
10657
10658osf3* | osf4* | osf5*)
10659 lt_cv_deplibs_check_method=pass_all
10660 ;;
10661
10662sco3.2v5*)
10663 lt_cv_deplibs_check_method=pass_all
10664 ;;
10665
10666solaris*)
10667 lt_cv_deplibs_check_method=pass_all
10668 ;;
10669
10670sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10671 case $host_vendor in
10672 motorola)
10673 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]'
10674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10675 ;;
10676 ncr)
10677 lt_cv_deplibs_check_method=pass_all
10678 ;;
10679 sequent)
10680 lt_cv_file_magic_cmd='/bin/file'
10681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10682 ;;
10683 sni)
10684 lt_cv_file_magic_cmd='/bin/file'
10685 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10686 lt_cv_file_magic_test_file=/lib/libc.so
10687 ;;
10688 siemens)
10689 lt_cv_deplibs_check_method=pass_all
10690 ;;
10691 esac
10692 ;;
10693
10694sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10695 lt_cv_deplibs_check_method=pass_all
10696 ;;
10697esac
10698
10699fi
10700echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10701echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10702file_magic_cmd=$lt_cv_file_magic_cmd
10703deplibs_check_method=$lt_cv_deplibs_check_method
10704test -z "$deplibs_check_method" && deplibs_check_method=unknown
10705
10706
10707
10708# If no C compiler was specified, use CC.
10709LTCC=${LTCC-"$CC"}
10710
10711# Allow CC to be a program name with arguments.
10712compiler=$CC
10713
10714# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10715if test "${enable_libtool_lock+set}" = set; then
10716 enableval="$enable_libtool_lock"
10717
10718fi;
10719test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10720
10721# Some flags need to be propagated to the compiler or linker for good
10722# libtool support.
10723case $host in
10724ia64-*-hpux*)
10725 # Find out which ABI we are using.
10726 echo 'int i;' > conftest.$ac_ext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; then
10732 case `/usr/bin/file conftest.$ac_objext` in
10733 *ELF-32*)
10734 HPUX_IA64_MODE="32"
10735 ;;
10736 *ELF-64*)
10737 HPUX_IA64_MODE="64"
10738 ;;
10739 esac
10740 fi
10741 rm -rf conftest*
10742 ;;
10743*-*-irix6*)
10744 # Find out which ABI we are using.
Reid Spencer1bc68642006-07-27 23:00:30 +000010745 echo '#line 10745 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; then
10751 if test "$lt_cv_prog_gnu_ld" = yes; then
10752 case `/usr/bin/file conftest.$ac_objext` in
10753 *32-bit*)
10754 LD="${LD-ld} -melf32bsmip"
10755 ;;
10756 *N32*)
10757 LD="${LD-ld} -melf32bmipn32"
10758 ;;
10759 *64-bit*)
10760 LD="${LD-ld} -melf64bmip"
10761 ;;
10762 esac
10763 else
10764 case `/usr/bin/file conftest.$ac_objext` in
10765 *32-bit*)
10766 LD="${LD-ld} -32"
10767 ;;
10768 *N32*)
10769 LD="${LD-ld} -n32"
10770 ;;
10771 *64-bit*)
10772 LD="${LD-ld} -64"
10773 ;;
10774 esac
10775 fi
10776 fi
10777 rm -rf conftest*
10778 ;;
10779
10780x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10781 # Find out which ABI we are using.
10782 echo 'int i;' > conftest.$ac_ext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10784 (eval $ac_compile) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; then
10788 case "`/usr/bin/file conftest.o`" in
10789 *32-bit*)
10790 case $host in
10791 x86_64-*linux*)
10792 LD="${LD-ld} -m elf_i386"
10793 ;;
10794 ppc64-*linux*|powerpc64-*linux*)
10795 LD="${LD-ld} -m elf32ppclinux"
10796 ;;
10797 s390x-*linux*)
10798 LD="${LD-ld} -m elf_s390"
10799 ;;
10800 sparc64-*linux*)
10801 LD="${LD-ld} -m elf32_sparc"
10802 ;;
10803 esac
10804 ;;
10805 *64-bit*)
10806 case $host in
10807 x86_64-*linux*)
10808 LD="${LD-ld} -m elf_x86_64"
10809 ;;
10810 ppc*-*linux*|powerpc*-*linux*)
10811 LD="${LD-ld} -m elf64ppc"
10812 ;;
10813 s390*-*linux*)
10814 LD="${LD-ld} -m elf64_s390"
10815 ;;
10816 sparc*-*linux*)
10817 LD="${LD-ld} -m elf64_sparc"
10818 ;;
10819 esac
10820 ;;
10821 esac
10822 fi
10823 rm -rf conftest*
10824 ;;
10825
10826*-*-sco3.2v5*)
10827 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10828 SAVE_CFLAGS="$CFLAGS"
10829 CFLAGS="$CFLAGS -belf"
10830 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10831echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10832if test "${lt_cv_cc_needs_belf+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10834else
10835 ac_ext=c
10836ac_cpp='$CPP $CPPFLAGS'
10837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10839ac_compiler_gnu=$ac_cv_c_compiler_gnu
10840
10841 cat >conftest.$ac_ext <<_ACEOF
10842/* confdefs.h. */
10843_ACEOF
10844cat confdefs.h >>conftest.$ac_ext
10845cat >>conftest.$ac_ext <<_ACEOF
10846/* end confdefs.h. */
10847
10848_ACEOF
10849rm -f conftest.$ac_objext conftest$ac_exeext
10850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851 (eval $ac_link) 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 lt_cv_cc_needs_belf=yes
10872else
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876lt_cv_cc_needs_belf=no
10877fi
10878rm -f conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 ac_ext=c
10881ac_cpp='$CPP $CPPFLAGS'
10882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10884ac_compiler_gnu=$ac_cv_c_compiler_gnu
10885
10886fi
10887echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10888echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10891 CFLAGS="$SAVE_CFLAGS"
10892 fi
10893 ;;
10894
10895esac
10896
10897need_locks="$enable_libtool_lock"
10898
10899
Reid Spencer2706f8c2004-09-19 23:53:36 +000010900
10901
10902if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10903 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10904 (test "X$CXX" != "Xg++"))) ; then
10905 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010906ac_cpp='$CXXCPP $CPPFLAGS'
10907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10910echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10911echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10912if test -z "$CXXCPP"; then
10913 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
John Criswell47fdd832003-07-14 16:52:07 +000010916 # Double quotes because CXXCPP needs to be expanded
10917 for CXXCPP in "$CXX -E" "/lib/cpp"
10918 do
10919 ac_preproc_ok=false
10920for ac_cxx_preproc_warn_flag in '' yes
10921do
10922 # Use a header file that comes with gcc, so configuring glibc
10923 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10925 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010926 # On the NeXT, cc -E runs the code through the compiler's parser,
10927 # not just through cpp. "Syntax error" is here to catch this case.
10928 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010929/* confdefs.h. */
10930_ACEOF
10931cat confdefs.h >>conftest.$ac_ext
10932cat >>conftest.$ac_ext <<_ACEOF
10933/* end confdefs.h. */
10934#ifdef __STDC__
10935# include <limits.h>
10936#else
10937# include <assert.h>
10938#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010939 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010940_ACEOF
10941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10943 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010944 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } >/dev/null; then
10949 if test -s conftest.err; then
10950 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010951 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010952 else
John Criswell47fdd832003-07-14 16:52:07 +000010953 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010954 fi
John Criswell47fdd832003-07-14 16:52:07 +000010955else
10956 ac_cpp_err=yes
10957fi
10958if test -z "$ac_cpp_err"; then
10959 :
10960else
10961 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010962sed 's/^/| /' conftest.$ac_ext >&5
10963
John Criswell47fdd832003-07-14 16:52:07 +000010964 # Broken: fails on valid input.
10965continue
10966fi
10967rm -f conftest.err conftest.$ac_ext
10968
10969 # OK, works on sane cases. Now check whether non-existent headers
10970 # can be detected and how.
10971 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010977#include <ac_nonexistent.h>
10978_ACEOF
10979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10981 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010982 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } >/dev/null; then
10987 if test -s conftest.err; then
10988 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010989 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010990 else
10991 ac_cpp_err=
10992 fi
10993else
10994 ac_cpp_err=yes
10995fi
10996if test -z "$ac_cpp_err"; then
10997 # Broken: success on invalid input.
10998continue
10999else
11000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011001sed 's/^/| /' conftest.$ac_ext >&5
11002
John Criswell47fdd832003-07-14 16:52:07 +000011003 # Passes both tests.
11004ac_preproc_ok=:
11005break
11006fi
11007rm -f conftest.err conftest.$ac_ext
11008
11009done
11010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11011rm -f conftest.err conftest.$ac_ext
11012if $ac_preproc_ok; then
11013 break
John Criswell7a73b802003-06-30 21:59:07 +000011014fi
11015
John Criswell47fdd832003-07-14 16:52:07 +000011016 done
11017 ac_cv_prog_CXXCPP=$CXXCPP
11018
11019fi
11020 CXXCPP=$ac_cv_prog_CXXCPP
11021else
11022 ac_cv_prog_CXXCPP=$CXXCPP
11023fi
11024echo "$as_me:$LINENO: result: $CXXCPP" >&5
11025echo "${ECHO_T}$CXXCPP" >&6
11026ac_preproc_ok=false
11027for ac_cxx_preproc_warn_flag in '' yes
11028do
11029 # Use a header file that comes with gcc, so configuring glibc
11030 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000011031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11032 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000011033 # On the NeXT, cc -E runs the code through the compiler's parser,
11034 # not just through cpp. "Syntax error" is here to catch this case.
11035 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
11041#ifdef __STDC__
11042# include <limits.h>
11043#else
11044# include <assert.h>
11045#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011046 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000011047_ACEOF
11048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11050 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000011051 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000011052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } >/dev/null; then
11056 if test -s conftest.err; then
11057 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000011058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000011059 else
11060 ac_cpp_err=
11061 fi
11062else
11063 ac_cpp_err=yes
11064fi
11065if test -z "$ac_cpp_err"; then
11066 :
11067else
11068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011069sed 's/^/| /' conftest.$ac_ext >&5
11070
John Criswell47fdd832003-07-14 16:52:07 +000011071 # Broken: fails on valid input.
11072continue
11073fi
11074rm -f conftest.err conftest.$ac_ext
11075
11076 # OK, works on sane cases. Now check whether non-existent headers
11077 # can be detected and how.
11078 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011084#include <ac_nonexistent.h>
11085_ACEOF
11086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11088 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000011089 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000011090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } >/dev/null; then
11094 if test -s conftest.err; then
11095 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000011096 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000011097 else
11098 ac_cpp_err=
11099 fi
11100else
11101 ac_cpp_err=yes
11102fi
11103if test -z "$ac_cpp_err"; then
11104 # Broken: success on invalid input.
11105continue
11106else
11107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011108sed 's/^/| /' conftest.$ac_ext >&5
11109
John Criswell47fdd832003-07-14 16:52:07 +000011110 # Passes both tests.
11111ac_preproc_ok=:
11112break
11113fi
11114rm -f conftest.err conftest.$ac_ext
11115
11116done
11117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11118rm -f conftest.err conftest.$ac_ext
11119if $ac_preproc_ok; then
11120 :
11121else
John Criswell0c38eaf2003-09-10 15:17:25 +000011122 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11123See \`config.log' for more details." >&5
11124echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11125See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000011126 { (exit 1); exit 1; }; }
11127fi
11128
11129ac_ext=cc
11130ac_cpp='$CXXCPP $CPPFLAGS'
11131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11134
Reid Spencer2706f8c2004-09-19 23:53:36 +000011135fi
11136
John Criswell47fdd832003-07-14 16:52:07 +000011137
11138ac_ext=f
11139ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11140ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11141ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11142if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011143 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 +000011144 do
11145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11147echo "$as_me:$LINENO: checking for $ac_word" >&5
11148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11149if test "${ac_cv_prog_F77+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152 if test -n "$F77"; then
11153 ac_cv_prog_F77="$F77" # Let the user override the test.
11154else
11155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156for as_dir in $PATH
11157do
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11162 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11165 fi
11166done
11167done
11168
11169fi
11170fi
11171F77=$ac_cv_prog_F77
11172if test -n "$F77"; then
11173 echo "$as_me:$LINENO: result: $F77" >&5
11174echo "${ECHO_T}$F77" >&6
11175else
11176 echo "$as_me:$LINENO: result: no" >&5
11177echo "${ECHO_T}no" >&6
11178fi
11179
11180 test -n "$F77" && break
11181 done
11182fi
11183if test -z "$F77"; then
11184 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000011185 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 +000011186do
11187 # Extract the first word of "$ac_prog", so it can be a program name with args.
11188set dummy $ac_prog; ac_word=$2
11189echo "$as_me:$LINENO: checking for $ac_word" >&5
11190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11191if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 if test -n "$ac_ct_F77"; then
11195 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11196else
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_prog_ac_ct_F77="$ac_prog"
11205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208done
11209done
11210
11211fi
11212fi
11213ac_ct_F77=$ac_cv_prog_ac_ct_F77
11214if test -n "$ac_ct_F77"; then
11215 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11216echo "${ECHO_T}$ac_ct_F77" >&6
11217else
11218 echo "$as_me:$LINENO: result: no" >&5
11219echo "${ECHO_T}no" >&6
11220fi
11221
11222 test -n "$ac_ct_F77" && break
11223done
11224
11225 F77=$ac_ct_F77
11226fi
11227
11228
11229# Provide some information about the compiler.
Reid Spencer1bc68642006-07-27 23:00:30 +000011230echo "$as_me:11230:" \
John Criswell47fdd832003-07-14 16:52:07 +000011231 "checking for Fortran 77 compiler version" >&5
11232ac_compiler=`set X $ac_compile; echo $2`
11233{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11234 (eval $ac_compiler --version </dev/null >&5) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }
11238{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11239 (eval $ac_compiler -v </dev/null >&5) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }
11243{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11244 (eval $ac_compiler -V </dev/null >&5) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000011248rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000011249
11250# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000011251# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000011252ac_save_ext=$ac_ext
11253ac_ext=F
11254echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11255echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11256if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258else
11259 cat >conftest.$ac_ext <<_ACEOF
11260 program main
11261#ifndef __GNUC__
11262 choke me
11263#endif
11264
11265 end
11266_ACEOF
11267rm -f conftest.$ac_objext
11268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011269 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011276 { ac_try='test -z "$ac_f77_werror_flag"
11277 || test ! -s conftest.err'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_compiler_gnu=yes
11290else
11291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011292sed 's/^/| /' conftest.$ac_ext >&5
11293
John Criswell47fdd832003-07-14 16:52:07 +000011294ac_compiler_gnu=no
11295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011297ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11298
11299fi
11300echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11301echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11302ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000011303ac_test_FFLAGS=${FFLAGS+set}
11304ac_save_FFLAGS=$FFLAGS
11305FFLAGS=
11306echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11307echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11308if test "${ac_cv_prog_f77_g+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310else
11311 FFLAGS=-g
11312cat >conftest.$ac_ext <<_ACEOF
11313 program main
11314
11315 end
11316_ACEOF
11317rm -f conftest.$ac_objext
11318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011319 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011320 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011326 { ac_try='test -z "$ac_f77_werror_flag"
11327 || test ! -s conftest.err'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_prog_f77_g=yes
11340else
11341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011342sed 's/^/| /' conftest.$ac_ext >&5
11343
John Criswell47fdd832003-07-14 16:52:07 +000011344ac_cv_prog_f77_g=no
11345fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011347
11348fi
11349echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11350echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11351if test "$ac_test_FFLAGS" = set; then
11352 FFLAGS=$ac_save_FFLAGS
11353elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011354 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011355 FFLAGS="-g -O2"
11356 else
11357 FFLAGS="-g"
11358 fi
11359else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011360 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011361 FFLAGS="-O2"
11362 else
11363 FFLAGS=
11364 fi
11365fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011366
11367G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011368ac_ext=c
11369ac_cpp='$CPP $CPPFLAGS'
11370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11372ac_compiler_gnu=$ac_cv_c_compiler_gnu
11373
11374
11375
11376# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11377
11378# find the maximum length of command line arguments
11379echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11380echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11381if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383else
11384 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011385 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011386
11387 case $build_os in
11388 msdosdjgpp*)
11389 # On DJGPP, this test can blow up pretty badly due to problems in libc
11390 # (any single argument exceeding 2000 bytes causes a buffer overrun
11391 # during glob expansion). Even if it were fixed, the result of this
11392 # check would be larger than it should be.
11393 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11394 ;;
11395
11396 gnu*)
11397 # Under GNU Hurd, this test is not required because there is
11398 # no limit to the length of command line arguments.
11399 # Libtool will interpret -1 as no limit whatsoever
11400 lt_cv_sys_max_cmd_len=-1;
11401 ;;
11402
11403 cygwin* | mingw*)
11404 # On Win9x/ME, this test blows up -- it succeeds, but takes
11405 # about 5 minutes as the teststring grows exponentially.
11406 # Worse, since 9x/ME are not pre-emptively multitasking,
11407 # you end up with a "frozen" computer, even though with patience
11408 # the test eventually succeeds (with a max line length of 256k).
11409 # Instead, let's just punt: use the minimum linelength reported by
11410 # all of the supported platforms: 8192 (on NT/2K/XP).
11411 lt_cv_sys_max_cmd_len=8192;
11412 ;;
11413
Reid Spencer2706f8c2004-09-19 23:53:36 +000011414 amigaos*)
11415 # On AmigaOS with pdksh, this test takes hours, literally.
11416 # So we just punt and use a minimum line length of 8192.
11417 lt_cv_sys_max_cmd_len=8192;
11418 ;;
11419
11420 netbsd* | freebsd* | openbsd* | darwin* )
11421 # This has been around since 386BSD, at least. Likely further.
11422 if test -x /sbin/sysctl; then
11423 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11424 elif test -x /usr/sbin/sysctl; then
11425 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11426 else
11427 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11428 fi
11429 # And add a safety zone
11430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11431 ;;
11432
John Criswell47fdd832003-07-14 16:52:07 +000011433 *)
11434 # If test is not a shell built-in, we'll probably end up computing a
11435 # maximum length that is only half of the actual maximum length, but
11436 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011437 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11438 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11439 = "XX$teststring") >/dev/null 2>&1 &&
11440 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011441 lt_cv_sys_max_cmd_len=$new_result &&
11442 test $i != 17 # 1/2 MB should be enough
11443 do
11444 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011445 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011446 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011447 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011448 # Add a significant safety factor because C++ compilers can tack on massive
11449 # amounts of additional arguments before passing them to the linker.
11450 # It appears as though 1/2 is a usable value.
11451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11452 ;;
11453 esac
11454
11455fi
11456
11457if test -n $lt_cv_sys_max_cmd_len ; then
11458 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11459echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11460else
11461 echo "$as_me:$LINENO: result: none" >&5
11462echo "${ECHO_T}none" >&6
11463fi
11464
11465
11466
11467
11468# Check for command to grab the raw symbol name followed by C symbol from nm.
11469echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11470echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11471if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473else
11474
11475# These are sane defaults that work on at least a few old systems.
11476# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11477
11478# Character class describing NM global symbol codes.
11479symcode='[BCDEGRST]'
11480
11481# Regexp to match symbols that can be accessed directly from C.
11482sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11483
11484# Transform the above into a raw symbol and a C symbol.
11485symxfrm='\1 \2\3 \3'
11486
11487# Transform an extracted symbol line into a proper C declaration
11488lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11489
11490# Transform an extracted symbol line into symbol name and symbol address
11491lt_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'"
11492
11493# Define system-specific variables.
11494case $host_os in
11495aix*)
11496 symcode='[BCDT]'
11497 ;;
11498cygwin* | mingw* | pw32*)
11499 symcode='[ABCDGISTW]'
11500 ;;
11501hpux*) # Its linker distinguishes data from code symbols
11502 if test "$host_cpu" = ia64; then
11503 symcode='[ABCDEGRST]'
11504 fi
11505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11506 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'"
11507 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011508linux*)
11509 if test "$host_cpu" = ia64; then
11510 symcode='[ABCDGIRSTW]'
11511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11512 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'"
11513 fi
11514 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011515irix* | nonstopux*)
11516 symcode='[BCDEGRST]'
11517 ;;
11518osf*)
11519 symcode='[BCDEGQRST]'
11520 ;;
11521solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011522 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011523 ;;
11524sysv4)
11525 symcode='[DFNSTU]'
11526 ;;
11527esac
11528
11529# Handle CRLF in mingw tool chain
11530opt_cr=
11531case $build_os in
11532mingw*)
11533 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11534 ;;
11535esac
11536
11537# If we're using GNU nm, then use its standard symbol codes.
11538case `$NM -V 2>&1` in
11539*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011540 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011541esac
11542
11543# Try without a prefix undercore, then with it.
11544for ac_symprfx in "" "_"; do
11545
11546 # Write the raw and C identifiers.
11547 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11548
11549 # Check to see that the pipe works correctly.
11550 pipe_works=no
11551
11552 rm -f conftest*
11553 cat > conftest.$ac_ext <<EOF
11554#ifdef __cplusplus
11555extern "C" {
11556#endif
11557char nm_test_var;
11558void nm_test_func(){}
11559#ifdef __cplusplus
11560}
11561#endif
11562int main(){nm_test_var='a';nm_test_func();return(0);}
11563EOF
11564
11565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566 (eval $ac_compile) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; then
11570 # Now try to grab the symbols.
11571 nlist=conftest.nm
11572 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11573 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } && test -s "$nlist"; then
11577 # Try sorting and uniquifying the output.
11578 if sort "$nlist" | uniq > "$nlist"T; then
11579 mv -f "$nlist"T "$nlist"
11580 else
11581 rm -f "$nlist"T
11582 fi
11583
11584 # Make sure that we snagged all the symbols we need.
11585 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11586 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11587 cat <<EOF > conftest.$ac_ext
11588#ifdef __cplusplus
11589extern "C" {
11590#endif
11591
11592EOF
11593 # Now generate the symbol file.
11594 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11595
11596 cat <<EOF >> conftest.$ac_ext
11597#if defined (__STDC__) && __STDC__
11598# define lt_ptr_t void *
11599#else
11600# define lt_ptr_t char *
11601# define const
11602#endif
11603
11604/* The mapping between symbol names and symbols. */
11605const struct {
11606 const char *name;
11607 lt_ptr_t address;
11608}
11609lt_preloaded_symbols[] =
11610{
11611EOF
11612 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11613 cat <<\EOF >> conftest.$ac_ext
11614 {0, (lt_ptr_t) 0}
11615};
11616
11617#ifdef __cplusplus
11618}
11619#endif
11620EOF
11621 # Now try linking the two files.
11622 mv conftest.$ac_objext conftstm.$ac_objext
11623 lt_save_LIBS="$LIBS"
11624 lt_save_CFLAGS="$CFLAGS"
11625 LIBS="conftstm.$ac_objext"
11626 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628 (eval $ac_link) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11632 pipe_works=yes
11633 fi
11634 LIBS="$lt_save_LIBS"
11635 CFLAGS="$lt_save_CFLAGS"
11636 else
11637 echo "cannot find nm_test_func in $nlist" >&5
11638 fi
11639 else
11640 echo "cannot find nm_test_var in $nlist" >&5
11641 fi
11642 else
11643 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11644 fi
11645 else
11646 echo "$progname: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11648 fi
11649 rm -f conftest* conftst*
11650
11651 # Do not use the global_symbol_pipe unless it works.
11652 if test "$pipe_works" = yes; then
11653 break
11654 else
11655 lt_cv_sys_global_symbol_pipe=
11656 fi
11657done
11658
11659fi
11660
11661if test -z "$lt_cv_sys_global_symbol_pipe"; then
11662 lt_cv_sys_global_symbol_to_cdecl=
11663fi
11664if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11665 echo "$as_me:$LINENO: result: failed" >&5
11666echo "${ECHO_T}failed" >&6
11667else
11668 echo "$as_me:$LINENO: result: ok" >&5
11669echo "${ECHO_T}ok" >&6
11670fi
11671
11672echo "$as_me:$LINENO: checking for objdir" >&5
11673echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11674if test "${lt_cv_objdir+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676else
11677 rm -f .libs 2>/dev/null
11678mkdir .libs 2>/dev/null
11679if test -d .libs; then
11680 lt_cv_objdir=.libs
11681else
11682 # MS-DOS does not allow filenames that begin with a dot.
11683 lt_cv_objdir=_libs
11684fi
11685rmdir .libs 2>/dev/null
11686fi
11687echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11688echo "${ECHO_T}$lt_cv_objdir" >&6
11689objdir=$lt_cv_objdir
11690
11691
11692
11693
11694
11695case $host_os in
11696aix3*)
11697 # AIX sometimes has problems with the GCC collect2 program. For some
11698 # reason, if we set the COLLECT_NAMES environment variable, the problems
11699 # vanish in a puff of smoke.
11700 if test "X${COLLECT_NAMES+set}" != Xset; then
11701 COLLECT_NAMES=
11702 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011703 fi
11704 ;;
11705esac
11706
John Criswell47fdd832003-07-14 16:52:07 +000011707# Sed substitution that helps us do robust quoting. It backslashifies
11708# metacharacters that are still active within double-quoted strings.
11709Xsed='sed -e s/^X//'
11710sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11711
11712# Same as above, but do not quote variable references.
11713double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11714
11715# Sed substitution to delay expansion of an escaped shell variable in a
11716# double_quote_subst'ed string.
11717delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11718
11719# Sed substitution to avoid accidental globbing in evaled expressions
11720no_glob_subst='s/\*/\\\*/g'
11721
11722# Constants:
11723rm="rm -f"
11724
11725# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011726default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011727can_build_shared=yes
11728
11729# All known linkers require a `.a' archive for static linking (except M$VC,
11730# which needs '.lib').
11731libext=a
11732ltmain="$ac_aux_dir/ltmain.sh"
11733ofile="$default_ofile"
11734with_gnu_ld="$lt_cv_prog_gnu_ld"
11735
11736if test -n "$ac_tool_prefix"; then
11737 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11738set dummy ${ac_tool_prefix}ar; ac_word=$2
11739echo "$as_me:$LINENO: checking for $ac_word" >&5
11740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741if test "${ac_cv_prog_AR+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743else
11744 if test -n "$AR"; then
11745 ac_cv_prog_AR="$AR" # Let the user override the test.
11746else
11747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_AR="${ac_tool_prefix}ar"
11755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 break 2
11757 fi
11758done
11759done
11760
11761fi
11762fi
11763AR=$ac_cv_prog_AR
11764if test -n "$AR"; then
11765 echo "$as_me:$LINENO: result: $AR" >&5
11766echo "${ECHO_T}$AR" >&6
11767else
11768 echo "$as_me:$LINENO: result: no" >&5
11769echo "${ECHO_T}no" >&6
11770fi
11771
11772fi
11773if test -z "$ac_cv_prog_AR"; then
11774 ac_ct_AR=$AR
11775 # Extract the first word of "ar", so it can be a program name with args.
11776set dummy ar; ac_word=$2
11777echo "$as_me:$LINENO: checking for $ac_word" >&5
11778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11779if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781else
11782 if test -n "$ac_ct_AR"; then
11783 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11784else
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_ac_ct_AR="ar"
11793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11795 fi
11796done
11797done
11798
11799 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11800fi
11801fi
11802ac_ct_AR=$ac_cv_prog_ac_ct_AR
11803if test -n "$ac_ct_AR"; then
11804 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11805echo "${ECHO_T}$ac_ct_AR" >&6
11806else
11807 echo "$as_me:$LINENO: result: no" >&5
11808echo "${ECHO_T}no" >&6
11809fi
11810
11811 AR=$ac_ct_AR
11812else
11813 AR="$ac_cv_prog_AR"
11814fi
11815
John Criswell7a73b802003-06-30 21:59:07 +000011816if test -n "$ac_tool_prefix"; then
11817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11819echo "$as_me:$LINENO: checking for $ac_word" >&5
11820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11821if test "${ac_cv_prog_RANLIB+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824 if test -n "$RANLIB"; then
11825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11826else
11827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828for as_dir in $PATH
11829do
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11837 fi
11838done
11839done
11840
11841fi
11842fi
11843RANLIB=$ac_cv_prog_RANLIB
11844if test -n "$RANLIB"; then
11845 echo "$as_me:$LINENO: result: $RANLIB" >&5
11846echo "${ECHO_T}$RANLIB" >&6
11847else
11848 echo "$as_me:$LINENO: result: no" >&5
11849echo "${ECHO_T}no" >&6
11850fi
11851
11852fi
11853if test -z "$ac_cv_prog_RANLIB"; then
11854 ac_ct_RANLIB=$RANLIB
11855 # Extract the first word of "ranlib", so it can be a program name with args.
11856set dummy ranlib; ac_word=$2
11857echo "$as_me:$LINENO: checking for $ac_word" >&5
11858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11859if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861else
11862 if test -n "$ac_ct_RANLIB"; then
11863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11864else
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_prog_ac_ct_RANLIB="ranlib"
11873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876done
11877done
11878
11879 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11880fi
11881fi
11882ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11883if test -n "$ac_ct_RANLIB"; then
11884 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11885echo "${ECHO_T}$ac_ct_RANLIB" >&6
11886else
11887 echo "$as_me:$LINENO: result: no" >&5
11888echo "${ECHO_T}no" >&6
11889fi
11890
11891 RANLIB=$ac_ct_RANLIB
11892else
11893 RANLIB="$ac_cv_prog_RANLIB"
11894fi
11895
11896if test -n "$ac_tool_prefix"; then
11897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11898set dummy ${ac_tool_prefix}strip; ac_word=$2
11899echo "$as_me:$LINENO: checking for $ac_word" >&5
11900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11901if test "${ac_cv_prog_STRIP+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903else
11904 if test -n "$STRIP"; then
11905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11906else
11907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908for as_dir in $PATH
11909do
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11916 break 2
11917 fi
11918done
11919done
11920
11921fi
11922fi
11923STRIP=$ac_cv_prog_STRIP
11924if test -n "$STRIP"; then
11925 echo "$as_me:$LINENO: result: $STRIP" >&5
11926echo "${ECHO_T}$STRIP" >&6
11927else
11928 echo "$as_me:$LINENO: result: no" >&5
11929echo "${ECHO_T}no" >&6
11930fi
11931
11932fi
11933if test -z "$ac_cv_prog_STRIP"; then
11934 ac_ct_STRIP=$STRIP
11935 # Extract the first word of "strip", so it can be a program name with args.
11936set dummy strip; ac_word=$2
11937echo "$as_me:$LINENO: checking for $ac_word" >&5
11938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11939if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 if test -n "$ac_ct_STRIP"; then
11943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11944else
11945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946for as_dir in $PATH
11947do
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952 ac_cv_prog_ac_ct_STRIP="strip"
11953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11955 fi
11956done
11957done
11958
11959 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11960fi
11961fi
11962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11963if test -n "$ac_ct_STRIP"; then
11964 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11965echo "${ECHO_T}$ac_ct_STRIP" >&6
11966else
11967 echo "$as_me:$LINENO: result: no" >&5
11968echo "${ECHO_T}no" >&6
11969fi
11970
11971 STRIP=$ac_ct_STRIP
11972else
11973 STRIP="$ac_cv_prog_STRIP"
11974fi
11975
11976
John Criswell7a73b802003-06-30 21:59:07 +000011977old_CC="$CC"
11978old_CFLAGS="$CFLAGS"
11979
11980# Set sane defaults for various variables
11981test -z "$AR" && AR=ar
11982test -z "$AR_FLAGS" && AR_FLAGS=cru
11983test -z "$AS" && AS=as
11984test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011985test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011986test -z "$DLLTOOL" && DLLTOOL=dlltool
11987test -z "$LD" && LD=ld
11988test -z "$LN_S" && LN_S="ln -s"
11989test -z "$MAGIC_CMD" && MAGIC_CMD=file
11990test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011991test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011992test -z "$OBJDUMP" && OBJDUMP=objdump
11993test -z "$RANLIB" && RANLIB=:
11994test -z "$STRIP" && STRIP=:
11995test -z "$ac_objext" && ac_objext=o
11996
John Criswell7a73b802003-06-30 21:59:07 +000011997# Determine commands to create old-style static archives.
11998old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11999old_postinstall_cmds='chmod 644 $oldlib'
12000old_postuninstall_cmds=
12001
12002if test -n "$RANLIB"; then
12003 case $host_os in
12004 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012005 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000012006 ;;
12007 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000012008 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000012009 ;;
12010 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000012011 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000012012fi
12013
Reid Spencer2706f8c2004-09-19 23:53:36 +000012014cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12015
John Criswell47fdd832003-07-14 16:52:07 +000012016# Only perform the check for file, if the check method requires it
12017case $deplibs_check_method in
12018file_magic*)
12019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12021echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012024else
John Criswell47fdd832003-07-14 16:52:07 +000012025 case $MAGIC_CMD in
12026[\\/*] | ?:[\\/]*)
12027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12028 ;;
12029*)
12030 lt_save_MAGIC_CMD="$MAGIC_CMD"
12031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12033 for ac_dir in $ac_dummy; do
12034 IFS="$lt_save_ifs"
12035 test -z "$ac_dir" && ac_dir=.
12036 if test -f $ac_dir/${ac_tool_prefix}file; then
12037 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12038 if test -n "$file_magic_test_file"; then
12039 case $deplibs_check_method in
12040 "file_magic "*)
12041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12044 $EGREP "$file_magic_regex" > /dev/null; then
12045 :
12046 else
12047 cat <<EOF 1>&2
12048
12049*** Warning: the command libtool uses to detect shared libraries,
12050*** $file_magic_cmd, produces output that libtool cannot recognize.
12051*** The result is that libtool may fail to recognize shared libraries
12052*** as such. This will affect the creation of libtool libraries that
12053*** depend on shared libraries, but programs linked with such libtool
12054*** libraries will work regardless of this problem. Nevertheless, you
12055*** may want to report the problem to your system manager and/or to
12056*** bug-libtool@gnu.org
12057
12058EOF
12059 fi ;;
12060 esac
12061 fi
12062 break
12063 fi
12064 done
12065 IFS="$lt_save_ifs"
12066 MAGIC_CMD="$lt_save_MAGIC_CMD"
12067 ;;
12068esac
John Criswell7a73b802003-06-30 21:59:07 +000012069fi
John Criswell7a73b802003-06-30 21:59:07 +000012070
John Criswell47fdd832003-07-14 16:52:07 +000012071MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12072if test -n "$MAGIC_CMD"; then
12073 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12074echo "${ECHO_T}$MAGIC_CMD" >&6
12075else
12076 echo "$as_me:$LINENO: result: no" >&5
12077echo "${ECHO_T}no" >&6
12078fi
John Criswell7a73b802003-06-30 21:59:07 +000012079
John Criswell47fdd832003-07-14 16:52:07 +000012080if test -z "$lt_cv_path_MAGIC_CMD"; then
12081 if test -n "$ac_tool_prefix"; then
12082 echo "$as_me:$LINENO: checking for file" >&5
12083echo $ECHO_N "checking for file... $ECHO_C" >&6
12084if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087 case $MAGIC_CMD in
12088[\\/*] | ?:[\\/]*)
12089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12090 ;;
12091*)
12092 lt_save_MAGIC_CMD="$MAGIC_CMD"
12093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12095 for ac_dir in $ac_dummy; do
12096 IFS="$lt_save_ifs"
12097 test -z "$ac_dir" && ac_dir=.
12098 if test -f $ac_dir/file; then
12099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12100 if test -n "$file_magic_test_file"; then
12101 case $deplibs_check_method in
12102 "file_magic "*)
12103 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12106 $EGREP "$file_magic_regex" > /dev/null; then
12107 :
12108 else
12109 cat <<EOF 1>&2
12110
12111*** Warning: the command libtool uses to detect shared libraries,
12112*** $file_magic_cmd, produces output that libtool cannot recognize.
12113*** The result is that libtool may fail to recognize shared libraries
12114*** as such. This will affect the creation of libtool libraries that
12115*** depend on shared libraries, but programs linked with such libtool
12116*** libraries will work regardless of this problem. Nevertheless, you
12117*** may want to report the problem to your system manager and/or to
12118*** bug-libtool@gnu.org
12119
12120EOF
12121 fi ;;
12122 esac
12123 fi
12124 break
12125 fi
12126 done
12127 IFS="$lt_save_ifs"
12128 MAGIC_CMD="$lt_save_MAGIC_CMD"
12129 ;;
12130esac
12131fi
12132
12133MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12134if test -n "$MAGIC_CMD"; then
12135 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12136echo "${ECHO_T}$MAGIC_CMD" >&6
12137else
12138 echo "$as_me:$LINENO: result: no" >&5
12139echo "${ECHO_T}no" >&6
12140fi
12141
12142 else
12143 MAGIC_CMD=:
12144 fi
12145fi
12146
12147 fi
12148 ;;
12149esac
12150
Reid Spencer17795972004-11-18 09:47:37 +000012151enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000012152enable_win32_dll=no
12153
12154# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12155if test "${enable_libtool_lock+set}" = set; then
12156 enableval="$enable_libtool_lock"
12157
12158fi;
12159test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12160
John Criswell7a73b802003-06-30 21:59:07 +000012161
12162# Check whether --with-pic or --without-pic was given.
12163if test "${with_pic+set}" = set; then
12164 withval="$with_pic"
12165 pic_mode="$withval"
12166else
12167 pic_mode=default
12168fi;
12169test -z "$pic_mode" && pic_mode=default
12170
John Criswell47fdd832003-07-14 16:52:07 +000012171# Use C for the default configuration in the libtool script
12172tagname=
12173lt_save_CC="$CC"
12174ac_ext=c
12175ac_cpp='$CPP $CPPFLAGS'
12176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12178ac_compiler_gnu=$ac_cv_c_compiler_gnu
12179
12180
12181# Source file extension for C test sources.
12182ac_ext=c
12183
12184# Object file extension for compiled C test sources.
12185objext=o
12186objext=$objext
12187
12188# Code to be used in simple compile tests
12189lt_simple_compile_test_code="int some_variable = 0;\n"
12190
12191# Code to be used in simple link tests
12192lt_simple_link_test_code='int main(){return(0);}\n'
12193
12194
12195# If no C compiler was specified, use CC.
12196LTCC=${LTCC-"$CC"}
12197
12198# Allow CC to be a program name with arguments.
12199compiler=$CC
12200
12201
12202#
12203# Check for any special shared library compilation flags.
12204#
12205lt_prog_cc_shlib=
12206if test "$GCC" = no; then
12207 case $host_os in
12208 sco3.2v5*)
12209 lt_prog_cc_shlib='-belf'
12210 ;;
12211 esac
12212fi
12213if test -n "$lt_prog_cc_shlib"; then
12214 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12215echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12216 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12217 else
12218 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12219echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12220 lt_cv_prog_cc_can_build_shared=no
12221 fi
12222fi
12223
12224
12225#
12226# Check to make sure the static flag actually works.
12227#
12228echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12229echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12230if test "${lt_prog_compiler_static_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_static_works=no
12234 save_LDFLAGS="$LDFLAGS"
12235 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12236 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12238 # The compiler can only warn and ignore the option if not recognized
12239 # So say no if there are warnings
12240 if test -s conftest.err; then
12241 # Append any errors to the config.log.
12242 cat conftest.err 1>&5
12243 else
12244 lt_prog_compiler_static_works=yes
12245 fi
12246 fi
12247 $rm conftest*
12248 LDFLAGS="$save_LDFLAGS"
12249
12250fi
12251echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12252echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12253
12254if test x"$lt_prog_compiler_static_works" = xyes; then
12255 :
12256else
12257 lt_prog_compiler_static=
12258fi
12259
12260
12261
John Criswell47fdd832003-07-14 16:52:07 +000012262
12263lt_prog_compiler_no_builtin_flag=
12264
12265if test "$GCC" = yes; then
12266 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12267
Reid Spencer2706f8c2004-09-19 23:53:36 +000012268
12269echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012270echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12271if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274 lt_cv_prog_compiler_rtti_exceptions=no
12275 ac_outfile=conftest.$ac_objext
12276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12277 lt_compiler_flag="-fno-rtti -fno-exceptions"
12278 # Insert the option either (1) after the last *FLAGS variable, or
12279 # (2) before a word containing "conftest.", or (3) at the end.
12280 # Note that $ac_compile itself does not contain backslashes and begins
12281 # with a dollar sign (not a hyphen), so the echo should work correctly.
12282 # The option is referenced via a variable to avoid confusing sed.
12283 lt_compile=`echo "$ac_compile" | $SED \
12284 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12286 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000012287 (eval echo "\"\$as_me:12287: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012288 (eval "$lt_compile" 2>conftest.err)
12289 ac_status=$?
12290 cat conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000012291 echo "$as_me:12291: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012292 if (exit $ac_status) && test -s "$ac_outfile"; then
12293 # The compiler can only warn and ignore the option if not recognized
12294 # So say no if there are warnings
12295 if test ! -s conftest.err; then
12296 lt_cv_prog_compiler_rtti_exceptions=yes
12297 fi
12298 fi
12299 $rm conftest*
12300
12301fi
12302echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12303echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12304
12305if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12306 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12307else
12308 :
12309fi
12310
12311fi
12312
12313lt_prog_compiler_wl=
12314lt_prog_compiler_pic=
12315lt_prog_compiler_static=
12316
12317echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12318echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012319
12320 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012321 lt_prog_compiler_wl='-Wl,'
12322 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012323
12324 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012325 aix*)
12326 # All AIX code is PIC.
12327 if test "$host_cpu" = ia64; then
12328 # AIX 5 now supports IA64 processor
12329 lt_prog_compiler_static='-Bstatic'
12330 fi
John Criswell7a73b802003-06-30 21:59:07 +000012331 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012332
John Criswell7a73b802003-06-30 21:59:07 +000012333 amigaos*)
12334 # FIXME: we need at least 68020 code to build shared libraries, but
12335 # adding the `-m68020' flag to GCC prevents building anything better,
12336 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012338 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012339
12340 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012341 # PIC is the default for these OSes.
12342 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012343
12344 mingw* | pw32* | os2*)
12345 # This hack is so that the source file can tell whether it is being
12346 # built for inclusion in a dll (and should export symbols for example).
12347 lt_prog_compiler_pic='-DDLL_EXPORT'
12348 ;;
12349
John Criswell7a73b802003-06-30 21:59:07 +000012350 darwin* | rhapsody*)
12351 # PIC is the default on this platform
12352 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012353 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012354 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012355
12356 msdosdjgpp*)
12357 # Just because we use GCC doesn't mean we suddenly get shared libraries
12358 # on systems that don't support them.
12359 lt_prog_compiler_can_build_shared=no
12360 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012361 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012362
John Criswell7a73b802003-06-30 21:59:07 +000012363 sysv4*MP*)
12364 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012365 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012366 fi
12367 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012368
12369 hpux*)
12370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12371 # not for PA HP-UX.
12372 case "$host_cpu" in
12373 hppa*64*|ia64*)
12374 # +Z the default
12375 ;;
12376 *)
12377 lt_prog_compiler_pic='-fPIC'
12378 ;;
12379 esac
12380 ;;
12381
John Criswell7a73b802003-06-30 21:59:07 +000012382 *)
John Criswell47fdd832003-07-14 16:52:07 +000012383 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012384 ;;
12385 esac
12386 else
John Criswell47fdd832003-07-14 16:52:07 +000012387 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012388 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012389 aix*)
12390 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012391 if test "$host_cpu" = ia64; then
12392 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012393 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012394 else
John Criswell47fdd832003-07-14 16:52:07 +000012395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012396 fi
12397 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012398 darwin*)
12399 # PIC is the default on this platform
12400 # Common symbols not allowed in MH_DYLIB files
12401 case "$cc_basename" in
12402 xlc*)
12403 lt_prog_compiler_pic='-qnocommon'
12404 lt_prog_compiler_wl='-Wl,'
12405 ;;
12406 esac
12407 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012408
John Criswell47fdd832003-07-14 16:52:07 +000012409 mingw* | pw32* | os2*)
12410 # This hack is so that the source file can tell whether it is being
12411 # built for inclusion in a dll (and should export symbols for example).
12412 lt_prog_compiler_pic='-DDLL_EXPORT'
12413 ;;
12414
John Criswell7a73b802003-06-30 21:59:07 +000012415 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012416 lt_prog_compiler_wl='-Wl,'
12417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12418 # not for PA HP-UX.
12419 case "$host_cpu" in
12420 hppa*64*|ia64*)
12421 # +Z the default
12422 ;;
12423 *)
12424 lt_prog_compiler_pic='+Z'
12425 ;;
12426 esac
12427 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12428 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012429 ;;
12430
John Criswell47fdd832003-07-14 16:52:07 +000012431 irix5* | irix6* | nonstopux*)
12432 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012433 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012434 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012435 ;;
12436
12437 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012438 lt_prog_compiler_pic='-KPIC'
12439 lt_prog_compiler_static='-Bstatic'
12440 ;;
12441
12442 linux*)
12443 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012444 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012445 lt_prog_compiler_wl='-Wl,'
12446 lt_prog_compiler_pic='-KPIC'
12447 lt_prog_compiler_static='-static'
12448 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012449 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012450 lt_prog_compiler_wl='-Wl,'
12451 # All Alpha code is PIC.
12452 lt_prog_compiler_static='-non_shared'
12453 ;;
12454 esac
John Criswell7a73b802003-06-30 21:59:07 +000012455 ;;
12456
12457 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012458 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012459 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012460 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012461 ;;
12462
12463 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012464 lt_prog_compiler_pic='-Kpic'
12465 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012466 ;;
12467
12468 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012469 lt_prog_compiler_wl='-Wl,'
12470 lt_prog_compiler_pic='-KPIC'
12471 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012472 ;;
12473
12474 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012475 lt_prog_compiler_wl='-Qoption ld '
12476 lt_prog_compiler_pic='-PIC'
12477 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012478 ;;
12479
12480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012481 lt_prog_compiler_wl='-Wl,'
12482 lt_prog_compiler_pic='-KPIC'
12483 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012484 ;;
12485
12486 sysv4*MP*)
12487 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012488 lt_prog_compiler_pic='-Kconform_pic'
12489 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012490 fi
12491 ;;
12492
John Criswell47fdd832003-07-14 16:52:07 +000012493 uts4*)
12494 lt_prog_compiler_pic='-pic'
12495 lt_prog_compiler_static='-Bstatic'
12496 ;;
12497
John Criswell7a73b802003-06-30 21:59:07 +000012498 *)
John Criswell47fdd832003-07-14 16:52:07 +000012499 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012500 ;;
12501 esac
12502 fi
12503
John Criswell47fdd832003-07-14 16:52:07 +000012504echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12505echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012506
John Criswell47fdd832003-07-14 16:52:07 +000012507#
12508# Check to make sure the PIC flag actually works.
12509#
12510if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012511
12512echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012513echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12514if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516else
John Criswell47fdd832003-07-14 16:52:07 +000012517 lt_prog_compiler_pic_works=no
12518 ac_outfile=conftest.$ac_objext
12519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12520 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12521 # Insert the option either (1) after the last *FLAGS variable, or
12522 # (2) before a word containing "conftest.", or (3) at the end.
12523 # Note that $ac_compile itself does not contain backslashes and begins
12524 # with a dollar sign (not a hyphen), so the echo should work correctly.
12525 # The option is referenced via a variable to avoid confusing sed.
12526 lt_compile=`echo "$ac_compile" | $SED \
12527 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12529 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000012530 (eval echo "\"\$as_me:12530: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012531 (eval "$lt_compile" 2>conftest.err)
12532 ac_status=$?
12533 cat conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000012534 echo "$as_me:12534: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012535 if (exit $ac_status) && test -s "$ac_outfile"; then
12536 # The compiler can only warn and ignore the option if not recognized
12537 # So say no if there are warnings
12538 if test ! -s conftest.err; then
12539 lt_prog_compiler_pic_works=yes
12540 fi
12541 fi
12542 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012543
John Criswell47fdd832003-07-14 16:52:07 +000012544fi
12545echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12546echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012547
John Criswell47fdd832003-07-14 16:52:07 +000012548if test x"$lt_prog_compiler_pic_works" = xyes; then
12549 case $lt_prog_compiler_pic in
12550 "" | " "*) ;;
12551 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12552 esac
John Criswell7a73b802003-06-30 21:59:07 +000012553else
John Criswell47fdd832003-07-14 16:52:07 +000012554 lt_prog_compiler_pic=
12555 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012556fi
12557
John Criswell7a73b802003-06-30 21:59:07 +000012558fi
John Criswell47fdd832003-07-14 16:52:07 +000012559case "$host_os" in
12560 # For platforms which do not support PIC, -DPIC is meaningless:
12561 *djgpp*)
12562 lt_prog_compiler_pic=
12563 ;;
12564 *)
12565 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12566 ;;
12567esac
John Criswell7a73b802003-06-30 21:59:07 +000012568
John Criswell7a73b802003-06-30 21:59:07 +000012569echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12570echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012571if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573else
John Criswell47fdd832003-07-14 16:52:07 +000012574 lt_cv_prog_compiler_c_o=no
12575 $rm -r conftest 2>/dev/null
12576 mkdir conftest
12577 cd conftest
12578 mkdir out
12579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012580
John Criswell47fdd832003-07-14 16:52:07 +000012581 lt_compiler_flag="-o out/conftest2.$ac_objext"
12582 # Insert the option either (1) after the last *FLAGS variable, or
12583 # (2) before a word containing "conftest.", or (3) at the end.
12584 # Note that $ac_compile itself does not contain backslashes and begins
12585 # with a dollar sign (not a hyphen), so the echo should work correctly.
12586 lt_compile=`echo "$ac_compile" | $SED \
12587 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12589 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000012590 (eval echo "\"\$as_me:12590: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012591 (eval "$lt_compile" 2>out/conftest.err)
12592 ac_status=$?
12593 cat out/conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000012594 echo "$as_me:12594: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12596 then
12597 # The compiler can only warn and ignore the option if not recognized
12598 # So say no if there are warnings
12599 if test ! -s out/conftest.err; then
12600 lt_cv_prog_compiler_c_o=yes
12601 fi
12602 fi
12603 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012604 $rm conftest*
12605 # SGI C++ compiler will create directory out/ii_files/ for
12606 # template instantiation
12607 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12608 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012609 cd ..
12610 rmdir conftest
12611 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012612
12613fi
John Criswell47fdd832003-07-14 16:52:07 +000012614echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12615echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012616
John Criswell7a73b802003-06-30 21:59:07 +000012617
John Criswell7a73b802003-06-30 21:59:07 +000012618hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012619if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012620 # do not overwrite the value of need_locks provided by the user
12621 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12622echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12623 hard_links=yes
12624 $rm conftest*
12625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12626 touch conftest.a
12627 ln conftest.a conftest.b 2>&5 || hard_links=no
12628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12629 echo "$as_me:$LINENO: result: $hard_links" >&5
12630echo "${ECHO_T}$hard_links" >&6
12631 if test "$hard_links" = no; then
12632 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12633echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12634 need_locks=warn
12635 fi
12636else
12637 need_locks=no
12638fi
John Criswell7a73b802003-06-30 21:59:07 +000012639
John Criswell47fdd832003-07-14 16:52:07 +000012640echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12641echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12642
12643 runpath_var=
12644 allow_undefined_flag=
12645 enable_shared_with_static_runtimes=no
12646 archive_cmds=
12647 archive_expsym_cmds=
12648 old_archive_From_new_cmds=
12649 old_archive_from_expsyms_cmds=
12650 export_dynamic_flag_spec=
12651 whole_archive_flag_spec=
12652 thread_safe_flag_spec=
12653 hardcode_libdir_flag_spec=
12654 hardcode_libdir_flag_spec_ld=
12655 hardcode_libdir_separator=
12656 hardcode_direct=no
12657 hardcode_minus_L=no
12658 hardcode_shlibpath_var=unsupported
12659 link_all_deplibs=unknown
12660 hardcode_automatic=no
12661 module_cmds=
12662 module_expsym_cmds=
12663 always_export_symbols=no
12664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12665 # include_expsyms should be a list of space-separated symbols to be *always*
12666 # included in the symbol list
12667 include_expsyms=
12668 # exclude_expsyms can be an extended regexp of symbols to exclude
12669 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12670 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12671 # as well as any symbol that contains `d'.
12672 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12673 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12674 # platforms (ab)use it in PIC code, but their linkers get confused if
12675 # the symbol is explicitly referenced. Since portable code cannot
12676 # rely on this symbol name, it's probably fine to never include it in
12677 # preloaded symbol tables.
12678 extract_expsyms_cmds=
12679
12680 case $host_os in
12681 cygwin* | mingw* | pw32*)
12682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12683 # When not using gcc, we currently assume that we are using
12684 # Microsoft Visual C++.
12685 if test "$GCC" != yes; then
12686 with_gnu_ld=no
12687 fi
12688 ;;
12689 openbsd*)
12690 with_gnu_ld=no
12691 ;;
12692 esac
12693
12694 ld_shlibs=yes
12695 if test "$with_gnu_ld" = yes; then
12696 # If archive_cmds runs LD, not CC, wlarc should be empty
12697 wlarc='${wl}'
12698
12699 # See if GNU ld supports shared libraries.
12700 case $host_os in
12701 aix3* | aix4* | aix5*)
12702 # On AIX/PPC, the GNU linker is very broken
12703 if test "$host_cpu" != ia64; then
12704 ld_shlibs=no
12705 cat <<EOF 1>&2
12706
12707*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12708*** to be unable to reliably create shared libraries on AIX.
12709*** Therefore, libtool is disabling shared libraries support. If you
12710*** really care for shared libraries, you may want to modify your PATH
12711*** so that a non-GNU linker is found, and then restart.
12712
12713EOF
12714 fi
12715 ;;
12716
12717 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012718 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 +000012719 hardcode_libdir_flag_spec='-L$libdir'
12720 hardcode_minus_L=yes
12721
12722 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12723 # that the semantics of dynamic libraries on AmigaOS, at least up
12724 # to version 4, is to share data among multiple programs linked
12725 # with the same dynamic library. Since this doesn't match the
12726 # behavior of shared libraries on other platforms, we can't use
12727 # them.
12728 ld_shlibs=no
12729 ;;
12730
12731 beos*)
12732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12733 allow_undefined_flag=unsupported
12734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12735 # support --undefined. This deserves some investigation. FIXME
12736 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 else
12738 ld_shlibs=no
12739 fi
12740 ;;
12741
12742 cygwin* | mingw* | pw32*)
12743 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12744 # as there is no search path for DLLs.
12745 hardcode_libdir_flag_spec='-L$libdir'
12746 allow_undefined_flag=unsupported
12747 always_export_symbols=no
12748 enable_shared_with_static_runtimes=yes
12749 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12750
12751 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12753 # If the export-symbols file already is a .def file (1st line
12754 # is EXPORTS), use it as is; otherwise, prepend...
12755 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12756 cp $export_symbols $output_objdir/$soname.def;
12757 else
12758 echo EXPORTS > $output_objdir/$soname.def;
12759 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012760 fi~
12761 $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 +000012762 else
12763 ld_shlibs=no
12764 fi
12765 ;;
12766
12767 netbsd*)
12768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12769 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12770 wlarc=
12771 else
12772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12774 fi
12775 ;;
12776
12777 solaris* | sysv5*)
12778 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12779 ld_shlibs=no
12780 cat <<EOF 1>&2
12781
12782*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12783*** create shared libraries on Solaris systems. Therefore, libtool
12784*** is disabling shared libraries support. We urge you to upgrade GNU
12785*** binutils to release 2.9.1 or newer. Another option is to modify
12786*** your PATH or compiler configuration so that the native linker is
12787*** used, and then restart.
12788
12789EOF
12790 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12793 else
12794 ld_shlibs=no
12795 fi
12796 ;;
12797
12798 sunos4*)
12799 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12800 wlarc=
12801 hardcode_direct=yes
12802 hardcode_shlibpath_var=no
12803 ;;
12804
Reid Spencer2706f8c2004-09-19 23:53:36 +000012805 linux*)
12806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12807 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808 archive_cmds="$tmp_archive_cmds"
12809 supports_anon_versioning=no
12810 case `$LD -v 2>/dev/null` in
12811 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12814 *\ 2.11.*) ;; # other 2.11 versions
12815 *) supports_anon_versioning=yes ;;
12816 esac
12817 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012818 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12819cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12820$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012821 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12822 else
12823 archive_expsym_cmds="$tmp_archive_cmds"
12824 fi
12825 else
12826 ld_shlibs=no
12827 fi
12828 ;;
12829
John Criswell47fdd832003-07-14 16:52:07 +000012830 *)
12831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12834 else
12835 ld_shlibs=no
12836 fi
12837 ;;
12838 esac
12839
12840 if test "$ld_shlibs" = yes; then
12841 runpath_var=LD_RUN_PATH
12842 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12843 export_dynamic_flag_spec='${wl}--export-dynamic'
12844 # ancient GNU ld didn't support --whole-archive et. al.
12845 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12846 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12847 else
12848 whole_archive_flag_spec=
12849 fi
12850 fi
12851 else
12852 # PORTME fill in a description of your system's linker (not GNU ld)
12853 case $host_os in
12854 aix3*)
12855 allow_undefined_flag=unsupported
12856 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012857 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 +000012858 # Note: this linker hardcodes the directories in LIBPATH if there
12859 # are no directories specified by -L.
12860 hardcode_minus_L=yes
12861 if test "$GCC" = yes && test -z "$link_static_flag"; then
12862 # Neither direct hardcoding nor static linking is supported with a
12863 # broken collect2.
12864 hardcode_direct=unsupported
12865 fi
12866 ;;
12867
12868 aix4* | aix5*)
12869 if test "$host_cpu" = ia64; then
12870 # On IA64, the linker does run time linking by default, so we don't
12871 # have to do anything special.
12872 aix_use_runtimelinking=no
12873 exp_sym_flag='-Bexport'
12874 no_entry_flag=""
12875 else
12876 # If we're using GNU nm, then we don't want the "-C" option.
12877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12878 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12879 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'
12880 else
12881 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'
12882 fi
12883 aix_use_runtimelinking=no
12884
12885 # Test if we are trying to use run time linking or normal
12886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12887 # need to do runtime linking.
12888 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12889 for ld_flag in $LDFLAGS; do
12890 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12891 aix_use_runtimelinking=yes
12892 break
12893 fi
12894 done
12895 esac
12896
12897 exp_sym_flag='-bexport'
12898 no_entry_flag='-bnoentry'
12899 fi
12900
12901 # When large executables or shared objects are built, AIX ld can
12902 # have problems creating the table of contents. If linking a library
12903 # or program results in "error TOC overflow" add -mminimal-toc to
12904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12906
12907 archive_cmds=''
12908 hardcode_direct=yes
12909 hardcode_libdir_separator=':'
12910 link_all_deplibs=yes
12911
12912 if test "$GCC" = yes; then
12913 case $host_os in aix4.012|aix4.012.*)
12914 # We only want to do this on AIX 4.2 and lower, the check
12915 # below for broken collect2 doesn't work under 4.3+
12916 collect2name=`${CC} -print-prog-name=collect2`
12917 if test -f "$collect2name" && \
12918 strings "$collect2name" | grep resolve_lib_name >/dev/null
12919 then
12920 # We have reworked collect2
12921 hardcode_direct=yes
12922 else
12923 # We have old collect2
12924 hardcode_direct=unsupported
12925 # It fails to find uninstalled libraries when the uninstalled
12926 # path is not listed in the libpath. Setting hardcode_minus_L
12927 # to unsupported forces relinking
12928 hardcode_minus_L=yes
12929 hardcode_libdir_flag_spec='-L$libdir'
12930 hardcode_libdir_separator=
12931 fi
12932 esac
12933 shared_flag='-shared'
12934 else
12935 # not using gcc
12936 if test "$host_cpu" = ia64; then
12937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12938 # chokes on -Wl,-G. The following line is correct:
12939 shared_flag='-G'
12940 else
12941 if test "$aix_use_runtimelinking" = yes; then
12942 shared_flag='${wl}-G'
12943 else
12944 shared_flag='${wl}-bM:SRE'
12945 fi
12946 fi
12947 fi
12948
12949 # It seems that -bexpall does not export symbols beginning with
12950 # underscore (_), so it is better to generate a list of symbols to export.
12951 always_export_symbols=yes
12952 if test "$aix_use_runtimelinking" = yes; then
12953 # Warning - without using the other runtime loading flags (-brtl),
12954 # -berok will link without error, but may produce a broken library.
12955 allow_undefined_flag='-berok'
12956 # Determine the default libpath from the value encoded in an empty executable.
12957 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012958/* confdefs.h. */
12959_ACEOF
12960cat confdefs.h >>conftest.$ac_ext
12961cat >>conftest.$ac_ext <<_ACEOF
12962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012963
John Criswell7a73b802003-06-30 21:59:07 +000012964int
12965main ()
12966{
John Criswell47fdd832003-07-14 16:52:07 +000012967
John Criswell7a73b802003-06-30 21:59:07 +000012968 ;
12969 return 0;
12970}
12971_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012972rm -f conftest.$ac_objext conftest$ac_exeext
12973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012974 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012975 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012981 { ac_try='test -z "$ac_c_werror_flag"
12982 || test ! -s conftest.err'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; } &&
12988 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012994
John Criswell47fdd832003-07-14 16:52:07 +000012995aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12996}'`
12997# Check for a 64-bit object if we didn't find anything.
12998if 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; }
12999}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000013000else
13001 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013002sed 's/^/| /' conftest.$ac_ext >&5
13003
John Criswell7a73b802003-06-30 21:59:07 +000013004fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013005rm -f conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013007if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000013008
John Criswell47fdd832003-07-14 16:52:07 +000013009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13010 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"
13011 else
13012 if test "$host_cpu" = ia64; then
13013 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13014 allow_undefined_flag="-z nodefs"
13015 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"
13016 else
13017 # Determine the default libpath from the value encoded in an empty executable.
13018 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013019/* confdefs.h. */
13020_ACEOF
13021cat confdefs.h >>conftest.$ac_ext
13022cat >>conftest.$ac_ext <<_ACEOF
13023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013024
John Criswell47fdd832003-07-14 16:52:07 +000013025int
13026main ()
13027{
John Criswell7a73b802003-06-30 21:59:07 +000013028
John Criswell47fdd832003-07-14 16:52:07 +000013029 ;
13030 return 0;
13031}
13032_ACEOF
13033rm -f conftest.$ac_objext conftest$ac_exeext
13034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013035 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013042 { ac_try='test -z "$ac_c_werror_flag"
13043 || test ! -s conftest.err'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013055
John Criswell47fdd832003-07-14 16:52:07 +000013056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13057}'`
13058# Check for a 64-bit object if we didn't find anything.
13059if 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; }
13060}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000013061else
John Criswell47fdd832003-07-14 16:52:07 +000013062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013063sed 's/^/| /' conftest.$ac_ext >&5
13064
John Criswell47fdd832003-07-14 16:52:07 +000013065fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013066rm -f conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000013069
John Criswell47fdd832003-07-14 16:52:07 +000013070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13071 # Warning - without using the other run time loading flags,
13072 # -berok will link without error, but may produce a broken library.
13073 no_undefined_flag=' ${wl}-bernotok'
13074 allow_undefined_flag=' ${wl}-berok'
13075 # -bexpall does not export symbols beginning with underscore (_)
13076 always_export_symbols=yes
13077 # Exported symbols can be pulled into shared objects from archives
13078 whole_archive_flag_spec=' '
13079 archive_cmds_need_lc=yes
13080 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000013081 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 +000013082 fi
13083 fi
John Criswell7a73b802003-06-30 21:59:07 +000013084 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013085
13086 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013087 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 +000013088 hardcode_libdir_flag_spec='-L$libdir'
13089 hardcode_minus_L=yes
13090 # see comment about different semantics on the GNU ld section
13091 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000013092 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013093
Reid Spencer2706f8c2004-09-19 23:53:36 +000013094 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000013095 export_dynamic_flag_spec=-rdynamic
13096 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013097
John Criswell47fdd832003-07-14 16:52:07 +000013098 cygwin* | mingw* | pw32*)
13099 # When not using gcc, we currently assume that we are using
13100 # Microsoft Visual C++.
13101 # hardcode_libdir_flag_spec is actually meaningless, as there is
13102 # no search path for DLLs.
13103 hardcode_libdir_flag_spec=' '
13104 allow_undefined_flag=unsupported
13105 # Tell ltmain to make .lib files, not .a files.
13106 libext=lib
13107 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013108 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000013109 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000013110 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000013111 # The linker will automatically build a .lib file if we build a DLL.
13112 old_archive_From_new_cmds='true'
13113 # FIXME: Should let the user specify the lib program.
13114 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13115 fix_srcfile_path='`cygpath -w "$srcfile"`'
13116 enable_shared_with_static_runtimes=yes
13117 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013118
John Criswell47fdd832003-07-14 16:52:07 +000013119 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000013120 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013121 rhapsody* | darwin1.[012])
13122 allow_undefined_flag='${wl}-undefined ${wl}suppress'
13123 ;;
13124 *) # Darwin 1.3 on
13125 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13126 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13127 else
13128 case ${MACOSX_DEPLOYMENT_TARGET} in
13129 10.[012])
13130 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13131 ;;
13132 10.*)
13133 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13134 ;;
13135 esac
13136 fi
13137 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013138 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000013139 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000013140 hardcode_direct=no
13141 hardcode_automatic=yes
13142 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000013143 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000013144 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013145 if test "$GCC" = yes ; then
13146 output_verbose_link_cmd='echo'
13147 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13148 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13149 # 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 +000013150 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}'
13151 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 +000013152 else
13153 case "$cc_basename" in
13154 xlc*)
13155 output_verbose_link_cmd='echo'
13156 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13157 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13158 # 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 +000013159 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}'
13160 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 +000013161 ;;
13162 *)
13163 ld_shlibs=no
13164 ;;
13165 esac
John Criswell7a73b802003-06-30 21:59:07 +000013166 fi
John Criswell47fdd832003-07-14 16:52:07 +000013167 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013168
John Criswell47fdd832003-07-14 16:52:07 +000013169 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000013170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000013171 hardcode_libdir_flag_spec='-L$libdir'
13172 hardcode_shlibpath_var=no
13173 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013174
John Criswell47fdd832003-07-14 16:52:07 +000013175 freebsd1*)
13176 ld_shlibs=no
13177 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013178
John Criswell47fdd832003-07-14 16:52:07 +000013179 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13180 # support. Future versions do this automatically, but an explicit c++rt0.o
13181 # does not break anything, and helps significantly (at the cost of a little
13182 # extra space).
13183 freebsd2.2*)
13184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13185 hardcode_libdir_flag_spec='-R$libdir'
13186 hardcode_direct=yes
13187 hardcode_shlibpath_var=no
13188 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013189
John Criswell47fdd832003-07-14 16:52:07 +000013190 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13191 freebsd2*)
13192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13193 hardcode_direct=yes
13194 hardcode_minus_L=yes
13195 hardcode_shlibpath_var=no
13196 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013197
John Criswell47fdd832003-07-14 16:52:07 +000013198 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013199 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013200 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13201 hardcode_libdir_flag_spec='-R$libdir'
13202 hardcode_direct=yes
13203 hardcode_shlibpath_var=no
13204 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013205
John Criswell47fdd832003-07-14 16:52:07 +000013206 hpux9*)
13207 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013208 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 +000013209 else
Reid Spencer177dbe22004-10-13 01:01:03 +000013210 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 +000013211 fi
13212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13213 hardcode_libdir_separator=:
13214 hardcode_direct=yes
13215
13216 # hardcode_minus_L: Not really in the search PATH,
13217 # but as the default location of the library.
13218 hardcode_minus_L=yes
13219 export_dynamic_flag_spec='${wl}-E'
13220 ;;
13221
13222 hpux10* | hpux11*)
13223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13224 case "$host_cpu" in
13225 hppa*64*|ia64*)
13226 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 ;;
13228 *)
13229 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13230 ;;
13231 esac
13232 else
13233 case "$host_cpu" in
13234 hppa*64*|ia64*)
13235 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13236 ;;
13237 *)
13238 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13239 ;;
13240 esac
13241 fi
13242 if test "$with_gnu_ld" = no; then
13243 case "$host_cpu" in
13244 hppa*64*)
13245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13246 hardcode_libdir_flag_spec_ld='+b $libdir'
13247 hardcode_libdir_separator=:
13248 hardcode_direct=no
13249 hardcode_shlibpath_var=no
13250 ;;
13251 ia64*)
13252 hardcode_libdir_flag_spec='-L$libdir'
13253 hardcode_direct=no
13254 hardcode_shlibpath_var=no
13255
13256 # hardcode_minus_L: Not really in the search PATH,
13257 # but as the default location of the library.
13258 hardcode_minus_L=yes
13259 ;;
13260 *)
13261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13262 hardcode_libdir_separator=:
13263 hardcode_direct=yes
13264 export_dynamic_flag_spec='${wl}-E'
13265
13266 # hardcode_minus_L: Not really in the search PATH,
13267 # but as the default location of the library.
13268 hardcode_minus_L=yes
13269 ;;
13270 esac
13271 fi
13272 ;;
13273
13274 irix5* | irix6* | nonstopux*)
13275 if test "$GCC" = yes; then
13276 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'
13277 else
13278 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'
13279 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13280 fi
13281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13282 hardcode_libdir_separator=:
13283 link_all_deplibs=yes
13284 ;;
13285
13286 netbsd*)
13287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13289 else
13290 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13291 fi
13292 hardcode_libdir_flag_spec='-R$libdir'
13293 hardcode_direct=yes
13294 hardcode_shlibpath_var=no
13295 ;;
13296
13297 newsos6)
13298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_direct=yes
13300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13301 hardcode_libdir_separator=:
13302 hardcode_shlibpath_var=no
13303 ;;
13304
13305 openbsd*)
13306 hardcode_direct=yes
13307 hardcode_shlibpath_var=no
13308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013310 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 +000013311 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13312 export_dynamic_flag_spec='${wl}-E'
13313 else
13314 case $host_os in
13315 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13317 hardcode_libdir_flag_spec='-R$libdir'
13318 ;;
13319 *)
13320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13322 ;;
13323 esac
13324 fi
13325 ;;
13326
13327 os2*)
13328 hardcode_libdir_flag_spec='-L$libdir'
13329 hardcode_minus_L=yes
13330 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013331 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 +000013332 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13333 ;;
13334
13335 osf3*)
13336 if test "$GCC" = yes; then
13337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13338 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'
13339 else
13340 allow_undefined_flag=' -expect_unresolved \*'
13341 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'
13342 fi
13343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13344 hardcode_libdir_separator=:
13345 ;;
13346
13347 osf4* | osf5*) # as osf3* with the addition of -msym flag
13348 if test "$GCC" = yes; then
13349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13350 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'
13351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13352 else
13353 allow_undefined_flag=' -expect_unresolved \*'
13354 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 +000013355 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13356 $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'
13357
John Criswell47fdd832003-07-14 16:52:07 +000013358 # Both c and cxx compiler support -rpath directly
13359 hardcode_libdir_flag_spec='-rpath $libdir'
13360 fi
13361 hardcode_libdir_separator=:
13362 ;;
13363
13364 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13366 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013367 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013368 runpath_var=LD_RUN_PATH
13369 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013370 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013371
John Criswell47fdd832003-07-14 16:52:07 +000013372 solaris*)
13373 no_undefined_flag=' -z text'
13374 if test "$GCC" = yes; then
13375 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013376 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13377 $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 +000013378 else
13379 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013380 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13381 $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 +000013382 fi
13383 hardcode_libdir_flag_spec='-R$libdir'
13384 hardcode_shlibpath_var=no
13385 case $host_os in
13386 solaris2.[0-5] | solaris2.[0-5].*) ;;
13387 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13388 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13389 esac
13390 link_all_deplibs=yes
13391 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013392
John Criswell47fdd832003-07-14 16:52:07 +000013393 sunos4*)
13394 if test "x$host_vendor" = xsequent; then
13395 # Use $CC to link under sequent, because it throws in some extra .o
13396 # files that make .init and .fini sections work.
13397 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13398 else
13399 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13400 fi
13401 hardcode_libdir_flag_spec='-L$libdir'
13402 hardcode_direct=yes
13403 hardcode_minus_L=yes
13404 hardcode_shlibpath_var=no
13405 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013406
John Criswell47fdd832003-07-14 16:52:07 +000013407 sysv4)
13408 case $host_vendor in
13409 sni)
13410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13411 hardcode_direct=yes # is this really true???
13412 ;;
13413 siemens)
13414 ## LD is ld it makes a PLAMLIB
13415 ## CC just makes a GrossModule.
13416 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13417 reload_cmds='$CC -r -o $output$reload_objs'
13418 hardcode_direct=no
13419 ;;
13420 motorola)
13421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13422 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13423 ;;
13424 esac
13425 runpath_var='LD_RUN_PATH'
13426 hardcode_shlibpath_var=no
13427 ;;
13428
13429 sysv4.3*)
13430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431 hardcode_shlibpath_var=no
13432 export_dynamic_flag_spec='-Bexport'
13433 ;;
13434
13435 sysv4*MP*)
13436 if test -d /usr/nec; then
13437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438 hardcode_shlibpath_var=no
13439 runpath_var=LD_RUN_PATH
13440 hardcode_runpath_var=yes
13441 ld_shlibs=yes
13442 fi
13443 ;;
13444
13445 sysv4.2uw2*)
13446 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13447 hardcode_direct=yes
13448 hardcode_minus_L=no
13449 hardcode_shlibpath_var=no
13450 hardcode_runpath_var=yes
13451 runpath_var=LD_RUN_PATH
13452 ;;
13453
13454 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13455 no_undefined_flag='${wl}-z ${wl}text'
13456 if test "$GCC" = yes; then
13457 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13458 else
13459 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13460 fi
13461 runpath_var='LD_RUN_PATH'
13462 hardcode_shlibpath_var=no
13463 ;;
13464
13465 sysv5*)
13466 no_undefined_flag=' -z text'
13467 # $CC -shared without GNU ld will not create a library from C++
13468 # object files and a static libstdc++, better avoid it by now
13469 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013470 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13471 $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 +000013472 hardcode_libdir_flag_spec=
13473 hardcode_shlibpath_var=no
13474 runpath_var='LD_RUN_PATH'
13475 ;;
13476
13477 uts4*)
13478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_libdir_flag_spec='-L$libdir'
13480 hardcode_shlibpath_var=no
13481 ;;
13482
13483 *)
13484 ld_shlibs=no
13485 ;;
13486 esac
13487 fi
13488
John Criswell7a73b802003-06-30 21:59:07 +000013489echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13490echo "${ECHO_T}$ld_shlibs" >&6
13491test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013492
John Criswell47fdd832003-07-14 16:52:07 +000013493variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13494if test "$GCC" = yes; then
13495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13496fi
13497
13498#
13499# Do we need to explicitly link libc?
13500#
13501case "x$archive_cmds_need_lc" in
13502x|xyes)
13503 # Assume -lc should be added
13504 archive_cmds_need_lc=yes
13505
13506 if test "$enable_shared" = yes && test "$GCC" = yes; then
13507 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013508 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013509 # FIXME: we may have to deal with multi-command sequences.
13510 ;;
13511 '$CC '*)
13512 # Test whether the compiler implicitly links with -lc since on some
13513 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13514 # to ld, don't add -lc before -lgcc.
13515 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13516echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13517 $rm conftest*
13518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13519
13520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } 2>conftest.err; then
13525 soname=conftest
13526 lib=conftest
13527 libobjs=conftest.$ac_objext
13528 deplibs=
13529 wl=$lt_prog_compiler_wl
13530 compiler_flags=-v
13531 linker_flags=-v
13532 verstring=
13533 output_objdir=.
13534 libname=conftest
13535 lt_save_allow_undefined_flag=$allow_undefined_flag
13536 allow_undefined_flag=
13537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13538 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }
13542 then
13543 archive_cmds_need_lc=no
13544 else
13545 archive_cmds_need_lc=yes
13546 fi
13547 allow_undefined_flag=$lt_save_allow_undefined_flag
13548 else
13549 cat conftest.err 1>&5
13550 fi
13551 $rm conftest*
13552 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13553echo "${ECHO_T}$archive_cmds_need_lc" >&6
13554 ;;
13555 esac
13556 fi
13557 ;;
13558esac
13559
John Criswell7a73b802003-06-30 21:59:07 +000013560echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13561echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13562library_names_spec=
13563libname_spec='lib$name'
13564soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013565shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013566postinstall_cmds=
13567postuninstall_cmds=
13568finish_cmds=
13569finish_eval=
13570shlibpath_var=
13571shlibpath_overrides_runpath=unknown
13572version_type=none
13573dynamic_linker="$host_os ld.so"
13574sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013575if test "$GCC" = yes; then
13576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13578 # if the path contains ";" then we assume it to be the separator
13579 # otherwise default to the standard path separator (i.e. ":") - it is
13580 # assumed that no part of a normal pathname contains ";" but that should
13581 # okay in the real world where ";" in dirpaths is itself problematic.
13582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13583 else
13584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13585 fi
13586else
13587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13588fi
13589need_lib_prefix=unknown
13590hardcode_into_libs=no
13591
13592# when you set need_version to no, make sure it does not cause -set_version
13593# flags to be left without arguments
13594need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013595
13596case $host_os in
13597aix3*)
13598 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013600 shlibpath_var=LIBPATH
13601
John Criswell47fdd832003-07-14 16:52:07 +000013602 # AIX 3 has no versioning support, so we append a major version to the name.
13603 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013604 ;;
13605
13606aix4* | aix5*)
13607 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013608 need_lib_prefix=no
13609 need_version=no
13610 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013611 if test "$host_cpu" = ia64; then
13612 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013614 shlibpath_var=LD_LIBRARY_PATH
13615 else
13616 # With GCC up to 2.95.x, collect2 would create an import file
13617 # for dependence libraries. The import file would start with
13618 # the line `#! .'. This would cause the generated library to
13619 # depend on `.', always an invalid library. This was fixed in
13620 # development snapshots of GCC prior to 3.0.
13621 case $host_os in
13622 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13624 echo ' yes '
13625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13626 :
13627 else
13628 can_build_shared=no
13629 fi
13630 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013631 esac
John Criswell47fdd832003-07-14 16:52:07 +000013632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13633 # soname into executable. Probably we can add versioning support to
13634 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013635 if test "$aix_use_runtimelinking" = yes; then
13636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13637 # instead of lib<name>.a to let people know that these are not
13638 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013640 else
13641 # We preserve .a as extension for shared libraries through AIX4.2
13642 # and later when we are not doing run time linking.
13643 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013644 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013645 fi
13646 shlibpath_var=LIBPATH
13647 fi
13648 ;;
13649
13650amigaos*)
13651 library_names_spec='$libname.ixlibrary $libname.a'
13652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013653 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 +000013654 ;;
13655
13656beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013657 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013658 dynamic_linker="$host_os ld.so"
13659 shlibpath_var=LIBRARY_PATH
13660 ;;
13661
Reid Spencer2706f8c2004-09-19 23:53:36 +000013662bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013663 version_type=linux
13664 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13668 shlibpath_var=LD_LIBRARY_PATH
13669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013671 # the default ld.so.conf also contains /usr/contrib/lib and
13672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13673 # libtool to hard-code these into programs
13674 ;;
13675
13676cygwin* | mingw* | pw32*)
13677 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013678 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013679 need_version=no
13680 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013681
John Criswell7a73b802003-06-30 21:59:07 +000013682 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013683 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013684 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013686 postinstall_cmds='base_file=`basename \${file}`~
13687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13688 dldir=$destdir/`dirname \$dlpath`~
13689 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013690 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13692 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013693 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013694 shlibpath_overrides_runpath=yes
13695
13696 case $host_os in
13697 cygwin*)
13698 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13699 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 +000013700 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013701 ;;
13702 mingw*)
13703 # MinGW DLLs use traditional 'lib' prefix
13704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13705 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13706 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13707 # It is most probably a Windows format PATH printed by
13708 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13709 # path with ; separators, and with drive letters. We can handle the
13710 # drive letters (cygwin fileutils understands them), so leave them,
13711 # especially as we might pass files found there to a mingw objdump,
13712 # which wouldn't understand a cygwinified path. Ahh.
13713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13714 else
13715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13716 fi
13717 ;;
13718 pw32*)
13719 # pw32 DLLs use 'pw' prefix rather than 'lib'
13720 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13721 ;;
13722 esac
John Criswell7a73b802003-06-30 21:59:07 +000013723 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013724
John Criswell7a73b802003-06-30 21:59:07 +000013725 *)
John Criswell47fdd832003-07-14 16:52:07 +000013726 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013727 ;;
13728 esac
13729 dynamic_linker='Win32 ld.exe'
13730 # FIXME: first we should search . and the directory the executable is in
13731 shlibpath_var=PATH
13732 ;;
13733
13734darwin* | rhapsody*)
13735 dynamic_linker="$host_os dyld"
13736 version_type=darwin
13737 need_lib_prefix=no
13738 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013739 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013740 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013741 shlibpath_overrides_runpath=yes
13742 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013743 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013744 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013745 if test "$GCC" = yes; then
13746 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"`
13747 else
13748 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013749 fi
13750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13751 ;;
13752
13753dgux*)
13754 version_type=linux
13755 need_lib_prefix=no
13756 need_version=no
13757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13758 soname_spec='${libname}${release}${shared_ext}$major'
13759 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013760 ;;
13761
13762freebsd1*)
13763 dynamic_linker=no
13764 ;;
13765
Reid Spencer2706f8c2004-09-19 23:53:36 +000013766kfreebsd*-gnu)
13767 version_type=linux
13768 need_lib_prefix=no
13769 need_version=no
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13771 soname_spec='${libname}${release}${shared_ext}$major'
13772 shlibpath_var=LD_LIBRARY_PATH
13773 shlibpath_overrides_runpath=no
13774 hardcode_into_libs=yes
13775 dynamic_linker='GNU ld.so'
13776 ;;
13777
John Criswell7a73b802003-06-30 21:59:07 +000013778freebsd*)
13779 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13780 version_type=freebsd-$objformat
13781 case $version_type in
13782 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013784 need_version=no
13785 need_lib_prefix=no
13786 ;;
13787 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013789 need_version=yes
13790 ;;
13791 esac
13792 shlibpath_var=LD_LIBRARY_PATH
13793 case $host_os in
13794 freebsd2*)
13795 shlibpath_overrides_runpath=yes
13796 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013797 freebsd3.01* | freebsdelf3.01*)
13798 shlibpath_overrides_runpath=yes
13799 hardcode_into_libs=yes
13800 ;;
13801 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013802 shlibpath_overrides_runpath=no
13803 hardcode_into_libs=yes
13804 ;;
13805 esac
13806 ;;
13807
13808gnu*)
13809 version_type=linux
13810 need_lib_prefix=no
13811 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13813 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013814 shlibpath_var=LD_LIBRARY_PATH
13815 hardcode_into_libs=yes
13816 ;;
13817
13818hpux9* | hpux10* | hpux11*)
13819 # Give a soname corresponding to the major version so that dld.sl refuses to
13820 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013821 version_type=sunos
13822 need_lib_prefix=no
13823 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013824 case "$host_cpu" in
13825 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013826 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013827 hardcode_into_libs=yes
13828 dynamic_linker="$host_os dld.so"
13829 shlibpath_var=LD_LIBRARY_PATH
13830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832 soname_spec='${libname}${release}${shared_ext}$major'
13833 if test "X$HPUX_IA64_MODE" = X32; then
13834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13835 else
13836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13837 fi
13838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13839 ;;
13840 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013841 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013842 hardcode_into_libs=yes
13843 dynamic_linker="$host_os dld.sl"
13844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13850 ;;
13851 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013852 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013853 dynamic_linker="$host_os dld.sl"
13854 shlibpath_var=SHLIB_PATH
13855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857 soname_spec='${libname}${release}${shared_ext}$major'
13858 ;;
13859 esac
John Criswell7a73b802003-06-30 21:59:07 +000013860 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13861 postinstall_cmds='chmod 555 $lib'
13862 ;;
13863
John Criswell47fdd832003-07-14 16:52:07 +000013864irix5* | irix6* | nonstopux*)
13865 case $host_os in
13866 nonstopux*) version_type=nonstopux ;;
13867 *)
13868 if test "$lt_cv_prog_gnu_ld" = yes; then
13869 version_type=linux
13870 else
13871 version_type=irix
13872 fi ;;
13873 esac
John Criswell7a73b802003-06-30 21:59:07 +000013874 need_lib_prefix=no
13875 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013876 soname_spec='${libname}${release}${shared_ext}$major'
13877 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 +000013878 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013879 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013880 libsuff= shlibsuff=
13881 ;;
13882 *)
13883 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013884 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13885 libsuff= shlibsuff= libmagic=32-bit;;
13886 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13887 libsuff=32 shlibsuff=N32 libmagic=N32;;
13888 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13889 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013890 *) libsuff= shlibsuff= libmagic=never-match;;
13891 esac
13892 ;;
13893 esac
13894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13895 shlibpath_overrides_runpath=no
13896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013898 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013899 ;;
13900
13901# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013902linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013903 dynamic_linker=no
13904 ;;
13905
13906# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013907linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013908 version_type=linux
13909 need_lib_prefix=no
13910 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13914 shlibpath_var=LD_LIBRARY_PATH
13915 shlibpath_overrides_runpath=no
13916 # This implies no fast_install, which is unacceptable.
13917 # Some rework will be needed to allow for fast_install
13918 # before this can be enabled.
13919 hardcode_into_libs=yes
13920
Reid Spencer2706f8c2004-09-19 23:53:36 +000013921 # Append ld.so.conf contents to the search path
13922 if test -f /etc/ld.so.conf; then
13923 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13925 fi
13926
John Criswell7a73b802003-06-30 21:59:07 +000013927 # We used to test for /lib/ld.so.1 and disable shared libraries on
13928 # powerpc, because MkLinux only supported shared libraries with the
13929 # GNU dynamic linker. Since this was broken with cross compilers,
13930 # most powerpc-linux boxes support dynamic linking these days and
13931 # people can always --disable-shared, the test was removed, and we
13932 # assume the GNU/Linux dynamic linker is in use.
13933 dynamic_linker='GNU/Linux ld.so'
13934 ;;
13935
Reid Spencer2706f8c2004-09-19 23:53:36 +000013936knetbsd*-gnu)
13937 version_type=linux
13938 need_lib_prefix=no
13939 need_version=no
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13941 soname_spec='${libname}${release}${shared_ext}$major'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 shlibpath_overrides_runpath=no
13944 hardcode_into_libs=yes
13945 dynamic_linker='GNU ld.so'
13946 ;;
13947
John Criswell7a73b802003-06-30 21:59:07 +000013948netbsd*)
13949 version_type=sunos
13950 need_lib_prefix=no
13951 need_version=no
13952 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13955 dynamic_linker='NetBSD (a.out) ld.so'
13956 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013958 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013959 dynamic_linker='NetBSD ld.elf_so'
13960 fi
13961 shlibpath_var=LD_LIBRARY_PATH
13962 shlibpath_overrides_runpath=yes
13963 hardcode_into_libs=yes
13964 ;;
13965
13966newsos6)
13967 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969 shlibpath_var=LD_LIBRARY_PATH
13970 shlibpath_overrides_runpath=yes
13971 ;;
13972
Reid Spencer2706f8c2004-09-19 23:53:36 +000013973nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013974 version_type=linux
13975 need_lib_prefix=no
13976 need_version=no
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=yes
13981 ;;
13982
13983openbsd*)
13984 version_type=sunos
13985 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013986 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13989 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013990 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 +000013991 case $host_os in
13992 openbsd2.[89] | openbsd2.[89].*)
13993 shlibpath_overrides_runpath=no
13994 ;;
13995 *)
13996 shlibpath_overrides_runpath=yes
13997 ;;
13998 esac
John Criswell7a73b802003-06-30 21:59:07 +000013999 else
14000 shlibpath_overrides_runpath=yes
14001 fi
John Criswell7a73b802003-06-30 21:59:07 +000014002 ;;
14003
14004os2*)
14005 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014006 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000014007 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000014008 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000014009 dynamic_linker='OS/2 ld.exe'
14010 shlibpath_var=LIBPATH
14011 ;;
14012
14013osf3* | osf4* | osf5*)
14014 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000014015 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000014016 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014017 soname_spec='${libname}${release}${shared_ext}$major'
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014019 shlibpath_var=LD_LIBRARY_PATH
14020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14022 ;;
14023
14024sco3.2v5*)
14025 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000014026 soname_spec='${libname}${release}${shared_ext}$major'
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014028 shlibpath_var=LD_LIBRARY_PATH
14029 ;;
14030
14031solaris*)
14032 version_type=linux
14033 need_lib_prefix=no
14034 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014037 shlibpath_var=LD_LIBRARY_PATH
14038 shlibpath_overrides_runpath=yes
14039 hardcode_into_libs=yes
14040 # ldd complains unless libraries are executable
14041 postinstall_cmds='chmod +x $lib'
14042 ;;
14043
14044sunos4*)
14045 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000014046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000014047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14048 shlibpath_var=LD_LIBRARY_PATH
14049 shlibpath_overrides_runpath=yes
14050 if test "$with_gnu_ld" = yes; then
14051 need_lib_prefix=no
14052 fi
14053 need_version=yes
14054 ;;
14055
14056sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14057 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014060 shlibpath_var=LD_LIBRARY_PATH
14061 case $host_vendor in
14062 sni)
14063 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000014064 need_lib_prefix=no
14065 export_dynamic_flag_spec='${wl}-Blargedynsym'
14066 runpath_var=LD_RUN_PATH
14067 ;;
14068 siemens)
14069 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000014070 ;;
14071 motorola)
14072 need_lib_prefix=no
14073 need_version=no
14074 shlibpath_overrides_runpath=no
14075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14076 ;;
14077 esac
14078 ;;
14079
John Criswell7a73b802003-06-30 21:59:07 +000014080sysv4*MP*)
14081 if test -d /usr/nec ;then
14082 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14084 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000014085 shlibpath_var=LD_LIBRARY_PATH
14086 fi
14087 ;;
14088
John Criswell47fdd832003-07-14 16:52:07 +000014089uts4*)
14090 version_type=linux
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 ;;
14095
John Criswell7a73b802003-06-30 21:59:07 +000014096*)
14097 dynamic_linker=no
14098 ;;
14099esac
14100echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14101echo "${ECHO_T}$dynamic_linker" >&6
14102test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014103
Reid Spencer2706f8c2004-09-19 23:53:36 +000014104echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14105echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14106hardcode_action=
14107if test -n "$hardcode_libdir_flag_spec" || \
14108 test -n "$runpath_var" || \
14109 test "X$hardcode_automatic" = "Xyes" ; then
14110
14111 # We can hardcode non-existant directories.
14112 if test "$hardcode_direct" != no &&
14113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14114 # have to relink, otherwise we might link with an installed library
14115 # when we should be linking with a yet-to-be-installed one
14116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14117 test "$hardcode_minus_L" != no; then
14118 # Linking always hardcodes the temporary library directory.
14119 hardcode_action=relink
14120 else
14121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14122 hardcode_action=immediate
14123 fi
14124else
14125 # We cannot hardcode anything, or else we can only hardcode existing
14126 # directories.
14127 hardcode_action=unsupported
14128fi
14129echo "$as_me:$LINENO: result: $hardcode_action" >&5
14130echo "${ECHO_T}$hardcode_action" >&6
14131
14132if test "$hardcode_action" = relink; then
14133 # Fast installation is not supported
14134 enable_fast_install=no
14135elif test "$shlibpath_overrides_runpath" = yes ||
14136 test "$enable_shared" = no; then
14137 # Fast installation is not necessary
14138 enable_fast_install=needless
14139fi
14140
14141striplib=
14142old_striplib=
14143echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14144echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14145if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14147 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14148 echo "$as_me:$LINENO: result: yes" >&5
14149echo "${ECHO_T}yes" >&6
14150else
14151# FIXME - insert some real tests, host_os isn't really good enough
14152 case $host_os in
14153 darwin*)
14154 if test -n "$STRIP" ; then
14155 striplib="$STRIP -x"
14156 echo "$as_me:$LINENO: result: yes" >&5
14157echo "${ECHO_T}yes" >&6
14158 else
14159 echo "$as_me:$LINENO: result: no" >&5
14160echo "${ECHO_T}no" >&6
14161fi
14162 ;;
14163 *)
14164 echo "$as_me:$LINENO: result: no" >&5
14165echo "${ECHO_T}no" >&6
14166 ;;
14167 esac
14168fi
14169
John Criswell7a73b802003-06-30 21:59:07 +000014170if test "x$enable_dlopen" != xyes; then
14171 enable_dlopen=unknown
14172 enable_dlopen_self=unknown
14173 enable_dlopen_self_static=unknown
14174else
14175 lt_cv_dlopen=no
14176 lt_cv_dlopen_libs=
14177
14178 case $host_os in
14179 beos*)
14180 lt_cv_dlopen="load_add_on"
14181 lt_cv_dlopen_libs=
14182 lt_cv_dlopen_self=yes
14183 ;;
14184
John Criswell47fdd832003-07-14 16:52:07 +000014185 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000014186 lt_cv_dlopen="LoadLibrary"
14187 lt_cv_dlopen_libs=
14188 ;;
14189
John Criswell47fdd832003-07-14 16:52:07 +000014190 cygwin*)
14191 lt_cv_dlopen="dlopen"
14192 lt_cv_dlopen_libs=
14193 ;;
14194
14195 darwin*)
14196 # if libdl is installed we need to link against it
14197 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14198echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14199if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201else
14202 ac_check_lib_save_LIBS=$LIBS
14203LIBS="-ldl $LIBS"
14204cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014205/* confdefs.h. */
14206_ACEOF
14207cat confdefs.h >>conftest.$ac_ext
14208cat >>conftest.$ac_ext <<_ACEOF
14209/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000014210
14211/* Override any gcc2 internal prototype to avoid an error. */
14212#ifdef __cplusplus
14213extern "C"
14214#endif
14215/* We use char because int might match the return type of a gcc2
14216 builtin and then its argument prototype would still apply. */
14217char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000014218int
14219main ()
14220{
14221dlopen ();
14222 ;
14223 return 0;
14224}
14225_ACEOF
14226rm -f conftest.$ac_objext conftest$ac_exeext
14227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014228 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014229 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014235 { ac_try='test -z "$ac_c_werror_flag"
14236 || test ! -s conftest.err'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; } &&
14242 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14248 ac_cv_lib_dl_dlopen=yes
14249else
14250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014251sed 's/^/| /' conftest.$ac_ext >&5
14252
John Criswell47fdd832003-07-14 16:52:07 +000014253ac_cv_lib_dl_dlopen=no
14254fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014255rm -f conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014257LIBS=$ac_check_lib_save_LIBS
14258fi
14259echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14260echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14261if test $ac_cv_lib_dl_dlopen = yes; then
14262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14263else
14264
14265 lt_cv_dlopen="dyld"
14266 lt_cv_dlopen_libs=
14267 lt_cv_dlopen_self=yes
14268
14269fi
14270
14271 ;;
14272
John Criswell7a73b802003-06-30 21:59:07 +000014273 *)
14274 echo "$as_me:$LINENO: checking for shl_load" >&5
14275echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14276if test "${ac_cv_func_shl_load+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014280/* confdefs.h. */
14281_ACEOF
14282cat confdefs.h >>conftest.$ac_ext
14283cat >>conftest.$ac_ext <<_ACEOF
14284/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014285/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14287#define shl_load innocuous_shl_load
14288
John Criswell7a73b802003-06-30 21:59:07 +000014289/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014290 which can conflict with char shl_load (); below.
14291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14292 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014293
John Criswell0c38eaf2003-09-10 15:17:25 +000014294#ifdef __STDC__
14295# include <limits.h>
14296#else
14297# include <assert.h>
14298#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014299
14300#undef shl_load
14301
John Criswell7a73b802003-06-30 21:59:07 +000014302/* Override any gcc2 internal prototype to avoid an error. */
14303#ifdef __cplusplus
14304extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014305{
John Criswell7a73b802003-06-30 21:59:07 +000014306#endif
14307/* We use char because int might match the return type of a gcc2
14308 builtin and then its argument prototype would still apply. */
14309char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014310/* The GNU C library defines this for functions which it implements
14311 to always fail with ENOSYS. Some functions are actually named
14312 something starting with __ and the normal name is an alias. */
14313#if defined (__stub_shl_load) || defined (__stub___shl_load)
14314choke me
14315#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014316char (*f) () = shl_load;
14317#endif
14318#ifdef __cplusplus
14319}
John Criswell7a73b802003-06-30 21:59:07 +000014320#endif
14321
John Criswell0c38eaf2003-09-10 15:17:25 +000014322int
14323main ()
14324{
14325return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014326 ;
14327 return 0;
14328}
14329_ACEOF
14330rm -f conftest.$ac_objext conftest$ac_exeext
14331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014332 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014333 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014339 { ac_try='test -z "$ac_c_werror_flag"
14340 || test ! -s conftest.err'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; } &&
14346 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_cv_func_shl_load=yes
14353else
14354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014355sed 's/^/| /' conftest.$ac_ext >&5
14356
John Criswell7a73b802003-06-30 21:59:07 +000014357ac_cv_func_shl_load=no
14358fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014359rm -f conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014361fi
14362echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14363echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14364if test $ac_cv_func_shl_load = yes; then
14365 lt_cv_dlopen="shl_load"
14366else
14367 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14368echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14369if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371else
14372 ac_check_lib_save_LIBS=$LIBS
14373LIBS="-ldld $LIBS"
14374cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014375/* confdefs.h. */
14376_ACEOF
14377cat confdefs.h >>conftest.$ac_ext
14378cat >>conftest.$ac_ext <<_ACEOF
14379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014380
14381/* Override any gcc2 internal prototype to avoid an error. */
14382#ifdef __cplusplus
14383extern "C"
14384#endif
14385/* We use char because int might match the return type of a gcc2
14386 builtin and then its argument prototype would still apply. */
14387char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014388int
14389main ()
14390{
14391shl_load ();
14392 ;
14393 return 0;
14394}
14395_ACEOF
14396rm -f conftest.$ac_objext conftest$ac_exeext
14397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014398 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014399 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_lib_dld_shl_load=yes
14419else
14420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014421sed 's/^/| /' conftest.$ac_ext >&5
14422
John Criswell7a73b802003-06-30 21:59:07 +000014423ac_cv_lib_dld_shl_load=no
14424fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014425rm -f conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014427LIBS=$ac_check_lib_save_LIBS
14428fi
14429echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14430echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14431if test $ac_cv_lib_dld_shl_load = yes; then
14432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14433else
14434 echo "$as_me:$LINENO: checking for dlopen" >&5
14435echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14436if test "${ac_cv_func_dlopen+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438else
14439 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014440/* confdefs.h. */
14441_ACEOF
14442cat confdefs.h >>conftest.$ac_ext
14443cat >>conftest.$ac_ext <<_ACEOF
14444/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014445/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14447#define dlopen innocuous_dlopen
14448
John Criswell7a73b802003-06-30 21:59:07 +000014449/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014450 which can conflict with char dlopen (); below.
14451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14452 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014453
John Criswell0c38eaf2003-09-10 15:17:25 +000014454#ifdef __STDC__
14455# include <limits.h>
14456#else
14457# include <assert.h>
14458#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014459
14460#undef dlopen
14461
John Criswell7a73b802003-06-30 21:59:07 +000014462/* Override any gcc2 internal prototype to avoid an error. */
14463#ifdef __cplusplus
14464extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014465{
John Criswell7a73b802003-06-30 21:59:07 +000014466#endif
14467/* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14469char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014470/* The GNU C library defines this for functions which it implements
14471 to always fail with ENOSYS. Some functions are actually named
14472 something starting with __ and the normal name is an alias. */
14473#if defined (__stub_dlopen) || defined (__stub___dlopen)
14474choke me
14475#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014476char (*f) () = dlopen;
14477#endif
14478#ifdef __cplusplus
14479}
John Criswell7a73b802003-06-30 21:59:07 +000014480#endif
14481
John Criswell0c38eaf2003-09-10 15:17:25 +000014482int
14483main ()
14484{
14485return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014486 ;
14487 return 0;
14488}
14489_ACEOF
14490rm -f conftest.$ac_objext conftest$ac_exeext
14491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014492 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014499 { ac_try='test -z "$ac_c_werror_flag"
14500 || test ! -s conftest.err'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_func_dlopen=yes
14513else
14514 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014515sed 's/^/| /' conftest.$ac_ext >&5
14516
John Criswell7a73b802003-06-30 21:59:07 +000014517ac_cv_func_dlopen=no
14518fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014519rm -f conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014521fi
14522echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14523echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14524if test $ac_cv_func_dlopen = yes; then
14525 lt_cv_dlopen="dlopen"
14526else
14527 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14528echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14529if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14531else
14532 ac_check_lib_save_LIBS=$LIBS
14533LIBS="-ldl $LIBS"
14534cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014535/* confdefs.h. */
14536_ACEOF
14537cat confdefs.h >>conftest.$ac_ext
14538cat >>conftest.$ac_ext <<_ACEOF
14539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014540
14541/* Override any gcc2 internal prototype to avoid an error. */
14542#ifdef __cplusplus
14543extern "C"
14544#endif
14545/* We use char because int might match the return type of a gcc2
14546 builtin and then its argument prototype would still apply. */
14547char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014548int
14549main ()
14550{
14551dlopen ();
14552 ;
14553 return 0;
14554}
14555_ACEOF
14556rm -f conftest.$ac_objext conftest$ac_exeext
14557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014558 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014559 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014565 { ac_try='test -z "$ac_c_werror_flag"
14566 || test ! -s conftest.err'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_lib_dl_dlopen=yes
14579else
14580 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014581sed 's/^/| /' conftest.$ac_ext >&5
14582
John Criswell7a73b802003-06-30 21:59:07 +000014583ac_cv_lib_dl_dlopen=no
14584fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014585rm -f conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014587LIBS=$ac_check_lib_save_LIBS
14588fi
14589echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14590echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14591if test $ac_cv_lib_dl_dlopen = yes; then
14592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14593else
14594 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14595echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14596if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14598else
14599 ac_check_lib_save_LIBS=$LIBS
14600LIBS="-lsvld $LIBS"
14601cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014607
14608/* Override any gcc2 internal prototype to avoid an error. */
14609#ifdef __cplusplus
14610extern "C"
14611#endif
14612/* We use char because int might match the return type of a gcc2
14613 builtin and then its argument prototype would still apply. */
14614char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014615int
14616main ()
14617{
14618dlopen ();
14619 ;
14620 return 0;
14621}
14622_ACEOF
14623rm -f conftest.$ac_objext conftest$ac_exeext
14624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014625 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014626 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014632 { ac_try='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_lib_svld_dlopen=yes
14646else
14647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014648sed 's/^/| /' conftest.$ac_ext >&5
14649
John Criswell7a73b802003-06-30 21:59:07 +000014650ac_cv_lib_svld_dlopen=no
14651fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014652rm -f conftest.err conftest.$ac_objext \
14653 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014654LIBS=$ac_check_lib_save_LIBS
14655fi
14656echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14657echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14658if test $ac_cv_lib_svld_dlopen = yes; then
14659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14660else
14661 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14662echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14663if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
14666 ac_check_lib_save_LIBS=$LIBS
14667LIBS="-ldld $LIBS"
14668cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014669/* confdefs.h. */
14670_ACEOF
14671cat confdefs.h >>conftest.$ac_ext
14672cat >>conftest.$ac_ext <<_ACEOF
14673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014674
14675/* Override any gcc2 internal prototype to avoid an error. */
14676#ifdef __cplusplus
14677extern "C"
14678#endif
14679/* We use char because int might match the return type of a gcc2
14680 builtin and then its argument prototype would still apply. */
14681char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014682int
14683main ()
14684{
14685dld_link ();
14686 ;
14687 return 0;
14688}
14689_ACEOF
14690rm -f conftest.$ac_objext conftest$ac_exeext
14691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014692 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014693 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014699 { ac_try='test -z "$ac_c_werror_flag"
14700 || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_lib_dld_dld_link=yes
14713else
14714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014715sed 's/^/| /' conftest.$ac_ext >&5
14716
John Criswell7a73b802003-06-30 21:59:07 +000014717ac_cv_lib_dld_dld_link=no
14718fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014719rm -f conftest.err conftest.$ac_objext \
14720 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014721LIBS=$ac_check_lib_save_LIBS
14722fi
14723echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14724echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14725if test $ac_cv_lib_dld_dld_link = yes; then
14726 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14727fi
14728
14729
14730fi
14731
14732
14733fi
14734
14735
14736fi
14737
14738
14739fi
14740
14741
14742fi
14743
14744 ;;
14745 esac
14746
14747 if test "x$lt_cv_dlopen" != xno; then
14748 enable_dlopen=yes
14749 else
14750 enable_dlopen=no
14751 fi
14752
14753 case $lt_cv_dlopen in
14754 dlopen)
14755 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014756 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014757
14758 save_LDFLAGS="$LDFLAGS"
14759 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14760
14761 save_LIBS="$LIBS"
14762 LIBS="$lt_cv_dlopen_libs $LIBS"
14763
14764 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14765echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14766if test "${lt_cv_dlopen_self+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768else
14769 if test "$cross_compiling" = yes; then :
14770 lt_cv_dlopen_self=cross
14771else
John Criswell47fdd832003-07-14 16:52:07 +000014772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014773 lt_status=$lt_dlunknown
14774 cat > conftest.$ac_ext <<EOF
Reid Spencer1bc68642006-07-27 23:00:30 +000014775#line 14775 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014776#include "confdefs.h"
14777
14778#if HAVE_DLFCN_H
14779#include <dlfcn.h>
14780#endif
14781
14782#include <stdio.h>
14783
14784#ifdef RTLD_GLOBAL
14785# define LT_DLGLOBAL RTLD_GLOBAL
14786#else
14787# ifdef DL_GLOBAL
14788# define LT_DLGLOBAL DL_GLOBAL
14789# else
14790# define LT_DLGLOBAL 0
14791# endif
14792#endif
14793
14794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14795 find out it does not work in some platform. */
14796#ifndef LT_DLLAZY_OR_NOW
14797# ifdef RTLD_LAZY
14798# define LT_DLLAZY_OR_NOW RTLD_LAZY
14799# else
14800# ifdef DL_LAZY
14801# define LT_DLLAZY_OR_NOW DL_LAZY
14802# else
14803# ifdef RTLD_NOW
14804# define LT_DLLAZY_OR_NOW RTLD_NOW
14805# else
14806# ifdef DL_NOW
14807# define LT_DLLAZY_OR_NOW DL_NOW
14808# else
14809# define LT_DLLAZY_OR_NOW 0
14810# endif
14811# endif
14812# endif
14813# endif
14814#endif
14815
14816#ifdef __cplusplus
14817extern "C" void exit (int);
14818#endif
14819
14820void fnord() { int i=42;}
14821int main ()
14822{
14823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14824 int status = $lt_dlunknown;
14825
14826 if (self)
14827 {
14828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14830 /* dlclose (self); */
14831 }
14832
14833 exit (status);
14834}
14835EOF
14836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14837 (eval $ac_link) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14841 (./conftest; exit; ) 2>/dev/null
14842 lt_status=$?
14843 case x$lt_status in
14844 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14845 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14846 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14847 esac
14848 else :
14849 # compilation failed
14850 lt_cv_dlopen_self=no
14851 fi
14852fi
14853rm -fr conftest*
14854
14855
14856fi
14857echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14858echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14859
14860 if test "x$lt_cv_dlopen_self" = xyes; then
14861 LDFLAGS="$LDFLAGS $link_static_flag"
14862 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14863echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14864if test "${lt_cv_dlopen_self_static+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866else
14867 if test "$cross_compiling" = yes; then :
14868 lt_cv_dlopen_self_static=cross
14869else
John Criswell47fdd832003-07-14 16:52:07 +000014870 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014871 lt_status=$lt_dlunknown
14872 cat > conftest.$ac_ext <<EOF
Reid Spencer1bc68642006-07-27 23:00:30 +000014873#line 14873 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014874#include "confdefs.h"
14875
14876#if HAVE_DLFCN_H
14877#include <dlfcn.h>
14878#endif
14879
14880#include <stdio.h>
14881
14882#ifdef RTLD_GLOBAL
14883# define LT_DLGLOBAL RTLD_GLOBAL
14884#else
14885# ifdef DL_GLOBAL
14886# define LT_DLGLOBAL DL_GLOBAL
14887# else
14888# define LT_DLGLOBAL 0
14889# endif
14890#endif
14891
14892/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14893 find out it does not work in some platform. */
14894#ifndef LT_DLLAZY_OR_NOW
14895# ifdef RTLD_LAZY
14896# define LT_DLLAZY_OR_NOW RTLD_LAZY
14897# else
14898# ifdef DL_LAZY
14899# define LT_DLLAZY_OR_NOW DL_LAZY
14900# else
14901# ifdef RTLD_NOW
14902# define LT_DLLAZY_OR_NOW RTLD_NOW
14903# else
14904# ifdef DL_NOW
14905# define LT_DLLAZY_OR_NOW DL_NOW
14906# else
14907# define LT_DLLAZY_OR_NOW 0
14908# endif
14909# endif
14910# endif
14911# endif
14912#endif
14913
14914#ifdef __cplusplus
14915extern "C" void exit (int);
14916#endif
14917
14918void fnord() { int i=42;}
14919int main ()
14920{
14921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14922 int status = $lt_dlunknown;
14923
14924 if (self)
14925 {
14926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14928 /* dlclose (self); */
14929 }
14930
14931 exit (status);
14932}
14933EOF
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14939 (./conftest; exit; ) 2>/dev/null
14940 lt_status=$?
14941 case x$lt_status in
14942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14944 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14945 esac
14946 else :
14947 # compilation failed
14948 lt_cv_dlopen_self_static=no
14949 fi
14950fi
14951rm -fr conftest*
14952
14953
14954fi
14955echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14956echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14957 fi
14958
14959 CPPFLAGS="$save_CPPFLAGS"
14960 LDFLAGS="$save_LDFLAGS"
14961 LIBS="$save_LIBS"
14962 ;;
14963 esac
14964
14965 case $lt_cv_dlopen_self in
14966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14967 *) enable_dlopen_self=unknown ;;
14968 esac
14969
14970 case $lt_cv_dlopen_self_static in
14971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14972 *) enable_dlopen_self_static=unknown ;;
14973 esac
14974fi
14975
14976
John Criswell47fdd832003-07-14 16:52:07 +000014977# Report which librarie types wil actually be built
14978echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14979echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14980echo "$as_me:$LINENO: result: $can_build_shared" >&5
14981echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014982
John Criswell47fdd832003-07-14 16:52:07 +000014983echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14984echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14985test "$can_build_shared" = "no" && enable_shared=no
14986
14987# On AIX, shared libraries and static libraries use the same namespace, and
14988# are all built from PIC.
14989case "$host_os" in
14990aix3*)
14991 test "$enable_shared" = yes && enable_static=no
14992 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014993 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014994 postinstall_cmds='$RANLIB $lib'
14995 fi
14996 ;;
14997
Reid Spencer2706f8c2004-09-19 23:53:36 +000014998aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014999 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15000 test "$enable_shared" = yes && enable_static=no
15001 fi
John Criswell7a73b802003-06-30 21:59:07 +000015002 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015003esac
15004echo "$as_me:$LINENO: result: $enable_shared" >&5
15005echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015006
John Criswell47fdd832003-07-14 16:52:07 +000015007echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15008echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15009# Make sure either enable_shared or enable_static is yes.
15010test "$enable_shared" = yes || enable_static=yes
15011echo "$as_me:$LINENO: result: $enable_static" >&5
15012echo "${ECHO_T}$enable_static" >&6
15013
15014# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000015015# libtool distribution, otherwise you forgot to ship ltmain.sh
15016# with your package, and you will get complaints that there are
15017# no rules to generate ltmain.sh.
15018if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000015019 # See if we are running on zsh, and set the options which allow our commands through
15020 # without removal of \ escapes.
15021 if test -n "${ZSH_VERSION+set}" ; then
15022 setopt NO_GLOB_SUBST
15023 fi
John Criswell7a73b802003-06-30 21:59:07 +000015024 # Now quote all the things that may contain metacharacters while being
15025 # careful not to overquote the AC_SUBSTed values. We take copies of the
15026 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015027 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15028 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000015029 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15030 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15031 deplibs_check_method reload_flag reload_cmds need_locks \
15032 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15033 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000015034 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000015035 old_postinstall_cmds old_postuninstall_cmds \
15036 compiler \
15037 CC \
15038 LD \
15039 lt_prog_compiler_wl \
15040 lt_prog_compiler_pic \
15041 lt_prog_compiler_static \
15042 lt_prog_compiler_no_builtin_flag \
15043 export_dynamic_flag_spec \
15044 thread_safe_flag_spec \
15045 whole_archive_flag_spec \
15046 enable_shared_with_static_runtimes \
15047 old_archive_cmds \
15048 old_archive_from_new_cmds \
15049 predep_objects \
15050 postdep_objects \
15051 predeps \
15052 postdeps \
15053 compiler_lib_search_path \
15054 archive_cmds \
15055 archive_expsym_cmds \
15056 postinstall_cmds \
15057 postuninstall_cmds \
15058 old_archive_from_expsyms_cmds \
15059 allow_undefined_flag \
15060 no_undefined_flag \
15061 export_symbols_cmds \
15062 hardcode_libdir_flag_spec \
15063 hardcode_libdir_flag_spec_ld \
15064 hardcode_libdir_separator \
15065 hardcode_automatic \
15066 module_cmds \
15067 module_expsym_cmds \
15068 lt_cv_prog_compiler_c_o \
15069 exclude_expsyms \
15070 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000015071
15072 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000015073 old_archive_cmds | \
15074 old_archive_from_new_cmds | \
15075 archive_cmds | \
15076 archive_expsym_cmds | \
15077 module_cmds | \
15078 module_expsym_cmds | \
15079 old_archive_from_expsyms_cmds | \
15080 export_symbols_cmds | \
15081 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000015082 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000015083 old_postinstall_cmds | old_postuninstall_cmds | \
15084 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000015085 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015086 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 +000015087 ;;
15088 *)
15089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15090 ;;
15091 esac
15092 done
15093
John Criswell47fdd832003-07-14 16:52:07 +000015094 case $lt_echo in
15095 *'\$0 --fallback-echo"')
15096 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15097 ;;
15098 esac
15099
15100cfgfile="${ofile}T"
15101 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15102 $rm -f "$cfgfile"
15103 { echo "$as_me:$LINENO: creating $ofile" >&5
15104echo "$as_me: creating $ofile" >&6;}
15105
15106 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015107#! $SHELL
15108
John Criswell47fdd832003-07-14 16:52:07 +000015109# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000015110# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15111# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15112#
John Criswell47fdd832003-07-14 16:52:07 +000015113# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15114# Free Software Foundation, Inc.
15115#
15116# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000015117# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15118#
15119# This program is free software; you can redistribute it and/or modify
15120# it under the terms of the GNU General Public License as published by
15121# the Free Software Foundation; either version 2 of the License, or
15122# (at your option) any later version.
15123#
15124# This program is distributed in the hope that it will be useful, but
15125# WITHOUT ANY WARRANTY; without even the implied warranty of
15126# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15127# General Public License for more details.
15128#
15129# You should have received a copy of the GNU General Public License
15130# along with this program; if not, write to the Free Software
15131# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15132#
15133# As a special exception to the GNU General Public License, if you
15134# distribute this file as part of a program that contains a
15135# configuration script generated by Autoconf, you may include it under
15136# the same distribution terms that you use for the rest of that program.
15137
John Criswell47fdd832003-07-14 16:52:07 +000015138# A sed program that does not truncate output.
15139SED=$lt_SED
15140
John Criswell7a73b802003-06-30 21:59:07 +000015141# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000015142Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000015143
15144# The HP-UX ksh and POSIX shell print the target directory to stdout
15145# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015146(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000015147
John Criswell47fdd832003-07-14 16:52:07 +000015148# The names of the tagged configurations supported by this script.
15149available_tags=
15150
John Criswell7a73b802003-06-30 21:59:07 +000015151# ### BEGIN LIBTOOL CONFIG
15152
15153# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15154
15155# Shell to use when invoking shell scripts.
15156SHELL=$lt_SHELL
15157
15158# Whether or not to build shared libraries.
15159build_libtool_libs=$enable_shared
15160
15161# Whether or not to build static libraries.
15162build_old_libs=$enable_static
15163
15164# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015165build_libtool_need_lc=$archive_cmds_need_lc
15166
15167# Whether or not to disallow shared libs when runtime libs are static
15168allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000015169
15170# Whether or not to optimize for fast installation.
15171fast_install=$enable_fast_install
15172
15173# The host system.
15174host_alias=$host_alias
15175host=$host
15176
15177# An echo program that does not interpret backslashes.
15178echo=$lt_echo
15179
15180# The archiver.
15181AR=$lt_AR
15182AR_FLAGS=$lt_AR_FLAGS
15183
John Criswell47fdd832003-07-14 16:52:07 +000015184# A C compiler.
15185LTCC=$lt_LTCC
15186
15187# A language-specific compiler.
15188CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000015189
15190# Is the compiler the GNU C compiler?
15191with_gcc=$GCC
15192
John Criswell47fdd832003-07-14 16:52:07 +000015193# An ERE matcher.
15194EGREP=$lt_EGREP
15195
John Criswell7a73b802003-06-30 21:59:07 +000015196# The linker used to build libraries.
15197LD=$lt_LD
15198
15199# Whether we need hard or soft links.
15200LN_S=$lt_LN_S
15201
15202# A BSD-compatible nm program.
15203NM=$lt_NM
15204
15205# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015206STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000015207
15208# Used to examine libraries when file_magic_cmd begins "file"
15209MAGIC_CMD=$MAGIC_CMD
15210
15211# Used on cygwin: DLL creation program.
15212DLLTOOL="$DLLTOOL"
15213
15214# Used on cygwin: object dumper.
15215OBJDUMP="$OBJDUMP"
15216
15217# Used on cygwin: assembler.
15218AS="$AS"
15219
15220# The name of the directory that contains temporary libtool files.
15221objdir=$objdir
15222
15223# How to create reloadable object files.
15224reload_flag=$lt_reload_flag
15225reload_cmds=$lt_reload_cmds
15226
15227# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000015228wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000015229
15230# Object file suffix (normally "o").
15231objext="$ac_objext"
15232
15233# Old archive suffix (normally "a").
15234libext="$libext"
15235
John Criswell47fdd832003-07-14 16:52:07 +000015236# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015237shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015238
John Criswell7a73b802003-06-30 21:59:07 +000015239# Executable file suffix (normally "").
15240exeext="$exeext"
15241
15242# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000015243pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000015244pic_mode=$pic_mode
15245
John Criswell47fdd832003-07-14 16:52:07 +000015246# What is the maximum length of a command?
15247max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000015248
John Criswell47fdd832003-07-14 16:52:07 +000015249# Does compiler simultaneously support -c and -o options?
15250compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000015251
15252# Must we lock files when doing compilation ?
15253need_locks=$lt_need_locks
15254
15255# Do we need the lib prefix for modules?
15256need_lib_prefix=$need_lib_prefix
15257
15258# Do we need a version for libraries?
15259need_version=$need_version
15260
15261# Whether dlopen is supported.
15262dlopen_support=$enable_dlopen
15263
15264# Whether dlopen of programs is supported.
15265dlopen_self=$enable_dlopen_self
15266
15267# Whether dlopen of statically linked programs is supported.
15268dlopen_self_static=$enable_dlopen_self_static
15269
15270# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000015271link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000015272
15273# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000015274no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000015275
15276# Compiler flag to allow reflexive dlopens.
15277export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15278
15279# Compiler flag to generate shared objects directly from archives.
15280whole_archive_flag_spec=$lt_whole_archive_flag_spec
15281
15282# Compiler flag to generate thread-safe objects.
15283thread_safe_flag_spec=$lt_thread_safe_flag_spec
15284
15285# Library versioning type.
15286version_type=$version_type
15287
15288# Format of library name prefix.
15289libname_spec=$lt_libname_spec
15290
15291# List of archive names. First name is the real one, the rest are links.
15292# The last name is the one that the linker finds with -lNAME.
15293library_names_spec=$lt_library_names_spec
15294
15295# The coded name of the library, if different from the real name.
15296soname_spec=$lt_soname_spec
15297
15298# Commands used to build and install an old-style archive.
15299RANLIB=$lt_RANLIB
15300old_archive_cmds=$lt_old_archive_cmds
15301old_postinstall_cmds=$lt_old_postinstall_cmds
15302old_postuninstall_cmds=$lt_old_postuninstall_cmds
15303
15304# Create an old-style archive from a shared archive.
15305old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15306
15307# Create a temporary old-style archive to link instead of a shared archive.
15308old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15309
15310# Commands used to build and install a shared archive.
15311archive_cmds=$lt_archive_cmds
15312archive_expsym_cmds=$lt_archive_expsym_cmds
15313postinstall_cmds=$lt_postinstall_cmds
15314postuninstall_cmds=$lt_postuninstall_cmds
15315
John Criswell47fdd832003-07-14 16:52:07 +000015316# Commands used to build a loadable module (assumed same as above if empty)
15317module_cmds=$lt_module_cmds
15318module_expsym_cmds=$lt_module_expsym_cmds
15319
John Criswell7a73b802003-06-30 21:59:07 +000015320# Commands to strip libraries.
15321old_striplib=$lt_old_striplib
15322striplib=$lt_striplib
15323
John Criswell47fdd832003-07-14 16:52:07 +000015324# Dependencies to place before the objects being linked to create a
15325# shared library.
15326predep_objects=$lt_predep_objects
15327
15328# Dependencies to place after the objects being linked to create a
15329# shared library.
15330postdep_objects=$lt_postdep_objects
15331
15332# Dependencies to place before the objects being linked to create a
15333# shared library.
15334predeps=$lt_predeps
15335
15336# Dependencies to place after the objects being linked to create a
15337# shared library.
15338postdeps=$lt_postdeps
15339
15340# The library search path used internally by the compiler when linking
15341# a shared library.
15342compiler_lib_search_path=$lt_compiler_lib_search_path
15343
John Criswell7a73b802003-06-30 21:59:07 +000015344# Method to check whether dependent libraries are shared objects.
15345deplibs_check_method=$lt_deplibs_check_method
15346
15347# Command to use when deplibs_check_method == file_magic.
15348file_magic_cmd=$lt_file_magic_cmd
15349
15350# Flag that allows shared libraries with undefined symbols to be built.
15351allow_undefined_flag=$lt_allow_undefined_flag
15352
15353# Flag that forces no undefined symbols.
15354no_undefined_flag=$lt_no_undefined_flag
15355
15356# Commands used to finish a libtool library installation in a directory.
15357finish_cmds=$lt_finish_cmds
15358
15359# Same as above, but a single script fragment to be evaled but not shown.
15360finish_eval=$lt_finish_eval
15361
15362# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015363global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015364
15365# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015366global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015367
15368# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015369global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015370
15371# This is the shared library runtime path variable.
15372runpath_var=$runpath_var
15373
15374# This is the shared library path variable.
15375shlibpath_var=$shlibpath_var
15376
15377# Is shlibpath searched before the hard-coded library search path?
15378shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15379
15380# How to hardcode a shared library path into an executable.
15381hardcode_action=$hardcode_action
15382
15383# Whether we should hardcode library paths into libraries.
15384hardcode_into_libs=$hardcode_into_libs
15385
15386# Flag to hardcode \$libdir into a binary during linking.
15387# This must work even if \$libdir does not exist.
15388hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15389
John Criswell47fdd832003-07-14 16:52:07 +000015390# If ld is used when linking, flag to hardcode \$libdir into
15391# a binary during linking. This must work even if \$libdir does
15392# not exist.
15393hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15394
John Criswell7a73b802003-06-30 21:59:07 +000015395# Whether we need a single -rpath flag with a separated argument.
15396hardcode_libdir_separator=$lt_hardcode_libdir_separator
15397
John Criswell47fdd832003-07-14 16:52:07 +000015398# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015399# resulting binary.
15400hardcode_direct=$hardcode_direct
15401
15402# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15403# resulting binary.
15404hardcode_minus_L=$hardcode_minus_L
15405
15406# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15407# the resulting binary.
15408hardcode_shlibpath_var=$hardcode_shlibpath_var
15409
John Criswell47fdd832003-07-14 16:52:07 +000015410# Set to yes if building a shared library automatically hardcodes DIR into the library
15411# and all subsequent libraries and executables linked against it.
15412hardcode_automatic=$hardcode_automatic
15413
John Criswell7a73b802003-06-30 21:59:07 +000015414# Variables whose values should be saved in libtool wrapper scripts and
15415# restored at relink time.
15416variables_saved_for_relink="$variables_saved_for_relink"
15417
15418# Whether libtool must link a program against all its dependency libraries.
15419link_all_deplibs=$link_all_deplibs
15420
15421# Compile-time system search path for libraries
15422sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15423
15424# Run-time system search path for libraries
15425sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15426
15427# Fix the shell variable \$srcfile for the compiler.
15428fix_srcfile_path="$fix_srcfile_path"
15429
15430# Set to yes if exported symbols are required.
15431always_export_symbols=$always_export_symbols
15432
15433# The commands to list exported symbols.
15434export_symbols_cmds=$lt_export_symbols_cmds
15435
15436# The commands to extract the exported symbol list from a shared archive.
15437extract_expsyms_cmds=$lt_extract_expsyms_cmds
15438
15439# Symbols that should not be listed in the preloaded symbols.
15440exclude_expsyms=$lt_exclude_expsyms
15441
15442# Symbols that must always be exported.
15443include_expsyms=$lt_include_expsyms
15444
15445# ### END LIBTOOL CONFIG
15446
15447__EOF__
15448
John Criswell47fdd832003-07-14 16:52:07 +000015449
John Criswell7a73b802003-06-30 21:59:07 +000015450 case $host_os in
15451 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015452 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015453
15454# AIX sometimes has problems with the GCC collect2 program. For some
15455# reason, if we set the COLLECT_NAMES environment variable, the problems
15456# vanish in a puff of smoke.
15457if test "X${COLLECT_NAMES+set}" != Xset; then
15458 COLLECT_NAMES=
15459 export COLLECT_NAMES
15460fi
15461EOF
15462 ;;
15463 esac
15464
John Criswell7a73b802003-06-30 21:59:07 +000015465 # We use sed instead of cat because bash on DJGPP gets confused if
15466 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15467 # text mode, it properly converts lines to CR/LF. This bash problem
15468 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015469 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015470
John Criswell47fdd832003-07-14 16:52:07 +000015471 mv -f "$cfgfile" "$ofile" || \
15472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015473 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015474
15475else
15476 # If there is no Makefile yet, we rely on a make rule to execute
15477 # `config.status --recheck' to rerun these tests and create the
15478 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015479 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15480 if test -f "$ltmain_in"; then
15481 test -f Makefile && make "$ltmain"
15482 fi
John Criswell7a73b802003-06-30 21:59:07 +000015483fi
John Criswell7a73b802003-06-30 21:59:07 +000015484
15485
John Criswell47fdd832003-07-14 16:52:07 +000015486ac_ext=c
15487ac_cpp='$CPP $CPPFLAGS'
15488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490ac_compiler_gnu=$ac_cv_c_compiler_gnu
15491
15492CC="$lt_save_CC"
15493
15494
15495# Check whether --with-tags or --without-tags was given.
15496if test "${with_tags+set}" = set; then
15497 withval="$with_tags"
15498 tagnames="$withval"
15499fi;
15500
15501if test -f "$ltmain" && test -n "$tagnames"; then
15502 if test ! -f "${ofile}"; then
15503 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15504echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15505 fi
15506
15507 if test -z "$LTCC"; then
15508 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15509 if test -z "$LTCC"; then
15510 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15511echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15512 else
15513 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15514echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15515 fi
15516 fi
15517
15518 # Extract list of available tagged configurations in $ofile.
15519 # Note that this assumes the entire list is on one line.
15520 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15521
15522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15523 for tagname in $tagnames; do
15524 IFS="$lt_save_ifs"
15525 # Check whether tagname contains only valid characters
15526 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15527 "") ;;
15528 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15529echo "$as_me: error: invalid tag name: $tagname" >&2;}
15530 { (exit 1); exit 1; }; }
15531 ;;
15532 esac
15533
15534 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15535 then
15536 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15537echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15538 { (exit 1); exit 1; }; }
15539 fi
15540
15541 # Update the list of available tags.
15542 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015543 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015544
15545 case $tagname in
15546 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015547 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15548 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15549 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015550 ac_ext=cc
15551ac_cpp='$CXXCPP $CPPFLAGS'
15552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15555
15556
15557
15558
15559archive_cmds_need_lc_CXX=no
15560allow_undefined_flag_CXX=
15561always_export_symbols_CXX=no
15562archive_expsym_cmds_CXX=
15563export_dynamic_flag_spec_CXX=
15564hardcode_direct_CXX=no
15565hardcode_libdir_flag_spec_CXX=
15566hardcode_libdir_flag_spec_ld_CXX=
15567hardcode_libdir_separator_CXX=
15568hardcode_minus_L_CXX=no
15569hardcode_automatic_CXX=no
15570module_cmds_CXX=
15571module_expsym_cmds_CXX=
15572link_all_deplibs_CXX=unknown
15573old_archive_cmds_CXX=$old_archive_cmds
15574no_undefined_flag_CXX=
15575whole_archive_flag_spec_CXX=
15576enable_shared_with_static_runtimes_CXX=no
15577
15578# Dependencies to place before and after the object being linked:
15579predep_objects_CXX=
15580postdep_objects_CXX=
15581predeps_CXX=
15582postdeps_CXX=
15583compiler_lib_search_path_CXX=
15584
15585# Source file extension for C++ test sources.
15586ac_ext=cc
15587
15588# Object file extension for compiled C++ test sources.
15589objext=o
15590objext_CXX=$objext
15591
15592# Code to be used in simple compile tests
15593lt_simple_compile_test_code="int some_variable = 0;\n"
15594
15595# Code to be used in simple link tests
15596lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15597
15598# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15599
15600# If no C compiler was specified, use CC.
15601LTCC=${LTCC-"$CC"}
15602
15603# Allow CC to be a program name with arguments.
15604compiler=$CC
15605
15606
15607# Allow CC to be a program name with arguments.
15608lt_save_CC=$CC
15609lt_save_LD=$LD
15610lt_save_GCC=$GCC
15611GCC=$GXX
15612lt_save_with_gnu_ld=$with_gnu_ld
15613lt_save_path_LD=$lt_cv_path_LD
15614if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15616else
15617 unset lt_cv_prog_gnu_ld
15618fi
15619if test -n "${lt_cv_path_LDCXX+set}"; then
15620 lt_cv_path_LD=$lt_cv_path_LDCXX
15621else
15622 unset lt_cv_path_LD
15623fi
15624test -z "${LDCXX+set}" || LD=$LDCXX
15625CC=${CXX-"c++"}
15626compiler=$CC
15627compiler_CXX=$CC
15628cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15629
15630# We don't want -fno-exception wen compiling C++ code, so set the
15631# no_builtin_flag separately
15632if test "$GXX" = yes; then
15633 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15634else
15635 lt_prog_compiler_no_builtin_flag_CXX=
15636fi
15637
15638if test "$GXX" = yes; then
15639 # Set up default GNU C++ configuration
15640
15641
15642# Check whether --with-gnu-ld or --without-gnu-ld was given.
15643if test "${with_gnu_ld+set}" = set; then
15644 withval="$with_gnu_ld"
15645 test "$withval" = no || with_gnu_ld=yes
15646else
15647 with_gnu_ld=no
15648fi;
15649ac_prog=ld
15650if test "$GCC" = yes; then
15651 # Check if gcc -print-prog-name=ld gives a path.
15652 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15653echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15654 case $host in
15655 *-*-mingw*)
15656 # gcc leaves a trailing carriage return which upsets mingw
15657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15658 *)
15659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15660 esac
15661 case $ac_prog in
15662 # Accept absolute paths.
15663 [\\/]* | ?:[\\/]*)
15664 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015665 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015666 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15668 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15669 done
15670 test -z "$LD" && LD="$ac_prog"
15671 ;;
15672 "")
15673 # If it fails, then pretend we aren't using GCC.
15674 ac_prog=ld
15675 ;;
15676 *)
15677 # If it is relative, then search for the first ld in PATH.
15678 with_gnu_ld=unknown
15679 ;;
15680 esac
15681elif test "$with_gnu_ld" = yes; then
15682 echo "$as_me:$LINENO: checking for GNU ld" >&5
15683echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15684else
15685 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15686echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15687fi
15688if test "${lt_cv_path_LD+set}" = set; then
15689 echo $ECHO_N "(cached) $ECHO_C" >&6
15690else
15691 if test -z "$LD"; then
15692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15693 for ac_dir in $PATH; do
15694 IFS="$lt_save_ifs"
15695 test -z "$ac_dir" && ac_dir=.
15696 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15697 lt_cv_path_LD="$ac_dir/$ac_prog"
15698 # Check to see if the program is GNU ld. I'd rather use --version,
15699 # but apparently some GNU ld's only accept -v.
15700 # Break only if it was the GNU/non-GNU ld that we prefer.
15701 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15702 *GNU* | *'with BFD'*)
15703 test "$with_gnu_ld" != no && break
15704 ;;
15705 *)
15706 test "$with_gnu_ld" != yes && break
15707 ;;
15708 esac
15709 fi
15710 done
15711 IFS="$lt_save_ifs"
15712else
15713 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15714fi
15715fi
15716
15717LD="$lt_cv_path_LD"
15718if test -n "$LD"; then
15719 echo "$as_me:$LINENO: result: $LD" >&5
15720echo "${ECHO_T}$LD" >&6
15721else
15722 echo "$as_me:$LINENO: result: no" >&5
15723echo "${ECHO_T}no" >&6
15724fi
15725test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15726echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15727 { (exit 1); exit 1; }; }
15728echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15729echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15730if test "${lt_cv_prog_gnu_ld+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732else
15733 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015734case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015735*GNU* | *'with BFD'*)
15736 lt_cv_prog_gnu_ld=yes
15737 ;;
15738*)
15739 lt_cv_prog_gnu_ld=no
15740 ;;
15741esac
15742fi
15743echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15744echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15745with_gnu_ld=$lt_cv_prog_gnu_ld
15746
15747
15748
15749 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15750 # archiving commands below assume that GNU ld is being used.
15751 if test "$with_gnu_ld" = yes; then
15752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15753 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'
15754
15755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15757
15758 # If archive_cmds runs LD, not CC, wlarc should be empty
15759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15760 # investigate it a little bit more. (MM)
15761 wlarc='${wl}'
15762
15763 # ancient GNU ld didn't support --whole-archive et. al.
15764 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15765 grep 'no-whole-archive' > /dev/null; then
15766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15767 else
15768 whole_archive_flag_spec_CXX=
15769 fi
15770 else
15771 with_gnu_ld=no
15772 wlarc=
15773
15774 # A generic and very simple default shared library creation
15775 # command for GNU C++ for the case where it uses the native
15776 # linker, instead of GNU ld. If possible, this setting should
15777 # overridden to take advantage of the native linker features on
15778 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015780 fi
15781
15782 # Commands to make compiler produce verbose output that lists
15783 # what "hidden" libraries, object files and flags are used when
15784 # linking a shared library.
15785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15786
15787else
15788 GXX=no
15789 with_gnu_ld=no
15790 wlarc=
15791fi
15792
15793# PORTME: fill in a description of your system's C++ link characteristics
15794echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15795echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15796ld_shlibs_CXX=yes
15797case $host_os in
15798 aix3*)
15799 # FIXME: insert proper C++ library support
15800 ld_shlibs_CXX=no
15801 ;;
15802 aix4* | aix5*)
15803 if test "$host_cpu" = ia64; then
15804 # On IA64, the linker does run time linking by default, so we don't
15805 # have to do anything special.
15806 aix_use_runtimelinking=no
15807 exp_sym_flag='-Bexport'
15808 no_entry_flag=""
15809 else
15810 aix_use_runtimelinking=no
15811
15812 # Test if we are trying to use run time linking or normal
15813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15814 # need to do runtime linking.
15815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15816 for ld_flag in $LDFLAGS; do
15817 case $ld_flag in
15818 *-brtl*)
15819 aix_use_runtimelinking=yes
15820 break
15821 ;;
15822 esac
15823 done
15824 esac
15825
15826 exp_sym_flag='-bexport'
15827 no_entry_flag='-bnoentry'
15828 fi
15829
15830 # When large executables or shared objects are built, AIX ld can
15831 # have problems creating the table of contents. If linking a library
15832 # or program results in "error TOC overflow" add -mminimal-toc to
15833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15835
15836 archive_cmds_CXX=''
15837 hardcode_direct_CXX=yes
15838 hardcode_libdir_separator_CXX=':'
15839 link_all_deplibs_CXX=yes
15840
15841 if test "$GXX" = yes; then
15842 case $host_os in aix4.012|aix4.012.*)
15843 # We only want to do this on AIX 4.2 and lower, the check
15844 # below for broken collect2 doesn't work under 4.3+
15845 collect2name=`${CC} -print-prog-name=collect2`
15846 if test -f "$collect2name" && \
15847 strings "$collect2name" | grep resolve_lib_name >/dev/null
15848 then
15849 # We have reworked collect2
15850 hardcode_direct_CXX=yes
15851 else
15852 # We have old collect2
15853 hardcode_direct_CXX=unsupported
15854 # It fails to find uninstalled libraries when the uninstalled
15855 # path is not listed in the libpath. Setting hardcode_minus_L
15856 # to unsupported forces relinking
15857 hardcode_minus_L_CXX=yes
15858 hardcode_libdir_flag_spec_CXX='-L$libdir'
15859 hardcode_libdir_separator_CXX=
15860 fi
15861 esac
15862 shared_flag='-shared'
15863 else
15864 # not using gcc
15865 if test "$host_cpu" = ia64; then
15866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15867 # chokes on -Wl,-G. The following line is correct:
15868 shared_flag='-G'
15869 else
15870 if test "$aix_use_runtimelinking" = yes; then
15871 shared_flag='${wl}-G'
15872 else
15873 shared_flag='${wl}-bM:SRE'
15874 fi
15875 fi
15876 fi
15877
15878 # It seems that -bexpall does not export symbols beginning with
15879 # underscore (_), so it is better to generate a list of symbols to export.
15880 always_export_symbols_CXX=yes
15881 if test "$aix_use_runtimelinking" = yes; then
15882 # Warning - without using the other runtime loading flags (-brtl),
15883 # -berok will link without error, but may produce a broken library.
15884 allow_undefined_flag_CXX='-berok'
15885 # Determine the default libpath from the value encoded in an empty executable.
15886 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015892
John Criswell47fdd832003-07-14 16:52:07 +000015893int
15894main ()
15895{
15896
15897 ;
15898 return 0;
15899}
15900_ACEOF
15901rm -f conftest.$ac_objext conftest$ac_exeext
15902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015903 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015904 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015910 { ac_try='test -z "$ac_cxx_werror_flag"
15911 || test ! -s conftest.err'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923
15924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15925}'`
15926# Check for a 64-bit object if we didn't find anything.
15927if 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; }
15928}'`; fi
15929else
15930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015931sed 's/^/| /' conftest.$ac_ext >&5
15932
John Criswell47fdd832003-07-14 16:52:07 +000015933fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015934rm -f conftest.err conftest.$ac_objext \
15935 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015936if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15937
15938 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15939
15940 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"
15941 else
15942 if test "$host_cpu" = ia64; then
15943 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15944 allow_undefined_flag_CXX="-z nodefs"
15945 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"
15946 else
15947 # Determine the default libpath from the value encoded in an empty executable.
15948 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015949/* confdefs.h. */
15950_ACEOF
15951cat confdefs.h >>conftest.$ac_ext
15952cat >>conftest.$ac_ext <<_ACEOF
15953/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015954
John Criswell47fdd832003-07-14 16:52:07 +000015955int
15956main ()
15957{
15958
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext conftest$ac_exeext
15964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015965 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015966 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015972 { ac_try='test -z "$ac_cxx_werror_flag"
15973 || test ! -s conftest.err'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; } &&
15979 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985
15986aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15987}'`
15988# Check for a 64-bit object if we didn't find anything.
15989if 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; }
15990}'`; fi
15991else
15992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015993sed 's/^/| /' conftest.$ac_ext >&5
15994
John Criswell47fdd832003-07-14 16:52:07 +000015995fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015996rm -f conftest.err conftest.$ac_objext \
15997 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015998if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15999
16000 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16001 # Warning - without using the other run time loading flags,
16002 # -berok will link without error, but may produce a broken library.
16003 no_undefined_flag_CXX=' ${wl}-bernotok'
16004 allow_undefined_flag_CXX=' ${wl}-berok'
16005 # -bexpall does not export symbols beginning with underscore (_)
16006 always_export_symbols_CXX=yes
16007 # Exported symbols can be pulled into shared objects from archives
16008 whole_archive_flag_spec_CXX=' '
16009 archive_cmds_need_lc_CXX=yes
16010 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000016011 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 +000016012 fi
16013 fi
16014 ;;
16015 chorus*)
16016 case $cc_basename in
16017 *)
16018 # FIXME: insert proper C++ library support
16019 ld_shlibs_CXX=no
16020 ;;
16021 esac
16022 ;;
16023
Reid Spencer2706f8c2004-09-19 23:53:36 +000016024
John Criswell47fdd832003-07-14 16:52:07 +000016025 cygwin* | mingw* | pw32*)
16026 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16027 # as there is no search path for DLLs.
16028 hardcode_libdir_flag_spec_CXX='-L$libdir'
16029 allow_undefined_flag_CXX=unsupported
16030 always_export_symbols_CXX=no
16031 enable_shared_with_static_runtimes_CXX=yes
16032
16033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16034 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'
16035 # If the export-symbols file already is a .def file (1st line
16036 # is EXPORTS), use it as is; otherwise, prepend...
16037 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16038 cp $export_symbols $output_objdir/$soname.def;
16039 else
16040 echo EXPORTS > $output_objdir/$soname.def;
16041 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000016042 fi~
16043 $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 +000016044 else
16045 ld_shlibs_CXX=no
16046 fi
16047 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016048 darwin* | rhapsody*)
16049 case "$host_os" in
16050 rhapsody* | darwin1.[012])
16051 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16052 ;;
16053 *) # Darwin 1.3 on
16054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16055 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16056 else
16057 case ${MACOSX_DEPLOYMENT_TARGET} in
16058 10.[012])
16059 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16060 ;;
16061 10.*)
16062 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16063 ;;
16064 esac
16065 fi
16066 ;;
16067 esac
16068 archive_cmds_need_lc_CXX=no
16069 hardcode_direct_CXX=no
16070 hardcode_automatic_CXX=yes
16071 hardcode_shlibpath_var_CXX=unsupported
16072 whole_archive_flag_spec_CXX=''
16073 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000016074
Reid Spencer2706f8c2004-09-19 23:53:36 +000016075 if test "$GXX" = yes ; then
16076 lt_int_apple_cc_single_mod=no
16077 output_verbose_link_cmd='echo'
16078 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16079 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000016080 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016082 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 +000016083 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016084 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 +000016085 fi
16086 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016089 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 +000016090 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016091 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 +000016092 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000016093 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 +000016094 else
16095 case "$cc_basename" in
16096 xlc*)
16097 output_verbose_link_cmd='echo'
16098 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'
16099 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16100 # 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 +000016101 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}'
16102 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 +000016103 ;;
16104 *)
16105 ld_shlibs_CXX=no
16106 ;;
16107 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000016108 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016109 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016110
16111 dgux*)
16112 case $cc_basename in
16113 ec++)
16114 # FIXME: insert proper C++ library support
16115 ld_shlibs_CXX=no
16116 ;;
16117 ghcx)
16118 # Green Hills C++ Compiler
16119 # FIXME: insert proper C++ library support
16120 ld_shlibs_CXX=no
16121 ;;
16122 *)
16123 # FIXME: insert proper C++ library support
16124 ld_shlibs_CXX=no
16125 ;;
16126 esac
16127 ;;
16128 freebsd12*)
16129 # C++ shared libraries reported to be fairly broken before switch to ELF
16130 ld_shlibs_CXX=no
16131 ;;
16132 freebsd-elf*)
16133 archive_cmds_need_lc_CXX=no
16134 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016135 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16137 # conventions
16138 ld_shlibs_CXX=yes
16139 ;;
16140 gnu*)
16141 ;;
16142 hpux9*)
16143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16144 hardcode_libdir_separator_CXX=:
16145 export_dynamic_flag_spec_CXX='${wl}-E'
16146 hardcode_direct_CXX=yes
16147 hardcode_minus_L_CXX=yes # Not in the search PATH,
16148 # but as the default
16149 # location of the library.
16150
16151 case $cc_basename in
16152 CC)
16153 # FIXME: insert proper C++ library support
16154 ld_shlibs_CXX=no
16155 ;;
16156 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000016157 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 +000016158 # Commands to make compiler produce verbose output that lists
16159 # what "hidden" libraries, object files and flags are used when
16160 # linking a shared library.
16161 #
16162 # There doesn't appear to be a way to prevent this compiler from
16163 # explicitly linking system object files so we need to strip them
16164 # from the output so that they don't get included in the library
16165 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016166 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 +000016167 ;;
16168 *)
16169 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016170 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 +000016171 else
16172 # FIXME: insert proper C++ library support
16173 ld_shlibs_CXX=no
16174 fi
16175 ;;
16176 esac
16177 ;;
16178 hpux10*|hpux11*)
16179 if test $with_gnu_ld = no; then
16180 case "$host_cpu" in
16181 hppa*64*)
16182 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16183 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16184 hardcode_libdir_separator_CXX=:
16185 ;;
16186 ia64*)
16187 hardcode_libdir_flag_spec_CXX='-L$libdir'
16188 ;;
16189 *)
16190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16191 hardcode_libdir_separator_CXX=:
16192 export_dynamic_flag_spec_CXX='${wl}-E'
16193 ;;
16194 esac
16195 fi
16196 case "$host_cpu" in
16197 hppa*64*)
16198 hardcode_direct_CXX=no
16199 hardcode_shlibpath_var_CXX=no
16200 ;;
16201 ia64*)
16202 hardcode_direct_CXX=no
16203 hardcode_shlibpath_var_CXX=no
16204 hardcode_minus_L_CXX=yes # Not in the search PATH,
16205 # but as the default
16206 # location of the library.
16207 ;;
16208 *)
16209 hardcode_direct_CXX=yes
16210 hardcode_minus_L_CXX=yes # Not in the search PATH,
16211 # but as the default
16212 # location of the library.
16213 ;;
16214 esac
16215
16216 case $cc_basename in
16217 CC)
16218 # FIXME: insert proper C++ library support
16219 ld_shlibs_CXX=no
16220 ;;
16221 aCC)
16222 case "$host_cpu" in
16223 hppa*64*|ia64*)
16224 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16225 ;;
16226 *)
16227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16228 ;;
16229 esac
16230 # Commands to make compiler produce verbose output that lists
16231 # what "hidden" libraries, object files and flags are used when
16232 # linking a shared library.
16233 #
16234 # There doesn't appear to be a way to prevent this compiler from
16235 # explicitly linking system object files so we need to strip them
16236 # from the output so that they don't get included in the library
16237 # dependencies.
16238 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'
16239 ;;
16240 *)
16241 if test "$GXX" = yes; then
16242 if test $with_gnu_ld = no; then
16243 case "$host_cpu" in
16244 ia64*|hppa*64*)
16245 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16246 ;;
16247 *)
16248 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'
16249 ;;
16250 esac
16251 fi
16252 else
16253 # FIXME: insert proper C++ library support
16254 ld_shlibs_CXX=no
16255 fi
16256 ;;
16257 esac
16258 ;;
16259 irix5* | irix6*)
16260 case $cc_basename in
16261 CC)
16262 # SGI C++
16263 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'
16264
16265 # Archives containing C++ object files must be created using
16266 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16267 # necessary to make sure instantiated templates are included
16268 # in the archive.
16269 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16270 ;;
16271 *)
16272 if test "$GXX" = yes; then
16273 if test "$with_gnu_ld" = no; then
16274 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'
16275 else
16276 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'
16277 fi
16278 fi
16279 link_all_deplibs_CXX=yes
16280 ;;
16281 esac
16282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16283 hardcode_libdir_separator_CXX=:
16284 ;;
16285 linux*)
16286 case $cc_basename in
16287 KCC)
16288 # Kuck and Associates, Inc. (KAI) C++ Compiler
16289
16290 # KCC will only create a shared library if the output file
16291 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16292 # to its proper name (with version) after linking.
16293 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'
16294 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'
16295 # Commands to make compiler produce verbose output that lists
16296 # what "hidden" libraries, object files and flags are used when
16297 # linking a shared library.
16298 #
16299 # There doesn't appear to be a way to prevent this compiler from
16300 # explicitly linking system object files so we need to strip them
16301 # from the output so that they don't get included in the library
16302 # dependencies.
16303 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'
16304
16305 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16306 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16307
16308 # Archives containing C++ object files must be created using
16309 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16310 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16311 ;;
16312 icpc)
16313 # Intel C++
16314 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016315 # version 8.0 and above of icpc choke on multiply defined symbols
16316 # if we add $predep_objects and $postdep_objects, however 7.1 and
16317 # earlier do not add the objects themselves.
16318 case `$CC -V 2>&1` in
16319 *"Version 7."*)
16320 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16321 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'
16322 ;;
16323 *) # Version 8.0 or newer
16324 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16326 ;;
16327 esac
John Criswell47fdd832003-07-14 16:52:07 +000016328 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16332 ;;
16333 cxx)
16334 # Compaq C++
16335 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336 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'
16337
16338 runpath_var=LD_RUN_PATH
16339 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16340 hardcode_libdir_separator_CXX=:
16341
16342 # Commands to make compiler produce verbose output that lists
16343 # what "hidden" libraries, object files and flags are used when
16344 # linking a shared library.
16345 #
16346 # There doesn't appear to be a way to prevent this compiler from
16347 # explicitly linking system object files so we need to strip them
16348 # from the output so that they don't get included in the library
16349 # dependencies.
16350 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'
16351 ;;
16352 esac
16353 ;;
16354 lynxos*)
16355 # FIXME: insert proper C++ library support
16356 ld_shlibs_CXX=no
16357 ;;
16358 m88k*)
16359 # FIXME: insert proper C++ library support
16360 ld_shlibs_CXX=no
16361 ;;
16362 mvs*)
16363 case $cc_basename in
16364 cxx)
16365 # FIXME: insert proper C++ library support
16366 ld_shlibs_CXX=no
16367 ;;
16368 *)
16369 # FIXME: insert proper C++ library support
16370 ld_shlibs_CXX=no
16371 ;;
16372 esac
16373 ;;
16374 netbsd*)
16375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16376 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16377 wlarc=
16378 hardcode_libdir_flag_spec_CXX='-R$libdir'
16379 hardcode_direct_CXX=yes
16380 hardcode_shlibpath_var_CXX=no
16381 fi
16382 # Workaround some broken pre-1.5 toolchains
16383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16384 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016385 openbsd2*)
16386 # C++ shared libraries are fairly broken
16387 ld_shlibs_CXX=no
16388 ;;
16389 openbsd*)
16390 hardcode_direct_CXX=yes
16391 hardcode_shlibpath_var_CXX=no
16392 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16395 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16396 export_dynamic_flag_spec_CXX='${wl}-E'
16397 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16398 fi
16399 output_verbose_link_cmd='echo'
16400 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016401 osf3*)
16402 case $cc_basename in
16403 KCC)
16404 # Kuck and Associates, Inc. (KAI) C++ Compiler
16405
16406 # KCC will only create a shared library if the output file
16407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16408 # to its proper name (with version) after linking.
16409 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'
16410
16411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16412 hardcode_libdir_separator_CXX=:
16413
16414 # Archives containing C++ object files must be created using
16415 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16416 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16417
16418 ;;
16419 RCC)
16420 # Rational C++ 2.4.1
16421 # FIXME: insert proper C++ library support
16422 ld_shlibs_CXX=no
16423 ;;
16424 cxx)
16425 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16426 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'
16427
16428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16429 hardcode_libdir_separator_CXX=:
16430
16431 # Commands to make compiler produce verbose output that lists
16432 # what "hidden" libraries, object files and flags are used when
16433 # linking a shared library.
16434 #
16435 # There doesn't appear to be a way to prevent this compiler from
16436 # explicitly linking system object files so we need to strip them
16437 # from the output so that they don't get included in the library
16438 # dependencies.
16439 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'
16440 ;;
16441 *)
16442 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16443 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16444 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'
16445
16446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16447 hardcode_libdir_separator_CXX=:
16448
16449 # Commands to make compiler produce verbose output that lists
16450 # what "hidden" libraries, object files and flags are used when
16451 # linking a shared library.
16452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16453
16454 else
16455 # FIXME: insert proper C++ library support
16456 ld_shlibs_CXX=no
16457 fi
16458 ;;
16459 esac
16460 ;;
16461 osf4* | osf5*)
16462 case $cc_basename in
16463 KCC)
16464 # Kuck and Associates, Inc. (KAI) C++ Compiler
16465
16466 # KCC will only create a shared library if the output file
16467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16468 # to its proper name (with version) after linking.
16469 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'
16470
16471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16472 hardcode_libdir_separator_CXX=:
16473
16474 # Archives containing C++ object files must be created using
16475 # the KAI C++ compiler.
16476 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16477 ;;
16478 RCC)
16479 # Rational C++ 2.4.1
16480 # FIXME: insert proper C++ library support
16481 ld_shlibs_CXX=no
16482 ;;
16483 cxx)
16484 allow_undefined_flag_CXX=' -expect_unresolved \*'
16485 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 +000016486 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16487 echo "-hidden">> $lib.exp~
16488 $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~
16489 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016490
16491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16492 hardcode_libdir_separator_CXX=:
16493
16494 # Commands to make compiler produce verbose output that lists
16495 # what "hidden" libraries, object files and flags are used when
16496 # linking a shared library.
16497 #
16498 # There doesn't appear to be a way to prevent this compiler from
16499 # explicitly linking system object files so we need to strip them
16500 # from the output so that they don't get included in the library
16501 # dependencies.
16502 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'
16503 ;;
16504 *)
16505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16506 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16507 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'
16508
16509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16510 hardcode_libdir_separator_CXX=:
16511
16512 # Commands to make compiler produce verbose output that lists
16513 # what "hidden" libraries, object files and flags are used when
16514 # linking a shared library.
16515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16516
16517 else
16518 # FIXME: insert proper C++ library support
16519 ld_shlibs_CXX=no
16520 fi
16521 ;;
16522 esac
16523 ;;
16524 psos*)
16525 # FIXME: insert proper C++ library support
16526 ld_shlibs_CXX=no
16527 ;;
16528 sco*)
16529 archive_cmds_need_lc_CXX=no
16530 case $cc_basename in
16531 CC)
16532 # FIXME: insert proper C++ library support
16533 ld_shlibs_CXX=no
16534 ;;
16535 *)
16536 # FIXME: insert proper C++ library support
16537 ld_shlibs_CXX=no
16538 ;;
16539 esac
16540 ;;
16541 sunos4*)
16542 case $cc_basename in
16543 CC)
16544 # Sun C++ 4.x
16545 # FIXME: insert proper C++ library support
16546 ld_shlibs_CXX=no
16547 ;;
16548 lcc)
16549 # Lucid
16550 # FIXME: insert proper C++ library support
16551 ld_shlibs_CXX=no
16552 ;;
16553 *)
16554 # FIXME: insert proper C++ library support
16555 ld_shlibs_CXX=no
16556 ;;
16557 esac
16558 ;;
16559 solaris*)
16560 case $cc_basename in
16561 CC)
16562 # Sun C++ 4.2, 5.x and Centerline C++
16563 no_undefined_flag_CXX=' -zdefs'
16564 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 +000016565 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16566 $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 +000016567
16568 hardcode_libdir_flag_spec_CXX='-R$libdir'
16569 hardcode_shlibpath_var_CXX=no
16570 case $host_os in
16571 solaris2.0-5 | solaris2.0-5.*) ;;
16572 *)
16573 # The C++ compiler is used as linker so we must use $wl
16574 # flag to pass the commands to the underlying system
16575 # linker.
16576 # Supported since Solaris 2.6 (maybe 2.5.1?)
16577 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16578 ;;
16579 esac
16580 link_all_deplibs_CXX=yes
16581
16582 # Commands to make compiler produce verbose output that lists
16583 # what "hidden" libraries, object files and flags are used when
16584 # linking a shared library.
16585 #
16586 # There doesn't appear to be a way to prevent this compiler from
16587 # explicitly linking system object files so we need to strip them
16588 # from the output so that they don't get included in the library
16589 # dependencies.
16590 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'
16591
16592 # Archives containing C++ object files must be created using
16593 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16594 # necessary to make sure instantiated templates are included
16595 # in the archive.
16596 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16597 ;;
16598 gcx)
16599 # Green Hills C++ Compiler
16600 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16601
16602 # The C++ compiler must be used to create the archive.
16603 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16604 ;;
16605 *)
16606 # GNU C++ compiler with Solaris linker
16607 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16608 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16609 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016610 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 +000016611 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16612 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16613
John Criswell47fdd832003-07-14 16:52:07 +000016614 # Commands to make compiler produce verbose output that lists
16615 # what "hidden" libraries, object files and flags are used when
16616 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016617 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016618 else
16619 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16620 # platform.
16621 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 +000016622 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623 $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 +000016624
16625 # Commands to make compiler produce verbose output that lists
16626 # what "hidden" libraries, object files and flags are used when
16627 # linking a shared library.
16628 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16629 fi
16630
16631 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16632 fi
16633 ;;
16634 esac
16635 ;;
16636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16637 archive_cmds_need_lc_CXX=no
16638 ;;
16639 tandem*)
16640 case $cc_basename in
16641 NCC)
16642 # NonStop-UX NCC 3.20
16643 # FIXME: insert proper C++ library support
16644 ld_shlibs_CXX=no
16645 ;;
16646 *)
16647 # FIXME: insert proper C++ library support
16648 ld_shlibs_CXX=no
16649 ;;
16650 esac
16651 ;;
16652 vxworks*)
16653 # FIXME: insert proper C++ library support
16654 ld_shlibs_CXX=no
16655 ;;
16656 *)
16657 # FIXME: insert proper C++ library support
16658 ld_shlibs_CXX=no
16659 ;;
16660esac
16661echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16662echo "${ECHO_T}$ld_shlibs_CXX" >&6
16663test "$ld_shlibs_CXX" = no && can_build_shared=no
16664
16665GCC_CXX="$GXX"
16666LD_CXX="$LD"
16667
John Criswell47fdd832003-07-14 16:52:07 +000016668
16669cat > conftest.$ac_ext <<EOF
16670class Foo
16671{
16672public:
16673 Foo (void) { a = 0; }
16674private:
16675 int a;
16676};
16677EOF
16678
16679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; then
16684 # Parse the compiler output and extract the necessary
16685 # objects, libraries and library flags.
16686
16687 # Sentinel used to keep track of whether or not we are before
16688 # the conftest object file.
16689 pre_test_object_deps_done=no
16690
16691 # The `*' in the case matches for architectures that use `case' in
16692 # $output_verbose_cmd can trigger glob expansion during the loop
16693 # eval without this substitution.
16694 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16695
16696 for p in `eval $output_verbose_link_cmd`; do
16697 case $p in
16698
16699 -L* | -R* | -l*)
16700 # Some compilers place space between "-{L,R}" and the path.
16701 # Remove the space.
16702 if test $p = "-L" \
16703 || test $p = "-R"; then
16704 prev=$p
16705 continue
16706 else
16707 prev=
16708 fi
16709
16710 if test "$pre_test_object_deps_done" = no; then
16711 case $p in
16712 -L* | -R*)
16713 # Internal compiler library paths should come after those
16714 # provided the user. The postdeps already come after the
16715 # user supplied libs so there is no need to process them.
16716 if test -z "$compiler_lib_search_path_CXX"; then
16717 compiler_lib_search_path_CXX="${prev}${p}"
16718 else
16719 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16720 fi
16721 ;;
16722 # The "-l" case would never come before the object being
16723 # linked, so don't bother handling this case.
16724 esac
16725 else
16726 if test -z "$postdeps_CXX"; then
16727 postdeps_CXX="${prev}${p}"
16728 else
16729 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16730 fi
16731 fi
16732 ;;
16733
16734 *.$objext)
16735 # This assumes that the test object file only shows up
16736 # once in the compiler output.
16737 if test "$p" = "conftest.$objext"; then
16738 pre_test_object_deps_done=yes
16739 continue
16740 fi
16741
16742 if test "$pre_test_object_deps_done" = no; then
16743 if test -z "$predep_objects_CXX"; then
16744 predep_objects_CXX="$p"
16745 else
16746 predep_objects_CXX="$predep_objects_CXX $p"
16747 fi
16748 else
16749 if test -z "$postdep_objects_CXX"; then
16750 postdep_objects_CXX="$p"
16751 else
16752 postdep_objects_CXX="$postdep_objects_CXX $p"
16753 fi
16754 fi
16755 ;;
16756
16757 *) ;; # Ignore the rest.
16758
16759 esac
16760 done
16761
16762 # Clean up.
16763 rm -f a.out a.exe
16764else
16765 echo "libtool.m4: error: problem compiling CXX test program"
16766fi
16767
16768$rm -f confest.$objext
16769
16770case " $postdeps_CXX " in
16771*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16772esac
16773
16774lt_prog_compiler_wl_CXX=
16775lt_prog_compiler_pic_CXX=
16776lt_prog_compiler_static_CXX=
16777
16778echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16779echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16780
16781 # C++ specific cases for pic, static, wl, etc.
16782 if test "$GXX" = yes; then
16783 lt_prog_compiler_wl_CXX='-Wl,'
16784 lt_prog_compiler_static_CXX='-static'
16785
16786 case $host_os in
16787 aix*)
16788 # All AIX code is PIC.
16789 if test "$host_cpu" = ia64; then
16790 # AIX 5 now supports IA64 processor
16791 lt_prog_compiler_static_CXX='-Bstatic'
16792 fi
16793 ;;
16794 amigaos*)
16795 # FIXME: we need at least 68020 code to build shared libraries, but
16796 # adding the `-m68020' flag to GCC prevents building anything better,
16797 # like `-m68040'.
16798 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16799 ;;
16800 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16801 # PIC is the default for these OSes.
16802 ;;
16803 mingw* | os2* | pw32*)
16804 # This hack is so that the source file can tell whether it is being
16805 # built for inclusion in a dll (and should export symbols for example).
16806 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16807 ;;
16808 darwin* | rhapsody*)
16809 # PIC is the default on this platform
16810 # Common symbols not allowed in MH_DYLIB files
16811 lt_prog_compiler_pic_CXX='-fno-common'
16812 ;;
16813 *djgpp*)
16814 # DJGPP does not support shared libraries at all
16815 lt_prog_compiler_pic_CXX=
16816 ;;
16817 sysv4*MP*)
16818 if test -d /usr/nec; then
16819 lt_prog_compiler_pic_CXX=-Kconform_pic
16820 fi
16821 ;;
16822 hpux*)
16823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16824 # not for PA HP-UX.
16825 case "$host_cpu" in
16826 hppa*64*|ia64*)
16827 ;;
16828 *)
16829 lt_prog_compiler_pic_CXX='-fPIC'
16830 ;;
16831 esac
16832 ;;
16833 *)
16834 lt_prog_compiler_pic_CXX='-fPIC'
16835 ;;
16836 esac
16837 else
16838 case $host_os in
16839 aix4* | aix5*)
16840 # All AIX code is PIC.
16841 if test "$host_cpu" = ia64; then
16842 # AIX 5 now supports IA64 processor
16843 lt_prog_compiler_static_CXX='-Bstatic'
16844 else
16845 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16846 fi
16847 ;;
16848 chorus*)
16849 case $cc_basename in
16850 cxch68)
16851 # Green Hills C++ Compiler
16852 # _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"
16853 ;;
16854 esac
16855 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016856 darwin*)
16857 # PIC is the default on this platform
16858 # Common symbols not allowed in MH_DYLIB files
16859 case "$cc_basename" in
16860 xlc*)
16861 lt_prog_compiler_pic_CXX='-qnocommon'
16862 lt_prog_compiler_wl_CXX='-Wl,'
16863 ;;
16864 esac
16865 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016866 dgux*)
16867 case $cc_basename in
16868 ec++)
16869 lt_prog_compiler_pic_CXX='-KPIC'
16870 ;;
16871 ghcx)
16872 # Green Hills C++ Compiler
16873 lt_prog_compiler_pic_CXX='-pic'
16874 ;;
16875 *)
16876 ;;
16877 esac
16878 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016879 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016880 # FreeBSD uses GNU C++
16881 ;;
16882 hpux9* | hpux10* | hpux11*)
16883 case $cc_basename in
16884 CC)
16885 lt_prog_compiler_wl_CXX='-Wl,'
16886 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16887 if test "$host_cpu" != ia64; then
16888 lt_prog_compiler_pic_CXX='+Z'
16889 fi
16890 ;;
16891 aCC)
16892 lt_prog_compiler_wl_CXX='-Wl,'
16893 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16894 case "$host_cpu" in
16895 hppa*64*|ia64*)
16896 # +Z the default
16897 ;;
16898 *)
16899 lt_prog_compiler_pic_CXX='+Z'
16900 ;;
16901 esac
16902 ;;
16903 *)
16904 ;;
16905 esac
16906 ;;
16907 irix5* | irix6* | nonstopux*)
16908 case $cc_basename in
16909 CC)
16910 lt_prog_compiler_wl_CXX='-Wl,'
16911 lt_prog_compiler_static_CXX='-non_shared'
16912 # CC pic flag -KPIC is the default.
16913 ;;
16914 *)
16915 ;;
16916 esac
16917 ;;
16918 linux*)
16919 case $cc_basename in
16920 KCC)
16921 # KAI C++ Compiler
16922 lt_prog_compiler_wl_CXX='--backend -Wl,'
16923 lt_prog_compiler_pic_CXX='-fPIC'
16924 ;;
16925 icpc)
16926 # Intel C++
16927 lt_prog_compiler_wl_CXX='-Wl,'
16928 lt_prog_compiler_pic_CXX='-KPIC'
16929 lt_prog_compiler_static_CXX='-static'
16930 ;;
16931 cxx)
16932 # Compaq C++
16933 # Make sure the PIC flag is empty. It appears that all Alpha
16934 # Linux and Compaq Tru64 Unix objects are PIC.
16935 lt_prog_compiler_pic_CXX=
16936 lt_prog_compiler_static_CXX='-non_shared'
16937 ;;
16938 *)
16939 ;;
16940 esac
16941 ;;
16942 lynxos*)
16943 ;;
16944 m88k*)
16945 ;;
16946 mvs*)
16947 case $cc_basename in
16948 cxx)
16949 lt_prog_compiler_pic_CXX='-W c,exportall'
16950 ;;
16951 *)
16952 ;;
16953 esac
16954 ;;
16955 netbsd*)
16956 ;;
16957 osf3* | osf4* | osf5*)
16958 case $cc_basename in
16959 KCC)
16960 lt_prog_compiler_wl_CXX='--backend -Wl,'
16961 ;;
16962 RCC)
16963 # Rational C++ 2.4.1
16964 lt_prog_compiler_pic_CXX='-pic'
16965 ;;
16966 cxx)
16967 # Digital/Compaq C++
16968 lt_prog_compiler_wl_CXX='-Wl,'
16969 # Make sure the PIC flag is empty. It appears that all Alpha
16970 # Linux and Compaq Tru64 Unix objects are PIC.
16971 lt_prog_compiler_pic_CXX=
16972 lt_prog_compiler_static_CXX='-non_shared'
16973 ;;
16974 *)
16975 ;;
16976 esac
16977 ;;
16978 psos*)
16979 ;;
16980 sco*)
16981 case $cc_basename in
16982 CC)
16983 lt_prog_compiler_pic_CXX='-fPIC'
16984 ;;
16985 *)
16986 ;;
16987 esac
16988 ;;
16989 solaris*)
16990 case $cc_basename in
16991 CC)
16992 # Sun C++ 4.2, 5.x and Centerline C++
16993 lt_prog_compiler_pic_CXX='-KPIC'
16994 lt_prog_compiler_static_CXX='-Bstatic'
16995 lt_prog_compiler_wl_CXX='-Qoption ld '
16996 ;;
16997 gcx)
16998 # Green Hills C++ Compiler
16999 lt_prog_compiler_pic_CXX='-PIC'
17000 ;;
17001 *)
17002 ;;
17003 esac
17004 ;;
17005 sunos4*)
17006 case $cc_basename in
17007 CC)
17008 # Sun C++ 4.x
17009 lt_prog_compiler_pic_CXX='-pic'
17010 lt_prog_compiler_static_CXX='-Bstatic'
17011 ;;
17012 lcc)
17013 # Lucid
17014 lt_prog_compiler_pic_CXX='-pic'
17015 ;;
17016 *)
17017 ;;
17018 esac
17019 ;;
17020 tandem*)
17021 case $cc_basename in
17022 NCC)
17023 # NonStop-UX NCC 3.20
17024 lt_prog_compiler_pic_CXX='-KPIC'
17025 ;;
17026 *)
17027 ;;
17028 esac
17029 ;;
17030 unixware*)
17031 ;;
17032 vxworks*)
17033 ;;
17034 *)
17035 lt_prog_compiler_can_build_shared_CXX=no
17036 ;;
17037 esac
17038 fi
17039
17040echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17041echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17042
17043#
17044# Check to make sure the PIC flag actually works.
17045#
17046if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000017047
17048echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000017049echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17050if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052else
17053 lt_prog_compiler_pic_works_CXX=no
17054 ac_outfile=conftest.$ac_objext
17055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17056 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17057 # Insert the option either (1) after the last *FLAGS variable, or
17058 # (2) before a word containing "conftest.", or (3) at the end.
17059 # Note that $ac_compile itself does not contain backslashes and begins
17060 # with a dollar sign (not a hyphen), so the echo should work correctly.
17061 # The option is referenced via a variable to avoid confusing sed.
17062 lt_compile=`echo "$ac_compile" | $SED \
17063 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17065 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000017066 (eval echo "\"\$as_me:17066: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000017067 (eval "$lt_compile" 2>conftest.err)
17068 ac_status=$?
17069 cat conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000017070 echo "$as_me:17070: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000017071 if (exit $ac_status) && test -s "$ac_outfile"; then
17072 # The compiler can only warn and ignore the option if not recognized
17073 # So say no if there are warnings
17074 if test ! -s conftest.err; then
17075 lt_prog_compiler_pic_works_CXX=yes
17076 fi
17077 fi
17078 $rm conftest*
17079
17080fi
17081echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17082echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17083
17084if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17085 case $lt_prog_compiler_pic_CXX in
17086 "" | " "*) ;;
17087 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17088 esac
17089else
17090 lt_prog_compiler_pic_CXX=
17091 lt_prog_compiler_can_build_shared_CXX=no
17092fi
17093
17094fi
17095case "$host_os" in
17096 # For platforms which do not support PIC, -DPIC is meaningless:
17097 *djgpp*)
17098 lt_prog_compiler_pic_CXX=
17099 ;;
17100 *)
17101 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17102 ;;
17103esac
17104
17105echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17106echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17107if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109else
17110 lt_cv_prog_compiler_c_o_CXX=no
17111 $rm -r conftest 2>/dev/null
17112 mkdir conftest
17113 cd conftest
17114 mkdir out
17115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17116
John Criswell47fdd832003-07-14 16:52:07 +000017117 lt_compiler_flag="-o out/conftest2.$ac_objext"
17118 # Insert the option either (1) after the last *FLAGS variable, or
17119 # (2) before a word containing "conftest.", or (3) at the end.
17120 # Note that $ac_compile itself does not contain backslashes and begins
17121 # with a dollar sign (not a hyphen), so the echo should work correctly.
17122 lt_compile=`echo "$ac_compile" | $SED \
17123 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17125 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000017126 (eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000017127 (eval "$lt_compile" 2>out/conftest.err)
17128 ac_status=$?
17129 cat out/conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000017130 echo "$as_me:17130: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000017131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17132 then
17133 # The compiler can only warn and ignore the option if not recognized
17134 # So say no if there are warnings
17135 if test ! -s out/conftest.err; then
17136 lt_cv_prog_compiler_c_o_CXX=yes
17137 fi
17138 fi
17139 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000017140 $rm conftest*
17141 # SGI C++ compiler will create directory out/ii_files/ for
17142 # template instantiation
17143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17144 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000017145 cd ..
17146 rmdir conftest
17147 $rm conftest*
17148
17149fi
17150echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17151echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17152
17153
17154hard_links="nottested"
17155if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17156 # do not overwrite the value of need_locks provided by the user
17157 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17158echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17159 hard_links=yes
17160 $rm conftest*
17161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17162 touch conftest.a
17163 ln conftest.a conftest.b 2>&5 || hard_links=no
17164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165 echo "$as_me:$LINENO: result: $hard_links" >&5
17166echo "${ECHO_T}$hard_links" >&6
17167 if test "$hard_links" = no; then
17168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17169echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17170 need_locks=warn
17171 fi
17172else
17173 need_locks=no
17174fi
17175
17176echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17177echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17178
17179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17180 case $host_os in
17181 aix4* | aix5*)
17182 # If we're using GNU nm, then we don't want the "-C" option.
17183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17184 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17185 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'
17186 else
17187 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'
17188 fi
17189 ;;
17190 pw32*)
17191 export_symbols_cmds_CXX="$ltdll_cmds"
17192 ;;
17193 cygwin* | mingw*)
17194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17195 ;;
17196 *)
17197 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17198 ;;
17199 esac
17200
17201echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17202echo "${ECHO_T}$ld_shlibs_CXX" >&6
17203test "$ld_shlibs_CXX" = no && can_build_shared=no
17204
17205variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17206if test "$GCC" = yes; then
17207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17208fi
17209
17210#
17211# Do we need to explicitly link libc?
17212#
17213case "x$archive_cmds_need_lc_CXX" in
17214x|xyes)
17215 # Assume -lc should be added
17216 archive_cmds_need_lc_CXX=yes
17217
17218 if test "$enable_shared" = yes && test "$GCC" = yes; then
17219 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017220 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000017221 # FIXME: we may have to deal with multi-command sequences.
17222 ;;
17223 '$CC '*)
17224 # Test whether the compiler implicitly links with -lc since on some
17225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17226 # to ld, don't add -lc before -lgcc.
17227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17228echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17229 $rm conftest*
17230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17231
17232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233 (eval $ac_compile) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } 2>conftest.err; then
17237 soname=conftest
17238 lib=conftest
17239 libobjs=conftest.$ac_objext
17240 deplibs=
17241 wl=$lt_prog_compiler_wl_CXX
17242 compiler_flags=-v
17243 linker_flags=-v
17244 verstring=
17245 output_objdir=.
17246 libname=conftest
17247 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17248 allow_undefined_flag_CXX=
17249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17250 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }
17254 then
17255 archive_cmds_need_lc_CXX=no
17256 else
17257 archive_cmds_need_lc_CXX=yes
17258 fi
17259 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17260 else
17261 cat conftest.err 1>&5
17262 fi
17263 $rm conftest*
17264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17265echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17266 ;;
17267 esac
17268 fi
17269 ;;
17270esac
17271
John Criswell47fdd832003-07-14 16:52:07 +000017272echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17273echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17274library_names_spec=
17275libname_spec='lib$name'
17276soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000017277shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000017278postinstall_cmds=
17279postuninstall_cmds=
17280finish_cmds=
17281finish_eval=
17282shlibpath_var=
17283shlibpath_overrides_runpath=unknown
17284version_type=none
17285dynamic_linker="$host_os ld.so"
17286sys_lib_dlsearch_path_spec="/lib /usr/lib"
17287if test "$GCC" = yes; then
17288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17290 # if the path contains ";" then we assume it to be the separator
17291 # otherwise default to the standard path separator (i.e. ":") - it is
17292 # assumed that no part of a normal pathname contains ";" but that should
17293 # okay in the real world where ";" in dirpaths is itself problematic.
17294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17295 else
17296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17297 fi
17298else
17299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17300fi
17301need_lib_prefix=unknown
17302hardcode_into_libs=no
17303
17304# when you set need_version to no, make sure it does not cause -set_version
17305# flags to be left without arguments
17306need_version=unknown
17307
17308case $host_os in
17309aix3*)
17310 version_type=linux
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17312 shlibpath_var=LIBPATH
17313
17314 # AIX 3 has no versioning support, so we append a major version to the name.
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 ;;
17317
17318aix4* | aix5*)
17319 version_type=linux
17320 need_lib_prefix=no
17321 need_version=no
17322 hardcode_into_libs=yes
17323 if test "$host_cpu" = ia64; then
17324 # AIX 5 supports IA64
17325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 else
17328 # With GCC up to 2.95.x, collect2 would create an import file
17329 # for dependence libraries. The import file would start with
17330 # the line `#! .'. This would cause the generated library to
17331 # depend on `.', always an invalid library. This was fixed in
17332 # development snapshots of GCC prior to 3.0.
17333 case $host_os in
17334 aix4 | aix4.[01] | aix4.[01].*)
17335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17336 echo ' yes '
17337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17338 :
17339 else
17340 can_build_shared=no
17341 fi
17342 ;;
17343 esac
17344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17345 # soname into executable. Probably we can add versioning support to
17346 # collect2, so additional links can be useful in future.
17347 if test "$aix_use_runtimelinking" = yes; then
17348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17349 # instead of lib<name>.a to let people know that these are not
17350 # typical AIX shared libraries.
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352 else
17353 # We preserve .a as extension for shared libraries through AIX4.2
17354 # and later when we are not doing run time linking.
17355 library_names_spec='${libname}${release}.a $libname.a'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17357 fi
17358 shlibpath_var=LIBPATH
17359 fi
17360 ;;
17361
17362amigaos*)
17363 library_names_spec='$libname.ixlibrary $libname.a'
17364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017365 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 +000017366 ;;
17367
17368beos*)
17369 library_names_spec='${libname}${shared_ext}'
17370 dynamic_linker="$host_os ld.so"
17371 shlibpath_var=LIBRARY_PATH
17372 ;;
17373
Reid Spencer2706f8c2004-09-19 23:53:36 +000017374bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017375 version_type=linux
17376 need_version=no
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17383 # the default ld.so.conf also contains /usr/contrib/lib and
17384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17385 # libtool to hard-code these into programs
17386 ;;
17387
17388cygwin* | mingw* | pw32*)
17389 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017390 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017391 need_version=no
17392 need_lib_prefix=no
17393
17394 case $GCC,$host_os in
17395 yes,cygwin* | yes,mingw* | yes,pw32*)
17396 library_names_spec='$libname.dll.a'
17397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017398 postinstall_cmds='base_file=`basename \${file}`~
17399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17400 dldir=$destdir/`dirname \$dlpath`~
17401 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017402 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17404 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017405 $rm \$dlpath'
17406 shlibpath_overrides_runpath=yes
17407
17408 case $host_os in
17409 cygwin*)
17410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17411 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 +000017412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017413 ;;
17414 mingw*)
17415 # MinGW DLLs use traditional 'lib' prefix
17416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17419 # It is most probably a Windows format PATH printed by
17420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17421 # path with ; separators, and with drive letters. We can handle the
17422 # drive letters (cygwin fileutils understands them), so leave them,
17423 # especially as we might pass files found there to a mingw objdump,
17424 # which wouldn't understand a cygwinified path. Ahh.
17425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17426 else
17427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17428 fi
17429 ;;
17430 pw32*)
17431 # pw32 DLLs use 'pw' prefix rather than 'lib'
17432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17433 ;;
17434 esac
17435 ;;
17436
17437 *)
17438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17439 ;;
17440 esac
17441 dynamic_linker='Win32 ld.exe'
17442 # FIXME: first we should search . and the directory the executable is in
17443 shlibpath_var=PATH
17444 ;;
17445
17446darwin* | rhapsody*)
17447 dynamic_linker="$host_os dyld"
17448 version_type=darwin
17449 need_lib_prefix=no
17450 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017451 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017452 soname_spec='${libname}${release}${major}$shared_ext'
17453 shlibpath_overrides_runpath=yes
17454 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017455 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017457 if test "$GCC" = yes; then
17458 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"`
17459 else
17460 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017461 fi
17462 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17463 ;;
17464
17465dgux*)
17466 version_type=linux
17467 need_lib_prefix=no
17468 need_version=no
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 ;;
17473
17474freebsd1*)
17475 dynamic_linker=no
17476 ;;
17477
Reid Spencer2706f8c2004-09-19 23:53:36 +000017478kfreebsd*-gnu)
17479 version_type=linux
17480 need_lib_prefix=no
17481 need_version=no
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17483 soname_spec='${libname}${release}${shared_ext}$major'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 shlibpath_overrides_runpath=no
17486 hardcode_into_libs=yes
17487 dynamic_linker='GNU ld.so'
17488 ;;
17489
John Criswell47fdd832003-07-14 16:52:07 +000017490freebsd*)
17491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17492 version_type=freebsd-$objformat
17493 case $version_type in
17494 freebsd-elf*)
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17496 need_version=no
17497 need_lib_prefix=no
17498 ;;
17499 freebsd-*)
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17501 need_version=yes
17502 ;;
17503 esac
17504 shlibpath_var=LD_LIBRARY_PATH
17505 case $host_os in
17506 freebsd2*)
17507 shlibpath_overrides_runpath=yes
17508 ;;
17509 freebsd3.01* | freebsdelf3.01*)
17510 shlibpath_overrides_runpath=yes
17511 hardcode_into_libs=yes
17512 ;;
17513 *) # from 3.2 on
17514 shlibpath_overrides_runpath=no
17515 hardcode_into_libs=yes
17516 ;;
17517 esac
17518 ;;
17519
17520gnu*)
17521 version_type=linux
17522 need_lib_prefix=no
17523 need_version=no
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17525 soname_spec='${libname}${release}${shared_ext}$major'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 hardcode_into_libs=yes
17528 ;;
17529
17530hpux9* | hpux10* | hpux11*)
17531 # Give a soname corresponding to the major version so that dld.sl refuses to
17532 # link against other versions.
17533 version_type=sunos
17534 need_lib_prefix=no
17535 need_version=no
17536 case "$host_cpu" in
17537 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017538 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017539 hardcode_into_libs=yes
17540 dynamic_linker="$host_os dld.so"
17541 shlibpath_var=LD_LIBRARY_PATH
17542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 soname_spec='${libname}${release}${shared_ext}$major'
17545 if test "X$HPUX_IA64_MODE" = X32; then
17546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17547 else
17548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17549 fi
17550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17551 ;;
17552 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017553 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017554 hardcode_into_libs=yes
17555 dynamic_linker="$host_os dld.sl"
17556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17562 ;;
17563 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017564 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017565 dynamic_linker="$host_os dld.sl"
17566 shlibpath_var=SHLIB_PATH
17567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 ;;
17571 esac
17572 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17573 postinstall_cmds='chmod 555 $lib'
17574 ;;
17575
17576irix5* | irix6* | nonstopux*)
17577 case $host_os in
17578 nonstopux*) version_type=nonstopux ;;
17579 *)
17580 if test "$lt_cv_prog_gnu_ld" = yes; then
17581 version_type=linux
17582 else
17583 version_type=irix
17584 fi ;;
17585 esac
17586 need_lib_prefix=no
17587 need_version=no
17588 soname_spec='${libname}${release}${shared_ext}$major'
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17590 case $host_os in
17591 irix5* | nonstopux*)
17592 libsuff= shlibsuff=
17593 ;;
17594 *)
17595 case $LD in # libtool.m4 will add one of these switches to LD
17596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17597 libsuff= shlibsuff= libmagic=32-bit;;
17598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17599 libsuff=32 shlibsuff=N32 libmagic=N32;;
17600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17602 *) libsuff= shlibsuff= libmagic=never-match;;
17603 esac
17604 ;;
17605 esac
17606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17607 shlibpath_overrides_runpath=no
17608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17610 hardcode_into_libs=yes
17611 ;;
17612
17613# No shared lib support for Linux oldld, aout, or coff.
17614linux*oldld* | linux*aout* | linux*coff*)
17615 dynamic_linker=no
17616 ;;
17617
17618# This must be Linux ELF.
17619linux*)
17620 version_type=linux
17621 need_lib_prefix=no
17622 need_version=no
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17626 shlibpath_var=LD_LIBRARY_PATH
17627 shlibpath_overrides_runpath=no
17628 # This implies no fast_install, which is unacceptable.
17629 # Some rework will be needed to allow for fast_install
17630 # before this can be enabled.
17631 hardcode_into_libs=yes
17632
Reid Spencer2706f8c2004-09-19 23:53:36 +000017633 # Append ld.so.conf contents to the search path
17634 if test -f /etc/ld.so.conf; then
17635 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17637 fi
17638
John Criswell47fdd832003-07-14 16:52:07 +000017639 # We used to test for /lib/ld.so.1 and disable shared libraries on
17640 # powerpc, because MkLinux only supported shared libraries with the
17641 # GNU dynamic linker. Since this was broken with cross compilers,
17642 # most powerpc-linux boxes support dynamic linking these days and
17643 # people can always --disable-shared, the test was removed, and we
17644 # assume the GNU/Linux dynamic linker is in use.
17645 dynamic_linker='GNU/Linux ld.so'
17646 ;;
17647
Reid Spencer2706f8c2004-09-19 23:53:36 +000017648knetbsd*-gnu)
17649 version_type=linux
17650 need_lib_prefix=no
17651 need_version=no
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=no
17656 hardcode_into_libs=yes
17657 dynamic_linker='GNU ld.so'
17658 ;;
17659
John Criswell47fdd832003-07-14 16:52:07 +000017660netbsd*)
17661 version_type=sunos
17662 need_lib_prefix=no
17663 need_version=no
17664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17667 dynamic_linker='NetBSD (a.out) ld.so'
17668 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017670 soname_spec='${libname}${release}${shared_ext}$major'
17671 dynamic_linker='NetBSD ld.elf_so'
17672 fi
17673 shlibpath_var=LD_LIBRARY_PATH
17674 shlibpath_overrides_runpath=yes
17675 hardcode_into_libs=yes
17676 ;;
17677
17678newsos6)
17679 version_type=linux
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 shlibpath_overrides_runpath=yes
17683 ;;
17684
Reid Spencer2706f8c2004-09-19 23:53:36 +000017685nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017686 version_type=linux
17687 need_lib_prefix=no
17688 need_version=no
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=yes
17693 ;;
17694
17695openbsd*)
17696 version_type=sunos
17697 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017698 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17703 case $host_os in
17704 openbsd2.[89] | openbsd2.[89].*)
17705 shlibpath_overrides_runpath=no
17706 ;;
17707 *)
17708 shlibpath_overrides_runpath=yes
17709 ;;
17710 esac
17711 else
17712 shlibpath_overrides_runpath=yes
17713 fi
17714 ;;
17715
17716os2*)
17717 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017718 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017719 need_lib_prefix=no
17720 library_names_spec='$libname${shared_ext} $libname.a'
17721 dynamic_linker='OS/2 ld.exe'
17722 shlibpath_var=LIBPATH
17723 ;;
17724
17725osf3* | osf4* | osf5*)
17726 version_type=osf
17727 need_lib_prefix=no
17728 need_version=no
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17734 ;;
17735
17736sco3.2v5*)
17737 version_type=osf
17738 soname_spec='${libname}${release}${shared_ext}$major'
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 shlibpath_var=LD_LIBRARY_PATH
17741 ;;
17742
17743solaris*)
17744 version_type=linux
17745 need_lib_prefix=no
17746 need_version=no
17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17748 soname_spec='${libname}${release}${shared_ext}$major'
17749 shlibpath_var=LD_LIBRARY_PATH
17750 shlibpath_overrides_runpath=yes
17751 hardcode_into_libs=yes
17752 # ldd complains unless libraries are executable
17753 postinstall_cmds='chmod +x $lib'
17754 ;;
17755
17756sunos4*)
17757 version_type=sunos
17758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17760 shlibpath_var=LD_LIBRARY_PATH
17761 shlibpath_overrides_runpath=yes
17762 if test "$with_gnu_ld" = yes; then
17763 need_lib_prefix=no
17764 fi
17765 need_version=yes
17766 ;;
17767
17768sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17769 version_type=linux
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771 soname_spec='${libname}${release}${shared_ext}$major'
17772 shlibpath_var=LD_LIBRARY_PATH
17773 case $host_vendor in
17774 sni)
17775 shlibpath_overrides_runpath=no
17776 need_lib_prefix=no
17777 export_dynamic_flag_spec='${wl}-Blargedynsym'
17778 runpath_var=LD_RUN_PATH
17779 ;;
17780 siemens)
17781 need_lib_prefix=no
17782 ;;
17783 motorola)
17784 need_lib_prefix=no
17785 need_version=no
17786 shlibpath_overrides_runpath=no
17787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17788 ;;
17789 esac
17790 ;;
17791
17792sysv4*MP*)
17793 if test -d /usr/nec ;then
17794 version_type=linux
17795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17796 soname_spec='$libname${shared_ext}.$major'
17797 shlibpath_var=LD_LIBRARY_PATH
17798 fi
17799 ;;
17800
17801uts4*)
17802 version_type=linux
17803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804 soname_spec='${libname}${release}${shared_ext}$major'
17805 shlibpath_var=LD_LIBRARY_PATH
17806 ;;
17807
17808*)
17809 dynamic_linker=no
17810 ;;
17811esac
17812echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17813echo "${ECHO_T}$dynamic_linker" >&6
17814test "$dynamic_linker" = no && can_build_shared=no
17815
Reid Spencer2706f8c2004-09-19 23:53:36 +000017816echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17817echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17818hardcode_action_CXX=
17819if test -n "$hardcode_libdir_flag_spec_CXX" || \
17820 test -n "$runpath_var_CXX" || \
17821 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17822
17823 # We can hardcode non-existant directories.
17824 if test "$hardcode_direct_CXX" != no &&
17825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17826 # have to relink, otherwise we might link with an installed library
17827 # when we should be linking with a yet-to-be-installed one
17828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17829 test "$hardcode_minus_L_CXX" != no; then
17830 # Linking always hardcodes the temporary library directory.
17831 hardcode_action_CXX=relink
17832 else
17833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17834 hardcode_action_CXX=immediate
17835 fi
17836else
17837 # We cannot hardcode anything, or else we can only hardcode existing
17838 # directories.
17839 hardcode_action_CXX=unsupported
17840fi
17841echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17842echo "${ECHO_T}$hardcode_action_CXX" >&6
17843
17844if test "$hardcode_action_CXX" = relink; then
17845 # Fast installation is not supported
17846 enable_fast_install=no
17847elif test "$shlibpath_overrides_runpath" = yes ||
17848 test "$enable_shared" = no; then
17849 # Fast installation is not necessary
17850 enable_fast_install=needless
17851fi
17852
17853striplib=
17854old_striplib=
17855echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17856echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17857if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17859 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17860 echo "$as_me:$LINENO: result: yes" >&5
17861echo "${ECHO_T}yes" >&6
17862else
17863# FIXME - insert some real tests, host_os isn't really good enough
17864 case $host_os in
17865 darwin*)
17866 if test -n "$STRIP" ; then
17867 striplib="$STRIP -x"
17868 echo "$as_me:$LINENO: result: yes" >&5
17869echo "${ECHO_T}yes" >&6
17870 else
17871 echo "$as_me:$LINENO: result: no" >&5
17872echo "${ECHO_T}no" >&6
17873fi
17874 ;;
17875 *)
17876 echo "$as_me:$LINENO: result: no" >&5
17877echo "${ECHO_T}no" >&6
17878 ;;
17879 esac
17880fi
17881
John Criswell47fdd832003-07-14 16:52:07 +000017882if test "x$enable_dlopen" != xyes; then
17883 enable_dlopen=unknown
17884 enable_dlopen_self=unknown
17885 enable_dlopen_self_static=unknown
17886else
17887 lt_cv_dlopen=no
17888 lt_cv_dlopen_libs=
17889
17890 case $host_os in
17891 beos*)
17892 lt_cv_dlopen="load_add_on"
17893 lt_cv_dlopen_libs=
17894 lt_cv_dlopen_self=yes
17895 ;;
17896
17897 mingw* | pw32*)
17898 lt_cv_dlopen="LoadLibrary"
17899 lt_cv_dlopen_libs=
17900 ;;
17901
17902 cygwin*)
17903 lt_cv_dlopen="dlopen"
17904 lt_cv_dlopen_libs=
17905 ;;
17906
17907 darwin*)
17908 # if libdl is installed we need to link against it
17909 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17910echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17911if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913else
17914 ac_check_lib_save_LIBS=$LIBS
17915LIBS="-ldl $LIBS"
17916cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017917/* confdefs.h. */
17918_ACEOF
17919cat confdefs.h >>conftest.$ac_ext
17920cat >>conftest.$ac_ext <<_ACEOF
17921/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017922
17923/* Override any gcc2 internal prototype to avoid an error. */
17924#ifdef __cplusplus
17925extern "C"
17926#endif
17927/* We use char because int might match the return type of a gcc2
17928 builtin and then its argument prototype would still apply. */
17929char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017930int
17931main ()
17932{
17933dlopen ();
17934 ;
17935 return 0;
17936}
17937_ACEOF
17938rm -f conftest.$ac_objext conftest$ac_exeext
17939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017940 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017942 grep -v '^ *+' conftest.er1 >conftest.err
17943 rm -f conftest.er1
17944 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017947 { ac_try='test -z "$ac_cxx_werror_flag"
17948 || test ! -s conftest.err'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_lib_dl_dlopen=yes
17961else
17962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017963sed 's/^/| /' conftest.$ac_ext >&5
17964
John Criswell47fdd832003-07-14 16:52:07 +000017965ac_cv_lib_dl_dlopen=no
17966fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017967rm -f conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017969LIBS=$ac_check_lib_save_LIBS
17970fi
17971echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17972echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17973if test $ac_cv_lib_dl_dlopen = yes; then
17974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17975else
17976
17977 lt_cv_dlopen="dyld"
17978 lt_cv_dlopen_libs=
17979 lt_cv_dlopen_self=yes
17980
17981fi
17982
17983 ;;
17984
17985 *)
17986 echo "$as_me:$LINENO: checking for shl_load" >&5
17987echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17988if test "${ac_cv_func_shl_load+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17990else
17991 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017992/* confdefs.h. */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017997/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17999#define shl_load innocuous_shl_load
18000
John Criswell47fdd832003-07-14 16:52:07 +000018001/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000018002 which can conflict with char shl_load (); below.
18003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18004 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018005
John Criswell0c38eaf2003-09-10 15:17:25 +000018006#ifdef __STDC__
18007# include <limits.h>
18008#else
18009# include <assert.h>
18010#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000018011
18012#undef shl_load
18013
John Criswell47fdd832003-07-14 16:52:07 +000018014/* Override any gcc2 internal prototype to avoid an error. */
18015#ifdef __cplusplus
18016extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000018017{
John Criswell47fdd832003-07-14 16:52:07 +000018018#endif
18019/* We use char because int might match the return type of a gcc2
18020 builtin and then its argument prototype would still apply. */
18021char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000018022/* The GNU C library defines this for functions which it implements
18023 to always fail with ENOSYS. Some functions are actually named
18024 something starting with __ and the normal name is an alias. */
18025#if defined (__stub_shl_load) || defined (__stub___shl_load)
18026choke me
18027#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018028char (*f) () = shl_load;
18029#endif
18030#ifdef __cplusplus
18031}
John Criswell47fdd832003-07-14 16:52:07 +000018032#endif
18033
John Criswell0c38eaf2003-09-10 15:17:25 +000018034int
18035main ()
18036{
18037return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000018038 ;
18039 return 0;
18040}
18041_ACEOF
18042rm -f conftest.$ac_objext conftest$ac_exeext
18043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018044 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018051 { ac_try='test -z "$ac_cxx_werror_flag"
18052 || test ! -s conftest.err'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_cv_func_shl_load=yes
18065else
18066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018067sed 's/^/| /' conftest.$ac_ext >&5
18068
John Criswell47fdd832003-07-14 16:52:07 +000018069ac_cv_func_shl_load=no
18070fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018071rm -f conftest.err conftest.$ac_objext \
18072 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018073fi
18074echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18075echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18076if test $ac_cv_func_shl_load = yes; then
18077 lt_cv_dlopen="shl_load"
18078else
18079 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18080echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18081if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18083else
18084 ac_check_lib_save_LIBS=$LIBS
18085LIBS="-ldld $LIBS"
18086cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018087/* confdefs.h. */
18088_ACEOF
18089cat confdefs.h >>conftest.$ac_ext
18090cat >>conftest.$ac_ext <<_ACEOF
18091/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018092
18093/* Override any gcc2 internal prototype to avoid an error. */
18094#ifdef __cplusplus
18095extern "C"
18096#endif
18097/* We use char because int might match the return type of a gcc2
18098 builtin and then its argument prototype would still apply. */
18099char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000018100int
18101main ()
18102{
18103shl_load ();
18104 ;
18105 return 0;
18106}
18107_ACEOF
18108rm -f conftest.$ac_objext conftest$ac_exeext
18109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018110 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018111 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018117 { ac_try='test -z "$ac_cxx_werror_flag"
18118 || test ! -s conftest.err'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_lib_dld_shl_load=yes
18131else
18132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018133sed 's/^/| /' conftest.$ac_ext >&5
18134
John Criswell47fdd832003-07-14 16:52:07 +000018135ac_cv_lib_dld_shl_load=no
18136fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018137rm -f conftest.err conftest.$ac_objext \
18138 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018139LIBS=$ac_check_lib_save_LIBS
18140fi
18141echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18142echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18143if test $ac_cv_lib_dld_shl_load = yes; then
18144 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18145else
18146 echo "$as_me:$LINENO: checking for dlopen" >&5
18147echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18148if test "${ac_cv_func_dlopen+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150else
18151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018152/* confdefs.h. */
18153_ACEOF
18154cat confdefs.h >>conftest.$ac_ext
18155cat >>conftest.$ac_ext <<_ACEOF
18156/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018157/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18159#define dlopen innocuous_dlopen
18160
John Criswell47fdd832003-07-14 16:52:07 +000018161/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000018162 which can conflict with char dlopen (); below.
18163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18164 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018165
John Criswell0c38eaf2003-09-10 15:17:25 +000018166#ifdef __STDC__
18167# include <limits.h>
18168#else
18169# include <assert.h>
18170#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000018171
18172#undef dlopen
18173
John Criswell47fdd832003-07-14 16:52:07 +000018174/* Override any gcc2 internal prototype to avoid an error. */
18175#ifdef __cplusplus
18176extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000018177{
John Criswell47fdd832003-07-14 16:52:07 +000018178#endif
18179/* We use char because int might match the return type of a gcc2
18180 builtin and then its argument prototype would still apply. */
18181char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018182/* The GNU C library defines this for functions which it implements
18183 to always fail with ENOSYS. Some functions are actually named
18184 something starting with __ and the normal name is an alias. */
18185#if defined (__stub_dlopen) || defined (__stub___dlopen)
18186choke me
18187#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018188char (*f) () = dlopen;
18189#endif
18190#ifdef __cplusplus
18191}
John Criswell47fdd832003-07-14 16:52:07 +000018192#endif
18193
John Criswell0c38eaf2003-09-10 15:17:25 +000018194int
18195main ()
18196{
18197return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000018198 ;
18199 return 0;
18200}
18201_ACEOF
18202rm -f conftest.$ac_objext conftest$ac_exeext
18203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018204 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018205 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018206 grep -v '^ *+' conftest.er1 >conftest.err
18207 rm -f conftest.er1
18208 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018211 { ac_try='test -z "$ac_cxx_werror_flag"
18212 || test ! -s conftest.err'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_func_dlopen=yes
18225else
18226 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018227sed 's/^/| /' conftest.$ac_ext >&5
18228
John Criswell47fdd832003-07-14 16:52:07 +000018229ac_cv_func_dlopen=no
18230fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018231rm -f conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018233fi
18234echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18235echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18236if test $ac_cv_func_dlopen = yes; then
18237 lt_cv_dlopen="dlopen"
18238else
18239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18240echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18241if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18243else
18244 ac_check_lib_save_LIBS=$LIBS
18245LIBS="-ldl $LIBS"
18246cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018247/* confdefs.h. */
18248_ACEOF
18249cat confdefs.h >>conftest.$ac_ext
18250cat >>conftest.$ac_ext <<_ACEOF
18251/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018252
18253/* Override any gcc2 internal prototype to avoid an error. */
18254#ifdef __cplusplus
18255extern "C"
18256#endif
18257/* We use char because int might match the return type of a gcc2
18258 builtin and then its argument prototype would still apply. */
18259char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018260int
18261main ()
18262{
18263dlopen ();
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext conftest$ac_exeext
18269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018270 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018277 { ac_try='test -z "$ac_cxx_werror_flag"
18278 || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 ac_cv_lib_dl_dlopen=yes
18291else
18292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018293sed 's/^/| /' conftest.$ac_ext >&5
18294
John Criswell47fdd832003-07-14 16:52:07 +000018295ac_cv_lib_dl_dlopen=no
18296fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018297rm -f conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018299LIBS=$ac_check_lib_save_LIBS
18300fi
18301echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18302echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18303if test $ac_cv_lib_dl_dlopen = yes; then
18304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18305else
18306 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18307echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18308if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310else
18311 ac_check_lib_save_LIBS=$LIBS
18312LIBS="-lsvld $LIBS"
18313cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018319
18320/* Override any gcc2 internal prototype to avoid an error. */
18321#ifdef __cplusplus
18322extern "C"
18323#endif
18324/* We use char because int might match the return type of a gcc2
18325 builtin and then its argument prototype would still apply. */
18326char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018327int
18328main ()
18329{
18330dlopen ();
18331 ;
18332 return 0;
18333}
18334_ACEOF
18335rm -f conftest.$ac_objext conftest$ac_exeext
18336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018337 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018338 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018344 { ac_try='test -z "$ac_cxx_werror_flag"
18345 || test ! -s conftest.err'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_lib_svld_dlopen=yes
18358else
18359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018360sed 's/^/| /' conftest.$ac_ext >&5
18361
John Criswell47fdd832003-07-14 16:52:07 +000018362ac_cv_lib_svld_dlopen=no
18363fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018364rm -f conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018366LIBS=$ac_check_lib_save_LIBS
18367fi
18368echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18369echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18370if test $ac_cv_lib_svld_dlopen = yes; then
18371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18372else
18373 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18374echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18375if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377else
18378 ac_check_lib_save_LIBS=$LIBS
18379LIBS="-ldld $LIBS"
18380cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018381/* confdefs.h. */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018386
18387/* Override any gcc2 internal prototype to avoid an error. */
18388#ifdef __cplusplus
18389extern "C"
18390#endif
18391/* We use char because int might match the return type of a gcc2
18392 builtin and then its argument prototype would still apply. */
18393char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018394int
18395main ()
18396{
18397dld_link ();
18398 ;
18399 return 0;
18400}
18401_ACEOF
18402rm -f conftest.$ac_objext conftest$ac_exeext
18403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018404 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018406 grep -v '^ *+' conftest.er1 >conftest.err
18407 rm -f conftest.er1
18408 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018411 { ac_try='test -z "$ac_cxx_werror_flag"
18412 || test ! -s conftest.err'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; } &&
18418 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18424 ac_cv_lib_dld_dld_link=yes
18425else
18426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018427sed 's/^/| /' conftest.$ac_ext >&5
18428
John Criswell47fdd832003-07-14 16:52:07 +000018429ac_cv_lib_dld_dld_link=no
18430fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018431rm -f conftest.err conftest.$ac_objext \
18432 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018433LIBS=$ac_check_lib_save_LIBS
18434fi
18435echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18436echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18437if test $ac_cv_lib_dld_dld_link = yes; then
18438 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18439fi
18440
18441
18442fi
18443
18444
18445fi
18446
18447
18448fi
18449
18450
18451fi
18452
18453
18454fi
18455
18456 ;;
18457 esac
18458
18459 if test "x$lt_cv_dlopen" != xno; then
18460 enable_dlopen=yes
18461 else
18462 enable_dlopen=no
18463 fi
18464
18465 case $lt_cv_dlopen in
18466 dlopen)
18467 save_CPPFLAGS="$CPPFLAGS"
18468 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18469
18470 save_LDFLAGS="$LDFLAGS"
18471 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18472
18473 save_LIBS="$LIBS"
18474 LIBS="$lt_cv_dlopen_libs $LIBS"
18475
18476 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18477echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18478if test "${lt_cv_dlopen_self+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480else
18481 if test "$cross_compiling" = yes; then :
18482 lt_cv_dlopen_self=cross
18483else
18484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18485 lt_status=$lt_dlunknown
18486 cat > conftest.$ac_ext <<EOF
Reid Spencer1bc68642006-07-27 23:00:30 +000018487#line 18487 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018488#include "confdefs.h"
18489
18490#if HAVE_DLFCN_H
18491#include <dlfcn.h>
18492#endif
18493
18494#include <stdio.h>
18495
18496#ifdef RTLD_GLOBAL
18497# define LT_DLGLOBAL RTLD_GLOBAL
18498#else
18499# ifdef DL_GLOBAL
18500# define LT_DLGLOBAL DL_GLOBAL
18501# else
18502# define LT_DLGLOBAL 0
18503# endif
18504#endif
18505
18506/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18507 find out it does not work in some platform. */
18508#ifndef LT_DLLAZY_OR_NOW
18509# ifdef RTLD_LAZY
18510# define LT_DLLAZY_OR_NOW RTLD_LAZY
18511# else
18512# ifdef DL_LAZY
18513# define LT_DLLAZY_OR_NOW DL_LAZY
18514# else
18515# ifdef RTLD_NOW
18516# define LT_DLLAZY_OR_NOW RTLD_NOW
18517# else
18518# ifdef DL_NOW
18519# define LT_DLLAZY_OR_NOW DL_NOW
18520# else
18521# define LT_DLLAZY_OR_NOW 0
18522# endif
18523# endif
18524# endif
18525# endif
18526#endif
18527
18528#ifdef __cplusplus
18529extern "C" void exit (int);
18530#endif
18531
18532void fnord() { int i=42;}
18533int main ()
18534{
18535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18536 int status = $lt_dlunknown;
18537
18538 if (self)
18539 {
18540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18541 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18542 /* dlclose (self); */
18543 }
18544
18545 exit (status);
18546}
18547EOF
18548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18549 (eval $ac_link) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18553 (./conftest; exit; ) 2>/dev/null
18554 lt_status=$?
18555 case x$lt_status in
18556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18558 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18559 esac
18560 else :
18561 # compilation failed
18562 lt_cv_dlopen_self=no
18563 fi
18564fi
18565rm -fr conftest*
18566
18567
18568fi
18569echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18570echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18571
18572 if test "x$lt_cv_dlopen_self" = xyes; then
18573 LDFLAGS="$LDFLAGS $link_static_flag"
18574 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18575echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18576if test "${lt_cv_dlopen_self_static+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578else
18579 if test "$cross_compiling" = yes; then :
18580 lt_cv_dlopen_self_static=cross
18581else
18582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18583 lt_status=$lt_dlunknown
18584 cat > conftest.$ac_ext <<EOF
Reid Spencer1bc68642006-07-27 23:00:30 +000018585#line 18585 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018586#include "confdefs.h"
18587
18588#if HAVE_DLFCN_H
18589#include <dlfcn.h>
18590#endif
18591
18592#include <stdio.h>
18593
18594#ifdef RTLD_GLOBAL
18595# define LT_DLGLOBAL RTLD_GLOBAL
18596#else
18597# ifdef DL_GLOBAL
18598# define LT_DLGLOBAL DL_GLOBAL
18599# else
18600# define LT_DLGLOBAL 0
18601# endif
18602#endif
18603
18604/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18605 find out it does not work in some platform. */
18606#ifndef LT_DLLAZY_OR_NOW
18607# ifdef RTLD_LAZY
18608# define LT_DLLAZY_OR_NOW RTLD_LAZY
18609# else
18610# ifdef DL_LAZY
18611# define LT_DLLAZY_OR_NOW DL_LAZY
18612# else
18613# ifdef RTLD_NOW
18614# define LT_DLLAZY_OR_NOW RTLD_NOW
18615# else
18616# ifdef DL_NOW
18617# define LT_DLLAZY_OR_NOW DL_NOW
18618# else
18619# define LT_DLLAZY_OR_NOW 0
18620# endif
18621# endif
18622# endif
18623# endif
18624#endif
18625
18626#ifdef __cplusplus
18627extern "C" void exit (int);
18628#endif
18629
18630void fnord() { int i=42;}
18631int main ()
18632{
18633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18634 int status = $lt_dlunknown;
18635
18636 if (self)
18637 {
18638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18640 /* dlclose (self); */
18641 }
18642
18643 exit (status);
18644}
18645EOF
18646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18647 (eval $ac_link) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18651 (./conftest; exit; ) 2>/dev/null
18652 lt_status=$?
18653 case x$lt_status in
18654 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18655 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18656 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18657 esac
18658 else :
18659 # compilation failed
18660 lt_cv_dlopen_self_static=no
18661 fi
18662fi
18663rm -fr conftest*
18664
18665
18666fi
18667echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18668echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18669 fi
18670
18671 CPPFLAGS="$save_CPPFLAGS"
18672 LDFLAGS="$save_LDFLAGS"
18673 LIBS="$save_LIBS"
18674 ;;
18675 esac
18676
18677 case $lt_cv_dlopen_self in
18678 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18679 *) enable_dlopen_self=unknown ;;
18680 esac
18681
18682 case $lt_cv_dlopen_self_static in
18683 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18684 *) enable_dlopen_self_static=unknown ;;
18685 esac
18686fi
18687
18688
18689# The else clause should only fire when bootstrapping the
18690# libtool distribution, otherwise you forgot to ship ltmain.sh
18691# with your package, and you will get complaints that there are
18692# no rules to generate ltmain.sh.
18693if test -f "$ltmain"; then
18694 # See if we are running on zsh, and set the options which allow our commands through
18695 # without removal of \ escapes.
18696 if test -n "${ZSH_VERSION+set}" ; then
18697 setopt NO_GLOB_SUBST
18698 fi
18699 # Now quote all the things that may contain metacharacters while being
18700 # careful not to overquote the AC_SUBSTed values. We take copies of the
18701 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18703 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18706 deplibs_check_method reload_flag reload_cmds need_locks \
18707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18708 lt_cv_sys_global_symbol_to_c_name_address \
18709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18710 old_postinstall_cmds old_postuninstall_cmds \
18711 compiler_CXX \
18712 CC_CXX \
18713 LD_CXX \
18714 lt_prog_compiler_wl_CXX \
18715 lt_prog_compiler_pic_CXX \
18716 lt_prog_compiler_static_CXX \
18717 lt_prog_compiler_no_builtin_flag_CXX \
18718 export_dynamic_flag_spec_CXX \
18719 thread_safe_flag_spec_CXX \
18720 whole_archive_flag_spec_CXX \
18721 enable_shared_with_static_runtimes_CXX \
18722 old_archive_cmds_CXX \
18723 old_archive_from_new_cmds_CXX \
18724 predep_objects_CXX \
18725 postdep_objects_CXX \
18726 predeps_CXX \
18727 postdeps_CXX \
18728 compiler_lib_search_path_CXX \
18729 archive_cmds_CXX \
18730 archive_expsym_cmds_CXX \
18731 postinstall_cmds_CXX \
18732 postuninstall_cmds_CXX \
18733 old_archive_from_expsyms_cmds_CXX \
18734 allow_undefined_flag_CXX \
18735 no_undefined_flag_CXX \
18736 export_symbols_cmds_CXX \
18737 hardcode_libdir_flag_spec_CXX \
18738 hardcode_libdir_flag_spec_ld_CXX \
18739 hardcode_libdir_separator_CXX \
18740 hardcode_automatic_CXX \
18741 module_cmds_CXX \
18742 module_expsym_cmds_CXX \
18743 lt_cv_prog_compiler_c_o_CXX \
18744 exclude_expsyms_CXX \
18745 include_expsyms_CXX; do
18746
18747 case $var in
18748 old_archive_cmds_CXX | \
18749 old_archive_from_new_cmds_CXX | \
18750 archive_cmds_CXX | \
18751 archive_expsym_cmds_CXX | \
18752 module_cmds_CXX | \
18753 module_expsym_cmds_CXX | \
18754 old_archive_from_expsyms_cmds_CXX | \
18755 export_symbols_cmds_CXX | \
18756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18757 postinstall_cmds | postuninstall_cmds | \
18758 old_postinstall_cmds | old_postuninstall_cmds | \
18759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18760 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018761 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 +000018762 ;;
18763 *)
18764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18765 ;;
18766 esac
18767 done
18768
18769 case $lt_echo in
18770 *'\$0 --fallback-echo"')
18771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18772 ;;
18773 esac
18774
18775cfgfile="$ofile"
18776
18777 cat <<__EOF__ >> "$cfgfile"
18778# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18779
18780# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18781
18782# Shell to use when invoking shell scripts.
18783SHELL=$lt_SHELL
18784
18785# Whether or not to build shared libraries.
18786build_libtool_libs=$enable_shared
18787
18788# Whether or not to build static libraries.
18789build_old_libs=$enable_static
18790
18791# Whether or not to add -lc for building shared libraries.
18792build_libtool_need_lc=$archive_cmds_need_lc_CXX
18793
18794# Whether or not to disallow shared libs when runtime libs are static
18795allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18796
18797# Whether or not to optimize for fast installation.
18798fast_install=$enable_fast_install
18799
18800# The host system.
18801host_alias=$host_alias
18802host=$host
18803
18804# An echo program that does not interpret backslashes.
18805echo=$lt_echo
18806
18807# The archiver.
18808AR=$lt_AR
18809AR_FLAGS=$lt_AR_FLAGS
18810
18811# A C compiler.
18812LTCC=$lt_LTCC
18813
18814# A language-specific compiler.
18815CC=$lt_compiler_CXX
18816
18817# Is the compiler the GNU C compiler?
18818with_gcc=$GCC_CXX
18819
18820# An ERE matcher.
18821EGREP=$lt_EGREP
18822
18823# The linker used to build libraries.
18824LD=$lt_LD_CXX
18825
18826# Whether we need hard or soft links.
18827LN_S=$lt_LN_S
18828
18829# A BSD-compatible nm program.
18830NM=$lt_NM
18831
18832# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018833STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018834
18835# Used to examine libraries when file_magic_cmd begins "file"
18836MAGIC_CMD=$MAGIC_CMD
18837
18838# Used on cygwin: DLL creation program.
18839DLLTOOL="$DLLTOOL"
18840
18841# Used on cygwin: object dumper.
18842OBJDUMP="$OBJDUMP"
18843
18844# Used on cygwin: assembler.
18845AS="$AS"
18846
18847# The name of the directory that contains temporary libtool files.
18848objdir=$objdir
18849
18850# How to create reloadable object files.
18851reload_flag=$lt_reload_flag
18852reload_cmds=$lt_reload_cmds
18853
18854# How to pass a linker flag through the compiler.
18855wl=$lt_lt_prog_compiler_wl_CXX
18856
18857# Object file suffix (normally "o").
18858objext="$ac_objext"
18859
18860# Old archive suffix (normally "a").
18861libext="$libext"
18862
18863# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018864shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018865
18866# Executable file suffix (normally "").
18867exeext="$exeext"
18868
18869# Additional compiler flags for building library objects.
18870pic_flag=$lt_lt_prog_compiler_pic_CXX
18871pic_mode=$pic_mode
18872
18873# What is the maximum length of a command?
18874max_cmd_len=$lt_cv_sys_max_cmd_len
18875
18876# Does compiler simultaneously support -c and -o options?
18877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18878
18879# Must we lock files when doing compilation ?
18880need_locks=$lt_need_locks
18881
18882# Do we need the lib prefix for modules?
18883need_lib_prefix=$need_lib_prefix
18884
18885# Do we need a version for libraries?
18886need_version=$need_version
18887
18888# Whether dlopen is supported.
18889dlopen_support=$enable_dlopen
18890
18891# Whether dlopen of programs is supported.
18892dlopen_self=$enable_dlopen_self
18893
18894# Whether dlopen of statically linked programs is supported.
18895dlopen_self_static=$enable_dlopen_self_static
18896
18897# Compiler flag to prevent dynamic linking.
18898link_static_flag=$lt_lt_prog_compiler_static_CXX
18899
18900# Compiler flag to turn off builtin functions.
18901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18902
18903# Compiler flag to allow reflexive dlopens.
18904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18905
18906# Compiler flag to generate shared objects directly from archives.
18907whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18908
18909# Compiler flag to generate thread-safe objects.
18910thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18911
18912# Library versioning type.
18913version_type=$version_type
18914
18915# Format of library name prefix.
18916libname_spec=$lt_libname_spec
18917
18918# List of archive names. First name is the real one, the rest are links.
18919# The last name is the one that the linker finds with -lNAME.
18920library_names_spec=$lt_library_names_spec
18921
18922# The coded name of the library, if different from the real name.
18923soname_spec=$lt_soname_spec
18924
18925# Commands used to build and install an old-style archive.
18926RANLIB=$lt_RANLIB
18927old_archive_cmds=$lt_old_archive_cmds_CXX
18928old_postinstall_cmds=$lt_old_postinstall_cmds
18929old_postuninstall_cmds=$lt_old_postuninstall_cmds
18930
18931# Create an old-style archive from a shared archive.
18932old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18933
18934# Create a temporary old-style archive to link instead of a shared archive.
18935old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18936
18937# Commands used to build and install a shared archive.
18938archive_cmds=$lt_archive_cmds_CXX
18939archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18940postinstall_cmds=$lt_postinstall_cmds
18941postuninstall_cmds=$lt_postuninstall_cmds
18942
18943# Commands used to build a loadable module (assumed same as above if empty)
18944module_cmds=$lt_module_cmds_CXX
18945module_expsym_cmds=$lt_module_expsym_cmds_CXX
18946
18947# Commands to strip libraries.
18948old_striplib=$lt_old_striplib
18949striplib=$lt_striplib
18950
18951# Dependencies to place before the objects being linked to create a
18952# shared library.
18953predep_objects=$lt_predep_objects_CXX
18954
18955# Dependencies to place after the objects being linked to create a
18956# shared library.
18957postdep_objects=$lt_postdep_objects_CXX
18958
18959# Dependencies to place before the objects being linked to create a
18960# shared library.
18961predeps=$lt_predeps_CXX
18962
18963# Dependencies to place after the objects being linked to create a
18964# shared library.
18965postdeps=$lt_postdeps_CXX
18966
18967# The library search path used internally by the compiler when linking
18968# a shared library.
18969compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18970
18971# Method to check whether dependent libraries are shared objects.
18972deplibs_check_method=$lt_deplibs_check_method
18973
18974# Command to use when deplibs_check_method == file_magic.
18975file_magic_cmd=$lt_file_magic_cmd
18976
18977# Flag that allows shared libraries with undefined symbols to be built.
18978allow_undefined_flag=$lt_allow_undefined_flag_CXX
18979
18980# Flag that forces no undefined symbols.
18981no_undefined_flag=$lt_no_undefined_flag_CXX
18982
18983# Commands used to finish a libtool library installation in a directory.
18984finish_cmds=$lt_finish_cmds
18985
18986# Same as above, but a single script fragment to be evaled but not shown.
18987finish_eval=$lt_finish_eval
18988
18989# Take the output of nm and produce a listing of raw symbols and C names.
18990global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18991
18992# Transform the output of nm in a proper C declaration
18993global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18994
18995# Transform the output of nm in a C name address pair
18996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18997
18998# This is the shared library runtime path variable.
18999runpath_var=$runpath_var
19000
19001# This is the shared library path variable.
19002shlibpath_var=$shlibpath_var
19003
19004# Is shlibpath searched before the hard-coded library search path?
19005shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19006
19007# How to hardcode a shared library path into an executable.
19008hardcode_action=$hardcode_action_CXX
19009
19010# Whether we should hardcode library paths into libraries.
19011hardcode_into_libs=$hardcode_into_libs
19012
19013# Flag to hardcode \$libdir into a binary during linking.
19014# This must work even if \$libdir does not exist.
19015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19016
19017# If ld is used when linking, flag to hardcode \$libdir into
19018# a binary during linking. This must work even if \$libdir does
19019# not exist.
19020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19021
19022# Whether we need a single -rpath flag with a separated argument.
19023hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19024
19025# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19026# resulting binary.
19027hardcode_direct=$hardcode_direct_CXX
19028
19029# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19030# resulting binary.
19031hardcode_minus_L=$hardcode_minus_L_CXX
19032
19033# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19034# the resulting binary.
19035hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19036
19037# Set to yes if building a shared library automatically hardcodes DIR into the library
19038# and all subsequent libraries and executables linked against it.
19039hardcode_automatic=$hardcode_automatic_CXX
19040
19041# Variables whose values should be saved in libtool wrapper scripts and
19042# restored at relink time.
19043variables_saved_for_relink="$variables_saved_for_relink"
19044
19045# Whether libtool must link a program against all its dependency libraries.
19046link_all_deplibs=$link_all_deplibs_CXX
19047
19048# Compile-time system search path for libraries
19049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19050
19051# Run-time system search path for libraries
19052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19053
19054# Fix the shell variable \$srcfile for the compiler.
19055fix_srcfile_path="$fix_srcfile_path_CXX"
19056
19057# Set to yes if exported symbols are required.
19058always_export_symbols=$always_export_symbols_CXX
19059
19060# The commands to list exported symbols.
19061export_symbols_cmds=$lt_export_symbols_cmds_CXX
19062
19063# The commands to extract the exported symbol list from a shared archive.
19064extract_expsyms_cmds=$lt_extract_expsyms_cmds
19065
19066# Symbols that should not be listed in the preloaded symbols.
19067exclude_expsyms=$lt_exclude_expsyms_CXX
19068
19069# Symbols that must always be exported.
19070include_expsyms=$lt_include_expsyms_CXX
19071
19072# ### END LIBTOOL TAG CONFIG: $tagname
19073
19074__EOF__
19075
19076
19077else
19078 # If there is no Makefile yet, we rely on a make rule to execute
19079 # `config.status --recheck' to rerun these tests and create the
19080 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19082 if test -f "$ltmain_in"; then
19083 test -f Makefile && make "$ltmain"
19084 fi
John Criswell47fdd832003-07-14 16:52:07 +000019085fi
19086
19087
19088ac_ext=c
19089ac_cpp='$CPP $CPPFLAGS'
19090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092ac_compiler_gnu=$ac_cv_c_compiler_gnu
19093
19094CC=$lt_save_CC
19095LDCXX=$LD
19096LD=$lt_save_LD
19097GCC=$lt_save_GCC
19098with_gnu_ldcxx=$with_gnu_ld
19099with_gnu_ld=$lt_save_with_gnu_ld
19100lt_cv_path_LDCXX=$lt_cv_path_LD
19101lt_cv_path_LD=$lt_save_path_LD
19102lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19103lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19104
19105 else
19106 tagname=""
19107 fi
19108 ;;
19109
19110 F77)
19111 if test -n "$F77" && test "X$F77" != "Xno"; then
19112
19113ac_ext=f
19114ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19115ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19117
19118
19119archive_cmds_need_lc_F77=no
19120allow_undefined_flag_F77=
19121always_export_symbols_F77=no
19122archive_expsym_cmds_F77=
19123export_dynamic_flag_spec_F77=
19124hardcode_direct_F77=no
19125hardcode_libdir_flag_spec_F77=
19126hardcode_libdir_flag_spec_ld_F77=
19127hardcode_libdir_separator_F77=
19128hardcode_minus_L_F77=no
19129hardcode_automatic_F77=no
19130module_cmds_F77=
19131module_expsym_cmds_F77=
19132link_all_deplibs_F77=unknown
19133old_archive_cmds_F77=$old_archive_cmds
19134no_undefined_flag_F77=
19135whole_archive_flag_spec_F77=
19136enable_shared_with_static_runtimes_F77=no
19137
19138# Source file extension for f77 test sources.
19139ac_ext=f
19140
19141# Object file extension for compiled f77 test sources.
19142objext=o
19143objext_F77=$objext
19144
19145# Code to be used in simple compile tests
19146lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19147
19148# Code to be used in simple link tests
19149lt_simple_link_test_code=" program t\n end\n"
19150
19151# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19152
19153# If no C compiler was specified, use CC.
19154LTCC=${LTCC-"$CC"}
19155
19156# Allow CC to be a program name with arguments.
19157compiler=$CC
19158
19159
19160# Allow CC to be a program name with arguments.
19161lt_save_CC="$CC"
19162CC=${F77-"f77"}
19163compiler=$CC
19164compiler_F77=$CC
19165cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19166
19167echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19168echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19169echo "$as_me:$LINENO: result: $can_build_shared" >&5
19170echo "${ECHO_T}$can_build_shared" >&6
19171
19172echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19173echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19174test "$can_build_shared" = "no" && enable_shared=no
19175
19176# On AIX, shared libraries and static libraries use the same namespace, and
19177# are all built from PIC.
19178case "$host_os" in
19179aix3*)
19180 test "$enable_shared" = yes && enable_static=no
19181 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000019183 postinstall_cmds='$RANLIB $lib'
19184 fi
19185 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019186aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000019187 test "$enable_shared" = yes && enable_static=no
19188 ;;
19189esac
19190echo "$as_me:$LINENO: result: $enable_shared" >&5
19191echo "${ECHO_T}$enable_shared" >&6
19192
19193echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19194echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19195# Make sure either enable_shared or enable_static is yes.
19196test "$enable_shared" = yes || enable_static=yes
19197echo "$as_me:$LINENO: result: $enable_static" >&5
19198echo "${ECHO_T}$enable_static" >&6
19199
19200test "$ld_shlibs_F77" = no && can_build_shared=no
19201
19202GCC_F77="$G77"
19203LD_F77="$LD"
19204
19205lt_prog_compiler_wl_F77=
19206lt_prog_compiler_pic_F77=
19207lt_prog_compiler_static_F77=
19208
19209echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19210echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19211
19212 if test "$GCC" = yes; then
19213 lt_prog_compiler_wl_F77='-Wl,'
19214 lt_prog_compiler_static_F77='-static'
19215
19216 case $host_os in
19217 aix*)
19218 # All AIX code is PIC.
19219 if test "$host_cpu" = ia64; then
19220 # AIX 5 now supports IA64 processor
19221 lt_prog_compiler_static_F77='-Bstatic'
19222 fi
19223 ;;
19224
19225 amigaos*)
19226 # FIXME: we need at least 68020 code to build shared libraries, but
19227 # adding the `-m68020' flag to GCC prevents building anything better,
19228 # like `-m68040'.
19229 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19230 ;;
19231
19232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19233 # PIC is the default for these OSes.
19234 ;;
19235
19236 mingw* | pw32* | os2*)
19237 # This hack is so that the source file can tell whether it is being
19238 # built for inclusion in a dll (and should export symbols for example).
19239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19240 ;;
19241
19242 darwin* | rhapsody*)
19243 # PIC is the default on this platform
19244 # Common symbols not allowed in MH_DYLIB files
19245 lt_prog_compiler_pic_F77='-fno-common'
19246 ;;
19247
19248 msdosdjgpp*)
19249 # Just because we use GCC doesn't mean we suddenly get shared libraries
19250 # on systems that don't support them.
19251 lt_prog_compiler_can_build_shared_F77=no
19252 enable_shared=no
19253 ;;
19254
19255 sysv4*MP*)
19256 if test -d /usr/nec; then
19257 lt_prog_compiler_pic_F77=-Kconform_pic
19258 fi
19259 ;;
19260
19261 hpux*)
19262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19263 # not for PA HP-UX.
19264 case "$host_cpu" in
19265 hppa*64*|ia64*)
19266 # +Z the default
19267 ;;
19268 *)
19269 lt_prog_compiler_pic_F77='-fPIC'
19270 ;;
19271 esac
19272 ;;
19273
19274 *)
19275 lt_prog_compiler_pic_F77='-fPIC'
19276 ;;
19277 esac
19278 else
19279 # PORTME Check for flag to pass linker flags through the system compiler.
19280 case $host_os in
19281 aix*)
19282 lt_prog_compiler_wl_F77='-Wl,'
19283 if test "$host_cpu" = ia64; then
19284 # AIX 5 now supports IA64 processor
19285 lt_prog_compiler_static_F77='-Bstatic'
19286 else
19287 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19288 fi
19289 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019290 darwin*)
19291 # PIC is the default on this platform
19292 # Common symbols not allowed in MH_DYLIB files
19293 case "$cc_basename" in
19294 xlc*)
19295 lt_prog_compiler_pic_F77='-qnocommon'
19296 lt_prog_compiler_wl_F77='-Wl,'
19297 ;;
19298 esac
19299 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019300
19301 mingw* | pw32* | os2*)
19302 # This hack is so that the source file can tell whether it is being
19303 # built for inclusion in a dll (and should export symbols for example).
19304 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19305 ;;
19306
19307 hpux9* | hpux10* | hpux11*)
19308 lt_prog_compiler_wl_F77='-Wl,'
19309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19310 # not for PA HP-UX.
19311 case "$host_cpu" in
19312 hppa*64*|ia64*)
19313 # +Z the default
19314 ;;
19315 *)
19316 lt_prog_compiler_pic_F77='+Z'
19317 ;;
19318 esac
19319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19320 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19321 ;;
19322
19323 irix5* | irix6* | nonstopux*)
19324 lt_prog_compiler_wl_F77='-Wl,'
19325 # PIC (with -KPIC) is the default.
19326 lt_prog_compiler_static_F77='-non_shared'
19327 ;;
19328
19329 newsos6)
19330 lt_prog_compiler_pic_F77='-KPIC'
19331 lt_prog_compiler_static_F77='-Bstatic'
19332 ;;
19333
19334 linux*)
19335 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019336 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019337 lt_prog_compiler_wl_F77='-Wl,'
19338 lt_prog_compiler_pic_F77='-KPIC'
19339 lt_prog_compiler_static_F77='-static'
19340 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019341 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019342 lt_prog_compiler_wl_F77='-Wl,'
19343 # All Alpha code is PIC.
19344 lt_prog_compiler_static_F77='-non_shared'
19345 ;;
19346 esac
19347 ;;
19348
19349 osf3* | osf4* | osf5*)
19350 lt_prog_compiler_wl_F77='-Wl,'
19351 # All OSF/1 code is PIC.
19352 lt_prog_compiler_static_F77='-non_shared'
19353 ;;
19354
19355 sco3.2v5*)
19356 lt_prog_compiler_pic_F77='-Kpic'
19357 lt_prog_compiler_static_F77='-dn'
19358 ;;
19359
19360 solaris*)
19361 lt_prog_compiler_wl_F77='-Wl,'
19362 lt_prog_compiler_pic_F77='-KPIC'
19363 lt_prog_compiler_static_F77='-Bstatic'
19364 ;;
19365
19366 sunos4*)
19367 lt_prog_compiler_wl_F77='-Qoption ld '
19368 lt_prog_compiler_pic_F77='-PIC'
19369 lt_prog_compiler_static_F77='-Bstatic'
19370 ;;
19371
19372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19373 lt_prog_compiler_wl_F77='-Wl,'
19374 lt_prog_compiler_pic_F77='-KPIC'
19375 lt_prog_compiler_static_F77='-Bstatic'
19376 ;;
19377
19378 sysv4*MP*)
19379 if test -d /usr/nec ;then
19380 lt_prog_compiler_pic_F77='-Kconform_pic'
19381 lt_prog_compiler_static_F77='-Bstatic'
19382 fi
19383 ;;
19384
19385 uts4*)
19386 lt_prog_compiler_pic_F77='-pic'
19387 lt_prog_compiler_static_F77='-Bstatic'
19388 ;;
19389
19390 *)
19391 lt_prog_compiler_can_build_shared_F77=no
19392 ;;
19393 esac
19394 fi
19395
19396echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19397echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19398
19399#
19400# Check to make sure the PIC flag actually works.
19401#
19402if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019403
19404echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019405echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19406if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408else
19409 lt_prog_compiler_pic_works_F77=no
19410 ac_outfile=conftest.$ac_objext
19411 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19412 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19413 # Insert the option either (1) after the last *FLAGS variable, or
19414 # (2) before a word containing "conftest.", or (3) at the end.
19415 # Note that $ac_compile itself does not contain backslashes and begins
19416 # with a dollar sign (not a hyphen), so the echo should work correctly.
19417 # The option is referenced via a variable to avoid confusing sed.
19418 lt_compile=`echo "$ac_compile" | $SED \
19419 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19421 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000019422 (eval echo "\"\$as_me:19422: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019423 (eval "$lt_compile" 2>conftest.err)
19424 ac_status=$?
19425 cat conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000019426 echo "$as_me:19426: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019427 if (exit $ac_status) && test -s "$ac_outfile"; then
19428 # The compiler can only warn and ignore the option if not recognized
19429 # So say no if there are warnings
19430 if test ! -s conftest.err; then
19431 lt_prog_compiler_pic_works_F77=yes
19432 fi
19433 fi
19434 $rm conftest*
19435
19436fi
19437echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19438echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19439
19440if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19441 case $lt_prog_compiler_pic_F77 in
19442 "" | " "*) ;;
19443 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19444 esac
19445else
19446 lt_prog_compiler_pic_F77=
19447 lt_prog_compiler_can_build_shared_F77=no
19448fi
19449
19450fi
19451case "$host_os" in
19452 # For platforms which do not support PIC, -DPIC is meaningless:
19453 *djgpp*)
19454 lt_prog_compiler_pic_F77=
19455 ;;
19456 *)
19457 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19458 ;;
19459esac
19460
19461echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19462echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19463if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19465else
19466 lt_cv_prog_compiler_c_o_F77=no
19467 $rm -r conftest 2>/dev/null
19468 mkdir conftest
19469 cd conftest
19470 mkdir out
19471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19472
John Criswell47fdd832003-07-14 16:52:07 +000019473 lt_compiler_flag="-o out/conftest2.$ac_objext"
19474 # Insert the option either (1) after the last *FLAGS variable, or
19475 # (2) before a word containing "conftest.", or (3) at the end.
19476 # Note that $ac_compile itself does not contain backslashes and begins
19477 # with a dollar sign (not a hyphen), so the echo should work correctly.
19478 lt_compile=`echo "$ac_compile" | $SED \
19479 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19481 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000019482 (eval echo "\"\$as_me:19482: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019483 (eval "$lt_compile" 2>out/conftest.err)
19484 ac_status=$?
19485 cat out/conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000019486 echo "$as_me:19486: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19488 then
19489 # The compiler can only warn and ignore the option if not recognized
19490 # So say no if there are warnings
19491 if test ! -s out/conftest.err; then
19492 lt_cv_prog_compiler_c_o_F77=yes
19493 fi
19494 fi
19495 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019496 $rm conftest*
19497 # SGI C++ compiler will create directory out/ii_files/ for
19498 # template instantiation
19499 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19500 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019501 cd ..
19502 rmdir conftest
19503 $rm conftest*
19504
19505fi
19506echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19507echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19508
19509
19510hard_links="nottested"
19511if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19512 # do not overwrite the value of need_locks provided by the user
19513 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19514echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19515 hard_links=yes
19516 $rm conftest*
19517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19518 touch conftest.a
19519 ln conftest.a conftest.b 2>&5 || hard_links=no
19520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19521 echo "$as_me:$LINENO: result: $hard_links" >&5
19522echo "${ECHO_T}$hard_links" >&6
19523 if test "$hard_links" = no; then
19524 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19525echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19526 need_locks=warn
19527 fi
19528else
19529 need_locks=no
19530fi
19531
19532echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19533echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19534
19535 runpath_var=
19536 allow_undefined_flag_F77=
19537 enable_shared_with_static_runtimes_F77=no
19538 archive_cmds_F77=
19539 archive_expsym_cmds_F77=
19540 old_archive_From_new_cmds_F77=
19541 old_archive_from_expsyms_cmds_F77=
19542 export_dynamic_flag_spec_F77=
19543 whole_archive_flag_spec_F77=
19544 thread_safe_flag_spec_F77=
19545 hardcode_libdir_flag_spec_F77=
19546 hardcode_libdir_flag_spec_ld_F77=
19547 hardcode_libdir_separator_F77=
19548 hardcode_direct_F77=no
19549 hardcode_minus_L_F77=no
19550 hardcode_shlibpath_var_F77=unsupported
19551 link_all_deplibs_F77=unknown
19552 hardcode_automatic_F77=no
19553 module_cmds_F77=
19554 module_expsym_cmds_F77=
19555 always_export_symbols_F77=no
19556 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19557 # include_expsyms should be a list of space-separated symbols to be *always*
19558 # included in the symbol list
19559 include_expsyms_F77=
19560 # exclude_expsyms can be an extended regexp of symbols to exclude
19561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19563 # as well as any symbol that contains `d'.
19564 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19566 # platforms (ab)use it in PIC code, but their linkers get confused if
19567 # the symbol is explicitly referenced. Since portable code cannot
19568 # rely on this symbol name, it's probably fine to never include it in
19569 # preloaded symbol tables.
19570 extract_expsyms_cmds=
19571
19572 case $host_os in
19573 cygwin* | mingw* | pw32*)
19574 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19575 # When not using gcc, we currently assume that we are using
19576 # Microsoft Visual C++.
19577 if test "$GCC" != yes; then
19578 with_gnu_ld=no
19579 fi
19580 ;;
19581 openbsd*)
19582 with_gnu_ld=no
19583 ;;
19584 esac
19585
19586 ld_shlibs_F77=yes
19587 if test "$with_gnu_ld" = yes; then
19588 # If archive_cmds runs LD, not CC, wlarc should be empty
19589 wlarc='${wl}'
19590
19591 # See if GNU ld supports shared libraries.
19592 case $host_os in
19593 aix3* | aix4* | aix5*)
19594 # On AIX/PPC, the GNU linker is very broken
19595 if test "$host_cpu" != ia64; then
19596 ld_shlibs_F77=no
19597 cat <<EOF 1>&2
19598
19599*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19600*** to be unable to reliably create shared libraries on AIX.
19601*** Therefore, libtool is disabling shared libraries support. If you
19602*** really care for shared libraries, you may want to modify your PATH
19603*** so that a non-GNU linker is found, and then restart.
19604
19605EOF
19606 fi
19607 ;;
19608
19609 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019610 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 +000019611 hardcode_libdir_flag_spec_F77='-L$libdir'
19612 hardcode_minus_L_F77=yes
19613
19614 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19615 # that the semantics of dynamic libraries on AmigaOS, at least up
19616 # to version 4, is to share data among multiple programs linked
19617 # with the same dynamic library. Since this doesn't match the
19618 # behavior of shared libraries on other platforms, we can't use
19619 # them.
19620 ld_shlibs_F77=no
19621 ;;
19622
19623 beos*)
19624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19625 allow_undefined_flag_F77=unsupported
19626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19627 # support --undefined. This deserves some investigation. FIXME
19628 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19629 else
19630 ld_shlibs_F77=no
19631 fi
19632 ;;
19633
19634 cygwin* | mingw* | pw32*)
19635 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19636 # as there is no search path for DLLs.
19637 hardcode_libdir_flag_spec_F77='-L$libdir'
19638 allow_undefined_flag_F77=unsupported
19639 always_export_symbols_F77=no
19640 enable_shared_with_static_runtimes_F77=yes
19641 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19642
19643 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19644 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19645 # If the export-symbols file already is a .def file (1st line
19646 # is EXPORTS), use it as is; otherwise, prepend...
19647 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19648 cp $export_symbols $output_objdir/$soname.def;
19649 else
19650 echo EXPORTS > $output_objdir/$soname.def;
19651 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019652 fi~
19653 $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 +000019654 else
19655 ld_shlibs=no
19656 fi
19657 ;;
19658
19659 netbsd*)
19660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19661 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19662 wlarc=
19663 else
19664 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19665 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19666 fi
19667 ;;
19668
19669 solaris* | sysv5*)
19670 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19671 ld_shlibs_F77=no
19672 cat <<EOF 1>&2
19673
19674*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19675*** create shared libraries on Solaris systems. Therefore, libtool
19676*** is disabling shared libraries support. We urge you to upgrade GNU
19677*** binutils to release 2.9.1 or newer. Another option is to modify
19678*** your PATH or compiler configuration so that the native linker is
19679*** used, and then restart.
19680
19681EOF
19682 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19683 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19684 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19685 else
19686 ld_shlibs_F77=no
19687 fi
19688 ;;
19689
19690 sunos4*)
19691 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19692 wlarc=
19693 hardcode_direct_F77=yes
19694 hardcode_shlibpath_var_F77=no
19695 ;;
19696
Reid Spencer2706f8c2004-09-19 23:53:36 +000019697 linux*)
19698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19699 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19700 archive_cmds_F77="$tmp_archive_cmds"
19701 supports_anon_versioning=no
19702 case `$LD -v 2>/dev/null` in
19703 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19706 *\ 2.11.*) ;; # other 2.11 versions
19707 *) supports_anon_versioning=yes ;;
19708 esac
19709 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019710 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19711cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19712$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019713 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19714 else
19715 archive_expsym_cmds_F77="$tmp_archive_cmds"
19716 fi
19717 else
19718 ld_shlibs_F77=no
19719 fi
19720 ;;
19721
John Criswell47fdd832003-07-14 16:52:07 +000019722 *)
19723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19724 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19725 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19726 else
19727 ld_shlibs_F77=no
19728 fi
19729 ;;
19730 esac
19731
19732 if test "$ld_shlibs_F77" = yes; then
19733 runpath_var=LD_RUN_PATH
19734 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19735 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19736 # ancient GNU ld didn't support --whole-archive et. al.
19737 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19738 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19739 else
19740 whole_archive_flag_spec_F77=
19741 fi
19742 fi
19743 else
19744 # PORTME fill in a description of your system's linker (not GNU ld)
19745 case $host_os in
19746 aix3*)
19747 allow_undefined_flag_F77=unsupported
19748 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019749 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 +000019750 # Note: this linker hardcodes the directories in LIBPATH if there
19751 # are no directories specified by -L.
19752 hardcode_minus_L_F77=yes
19753 if test "$GCC" = yes && test -z "$link_static_flag"; then
19754 # Neither direct hardcoding nor static linking is supported with a
19755 # broken collect2.
19756 hardcode_direct_F77=unsupported
19757 fi
19758 ;;
19759
19760 aix4* | aix5*)
19761 if test "$host_cpu" = ia64; then
19762 # On IA64, the linker does run time linking by default, so we don't
19763 # have to do anything special.
19764 aix_use_runtimelinking=no
19765 exp_sym_flag='-Bexport'
19766 no_entry_flag=""
19767 else
19768 # If we're using GNU nm, then we don't want the "-C" option.
19769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19770 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19771 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'
19772 else
19773 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'
19774 fi
19775 aix_use_runtimelinking=no
19776
19777 # Test if we are trying to use run time linking or normal
19778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19779 # need to do runtime linking.
19780 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19781 for ld_flag in $LDFLAGS; do
19782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19783 aix_use_runtimelinking=yes
19784 break
19785 fi
19786 done
19787 esac
19788
19789 exp_sym_flag='-bexport'
19790 no_entry_flag='-bnoentry'
19791 fi
19792
19793 # When large executables or shared objects are built, AIX ld can
19794 # have problems creating the table of contents. If linking a library
19795 # or program results in "error TOC overflow" add -mminimal-toc to
19796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19798
19799 archive_cmds_F77=''
19800 hardcode_direct_F77=yes
19801 hardcode_libdir_separator_F77=':'
19802 link_all_deplibs_F77=yes
19803
19804 if test "$GCC" = yes; then
19805 case $host_os in aix4.012|aix4.012.*)
19806 # We only want to do this on AIX 4.2 and lower, the check
19807 # below for broken collect2 doesn't work under 4.3+
19808 collect2name=`${CC} -print-prog-name=collect2`
19809 if test -f "$collect2name" && \
19810 strings "$collect2name" | grep resolve_lib_name >/dev/null
19811 then
19812 # We have reworked collect2
19813 hardcode_direct_F77=yes
19814 else
19815 # We have old collect2
19816 hardcode_direct_F77=unsupported
19817 # It fails to find uninstalled libraries when the uninstalled
19818 # path is not listed in the libpath. Setting hardcode_minus_L
19819 # to unsupported forces relinking
19820 hardcode_minus_L_F77=yes
19821 hardcode_libdir_flag_spec_F77='-L$libdir'
19822 hardcode_libdir_separator_F77=
19823 fi
19824 esac
19825 shared_flag='-shared'
19826 else
19827 # not using gcc
19828 if test "$host_cpu" = ia64; then
19829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19830 # chokes on -Wl,-G. The following line is correct:
19831 shared_flag='-G'
19832 else
19833 if test "$aix_use_runtimelinking" = yes; then
19834 shared_flag='${wl}-G'
19835 else
19836 shared_flag='${wl}-bM:SRE'
19837 fi
19838 fi
19839 fi
19840
19841 # It seems that -bexpall does not export symbols beginning with
19842 # underscore (_), so it is better to generate a list of symbols to export.
19843 always_export_symbols_F77=yes
19844 if test "$aix_use_runtimelinking" = yes; then
19845 # Warning - without using the other runtime loading flags (-brtl),
19846 # -berok will link without error, but may produce a broken library.
19847 allow_undefined_flag_F77='-berok'
19848 # Determine the default libpath from the value encoded in an empty executable.
19849 cat >conftest.$ac_ext <<_ACEOF
19850 program main
19851
19852 end
19853_ACEOF
19854rm -f conftest.$ac_objext conftest$ac_exeext
19855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019856 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019857 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019863 { ac_try='test -z "$ac_f77_werror_flag"
19864 || test ! -s conftest.err'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876
19877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19878}'`
19879# Check for a 64-bit object if we didn't find anything.
19880if 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; }
19881}'`; fi
19882else
19883 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019884sed 's/^/| /' conftest.$ac_ext >&5
19885
John Criswell47fdd832003-07-14 16:52:07 +000019886fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019887rm -f conftest.err conftest.$ac_objext \
19888 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019889if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19890
19891 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19892 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"
19893 else
19894 if test "$host_cpu" = ia64; then
19895 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19896 allow_undefined_flag_F77="-z nodefs"
19897 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"
19898 else
19899 # Determine the default libpath from the value encoded in an empty executable.
19900 cat >conftest.$ac_ext <<_ACEOF
19901 program main
19902
19903 end
19904_ACEOF
19905rm -f conftest.$ac_objext conftest$ac_exeext
19906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019907 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019908 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019914 { ac_try='test -z "$ac_f77_werror_flag"
19915 || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927
19928aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19929}'`
19930# Check for a 64-bit object if we didn't find anything.
19931if 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; }
19932}'`; fi
19933else
19934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019935sed 's/^/| /' conftest.$ac_ext >&5
19936
John Criswell47fdd832003-07-14 16:52:07 +000019937fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019938rm -f conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019940if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19941
19942 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19943 # Warning - without using the other run time loading flags,
19944 # -berok will link without error, but may produce a broken library.
19945 no_undefined_flag_F77=' ${wl}-bernotok'
19946 allow_undefined_flag_F77=' ${wl}-berok'
19947 # -bexpall does not export symbols beginning with underscore (_)
19948 always_export_symbols_F77=yes
19949 # Exported symbols can be pulled into shared objects from archives
19950 whole_archive_flag_spec_F77=' '
19951 archive_cmds_need_lc_F77=yes
19952 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019953 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 +000019954 fi
19955 fi
19956 ;;
19957
19958 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019959 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 +000019960 hardcode_libdir_flag_spec_F77='-L$libdir'
19961 hardcode_minus_L_F77=yes
19962 # see comment about different semantics on the GNU ld section
19963 ld_shlibs_F77=no
19964 ;;
19965
Reid Spencer2706f8c2004-09-19 23:53:36 +000019966 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019967 export_dynamic_flag_spec_F77=-rdynamic
19968 ;;
19969
19970 cygwin* | mingw* | pw32*)
19971 # When not using gcc, we currently assume that we are using
19972 # Microsoft Visual C++.
19973 # hardcode_libdir_flag_spec is actually meaningless, as there is
19974 # no search path for DLLs.
19975 hardcode_libdir_flag_spec_F77=' '
19976 allow_undefined_flag_F77=unsupported
19977 # Tell ltmain to make .lib files, not .a files.
19978 libext=lib
19979 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019980 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019981 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019982 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 +000019983 # The linker will automatically build a .lib file if we build a DLL.
19984 old_archive_From_new_cmds_F77='true'
19985 # FIXME: Should let the user specify the lib program.
19986 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19987 fix_srcfile_path='`cygpath -w "$srcfile"`'
19988 enable_shared_with_static_runtimes_F77=yes
19989 ;;
19990
19991 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019992 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019993 rhapsody* | darwin1.[012])
19994 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19995 ;;
19996 *) # Darwin 1.3 on
19997 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19998 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19999 else
20000 case ${MACOSX_DEPLOYMENT_TARGET} in
20001 10.[012])
20002 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20003 ;;
20004 10.*)
20005 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20006 ;;
20007 esac
20008 fi
20009 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020010 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000020011 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020012 hardcode_direct_F77=no
20013 hardcode_automatic_F77=yes
20014 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000020015 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000020016 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000020017 if test "$GCC" = yes ; then
20018 output_verbose_link_cmd='echo'
20019 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20020 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20021 # 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 +000020022 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}'
20023 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 +000020024 else
20025 case "$cc_basename" in
20026 xlc*)
20027 output_verbose_link_cmd='echo'
20028 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20029 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20030 # 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 +000020031 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}'
20032 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 +000020033 ;;
20034 *)
20035 ld_shlibs_F77=no
20036 ;;
20037 esac
John Criswell47fdd832003-07-14 16:52:07 +000020038 fi
20039 ;;
20040
20041 dgux*)
20042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20043 hardcode_libdir_flag_spec_F77='-L$libdir'
20044 hardcode_shlibpath_var_F77=no
20045 ;;
20046
20047 freebsd1*)
20048 ld_shlibs_F77=no
20049 ;;
20050
20051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20052 # support. Future versions do this automatically, but an explicit c++rt0.o
20053 # does not break anything, and helps significantly (at the cost of a little
20054 # extra space).
20055 freebsd2.2*)
20056 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20057 hardcode_libdir_flag_spec_F77='-R$libdir'
20058 hardcode_direct_F77=yes
20059 hardcode_shlibpath_var_F77=no
20060 ;;
20061
20062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20063 freebsd2*)
20064 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20065 hardcode_direct_F77=yes
20066 hardcode_minus_L_F77=yes
20067 hardcode_shlibpath_var_F77=no
20068 ;;
20069
20070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020071 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000020072 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20073 hardcode_libdir_flag_spec_F77='-R$libdir'
20074 hardcode_direct_F77=yes
20075 hardcode_shlibpath_var_F77=no
20076 ;;
20077
20078 hpux9*)
20079 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020080 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 +000020081 else
Reid Spencer177dbe22004-10-13 01:01:03 +000020082 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 +000020083 fi
20084 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20085 hardcode_libdir_separator_F77=:
20086 hardcode_direct_F77=yes
20087
20088 # hardcode_minus_L: Not really in the search PATH,
20089 # but as the default location of the library.
20090 hardcode_minus_L_F77=yes
20091 export_dynamic_flag_spec_F77='${wl}-E'
20092 ;;
20093
20094 hpux10* | hpux11*)
20095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20096 case "$host_cpu" in
20097 hppa*64*|ia64*)
20098 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20099 ;;
20100 *)
20101 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20102 ;;
20103 esac
20104 else
20105 case "$host_cpu" in
20106 hppa*64*|ia64*)
20107 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20108 ;;
20109 *)
20110 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20111 ;;
20112 esac
20113 fi
20114 if test "$with_gnu_ld" = no; then
20115 case "$host_cpu" in
20116 hppa*64*)
20117 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20118 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20119 hardcode_libdir_separator_F77=:
20120 hardcode_direct_F77=no
20121 hardcode_shlibpath_var_F77=no
20122 ;;
20123 ia64*)
20124 hardcode_libdir_flag_spec_F77='-L$libdir'
20125 hardcode_direct_F77=no
20126 hardcode_shlibpath_var_F77=no
20127
20128 # hardcode_minus_L: Not really in the search PATH,
20129 # but as the default location of the library.
20130 hardcode_minus_L_F77=yes
20131 ;;
20132 *)
20133 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20134 hardcode_libdir_separator_F77=:
20135 hardcode_direct_F77=yes
20136 export_dynamic_flag_spec_F77='${wl}-E'
20137
20138 # hardcode_minus_L: Not really in the search PATH,
20139 # but as the default location of the library.
20140 hardcode_minus_L_F77=yes
20141 ;;
20142 esac
20143 fi
20144 ;;
20145
20146 irix5* | irix6* | nonstopux*)
20147 if test "$GCC" = yes; then
20148 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'
20149 else
20150 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'
20151 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20152 fi
20153 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20154 hardcode_libdir_separator_F77=:
20155 link_all_deplibs_F77=yes
20156 ;;
20157
20158 netbsd*)
20159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20160 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20161 else
20162 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20163 fi
20164 hardcode_libdir_flag_spec_F77='-R$libdir'
20165 hardcode_direct_F77=yes
20166 hardcode_shlibpath_var_F77=no
20167 ;;
20168
20169 newsos6)
20170 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20171 hardcode_direct_F77=yes
20172 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20173 hardcode_libdir_separator_F77=:
20174 hardcode_shlibpath_var_F77=no
20175 ;;
20176
20177 openbsd*)
20178 hardcode_direct_F77=yes
20179 hardcode_shlibpath_var_F77=no
20180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20181 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020182 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 +000020183 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20184 export_dynamic_flag_spec_F77='${wl}-E'
20185 else
20186 case $host_os in
20187 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20188 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20189 hardcode_libdir_flag_spec_F77='-R$libdir'
20190 ;;
20191 *)
20192 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20193 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20194 ;;
20195 esac
20196 fi
20197 ;;
20198
20199 os2*)
20200 hardcode_libdir_flag_spec_F77='-L$libdir'
20201 hardcode_minus_L_F77=yes
20202 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000020203 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 +000020204 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20205 ;;
20206
20207 osf3*)
20208 if test "$GCC" = yes; then
20209 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20210 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'
20211 else
20212 allow_undefined_flag_F77=' -expect_unresolved \*'
20213 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'
20214 fi
20215 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20216 hardcode_libdir_separator_F77=:
20217 ;;
20218
20219 osf4* | osf5*) # as osf3* with the addition of -msym flag
20220 if test "$GCC" = yes; then
20221 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20222 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'
20223 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20224 else
20225 allow_undefined_flag_F77=' -expect_unresolved \*'
20226 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 +000020227 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~
20228 $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'
20229
John Criswell47fdd832003-07-14 16:52:07 +000020230 # Both c and cxx compiler support -rpath directly
20231 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20232 fi
20233 hardcode_libdir_separator_F77=:
20234 ;;
20235
20236 sco3.2v5*)
20237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20238 hardcode_shlibpath_var_F77=no
20239 export_dynamic_flag_spec_F77='${wl}-Bexport'
20240 runpath_var=LD_RUN_PATH
20241 hardcode_runpath_var=yes
20242 ;;
20243
20244 solaris*)
20245 no_undefined_flag_F77=' -z text'
20246 if test "$GCC" = yes; then
20247 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020248 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20249 $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 +000020250 else
20251 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020252 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20253 $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 +000020254 fi
20255 hardcode_libdir_flag_spec_F77='-R$libdir'
20256 hardcode_shlibpath_var_F77=no
20257 case $host_os in
20258 solaris2.[0-5] | solaris2.[0-5].*) ;;
20259 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20260 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20261 esac
20262 link_all_deplibs_F77=yes
20263 ;;
20264
20265 sunos4*)
20266 if test "x$host_vendor" = xsequent; then
20267 # Use $CC to link under sequent, because it throws in some extra .o
20268 # files that make .init and .fini sections work.
20269 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20270 else
20271 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20272 fi
20273 hardcode_libdir_flag_spec_F77='-L$libdir'
20274 hardcode_direct_F77=yes
20275 hardcode_minus_L_F77=yes
20276 hardcode_shlibpath_var_F77=no
20277 ;;
20278
20279 sysv4)
20280 case $host_vendor in
20281 sni)
20282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20283 hardcode_direct_F77=yes # is this really true???
20284 ;;
20285 siemens)
20286 ## LD is ld it makes a PLAMLIB
20287 ## CC just makes a GrossModule.
20288 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20289 reload_cmds_F77='$CC -r -o $output$reload_objs'
20290 hardcode_direct_F77=no
20291 ;;
20292 motorola)
20293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20294 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20295 ;;
20296 esac
20297 runpath_var='LD_RUN_PATH'
20298 hardcode_shlibpath_var_F77=no
20299 ;;
20300
20301 sysv4.3*)
20302 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20303 hardcode_shlibpath_var_F77=no
20304 export_dynamic_flag_spec_F77='-Bexport'
20305 ;;
20306
20307 sysv4*MP*)
20308 if test -d /usr/nec; then
20309 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20310 hardcode_shlibpath_var_F77=no
20311 runpath_var=LD_RUN_PATH
20312 hardcode_runpath_var=yes
20313 ld_shlibs_F77=yes
20314 fi
20315 ;;
20316
20317 sysv4.2uw2*)
20318 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20319 hardcode_direct_F77=yes
20320 hardcode_minus_L_F77=no
20321 hardcode_shlibpath_var_F77=no
20322 hardcode_runpath_var=yes
20323 runpath_var=LD_RUN_PATH
20324 ;;
20325
20326 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20327 no_undefined_flag_F77='${wl}-z ${wl}text'
20328 if test "$GCC" = yes; then
20329 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20330 else
20331 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20332 fi
20333 runpath_var='LD_RUN_PATH'
20334 hardcode_shlibpath_var_F77=no
20335 ;;
20336
20337 sysv5*)
20338 no_undefined_flag_F77=' -z text'
20339 # $CC -shared without GNU ld will not create a library from C++
20340 # object files and a static libstdc++, better avoid it by now
20341 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020342 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20343 $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 +000020344 hardcode_libdir_flag_spec_F77=
20345 hardcode_shlibpath_var_F77=no
20346 runpath_var='LD_RUN_PATH'
20347 ;;
20348
20349 uts4*)
20350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20351 hardcode_libdir_flag_spec_F77='-L$libdir'
20352 hardcode_shlibpath_var_F77=no
20353 ;;
20354
20355 *)
20356 ld_shlibs_F77=no
20357 ;;
20358 esac
20359 fi
20360
20361echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20362echo "${ECHO_T}$ld_shlibs_F77" >&6
20363test "$ld_shlibs_F77" = no && can_build_shared=no
20364
20365variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20366if test "$GCC" = yes; then
20367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20368fi
20369
20370#
20371# Do we need to explicitly link libc?
20372#
20373case "x$archive_cmds_need_lc_F77" in
20374x|xyes)
20375 # Assume -lc should be added
20376 archive_cmds_need_lc_F77=yes
20377
20378 if test "$enable_shared" = yes && test "$GCC" = yes; then
20379 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020380 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020381 # FIXME: we may have to deal with multi-command sequences.
20382 ;;
20383 '$CC '*)
20384 # Test whether the compiler implicitly links with -lc since on some
20385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20386 # to ld, don't add -lc before -lgcc.
20387 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20388echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20389 $rm conftest*
20390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20391
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393 (eval $ac_compile) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } 2>conftest.err; then
20397 soname=conftest
20398 lib=conftest
20399 libobjs=conftest.$ac_objext
20400 deplibs=
20401 wl=$lt_prog_compiler_wl_F77
20402 compiler_flags=-v
20403 linker_flags=-v
20404 verstring=
20405 output_objdir=.
20406 libname=conftest
20407 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20408 allow_undefined_flag_F77=
20409 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20410 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }
20414 then
20415 archive_cmds_need_lc_F77=no
20416 else
20417 archive_cmds_need_lc_F77=yes
20418 fi
20419 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20420 else
20421 cat conftest.err 1>&5
20422 fi
20423 $rm conftest*
20424 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20425echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20426 ;;
20427 esac
20428 fi
20429 ;;
20430esac
20431
John Criswell47fdd832003-07-14 16:52:07 +000020432echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20433echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20434library_names_spec=
20435libname_spec='lib$name'
20436soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020437shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020438postinstall_cmds=
20439postuninstall_cmds=
20440finish_cmds=
20441finish_eval=
20442shlibpath_var=
20443shlibpath_overrides_runpath=unknown
20444version_type=none
20445dynamic_linker="$host_os ld.so"
20446sys_lib_dlsearch_path_spec="/lib /usr/lib"
20447if test "$GCC" = yes; then
20448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20449 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20450 # if the path contains ";" then we assume it to be the separator
20451 # otherwise default to the standard path separator (i.e. ":") - it is
20452 # assumed that no part of a normal pathname contains ";" but that should
20453 # okay in the real world where ";" in dirpaths is itself problematic.
20454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20455 else
20456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20457 fi
20458else
20459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20460fi
20461need_lib_prefix=unknown
20462hardcode_into_libs=no
20463
20464# when you set need_version to no, make sure it does not cause -set_version
20465# flags to be left without arguments
20466need_version=unknown
20467
20468case $host_os in
20469aix3*)
20470 version_type=linux
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20472 shlibpath_var=LIBPATH
20473
20474 # AIX 3 has no versioning support, so we append a major version to the name.
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 ;;
20477
20478aix4* | aix5*)
20479 version_type=linux
20480 need_lib_prefix=no
20481 need_version=no
20482 hardcode_into_libs=yes
20483 if test "$host_cpu" = ia64; then
20484 # AIX 5 supports IA64
20485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 else
20488 # With GCC up to 2.95.x, collect2 would create an import file
20489 # for dependence libraries. The import file would start with
20490 # the line `#! .'. This would cause the generated library to
20491 # depend on `.', always an invalid library. This was fixed in
20492 # development snapshots of GCC prior to 3.0.
20493 case $host_os in
20494 aix4 | aix4.[01] | aix4.[01].*)
20495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20496 echo ' yes '
20497 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20498 :
20499 else
20500 can_build_shared=no
20501 fi
20502 ;;
20503 esac
20504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20505 # soname into executable. Probably we can add versioning support to
20506 # collect2, so additional links can be useful in future.
20507 if test "$aix_use_runtimelinking" = yes; then
20508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20509 # instead of lib<name>.a to let people know that these are not
20510 # typical AIX shared libraries.
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512 else
20513 # We preserve .a as extension for shared libraries through AIX4.2
20514 # and later when we are not doing run time linking.
20515 library_names_spec='${libname}${release}.a $libname.a'
20516 soname_spec='${libname}${release}${shared_ext}$major'
20517 fi
20518 shlibpath_var=LIBPATH
20519 fi
20520 ;;
20521
20522amigaos*)
20523 library_names_spec='$libname.ixlibrary $libname.a'
20524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020525 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 +000020526 ;;
20527
20528beos*)
20529 library_names_spec='${libname}${shared_ext}'
20530 dynamic_linker="$host_os ld.so"
20531 shlibpath_var=LIBRARY_PATH
20532 ;;
20533
Reid Spencer2706f8c2004-09-19 23:53:36 +000020534bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020535 version_type=linux
20536 need_version=no
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20543 # the default ld.so.conf also contains /usr/contrib/lib and
20544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20545 # libtool to hard-code these into programs
20546 ;;
20547
20548cygwin* | mingw* | pw32*)
20549 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020550 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020551 need_version=no
20552 need_lib_prefix=no
20553
20554 case $GCC,$host_os in
20555 yes,cygwin* | yes,mingw* | yes,pw32*)
20556 library_names_spec='$libname.dll.a'
20557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020558 postinstall_cmds='base_file=`basename \${file}`~
20559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20560 dldir=$destdir/`dirname \$dlpath`~
20561 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020562 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20564 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020565 $rm \$dlpath'
20566 shlibpath_overrides_runpath=yes
20567
20568 case $host_os in
20569 cygwin*)
20570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20571 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 +000020572 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020573 ;;
20574 mingw*)
20575 # MinGW DLLs use traditional 'lib' prefix
20576 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20577 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20578 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20579 # It is most probably a Windows format PATH printed by
20580 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20581 # path with ; separators, and with drive letters. We can handle the
20582 # drive letters (cygwin fileutils understands them), so leave them,
20583 # especially as we might pass files found there to a mingw objdump,
20584 # which wouldn't understand a cygwinified path. Ahh.
20585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20586 else
20587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20588 fi
20589 ;;
20590 pw32*)
20591 # pw32 DLLs use 'pw' prefix rather than 'lib'
20592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20593 ;;
20594 esac
20595 ;;
20596
20597 *)
20598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20599 ;;
20600 esac
20601 dynamic_linker='Win32 ld.exe'
20602 # FIXME: first we should search . and the directory the executable is in
20603 shlibpath_var=PATH
20604 ;;
20605
20606darwin* | rhapsody*)
20607 dynamic_linker="$host_os dyld"
20608 version_type=darwin
20609 need_lib_prefix=no
20610 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020611 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020612 soname_spec='${libname}${release}${major}$shared_ext'
20613 shlibpath_overrides_runpath=yes
20614 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020615 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020616 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020617 if test "$GCC" = yes; then
20618 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"`
20619 else
20620 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020621 fi
20622 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20623 ;;
20624
20625dgux*)
20626 version_type=linux
20627 need_lib_prefix=no
20628 need_version=no
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20630 soname_spec='${libname}${release}${shared_ext}$major'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 ;;
20633
20634freebsd1*)
20635 dynamic_linker=no
20636 ;;
20637
Reid Spencer2706f8c2004-09-19 23:53:36 +000020638kfreebsd*-gnu)
20639 version_type=linux
20640 need_lib_prefix=no
20641 need_version=no
20642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20643 soname_spec='${libname}${release}${shared_ext}$major'
20644 shlibpath_var=LD_LIBRARY_PATH
20645 shlibpath_overrides_runpath=no
20646 hardcode_into_libs=yes
20647 dynamic_linker='GNU ld.so'
20648 ;;
20649
John Criswell47fdd832003-07-14 16:52:07 +000020650freebsd*)
20651 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20652 version_type=freebsd-$objformat
20653 case $version_type in
20654 freebsd-elf*)
20655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20656 need_version=no
20657 need_lib_prefix=no
20658 ;;
20659 freebsd-*)
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20661 need_version=yes
20662 ;;
20663 esac
20664 shlibpath_var=LD_LIBRARY_PATH
20665 case $host_os in
20666 freebsd2*)
20667 shlibpath_overrides_runpath=yes
20668 ;;
20669 freebsd3.01* | freebsdelf3.01*)
20670 shlibpath_overrides_runpath=yes
20671 hardcode_into_libs=yes
20672 ;;
20673 *) # from 3.2 on
20674 shlibpath_overrides_runpath=no
20675 hardcode_into_libs=yes
20676 ;;
20677 esac
20678 ;;
20679
20680gnu*)
20681 version_type=linux
20682 need_lib_prefix=no
20683 need_version=no
20684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20685 soname_spec='${libname}${release}${shared_ext}$major'
20686 shlibpath_var=LD_LIBRARY_PATH
20687 hardcode_into_libs=yes
20688 ;;
20689
20690hpux9* | hpux10* | hpux11*)
20691 # Give a soname corresponding to the major version so that dld.sl refuses to
20692 # link against other versions.
20693 version_type=sunos
20694 need_lib_prefix=no
20695 need_version=no
20696 case "$host_cpu" in
20697 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020698 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020699 hardcode_into_libs=yes
20700 dynamic_linker="$host_os dld.so"
20701 shlibpath_var=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704 soname_spec='${libname}${release}${shared_ext}$major'
20705 if test "X$HPUX_IA64_MODE" = X32; then
20706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20707 else
20708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20709 fi
20710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20711 ;;
20712 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020713 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020714 hardcode_into_libs=yes
20715 dynamic_linker="$host_os dld.sl"
20716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20719 soname_spec='${libname}${release}${shared_ext}$major'
20720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20722 ;;
20723 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020724 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020725 dynamic_linker="$host_os dld.sl"
20726 shlibpath_var=SHLIB_PATH
20727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729 soname_spec='${libname}${release}${shared_ext}$major'
20730 ;;
20731 esac
20732 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20733 postinstall_cmds='chmod 555 $lib'
20734 ;;
20735
20736irix5* | irix6* | nonstopux*)
20737 case $host_os in
20738 nonstopux*) version_type=nonstopux ;;
20739 *)
20740 if test "$lt_cv_prog_gnu_ld" = yes; then
20741 version_type=linux
20742 else
20743 version_type=irix
20744 fi ;;
20745 esac
20746 need_lib_prefix=no
20747 need_version=no
20748 soname_spec='${libname}${release}${shared_ext}$major'
20749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20750 case $host_os in
20751 irix5* | nonstopux*)
20752 libsuff= shlibsuff=
20753 ;;
20754 *)
20755 case $LD in # libtool.m4 will add one of these switches to LD
20756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20757 libsuff= shlibsuff= libmagic=32-bit;;
20758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20759 libsuff=32 shlibsuff=N32 libmagic=N32;;
20760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20761 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20762 *) libsuff= shlibsuff= libmagic=never-match;;
20763 esac
20764 ;;
20765 esac
20766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20767 shlibpath_overrides_runpath=no
20768 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20769 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20770 hardcode_into_libs=yes
20771 ;;
20772
20773# No shared lib support for Linux oldld, aout, or coff.
20774linux*oldld* | linux*aout* | linux*coff*)
20775 dynamic_linker=no
20776 ;;
20777
20778# This must be Linux ELF.
20779linux*)
20780 version_type=linux
20781 need_lib_prefix=no
20782 need_version=no
20783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784 soname_spec='${libname}${release}${shared_ext}$major'
20785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20786 shlibpath_var=LD_LIBRARY_PATH
20787 shlibpath_overrides_runpath=no
20788 # This implies no fast_install, which is unacceptable.
20789 # Some rework will be needed to allow for fast_install
20790 # before this can be enabled.
20791 hardcode_into_libs=yes
20792
Reid Spencer2706f8c2004-09-19 23:53:36 +000020793 # Append ld.so.conf contents to the search path
20794 if test -f /etc/ld.so.conf; then
20795 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20797 fi
20798
John Criswell47fdd832003-07-14 16:52:07 +000020799 # We used to test for /lib/ld.so.1 and disable shared libraries on
20800 # powerpc, because MkLinux only supported shared libraries with the
20801 # GNU dynamic linker. Since this was broken with cross compilers,
20802 # most powerpc-linux boxes support dynamic linking these days and
20803 # people can always --disable-shared, the test was removed, and we
20804 # assume the GNU/Linux dynamic linker is in use.
20805 dynamic_linker='GNU/Linux ld.so'
20806 ;;
20807
Reid Spencer2706f8c2004-09-19 23:53:36 +000020808knetbsd*-gnu)
20809 version_type=linux
20810 need_lib_prefix=no
20811 need_version=no
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20813 soname_spec='${libname}${release}${shared_ext}$major'
20814 shlibpath_var=LD_LIBRARY_PATH
20815 shlibpath_overrides_runpath=no
20816 hardcode_into_libs=yes
20817 dynamic_linker='GNU ld.so'
20818 ;;
20819
John Criswell47fdd832003-07-14 16:52:07 +000020820netbsd*)
20821 version_type=sunos
20822 need_lib_prefix=no
20823 need_version=no
20824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20827 dynamic_linker='NetBSD (a.out) ld.so'
20828 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020830 soname_spec='${libname}${release}${shared_ext}$major'
20831 dynamic_linker='NetBSD ld.elf_so'
20832 fi
20833 shlibpath_var=LD_LIBRARY_PATH
20834 shlibpath_overrides_runpath=yes
20835 hardcode_into_libs=yes
20836 ;;
20837
20838newsos6)
20839 version_type=linux
20840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20841 shlibpath_var=LD_LIBRARY_PATH
20842 shlibpath_overrides_runpath=yes
20843 ;;
20844
Reid Spencer2706f8c2004-09-19 23:53:36 +000020845nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020846 version_type=linux
20847 need_lib_prefix=no
20848 need_version=no
20849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20850 soname_spec='${libname}${release}${shared_ext}$major'
20851 shlibpath_var=LD_LIBRARY_PATH
20852 shlibpath_overrides_runpath=yes
20853 ;;
20854
20855openbsd*)
20856 version_type=sunos
20857 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020858 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20861 shlibpath_var=LD_LIBRARY_PATH
20862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20863 case $host_os in
20864 openbsd2.[89] | openbsd2.[89].*)
20865 shlibpath_overrides_runpath=no
20866 ;;
20867 *)
20868 shlibpath_overrides_runpath=yes
20869 ;;
20870 esac
20871 else
20872 shlibpath_overrides_runpath=yes
20873 fi
20874 ;;
20875
20876os2*)
20877 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020878 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020879 need_lib_prefix=no
20880 library_names_spec='$libname${shared_ext} $libname.a'
20881 dynamic_linker='OS/2 ld.exe'
20882 shlibpath_var=LIBPATH
20883 ;;
20884
20885osf3* | osf4* | osf5*)
20886 version_type=osf
20887 need_lib_prefix=no
20888 need_version=no
20889 soname_spec='${libname}${release}${shared_ext}$major'
20890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20891 shlibpath_var=LD_LIBRARY_PATH
20892 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20893 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20894 ;;
20895
20896sco3.2v5*)
20897 version_type=osf
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900 shlibpath_var=LD_LIBRARY_PATH
20901 ;;
20902
20903solaris*)
20904 version_type=linux
20905 need_lib_prefix=no
20906 need_version=no
20907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20908 soname_spec='${libname}${release}${shared_ext}$major'
20909 shlibpath_var=LD_LIBRARY_PATH
20910 shlibpath_overrides_runpath=yes
20911 hardcode_into_libs=yes
20912 # ldd complains unless libraries are executable
20913 postinstall_cmds='chmod +x $lib'
20914 ;;
20915
20916sunos4*)
20917 version_type=sunos
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 shlibpath_overrides_runpath=yes
20922 if test "$with_gnu_ld" = yes; then
20923 need_lib_prefix=no
20924 fi
20925 need_version=yes
20926 ;;
20927
20928sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20929 version_type=linux
20930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20931 soname_spec='${libname}${release}${shared_ext}$major'
20932 shlibpath_var=LD_LIBRARY_PATH
20933 case $host_vendor in
20934 sni)
20935 shlibpath_overrides_runpath=no
20936 need_lib_prefix=no
20937 export_dynamic_flag_spec='${wl}-Blargedynsym'
20938 runpath_var=LD_RUN_PATH
20939 ;;
20940 siemens)
20941 need_lib_prefix=no
20942 ;;
20943 motorola)
20944 need_lib_prefix=no
20945 need_version=no
20946 shlibpath_overrides_runpath=no
20947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20948 ;;
20949 esac
20950 ;;
20951
20952sysv4*MP*)
20953 if test -d /usr/nec ;then
20954 version_type=linux
20955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20956 soname_spec='$libname${shared_ext}.$major'
20957 shlibpath_var=LD_LIBRARY_PATH
20958 fi
20959 ;;
20960
20961uts4*)
20962 version_type=linux
20963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20964 soname_spec='${libname}${release}${shared_ext}$major'
20965 shlibpath_var=LD_LIBRARY_PATH
20966 ;;
20967
20968*)
20969 dynamic_linker=no
20970 ;;
20971esac
20972echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20973echo "${ECHO_T}$dynamic_linker" >&6
20974test "$dynamic_linker" = no && can_build_shared=no
20975
Reid Spencer2706f8c2004-09-19 23:53:36 +000020976echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20977echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20978hardcode_action_F77=
20979if test -n "$hardcode_libdir_flag_spec_F77" || \
20980 test -n "$runpath_var_F77" || \
20981 test "X$hardcode_automatic_F77" = "Xyes" ; then
20982
20983 # We can hardcode non-existant directories.
20984 if test "$hardcode_direct_F77" != no &&
20985 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20986 # have to relink, otherwise we might link with an installed library
20987 # when we should be linking with a yet-to-be-installed one
20988 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20989 test "$hardcode_minus_L_F77" != no; then
20990 # Linking always hardcodes the temporary library directory.
20991 hardcode_action_F77=relink
20992 else
20993 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20994 hardcode_action_F77=immediate
20995 fi
20996else
20997 # We cannot hardcode anything, or else we can only hardcode existing
20998 # directories.
20999 hardcode_action_F77=unsupported
21000fi
21001echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21002echo "${ECHO_T}$hardcode_action_F77" >&6
21003
21004if test "$hardcode_action_F77" = relink; then
21005 # Fast installation is not supported
21006 enable_fast_install=no
21007elif test "$shlibpath_overrides_runpath" = yes ||
21008 test "$enable_shared" = no; then
21009 # Fast installation is not necessary
21010 enable_fast_install=needless
21011fi
21012
21013striplib=
21014old_striplib=
21015echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21016echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21017if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21020 echo "$as_me:$LINENO: result: yes" >&5
21021echo "${ECHO_T}yes" >&6
21022else
21023# FIXME - insert some real tests, host_os isn't really good enough
21024 case $host_os in
21025 darwin*)
21026 if test -n "$STRIP" ; then
21027 striplib="$STRIP -x"
21028 echo "$as_me:$LINENO: result: yes" >&5
21029echo "${ECHO_T}yes" >&6
21030 else
21031 echo "$as_me:$LINENO: result: no" >&5
21032echo "${ECHO_T}no" >&6
21033fi
21034 ;;
21035 *)
21036 echo "$as_me:$LINENO: result: no" >&5
21037echo "${ECHO_T}no" >&6
21038 ;;
21039 esac
21040fi
21041
21042
John Criswell47fdd832003-07-14 16:52:07 +000021043
21044# The else clause should only fire when bootstrapping the
21045# libtool distribution, otherwise you forgot to ship ltmain.sh
21046# with your package, and you will get complaints that there are
21047# no rules to generate ltmain.sh.
21048if test -f "$ltmain"; then
21049 # See if we are running on zsh, and set the options which allow our commands through
21050 # without removal of \ escapes.
21051 if test -n "${ZSH_VERSION+set}" ; then
21052 setopt NO_GLOB_SUBST
21053 fi
21054 # Now quote all the things that may contain metacharacters while being
21055 # careful not to overquote the AC_SUBSTed values. We take copies of the
21056 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021057 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21058 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21061 deplibs_check_method reload_flag reload_cmds need_locks \
21062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21063 lt_cv_sys_global_symbol_to_c_name_address \
21064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21065 old_postinstall_cmds old_postuninstall_cmds \
21066 compiler_F77 \
21067 CC_F77 \
21068 LD_F77 \
21069 lt_prog_compiler_wl_F77 \
21070 lt_prog_compiler_pic_F77 \
21071 lt_prog_compiler_static_F77 \
21072 lt_prog_compiler_no_builtin_flag_F77 \
21073 export_dynamic_flag_spec_F77 \
21074 thread_safe_flag_spec_F77 \
21075 whole_archive_flag_spec_F77 \
21076 enable_shared_with_static_runtimes_F77 \
21077 old_archive_cmds_F77 \
21078 old_archive_from_new_cmds_F77 \
21079 predep_objects_F77 \
21080 postdep_objects_F77 \
21081 predeps_F77 \
21082 postdeps_F77 \
21083 compiler_lib_search_path_F77 \
21084 archive_cmds_F77 \
21085 archive_expsym_cmds_F77 \
21086 postinstall_cmds_F77 \
21087 postuninstall_cmds_F77 \
21088 old_archive_from_expsyms_cmds_F77 \
21089 allow_undefined_flag_F77 \
21090 no_undefined_flag_F77 \
21091 export_symbols_cmds_F77 \
21092 hardcode_libdir_flag_spec_F77 \
21093 hardcode_libdir_flag_spec_ld_F77 \
21094 hardcode_libdir_separator_F77 \
21095 hardcode_automatic_F77 \
21096 module_cmds_F77 \
21097 module_expsym_cmds_F77 \
21098 lt_cv_prog_compiler_c_o_F77 \
21099 exclude_expsyms_F77 \
21100 include_expsyms_F77; do
21101
21102 case $var in
21103 old_archive_cmds_F77 | \
21104 old_archive_from_new_cmds_F77 | \
21105 archive_cmds_F77 | \
21106 archive_expsym_cmds_F77 | \
21107 module_cmds_F77 | \
21108 module_expsym_cmds_F77 | \
21109 old_archive_from_expsyms_cmds_F77 | \
21110 export_symbols_cmds_F77 | \
21111 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21112 postinstall_cmds | postuninstall_cmds | \
21113 old_postinstall_cmds | old_postuninstall_cmds | \
21114 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21115 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021116 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 +000021117 ;;
21118 *)
21119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21120 ;;
21121 esac
21122 done
21123
21124 case $lt_echo in
21125 *'\$0 --fallback-echo"')
21126 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21127 ;;
21128 esac
21129
21130cfgfile="$ofile"
21131
21132 cat <<__EOF__ >> "$cfgfile"
21133# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21134
21135# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21136
21137# Shell to use when invoking shell scripts.
21138SHELL=$lt_SHELL
21139
21140# Whether or not to build shared libraries.
21141build_libtool_libs=$enable_shared
21142
21143# Whether or not to build static libraries.
21144build_old_libs=$enable_static
21145
21146# Whether or not to add -lc for building shared libraries.
21147build_libtool_need_lc=$archive_cmds_need_lc_F77
21148
21149# Whether or not to disallow shared libs when runtime libs are static
21150allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21151
21152# Whether or not to optimize for fast installation.
21153fast_install=$enable_fast_install
21154
21155# The host system.
21156host_alias=$host_alias
21157host=$host
21158
21159# An echo program that does not interpret backslashes.
21160echo=$lt_echo
21161
21162# The archiver.
21163AR=$lt_AR
21164AR_FLAGS=$lt_AR_FLAGS
21165
21166# A C compiler.
21167LTCC=$lt_LTCC
21168
21169# A language-specific compiler.
21170CC=$lt_compiler_F77
21171
21172# Is the compiler the GNU C compiler?
21173with_gcc=$GCC_F77
21174
21175# An ERE matcher.
21176EGREP=$lt_EGREP
21177
21178# The linker used to build libraries.
21179LD=$lt_LD_F77
21180
21181# Whether we need hard or soft links.
21182LN_S=$lt_LN_S
21183
21184# A BSD-compatible nm program.
21185NM=$lt_NM
21186
21187# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021188STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021189
21190# Used to examine libraries when file_magic_cmd begins "file"
21191MAGIC_CMD=$MAGIC_CMD
21192
21193# Used on cygwin: DLL creation program.
21194DLLTOOL="$DLLTOOL"
21195
21196# Used on cygwin: object dumper.
21197OBJDUMP="$OBJDUMP"
21198
21199# Used on cygwin: assembler.
21200AS="$AS"
21201
21202# The name of the directory that contains temporary libtool files.
21203objdir=$objdir
21204
21205# How to create reloadable object files.
21206reload_flag=$lt_reload_flag
21207reload_cmds=$lt_reload_cmds
21208
21209# How to pass a linker flag through the compiler.
21210wl=$lt_lt_prog_compiler_wl_F77
21211
21212# Object file suffix (normally "o").
21213objext="$ac_objext"
21214
21215# Old archive suffix (normally "a").
21216libext="$libext"
21217
21218# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021219shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021220
21221# Executable file suffix (normally "").
21222exeext="$exeext"
21223
21224# Additional compiler flags for building library objects.
21225pic_flag=$lt_lt_prog_compiler_pic_F77
21226pic_mode=$pic_mode
21227
21228# What is the maximum length of a command?
21229max_cmd_len=$lt_cv_sys_max_cmd_len
21230
21231# Does compiler simultaneously support -c and -o options?
21232compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21233
21234# Must we lock files when doing compilation ?
21235need_locks=$lt_need_locks
21236
21237# Do we need the lib prefix for modules?
21238need_lib_prefix=$need_lib_prefix
21239
21240# Do we need a version for libraries?
21241need_version=$need_version
21242
21243# Whether dlopen is supported.
21244dlopen_support=$enable_dlopen
21245
21246# Whether dlopen of programs is supported.
21247dlopen_self=$enable_dlopen_self
21248
21249# Whether dlopen of statically linked programs is supported.
21250dlopen_self_static=$enable_dlopen_self_static
21251
21252# Compiler flag to prevent dynamic linking.
21253link_static_flag=$lt_lt_prog_compiler_static_F77
21254
21255# Compiler flag to turn off builtin functions.
21256no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21257
21258# Compiler flag to allow reflexive dlopens.
21259export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21260
21261# Compiler flag to generate shared objects directly from archives.
21262whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21263
21264# Compiler flag to generate thread-safe objects.
21265thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21266
21267# Library versioning type.
21268version_type=$version_type
21269
21270# Format of library name prefix.
21271libname_spec=$lt_libname_spec
21272
21273# List of archive names. First name is the real one, the rest are links.
21274# The last name is the one that the linker finds with -lNAME.
21275library_names_spec=$lt_library_names_spec
21276
21277# The coded name of the library, if different from the real name.
21278soname_spec=$lt_soname_spec
21279
21280# Commands used to build and install an old-style archive.
21281RANLIB=$lt_RANLIB
21282old_archive_cmds=$lt_old_archive_cmds_F77
21283old_postinstall_cmds=$lt_old_postinstall_cmds
21284old_postuninstall_cmds=$lt_old_postuninstall_cmds
21285
21286# Create an old-style archive from a shared archive.
21287old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21288
21289# Create a temporary old-style archive to link instead of a shared archive.
21290old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21291
21292# Commands used to build and install a shared archive.
21293archive_cmds=$lt_archive_cmds_F77
21294archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21295postinstall_cmds=$lt_postinstall_cmds
21296postuninstall_cmds=$lt_postuninstall_cmds
21297
21298# Commands used to build a loadable module (assumed same as above if empty)
21299module_cmds=$lt_module_cmds_F77
21300module_expsym_cmds=$lt_module_expsym_cmds_F77
21301
21302# Commands to strip libraries.
21303old_striplib=$lt_old_striplib
21304striplib=$lt_striplib
21305
21306# Dependencies to place before the objects being linked to create a
21307# shared library.
21308predep_objects=$lt_predep_objects_F77
21309
21310# Dependencies to place after the objects being linked to create a
21311# shared library.
21312postdep_objects=$lt_postdep_objects_F77
21313
21314# Dependencies to place before the objects being linked to create a
21315# shared library.
21316predeps=$lt_predeps_F77
21317
21318# Dependencies to place after the objects being linked to create a
21319# shared library.
21320postdeps=$lt_postdeps_F77
21321
21322# The library search path used internally by the compiler when linking
21323# a shared library.
21324compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21325
21326# Method to check whether dependent libraries are shared objects.
21327deplibs_check_method=$lt_deplibs_check_method
21328
21329# Command to use when deplibs_check_method == file_magic.
21330file_magic_cmd=$lt_file_magic_cmd
21331
21332# Flag that allows shared libraries with undefined symbols to be built.
21333allow_undefined_flag=$lt_allow_undefined_flag_F77
21334
21335# Flag that forces no undefined symbols.
21336no_undefined_flag=$lt_no_undefined_flag_F77
21337
21338# Commands used to finish a libtool library installation in a directory.
21339finish_cmds=$lt_finish_cmds
21340
21341# Same as above, but a single script fragment to be evaled but not shown.
21342finish_eval=$lt_finish_eval
21343
21344# Take the output of nm and produce a listing of raw symbols and C names.
21345global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21346
21347# Transform the output of nm in a proper C declaration
21348global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21349
21350# Transform the output of nm in a C name address pair
21351global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21352
21353# This is the shared library runtime path variable.
21354runpath_var=$runpath_var
21355
21356# This is the shared library path variable.
21357shlibpath_var=$shlibpath_var
21358
21359# Is shlibpath searched before the hard-coded library search path?
21360shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21361
21362# How to hardcode a shared library path into an executable.
21363hardcode_action=$hardcode_action_F77
21364
21365# Whether we should hardcode library paths into libraries.
21366hardcode_into_libs=$hardcode_into_libs
21367
21368# Flag to hardcode \$libdir into a binary during linking.
21369# This must work even if \$libdir does not exist.
21370hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21371
21372# If ld is used when linking, flag to hardcode \$libdir into
21373# a binary during linking. This must work even if \$libdir does
21374# not exist.
21375hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21376
21377# Whether we need a single -rpath flag with a separated argument.
21378hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21379
21380# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21381# resulting binary.
21382hardcode_direct=$hardcode_direct_F77
21383
21384# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21385# resulting binary.
21386hardcode_minus_L=$hardcode_minus_L_F77
21387
21388# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21389# the resulting binary.
21390hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21391
21392# Set to yes if building a shared library automatically hardcodes DIR into the library
21393# and all subsequent libraries and executables linked against it.
21394hardcode_automatic=$hardcode_automatic_F77
21395
21396# Variables whose values should be saved in libtool wrapper scripts and
21397# restored at relink time.
21398variables_saved_for_relink="$variables_saved_for_relink"
21399
21400# Whether libtool must link a program against all its dependency libraries.
21401link_all_deplibs=$link_all_deplibs_F77
21402
21403# Compile-time system search path for libraries
21404sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21405
21406# Run-time system search path for libraries
21407sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21408
21409# Fix the shell variable \$srcfile for the compiler.
21410fix_srcfile_path="$fix_srcfile_path_F77"
21411
21412# Set to yes if exported symbols are required.
21413always_export_symbols=$always_export_symbols_F77
21414
21415# The commands to list exported symbols.
21416export_symbols_cmds=$lt_export_symbols_cmds_F77
21417
21418# The commands to extract the exported symbol list from a shared archive.
21419extract_expsyms_cmds=$lt_extract_expsyms_cmds
21420
21421# Symbols that should not be listed in the preloaded symbols.
21422exclude_expsyms=$lt_exclude_expsyms_F77
21423
21424# Symbols that must always be exported.
21425include_expsyms=$lt_include_expsyms_F77
21426
21427# ### END LIBTOOL TAG CONFIG: $tagname
21428
21429__EOF__
21430
21431
21432else
21433 # If there is no Makefile yet, we rely on a make rule to execute
21434 # `config.status --recheck' to rerun these tests and create the
21435 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021436 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21437 if test -f "$ltmain_in"; then
21438 test -f Makefile && make "$ltmain"
21439 fi
John Criswell47fdd832003-07-14 16:52:07 +000021440fi
21441
21442
21443ac_ext=c
21444ac_cpp='$CPP $CPPFLAGS'
21445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447ac_compiler_gnu=$ac_cv_c_compiler_gnu
21448
21449CC="$lt_save_CC"
21450
21451 else
21452 tagname=""
21453 fi
21454 ;;
21455
21456 GCJ)
21457 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021458 ac_ext=c
21459ac_cpp='$CPP $CPPFLAGS'
21460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21462ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021463
21464
21465# Source file extension for Java test sources.
21466ac_ext=java
21467
21468# Object file extension for compiled Java test sources.
21469objext=o
21470objext_GCJ=$objext
21471
21472# Code to be used in simple compile tests
21473lt_simple_compile_test_code="class foo {}\n"
21474
21475# Code to be used in simple link tests
21476lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21477
21478# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21479
21480# If no C compiler was specified, use CC.
21481LTCC=${LTCC-"$CC"}
21482
21483# Allow CC to be a program name with arguments.
21484compiler=$CC
21485
21486
21487# Allow CC to be a program name with arguments.
21488lt_save_CC="$CC"
21489CC=${GCJ-"gcj"}
21490compiler=$CC
21491compiler_GCJ=$CC
21492
21493# GCJ did not exist at the time GCC didn't implicitly link libc in.
21494archive_cmds_need_lc_GCJ=no
21495
John Criswell47fdd832003-07-14 16:52:07 +000021496
21497lt_prog_compiler_no_builtin_flag_GCJ=
21498
21499if test "$GCC" = yes; then
21500 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21501
Reid Spencer2706f8c2004-09-19 23:53:36 +000021502
21503echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021504echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21505if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507else
21508 lt_cv_prog_compiler_rtti_exceptions=no
21509 ac_outfile=conftest.$ac_objext
21510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21511 lt_compiler_flag="-fno-rtti -fno-exceptions"
21512 # Insert the option either (1) after the last *FLAGS variable, or
21513 # (2) before a word containing "conftest.", or (3) at the end.
21514 # Note that $ac_compile itself does not contain backslashes and begins
21515 # with a dollar sign (not a hyphen), so the echo should work correctly.
21516 # The option is referenced via a variable to avoid confusing sed.
21517 lt_compile=`echo "$ac_compile" | $SED \
21518 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21520 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000021521 (eval echo "\"\$as_me:21521: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021522 (eval "$lt_compile" 2>conftest.err)
21523 ac_status=$?
21524 cat conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000021525 echo "$as_me:21525: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021526 if (exit $ac_status) && test -s "$ac_outfile"; then
21527 # The compiler can only warn and ignore the option if not recognized
21528 # So say no if there are warnings
21529 if test ! -s conftest.err; then
21530 lt_cv_prog_compiler_rtti_exceptions=yes
21531 fi
21532 fi
21533 $rm conftest*
21534
21535fi
21536echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21537echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21538
21539if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21540 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21541else
21542 :
21543fi
21544
21545fi
21546
21547lt_prog_compiler_wl_GCJ=
21548lt_prog_compiler_pic_GCJ=
21549lt_prog_compiler_static_GCJ=
21550
21551echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21552echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21553
21554 if test "$GCC" = yes; then
21555 lt_prog_compiler_wl_GCJ='-Wl,'
21556 lt_prog_compiler_static_GCJ='-static'
21557
21558 case $host_os in
21559 aix*)
21560 # All AIX code is PIC.
21561 if test "$host_cpu" = ia64; then
21562 # AIX 5 now supports IA64 processor
21563 lt_prog_compiler_static_GCJ='-Bstatic'
21564 fi
21565 ;;
21566
21567 amigaos*)
21568 # FIXME: we need at least 68020 code to build shared libraries, but
21569 # adding the `-m68020' flag to GCC prevents building anything better,
21570 # like `-m68040'.
21571 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21572 ;;
21573
21574 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21575 # PIC is the default for these OSes.
21576 ;;
21577
21578 mingw* | pw32* | os2*)
21579 # This hack is so that the source file can tell whether it is being
21580 # built for inclusion in a dll (and should export symbols for example).
21581 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21582 ;;
21583
21584 darwin* | rhapsody*)
21585 # PIC is the default on this platform
21586 # Common symbols not allowed in MH_DYLIB files
21587 lt_prog_compiler_pic_GCJ='-fno-common'
21588 ;;
21589
21590 msdosdjgpp*)
21591 # Just because we use GCC doesn't mean we suddenly get shared libraries
21592 # on systems that don't support them.
21593 lt_prog_compiler_can_build_shared_GCJ=no
21594 enable_shared=no
21595 ;;
21596
21597 sysv4*MP*)
21598 if test -d /usr/nec; then
21599 lt_prog_compiler_pic_GCJ=-Kconform_pic
21600 fi
21601 ;;
21602
21603 hpux*)
21604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21605 # not for PA HP-UX.
21606 case "$host_cpu" in
21607 hppa*64*|ia64*)
21608 # +Z the default
21609 ;;
21610 *)
21611 lt_prog_compiler_pic_GCJ='-fPIC'
21612 ;;
21613 esac
21614 ;;
21615
21616 *)
21617 lt_prog_compiler_pic_GCJ='-fPIC'
21618 ;;
21619 esac
21620 else
21621 # PORTME Check for flag to pass linker flags through the system compiler.
21622 case $host_os in
21623 aix*)
21624 lt_prog_compiler_wl_GCJ='-Wl,'
21625 if test "$host_cpu" = ia64; then
21626 # AIX 5 now supports IA64 processor
21627 lt_prog_compiler_static_GCJ='-Bstatic'
21628 else
21629 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21630 fi
21631 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021632 darwin*)
21633 # PIC is the default on this platform
21634 # Common symbols not allowed in MH_DYLIB files
21635 case "$cc_basename" in
21636 xlc*)
21637 lt_prog_compiler_pic_GCJ='-qnocommon'
21638 lt_prog_compiler_wl_GCJ='-Wl,'
21639 ;;
21640 esac
21641 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021642
21643 mingw* | pw32* | os2*)
21644 # This hack is so that the source file can tell whether it is being
21645 # built for inclusion in a dll (and should export symbols for example).
21646 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21647 ;;
21648
21649 hpux9* | hpux10* | hpux11*)
21650 lt_prog_compiler_wl_GCJ='-Wl,'
21651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21652 # not for PA HP-UX.
21653 case "$host_cpu" in
21654 hppa*64*|ia64*)
21655 # +Z the default
21656 ;;
21657 *)
21658 lt_prog_compiler_pic_GCJ='+Z'
21659 ;;
21660 esac
21661 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21662 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21663 ;;
21664
21665 irix5* | irix6* | nonstopux*)
21666 lt_prog_compiler_wl_GCJ='-Wl,'
21667 # PIC (with -KPIC) is the default.
21668 lt_prog_compiler_static_GCJ='-non_shared'
21669 ;;
21670
21671 newsos6)
21672 lt_prog_compiler_pic_GCJ='-KPIC'
21673 lt_prog_compiler_static_GCJ='-Bstatic'
21674 ;;
21675
21676 linux*)
21677 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021678 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021679 lt_prog_compiler_wl_GCJ='-Wl,'
21680 lt_prog_compiler_pic_GCJ='-KPIC'
21681 lt_prog_compiler_static_GCJ='-static'
21682 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021683 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021684 lt_prog_compiler_wl_GCJ='-Wl,'
21685 # All Alpha code is PIC.
21686 lt_prog_compiler_static_GCJ='-non_shared'
21687 ;;
21688 esac
21689 ;;
21690
21691 osf3* | osf4* | osf5*)
21692 lt_prog_compiler_wl_GCJ='-Wl,'
21693 # All OSF/1 code is PIC.
21694 lt_prog_compiler_static_GCJ='-non_shared'
21695 ;;
21696
21697 sco3.2v5*)
21698 lt_prog_compiler_pic_GCJ='-Kpic'
21699 lt_prog_compiler_static_GCJ='-dn'
21700 ;;
21701
21702 solaris*)
21703 lt_prog_compiler_wl_GCJ='-Wl,'
21704 lt_prog_compiler_pic_GCJ='-KPIC'
21705 lt_prog_compiler_static_GCJ='-Bstatic'
21706 ;;
21707
21708 sunos4*)
21709 lt_prog_compiler_wl_GCJ='-Qoption ld '
21710 lt_prog_compiler_pic_GCJ='-PIC'
21711 lt_prog_compiler_static_GCJ='-Bstatic'
21712 ;;
21713
21714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21715 lt_prog_compiler_wl_GCJ='-Wl,'
21716 lt_prog_compiler_pic_GCJ='-KPIC'
21717 lt_prog_compiler_static_GCJ='-Bstatic'
21718 ;;
21719
21720 sysv4*MP*)
21721 if test -d /usr/nec ;then
21722 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21723 lt_prog_compiler_static_GCJ='-Bstatic'
21724 fi
21725 ;;
21726
21727 uts4*)
21728 lt_prog_compiler_pic_GCJ='-pic'
21729 lt_prog_compiler_static_GCJ='-Bstatic'
21730 ;;
21731
21732 *)
21733 lt_prog_compiler_can_build_shared_GCJ=no
21734 ;;
21735 esac
21736 fi
21737
21738echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21739echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21740
21741#
21742# Check to make sure the PIC flag actually works.
21743#
21744if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021745
21746echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021747echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21748if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750else
21751 lt_prog_compiler_pic_works_GCJ=no
21752 ac_outfile=conftest.$ac_objext
21753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21754 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21755 # Insert the option either (1) after the last *FLAGS variable, or
21756 # (2) before a word containing "conftest.", or (3) at the end.
21757 # Note that $ac_compile itself does not contain backslashes and begins
21758 # with a dollar sign (not a hyphen), so the echo should work correctly.
21759 # The option is referenced via a variable to avoid confusing sed.
21760 lt_compile=`echo "$ac_compile" | $SED \
21761 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21763 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000021764 (eval echo "\"\$as_me:21764: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021765 (eval "$lt_compile" 2>conftest.err)
21766 ac_status=$?
21767 cat conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000021768 echo "$as_me:21768: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021769 if (exit $ac_status) && test -s "$ac_outfile"; then
21770 # The compiler can only warn and ignore the option if not recognized
21771 # So say no if there are warnings
21772 if test ! -s conftest.err; then
21773 lt_prog_compiler_pic_works_GCJ=yes
21774 fi
21775 fi
21776 $rm conftest*
21777
21778fi
21779echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21780echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21781
21782if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21783 case $lt_prog_compiler_pic_GCJ in
21784 "" | " "*) ;;
21785 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21786 esac
21787else
21788 lt_prog_compiler_pic_GCJ=
21789 lt_prog_compiler_can_build_shared_GCJ=no
21790fi
21791
21792fi
21793case "$host_os" in
21794 # For platforms which do not support PIC, -DPIC is meaningless:
21795 *djgpp*)
21796 lt_prog_compiler_pic_GCJ=
21797 ;;
21798 *)
21799 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21800 ;;
21801esac
21802
21803echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21804echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21805if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807else
21808 lt_cv_prog_compiler_c_o_GCJ=no
21809 $rm -r conftest 2>/dev/null
21810 mkdir conftest
21811 cd conftest
21812 mkdir out
21813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21814
John Criswell47fdd832003-07-14 16:52:07 +000021815 lt_compiler_flag="-o out/conftest2.$ac_objext"
21816 # Insert the option either (1) after the last *FLAGS variable, or
21817 # (2) before a word containing "conftest.", or (3) at the end.
21818 # Note that $ac_compile itself does not contain backslashes and begins
21819 # with a dollar sign (not a hyphen), so the echo should work correctly.
21820 lt_compile=`echo "$ac_compile" | $SED \
21821 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21823 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1bc68642006-07-27 23:00:30 +000021824 (eval echo "\"\$as_me:21824: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021825 (eval "$lt_compile" 2>out/conftest.err)
21826 ac_status=$?
21827 cat out/conftest.err >&5
Reid Spencer1bc68642006-07-27 23:00:30 +000021828 echo "$as_me:21828: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21830 then
21831 # The compiler can only warn and ignore the option if not recognized
21832 # So say no if there are warnings
21833 if test ! -s out/conftest.err; then
21834 lt_cv_prog_compiler_c_o_GCJ=yes
21835 fi
21836 fi
21837 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021838 $rm conftest*
21839 # SGI C++ compiler will create directory out/ii_files/ for
21840 # template instantiation
21841 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21842 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021843 cd ..
21844 rmdir conftest
21845 $rm conftest*
21846
21847fi
21848echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21849echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21850
21851
21852hard_links="nottested"
21853if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21854 # do not overwrite the value of need_locks provided by the user
21855 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21856echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21857 hard_links=yes
21858 $rm conftest*
21859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21860 touch conftest.a
21861 ln conftest.a conftest.b 2>&5 || hard_links=no
21862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21863 echo "$as_me:$LINENO: result: $hard_links" >&5
21864echo "${ECHO_T}$hard_links" >&6
21865 if test "$hard_links" = no; then
21866 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21867echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21868 need_locks=warn
21869 fi
21870else
21871 need_locks=no
21872fi
21873
21874echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21875echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21876
21877 runpath_var=
21878 allow_undefined_flag_GCJ=
21879 enable_shared_with_static_runtimes_GCJ=no
21880 archive_cmds_GCJ=
21881 archive_expsym_cmds_GCJ=
21882 old_archive_From_new_cmds_GCJ=
21883 old_archive_from_expsyms_cmds_GCJ=
21884 export_dynamic_flag_spec_GCJ=
21885 whole_archive_flag_spec_GCJ=
21886 thread_safe_flag_spec_GCJ=
21887 hardcode_libdir_flag_spec_GCJ=
21888 hardcode_libdir_flag_spec_ld_GCJ=
21889 hardcode_libdir_separator_GCJ=
21890 hardcode_direct_GCJ=no
21891 hardcode_minus_L_GCJ=no
21892 hardcode_shlibpath_var_GCJ=unsupported
21893 link_all_deplibs_GCJ=unknown
21894 hardcode_automatic_GCJ=no
21895 module_cmds_GCJ=
21896 module_expsym_cmds_GCJ=
21897 always_export_symbols_GCJ=no
21898 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21899 # include_expsyms should be a list of space-separated symbols to be *always*
21900 # included in the symbol list
21901 include_expsyms_GCJ=
21902 # exclude_expsyms can be an extended regexp of symbols to exclude
21903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21905 # as well as any symbol that contains `d'.
21906 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21908 # platforms (ab)use it in PIC code, but their linkers get confused if
21909 # the symbol is explicitly referenced. Since portable code cannot
21910 # rely on this symbol name, it's probably fine to never include it in
21911 # preloaded symbol tables.
21912 extract_expsyms_cmds=
21913
21914 case $host_os in
21915 cygwin* | mingw* | pw32*)
21916 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21917 # When not using gcc, we currently assume that we are using
21918 # Microsoft Visual C++.
21919 if test "$GCC" != yes; then
21920 with_gnu_ld=no
21921 fi
21922 ;;
21923 openbsd*)
21924 with_gnu_ld=no
21925 ;;
21926 esac
21927
21928 ld_shlibs_GCJ=yes
21929 if test "$with_gnu_ld" = yes; then
21930 # If archive_cmds runs LD, not CC, wlarc should be empty
21931 wlarc='${wl}'
21932
21933 # See if GNU ld supports shared libraries.
21934 case $host_os in
21935 aix3* | aix4* | aix5*)
21936 # On AIX/PPC, the GNU linker is very broken
21937 if test "$host_cpu" != ia64; then
21938 ld_shlibs_GCJ=no
21939 cat <<EOF 1>&2
21940
21941*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21942*** to be unable to reliably create shared libraries on AIX.
21943*** Therefore, libtool is disabling shared libraries support. If you
21944*** really care for shared libraries, you may want to modify your PATH
21945*** so that a non-GNU linker is found, and then restart.
21946
21947EOF
21948 fi
21949 ;;
21950
21951 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021952 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 +000021953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21954 hardcode_minus_L_GCJ=yes
21955
21956 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21957 # that the semantics of dynamic libraries on AmigaOS, at least up
21958 # to version 4, is to share data among multiple programs linked
21959 # with the same dynamic library. Since this doesn't match the
21960 # behavior of shared libraries on other platforms, we can't use
21961 # them.
21962 ld_shlibs_GCJ=no
21963 ;;
21964
21965 beos*)
21966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21967 allow_undefined_flag_GCJ=unsupported
21968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21969 # support --undefined. This deserves some investigation. FIXME
21970 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21971 else
21972 ld_shlibs_GCJ=no
21973 fi
21974 ;;
21975
21976 cygwin* | mingw* | pw32*)
21977 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21978 # as there is no search path for DLLs.
21979 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21980 allow_undefined_flag_GCJ=unsupported
21981 always_export_symbols_GCJ=no
21982 enable_shared_with_static_runtimes_GCJ=yes
21983 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21984
21985 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21986 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21987 # If the export-symbols file already is a .def file (1st line
21988 # is EXPORTS), use it as is; otherwise, prepend...
21989 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21990 cp $export_symbols $output_objdir/$soname.def;
21991 else
21992 echo EXPORTS > $output_objdir/$soname.def;
21993 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021994 fi~
21995 $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 +000021996 else
21997 ld_shlibs=no
21998 fi
21999 ;;
22000
22001 netbsd*)
22002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22003 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22004 wlarc=
22005 else
22006 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22007 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22008 fi
22009 ;;
22010
22011 solaris* | sysv5*)
22012 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22013 ld_shlibs_GCJ=no
22014 cat <<EOF 1>&2
22015
22016*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22017*** create shared libraries on Solaris systems. Therefore, libtool
22018*** is disabling shared libraries support. We urge you to upgrade GNU
22019*** binutils to release 2.9.1 or newer. Another option is to modify
22020*** your PATH or compiler configuration so that the native linker is
22021*** used, and then restart.
22022
22023EOF
22024 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22025 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22026 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22027 else
22028 ld_shlibs_GCJ=no
22029 fi
22030 ;;
22031
22032 sunos4*)
22033 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22034 wlarc=
22035 hardcode_direct_GCJ=yes
22036 hardcode_shlibpath_var_GCJ=no
22037 ;;
22038
Reid Spencer2706f8c2004-09-19 23:53:36 +000022039 linux*)
22040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22041 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22042 archive_cmds_GCJ="$tmp_archive_cmds"
22043 supports_anon_versioning=no
22044 case `$LD -v 2>/dev/null` in
22045 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22048 *\ 2.11.*) ;; # other 2.11 versions
22049 *) supports_anon_versioning=yes ;;
22050 esac
22051 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022052 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22053cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22054$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000022055 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22056 else
22057 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22058 fi
22059 else
22060 ld_shlibs_GCJ=no
22061 fi
22062 ;;
22063
John Criswell47fdd832003-07-14 16:52:07 +000022064 *)
22065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22066 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22067 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22068 else
22069 ld_shlibs_GCJ=no
22070 fi
22071 ;;
22072 esac
22073
22074 if test "$ld_shlibs_GCJ" = yes; then
22075 runpath_var=LD_RUN_PATH
22076 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22077 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22078 # ancient GNU ld didn't support --whole-archive et. al.
22079 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22080 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22081 else
22082 whole_archive_flag_spec_GCJ=
22083 fi
22084 fi
22085 else
22086 # PORTME fill in a description of your system's linker (not GNU ld)
22087 case $host_os in
22088 aix3*)
22089 allow_undefined_flag_GCJ=unsupported
22090 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022091 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 +000022092 # Note: this linker hardcodes the directories in LIBPATH if there
22093 # are no directories specified by -L.
22094 hardcode_minus_L_GCJ=yes
22095 if test "$GCC" = yes && test -z "$link_static_flag"; then
22096 # Neither direct hardcoding nor static linking is supported with a
22097 # broken collect2.
22098 hardcode_direct_GCJ=unsupported
22099 fi
22100 ;;
22101
22102 aix4* | aix5*)
22103 if test "$host_cpu" = ia64; then
22104 # On IA64, the linker does run time linking by default, so we don't
22105 # have to do anything special.
22106 aix_use_runtimelinking=no
22107 exp_sym_flag='-Bexport'
22108 no_entry_flag=""
22109 else
22110 # If we're using GNU nm, then we don't want the "-C" option.
22111 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22112 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22113 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'
22114 else
22115 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'
22116 fi
22117 aix_use_runtimelinking=no
22118
22119 # Test if we are trying to use run time linking or normal
22120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22121 # need to do runtime linking.
22122 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22123 for ld_flag in $LDFLAGS; do
22124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22125 aix_use_runtimelinking=yes
22126 break
22127 fi
22128 done
22129 esac
22130
22131 exp_sym_flag='-bexport'
22132 no_entry_flag='-bnoentry'
22133 fi
22134
22135 # When large executables or shared objects are built, AIX ld can
22136 # have problems creating the table of contents. If linking a library
22137 # or program results in "error TOC overflow" add -mminimal-toc to
22138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22140
22141 archive_cmds_GCJ=''
22142 hardcode_direct_GCJ=yes
22143 hardcode_libdir_separator_GCJ=':'
22144 link_all_deplibs_GCJ=yes
22145
22146 if test "$GCC" = yes; then
22147 case $host_os in aix4.012|aix4.012.*)
22148 # We only want to do this on AIX 4.2 and lower, the check
22149 # below for broken collect2 doesn't work under 4.3+
22150 collect2name=`${CC} -print-prog-name=collect2`
22151 if test -f "$collect2name" && \
22152 strings "$collect2name" | grep resolve_lib_name >/dev/null
22153 then
22154 # We have reworked collect2
22155 hardcode_direct_GCJ=yes
22156 else
22157 # We have old collect2
22158 hardcode_direct_GCJ=unsupported
22159 # It fails to find uninstalled libraries when the uninstalled
22160 # path is not listed in the libpath. Setting hardcode_minus_L
22161 # to unsupported forces relinking
22162 hardcode_minus_L_GCJ=yes
22163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22164 hardcode_libdir_separator_GCJ=
22165 fi
22166 esac
22167 shared_flag='-shared'
22168 else
22169 # not using gcc
22170 if test "$host_cpu" = ia64; then
22171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22172 # chokes on -Wl,-G. The following line is correct:
22173 shared_flag='-G'
22174 else
22175 if test "$aix_use_runtimelinking" = yes; then
22176 shared_flag='${wl}-G'
22177 else
22178 shared_flag='${wl}-bM:SRE'
22179 fi
22180 fi
22181 fi
22182
22183 # It seems that -bexpall does not export symbols beginning with
22184 # underscore (_), so it is better to generate a list of symbols to export.
22185 always_export_symbols_GCJ=yes
22186 if test "$aix_use_runtimelinking" = yes; then
22187 # Warning - without using the other runtime loading flags (-brtl),
22188 # -berok will link without error, but may produce a broken library.
22189 allow_undefined_flag_GCJ='-berok'
22190 # Determine the default libpath from the value encoded in an empty executable.
22191 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022192/* confdefs.h. */
22193_ACEOF
22194cat confdefs.h >>conftest.$ac_ext
22195cat >>conftest.$ac_ext <<_ACEOF
22196/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022197
John Criswell47fdd832003-07-14 16:52:07 +000022198int
22199main ()
22200{
22201
22202 ;
22203 return 0;
22204}
22205_ACEOF
22206rm -f conftest.$ac_objext conftest$ac_exeext
22207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022208 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022209 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022215 { ac_try='test -z "$ac_c_werror_flag"
22216 || test ! -s conftest.err'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; } &&
22222 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; }; then
22228
22229aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22230}'`
22231# Check for a 64-bit object if we didn't find anything.
22232if 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; }
22233}'`; fi
22234else
22235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022236sed 's/^/| /' conftest.$ac_ext >&5
22237
John Criswell47fdd832003-07-14 16:52:07 +000022238fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022239rm -f conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022241if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22242
22243 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22244 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"
22245 else
22246 if test "$host_cpu" = ia64; then
22247 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22248 allow_undefined_flag_GCJ="-z nodefs"
22249 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"
22250 else
22251 # Determine the default libpath from the value encoded in an empty executable.
22252 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022253/* confdefs.h. */
22254_ACEOF
22255cat confdefs.h >>conftest.$ac_ext
22256cat >>conftest.$ac_ext <<_ACEOF
22257/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022258
John Criswell47fdd832003-07-14 16:52:07 +000022259int
22260main ()
22261{
22262
22263 ;
22264 return 0;
22265}
22266_ACEOF
22267rm -f conftest.$ac_objext conftest$ac_exeext
22268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022269 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022271 grep -v '^ *+' conftest.er1 >conftest.err
22272 rm -f conftest.er1
22273 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022276 { ac_try='test -z "$ac_c_werror_flag"
22277 || test ! -s conftest.err'
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; } &&
22283 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; }; then
22289
22290aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22291}'`
22292# Check for a 64-bit object if we didn't find anything.
22293if 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; }
22294}'`; fi
22295else
22296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022297sed 's/^/| /' conftest.$ac_ext >&5
22298
John Criswell47fdd832003-07-14 16:52:07 +000022299fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022300rm -f conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022302if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22303
22304 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22305 # Warning - without using the other run time loading flags,
22306 # -berok will link without error, but may produce a broken library.
22307 no_undefined_flag_GCJ=' ${wl}-bernotok'
22308 allow_undefined_flag_GCJ=' ${wl}-berok'
22309 # -bexpall does not export symbols beginning with underscore (_)
22310 always_export_symbols_GCJ=yes
22311 # Exported symbols can be pulled into shared objects from archives
22312 whole_archive_flag_spec_GCJ=' '
22313 archive_cmds_need_lc_GCJ=yes
22314 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022315 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 +000022316 fi
22317 fi
22318 ;;
22319
22320 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022321 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 +000022322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22323 hardcode_minus_L_GCJ=yes
22324 # see comment about different semantics on the GNU ld section
22325 ld_shlibs_GCJ=no
22326 ;;
22327
Reid Spencer2706f8c2004-09-19 23:53:36 +000022328 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022329 export_dynamic_flag_spec_GCJ=-rdynamic
22330 ;;
22331
22332 cygwin* | mingw* | pw32*)
22333 # When not using gcc, we currently assume that we are using
22334 # Microsoft Visual C++.
22335 # hardcode_libdir_flag_spec is actually meaningless, as there is
22336 # no search path for DLLs.
22337 hardcode_libdir_flag_spec_GCJ=' '
22338 allow_undefined_flag_GCJ=unsupported
22339 # Tell ltmain to make .lib files, not .a files.
22340 libext=lib
22341 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022342 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022343 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022344 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 +000022345 # The linker will automatically build a .lib file if we build a DLL.
22346 old_archive_From_new_cmds_GCJ='true'
22347 # FIXME: Should let the user specify the lib program.
22348 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22349 fix_srcfile_path='`cygpath -w "$srcfile"`'
22350 enable_shared_with_static_runtimes_GCJ=yes
22351 ;;
22352
22353 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022354 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022355 rhapsody* | darwin1.[012])
22356 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22357 ;;
22358 *) # Darwin 1.3 on
22359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22360 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22361 else
22362 case ${MACOSX_DEPLOYMENT_TARGET} in
22363 10.[012])
22364 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22365 ;;
22366 10.*)
22367 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22368 ;;
22369 esac
22370 fi
22371 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022372 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022373 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022374 hardcode_direct_GCJ=no
22375 hardcode_automatic_GCJ=yes
22376 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022377 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022378 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022379 if test "$GCC" = yes ; then
22380 output_verbose_link_cmd='echo'
22381 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22382 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22383 # 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 +000022384 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}'
22385 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 +000022386 else
22387 case "$cc_basename" in
22388 xlc*)
22389 output_verbose_link_cmd='echo'
22390 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22391 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22392 # 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 +000022393 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}'
22394 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 +000022395 ;;
22396 *)
22397 ld_shlibs_GCJ=no
22398 ;;
22399 esac
John Criswell47fdd832003-07-14 16:52:07 +000022400 fi
22401 ;;
22402
22403 dgux*)
22404 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22406 hardcode_shlibpath_var_GCJ=no
22407 ;;
22408
22409 freebsd1*)
22410 ld_shlibs_GCJ=no
22411 ;;
22412
22413 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22414 # support. Future versions do this automatically, but an explicit c++rt0.o
22415 # does not break anything, and helps significantly (at the cost of a little
22416 # extra space).
22417 freebsd2.2*)
22418 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22419 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22420 hardcode_direct_GCJ=yes
22421 hardcode_shlibpath_var_GCJ=no
22422 ;;
22423
22424 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22425 freebsd2*)
22426 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22427 hardcode_direct_GCJ=yes
22428 hardcode_minus_L_GCJ=yes
22429 hardcode_shlibpath_var_GCJ=no
22430 ;;
22431
22432 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022433 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022434 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22435 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22436 hardcode_direct_GCJ=yes
22437 hardcode_shlibpath_var_GCJ=no
22438 ;;
22439
22440 hpux9*)
22441 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022442 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 +000022443 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022444 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 +000022445 fi
22446 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22447 hardcode_libdir_separator_GCJ=:
22448 hardcode_direct_GCJ=yes
22449
22450 # hardcode_minus_L: Not really in the search PATH,
22451 # but as the default location of the library.
22452 hardcode_minus_L_GCJ=yes
22453 export_dynamic_flag_spec_GCJ='${wl}-E'
22454 ;;
22455
22456 hpux10* | hpux11*)
22457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22458 case "$host_cpu" in
22459 hppa*64*|ia64*)
22460 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461 ;;
22462 *)
22463 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22464 ;;
22465 esac
22466 else
22467 case "$host_cpu" in
22468 hppa*64*|ia64*)
22469 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22470 ;;
22471 *)
22472 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22473 ;;
22474 esac
22475 fi
22476 if test "$with_gnu_ld" = no; then
22477 case "$host_cpu" in
22478 hppa*64*)
22479 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22480 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22481 hardcode_libdir_separator_GCJ=:
22482 hardcode_direct_GCJ=no
22483 hardcode_shlibpath_var_GCJ=no
22484 ;;
22485 ia64*)
22486 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22487 hardcode_direct_GCJ=no
22488 hardcode_shlibpath_var_GCJ=no
22489
22490 # hardcode_minus_L: Not really in the search PATH,
22491 # but as the default location of the library.
22492 hardcode_minus_L_GCJ=yes
22493 ;;
22494 *)
22495 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22496 hardcode_libdir_separator_GCJ=:
22497 hardcode_direct_GCJ=yes
22498 export_dynamic_flag_spec_GCJ='${wl}-E'
22499
22500 # hardcode_minus_L: Not really in the search PATH,
22501 # but as the default location of the library.
22502 hardcode_minus_L_GCJ=yes
22503 ;;
22504 esac
22505 fi
22506 ;;
22507
22508 irix5* | irix6* | nonstopux*)
22509 if test "$GCC" = yes; then
22510 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'
22511 else
22512 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'
22513 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22514 fi
22515 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22516 hardcode_libdir_separator_GCJ=:
22517 link_all_deplibs_GCJ=yes
22518 ;;
22519
22520 netbsd*)
22521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22522 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22523 else
22524 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22525 fi
22526 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22527 hardcode_direct_GCJ=yes
22528 hardcode_shlibpath_var_GCJ=no
22529 ;;
22530
22531 newsos6)
22532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533 hardcode_direct_GCJ=yes
22534 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22535 hardcode_libdir_separator_GCJ=:
22536 hardcode_shlibpath_var_GCJ=no
22537 ;;
22538
22539 openbsd*)
22540 hardcode_direct_GCJ=yes
22541 hardcode_shlibpath_var_GCJ=no
22542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22543 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022544 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 +000022545 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22546 export_dynamic_flag_spec_GCJ='${wl}-E'
22547 else
22548 case $host_os in
22549 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22550 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22551 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22552 ;;
22553 *)
22554 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22556 ;;
22557 esac
22558 fi
22559 ;;
22560
22561 os2*)
22562 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22563 hardcode_minus_L_GCJ=yes
22564 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022565 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 +000022566 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22567 ;;
22568
22569 osf3*)
22570 if test "$GCC" = yes; then
22571 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22572 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'
22573 else
22574 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22575 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'
22576 fi
22577 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22578 hardcode_libdir_separator_GCJ=:
22579 ;;
22580
22581 osf4* | osf5*) # as osf3* with the addition of -msym flag
22582 if test "$GCC" = yes; then
22583 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22584 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'
22585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22586 else
22587 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22588 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 +000022589 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~
22590 $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'
22591
John Criswell47fdd832003-07-14 16:52:07 +000022592 # Both c and cxx compiler support -rpath directly
22593 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22594 fi
22595 hardcode_libdir_separator_GCJ=:
22596 ;;
22597
22598 sco3.2v5*)
22599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22600 hardcode_shlibpath_var_GCJ=no
22601 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22602 runpath_var=LD_RUN_PATH
22603 hardcode_runpath_var=yes
22604 ;;
22605
22606 solaris*)
22607 no_undefined_flag_GCJ=' -z text'
22608 if test "$GCC" = yes; then
22609 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022610 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22611 $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 +000022612 else
22613 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022614 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22615 $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 +000022616 fi
22617 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22618 hardcode_shlibpath_var_GCJ=no
22619 case $host_os in
22620 solaris2.[0-5] | solaris2.[0-5].*) ;;
22621 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22622 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22623 esac
22624 link_all_deplibs_GCJ=yes
22625 ;;
22626
22627 sunos4*)
22628 if test "x$host_vendor" = xsequent; then
22629 # Use $CC to link under sequent, because it throws in some extra .o
22630 # files that make .init and .fini sections work.
22631 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22632 else
22633 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22634 fi
22635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22636 hardcode_direct_GCJ=yes
22637 hardcode_minus_L_GCJ=yes
22638 hardcode_shlibpath_var_GCJ=no
22639 ;;
22640
22641 sysv4)
22642 case $host_vendor in
22643 sni)
22644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22645 hardcode_direct_GCJ=yes # is this really true???
22646 ;;
22647 siemens)
22648 ## LD is ld it makes a PLAMLIB
22649 ## CC just makes a GrossModule.
22650 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22651 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22652 hardcode_direct_GCJ=no
22653 ;;
22654 motorola)
22655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22656 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22657 ;;
22658 esac
22659 runpath_var='LD_RUN_PATH'
22660 hardcode_shlibpath_var_GCJ=no
22661 ;;
22662
22663 sysv4.3*)
22664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22665 hardcode_shlibpath_var_GCJ=no
22666 export_dynamic_flag_spec_GCJ='-Bexport'
22667 ;;
22668
22669 sysv4*MP*)
22670 if test -d /usr/nec; then
22671 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22672 hardcode_shlibpath_var_GCJ=no
22673 runpath_var=LD_RUN_PATH
22674 hardcode_runpath_var=yes
22675 ld_shlibs_GCJ=yes
22676 fi
22677 ;;
22678
22679 sysv4.2uw2*)
22680 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22681 hardcode_direct_GCJ=yes
22682 hardcode_minus_L_GCJ=no
22683 hardcode_shlibpath_var_GCJ=no
22684 hardcode_runpath_var=yes
22685 runpath_var=LD_RUN_PATH
22686 ;;
22687
22688 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22689 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22690 if test "$GCC" = yes; then
22691 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22692 else
22693 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22694 fi
22695 runpath_var='LD_RUN_PATH'
22696 hardcode_shlibpath_var_GCJ=no
22697 ;;
22698
22699 sysv5*)
22700 no_undefined_flag_GCJ=' -z text'
22701 # $CC -shared without GNU ld will not create a library from C++
22702 # object files and a static libstdc++, better avoid it by now
22703 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022704 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22705 $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 +000022706 hardcode_libdir_flag_spec_GCJ=
22707 hardcode_shlibpath_var_GCJ=no
22708 runpath_var='LD_RUN_PATH'
22709 ;;
22710
22711 uts4*)
22712 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22714 hardcode_shlibpath_var_GCJ=no
22715 ;;
22716
22717 *)
22718 ld_shlibs_GCJ=no
22719 ;;
22720 esac
22721 fi
22722
22723echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22724echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22725test "$ld_shlibs_GCJ" = no && can_build_shared=no
22726
22727variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22728if test "$GCC" = yes; then
22729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22730fi
22731
22732#
22733# Do we need to explicitly link libc?
22734#
22735case "x$archive_cmds_need_lc_GCJ" in
22736x|xyes)
22737 # Assume -lc should be added
22738 archive_cmds_need_lc_GCJ=yes
22739
22740 if test "$enable_shared" = yes && test "$GCC" = yes; then
22741 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022742 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022743 # FIXME: we may have to deal with multi-command sequences.
22744 ;;
22745 '$CC '*)
22746 # Test whether the compiler implicitly links with -lc since on some
22747 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22748 # to ld, don't add -lc before -lgcc.
22749 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22750echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22751 $rm conftest*
22752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22753
22754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22755 (eval $ac_compile) 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } 2>conftest.err; then
22759 soname=conftest
22760 lib=conftest
22761 libobjs=conftest.$ac_objext
22762 deplibs=
22763 wl=$lt_prog_compiler_wl_GCJ
22764 compiler_flags=-v
22765 linker_flags=-v
22766 verstring=
22767 output_objdir=.
22768 libname=conftest
22769 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22770 allow_undefined_flag_GCJ=
22771 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22772 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22773 ac_status=$?
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }
22776 then
22777 archive_cmds_need_lc_GCJ=no
22778 else
22779 archive_cmds_need_lc_GCJ=yes
22780 fi
22781 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22782 else
22783 cat conftest.err 1>&5
22784 fi
22785 $rm conftest*
22786 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22787echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22788 ;;
22789 esac
22790 fi
22791 ;;
22792esac
22793
John Criswell47fdd832003-07-14 16:52:07 +000022794echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22795echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22796library_names_spec=
22797libname_spec='lib$name'
22798soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022799shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022800postinstall_cmds=
22801postuninstall_cmds=
22802finish_cmds=
22803finish_eval=
22804shlibpath_var=
22805shlibpath_overrides_runpath=unknown
22806version_type=none
22807dynamic_linker="$host_os ld.so"
22808sys_lib_dlsearch_path_spec="/lib /usr/lib"
22809if test "$GCC" = yes; then
22810 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22811 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22812 # if the path contains ";" then we assume it to be the separator
22813 # otherwise default to the standard path separator (i.e. ":") - it is
22814 # assumed that no part of a normal pathname contains ";" but that should
22815 # okay in the real world where ";" in dirpaths is itself problematic.
22816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22817 else
22818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22819 fi
22820else
22821 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22822fi
22823need_lib_prefix=unknown
22824hardcode_into_libs=no
22825
22826# when you set need_version to no, make sure it does not cause -set_version
22827# flags to be left without arguments
22828need_version=unknown
22829
22830case $host_os in
22831aix3*)
22832 version_type=linux
22833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22834 shlibpath_var=LIBPATH
22835
22836 # AIX 3 has no versioning support, so we append a major version to the name.
22837 soname_spec='${libname}${release}${shared_ext}$major'
22838 ;;
22839
22840aix4* | aix5*)
22841 version_type=linux
22842 need_lib_prefix=no
22843 need_version=no
22844 hardcode_into_libs=yes
22845 if test "$host_cpu" = ia64; then
22846 # AIX 5 supports IA64
22847 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 else
22850 # With GCC up to 2.95.x, collect2 would create an import file
22851 # for dependence libraries. The import file would start with
22852 # the line `#! .'. This would cause the generated library to
22853 # depend on `.', always an invalid library. This was fixed in
22854 # development snapshots of GCC prior to 3.0.
22855 case $host_os in
22856 aix4 | aix4.[01] | aix4.[01].*)
22857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22858 echo ' yes '
22859 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22860 :
22861 else
22862 can_build_shared=no
22863 fi
22864 ;;
22865 esac
22866 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22867 # soname into executable. Probably we can add versioning support to
22868 # collect2, so additional links can be useful in future.
22869 if test "$aix_use_runtimelinking" = yes; then
22870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22871 # instead of lib<name>.a to let people know that these are not
22872 # typical AIX shared libraries.
22873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22874 else
22875 # We preserve .a as extension for shared libraries through AIX4.2
22876 # and later when we are not doing run time linking.
22877 library_names_spec='${libname}${release}.a $libname.a'
22878 soname_spec='${libname}${release}${shared_ext}$major'
22879 fi
22880 shlibpath_var=LIBPATH
22881 fi
22882 ;;
22883
22884amigaos*)
22885 library_names_spec='$libname.ixlibrary $libname.a'
22886 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022887 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 +000022888 ;;
22889
22890beos*)
22891 library_names_spec='${libname}${shared_ext}'
22892 dynamic_linker="$host_os ld.so"
22893 shlibpath_var=LIBRARY_PATH
22894 ;;
22895
Reid Spencer2706f8c2004-09-19 23:53:36 +000022896bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022897 version_type=linux
22898 need_version=no
22899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22900 soname_spec='${libname}${release}${shared_ext}$major'
22901 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22902 shlibpath_var=LD_LIBRARY_PATH
22903 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22904 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22905 # the default ld.so.conf also contains /usr/contrib/lib and
22906 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22907 # libtool to hard-code these into programs
22908 ;;
22909
22910cygwin* | mingw* | pw32*)
22911 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022912 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022913 need_version=no
22914 need_lib_prefix=no
22915
22916 case $GCC,$host_os in
22917 yes,cygwin* | yes,mingw* | yes,pw32*)
22918 library_names_spec='$libname.dll.a'
22919 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022920 postinstall_cmds='base_file=`basename \${file}`~
22921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22922 dldir=$destdir/`dirname \$dlpath`~
22923 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022924 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22926 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022927 $rm \$dlpath'
22928 shlibpath_overrides_runpath=yes
22929
22930 case $host_os in
22931 cygwin*)
22932 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22933 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 +000022934 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022935 ;;
22936 mingw*)
22937 # MinGW DLLs use traditional 'lib' prefix
22938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22940 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22941 # It is most probably a Windows format PATH printed by
22942 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22943 # path with ; separators, and with drive letters. We can handle the
22944 # drive letters (cygwin fileutils understands them), so leave them,
22945 # especially as we might pass files found there to a mingw objdump,
22946 # which wouldn't understand a cygwinified path. Ahh.
22947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22948 else
22949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22950 fi
22951 ;;
22952 pw32*)
22953 # pw32 DLLs use 'pw' prefix rather than 'lib'
22954 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22955 ;;
22956 esac
22957 ;;
22958
22959 *)
22960 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22961 ;;
22962 esac
22963 dynamic_linker='Win32 ld.exe'
22964 # FIXME: first we should search . and the directory the executable is in
22965 shlibpath_var=PATH
22966 ;;
22967
22968darwin* | rhapsody*)
22969 dynamic_linker="$host_os dyld"
22970 version_type=darwin
22971 need_lib_prefix=no
22972 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022973 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022974 soname_spec='${libname}${release}${major}$shared_ext'
22975 shlibpath_overrides_runpath=yes
22976 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022977 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022978 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022979 if test "$GCC" = yes; then
22980 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"`
22981 else
22982 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022983 fi
22984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22985 ;;
22986
22987dgux*)
22988 version_type=linux
22989 need_lib_prefix=no
22990 need_version=no
22991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22992 soname_spec='${libname}${release}${shared_ext}$major'
22993 shlibpath_var=LD_LIBRARY_PATH
22994 ;;
22995
22996freebsd1*)
22997 dynamic_linker=no
22998 ;;
22999
Reid Spencer2706f8c2004-09-19 23:53:36 +000023000kfreebsd*-gnu)
23001 version_type=linux
23002 need_lib_prefix=no
23003 need_version=no
23004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23005 soname_spec='${libname}${release}${shared_ext}$major'
23006 shlibpath_var=LD_LIBRARY_PATH
23007 shlibpath_overrides_runpath=no
23008 hardcode_into_libs=yes
23009 dynamic_linker='GNU ld.so'
23010 ;;
23011
John Criswell47fdd832003-07-14 16:52:07 +000023012freebsd*)
23013 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23014 version_type=freebsd-$objformat
23015 case $version_type in
23016 freebsd-elf*)
23017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23018 need_version=no
23019 need_lib_prefix=no
23020 ;;
23021 freebsd-*)
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23023 need_version=yes
23024 ;;
23025 esac
23026 shlibpath_var=LD_LIBRARY_PATH
23027 case $host_os in
23028 freebsd2*)
23029 shlibpath_overrides_runpath=yes
23030 ;;
23031 freebsd3.01* | freebsdelf3.01*)
23032 shlibpath_overrides_runpath=yes
23033 hardcode_into_libs=yes
23034 ;;
23035 *) # from 3.2 on
23036 shlibpath_overrides_runpath=no
23037 hardcode_into_libs=yes
23038 ;;
23039 esac
23040 ;;
23041
23042gnu*)
23043 version_type=linux
23044 need_lib_prefix=no
23045 need_version=no
23046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23047 soname_spec='${libname}${release}${shared_ext}$major'
23048 shlibpath_var=LD_LIBRARY_PATH
23049 hardcode_into_libs=yes
23050 ;;
23051
23052hpux9* | hpux10* | hpux11*)
23053 # Give a soname corresponding to the major version so that dld.sl refuses to
23054 # link against other versions.
23055 version_type=sunos
23056 need_lib_prefix=no
23057 need_version=no
23058 case "$host_cpu" in
23059 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023060 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023061 hardcode_into_libs=yes
23062 dynamic_linker="$host_os dld.so"
23063 shlibpath_var=LD_LIBRARY_PATH
23064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066 soname_spec='${libname}${release}${shared_ext}$major'
23067 if test "X$HPUX_IA64_MODE" = X32; then
23068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23069 else
23070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23071 fi
23072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23073 ;;
23074 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023075 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023076 hardcode_into_libs=yes
23077 dynamic_linker="$host_os dld.sl"
23078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081 soname_spec='${libname}${release}${shared_ext}$major'
23082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23084 ;;
23085 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023086 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023087 dynamic_linker="$host_os dld.sl"
23088 shlibpath_var=SHLIB_PATH
23089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23091 soname_spec='${libname}${release}${shared_ext}$major'
23092 ;;
23093 esac
23094 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23095 postinstall_cmds='chmod 555 $lib'
23096 ;;
23097
23098irix5* | irix6* | nonstopux*)
23099 case $host_os in
23100 nonstopux*) version_type=nonstopux ;;
23101 *)
23102 if test "$lt_cv_prog_gnu_ld" = yes; then
23103 version_type=linux
23104 else
23105 version_type=irix
23106 fi ;;
23107 esac
23108 need_lib_prefix=no
23109 need_version=no
23110 soname_spec='${libname}${release}${shared_ext}$major'
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23112 case $host_os in
23113 irix5* | nonstopux*)
23114 libsuff= shlibsuff=
23115 ;;
23116 *)
23117 case $LD in # libtool.m4 will add one of these switches to LD
23118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23119 libsuff= shlibsuff= libmagic=32-bit;;
23120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23121 libsuff=32 shlibsuff=N32 libmagic=N32;;
23122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23124 *) libsuff= shlibsuff= libmagic=never-match;;
23125 esac
23126 ;;
23127 esac
23128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23129 shlibpath_overrides_runpath=no
23130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23132 hardcode_into_libs=yes
23133 ;;
23134
23135# No shared lib support for Linux oldld, aout, or coff.
23136linux*oldld* | linux*aout* | linux*coff*)
23137 dynamic_linker=no
23138 ;;
23139
23140# This must be Linux ELF.
23141linux*)
23142 version_type=linux
23143 need_lib_prefix=no
23144 need_version=no
23145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23146 soname_spec='${libname}${release}${shared_ext}$major'
23147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23148 shlibpath_var=LD_LIBRARY_PATH
23149 shlibpath_overrides_runpath=no
23150 # This implies no fast_install, which is unacceptable.
23151 # Some rework will be needed to allow for fast_install
23152 # before this can be enabled.
23153 hardcode_into_libs=yes
23154
Reid Spencer2706f8c2004-09-19 23:53:36 +000023155 # Append ld.so.conf contents to the search path
23156 if test -f /etc/ld.so.conf; then
23157 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23159 fi
23160
John Criswell47fdd832003-07-14 16:52:07 +000023161 # We used to test for /lib/ld.so.1 and disable shared libraries on
23162 # powerpc, because MkLinux only supported shared libraries with the
23163 # GNU dynamic linker. Since this was broken with cross compilers,
23164 # most powerpc-linux boxes support dynamic linking these days and
23165 # people can always --disable-shared, the test was removed, and we
23166 # assume the GNU/Linux dynamic linker is in use.
23167 dynamic_linker='GNU/Linux ld.so'
23168 ;;
23169
Reid Spencer2706f8c2004-09-19 23:53:36 +000023170knetbsd*-gnu)
23171 version_type=linux
23172 need_lib_prefix=no
23173 need_version=no
23174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23175 soname_spec='${libname}${release}${shared_ext}$major'
23176 shlibpath_var=LD_LIBRARY_PATH
23177 shlibpath_overrides_runpath=no
23178 hardcode_into_libs=yes
23179 dynamic_linker='GNU ld.so'
23180 ;;
23181
John Criswell47fdd832003-07-14 16:52:07 +000023182netbsd*)
23183 version_type=sunos
23184 need_lib_prefix=no
23185 need_version=no
23186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23189 dynamic_linker='NetBSD (a.out) ld.so'
23190 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023192 soname_spec='${libname}${release}${shared_ext}$major'
23193 dynamic_linker='NetBSD ld.elf_so'
23194 fi
23195 shlibpath_var=LD_LIBRARY_PATH
23196 shlibpath_overrides_runpath=yes
23197 hardcode_into_libs=yes
23198 ;;
23199
23200newsos6)
23201 version_type=linux
23202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23203 shlibpath_var=LD_LIBRARY_PATH
23204 shlibpath_overrides_runpath=yes
23205 ;;
23206
Reid Spencer2706f8c2004-09-19 23:53:36 +000023207nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023208 version_type=linux
23209 need_lib_prefix=no
23210 need_version=no
23211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23212 soname_spec='${libname}${release}${shared_ext}$major'
23213 shlibpath_var=LD_LIBRARY_PATH
23214 shlibpath_overrides_runpath=yes
23215 ;;
23216
23217openbsd*)
23218 version_type=sunos
23219 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000023220 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000023221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23223 shlibpath_var=LD_LIBRARY_PATH
23224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23225 case $host_os in
23226 openbsd2.[89] | openbsd2.[89].*)
23227 shlibpath_overrides_runpath=no
23228 ;;
23229 *)
23230 shlibpath_overrides_runpath=yes
23231 ;;
23232 esac
23233 else
23234 shlibpath_overrides_runpath=yes
23235 fi
23236 ;;
23237
23238os2*)
23239 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023240 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023241 need_lib_prefix=no
23242 library_names_spec='$libname${shared_ext} $libname.a'
23243 dynamic_linker='OS/2 ld.exe'
23244 shlibpath_var=LIBPATH
23245 ;;
23246
23247osf3* | osf4* | osf5*)
23248 version_type=osf
23249 need_lib_prefix=no
23250 need_version=no
23251 soname_spec='${libname}${release}${shared_ext}$major'
23252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23253 shlibpath_var=LD_LIBRARY_PATH
23254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23256 ;;
23257
23258sco3.2v5*)
23259 version_type=osf
23260 soname_spec='${libname}${release}${shared_ext}$major'
23261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23262 shlibpath_var=LD_LIBRARY_PATH
23263 ;;
23264
23265solaris*)
23266 version_type=linux
23267 need_lib_prefix=no
23268 need_version=no
23269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23270 soname_spec='${libname}${release}${shared_ext}$major'
23271 shlibpath_var=LD_LIBRARY_PATH
23272 shlibpath_overrides_runpath=yes
23273 hardcode_into_libs=yes
23274 # ldd complains unless libraries are executable
23275 postinstall_cmds='chmod +x $lib'
23276 ;;
23277
23278sunos4*)
23279 version_type=sunos
23280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23282 shlibpath_var=LD_LIBRARY_PATH
23283 shlibpath_overrides_runpath=yes
23284 if test "$with_gnu_ld" = yes; then
23285 need_lib_prefix=no
23286 fi
23287 need_version=yes
23288 ;;
23289
23290sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23291 version_type=linux
23292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23293 soname_spec='${libname}${release}${shared_ext}$major'
23294 shlibpath_var=LD_LIBRARY_PATH
23295 case $host_vendor in
23296 sni)
23297 shlibpath_overrides_runpath=no
23298 need_lib_prefix=no
23299 export_dynamic_flag_spec='${wl}-Blargedynsym'
23300 runpath_var=LD_RUN_PATH
23301 ;;
23302 siemens)
23303 need_lib_prefix=no
23304 ;;
23305 motorola)
23306 need_lib_prefix=no
23307 need_version=no
23308 shlibpath_overrides_runpath=no
23309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23310 ;;
23311 esac
23312 ;;
23313
23314sysv4*MP*)
23315 if test -d /usr/nec ;then
23316 version_type=linux
23317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23318 soname_spec='$libname${shared_ext}.$major'
23319 shlibpath_var=LD_LIBRARY_PATH
23320 fi
23321 ;;
23322
23323uts4*)
23324 version_type=linux
23325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326 soname_spec='${libname}${release}${shared_ext}$major'
23327 shlibpath_var=LD_LIBRARY_PATH
23328 ;;
23329
23330*)
23331 dynamic_linker=no
23332 ;;
23333esac
23334echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23335echo "${ECHO_T}$dynamic_linker" >&6
23336test "$dynamic_linker" = no && can_build_shared=no
23337
Reid Spencer2706f8c2004-09-19 23:53:36 +000023338echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23339echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23340hardcode_action_GCJ=
23341if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23342 test -n "$runpath_var_GCJ" || \
23343 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23344
23345 # We can hardcode non-existant directories.
23346 if test "$hardcode_direct_GCJ" != no &&
23347 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23348 # have to relink, otherwise we might link with an installed library
23349 # when we should be linking with a yet-to-be-installed one
23350 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23351 test "$hardcode_minus_L_GCJ" != no; then
23352 # Linking always hardcodes the temporary library directory.
23353 hardcode_action_GCJ=relink
23354 else
23355 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23356 hardcode_action_GCJ=immediate
23357 fi
23358else
23359 # We cannot hardcode anything, or else we can only hardcode existing
23360 # directories.
23361 hardcode_action_GCJ=unsupported
23362fi
23363echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23364echo "${ECHO_T}$hardcode_action_GCJ" >&6
23365
23366if test "$hardcode_action_GCJ" = relink; then
23367 # Fast installation is not supported
23368 enable_fast_install=no
23369elif test "$shlibpath_overrides_runpath" = yes ||
23370 test "$enable_shared" = no; then
23371 # Fast installation is not necessary
23372 enable_fast_install=needless
23373fi
23374
23375striplib=
23376old_striplib=
23377echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23378echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23379if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23380 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23381 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23382 echo "$as_me:$LINENO: result: yes" >&5
23383echo "${ECHO_T}yes" >&6
23384else
23385# FIXME - insert some real tests, host_os isn't really good enough
23386 case $host_os in
23387 darwin*)
23388 if test -n "$STRIP" ; then
23389 striplib="$STRIP -x"
23390 echo "$as_me:$LINENO: result: yes" >&5
23391echo "${ECHO_T}yes" >&6
23392 else
23393 echo "$as_me:$LINENO: result: no" >&5
23394echo "${ECHO_T}no" >&6
23395fi
23396 ;;
23397 *)
23398 echo "$as_me:$LINENO: result: no" >&5
23399echo "${ECHO_T}no" >&6
23400 ;;
23401 esac
23402fi
23403
John Criswell47fdd832003-07-14 16:52:07 +000023404if test "x$enable_dlopen" != xyes; then
23405 enable_dlopen=unknown
23406 enable_dlopen_self=unknown
23407 enable_dlopen_self_static=unknown
23408else
23409 lt_cv_dlopen=no
23410 lt_cv_dlopen_libs=
23411
23412 case $host_os in
23413 beos*)
23414 lt_cv_dlopen="load_add_on"
23415 lt_cv_dlopen_libs=
23416 lt_cv_dlopen_self=yes
23417 ;;
23418
23419 mingw* | pw32*)
23420 lt_cv_dlopen="LoadLibrary"
23421 lt_cv_dlopen_libs=
23422 ;;
23423
23424 cygwin*)
23425 lt_cv_dlopen="dlopen"
23426 lt_cv_dlopen_libs=
23427 ;;
23428
23429 darwin*)
23430 # if libdl is installed we need to link against it
23431 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23432echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23433if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23435else
23436 ac_check_lib_save_LIBS=$LIBS
23437LIBS="-ldl $LIBS"
23438cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023439/* confdefs.h. */
23440_ACEOF
23441cat confdefs.h >>conftest.$ac_ext
23442cat >>conftest.$ac_ext <<_ACEOF
23443/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023444
23445/* Override any gcc2 internal prototype to avoid an error. */
23446#ifdef __cplusplus
23447extern "C"
23448#endif
23449/* We use char because int might match the return type of a gcc2
23450 builtin and then its argument prototype would still apply. */
23451char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023452int
23453main ()
23454{
23455dlopen ();
23456 ;
23457 return 0;
23458}
23459_ACEOF
23460rm -f conftest.$ac_objext conftest$ac_exeext
23461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023462 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023463 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023469 { ac_try='test -z "$ac_c_werror_flag"
23470 || test ! -s conftest.err'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23473 ac_status=$?
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; } &&
23476 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 ac_cv_lib_dl_dlopen=yes
23483else
23484 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023485sed 's/^/| /' conftest.$ac_ext >&5
23486
John Criswell47fdd832003-07-14 16:52:07 +000023487ac_cv_lib_dl_dlopen=no
23488fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023489rm -f conftest.err conftest.$ac_objext \
23490 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023491LIBS=$ac_check_lib_save_LIBS
23492fi
23493echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23494echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23495if test $ac_cv_lib_dl_dlopen = yes; then
23496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23497else
23498
23499 lt_cv_dlopen="dyld"
23500 lt_cv_dlopen_libs=
23501 lt_cv_dlopen_self=yes
23502
23503fi
23504
23505 ;;
23506
23507 *)
23508 echo "$as_me:$LINENO: checking for shl_load" >&5
23509echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23510if test "${ac_cv_func_shl_load+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23512else
23513 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023519/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23521#define shl_load innocuous_shl_load
23522
John Criswell47fdd832003-07-14 16:52:07 +000023523/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023524 which can conflict with char shl_load (); below.
23525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23526 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023527
John Criswell0c38eaf2003-09-10 15:17:25 +000023528#ifdef __STDC__
23529# include <limits.h>
23530#else
23531# include <assert.h>
23532#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023533
23534#undef shl_load
23535
John Criswell47fdd832003-07-14 16:52:07 +000023536/* Override any gcc2 internal prototype to avoid an error. */
23537#ifdef __cplusplus
23538extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023539{
John Criswell47fdd832003-07-14 16:52:07 +000023540#endif
23541/* We use char because int might match the return type of a gcc2
23542 builtin and then its argument prototype would still apply. */
23543char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023544/* The GNU C library defines this for functions which it implements
23545 to always fail with ENOSYS. Some functions are actually named
23546 something starting with __ and the normal name is an alias. */
23547#if defined (__stub_shl_load) || defined (__stub___shl_load)
23548choke me
23549#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023550char (*f) () = shl_load;
23551#endif
23552#ifdef __cplusplus
23553}
John Criswell47fdd832003-07-14 16:52:07 +000023554#endif
23555
John Criswell0c38eaf2003-09-10 15:17:25 +000023556int
23557main ()
23558{
23559return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023560 ;
23561 return 0;
23562}
23563_ACEOF
23564rm -f conftest.$ac_objext conftest$ac_exeext
23565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023566 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023573 { ac_try='test -z "$ac_c_werror_flag"
23574 || test ! -s conftest.err'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; } &&
23580 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 ac_cv_func_shl_load=yes
23587else
23588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023589sed 's/^/| /' conftest.$ac_ext >&5
23590
John Criswell47fdd832003-07-14 16:52:07 +000023591ac_cv_func_shl_load=no
23592fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023593rm -f conftest.err conftest.$ac_objext \
23594 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023595fi
23596echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23597echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23598if test $ac_cv_func_shl_load = yes; then
23599 lt_cv_dlopen="shl_load"
23600else
23601 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23602echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23603if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23605else
23606 ac_check_lib_save_LIBS=$LIBS
23607LIBS="-ldld $LIBS"
23608cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023609/* confdefs.h. */
23610_ACEOF
23611cat confdefs.h >>conftest.$ac_ext
23612cat >>conftest.$ac_ext <<_ACEOF
23613/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023614
23615/* Override any gcc2 internal prototype to avoid an error. */
23616#ifdef __cplusplus
23617extern "C"
23618#endif
23619/* We use char because int might match the return type of a gcc2
23620 builtin and then its argument prototype would still apply. */
23621char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023622int
23623main ()
23624{
23625shl_load ();
23626 ;
23627 return 0;
23628}
23629_ACEOF
23630rm -f conftest.$ac_objext conftest$ac_exeext
23631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023632 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023633 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023634 grep -v '^ *+' conftest.er1 >conftest.err
23635 rm -f conftest.er1
23636 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023639 { ac_try='test -z "$ac_c_werror_flag"
23640 || test ! -s conftest.err'
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; } &&
23646 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648 (eval $ac_try) 2>&5
23649 ac_status=$?
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); }; }; then
23652 ac_cv_lib_dld_shl_load=yes
23653else
23654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023655sed 's/^/| /' conftest.$ac_ext >&5
23656
John Criswell47fdd832003-07-14 16:52:07 +000023657ac_cv_lib_dld_shl_load=no
23658fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023659rm -f conftest.err conftest.$ac_objext \
23660 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023661LIBS=$ac_check_lib_save_LIBS
23662fi
23663echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23664echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23665if test $ac_cv_lib_dld_shl_load = yes; then
23666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23667else
23668 echo "$as_me:$LINENO: checking for dlopen" >&5
23669echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23670if test "${ac_cv_func_dlopen+set}" = set; then
23671 echo $ECHO_N "(cached) $ECHO_C" >&6
23672else
23673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023674/* confdefs.h. */
23675_ACEOF
23676cat confdefs.h >>conftest.$ac_ext
23677cat >>conftest.$ac_ext <<_ACEOF
23678/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023679/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23681#define dlopen innocuous_dlopen
23682
John Criswell47fdd832003-07-14 16:52:07 +000023683/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023684 which can conflict with char dlopen (); below.
23685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23686 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023687
John Criswell0c38eaf2003-09-10 15:17:25 +000023688#ifdef __STDC__
23689# include <limits.h>
23690#else
23691# include <assert.h>
23692#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023693
23694#undef dlopen
23695
John Criswell47fdd832003-07-14 16:52:07 +000023696/* Override any gcc2 internal prototype to avoid an error. */
23697#ifdef __cplusplus
23698extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023699{
John Criswell47fdd832003-07-14 16:52:07 +000023700#endif
23701/* We use char because int might match the return type of a gcc2
23702 builtin and then its argument prototype would still apply. */
23703char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023704/* The GNU C library defines this for functions which it implements
23705 to always fail with ENOSYS. Some functions are actually named
23706 something starting with __ and the normal name is an alias. */
23707#if defined (__stub_dlopen) || defined (__stub___dlopen)
23708choke me
23709#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023710char (*f) () = dlopen;
23711#endif
23712#ifdef __cplusplus
23713}
John Criswell47fdd832003-07-14 16:52:07 +000023714#endif
23715
John Criswell0c38eaf2003-09-10 15:17:25 +000023716int
23717main ()
23718{
23719return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023720 ;
23721 return 0;
23722}
23723_ACEOF
23724rm -f conftest.$ac_objext conftest$ac_exeext
23725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023726 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023727 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023728 grep -v '^ *+' conftest.er1 >conftest.err
23729 rm -f conftest.er1
23730 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023733 { ac_try='test -z "$ac_c_werror_flag"
23734 || test ! -s conftest.err'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23746 ac_cv_func_dlopen=yes
23747else
23748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023749sed 's/^/| /' conftest.$ac_ext >&5
23750
John Criswell47fdd832003-07-14 16:52:07 +000023751ac_cv_func_dlopen=no
23752fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023753rm -f conftest.err conftest.$ac_objext \
23754 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023755fi
23756echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23757echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23758if test $ac_cv_func_dlopen = yes; then
23759 lt_cv_dlopen="dlopen"
23760else
23761 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23762echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23763if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23765else
23766 ac_check_lib_save_LIBS=$LIBS
23767LIBS="-ldl $LIBS"
23768cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023769/* confdefs.h. */
23770_ACEOF
23771cat confdefs.h >>conftest.$ac_ext
23772cat >>conftest.$ac_ext <<_ACEOF
23773/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023774
23775/* Override any gcc2 internal prototype to avoid an error. */
23776#ifdef __cplusplus
23777extern "C"
23778#endif
23779/* We use char because int might match the return type of a gcc2
23780 builtin and then its argument prototype would still apply. */
23781char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023782int
23783main ()
23784{
23785dlopen ();
23786 ;
23787 return 0;
23788}
23789_ACEOF
23790rm -f conftest.$ac_objext conftest$ac_exeext
23791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023792 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023793 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023794 grep -v '^ *+' conftest.er1 >conftest.err
23795 rm -f conftest.er1
23796 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023799 { ac_try='test -z "$ac_c_werror_flag"
23800 || test ! -s conftest.err'
23801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23803 ac_status=$?
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; } &&
23806 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23809 ac_status=$?
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ac_cv_lib_dl_dlopen=yes
23813else
23814 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023815sed 's/^/| /' conftest.$ac_ext >&5
23816
John Criswell47fdd832003-07-14 16:52:07 +000023817ac_cv_lib_dl_dlopen=no
23818fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023819rm -f conftest.err conftest.$ac_objext \
23820 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023821LIBS=$ac_check_lib_save_LIBS
23822fi
23823echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23824echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23825if test $ac_cv_lib_dl_dlopen = yes; then
23826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23827else
23828 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23829echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23830if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23831 echo $ECHO_N "(cached) $ECHO_C" >&6
23832else
23833 ac_check_lib_save_LIBS=$LIBS
23834LIBS="-lsvld $LIBS"
23835cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023836/* confdefs.h. */
23837_ACEOF
23838cat confdefs.h >>conftest.$ac_ext
23839cat >>conftest.$ac_ext <<_ACEOF
23840/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023841
23842/* Override any gcc2 internal prototype to avoid an error. */
23843#ifdef __cplusplus
23844extern "C"
23845#endif
23846/* We use char because int might match the return type of a gcc2
23847 builtin and then its argument prototype would still apply. */
23848char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023849int
23850main ()
23851{
23852dlopen ();
23853 ;
23854 return 0;
23855}
23856_ACEOF
23857rm -f conftest.$ac_objext conftest$ac_exeext
23858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023859 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023860 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023861 grep -v '^ *+' conftest.er1 >conftest.err
23862 rm -f conftest.er1
23863 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023866 { ac_try='test -z "$ac_c_werror_flag"
23867 || test ! -s conftest.err'
23868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869 (eval $ac_try) 2>&5
23870 ac_status=$?
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; } &&
23873 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; }; then
23879 ac_cv_lib_svld_dlopen=yes
23880else
23881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023882sed 's/^/| /' conftest.$ac_ext >&5
23883
John Criswell47fdd832003-07-14 16:52:07 +000023884ac_cv_lib_svld_dlopen=no
23885fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023886rm -f conftest.err conftest.$ac_objext \
23887 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023888LIBS=$ac_check_lib_save_LIBS
23889fi
23890echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23891echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23892if test $ac_cv_lib_svld_dlopen = yes; then
23893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23894else
23895 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23896echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23897if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23899else
23900 ac_check_lib_save_LIBS=$LIBS
23901LIBS="-ldld $LIBS"
23902cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023903/* confdefs.h. */
23904_ACEOF
23905cat confdefs.h >>conftest.$ac_ext
23906cat >>conftest.$ac_ext <<_ACEOF
23907/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023908
23909/* Override any gcc2 internal prototype to avoid an error. */
23910#ifdef __cplusplus
23911extern "C"
23912#endif
23913/* We use char because int might match the return type of a gcc2
23914 builtin and then its argument prototype would still apply. */
23915char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023916int
23917main ()
23918{
23919dld_link ();
23920 ;
23921 return 0;
23922}
23923_ACEOF
23924rm -f conftest.$ac_objext conftest$ac_exeext
23925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023926 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023927 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023928 grep -v '^ *+' conftest.er1 >conftest.err
23929 rm -f conftest.er1
23930 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023933 { ac_try='test -z "$ac_c_werror_flag"
23934 || test ! -s conftest.err'
23935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936 (eval $ac_try) 2>&5
23937 ac_status=$?
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; } &&
23940 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942 (eval $ac_try) 2>&5
23943 ac_status=$?
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; }; then
23946 ac_cv_lib_dld_dld_link=yes
23947else
23948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023949sed 's/^/| /' conftest.$ac_ext >&5
23950
John Criswell47fdd832003-07-14 16:52:07 +000023951ac_cv_lib_dld_dld_link=no
23952fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023953rm -f conftest.err conftest.$ac_objext \
23954 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023955LIBS=$ac_check_lib_save_LIBS
23956fi
23957echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23958echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23959if test $ac_cv_lib_dld_dld_link = yes; then
23960 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23961fi
23962
23963
23964fi
23965
23966
23967fi
23968
23969
23970fi
23971
23972
23973fi
23974
23975
23976fi
23977
23978 ;;
23979 esac
23980
23981 if test "x$lt_cv_dlopen" != xno; then
23982 enable_dlopen=yes
23983 else
23984 enable_dlopen=no
23985 fi
23986
23987 case $lt_cv_dlopen in
23988 dlopen)
23989 save_CPPFLAGS="$CPPFLAGS"
23990 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23991
23992 save_LDFLAGS="$LDFLAGS"
23993 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23994
23995 save_LIBS="$LIBS"
23996 LIBS="$lt_cv_dlopen_libs $LIBS"
23997
23998 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23999echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24000if test "${lt_cv_dlopen_self+set}" = set; then
24001 echo $ECHO_N "(cached) $ECHO_C" >&6
24002else
24003 if test "$cross_compiling" = yes; then :
24004 lt_cv_dlopen_self=cross
24005else
24006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24007 lt_status=$lt_dlunknown
24008 cat > conftest.$ac_ext <<EOF
Reid Spencer1bc68642006-07-27 23:00:30 +000024009#line 24009 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000024010#include "confdefs.h"
24011
24012#if HAVE_DLFCN_H
24013#include <dlfcn.h>
24014#endif
24015
24016#include <stdio.h>
24017
24018#ifdef RTLD_GLOBAL
24019# define LT_DLGLOBAL RTLD_GLOBAL
24020#else
24021# ifdef DL_GLOBAL
24022# define LT_DLGLOBAL DL_GLOBAL
24023# else
24024# define LT_DLGLOBAL 0
24025# endif
24026#endif
24027
24028/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24029 find out it does not work in some platform. */
24030#ifndef LT_DLLAZY_OR_NOW
24031# ifdef RTLD_LAZY
24032# define LT_DLLAZY_OR_NOW RTLD_LAZY
24033# else
24034# ifdef DL_LAZY
24035# define LT_DLLAZY_OR_NOW DL_LAZY
24036# else
24037# ifdef RTLD_NOW
24038# define LT_DLLAZY_OR_NOW RTLD_NOW
24039# else
24040# ifdef DL_NOW
24041# define LT_DLLAZY_OR_NOW DL_NOW
24042# else
24043# define LT_DLLAZY_OR_NOW 0
24044# endif
24045# endif
24046# endif
24047# endif
24048#endif
24049
24050#ifdef __cplusplus
24051extern "C" void exit (int);
24052#endif
24053
24054void fnord() { int i=42;}
24055int main ()
24056{
24057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24058 int status = $lt_dlunknown;
24059
24060 if (self)
24061 {
24062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24063 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24064 /* dlclose (self); */
24065 }
24066
24067 exit (status);
24068}
24069EOF
24070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24071 (eval $ac_link) 2>&5
24072 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24075 (./conftest; exit; ) 2>/dev/null
24076 lt_status=$?
24077 case x$lt_status in
24078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24080 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24081 esac
24082 else :
24083 # compilation failed
24084 lt_cv_dlopen_self=no
24085 fi
24086fi
24087rm -fr conftest*
24088
24089
24090fi
24091echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24092echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24093
24094 if test "x$lt_cv_dlopen_self" = xyes; then
24095 LDFLAGS="$LDFLAGS $link_static_flag"
24096 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24097echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24098if test "${lt_cv_dlopen_self_static+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100else
24101 if test "$cross_compiling" = yes; then :
24102 lt_cv_dlopen_self_static=cross
24103else
24104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24105 lt_status=$lt_dlunknown
24106 cat > conftest.$ac_ext <<EOF
Reid Spencer1bc68642006-07-27 23:00:30 +000024107#line 24107 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000024108#include "confdefs.h"
24109
24110#if HAVE_DLFCN_H
24111#include <dlfcn.h>
24112#endif
24113
24114#include <stdio.h>
24115
24116#ifdef RTLD_GLOBAL
24117# define LT_DLGLOBAL RTLD_GLOBAL
24118#else
24119# ifdef DL_GLOBAL
24120# define LT_DLGLOBAL DL_GLOBAL
24121# else
24122# define LT_DLGLOBAL 0
24123# endif
24124#endif
24125
24126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24127 find out it does not work in some platform. */
24128#ifndef LT_DLLAZY_OR_NOW
24129# ifdef RTLD_LAZY
24130# define LT_DLLAZY_OR_NOW RTLD_LAZY
24131# else
24132# ifdef DL_LAZY
24133# define LT_DLLAZY_OR_NOW DL_LAZY
24134# else
24135# ifdef RTLD_NOW
24136# define LT_DLLAZY_OR_NOW RTLD_NOW
24137# else
24138# ifdef DL_NOW
24139# define LT_DLLAZY_OR_NOW DL_NOW
24140# else
24141# define LT_DLLAZY_OR_NOW 0
24142# endif
24143# endif
24144# endif
24145# endif
24146#endif
24147
24148#ifdef __cplusplus
24149extern "C" void exit (int);
24150#endif
24151
24152void fnord() { int i=42;}
24153int main ()
24154{
24155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24156 int status = $lt_dlunknown;
24157
24158 if (self)
24159 {
24160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24161 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24162 /* dlclose (self); */
24163 }
24164
24165 exit (status);
24166}
24167EOF
24168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24169 (eval $ac_link) 2>&5
24170 ac_status=$?
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24173 (./conftest; exit; ) 2>/dev/null
24174 lt_status=$?
24175 case x$lt_status in
24176 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24177 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24178 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24179 esac
24180 else :
24181 # compilation failed
24182 lt_cv_dlopen_self_static=no
24183 fi
24184fi
24185rm -fr conftest*
24186
24187
24188fi
24189echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24190echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24191 fi
24192
24193 CPPFLAGS="$save_CPPFLAGS"
24194 LDFLAGS="$save_LDFLAGS"
24195 LIBS="$save_LIBS"
24196 ;;
24197 esac
24198
24199 case $lt_cv_dlopen_self in
24200 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24201 *) enable_dlopen_self=unknown ;;
24202 esac
24203
24204 case $lt_cv_dlopen_self_static in
24205 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24206 *) enable_dlopen_self_static=unknown ;;
24207 esac
24208fi
24209
24210
24211# The else clause should only fire when bootstrapping the
24212# libtool distribution, otherwise you forgot to ship ltmain.sh
24213# with your package, and you will get complaints that there are
24214# no rules to generate ltmain.sh.
24215if test -f "$ltmain"; then
24216 # See if we are running on zsh, and set the options which allow our commands through
24217 # without removal of \ escapes.
24218 if test -n "${ZSH_VERSION+set}" ; then
24219 setopt NO_GLOB_SUBST
24220 fi
24221 # Now quote all the things that may contain metacharacters while being
24222 # careful not to overquote the AC_SUBSTed values. We take copies of the
24223 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24225 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24228 deplibs_check_method reload_flag reload_cmds need_locks \
24229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24230 lt_cv_sys_global_symbol_to_c_name_address \
24231 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24232 old_postinstall_cmds old_postuninstall_cmds \
24233 compiler_GCJ \
24234 CC_GCJ \
24235 LD_GCJ \
24236 lt_prog_compiler_wl_GCJ \
24237 lt_prog_compiler_pic_GCJ \
24238 lt_prog_compiler_static_GCJ \
24239 lt_prog_compiler_no_builtin_flag_GCJ \
24240 export_dynamic_flag_spec_GCJ \
24241 thread_safe_flag_spec_GCJ \
24242 whole_archive_flag_spec_GCJ \
24243 enable_shared_with_static_runtimes_GCJ \
24244 old_archive_cmds_GCJ \
24245 old_archive_from_new_cmds_GCJ \
24246 predep_objects_GCJ \
24247 postdep_objects_GCJ \
24248 predeps_GCJ \
24249 postdeps_GCJ \
24250 compiler_lib_search_path_GCJ \
24251 archive_cmds_GCJ \
24252 archive_expsym_cmds_GCJ \
24253 postinstall_cmds_GCJ \
24254 postuninstall_cmds_GCJ \
24255 old_archive_from_expsyms_cmds_GCJ \
24256 allow_undefined_flag_GCJ \
24257 no_undefined_flag_GCJ \
24258 export_symbols_cmds_GCJ \
24259 hardcode_libdir_flag_spec_GCJ \
24260 hardcode_libdir_flag_spec_ld_GCJ \
24261 hardcode_libdir_separator_GCJ \
24262 hardcode_automatic_GCJ \
24263 module_cmds_GCJ \
24264 module_expsym_cmds_GCJ \
24265 lt_cv_prog_compiler_c_o_GCJ \
24266 exclude_expsyms_GCJ \
24267 include_expsyms_GCJ; do
24268
24269 case $var in
24270 old_archive_cmds_GCJ | \
24271 old_archive_from_new_cmds_GCJ | \
24272 archive_cmds_GCJ | \
24273 archive_expsym_cmds_GCJ | \
24274 module_cmds_GCJ | \
24275 module_expsym_cmds_GCJ | \
24276 old_archive_from_expsyms_cmds_GCJ | \
24277 export_symbols_cmds_GCJ | \
24278 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24279 postinstall_cmds | postuninstall_cmds | \
24280 old_postinstall_cmds | old_postuninstall_cmds | \
24281 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24282 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024283 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 +000024284 ;;
24285 *)
24286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24287 ;;
24288 esac
24289 done
24290
24291 case $lt_echo in
24292 *'\$0 --fallback-echo"')
24293 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24294 ;;
24295 esac
24296
24297cfgfile="$ofile"
24298
24299 cat <<__EOF__ >> "$cfgfile"
24300# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24301
24302# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24303
24304# Shell to use when invoking shell scripts.
24305SHELL=$lt_SHELL
24306
24307# Whether or not to build shared libraries.
24308build_libtool_libs=$enable_shared
24309
24310# Whether or not to build static libraries.
24311build_old_libs=$enable_static
24312
24313# Whether or not to add -lc for building shared libraries.
24314build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24315
24316# Whether or not to disallow shared libs when runtime libs are static
24317allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24318
24319# Whether or not to optimize for fast installation.
24320fast_install=$enable_fast_install
24321
24322# The host system.
24323host_alias=$host_alias
24324host=$host
24325
24326# An echo program that does not interpret backslashes.
24327echo=$lt_echo
24328
24329# The archiver.
24330AR=$lt_AR
24331AR_FLAGS=$lt_AR_FLAGS
24332
24333# A C compiler.
24334LTCC=$lt_LTCC
24335
24336# A language-specific compiler.
24337CC=$lt_compiler_GCJ
24338
24339# Is the compiler the GNU C compiler?
24340with_gcc=$GCC_GCJ
24341
24342# An ERE matcher.
24343EGREP=$lt_EGREP
24344
24345# The linker used to build libraries.
24346LD=$lt_LD_GCJ
24347
24348# Whether we need hard or soft links.
24349LN_S=$lt_LN_S
24350
24351# A BSD-compatible nm program.
24352NM=$lt_NM
24353
24354# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024355STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024356
24357# Used to examine libraries when file_magic_cmd begins "file"
24358MAGIC_CMD=$MAGIC_CMD
24359
24360# Used on cygwin: DLL creation program.
24361DLLTOOL="$DLLTOOL"
24362
24363# Used on cygwin: object dumper.
24364OBJDUMP="$OBJDUMP"
24365
24366# Used on cygwin: assembler.
24367AS="$AS"
24368
24369# The name of the directory that contains temporary libtool files.
24370objdir=$objdir
24371
24372# How to create reloadable object files.
24373reload_flag=$lt_reload_flag
24374reload_cmds=$lt_reload_cmds
24375
24376# How to pass a linker flag through the compiler.
24377wl=$lt_lt_prog_compiler_wl_GCJ
24378
24379# Object file suffix (normally "o").
24380objext="$ac_objext"
24381
24382# Old archive suffix (normally "a").
24383libext="$libext"
24384
24385# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024386shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024387
24388# Executable file suffix (normally "").
24389exeext="$exeext"
24390
24391# Additional compiler flags for building library objects.
24392pic_flag=$lt_lt_prog_compiler_pic_GCJ
24393pic_mode=$pic_mode
24394
24395# What is the maximum length of a command?
24396max_cmd_len=$lt_cv_sys_max_cmd_len
24397
24398# Does compiler simultaneously support -c and -o options?
24399compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24400
24401# Must we lock files when doing compilation ?
24402need_locks=$lt_need_locks
24403
24404# Do we need the lib prefix for modules?
24405need_lib_prefix=$need_lib_prefix
24406
24407# Do we need a version for libraries?
24408need_version=$need_version
24409
24410# Whether dlopen is supported.
24411dlopen_support=$enable_dlopen
24412
24413# Whether dlopen of programs is supported.
24414dlopen_self=$enable_dlopen_self
24415
24416# Whether dlopen of statically linked programs is supported.
24417dlopen_self_static=$enable_dlopen_self_static
24418
24419# Compiler flag to prevent dynamic linking.
24420link_static_flag=$lt_lt_prog_compiler_static_GCJ
24421
24422# Compiler flag to turn off builtin functions.
24423no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24424
24425# Compiler flag to allow reflexive dlopens.
24426export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24427
24428# Compiler flag to generate shared objects directly from archives.
24429whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24430
24431# Compiler flag to generate thread-safe objects.
24432thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24433
24434# Library versioning type.
24435version_type=$version_type
24436
24437# Format of library name prefix.
24438libname_spec=$lt_libname_spec
24439
24440# List of archive names. First name is the real one, the rest are links.
24441# The last name is the one that the linker finds with -lNAME.
24442library_names_spec=$lt_library_names_spec
24443
24444# The coded name of the library, if different from the real name.
24445soname_spec=$lt_soname_spec
24446
24447# Commands used to build and install an old-style archive.
24448RANLIB=$lt_RANLIB
24449old_archive_cmds=$lt_old_archive_cmds_GCJ
24450old_postinstall_cmds=$lt_old_postinstall_cmds
24451old_postuninstall_cmds=$lt_old_postuninstall_cmds
24452
24453# Create an old-style archive from a shared archive.
24454old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24455
24456# Create a temporary old-style archive to link instead of a shared archive.
24457old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24458
24459# Commands used to build and install a shared archive.
24460archive_cmds=$lt_archive_cmds_GCJ
24461archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24462postinstall_cmds=$lt_postinstall_cmds
24463postuninstall_cmds=$lt_postuninstall_cmds
24464
24465# Commands used to build a loadable module (assumed same as above if empty)
24466module_cmds=$lt_module_cmds_GCJ
24467module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24468
24469# Commands to strip libraries.
24470old_striplib=$lt_old_striplib
24471striplib=$lt_striplib
24472
24473# Dependencies to place before the objects being linked to create a
24474# shared library.
24475predep_objects=$lt_predep_objects_GCJ
24476
24477# Dependencies to place after the objects being linked to create a
24478# shared library.
24479postdep_objects=$lt_postdep_objects_GCJ
24480
24481# Dependencies to place before the objects being linked to create a
24482# shared library.
24483predeps=$lt_predeps_GCJ
24484
24485# Dependencies to place after the objects being linked to create a
24486# shared library.
24487postdeps=$lt_postdeps_GCJ
24488
24489# The library search path used internally by the compiler when linking
24490# a shared library.
24491compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24492
24493# Method to check whether dependent libraries are shared objects.
24494deplibs_check_method=$lt_deplibs_check_method
24495
24496# Command to use when deplibs_check_method == file_magic.
24497file_magic_cmd=$lt_file_magic_cmd
24498
24499# Flag that allows shared libraries with undefined symbols to be built.
24500allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24501
24502# Flag that forces no undefined symbols.
24503no_undefined_flag=$lt_no_undefined_flag_GCJ
24504
24505# Commands used to finish a libtool library installation in a directory.
24506finish_cmds=$lt_finish_cmds
24507
24508# Same as above, but a single script fragment to be evaled but not shown.
24509finish_eval=$lt_finish_eval
24510
24511# Take the output of nm and produce a listing of raw symbols and C names.
24512global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24513
24514# Transform the output of nm in a proper C declaration
24515global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24516
24517# Transform the output of nm in a C name address pair
24518global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24519
24520# This is the shared library runtime path variable.
24521runpath_var=$runpath_var
24522
24523# This is the shared library path variable.
24524shlibpath_var=$shlibpath_var
24525
24526# Is shlibpath searched before the hard-coded library search path?
24527shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24528
24529# How to hardcode a shared library path into an executable.
24530hardcode_action=$hardcode_action_GCJ
24531
24532# Whether we should hardcode library paths into libraries.
24533hardcode_into_libs=$hardcode_into_libs
24534
24535# Flag to hardcode \$libdir into a binary during linking.
24536# This must work even if \$libdir does not exist.
24537hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24538
24539# If ld is used when linking, flag to hardcode \$libdir into
24540# a binary during linking. This must work even if \$libdir does
24541# not exist.
24542hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24543
24544# Whether we need a single -rpath flag with a separated argument.
24545hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24546
24547# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24548# resulting binary.
24549hardcode_direct=$hardcode_direct_GCJ
24550
24551# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24552# resulting binary.
24553hardcode_minus_L=$hardcode_minus_L_GCJ
24554
24555# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24556# the resulting binary.
24557hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24558
24559# Set to yes if building a shared library automatically hardcodes DIR into the library
24560# and all subsequent libraries and executables linked against it.
24561hardcode_automatic=$hardcode_automatic_GCJ
24562
24563# Variables whose values should be saved in libtool wrapper scripts and
24564# restored at relink time.
24565variables_saved_for_relink="$variables_saved_for_relink"
24566
24567# Whether libtool must link a program against all its dependency libraries.
24568link_all_deplibs=$link_all_deplibs_GCJ
24569
24570# Compile-time system search path for libraries
24571sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24572
24573# Run-time system search path for libraries
24574sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24575
24576# Fix the shell variable \$srcfile for the compiler.
24577fix_srcfile_path="$fix_srcfile_path_GCJ"
24578
24579# Set to yes if exported symbols are required.
24580always_export_symbols=$always_export_symbols_GCJ
24581
24582# The commands to list exported symbols.
24583export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24584
24585# The commands to extract the exported symbol list from a shared archive.
24586extract_expsyms_cmds=$lt_extract_expsyms_cmds
24587
24588# Symbols that should not be listed in the preloaded symbols.
24589exclude_expsyms=$lt_exclude_expsyms_GCJ
24590
24591# Symbols that must always be exported.
24592include_expsyms=$lt_include_expsyms_GCJ
24593
24594# ### END LIBTOOL TAG CONFIG: $tagname
24595
24596__EOF__
24597
24598
24599else
24600 # If there is no Makefile yet, we rely on a make rule to execute
24601 # `config.status --recheck' to rerun these tests and create the
24602 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024603 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24604 if test -f "$ltmain_in"; then
24605 test -f Makefile && make "$ltmain"
24606 fi
John Criswell47fdd832003-07-14 16:52:07 +000024607fi
24608
24609
24610ac_ext=c
24611ac_cpp='$CPP $CPPFLAGS'
24612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24614ac_compiler_gnu=$ac_cv_c_compiler_gnu
24615
24616CC="$lt_save_CC"
24617
24618 else
24619 tagname=""
24620 fi
24621 ;;
24622
24623 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024624 ac_ext=c
24625ac_cpp='$CPP $CPPFLAGS'
24626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24628ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024629
24630
24631# Source file extension for RC test sources.
24632ac_ext=rc
24633
24634# Object file extension for compiled RC test sources.
24635objext=o
24636objext_RC=$objext
24637
24638# Code to be used in simple compile tests
24639lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24640
24641# Code to be used in simple link tests
24642lt_simple_link_test_code="$lt_simple_compile_test_code"
24643
24644# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24645
24646# If no C compiler was specified, use CC.
24647LTCC=${LTCC-"$CC"}
24648
24649# Allow CC to be a program name with arguments.
24650compiler=$CC
24651
24652
24653# Allow CC to be a program name with arguments.
24654lt_save_CC="$CC"
24655CC=${RC-"windres"}
24656compiler=$CC
24657compiler_RC=$CC
24658lt_cv_prog_compiler_c_o_RC=yes
24659
24660# The else clause should only fire when bootstrapping the
24661# libtool distribution, otherwise you forgot to ship ltmain.sh
24662# with your package, and you will get complaints that there are
24663# no rules to generate ltmain.sh.
24664if test -f "$ltmain"; then
24665 # See if we are running on zsh, and set the options which allow our commands through
24666 # without removal of \ escapes.
24667 if test -n "${ZSH_VERSION+set}" ; then
24668 setopt NO_GLOB_SUBST
24669 fi
24670 # Now quote all the things that may contain metacharacters while being
24671 # careful not to overquote the AC_SUBSTed values. We take copies of the
24672 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024673 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24674 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024675 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24676 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24677 deplibs_check_method reload_flag reload_cmds need_locks \
24678 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24679 lt_cv_sys_global_symbol_to_c_name_address \
24680 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24681 old_postinstall_cmds old_postuninstall_cmds \
24682 compiler_RC \
24683 CC_RC \
24684 LD_RC \
24685 lt_prog_compiler_wl_RC \
24686 lt_prog_compiler_pic_RC \
24687 lt_prog_compiler_static_RC \
24688 lt_prog_compiler_no_builtin_flag_RC \
24689 export_dynamic_flag_spec_RC \
24690 thread_safe_flag_spec_RC \
24691 whole_archive_flag_spec_RC \
24692 enable_shared_with_static_runtimes_RC \
24693 old_archive_cmds_RC \
24694 old_archive_from_new_cmds_RC \
24695 predep_objects_RC \
24696 postdep_objects_RC \
24697 predeps_RC \
24698 postdeps_RC \
24699 compiler_lib_search_path_RC \
24700 archive_cmds_RC \
24701 archive_expsym_cmds_RC \
24702 postinstall_cmds_RC \
24703 postuninstall_cmds_RC \
24704 old_archive_from_expsyms_cmds_RC \
24705 allow_undefined_flag_RC \
24706 no_undefined_flag_RC \
24707 export_symbols_cmds_RC \
24708 hardcode_libdir_flag_spec_RC \
24709 hardcode_libdir_flag_spec_ld_RC \
24710 hardcode_libdir_separator_RC \
24711 hardcode_automatic_RC \
24712 module_cmds_RC \
24713 module_expsym_cmds_RC \
24714 lt_cv_prog_compiler_c_o_RC \
24715 exclude_expsyms_RC \
24716 include_expsyms_RC; do
24717
24718 case $var in
24719 old_archive_cmds_RC | \
24720 old_archive_from_new_cmds_RC | \
24721 archive_cmds_RC | \
24722 archive_expsym_cmds_RC | \
24723 module_cmds_RC | \
24724 module_expsym_cmds_RC | \
24725 old_archive_from_expsyms_cmds_RC | \
24726 export_symbols_cmds_RC | \
24727 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24728 postinstall_cmds | postuninstall_cmds | \
24729 old_postinstall_cmds | old_postuninstall_cmds | \
24730 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24731 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024732 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 +000024733 ;;
24734 *)
24735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24736 ;;
24737 esac
24738 done
24739
24740 case $lt_echo in
24741 *'\$0 --fallback-echo"')
24742 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24743 ;;
24744 esac
24745
24746cfgfile="$ofile"
24747
24748 cat <<__EOF__ >> "$cfgfile"
24749# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24750
24751# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24752
24753# Shell to use when invoking shell scripts.
24754SHELL=$lt_SHELL
24755
24756# Whether or not to build shared libraries.
24757build_libtool_libs=$enable_shared
24758
24759# Whether or not to build static libraries.
24760build_old_libs=$enable_static
24761
24762# Whether or not to add -lc for building shared libraries.
24763build_libtool_need_lc=$archive_cmds_need_lc_RC
24764
24765# Whether or not to disallow shared libs when runtime libs are static
24766allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24767
24768# Whether or not to optimize for fast installation.
24769fast_install=$enable_fast_install
24770
24771# The host system.
24772host_alias=$host_alias
24773host=$host
24774
24775# An echo program that does not interpret backslashes.
24776echo=$lt_echo
24777
24778# The archiver.
24779AR=$lt_AR
24780AR_FLAGS=$lt_AR_FLAGS
24781
24782# A C compiler.
24783LTCC=$lt_LTCC
24784
24785# A language-specific compiler.
24786CC=$lt_compiler_RC
24787
24788# Is the compiler the GNU C compiler?
24789with_gcc=$GCC_RC
24790
24791# An ERE matcher.
24792EGREP=$lt_EGREP
24793
24794# The linker used to build libraries.
24795LD=$lt_LD_RC
24796
24797# Whether we need hard or soft links.
24798LN_S=$lt_LN_S
24799
24800# A BSD-compatible nm program.
24801NM=$lt_NM
24802
24803# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024804STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024805
24806# Used to examine libraries when file_magic_cmd begins "file"
24807MAGIC_CMD=$MAGIC_CMD
24808
24809# Used on cygwin: DLL creation program.
24810DLLTOOL="$DLLTOOL"
24811
24812# Used on cygwin: object dumper.
24813OBJDUMP="$OBJDUMP"
24814
24815# Used on cygwin: assembler.
24816AS="$AS"
24817
24818# The name of the directory that contains temporary libtool files.
24819objdir=$objdir
24820
24821# How to create reloadable object files.
24822reload_flag=$lt_reload_flag
24823reload_cmds=$lt_reload_cmds
24824
24825# How to pass a linker flag through the compiler.
24826wl=$lt_lt_prog_compiler_wl_RC
24827
24828# Object file suffix (normally "o").
24829objext="$ac_objext"
24830
24831# Old archive suffix (normally "a").
24832libext="$libext"
24833
24834# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024835shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024836
24837# Executable file suffix (normally "").
24838exeext="$exeext"
24839
24840# Additional compiler flags for building library objects.
24841pic_flag=$lt_lt_prog_compiler_pic_RC
24842pic_mode=$pic_mode
24843
24844# What is the maximum length of a command?
24845max_cmd_len=$lt_cv_sys_max_cmd_len
24846
24847# Does compiler simultaneously support -c and -o options?
24848compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24849
24850# Must we lock files when doing compilation ?
24851need_locks=$lt_need_locks
24852
24853# Do we need the lib prefix for modules?
24854need_lib_prefix=$need_lib_prefix
24855
24856# Do we need a version for libraries?
24857need_version=$need_version
24858
24859# Whether dlopen is supported.
24860dlopen_support=$enable_dlopen
24861
24862# Whether dlopen of programs is supported.
24863dlopen_self=$enable_dlopen_self
24864
24865# Whether dlopen of statically linked programs is supported.
24866dlopen_self_static=$enable_dlopen_self_static
24867
24868# Compiler flag to prevent dynamic linking.
24869link_static_flag=$lt_lt_prog_compiler_static_RC
24870
24871# Compiler flag to turn off builtin functions.
24872no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24873
24874# Compiler flag to allow reflexive dlopens.
24875export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24876
24877# Compiler flag to generate shared objects directly from archives.
24878whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24879
24880# Compiler flag to generate thread-safe objects.
24881thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24882
24883# Library versioning type.
24884version_type=$version_type
24885
24886# Format of library name prefix.
24887libname_spec=$lt_libname_spec
24888
24889# List of archive names. First name is the real one, the rest are links.
24890# The last name is the one that the linker finds with -lNAME.
24891library_names_spec=$lt_library_names_spec
24892
24893# The coded name of the library, if different from the real name.
24894soname_spec=$lt_soname_spec
24895
24896# Commands used to build and install an old-style archive.
24897RANLIB=$lt_RANLIB
24898old_archive_cmds=$lt_old_archive_cmds_RC
24899old_postinstall_cmds=$lt_old_postinstall_cmds
24900old_postuninstall_cmds=$lt_old_postuninstall_cmds
24901
24902# Create an old-style archive from a shared archive.
24903old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24904
24905# Create a temporary old-style archive to link instead of a shared archive.
24906old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24907
24908# Commands used to build and install a shared archive.
24909archive_cmds=$lt_archive_cmds_RC
24910archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24911postinstall_cmds=$lt_postinstall_cmds
24912postuninstall_cmds=$lt_postuninstall_cmds
24913
24914# Commands used to build a loadable module (assumed same as above if empty)
24915module_cmds=$lt_module_cmds_RC
24916module_expsym_cmds=$lt_module_expsym_cmds_RC
24917
24918# Commands to strip libraries.
24919old_striplib=$lt_old_striplib
24920striplib=$lt_striplib
24921
24922# Dependencies to place before the objects being linked to create a
24923# shared library.
24924predep_objects=$lt_predep_objects_RC
24925
24926# Dependencies to place after the objects being linked to create a
24927# shared library.
24928postdep_objects=$lt_postdep_objects_RC
24929
24930# Dependencies to place before the objects being linked to create a
24931# shared library.
24932predeps=$lt_predeps_RC
24933
24934# Dependencies to place after the objects being linked to create a
24935# shared library.
24936postdeps=$lt_postdeps_RC
24937
24938# The library search path used internally by the compiler when linking
24939# a shared library.
24940compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24941
24942# Method to check whether dependent libraries are shared objects.
24943deplibs_check_method=$lt_deplibs_check_method
24944
24945# Command to use when deplibs_check_method == file_magic.
24946file_magic_cmd=$lt_file_magic_cmd
24947
24948# Flag that allows shared libraries with undefined symbols to be built.
24949allow_undefined_flag=$lt_allow_undefined_flag_RC
24950
24951# Flag that forces no undefined symbols.
24952no_undefined_flag=$lt_no_undefined_flag_RC
24953
24954# Commands used to finish a libtool library installation in a directory.
24955finish_cmds=$lt_finish_cmds
24956
24957# Same as above, but a single script fragment to be evaled but not shown.
24958finish_eval=$lt_finish_eval
24959
24960# Take the output of nm and produce a listing of raw symbols and C names.
24961global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24962
24963# Transform the output of nm in a proper C declaration
24964global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24965
24966# Transform the output of nm in a C name address pair
24967global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24968
24969# This is the shared library runtime path variable.
24970runpath_var=$runpath_var
24971
24972# This is the shared library path variable.
24973shlibpath_var=$shlibpath_var
24974
24975# Is shlibpath searched before the hard-coded library search path?
24976shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24977
24978# How to hardcode a shared library path into an executable.
24979hardcode_action=$hardcode_action_RC
24980
24981# Whether we should hardcode library paths into libraries.
24982hardcode_into_libs=$hardcode_into_libs
24983
24984# Flag to hardcode \$libdir into a binary during linking.
24985# This must work even if \$libdir does not exist.
24986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24987
24988# If ld is used when linking, flag to hardcode \$libdir into
24989# a binary during linking. This must work even if \$libdir does
24990# not exist.
24991hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24992
24993# Whether we need a single -rpath flag with a separated argument.
24994hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24995
24996# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24997# resulting binary.
24998hardcode_direct=$hardcode_direct_RC
24999
25000# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25001# resulting binary.
25002hardcode_minus_L=$hardcode_minus_L_RC
25003
25004# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25005# the resulting binary.
25006hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25007
25008# Set to yes if building a shared library automatically hardcodes DIR into the library
25009# and all subsequent libraries and executables linked against it.
25010hardcode_automatic=$hardcode_automatic_RC
25011
25012# Variables whose values should be saved in libtool wrapper scripts and
25013# restored at relink time.
25014variables_saved_for_relink="$variables_saved_for_relink"
25015
25016# Whether libtool must link a program against all its dependency libraries.
25017link_all_deplibs=$link_all_deplibs_RC
25018
25019# Compile-time system search path for libraries
25020sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25021
25022# Run-time system search path for libraries
25023sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25024
25025# Fix the shell variable \$srcfile for the compiler.
25026fix_srcfile_path="$fix_srcfile_path_RC"
25027
25028# Set to yes if exported symbols are required.
25029always_export_symbols=$always_export_symbols_RC
25030
25031# The commands to list exported symbols.
25032export_symbols_cmds=$lt_export_symbols_cmds_RC
25033
25034# The commands to extract the exported symbol list from a shared archive.
25035extract_expsyms_cmds=$lt_extract_expsyms_cmds
25036
25037# Symbols that should not be listed in the preloaded symbols.
25038exclude_expsyms=$lt_exclude_expsyms_RC
25039
25040# Symbols that must always be exported.
25041include_expsyms=$lt_include_expsyms_RC
25042
25043# ### END LIBTOOL TAG CONFIG: $tagname
25044
25045__EOF__
25046
25047
25048else
25049 # If there is no Makefile yet, we rely on a make rule to execute
25050 # `config.status --recheck' to rerun these tests and create the
25051 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025052 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25053 if test -f "$ltmain_in"; then
25054 test -f Makefile && make "$ltmain"
25055 fi
John Criswell47fdd832003-07-14 16:52:07 +000025056fi
25057
25058
25059ac_ext=c
25060ac_cpp='$CPP $CPPFLAGS'
25061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25063ac_compiler_gnu=$ac_cv_c_compiler_gnu
25064
25065CC="$lt_save_CC"
25066
25067 ;;
25068
25069 *)
25070 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25071echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25072 { (exit 1); exit 1; }; }
25073 ;;
25074 esac
25075
25076 # Append the new tag name to the list of available tags.
25077 if test -n "$tagname" ; then
25078 available_tags="$available_tags $tagname"
25079 fi
25080 fi
25081 done
25082 IFS="$lt_save_ifs"
25083
25084 # Now substitute the updated list of available tags.
25085 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25086 mv "${ofile}T" "$ofile"
25087 chmod +x "$ofile"
25088 else
25089 rm -f "${ofile}T"
25090 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25091echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25092 { (exit 1); exit 1; }; }
25093 fi
25094fi
John Criswell7a73b802003-06-30 21:59:07 +000025095
25096
25097
25098# This can be used to rebuild libtool when needed
25099LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25100
25101# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025102LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000025103
25104# Prevent multiple expansion
25105
25106
25107
John Criswell47fdd832003-07-14 16:52:07 +000025108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025125
Reid Spencer582a23c2004-12-29 07:07:57 +000025126if test "$lt_cv_dlopen_self" = "yes" ; then
25127
25128cat >>confdefs.h <<\_ACEOF
25129#define CAN_DLOPEN_SELF 1
25130_ACEOF
25131
25132fi
25133
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025134etags_version=`$ETAGS --version 2>&1`
25135case "$etags_version" in
25136 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
25137 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
25138 *) ETAGSFLAGS="" ;;
25139esac
25140ETAGSFLAGS=$ETAGSFLAGS
25141
25142
Reid Spencer7931a782004-12-27 06:15:02 +000025143if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000025144 LLVMGCC="llvm-gcc${EXEEXT}"
25145 LLVMGXX="llvm-g++${EXEEXT}"
25146 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25147set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000025148echo "$as_me:$LINENO: checking for $ac_word" >&5
25149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25150if test "${ac_cv_path_LLVMGCC+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25152else
25153 case $LLVMGCC in
25154 [\\/]* | ?:[\\/]*)
25155 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25156 ;;
25157 *)
25158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25159for as_dir in $PATH
25160do
25161 IFS=$as_save_IFS
25162 test -z "$as_dir" && as_dir=.
25163 for ac_exec_ext in '' $ac_executable_extensions; do
25164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25165 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25167 break 2
25168 fi
25169done
25170done
25171
Reid Spencer59473af2004-12-25 07:31:29 +000025172 ;;
25173esac
25174fi
25175LLVMGCC=$ac_cv_path_LLVMGCC
25176
25177if test -n "$LLVMGCC"; then
25178 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25179echo "${ECHO_T}$LLVMGCC" >&6
25180else
25181 echo "$as_me:$LINENO: result: no" >&5
25182echo "${ECHO_T}no" >&6
25183fi
25184
Reid Spencerc84492c2005-06-02 22:34:49 +000025185 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25186set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000025187echo "$as_me:$LINENO: checking for $ac_word" >&5
25188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25189if test "${ac_cv_path_LLVMGXX+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191else
25192 case $LLVMGXX in
25193 [\\/]* | ?:[\\/]*)
25194 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25195 ;;
25196 *)
25197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25198for as_dir in $PATH
25199do
25200 IFS=$as_save_IFS
25201 test -z "$as_dir" && as_dir=.
25202 for ac_exec_ext in '' $ac_executable_extensions; do
25203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25204 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25206 break 2
25207 fi
25208done
25209done
25210
Reid Spencer59473af2004-12-25 07:31:29 +000025211 ;;
25212esac
25213fi
25214LLVMGXX=$ac_cv_path_LLVMGXX
25215
25216if test -n "$LLVMGXX"; then
25217 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25218echo "${ECHO_T}$LLVMGXX" >&6
25219else
25220 echo "$as_me:$LINENO: result: no" >&5
25221echo "${ECHO_T}no" >&6
25222fi
25223
25224else
Reid Spencerc84492c2005-06-02 22:34:49 +000025225 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25226 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000025227 LLVMGCC=$LLVMGCC
25228
25229 LLVMGXX=$LLVMGXX
25230
25231fi
25232
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025233echo "$as_me:$LINENO: checking tool compatibility" >&5
25234echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25235
Reid Spencer86901802004-12-08 23:07:27 +000025236ICC=no
25237IXX=no
25238case $CC in
25239 icc*|icpc*)
25240 ICC=yes
25241 IXX=yes
25242 ;;
25243 *)
25244 ;;
25245esac
25246
Duraid Madina937c60a2006-02-15 07:57:42 +000025247if test "$GCC" != "yes" && test "$ICC" != "yes"
25248then
25249 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25250echo "$as_me: error: gcc|icc required but not found" >&2;}
25251 { (exit 1); exit 1; }; }
25252fi
25253
25254if test "$GXX" != "yes" && test "$IXX" != "yes"
25255then
25256 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25257echo "$as_me: error: g++|icc required but not found" >&2;}
25258 { (exit 1); exit 1; }; }
25259fi
25260
Reid Spencer86901802004-12-08 23:07:27 +000025261if test "$GCC" = "yes"
25262then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025263 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025264 if test "$gccmajor" -lt "3"
25265 then
25266 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025267echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25268 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025269 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025270fi
25271
25272if test -z "$llvm_cv_gnu_make_command"
25273then
25274 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25275echo "$as_me: error: GNU Make required but not found" >&2;}
25276 { (exit 1); exit 1; }; }
25277fi
25278
25279echo "$as_me:$LINENO: result: ok" >&5
25280echo "${ECHO_T}ok" >&6
25281
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025282
John Criswell7a73b802003-06-30 21:59:07 +000025283
John Criswell7a73b802003-06-30 21:59:07 +000025284echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25285echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25286if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25288else
25289 ac_check_lib_save_LIBS=$LIBS
25290LIBS="-lelf $LIBS"
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 elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025305int
25306main ()
25307{
25308elf_begin ();
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_lib_elf_elf_begin=yes
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 +000025340ac_cv_lib_elf_elf_begin=no
25341fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025342rm -f conftest.err conftest.$ac_objext \
25343 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025344LIBS=$ac_check_lib_save_LIBS
25345fi
25346echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25347echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25348if test $ac_cv_lib_elf_elf_begin = yes; then
25349 cat >>confdefs.h <<_ACEOF
25350#define HAVE_LIBELF 1
25351_ACEOF
25352
25353 LIBS="-lelf $LIBS"
25354
25355fi
25356
25357
Reid Spencer3484a992006-01-19 08:31:08 +000025358echo "$as_me:$LINENO: checking for sin in -lm" >&5
25359echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25360if test "${ac_cv_lib_m_sin+set}" = set; then
25361 echo $ECHO_N "(cached) $ECHO_C" >&6
25362else
25363 ac_check_lib_save_LIBS=$LIBS
25364LIBS="-lm $LIBS"
25365cat >conftest.$ac_ext <<_ACEOF
25366/* confdefs.h. */
25367_ACEOF
25368cat confdefs.h >>conftest.$ac_ext
25369cat >>conftest.$ac_ext <<_ACEOF
25370/* end confdefs.h. */
25371
25372/* Override any gcc2 internal prototype to avoid an error. */
25373#ifdef __cplusplus
25374extern "C"
25375#endif
25376/* We use char because int might match the return type of a gcc2
25377 builtin and then its argument prototype would still apply. */
25378char sin ();
25379int
25380main ()
25381{
25382sin ();
25383 ;
25384 return 0;
25385}
25386_ACEOF
25387rm -f conftest.$ac_objext conftest$ac_exeext
25388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389 (eval $ac_link) 2>conftest.er1
25390 ac_status=$?
25391 grep -v '^ *+' conftest.er1 >conftest.err
25392 rm -f conftest.er1
25393 cat conftest.err >&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); } &&
25396 { ac_try='test -z "$ac_c_werror_flag"
25397 || test ! -s conftest.err'
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; } &&
25403 { ac_try='test -s conftest$ac_exeext'
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; }; then
25409 ac_cv_lib_m_sin=yes
25410else
25411 echo "$as_me: failed program was:" >&5
25412sed 's/^/| /' conftest.$ac_ext >&5
25413
25414ac_cv_lib_m_sin=no
25415fi
25416rm -f conftest.err conftest.$ac_objext \
25417 conftest$ac_exeext conftest.$ac_ext
25418LIBS=$ac_check_lib_save_LIBS
25419fi
25420echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25421echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25422if test $ac_cv_lib_m_sin = yes; then
25423 cat >>confdefs.h <<_ACEOF
25424#define HAVE_LIBM 1
25425_ACEOF
25426
25427 LIBS="-lm $LIBS"
25428
25429fi
25430
Reid Spencer484fc8e2006-06-01 16:55:59 +000025431if test "$llvm_cv_os_type" == "MingW" ; then
25432
Reid Spencer48fdf912006-06-01 19:03:21 +000025433echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25434echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25435if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025436 echo $ECHO_N "(cached) $ECHO_C" >&6
25437else
25438 ac_check_lib_save_LIBS=$LIBS
25439LIBS="-limagehlp $LIBS"
25440cat >conftest.$ac_ext <<_ACEOF
25441/* confdefs.h. */
25442_ACEOF
25443cat confdefs.h >>conftest.$ac_ext
25444cat >>conftest.$ac_ext <<_ACEOF
25445/* end confdefs.h. */
25446
Reid Spencer48fdf912006-06-01 19:03:21 +000025447
Reid Spencer484fc8e2006-06-01 16:55:59 +000025448int
25449main ()
25450{
Reid Spencer48fdf912006-06-01 19:03:21 +000025451main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025452 ;
25453 return 0;
25454}
25455_ACEOF
25456rm -f conftest.$ac_objext conftest$ac_exeext
25457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458 (eval $ac_link) 2>conftest.er1
25459 ac_status=$?
25460 grep -v '^ *+' conftest.er1 >conftest.err
25461 rm -f conftest.er1
25462 cat conftest.err >&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); } &&
25465 { ac_try='test -z "$ac_c_werror_flag"
25466 || test ! -s conftest.err'
25467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468 (eval $ac_try) 2>&5
25469 ac_status=$?
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; } &&
25472 { ac_try='test -s conftest$ac_exeext'
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025478 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025479else
25480 echo "$as_me: failed program was:" >&5
25481sed 's/^/| /' conftest.$ac_ext >&5
25482
Reid Spencer48fdf912006-06-01 19:03:21 +000025483ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025484fi
25485rm -f conftest.err conftest.$ac_objext \
25486 conftest$ac_exeext conftest.$ac_ext
25487LIBS=$ac_check_lib_save_LIBS
25488fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025489echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25490echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25491if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025492 cat >>confdefs.h <<_ACEOF
25493#define HAVE_LIBIMAGEHLP 1
25494_ACEOF
25495
25496 LIBS="-limagehlp $LIBS"
25497
25498fi
25499
25500
Reid Spencer48fdf912006-06-01 19:03:21 +000025501echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25502echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25503if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025504 echo $ECHO_N "(cached) $ECHO_C" >&6
25505else
25506 ac_check_lib_save_LIBS=$LIBS
25507LIBS="-lpsapi $LIBS"
25508cat >conftest.$ac_ext <<_ACEOF
25509/* confdefs.h. */
25510_ACEOF
25511cat confdefs.h >>conftest.$ac_ext
25512cat >>conftest.$ac_ext <<_ACEOF
25513/* end confdefs.h. */
25514
Reid Spencer48fdf912006-06-01 19:03:21 +000025515
Reid Spencer484fc8e2006-06-01 16:55:59 +000025516int
25517main ()
25518{
Reid Spencer48fdf912006-06-01 19:03:21 +000025519main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025520 ;
25521 return 0;
25522}
25523_ACEOF
25524rm -f conftest.$ac_objext conftest$ac_exeext
25525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526 (eval $ac_link) 2>conftest.er1
25527 ac_status=$?
25528 grep -v '^ *+' conftest.er1 >conftest.err
25529 rm -f conftest.er1
25530 cat conftest.err >&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } &&
25533 { ac_try='test -z "$ac_c_werror_flag"
25534 || test ! -s conftest.err'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; } &&
25540 { ac_try='test -s conftest$ac_exeext'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25543 ac_status=$?
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025546 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025547else
25548 echo "$as_me: failed program was:" >&5
25549sed 's/^/| /' conftest.$ac_ext >&5
25550
Reid Spencer48fdf912006-06-01 19:03:21 +000025551ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025552fi
25553rm -f conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
25555LIBS=$ac_check_lib_save_LIBS
25556fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025557echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25558echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25559if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025560 cat >>confdefs.h <<_ACEOF
25561#define HAVE_LIBPSAPI 1
25562_ACEOF
25563
25564 LIBS="-lpsapi $LIBS"
25565
25566fi
25567
25568fi
Reid Spencer22177fe2005-07-12 15:24:20 +000025569
Reid Spencer17795972004-11-18 09:47:37 +000025570echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25571echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25572if test "${ac_cv_search_lt_dlopen+set}" = set; then
25573 echo $ECHO_N "(cached) $ECHO_C" >&6
25574else
25575 ac_func_search_save_LIBS=$LIBS
25576ac_cv_search_lt_dlopen=no
25577cat >conftest.$ac_ext <<_ACEOF
25578/* confdefs.h. */
25579_ACEOF
25580cat confdefs.h >>conftest.$ac_ext
25581cat >>conftest.$ac_ext <<_ACEOF
25582/* end confdefs.h. */
25583
25584/* Override any gcc2 internal prototype to avoid an error. */
25585#ifdef __cplusplus
25586extern "C"
25587#endif
25588/* We use char because int might match the return type of a gcc2
25589 builtin and then its argument prototype would still apply. */
25590char lt_dlopen ();
25591int
25592main ()
25593{
25594lt_dlopen ();
25595 ;
25596 return 0;
25597}
25598_ACEOF
25599rm -f conftest.$ac_objext conftest$ac_exeext
25600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25601 (eval $ac_link) 2>conftest.er1
25602 ac_status=$?
25603 grep -v '^ *+' conftest.er1 >conftest.err
25604 rm -f conftest.er1
25605 cat conftest.err >&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } &&
25608 { ac_try='test -z "$ac_c_werror_flag"
25609 || test ! -s conftest.err'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25612 ac_status=$?
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; } &&
25615 { ac_try='test -s conftest$ac_exeext'
25616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617 (eval $ac_try) 2>&5
25618 ac_status=$?
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ac_cv_search_lt_dlopen="none required"
25622else
25623 echo "$as_me: failed program was:" >&5
25624sed 's/^/| /' conftest.$ac_ext >&5
25625
25626fi
25627rm -f conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
25629if test "$ac_cv_search_lt_dlopen" = no; then
25630 for ac_lib in ltdl; do
25631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25632 cat >conftest.$ac_ext <<_ACEOF
25633/* confdefs.h. */
25634_ACEOF
25635cat confdefs.h >>conftest.$ac_ext
25636cat >>conftest.$ac_ext <<_ACEOF
25637/* end confdefs.h. */
25638
25639/* Override any gcc2 internal prototype to avoid an error. */
25640#ifdef __cplusplus
25641extern "C"
25642#endif
25643/* We use char because int might match the return type of a gcc2
25644 builtin and then its argument prototype would still apply. */
25645char lt_dlopen ();
25646int
25647main ()
25648{
25649lt_dlopen ();
25650 ;
25651 return 0;
25652}
25653_ACEOF
25654rm -f conftest.$ac_objext conftest$ac_exeext
25655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656 (eval $ac_link) 2>conftest.er1
25657 ac_status=$?
25658 grep -v '^ *+' conftest.er1 >conftest.err
25659 rm -f conftest.er1
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
25663 { ac_try='test -z "$ac_c_werror_flag"
25664 || test ! -s conftest.err'
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; } &&
25670 { ac_try='test -s conftest$ac_exeext'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25673 ac_status=$?
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 ac_cv_search_lt_dlopen="-l$ac_lib"
25677break
25678else
25679 echo "$as_me: failed program was:" >&5
25680sed 's/^/| /' conftest.$ac_ext >&5
25681
25682fi
25683rm -f conftest.err conftest.$ac_objext \
25684 conftest$ac_exeext conftest.$ac_ext
25685 done
25686fi
25687LIBS=$ac_func_search_save_LIBS
25688fi
25689echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25690echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25691if test "$ac_cv_search_lt_dlopen" != no; then
25692 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25693
25694cat >>confdefs.h <<\_ACEOF
25695#define HAVE_LT_DLOPEN 1
25696_ACEOF
25697
25698else
25699 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25700 not be available" >&5
25701echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25702 not be available" >&2;}
25703fi
25704
25705
John Criswell7a73b802003-06-30 21:59:07 +000025706echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25707echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25708if test "${ac_cv_search_dlopen+set}" = set; then
25709 echo $ECHO_N "(cached) $ECHO_C" >&6
25710else
25711 ac_func_search_save_LIBS=$LIBS
25712ac_cv_search_dlopen=no
25713cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025714/* confdefs.h. */
25715_ACEOF
25716cat confdefs.h >>conftest.$ac_ext
25717cat >>conftest.$ac_ext <<_ACEOF
25718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025719
25720/* Override any gcc2 internal prototype to avoid an error. */
25721#ifdef __cplusplus
25722extern "C"
25723#endif
25724/* We use char because int might match the return type of a gcc2
25725 builtin and then its argument prototype would still apply. */
25726char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025727int
25728main ()
25729{
25730dlopen ();
25731 ;
25732 return 0;
25733}
25734_ACEOF
25735rm -f conftest.$ac_objext conftest$ac_exeext
25736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025737 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025739 grep -v '^ *+' conftest.er1 >conftest.err
25740 rm -f conftest.er1
25741 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025744 { ac_try='test -z "$ac_c_werror_flag"
25745 || test ! -s conftest.err'
25746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); }; } &&
25751 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; }; then
25757 ac_cv_search_dlopen="none required"
25758else
25759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025760sed 's/^/| /' conftest.$ac_ext >&5
25761
John Criswell7a73b802003-06-30 21:59:07 +000025762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025763rm -f conftest.err conftest.$ac_objext \
25764 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025765if test "$ac_cv_search_dlopen" = no; then
25766 for ac_lib in dl; do
25767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025769/* confdefs.h. */
25770_ACEOF
25771cat confdefs.h >>conftest.$ac_ext
25772cat >>conftest.$ac_ext <<_ACEOF
25773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025774
25775/* Override any gcc2 internal prototype to avoid an error. */
25776#ifdef __cplusplus
25777extern "C"
25778#endif
25779/* We use char because int might match the return type of a gcc2
25780 builtin and then its argument prototype would still apply. */
25781char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025782int
25783main ()
25784{
25785dlopen ();
25786 ;
25787 return 0;
25788}
25789_ACEOF
25790rm -f conftest.$ac_objext conftest$ac_exeext
25791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025792 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025793 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025794 grep -v '^ *+' conftest.er1 >conftest.err
25795 rm -f conftest.er1
25796 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025799 { ac_try='test -z "$ac_c_werror_flag"
25800 || test ! -s conftest.err'
25801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); }; } &&
25806 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; }; then
25812 ac_cv_search_dlopen="-l$ac_lib"
25813break
25814else
25815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025816sed 's/^/| /' conftest.$ac_ext >&5
25817
John Criswell7a73b802003-06-30 21:59:07 +000025818fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025819rm -f conftest.err conftest.$ac_objext \
25820 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025821 done
25822fi
25823LIBS=$ac_func_search_save_LIBS
25824fi
25825echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25826echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25827if test "$ac_cv_search_dlopen" != no; then
25828 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025829
25830cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025831#define HAVE_DLOPEN 1
25832_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025833
25834else
Brian Gaekec45be042003-10-07 06:01:34 +000025835 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25836echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025837fi
25838
25839
25840echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25841echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25842if test "${ac_cv_search_mallinfo+set}" = set; then
25843 echo $ECHO_N "(cached) $ECHO_C" >&6
25844else
25845 ac_func_search_save_LIBS=$LIBS
25846ac_cv_search_mallinfo=no
25847cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025848/* confdefs.h. */
25849_ACEOF
25850cat confdefs.h >>conftest.$ac_ext
25851cat >>conftest.$ac_ext <<_ACEOF
25852/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025853
25854/* Override any gcc2 internal prototype to avoid an error. */
25855#ifdef __cplusplus
25856extern "C"
25857#endif
25858/* We use char because int might match the return type of a gcc2
25859 builtin and then its argument prototype would still apply. */
25860char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025861int
25862main ()
25863{
25864mallinfo ();
25865 ;
25866 return 0;
25867}
25868_ACEOF
25869rm -f conftest.$ac_objext conftest$ac_exeext
25870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025871 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025872 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025873 grep -v '^ *+' conftest.er1 >conftest.err
25874 rm -f conftest.er1
25875 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025878 { ac_try='test -z "$ac_c_werror_flag"
25879 || test ! -s conftest.err'
25880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25881 (eval $ac_try) 2>&5
25882 ac_status=$?
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); }; } &&
25885 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887 (eval $ac_try) 2>&5
25888 ac_status=$?
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); }; }; then
25891 ac_cv_search_mallinfo="none required"
25892else
25893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025894sed 's/^/| /' conftest.$ac_ext >&5
25895
John Criswell7a73b802003-06-30 21:59:07 +000025896fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025897rm -f conftest.err conftest.$ac_objext \
25898 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025899if test "$ac_cv_search_mallinfo" = no; then
25900 for ac_lib in malloc; do
25901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25902 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025903/* confdefs.h. */
25904_ACEOF
25905cat confdefs.h >>conftest.$ac_ext
25906cat >>conftest.$ac_ext <<_ACEOF
25907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025908
25909/* Override any gcc2 internal prototype to avoid an error. */
25910#ifdef __cplusplus
25911extern "C"
25912#endif
25913/* We use char because int might match the return type of a gcc2
25914 builtin and then its argument prototype would still apply. */
25915char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025916int
25917main ()
25918{
25919mallinfo ();
25920 ;
25921 return 0;
25922}
25923_ACEOF
25924rm -f conftest.$ac_objext conftest$ac_exeext
25925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025926 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025927 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025928 grep -v '^ *+' conftest.er1 >conftest.err
25929 rm -f conftest.er1
25930 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025933 { ac_try='test -z "$ac_c_werror_flag"
25934 || test ! -s conftest.err'
25935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; } &&
25940 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25943 ac_status=$?
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; }; then
25946 ac_cv_search_mallinfo="-l$ac_lib"
25947break
25948else
25949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025950sed 's/^/| /' conftest.$ac_ext >&5
25951
John Criswell7a73b802003-06-30 21:59:07 +000025952fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025953rm -f conftest.err conftest.$ac_objext \
25954 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025955 done
25956fi
25957LIBS=$ac_func_search_save_LIBS
25958fi
25959echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25960echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25961if test "$ac_cv_search_mallinfo" != no; then
25962 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025963
25964cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025965#define HAVE_MALLINFO 1
25966_ACEOF
25967
25968fi
25969
25970
Reid Spencer0a262ba2005-08-24 10:07:20 +000025971if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025972
25973echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25974echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25975if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25977else
25978 ac_check_lib_save_LIBS=$LIBS
25979LIBS="-lpthread $LIBS"
25980cat >conftest.$ac_ext <<_ACEOF
25981/* confdefs.h. */
25982_ACEOF
25983cat confdefs.h >>conftest.$ac_ext
25984cat >>conftest.$ac_ext <<_ACEOF
25985/* end confdefs.h. */
25986
25987/* Override any gcc2 internal prototype to avoid an error. */
25988#ifdef __cplusplus
25989extern "C"
25990#endif
25991/* We use char because int might match the return type of a gcc2
25992 builtin and then its argument prototype would still apply. */
25993char pthread_mutex_init ();
25994int
25995main ()
25996{
25997pthread_mutex_init ();
25998 ;
25999 return 0;
26000}
26001_ACEOF
26002rm -f conftest.$ac_objext conftest$ac_exeext
26003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26004 (eval $ac_link) 2>conftest.er1
26005 ac_status=$?
26006 grep -v '^ *+' conftest.er1 >conftest.err
26007 rm -f conftest.er1
26008 cat conftest.err >&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } &&
26011 { ac_try='test -z "$ac_c_werror_flag"
26012 || test ! -s conftest.err'
26013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014 (eval $ac_try) 2>&5
26015 ac_status=$?
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); }; } &&
26018 { ac_try='test -s conftest$ac_exeext'
26019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); }; }; then
26024 ac_cv_lib_pthread_pthread_mutex_init=yes
26025else
26026 echo "$as_me: failed program was:" >&5
26027sed 's/^/| /' conftest.$ac_ext >&5
26028
26029ac_cv_lib_pthread_pthread_mutex_init=no
26030fi
26031rm -f conftest.err conftest.$ac_objext \
26032 conftest$ac_exeext conftest.$ac_ext
26033LIBS=$ac_check_lib_save_LIBS
26034fi
26035echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26036echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
26037if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26038 cat >>confdefs.h <<_ACEOF
26039#define HAVE_LIBPTHREAD 1
26040_ACEOF
26041
26042 LIBS="-lpthread $LIBS"
26043
26044fi
26045
Reid Spencer0a262ba2005-08-24 10:07:20 +000026046 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026047echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
26048if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26049 echo $ECHO_N "(cached) $ECHO_C" >&6
26050else
26051 ac_func_search_save_LIBS=$LIBS
26052ac_cv_search_pthread_mutex_lock=no
26053cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026054/* confdefs.h. */
26055_ACEOF
26056cat confdefs.h >>conftest.$ac_ext
26057cat >>conftest.$ac_ext <<_ACEOF
26058/* end confdefs.h. */
26059
26060/* Override any gcc2 internal prototype to avoid an error. */
26061#ifdef __cplusplus
26062extern "C"
26063#endif
26064/* We use char because int might match the return type of a gcc2
26065 builtin and then its argument prototype would still apply. */
26066char pthread_mutex_lock ();
26067int
26068main ()
26069{
26070pthread_mutex_lock ();
26071 ;
26072 return 0;
26073}
26074_ACEOF
26075rm -f conftest.$ac_objext conftest$ac_exeext
26076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026077 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026079 grep -v '^ *+' conftest.er1 >conftest.err
26080 rm -f conftest.er1
26081 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026084 { ac_try='test -z "$ac_c_werror_flag"
26085 || test ! -s conftest.err'
26086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087 (eval $ac_try) 2>&5
26088 ac_status=$?
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); }; } &&
26091 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000026092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; }; then
26097 ac_cv_search_pthread_mutex_lock="none required"
26098else
26099 echo "$as_me: failed program was:" >&5
26100sed 's/^/| /' conftest.$ac_ext >&5
26101
26102fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026103rm -f conftest.err conftest.$ac_objext \
26104 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026105if test "$ac_cv_search_pthread_mutex_lock" = no; then
26106 for ac_lib in pthread; do
26107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26108 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026109/* confdefs.h. */
26110_ACEOF
26111cat confdefs.h >>conftest.$ac_ext
26112cat >>conftest.$ac_ext <<_ACEOF
26113/* end confdefs.h. */
26114
26115/* Override any gcc2 internal prototype to avoid an error. */
26116#ifdef __cplusplus
26117extern "C"
26118#endif
26119/* We use char because int might match the return type of a gcc2
26120 builtin and then its argument prototype would still apply. */
26121char pthread_mutex_lock ();
26122int
26123main ()
26124{
26125pthread_mutex_lock ();
26126 ;
26127 return 0;
26128}
26129_ACEOF
26130rm -f conftest.$ac_objext conftest$ac_exeext
26131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026132 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026133 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026134 grep -v '^ *+' conftest.er1 >conftest.err
26135 rm -f conftest.er1
26136 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026139 { ac_try='test -z "$ac_c_werror_flag"
26140 || test ! -s conftest.err'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26143 ac_status=$?
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000026147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26153break
26154else
26155 echo "$as_me: failed program was:" >&5
26156sed 's/^/| /' conftest.$ac_ext >&5
26157
26158fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026159rm -f conftest.err conftest.$ac_objext \
26160 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026161 done
26162fi
26163LIBS=$ac_func_search_save_LIBS
26164fi
26165echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26166echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26167if test "$ac_cv_search_pthread_mutex_lock" != no; then
26168 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000026169
John Criswell40468462004-09-24 21:19:06 +000026170cat >>confdefs.h <<\_ACEOF
26171#define HAVE_PTHREAD_MUTEX_LOCK 1
26172_ACEOF
26173
26174fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000026175
Reid Spencer0a262ba2005-08-24 10:07:20 +000026176fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000026177
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026178
Reid Spencer59473af2004-12-25 07:31:29 +000026179
26180
26181
26182
26183
26184ac_header_dirent=no
26185for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26186 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26187echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26188echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26189if eval "test \"\${$as_ac_Header+set}\" = set"; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26191else
26192 cat >conftest.$ac_ext <<_ACEOF
26193/* confdefs.h. */
26194_ACEOF
26195cat confdefs.h >>conftest.$ac_ext
26196cat >>conftest.$ac_ext <<_ACEOF
26197/* end confdefs.h. */
26198#include <sys/types.h>
26199#include <$ac_hdr>
26200
26201int
26202main ()
26203{
26204if ((DIR *) 0)
26205return 0;
26206 ;
26207 return 0;
26208}
26209_ACEOF
26210rm -f conftest.$ac_objext
26211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26212 (eval $ac_compile) 2>conftest.er1
26213 ac_status=$?
26214 grep -v '^ *+' conftest.er1 >conftest.err
26215 rm -f conftest.er1
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); } &&
26219 { ac_try='test -z "$ac_c_werror_flag"
26220 || test ! -s conftest.err'
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26223 ac_status=$?
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; } &&
26226 { ac_try='test -s conftest.$ac_objext'
26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228 (eval $ac_try) 2>&5
26229 ac_status=$?
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); }; }; then
26232 eval "$as_ac_Header=yes"
26233else
26234 echo "$as_me: failed program was:" >&5
26235sed 's/^/| /' conftest.$ac_ext >&5
26236
26237eval "$as_ac_Header=no"
26238fi
26239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26240fi
26241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26243if test `eval echo '${'$as_ac_Header'}'` = yes; then
26244 cat >>confdefs.h <<_ACEOF
26245#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26246_ACEOF
26247
26248ac_header_dirent=$ac_hdr; break
26249fi
26250
26251done
26252# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26253if test $ac_header_dirent = dirent.h; then
26254 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26255echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26256if test "${ac_cv_search_opendir+set}" = set; then
26257 echo $ECHO_N "(cached) $ECHO_C" >&6
26258else
26259 ac_func_search_save_LIBS=$LIBS
26260ac_cv_search_opendir=no
26261cat >conftest.$ac_ext <<_ACEOF
26262/* confdefs.h. */
26263_ACEOF
26264cat confdefs.h >>conftest.$ac_ext
26265cat >>conftest.$ac_ext <<_ACEOF
26266/* end confdefs.h. */
26267
26268/* Override any gcc2 internal prototype to avoid an error. */
26269#ifdef __cplusplus
26270extern "C"
26271#endif
26272/* We use char because int might match the return type of a gcc2
26273 builtin and then its argument prototype would still apply. */
26274char opendir ();
26275int
26276main ()
26277{
26278opendir ();
26279 ;
26280 return 0;
26281}
26282_ACEOF
26283rm -f conftest.$ac_objext conftest$ac_exeext
26284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26285 (eval $ac_link) 2>conftest.er1
26286 ac_status=$?
26287 grep -v '^ *+' conftest.er1 >conftest.err
26288 rm -f conftest.er1
26289 cat conftest.err >&5
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } &&
26292 { ac_try='test -z "$ac_c_werror_flag"
26293 || test ! -s conftest.err'
26294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26295 (eval $ac_try) 2>&5
26296 ac_status=$?
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); }; } &&
26299 { ac_try='test -s conftest$ac_exeext'
26300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26301 (eval $ac_try) 2>&5
26302 ac_status=$?
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); }; }; then
26305 ac_cv_search_opendir="none required"
26306else
26307 echo "$as_me: failed program was:" >&5
26308sed 's/^/| /' conftest.$ac_ext >&5
26309
26310fi
26311rm -f conftest.err conftest.$ac_objext \
26312 conftest$ac_exeext conftest.$ac_ext
26313if test "$ac_cv_search_opendir" = no; then
26314 for ac_lib in dir; do
26315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26316 cat >conftest.$ac_ext <<_ACEOF
26317/* confdefs.h. */
26318_ACEOF
26319cat confdefs.h >>conftest.$ac_ext
26320cat >>conftest.$ac_ext <<_ACEOF
26321/* end confdefs.h. */
26322
26323/* Override any gcc2 internal prototype to avoid an error. */
26324#ifdef __cplusplus
26325extern "C"
26326#endif
26327/* We use char because int might match the return type of a gcc2
26328 builtin and then its argument prototype would still apply. */
26329char opendir ();
26330int
26331main ()
26332{
26333opendir ();
26334 ;
26335 return 0;
26336}
26337_ACEOF
26338rm -f conftest.$ac_objext conftest$ac_exeext
26339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26340 (eval $ac_link) 2>conftest.er1
26341 ac_status=$?
26342 grep -v '^ *+' conftest.er1 >conftest.err
26343 rm -f conftest.er1
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } &&
26347 { ac_try='test -z "$ac_c_werror_flag"
26348 || test ! -s conftest.err'
26349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350 (eval $ac_try) 2>&5
26351 ac_status=$?
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); }; } &&
26354 { ac_try='test -s conftest$ac_exeext'
26355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); }; }; then
26360 ac_cv_search_opendir="-l$ac_lib"
26361break
26362else
26363 echo "$as_me: failed program was:" >&5
26364sed 's/^/| /' conftest.$ac_ext >&5
26365
26366fi
26367rm -f conftest.err conftest.$ac_objext \
26368 conftest$ac_exeext conftest.$ac_ext
26369 done
26370fi
26371LIBS=$ac_func_search_save_LIBS
26372fi
26373echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26374echo "${ECHO_T}$ac_cv_search_opendir" >&6
26375if test "$ac_cv_search_opendir" != no; then
26376 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26377
26378fi
26379
26380else
26381 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26382echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26383if test "${ac_cv_search_opendir+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26385else
26386 ac_func_search_save_LIBS=$LIBS
26387ac_cv_search_opendir=no
26388cat >conftest.$ac_ext <<_ACEOF
26389/* confdefs.h. */
26390_ACEOF
26391cat confdefs.h >>conftest.$ac_ext
26392cat >>conftest.$ac_ext <<_ACEOF
26393/* end confdefs.h. */
26394
26395/* Override any gcc2 internal prototype to avoid an error. */
26396#ifdef __cplusplus
26397extern "C"
26398#endif
26399/* We use char because int might match the return type of a gcc2
26400 builtin and then its argument prototype would still apply. */
26401char opendir ();
26402int
26403main ()
26404{
26405opendir ();
26406 ;
26407 return 0;
26408}
26409_ACEOF
26410rm -f conftest.$ac_objext conftest$ac_exeext
26411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26412 (eval $ac_link) 2>conftest.er1
26413 ac_status=$?
26414 grep -v '^ *+' conftest.er1 >conftest.err
26415 rm -f conftest.er1
26416 cat conftest.err >&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } &&
26419 { ac_try='test -z "$ac_c_werror_flag"
26420 || test ! -s conftest.err'
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; } &&
26426 { ac_try='test -s conftest$ac_exeext'
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; }; then
26432 ac_cv_search_opendir="none required"
26433else
26434 echo "$as_me: failed program was:" >&5
26435sed 's/^/| /' conftest.$ac_ext >&5
26436
26437fi
26438rm -f conftest.err conftest.$ac_objext \
26439 conftest$ac_exeext conftest.$ac_ext
26440if test "$ac_cv_search_opendir" = no; then
26441 for ac_lib in x; do
26442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26443 cat >conftest.$ac_ext <<_ACEOF
26444/* confdefs.h. */
26445_ACEOF
26446cat confdefs.h >>conftest.$ac_ext
26447cat >>conftest.$ac_ext <<_ACEOF
26448/* end confdefs.h. */
26449
26450/* Override any gcc2 internal prototype to avoid an error. */
26451#ifdef __cplusplus
26452extern "C"
26453#endif
26454/* We use char because int might match the return type of a gcc2
26455 builtin and then its argument prototype would still apply. */
26456char opendir ();
26457int
26458main ()
26459{
26460opendir ();
26461 ;
26462 return 0;
26463}
26464_ACEOF
26465rm -f conftest.$ac_objext conftest$ac_exeext
26466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26467 (eval $ac_link) 2>conftest.er1
26468 ac_status=$?
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } &&
26474 { ac_try='test -z "$ac_c_werror_flag"
26475 || test ! -s conftest.err'
26476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477 (eval $ac_try) 2>&5
26478 ac_status=$?
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); }; } &&
26481 { ac_try='test -s conftest$ac_exeext'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; }; then
26487 ac_cv_search_opendir="-l$ac_lib"
26488break
26489else
26490 echo "$as_me: failed program was:" >&5
26491sed 's/^/| /' conftest.$ac_ext >&5
26492
26493fi
26494rm -f conftest.err conftest.$ac_objext \
26495 conftest$ac_exeext conftest.$ac_ext
26496 done
26497fi
26498LIBS=$ac_func_search_save_LIBS
26499fi
26500echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26501echo "${ECHO_T}$ac_cv_search_opendir" >&6
26502if test "$ac_cv_search_opendir" != no; then
26503 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26504
26505fi
26506
26507fi
26508
26509echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26510echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26511if test "${ac_cv_header_mmap_anon+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26513else
26514 ac_ext=c
26515ac_cpp='$CPP $CPPFLAGS'
26516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26518ac_compiler_gnu=$ac_cv_c_compiler_gnu
26519
26520 cat >conftest.$ac_ext <<_ACEOF
26521/* confdefs.h. */
26522_ACEOF
26523cat confdefs.h >>conftest.$ac_ext
26524cat >>conftest.$ac_ext <<_ACEOF
26525/* end confdefs.h. */
26526#include <sys/mman.h>
26527#include <unistd.h>
26528#include <fcntl.h>
26529int
26530main ()
26531{
26532mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26533 ;
26534 return 0;
26535}
26536_ACEOF
26537rm -f conftest.$ac_objext
26538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26539 (eval $ac_compile) 2>conftest.er1
26540 ac_status=$?
26541 grep -v '^ *+' conftest.er1 >conftest.err
26542 rm -f conftest.er1
26543 cat conftest.err >&5
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); } &&
26546 { ac_try='test -z "$ac_c_werror_flag"
26547 || test ! -s conftest.err'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26550 ac_status=$?
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; } &&
26553 { ac_try='test -s conftest.$ac_objext'
26554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555 (eval $ac_try) 2>&5
26556 ac_status=$?
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); }; }; then
26559 ac_cv_header_mmap_anon=yes
26560else
26561 echo "$as_me: failed program was:" >&5
26562sed 's/^/| /' conftest.$ac_ext >&5
26563
26564ac_cv_header_mmap_anon=no
26565fi
26566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26567 ac_ext=c
26568ac_cpp='$CPP $CPPFLAGS'
26569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26571ac_compiler_gnu=$ac_cv_c_compiler_gnu
26572
26573
26574fi
26575echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26576echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26577if test "$ac_cv_header_mmap_anon" = yes; then
26578
26579cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026580#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026581_ACEOF
26582
26583fi
26584
26585echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26586echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26587if test "${ac_cv_header_stat_broken+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26589else
26590 cat >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 <sys/types.h>
26597#include <sys/stat.h>
26598
26599#if defined(S_ISBLK) && defined(S_IFDIR)
26600# if S_ISBLK (S_IFDIR)
26601You lose.
26602# endif
26603#endif
26604
26605#if defined(S_ISBLK) && defined(S_IFCHR)
26606# if S_ISBLK (S_IFCHR)
26607You lose.
26608# endif
26609#endif
26610
26611#if defined(S_ISLNK) && defined(S_IFREG)
26612# if S_ISLNK (S_IFREG)
26613You lose.
26614# endif
26615#endif
26616
26617#if defined(S_ISSOCK) && defined(S_IFREG)
26618# if S_ISSOCK (S_IFREG)
26619You lose.
26620# endif
26621#endif
26622
26623_ACEOF
26624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26625 $EGREP "You lose" >/dev/null 2>&1; then
26626 ac_cv_header_stat_broken=yes
26627else
26628 ac_cv_header_stat_broken=no
26629fi
26630rm -f conftest*
26631
26632fi
26633echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26634echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26635if test $ac_cv_header_stat_broken = yes; then
26636
26637cat >>confdefs.h <<\_ACEOF
26638#define STAT_MACROS_BROKEN 1
26639_ACEOF
26640
26641fi
26642
John Criswell7a73b802003-06-30 21:59:07 +000026643echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26644echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26645if test "${ac_cv_header_stdc+set}" = set; then
26646 echo $ECHO_N "(cached) $ECHO_C" >&6
26647else
26648 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026649/* confdefs.h. */
26650_ACEOF
26651cat confdefs.h >>conftest.$ac_ext
26652cat >>conftest.$ac_ext <<_ACEOF
26653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026654#include <stdlib.h>
26655#include <stdarg.h>
26656#include <string.h>
26657#include <float.h>
26658
John Criswell0c38eaf2003-09-10 15:17:25 +000026659int
26660main ()
26661{
26662
26663 ;
26664 return 0;
26665}
John Criswell7a73b802003-06-30 21:59:07 +000026666_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026667rm -f conftest.$ac_objext
26668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026669 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026670 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026671 grep -v '^ *+' conftest.er1 >conftest.err
26672 rm -f conftest.er1
26673 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026675 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026676 { ac_try='test -z "$ac_c_werror_flag"
26677 || test ! -s conftest.err'
26678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679 (eval $ac_try) 2>&5
26680 ac_status=$?
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; } &&
26683 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026689 ac_cv_header_stdc=yes
26690else
26691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026692sed 's/^/| /' conftest.$ac_ext >&5
26693
26694ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026695fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026697
26698if test $ac_cv_header_stdc = yes; then
26699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26700 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026701/* confdefs.h. */
26702_ACEOF
26703cat confdefs.h >>conftest.$ac_ext
26704cat >>conftest.$ac_ext <<_ACEOF
26705/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026706#include <string.h>
26707
26708_ACEOF
26709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026710 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026711 :
26712else
26713 ac_cv_header_stdc=no
26714fi
26715rm -f conftest*
26716
26717fi
26718
26719if test $ac_cv_header_stdc = yes; then
26720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26721 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026722/* confdefs.h. */
26723_ACEOF
26724cat confdefs.h >>conftest.$ac_ext
26725cat >>conftest.$ac_ext <<_ACEOF
26726/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026727#include <stdlib.h>
26728
26729_ACEOF
26730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026731 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026732 :
26733else
26734 ac_cv_header_stdc=no
26735fi
26736rm -f conftest*
26737
26738fi
26739
26740if test $ac_cv_header_stdc = yes; then
26741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26742 if test "$cross_compiling" = yes; then
26743 :
26744else
26745 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026746/* confdefs.h. */
26747_ACEOF
26748cat confdefs.h >>conftest.$ac_ext
26749cat >>conftest.$ac_ext <<_ACEOF
26750/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026751#include <ctype.h>
26752#if ((' ' & 0x0FF) == 0x020)
26753# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26754# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26755#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026756# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026757 (('a' <= (c) && (c) <= 'i') \
26758 || ('j' <= (c) && (c) <= 'r') \
26759 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026760# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26761#endif
26762
26763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26764int
26765main ()
26766{
26767 int i;
26768 for (i = 0; i < 256; i++)
26769 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026770 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026771 exit(2);
26772 exit (0);
26773}
26774_ACEOF
26775rm -f conftest$ac_exeext
26776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26777 (eval $ac_link) 2>&5
26778 ac_status=$?
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); }; }; then
26786 :
26787else
26788 echo "$as_me: program exited with status $ac_status" >&5
26789echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026790sed 's/^/| /' conftest.$ac_ext >&5
26791
John Criswell7a73b802003-06-30 21:59:07 +000026792( exit $ac_status )
26793ac_cv_header_stdc=no
26794fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026795rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026796fi
26797fi
26798fi
26799echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26800echo "${ECHO_T}$ac_cv_header_stdc" >&6
26801if test $ac_cv_header_stdc = yes; then
26802
26803cat >>confdefs.h <<\_ACEOF
26804#define STDC_HEADERS 1
26805_ACEOF
26806
26807fi
26808
26809echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26810echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26811if test "${ac_cv_header_sys_wait_h+set}" = set; then
26812 echo $ECHO_N "(cached) $ECHO_C" >&6
26813else
26814 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026815/* confdefs.h. */
26816_ACEOF
26817cat confdefs.h >>conftest.$ac_ext
26818cat >>conftest.$ac_ext <<_ACEOF
26819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026820#include <sys/types.h>
26821#include <sys/wait.h>
26822#ifndef WEXITSTATUS
26823# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26824#endif
26825#ifndef WIFEXITED
26826# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26827#endif
26828
John Criswell7a73b802003-06-30 21:59:07 +000026829int
26830main ()
26831{
26832 int s;
26833 wait (&s);
26834 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26835 ;
26836 return 0;
26837}
26838_ACEOF
26839rm -f conftest.$ac_objext
26840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026841 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026842 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026843 grep -v '^ *+' conftest.er1 >conftest.err
26844 rm -f conftest.er1
26845 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026848 { ac_try='test -z "$ac_c_werror_flag"
26849 || test ! -s conftest.err'
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; } &&
26855 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26858 ac_status=$?
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; }; then
26861 ac_cv_header_sys_wait_h=yes
26862else
26863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026864sed 's/^/| /' conftest.$ac_ext >&5
26865
John Criswell7a73b802003-06-30 21:59:07 +000026866ac_cv_header_sys_wait_h=no
26867fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026869fi
26870echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26871echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26872if test $ac_cv_header_sys_wait_h = yes; then
26873
26874cat >>confdefs.h <<\_ACEOF
26875#define HAVE_SYS_WAIT_H 1
26876_ACEOF
26877
26878fi
26879
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026880echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26881echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26882if test "${ac_cv_header_time+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26884else
26885 cat >conftest.$ac_ext <<_ACEOF
26886/* confdefs.h. */
26887_ACEOF
26888cat confdefs.h >>conftest.$ac_ext
26889cat >>conftest.$ac_ext <<_ACEOF
26890/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026891#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026892#include <sys/time.h>
26893#include <time.h>
26894
26895int
26896main ()
26897{
26898if ((struct tm *) 0)
26899return 0;
26900 ;
26901 return 0;
26902}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026903_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026904rm -f conftest.$ac_objext
26905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26906 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026907 ac_status=$?
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026912 (exit $ac_status); } &&
26913 { ac_try='test -z "$ac_c_werror_flag"
26914 || test ! -s conftest.err'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest.$ac_objext'
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026927else
26928 echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026931ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026932fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26934fi
26935echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26936echo "${ECHO_T}$ac_cv_header_time" >&6
26937if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026938
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026939cat >>confdefs.h <<\_ACEOF
26940#define TIME_WITH_SYS_TIME 1
26941_ACEOF
26942
26943fi
26944
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026945
Reid Spencer59473af2004-12-25 07:31:29 +000026946
26947
26948
26949
26950
26951
26952for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26953do
26954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26955if eval "test \"\${$as_ac_Header+set}\" = set"; then
26956 echo "$as_me:$LINENO: checking for $ac_header" >&5
26957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26958if eval "test \"\${$as_ac_Header+set}\" = set"; then
26959 echo $ECHO_N "(cached) $ECHO_C" >&6
26960fi
26961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26963else
26964 # Is the header compilable?
26965echo "$as_me:$LINENO: checking $ac_header usability" >&5
26966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26967cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026968/* confdefs.h. */
26969_ACEOF
26970cat confdefs.h >>conftest.$ac_ext
26971cat >>conftest.$ac_ext <<_ACEOF
26972/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026973$ac_includes_default
26974#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026975_ACEOF
26976rm -f conftest.$ac_objext
26977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26978 (eval $ac_compile) 2>conftest.er1
26979 ac_status=$?
26980 grep -v '^ *+' conftest.er1 >conftest.err
26981 rm -f conftest.er1
26982 cat conftest.err >&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); } &&
26985 { ac_try='test -z "$ac_c_werror_flag"
26986 || test ! -s conftest.err'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; } &&
26992 { ac_try='test -s conftest.$ac_objext'
26993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994 (eval $ac_try) 2>&5
26995 ac_status=$?
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026998 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026999else
27000 echo "$as_me: failed program was:" >&5
27001sed 's/^/| /' conftest.$ac_ext >&5
27002
Reid Spencer59473af2004-12-25 07:31:29 +000027003ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027004fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027006echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27007echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027008
Reid Spencer59473af2004-12-25 07:31:29 +000027009# Is the header present?
27010echo "$as_me:$LINENO: checking $ac_header presence" >&5
27011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27012cat >conftest.$ac_ext <<_ACEOF
27013/* confdefs.h. */
27014_ACEOF
27015cat confdefs.h >>conftest.$ac_ext
27016cat >>conftest.$ac_ext <<_ACEOF
27017/* end confdefs.h. */
27018#include <$ac_header>
27019_ACEOF
27020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27022 ac_status=$?
27023 grep -v '^ *+' conftest.er1 >conftest.err
27024 rm -f conftest.er1
27025 cat conftest.err >&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); } >/dev/null; then
27028 if test -s conftest.err; then
27029 ac_cpp_err=$ac_c_preproc_warn_flag
27030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27031 else
27032 ac_cpp_err=
27033 fi
27034else
27035 ac_cpp_err=yes
27036fi
27037if test -z "$ac_cpp_err"; then
27038 ac_header_preproc=yes
27039else
27040 echo "$as_me: failed program was:" >&5
27041sed 's/^/| /' conftest.$ac_ext >&5
27042
27043 ac_header_preproc=no
27044fi
27045rm -f conftest.err conftest.$ac_ext
27046echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27047echo "${ECHO_T}$ac_header_preproc" >&6
27048
27049# So? What about this header?
27050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27051 yes:no: )
27052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27056 ac_header_preproc=yes
27057 ;;
27058 no:yes:* )
27059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27066echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27071 (
27072 cat <<\_ASBOX
27073## ----------------------------------- ##
27074## Report this to llvmbugs@cs.uiuc.edu ##
27075## ----------------------------------- ##
27076_ASBOX
27077 ) |
27078 sed "s/^/$as_me: WARNING: /" >&2
27079 ;;
27080esac
27081echo "$as_me:$LINENO: checking for $ac_header" >&5
27082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27083if eval "test \"\${$as_ac_Header+set}\" = set"; then
27084 echo $ECHO_N "(cached) $ECHO_C" >&6
27085else
27086 eval "$as_ac_Header=\$ac_header_preproc"
27087fi
27088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027090
27091fi
Reid Spencer59473af2004-12-25 07:31:29 +000027092if test `eval echo '${'$as_ac_Header'}'` = yes; then
27093 cat >>confdefs.h <<_ACEOF
27094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027095_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027096
27097fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027098
Reid Spencer59473af2004-12-25 07:31:29 +000027099done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027100
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027101
27102
Reid Spencer59473af2004-12-25 07:31:29 +000027103
27104
27105
27106
Reid Spencercdb08a32006-06-05 16:11:07 +000027107for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000027108do
27109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27110if eval "test \"\${$as_ac_Header+set}\" = set"; then
27111 echo "$as_me:$LINENO: checking for $ac_header" >&5
27112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27113if eval "test \"\${$as_ac_Header+set}\" = set"; then
27114 echo $ECHO_N "(cached) $ECHO_C" >&6
27115fi
27116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27118else
27119 # Is the header compilable?
27120echo "$as_me:$LINENO: checking $ac_header usability" >&5
27121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27122cat >conftest.$ac_ext <<_ACEOF
27123/* confdefs.h. */
27124_ACEOF
27125cat confdefs.h >>conftest.$ac_ext
27126cat >>conftest.$ac_ext <<_ACEOF
27127/* end confdefs.h. */
27128$ac_includes_default
27129#include <$ac_header>
27130_ACEOF
27131rm -f conftest.$ac_objext
27132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133 (eval $ac_compile) 2>conftest.er1
27134 ac_status=$?
27135 grep -v '^ *+' conftest.er1 >conftest.err
27136 rm -f conftest.er1
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
27140 { ac_try='test -z "$ac_c_werror_flag"
27141 || test ! -s conftest.err'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27144 ac_status=$?
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; } &&
27147 { ac_try='test -s conftest.$ac_objext'
27148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; }; then
27153 ac_header_compiler=yes
27154else
27155 echo "$as_me: failed program was:" >&5
27156sed 's/^/| /' conftest.$ac_ext >&5
27157
27158ac_header_compiler=no
27159fi
27160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27161echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27162echo "${ECHO_T}$ac_header_compiler" >&6
27163
27164# Is the header present?
27165echo "$as_me:$LINENO: checking $ac_header presence" >&5
27166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27167cat >conftest.$ac_ext <<_ACEOF
27168/* confdefs.h. */
27169_ACEOF
27170cat confdefs.h >>conftest.$ac_ext
27171cat >>conftest.$ac_ext <<_ACEOF
27172/* end confdefs.h. */
27173#include <$ac_header>
27174_ACEOF
27175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27177 ac_status=$?
27178 grep -v '^ *+' conftest.er1 >conftest.err
27179 rm -f conftest.er1
27180 cat conftest.err >&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } >/dev/null; then
27183 if test -s conftest.err; then
27184 ac_cpp_err=$ac_c_preproc_warn_flag
27185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27186 else
27187 ac_cpp_err=
27188 fi
27189else
27190 ac_cpp_err=yes
27191fi
27192if test -z "$ac_cpp_err"; then
27193 ac_header_preproc=yes
27194else
27195 echo "$as_me: failed program was:" >&5
27196sed 's/^/| /' conftest.$ac_ext >&5
27197
27198 ac_header_preproc=no
27199fi
27200rm -f conftest.err conftest.$ac_ext
27201echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27202echo "${ECHO_T}$ac_header_preproc" >&6
27203
27204# So? What about this header?
27205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27206 yes:no: )
27207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27211 ac_header_preproc=yes
27212 ;;
27213 no:yes:* )
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27221echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27226 (
27227 cat <<\_ASBOX
27228## ----------------------------------- ##
27229## Report this to llvmbugs@cs.uiuc.edu ##
27230## ----------------------------------- ##
27231_ASBOX
27232 ) |
27233 sed "s/^/$as_me: WARNING: /" >&2
27234 ;;
27235esac
27236echo "$as_me:$LINENO: checking for $ac_header" >&5
27237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27238if eval "test \"\${$as_ac_Header+set}\" = set"; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27240else
27241 eval "$as_ac_Header=\$ac_header_preproc"
27242fi
27243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27245
27246fi
27247if test `eval echo '${'$as_ac_Header'}'` = yes; then
27248 cat >>confdefs.h <<_ACEOF
27249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27250_ACEOF
27251
27252fi
27253
27254done
27255
27256
27257
27258
27259
27260
Reid Spencercdb08a32006-06-05 16:11:07 +000027261for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027262do
27263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27264if eval "test \"\${$as_ac_Header+set}\" = set"; then
27265 echo "$as_me:$LINENO: checking for $ac_header" >&5
27266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27267if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027268 echo $ECHO_N "(cached) $ECHO_C" >&6
27269fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027272else
27273 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027274echo "$as_me:$LINENO: checking $ac_header usability" >&5
27275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027276cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027277/* confdefs.h. */
27278_ACEOF
27279cat confdefs.h >>conftest.$ac_ext
27280cat >>conftest.$ac_ext <<_ACEOF
27281/* end confdefs.h. */
27282$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027283#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027284_ACEOF
27285rm -f conftest.$ac_objext
27286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027287 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027288 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027289 grep -v '^ *+' conftest.er1 >conftest.err
27290 rm -f conftest.er1
27291 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027294 { ac_try='test -z "$ac_c_werror_flag"
27295 || test ! -s conftest.err'
27296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297 (eval $ac_try) 2>&5
27298 ac_status=$?
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); }; } &&
27301 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; }; then
27307 ac_header_compiler=yes
27308else
27309 echo "$as_me: failed program was:" >&5
27310sed 's/^/| /' conftest.$ac_ext >&5
27311
27312ac_header_compiler=no
27313fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27316echo "${ECHO_T}$ac_header_compiler" >&6
27317
27318# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027319echo "$as_me:$LINENO: checking $ac_header presence" >&5
27320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027321cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027322/* confdefs.h. */
27323_ACEOF
27324cat confdefs.h >>conftest.$ac_ext
27325cat >>conftest.$ac_ext <<_ACEOF
27326/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027327#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027328_ACEOF
27329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27331 ac_status=$?
27332 grep -v '^ *+' conftest.er1 >conftest.err
27333 rm -f conftest.er1
27334 cat conftest.err >&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); } >/dev/null; then
27337 if test -s conftest.err; then
27338 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000027339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027340 else
27341 ac_cpp_err=
27342 fi
27343else
27344 ac_cpp_err=yes
27345fi
27346if test -z "$ac_cpp_err"; then
27347 ac_header_preproc=yes
27348else
27349 echo "$as_me: failed program was:" >&5
27350sed 's/^/| /' conftest.$ac_ext >&5
27351
27352 ac_header_preproc=no
27353fi
27354rm -f conftest.err conftest.$ac_ext
27355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27356echo "${ECHO_T}$ac_header_preproc" >&6
27357
27358# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27360 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027365 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027366 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027367 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000027380 (
27381 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027382## ----------------------------------- ##
27383## Report this to llvmbugs@cs.uiuc.edu ##
27384## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027385_ASBOX
27386 ) |
27387 sed "s/^/$as_me: WARNING: /" >&2
27388 ;;
27389esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027390echo "$as_me:$LINENO: checking for $ac_header" >&5
27391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27392if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027393 echo $ECHO_N "(cached) $ECHO_C" >&6
27394else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027395 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027396fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027399
27400fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027401if test `eval echo '${'$as_ac_Header'}'` = yes; then
27402 cat >>confdefs.h <<_ACEOF
27403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027404_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027405
27406fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027407
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027408done
27409
John Criswell7ed43ad2004-07-19 16:12:29 +000027410
Reid Spencercdb08a32006-06-05 16:11:07 +000027411
27412for ac_header in sys/types.h malloc/malloc.h
Chris Lattner0b142592005-11-14 06:57:34 +000027413do
27414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27415if eval "test \"\${$as_ac_Header+set}\" = set"; then
27416 echo "$as_me:$LINENO: checking for $ac_header" >&5
27417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27418if eval "test \"\${$as_ac_Header+set}\" = set"; then
27419 echo $ECHO_N "(cached) $ECHO_C" >&6
27420fi
27421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27423else
27424 # Is the header compilable?
27425echo "$as_me:$LINENO: checking $ac_header usability" >&5
27426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27427cat >conftest.$ac_ext <<_ACEOF
27428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
27433$ac_includes_default
27434#include <$ac_header>
27435_ACEOF
27436rm -f conftest.$ac_objext
27437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27438 (eval $ac_compile) 2>conftest.er1
27439 ac_status=$?
27440 grep -v '^ *+' conftest.er1 >conftest.err
27441 rm -f conftest.er1
27442 cat conftest.err >&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); } &&
27445 { ac_try='test -z "$ac_c_werror_flag"
27446 || test ! -s conftest.err'
27447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27448 (eval $ac_try) 2>&5
27449 ac_status=$?
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; } &&
27452 { ac_try='test -s conftest.$ac_objext'
27453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454 (eval $ac_try) 2>&5
27455 ac_status=$?
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); }; }; then
27458 ac_header_compiler=yes
27459else
27460 echo "$as_me: failed program was:" >&5
27461sed 's/^/| /' conftest.$ac_ext >&5
27462
27463ac_header_compiler=no
27464fi
27465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27467echo "${ECHO_T}$ac_header_compiler" >&6
27468
27469# Is the header present?
27470echo "$as_me:$LINENO: checking $ac_header presence" >&5
27471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27472cat >conftest.$ac_ext <<_ACEOF
27473/* confdefs.h. */
27474_ACEOF
27475cat confdefs.h >>conftest.$ac_ext
27476cat >>conftest.$ac_ext <<_ACEOF
27477/* end confdefs.h. */
27478#include <$ac_header>
27479_ACEOF
27480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27482 ac_status=$?
27483 grep -v '^ *+' conftest.er1 >conftest.err
27484 rm -f conftest.er1
27485 cat conftest.err >&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); } >/dev/null; then
27488 if test -s conftest.err; then
27489 ac_cpp_err=$ac_c_preproc_warn_flag
27490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27491 else
27492 ac_cpp_err=
27493 fi
27494else
27495 ac_cpp_err=yes
27496fi
27497if test -z "$ac_cpp_err"; then
27498 ac_header_preproc=yes
27499else
27500 echo "$as_me: failed program was:" >&5
27501sed 's/^/| /' conftest.$ac_ext >&5
27502
27503 ac_header_preproc=no
27504fi
27505rm -f conftest.err conftest.$ac_ext
27506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27507echo "${ECHO_T}$ac_header_preproc" >&6
27508
27509# So? What about this header?
27510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27511 yes:no: )
27512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27516 ac_header_preproc=yes
27517 ;;
27518 no:yes:* )
27519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27531 (
27532 cat <<\_ASBOX
27533## ----------------------------------- ##
27534## Report this to llvmbugs@cs.uiuc.edu ##
27535## ----------------------------------- ##
27536_ASBOX
27537 ) |
27538 sed "s/^/$as_me: WARNING: /" >&2
27539 ;;
27540esac
27541echo "$as_me:$LINENO: checking for $ac_header" >&5
27542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27543if eval "test \"\${$as_ac_Header+set}\" = set"; then
27544 echo $ECHO_N "(cached) $ECHO_C" >&6
27545else
27546 eval "$as_ac_Header=\$ac_header_preproc"
27547fi
27548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27550
27551fi
27552if test `eval echo '${'$as_ac_Header'}'` = yes; then
27553 cat >>confdefs.h <<_ACEOF
27554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27555_ACEOF
27556
27557fi
27558
27559done
27560
Reid Spencer0a262ba2005-08-24 10:07:20 +000027561if test "$ENABLE_THREADS" -eq 1 ; then
27562
27563for ac_header in pthread.h
27564do
27565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27566if eval "test \"\${$as_ac_Header+set}\" = set"; then
27567 echo "$as_me:$LINENO: checking for $ac_header" >&5
27568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27569if eval "test \"\${$as_ac_Header+set}\" = set"; then
27570 echo $ECHO_N "(cached) $ECHO_C" >&6
27571fi
27572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27574else
27575 # Is the header compilable?
27576echo "$as_me:$LINENO: checking $ac_header usability" >&5
27577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27578cat >conftest.$ac_ext <<_ACEOF
27579/* confdefs.h. */
27580_ACEOF
27581cat confdefs.h >>conftest.$ac_ext
27582cat >>conftest.$ac_ext <<_ACEOF
27583/* end confdefs.h. */
27584$ac_includes_default
27585#include <$ac_header>
27586_ACEOF
27587rm -f conftest.$ac_objext
27588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27589 (eval $ac_compile) 2>conftest.er1
27590 ac_status=$?
27591 grep -v '^ *+' conftest.er1 >conftest.err
27592 rm -f conftest.er1
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } &&
27596 { ac_try='test -z "$ac_c_werror_flag"
27597 || test ! -s conftest.err'
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27600 ac_status=$?
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; } &&
27603 { ac_try='test -s conftest.$ac_objext'
27604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605 (eval $ac_try) 2>&5
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; }; then
27609 ac_header_compiler=yes
27610else
27611 echo "$as_me: failed program was:" >&5
27612sed 's/^/| /' conftest.$ac_ext >&5
27613
27614ac_header_compiler=no
27615fi
27616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27618echo "${ECHO_T}$ac_header_compiler" >&6
27619
27620# Is the header present?
27621echo "$as_me:$LINENO: checking $ac_header presence" >&5
27622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27623cat >conftest.$ac_ext <<_ACEOF
27624/* confdefs.h. */
27625_ACEOF
27626cat confdefs.h >>conftest.$ac_ext
27627cat >>conftest.$ac_ext <<_ACEOF
27628/* end confdefs.h. */
27629#include <$ac_header>
27630_ACEOF
27631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27633 ac_status=$?
27634 grep -v '^ *+' conftest.er1 >conftest.err
27635 rm -f conftest.er1
27636 cat conftest.err >&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); } >/dev/null; then
27639 if test -s conftest.err; then
27640 ac_cpp_err=$ac_c_preproc_warn_flag
27641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27642 else
27643 ac_cpp_err=
27644 fi
27645else
27646 ac_cpp_err=yes
27647fi
27648if test -z "$ac_cpp_err"; then
27649 ac_header_preproc=yes
27650else
27651 echo "$as_me: failed program was:" >&5
27652sed 's/^/| /' conftest.$ac_ext >&5
27653
27654 ac_header_preproc=no
27655fi
27656rm -f conftest.err conftest.$ac_ext
27657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27658echo "${ECHO_T}$ac_header_preproc" >&6
27659
27660# So? What about this header?
27661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27662 yes:no: )
27663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27667 ac_header_preproc=yes
27668 ;;
27669 no:yes:* )
27670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27682 (
27683 cat <<\_ASBOX
27684## ----------------------------------- ##
27685## Report this to llvmbugs@cs.uiuc.edu ##
27686## ----------------------------------- ##
27687_ASBOX
27688 ) |
27689 sed "s/^/$as_me: WARNING: /" >&2
27690 ;;
27691esac
27692echo "$as_me:$LINENO: checking for $ac_header" >&5
27693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27694if eval "test \"\${$as_ac_Header+set}\" = set"; then
27695 echo $ECHO_N "(cached) $ECHO_C" >&6
27696else
27697 eval "$as_ac_Header=\$ac_header_preproc"
27698fi
27699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27701
27702fi
27703if test `eval echo '${'$as_ac_Header'}'` = yes; then
27704 cat >>confdefs.h <<_ACEOF
27705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27706_ACEOF
27707
27708fi
27709
27710done
27711
27712fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027713
27714
John Criswell7a73b802003-06-30 21:59:07 +000027715echo "$as_me:$LINENO: checking for pid_t" >&5
27716echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27717if test "${ac_cv_type_pid_t+set}" = set; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27719else
27720 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027721/* confdefs.h. */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027726$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027727int
27728main ()
27729{
27730if ((pid_t *) 0)
27731 return 0;
27732if (sizeof (pid_t))
27733 return 0;
27734 ;
27735 return 0;
27736}
27737_ACEOF
27738rm -f conftest.$ac_objext
27739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027740 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027741 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027742 grep -v '^ *+' conftest.er1 >conftest.err
27743 rm -f conftest.er1
27744 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027747 { ac_try='test -z "$ac_c_werror_flag"
27748 || test ! -s conftest.err'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27751 ac_status=$?
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; } &&
27754 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; }; then
27760 ac_cv_type_pid_t=yes
27761else
27762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027763sed 's/^/| /' conftest.$ac_ext >&5
27764
John Criswell7a73b802003-06-30 21:59:07 +000027765ac_cv_type_pid_t=no
27766fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027768fi
27769echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27770echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27771if test $ac_cv_type_pid_t = yes; then
27772 :
27773else
27774
27775cat >>confdefs.h <<_ACEOF
27776#define pid_t int
27777_ACEOF
27778
27779fi
27780
27781echo "$as_me:$LINENO: checking for size_t" >&5
27782echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27783if test "${ac_cv_type_size_t+set}" = set; then
27784 echo $ECHO_N "(cached) $ECHO_C" >&6
27785else
27786 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027787/* confdefs.h. */
27788_ACEOF
27789cat confdefs.h >>conftest.$ac_ext
27790cat >>conftest.$ac_ext <<_ACEOF
27791/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027792$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027793int
27794main ()
27795{
27796if ((size_t *) 0)
27797 return 0;
27798if (sizeof (size_t))
27799 return 0;
27800 ;
27801 return 0;
27802}
27803_ACEOF
27804rm -f conftest.$ac_objext
27805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027806 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027808 grep -v '^ *+' conftest.er1 >conftest.err
27809 rm -f conftest.er1
27810 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027813 { ac_try='test -z "$ac_c_werror_flag"
27814 || test ! -s conftest.err'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; } &&
27820 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27823 ac_status=$?
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
27826 ac_cv_type_size_t=yes
27827else
27828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027829sed 's/^/| /' conftest.$ac_ext >&5
27830
John Criswell7a73b802003-06-30 21:59:07 +000027831ac_cv_type_size_t=no
27832fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027834fi
27835echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27836echo "${ECHO_T}$ac_cv_type_size_t" >&6
27837if test $ac_cv_type_size_t = yes; then
27838 :
27839else
27840
27841cat >>confdefs.h <<_ACEOF
27842#define size_t unsigned
27843_ACEOF
27844
27845fi
27846
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027847echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27848echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27849if test "${ac_cv_type_signal+set}" = set; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27851else
27852 cat >conftest.$ac_ext <<_ACEOF
27853/* confdefs.h. */
27854_ACEOF
27855cat confdefs.h >>conftest.$ac_ext
27856cat >>conftest.$ac_ext <<_ACEOF
27857/* end confdefs.h. */
27858#include <sys/types.h>
27859#include <signal.h>
27860#ifdef signal
27861# undef signal
27862#endif
27863#ifdef __cplusplus
27864extern "C" void (*signal (int, void (*)(int)))(int);
27865#else
27866void (*signal ()) ();
27867#endif
27868
27869int
27870main ()
27871{
27872int i;
27873 ;
27874 return 0;
27875}
27876_ACEOF
27877rm -f conftest.$ac_objext
27878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27879 (eval $ac_compile) 2>conftest.er1
27880 ac_status=$?
27881 grep -v '^ *+' conftest.er1 >conftest.err
27882 rm -f conftest.er1
27883 cat conftest.err >&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); } &&
27886 { ac_try='test -z "$ac_c_werror_flag"
27887 || test ! -s conftest.err'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } &&
27893 { ac_try='test -s conftest.$ac_objext'
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 ac_cv_type_signal=void
27900else
27901 echo "$as_me: failed program was:" >&5
27902sed 's/^/| /' conftest.$ac_ext >&5
27903
27904ac_cv_type_signal=int
27905fi
27906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27907fi
27908echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27909echo "${ECHO_T}$ac_cv_type_signal" >&6
27910
27911cat >>confdefs.h <<_ACEOF
27912#define RETSIGTYPE $ac_cv_type_signal
27913_ACEOF
27914
27915
27916echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27917echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27918if test "${ac_cv_struct_tm+set}" = set; then
27919 echo $ECHO_N "(cached) $ECHO_C" >&6
27920else
27921 cat >conftest.$ac_ext <<_ACEOF
27922/* confdefs.h. */
27923_ACEOF
27924cat confdefs.h >>conftest.$ac_ext
27925cat >>conftest.$ac_ext <<_ACEOF
27926/* end confdefs.h. */
27927#include <sys/types.h>
27928#include <time.h>
27929
27930int
27931main ()
27932{
27933struct tm *tp; tp->tm_sec;
27934 ;
27935 return 0;
27936}
27937_ACEOF
27938rm -f conftest.$ac_objext
27939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27940 (eval $ac_compile) 2>conftest.er1
27941 ac_status=$?
27942 grep -v '^ *+' conftest.er1 >conftest.err
27943 rm -f conftest.er1
27944 cat conftest.err >&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } &&
27947 { ac_try='test -z "$ac_c_werror_flag"
27948 || test ! -s conftest.err'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; } &&
27954 { ac_try='test -s conftest.$ac_objext'
27955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27956 (eval $ac_try) 2>&5
27957 ac_status=$?
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; }; then
27960 ac_cv_struct_tm=time.h
27961else
27962 echo "$as_me: failed program was:" >&5
27963sed 's/^/| /' conftest.$ac_ext >&5
27964
27965ac_cv_struct_tm=sys/time.h
27966fi
27967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27968fi
27969echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27970echo "${ECHO_T}$ac_cv_struct_tm" >&6
27971if test $ac_cv_struct_tm = sys/time.h; then
27972
27973cat >>confdefs.h <<\_ACEOF
27974#define TM_IN_SYS_TIME 1
27975_ACEOF
27976
27977fi
27978
John Criswell7a73b802003-06-30 21:59:07 +000027979echo "$as_me:$LINENO: checking for int64_t" >&5
27980echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27981if test "${ac_cv_type_int64_t+set}" = set; then
27982 echo $ECHO_N "(cached) $ECHO_C" >&6
27983else
27984 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027985/* confdefs.h. */
27986_ACEOF
27987cat confdefs.h >>conftest.$ac_ext
27988cat >>conftest.$ac_ext <<_ACEOF
27989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027990$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027991int
27992main ()
27993{
27994if ((int64_t *) 0)
27995 return 0;
27996if (sizeof (int64_t))
27997 return 0;
27998 ;
27999 return 0;
28000}
28001_ACEOF
28002rm -f conftest.$ac_objext
28003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028004 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028005 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028006 grep -v '^ *+' conftest.er1 >conftest.err
28007 rm -f conftest.er1
28008 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028011 { ac_try='test -z "$ac_c_werror_flag"
28012 || test ! -s conftest.err'
28013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014 (eval $ac_try) 2>&5
28015 ac_status=$?
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; } &&
28018 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020 (eval $ac_try) 2>&5
28021 ac_status=$?
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; }; then
28024 ac_cv_type_int64_t=yes
28025else
28026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028027sed 's/^/| /' conftest.$ac_ext >&5
28028
John Criswell7a73b802003-06-30 21:59:07 +000028029ac_cv_type_int64_t=no
28030fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028032fi
28033echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28034echo "${ECHO_T}$ac_cv_type_int64_t" >&6
28035if test $ac_cv_type_int64_t = yes; then
28036
28037cat >>confdefs.h <<_ACEOF
28038#define HAVE_INT64_T 1
28039_ACEOF
28040
28041
28042else
28043 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28044echo "$as_me: error: Type int64_t required but not found" >&2;}
28045 { (exit 1); exit 1; }; }
28046fi
28047
28048echo "$as_me:$LINENO: checking for uint64_t" >&5
28049echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
28050if test "${ac_cv_type_uint64_t+set}" = set; then
28051 echo $ECHO_N "(cached) $ECHO_C" >&6
28052else
28053 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028054/* confdefs.h. */
28055_ACEOF
28056cat confdefs.h >>conftest.$ac_ext
28057cat >>conftest.$ac_ext <<_ACEOF
28058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028059$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000028060int
28061main ()
28062{
28063if ((uint64_t *) 0)
28064 return 0;
28065if (sizeof (uint64_t))
28066 return 0;
28067 ;
28068 return 0;
28069}
28070_ACEOF
28071rm -f conftest.$ac_objext
28072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028073 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028075 grep -v '^ *+' conftest.er1 >conftest.err
28076 rm -f conftest.er1
28077 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028080 { ac_try='test -z "$ac_c_werror_flag"
28081 || test ! -s conftest.err'
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28084 ac_status=$?
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
28093 ac_cv_type_uint64_t=yes
28094else
28095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028096sed 's/^/| /' conftest.$ac_ext >&5
28097
John Criswell7a73b802003-06-30 21:59:07 +000028098ac_cv_type_uint64_t=no
28099fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028101fi
28102echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28103echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28104if test $ac_cv_type_uint64_t = yes; then
28105
28106cat >>confdefs.h <<_ACEOF
28107#define HAVE_UINT64_T 1
28108_ACEOF
28109
28110
28111else
Misha Brukmanceca9042004-09-02 23:02:30 +000028112 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000028113echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
28114if test "${ac_cv_type_u_int64_t+set}" = set; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
28116else
28117 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000028118/* confdefs.h. */
28119_ACEOF
28120cat confdefs.h >>conftest.$ac_ext
28121cat >>conftest.$ac_ext <<_ACEOF
28122/* end confdefs.h. */
28123$ac_includes_default
28124int
28125main ()
28126{
28127if ((u_int64_t *) 0)
28128 return 0;
28129if (sizeof (u_int64_t))
28130 return 0;
28131 ;
28132 return 0;
28133}
28134_ACEOF
28135rm -f conftest.$ac_objext
28136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028137 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000028138 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028139 grep -v '^ *+' conftest.er1 >conftest.err
28140 rm -f conftest.er1
28141 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000028142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028144 { ac_try='test -z "$ac_c_werror_flag"
28145 || test ! -s conftest.err'
28146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28147 (eval $ac_try) 2>&5
28148 ac_status=$?
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); }; } &&
28151 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000028152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153 (eval $ac_try) 2>&5
28154 ac_status=$?
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; }; then
28157 ac_cv_type_u_int64_t=yes
28158else
28159 echo "$as_me: failed program was:" >&5
28160sed 's/^/| /' conftest.$ac_ext >&5
28161
28162ac_cv_type_u_int64_t=no
28163fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000028165fi
28166echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28167echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28168if test $ac_cv_type_u_int64_t = yes; then
28169
28170cat >>confdefs.h <<_ACEOF
28171#define HAVE_U_INT64_T 1
28172_ACEOF
28173
28174
Misha Brukmanceca9042004-09-02 23:02:30 +000028175else
28176 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28177echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28178 { (exit 1); exit 1; }; }
28179fi
28180
John Criswell679ff312004-09-02 18:44:44 +000028181fi
28182
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028183
28184
28185
28186
28187
28188
28189
Reid Spencerf4bb9b12006-01-19 08:22:40 +000028190
28191
Reid Spencerdf3be822006-01-23 08:15:53 +000028192for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028193do
28194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28195echo "$as_me:$LINENO: checking for $ac_func" >&5
28196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28197if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028198 echo $ECHO_N "(cached) $ECHO_C" >&6
28199else
28200 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028201/* confdefs.h. */
28202_ACEOF
28203cat confdefs.h >>conftest.$ac_ext
28204cat >>conftest.$ac_ext <<_ACEOF
28205/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28208#define $ac_func innocuous_$ac_func
28209
28210/* System header to define __stub macros and hopefully few prototypes,
28211 which can conflict with char $ac_func (); below.
28212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28213 <limits.h> exists even on freestanding compilers. */
28214
28215#ifdef __STDC__
28216# include <limits.h>
28217#else
28218# include <assert.h>
28219#endif
28220
28221#undef $ac_func
28222
28223/* Override any gcc2 internal prototype to avoid an error. */
28224#ifdef __cplusplus
28225extern "C"
28226{
28227#endif
28228/* We use char because int might match the return type of a gcc2
28229 builtin and then its argument prototype would still apply. */
28230char $ac_func ();
28231/* The GNU C library defines this for functions which it implements
28232 to always fail with ENOSYS. Some functions are actually named
28233 something starting with __ and the normal name is an alias. */
28234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28235choke me
28236#else
28237char (*f) () = $ac_func;
28238#endif
28239#ifdef __cplusplus
28240}
28241#endif
John Criswell7a73b802003-06-30 21:59:07 +000028242
John Criswell7a73b802003-06-30 21:59:07 +000028243int
28244main ()
28245{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028246return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028247 ;
28248 return 0;
28249}
28250_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028251rm -f conftest.$ac_objext conftest$ac_exeext
28252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28253 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028254 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028255 grep -v '^ *+' conftest.er1 >conftest.err
28256 rm -f conftest.er1
28257 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028260 { ac_try='test -z "$ac_c_werror_flag"
28261 || test ! -s conftest.err'
28262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263 (eval $ac_try) 2>&5
28264 ac_status=$?
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028267 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269 (eval $ac_try) 2>&5
28270 ac_status=$?
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028273 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028274else
28275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028276sed 's/^/| /' conftest.$ac_ext >&5
28277
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028278eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028279fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028280rm -f conftest.err conftest.$ac_objext \
28281 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028282fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28285if test `eval echo '${'$as_ac_var'}'` = yes; then
28286 cat >>confdefs.h <<_ACEOF
28287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028288_ACEOF
28289
28290fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028291done
John Criswell7a73b802003-06-30 21:59:07 +000028292
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028293
28294
28295
Reid Spencer6af3d262004-12-15 04:01:48 +000028296
28297
Reid Spencer59473af2004-12-25 07:31:29 +000028298
Reid Spencerdf3be822006-01-23 08:15:53 +000028299for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28300do
28301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28302echo "$as_me:$LINENO: checking for $ac_func" >&5
28303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28304if eval "test \"\${$as_ac_var+set}\" = set"; then
28305 echo $ECHO_N "(cached) $ECHO_C" >&6
28306else
28307 cat >conftest.$ac_ext <<_ACEOF
28308/* confdefs.h. */
28309_ACEOF
28310cat confdefs.h >>conftest.$ac_ext
28311cat >>conftest.$ac_ext <<_ACEOF
28312/* end confdefs.h. */
28313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28315#define $ac_func innocuous_$ac_func
28316
28317/* System header to define __stub macros and hopefully few prototypes,
28318 which can conflict with char $ac_func (); below.
28319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28320 <limits.h> exists even on freestanding compilers. */
28321
28322#ifdef __STDC__
28323# include <limits.h>
28324#else
28325# include <assert.h>
28326#endif
28327
28328#undef $ac_func
28329
28330/* Override any gcc2 internal prototype to avoid an error. */
28331#ifdef __cplusplus
28332extern "C"
28333{
28334#endif
28335/* We use char because int might match the return type of a gcc2
28336 builtin and then its argument prototype would still apply. */
28337char $ac_func ();
28338/* The GNU C library defines this for functions which it implements
28339 to always fail with ENOSYS. Some functions are actually named
28340 something starting with __ and the normal name is an alias. */
28341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28342choke me
28343#else
28344char (*f) () = $ac_func;
28345#endif
28346#ifdef __cplusplus
28347}
28348#endif
28349
28350int
28351main ()
28352{
28353return f != $ac_func;
28354 ;
28355 return 0;
28356}
28357_ACEOF
28358rm -f conftest.$ac_objext conftest$ac_exeext
28359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28360 (eval $ac_link) 2>conftest.er1
28361 ac_status=$?
28362 grep -v '^ *+' conftest.er1 >conftest.err
28363 rm -f conftest.er1
28364 cat conftest.err >&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } &&
28367 { ac_try='test -z "$ac_c_werror_flag"
28368 || test ! -s conftest.err'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
28375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376 (eval $ac_try) 2>&5
28377 ac_status=$?
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; }; then
28380 eval "$as_ac_var=yes"
28381else
28382 echo "$as_me: failed program was:" >&5
28383sed 's/^/| /' conftest.$ac_ext >&5
28384
28385eval "$as_ac_var=no"
28386fi
28387rm -f conftest.err conftest.$ac_objext \
28388 conftest$ac_exeext conftest.$ac_ext
28389fi
28390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28392if test `eval echo '${'$as_ac_var'}'` = yes; then
28393 cat >>confdefs.h <<_ACEOF
28394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28395_ACEOF
28396
28397fi
28398done
28399
28400
28401
28402
28403
28404
28405
28406
28407for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000028408do
28409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28410echo "$as_me:$LINENO: checking for $ac_func" >&5
28411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28412if eval "test \"\${$as_ac_var+set}\" = set"; then
28413 echo $ECHO_N "(cached) $ECHO_C" >&6
28414else
28415 cat >conftest.$ac_ext <<_ACEOF
28416/* confdefs.h. */
28417_ACEOF
28418cat confdefs.h >>conftest.$ac_ext
28419cat >>conftest.$ac_ext <<_ACEOF
28420/* end confdefs.h. */
28421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28423#define $ac_func innocuous_$ac_func
28424
28425/* System header to define __stub macros and hopefully few prototypes,
28426 which can conflict with char $ac_func (); below.
28427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28428 <limits.h> exists even on freestanding compilers. */
28429
28430#ifdef __STDC__
28431# include <limits.h>
28432#else
28433# include <assert.h>
28434#endif
28435
28436#undef $ac_func
28437
28438/* Override any gcc2 internal prototype to avoid an error. */
28439#ifdef __cplusplus
28440extern "C"
28441{
28442#endif
28443/* We use char because int might match the return type of a gcc2
28444 builtin and then its argument prototype would still apply. */
28445char $ac_func ();
28446/* The GNU C library defines this for functions which it implements
28447 to always fail with ENOSYS. Some functions are actually named
28448 something starting with __ and the normal name is an alias. */
28449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28450choke me
28451#else
28452char (*f) () = $ac_func;
28453#endif
28454#ifdef __cplusplus
28455}
28456#endif
28457
28458int
28459main ()
28460{
28461return f != $ac_func;
28462 ;
28463 return 0;
28464}
28465_ACEOF
28466rm -f conftest.$ac_objext conftest$ac_exeext
28467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28468 (eval $ac_link) 2>conftest.er1
28469 ac_status=$?
28470 grep -v '^ *+' conftest.er1 >conftest.err
28471 rm -f conftest.er1
28472 cat conftest.err >&5
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); } &&
28475 { ac_try='test -z "$ac_c_werror_flag"
28476 || test ! -s conftest.err'
28477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478 (eval $ac_try) 2>&5
28479 ac_status=$?
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; } &&
28482 { ac_try='test -s conftest$ac_exeext'
28483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28484 (eval $ac_try) 2>&5
28485 ac_status=$?
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
28488 eval "$as_ac_var=yes"
28489else
28490 echo "$as_me: failed program was:" >&5
28491sed 's/^/| /' conftest.$ac_ext >&5
28492
28493eval "$as_ac_var=no"
28494fi
28495rm -f conftest.err conftest.$ac_objext \
28496 conftest$ac_exeext conftest.$ac_ext
28497fi
28498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28500if test `eval echo '${'$as_ac_var'}'` = yes; then
28501 cat >>confdefs.h <<_ACEOF
28502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28503_ACEOF
28504
28505fi
28506done
28507
28508
Reid Spencerba46ca32004-12-31 05:49:15 +000028509
28510
Chris Lattner0b142592005-11-14 06:57:34 +000028511
Chris Lattner511f11d2005-11-14 07:25:50 +000028512for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028513do
28514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28515echo "$as_me:$LINENO: checking for $ac_func" >&5
28516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28517if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028518 echo $ECHO_N "(cached) $ECHO_C" >&6
28519else
28520 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028521/* confdefs.h. */
28522_ACEOF
28523cat confdefs.h >>conftest.$ac_ext
28524cat >>conftest.$ac_ext <<_ACEOF
28525/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28528#define $ac_func innocuous_$ac_func
28529
28530/* System header to define __stub macros and hopefully few prototypes,
28531 which can conflict with char $ac_func (); below.
28532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28533 <limits.h> exists even on freestanding compilers. */
28534
28535#ifdef __STDC__
28536# include <limits.h>
28537#else
28538# include <assert.h>
28539#endif
28540
28541#undef $ac_func
28542
28543/* Override any gcc2 internal prototype to avoid an error. */
28544#ifdef __cplusplus
28545extern "C"
28546{
28547#endif
28548/* We use char because int might match the return type of a gcc2
28549 builtin and then its argument prototype would still apply. */
28550char $ac_func ();
28551/* The GNU C library defines this for functions which it implements
28552 to always fail with ENOSYS. Some functions are actually named
28553 something starting with __ and the normal name is an alias. */
28554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28555choke me
28556#else
28557char (*f) () = $ac_func;
28558#endif
28559#ifdef __cplusplus
28560}
28561#endif
John Criswell7a73b802003-06-30 21:59:07 +000028562
John Criswell7a73b802003-06-30 21:59:07 +000028563int
28564main ()
28565{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028566return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028567 ;
28568 return 0;
28569}
28570_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028571rm -f conftest.$ac_objext conftest$ac_exeext
28572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28573 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028574 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028575 grep -v '^ *+' conftest.er1 >conftest.err
28576 rm -f conftest.er1
28577 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028580 { ac_try='test -z "$ac_c_werror_flag"
28581 || test ! -s conftest.err'
28582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583 (eval $ac_try) 2>&5
28584 ac_status=$?
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028587 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28589 (eval $ac_try) 2>&5
28590 ac_status=$?
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028593 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028594else
28595 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028596sed 's/^/| /' conftest.$ac_ext >&5
28597
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028598eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028599fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028600rm -f conftest.err conftest.$ac_objext \
28601 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028602fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28604echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28605if test `eval echo '${'$as_ac_var'}'` = yes; then
28606 cat >>confdefs.h <<_ACEOF
28607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028608_ACEOF
28609
28610fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028611done
John Criswell7a73b802003-06-30 21:59:07 +000028612
Reid Spencercdb08a32006-06-05 16:11:07 +000028613
28614
28615
28616
28617
28618
28619for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28620do
28621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28622echo "$as_me:$LINENO: checking for $ac_func" >&5
28623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28624if eval "test \"\${$as_ac_var+set}\" = set"; then
28625 echo $ECHO_N "(cached) $ECHO_C" >&6
28626else
28627 cat >conftest.$ac_ext <<_ACEOF
28628/* confdefs.h. */
28629_ACEOF
28630cat confdefs.h >>conftest.$ac_ext
28631cat >>conftest.$ac_ext <<_ACEOF
28632/* end confdefs.h. */
28633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28635#define $ac_func innocuous_$ac_func
28636
28637/* System header to define __stub macros and hopefully few prototypes,
28638 which can conflict with char $ac_func (); below.
28639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28640 <limits.h> exists even on freestanding compilers. */
28641
28642#ifdef __STDC__
28643# include <limits.h>
28644#else
28645# include <assert.h>
28646#endif
28647
28648#undef $ac_func
28649
28650/* Override any gcc2 internal prototype to avoid an error. */
28651#ifdef __cplusplus
28652extern "C"
28653{
28654#endif
28655/* We use char because int might match the return type of a gcc2
28656 builtin and then its argument prototype would still apply. */
28657char $ac_func ();
28658/* The GNU C library defines this for functions which it implements
28659 to always fail with ENOSYS. Some functions are actually named
28660 something starting with __ and the normal name is an alias. */
28661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28662choke me
28663#else
28664char (*f) () = $ac_func;
28665#endif
28666#ifdef __cplusplus
28667}
28668#endif
28669
28670int
28671main ()
28672{
28673return f != $ac_func;
28674 ;
28675 return 0;
28676}
28677_ACEOF
28678rm -f conftest.$ac_objext conftest$ac_exeext
28679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680 (eval $ac_link) 2>conftest.er1
28681 ac_status=$?
28682 grep -v '^ *+' conftest.er1 >conftest.err
28683 rm -f conftest.er1
28684 cat conftest.err >&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); } &&
28687 { ac_try='test -z "$ac_c_werror_flag"
28688 || test ! -s conftest.err'
28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 (eval $ac_try) 2>&5
28691 ac_status=$?
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest$ac_exeext'
28695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696 (eval $ac_try) 2>&5
28697 ac_status=$?
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28700 eval "$as_ac_var=yes"
28701else
28702 echo "$as_me: failed program was:" >&5
28703sed 's/^/| /' conftest.$ac_ext >&5
28704
28705eval "$as_ac_var=no"
28706fi
28707rm -f conftest.err conftest.$ac_objext \
28708 conftest$ac_exeext conftest.$ac_ext
28709fi
28710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28712if test `eval echo '${'$as_ac_var'}'` = yes; then
28713 cat >>confdefs.h <<_ACEOF
28714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28715_ACEOF
28716
28717fi
28718done
28719
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028720echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28721echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028722if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028723 echo $ECHO_N "(cached) $ECHO_C" >&6
28724else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028725 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028726ac_cpp='$CPP $CPPFLAGS'
28727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28729ac_compiler_gnu=$ac_cv_c_compiler_gnu
28730
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028731 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028732 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028733else
28734 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028735
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028736 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028737_ACEOF
28738cat confdefs.h >>conftest.$ac_ext
28739cat >>conftest.$ac_ext <<_ACEOF
28740/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028741
John Criswella0137d32003-10-13 16:22:01 +000028742#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028743#include <stdlib.h>
28744
John Criswella0137d32003-10-13 16:22:01 +000028745int
28746main ()
28747{
28748
Reid Spencer2706f8c2004-09-19 23:53:36 +000028749volatile double A, B;
28750char Buffer[100];
28751A = 1;
28752A /= 10.0;
28753sprintf(Buffer, "%a", A);
28754B = atof(Buffer);
28755if (A != B)
28756 return (1);
28757if (A != 0x1.999999999999ap-4)
28758 return (1);
28759return (0);
John Criswella0137d32003-10-13 16:22:01 +000028760 ;
28761 return 0;
28762}
28763_ACEOF
28764rm -f conftest$ac_exeext
28765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28766 (eval $ac_link) 2>&5
28767 ac_status=$?
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771 (eval $ac_try) 2>&5
28772 ac_status=$?
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028775 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028776else
28777 echo "$as_me: program exited with status $ac_status" >&5
28778echo "$as_me: failed program was:" >&5
28779sed 's/^/| /' conftest.$ac_ext >&5
28780
28781( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028782llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028783fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028784rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028785fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028786 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028787ac_cpp='$CPP $CPPFLAGS'
28788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28790ac_compiler_gnu=$ac_cv_c_compiler_gnu
28791
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028792fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028793echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28794echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28795 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028796
28797cat >>confdefs.h <<\_ACEOF
28798#define HAVE_PRINTF_A 1
28799_ACEOF
28800
Reid Spencer2706f8c2004-09-19 23:53:36 +000028801 fi
John Criswella0137d32003-10-13 16:22:01 +000028802
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028803# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28804# for constant arguments. Useless!
28805echo "$as_me:$LINENO: checking for working alloca.h" >&5
28806echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28807if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028808 echo $ECHO_N "(cached) $ECHO_C" >&6
28809else
John Criswell0021c312004-02-13 21:57:29 +000028810 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028811/* confdefs.h. */
28812_ACEOF
28813cat confdefs.h >>conftest.$ac_ext
28814cat >>conftest.$ac_ext <<_ACEOF
28815/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028816#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028817int
28818main ()
28819{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028820char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028821 ;
28822 return 0;
28823}
28824_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028825rm -f conftest.$ac_objext conftest$ac_exeext
28826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28827 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028828 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028829 grep -v '^ *+' conftest.er1 >conftest.err
28830 rm -f conftest.er1
28831 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028834 { ac_try='test -z "$ac_c_werror_flag"
28835 || test ! -s conftest.err'
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028841 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028847 ac_cv_working_alloca_h=yes
28848else
28849 echo "$as_me: failed program was:" >&5
28850sed 's/^/| /' conftest.$ac_ext >&5
28851
28852ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028853fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028854rm -f conftest.err conftest.$ac_objext \
28855 conftest$ac_exeext conftest.$ac_ext
28856fi
28857echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28858echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28859if test $ac_cv_working_alloca_h = yes; then
28860
28861cat >>confdefs.h <<\_ACEOF
28862#define HAVE_ALLOCA_H 1
28863_ACEOF
28864
28865fi
28866
28867echo "$as_me:$LINENO: checking for alloca" >&5
28868echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28869if test "${ac_cv_func_alloca_works+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28871else
28872 cat >conftest.$ac_ext <<_ACEOF
28873/* confdefs.h. */
28874_ACEOF
28875cat confdefs.h >>conftest.$ac_ext
28876cat >>conftest.$ac_ext <<_ACEOF
28877/* end confdefs.h. */
28878#ifdef __GNUC__
28879# define alloca __builtin_alloca
28880#else
28881# ifdef _MSC_VER
28882# include <malloc.h>
28883# define alloca _alloca
28884# else
28885# if HAVE_ALLOCA_H
28886# include <alloca.h>
28887# else
28888# ifdef _AIX
28889 #pragma alloca
28890# else
28891# ifndef alloca /* predefined by HP cc +Olibcalls */
28892char *alloca ();
28893# endif
28894# endif
28895# endif
28896# endif
28897#endif
28898
28899int
28900main ()
28901{
28902char *p = (char *) alloca (1);
28903 ;
28904 return 0;
28905}
28906_ACEOF
28907rm -f conftest.$ac_objext conftest$ac_exeext
28908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28909 (eval $ac_link) 2>conftest.er1
28910 ac_status=$?
28911 grep -v '^ *+' conftest.er1 >conftest.err
28912 rm -f conftest.er1
28913 cat conftest.err >&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } &&
28916 { ac_try='test -z "$ac_c_werror_flag"
28917 || test ! -s conftest.err'
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28920 ac_status=$?
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; } &&
28923 { ac_try='test -s conftest$ac_exeext'
28924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28925 (eval $ac_try) 2>&5
28926 ac_status=$?
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); }; }; then
28929 ac_cv_func_alloca_works=yes
28930else
28931 echo "$as_me: failed program was:" >&5
28932sed 's/^/| /' conftest.$ac_ext >&5
28933
28934ac_cv_func_alloca_works=no
28935fi
28936rm -f conftest.err conftest.$ac_objext \
28937 conftest$ac_exeext conftest.$ac_ext
28938fi
28939echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28940echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28941
28942if test $ac_cv_func_alloca_works = yes; then
28943
28944cat >>confdefs.h <<\_ACEOF
28945#define HAVE_ALLOCA 1
28946_ACEOF
28947
28948else
28949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28950# that cause trouble. Some versions do not even contain alloca or
28951# contain a buggy version. If you still want to use their alloca,
28952# use ar to extract alloca.o from them instead of compiling alloca.c.
28953
28954ALLOCA=alloca.$ac_objext
28955
28956cat >>confdefs.h <<\_ACEOF
28957#define C_ALLOCA 1
28958_ACEOF
28959
28960
28961echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28962echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28963if test "${ac_cv_os_cray+set}" = set; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28965else
28966 cat >conftest.$ac_ext <<_ACEOF
28967/* confdefs.h. */
28968_ACEOF
28969cat confdefs.h >>conftest.$ac_ext
28970cat >>conftest.$ac_ext <<_ACEOF
28971/* end confdefs.h. */
28972#if defined(CRAY) && ! defined(CRAY2)
28973webecray
28974#else
28975wenotbecray
28976#endif
28977
28978_ACEOF
28979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28980 $EGREP "webecray" >/dev/null 2>&1; then
28981 ac_cv_os_cray=yes
28982else
28983 ac_cv_os_cray=no
28984fi
28985rm -f conftest*
28986
28987fi
28988echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28989echo "${ECHO_T}$ac_cv_os_cray" >&6
28990if test $ac_cv_os_cray = yes; then
28991 for ac_func in _getb67 GETB67 getb67; do
28992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28993echo "$as_me:$LINENO: checking for $ac_func" >&5
28994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28995if eval "test \"\${$as_ac_var+set}\" = set"; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
28997else
28998 cat >conftest.$ac_ext <<_ACEOF
28999/* confdefs.h. */
29000_ACEOF
29001cat confdefs.h >>conftest.$ac_ext
29002cat >>conftest.$ac_ext <<_ACEOF
29003/* end confdefs.h. */
29004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29006#define $ac_func innocuous_$ac_func
29007
29008/* System header to define __stub macros and hopefully few prototypes,
29009 which can conflict with char $ac_func (); below.
29010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29011 <limits.h> exists even on freestanding compilers. */
29012
29013#ifdef __STDC__
29014# include <limits.h>
29015#else
29016# include <assert.h>
29017#endif
29018
29019#undef $ac_func
29020
29021/* Override any gcc2 internal prototype to avoid an error. */
29022#ifdef __cplusplus
29023extern "C"
29024{
29025#endif
29026/* We use char because int might match the return type of a gcc2
29027 builtin and then its argument prototype would still apply. */
29028char $ac_func ();
29029/* The GNU C library defines this for functions which it implements
29030 to always fail with ENOSYS. Some functions are actually named
29031 something starting with __ and the normal name is an alias. */
29032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29033choke me
29034#else
29035char (*f) () = $ac_func;
29036#endif
29037#ifdef __cplusplus
29038}
29039#endif
29040
29041int
29042main ()
29043{
29044return f != $ac_func;
29045 ;
29046 return 0;
29047}
29048_ACEOF
29049rm -f conftest.$ac_objext conftest$ac_exeext
29050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29051 (eval $ac_link) 2>conftest.er1
29052 ac_status=$?
29053 grep -v '^ *+' conftest.er1 >conftest.err
29054 rm -f conftest.er1
29055 cat conftest.err >&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } &&
29058 { ac_try='test -z "$ac_c_werror_flag"
29059 || test ! -s conftest.err'
29060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061 (eval $ac_try) 2>&5
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; } &&
29065 { ac_try='test -s conftest$ac_exeext'
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; }; then
29071 eval "$as_ac_var=yes"
29072else
29073 echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
29076eval "$as_ac_var=no"
29077fi
29078rm -f conftest.err conftest.$ac_objext \
29079 conftest$ac_exeext conftest.$ac_ext
29080fi
29081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29082echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29083if test `eval echo '${'$as_ac_var'}'` = yes; then
29084
29085cat >>confdefs.h <<_ACEOF
29086#define CRAY_STACKSEG_END $ac_func
29087_ACEOF
29088
29089 break
29090fi
29091
29092 done
29093fi
29094
29095echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29096echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
29097if test "${ac_cv_c_stack_direction+set}" = set; then
29098 echo $ECHO_N "(cached) $ECHO_C" >&6
29099else
29100 if test "$cross_compiling" = yes; then
29101 ac_cv_c_stack_direction=0
29102else
29103 cat >conftest.$ac_ext <<_ACEOF
29104/* confdefs.h. */
29105_ACEOF
29106cat confdefs.h >>conftest.$ac_ext
29107cat >>conftest.$ac_ext <<_ACEOF
29108/* end confdefs.h. */
29109int
29110find_stack_direction ()
29111{
29112 static char *addr = 0;
29113 auto char dummy;
29114 if (addr == 0)
29115 {
29116 addr = &dummy;
29117 return find_stack_direction ();
29118 }
John Criswell0021c312004-02-13 21:57:29 +000029119 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029120 return (&dummy > addr) ? 1 : -1;
29121}
John Criswell0021c312004-02-13 21:57:29 +000029122
John Criswell0021c312004-02-13 21:57:29 +000029123int
29124main ()
29125{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029126 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000029127}
29128_ACEOF
29129rm -f conftest$ac_exeext
29130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29131 (eval $ac_link) 2>&5
29132 ac_status=$?
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29137 ac_status=$?
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029140 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000029141else
29142 echo "$as_me: program exited with status $ac_status" >&5
29143echo "$as_me: failed program was:" >&5
29144sed 's/^/| /' conftest.$ac_ext >&5
29145
29146( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029147ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000029148fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000029150fi
29151fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029152echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29153echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
29154
29155cat >>confdefs.h <<_ACEOF
29156#define STACK_DIRECTION $ac_cv_c_stack_direction
29157_ACEOF
29158
29159
John Criswell0021c312004-02-13 21:57:29 +000029160fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029161
29162
29163echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29164echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
29165if test "${ac_cv_func_rand48+set}" = set; then
29166 echo $ECHO_N "(cached) $ECHO_C" >&6
29167else
29168 ac_ext=cc
29169ac_cpp='$CXXCPP $CPPFLAGS'
29170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29173
29174 cat >conftest.$ac_ext <<_ACEOF
29175/* confdefs.h. */
29176_ACEOF
29177cat confdefs.h >>conftest.$ac_ext
29178cat >>conftest.$ac_ext <<_ACEOF
29179/* end confdefs.h. */
29180#include <stdlib.h>
29181int
29182main ()
29183{
29184srand48(0);lrand48();drand48();
29185 ;
29186 return 0;
29187}
29188_ACEOF
29189rm -f conftest.$ac_objext
29190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29191 (eval $ac_compile) 2>conftest.er1
29192 ac_status=$?
29193 grep -v '^ *+' conftest.er1 >conftest.err
29194 rm -f conftest.er1
29195 cat conftest.err >&5
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); } &&
29198 { ac_try='test -z "$ac_cxx_werror_flag"
29199 || test ! -s conftest.err'
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; } &&
29205 { ac_try='test -s conftest.$ac_objext'
29206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207 (eval $ac_try) 2>&5
29208 ac_status=$?
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; }; then
29211 ac_cv_func_rand48=yes
29212else
29213 echo "$as_me: failed program was:" >&5
29214sed 's/^/| /' conftest.$ac_ext >&5
29215
29216ac_cv_func_rand48=no
29217fi
29218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29219 ac_ext=c
29220ac_cpp='$CPP $CPPFLAGS'
29221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29223ac_compiler_gnu=$ac_cv_c_compiler_gnu
29224
29225fi
29226echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29227echo "${ECHO_T}$ac_cv_func_rand48" >&6
29228
29229if test "$ac_cv_func_rand48" = "yes" ; then
29230
29231cat >>confdefs.h <<\_ACEOF
29232#define HAVE_RAND48 1
29233_ACEOF
29234
29235fi
John Criswell0021c312004-02-13 21:57:29 +000029236
29237
John Criswell7a73b802003-06-30 21:59:07 +000029238echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29239echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29240if test "${ac_cv_cxx_namespaces+set}" = set; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29242else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029243 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000029244ac_cpp='$CXXCPP $CPPFLAGS'
29245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29248
29249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029250/* confdefs.h. */
29251_ACEOF
29252cat confdefs.h >>conftest.$ac_ext
29253cat >>conftest.$ac_ext <<_ACEOF
29254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029255namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029256int
29257main ()
29258{
29259using namespace Outer::Inner; return i;
29260 ;
29261 return 0;
29262}
29263_ACEOF
29264rm -f conftest.$ac_objext
29265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029266 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029268 grep -v '^ *+' conftest.er1 >conftest.err
29269 rm -f conftest.er1
29270 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029273 { ac_try='test -z "$ac_cxx_werror_flag"
29274 || test ! -s conftest.err'
29275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276 (eval $ac_try) 2>&5
29277 ac_status=$?
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; } &&
29280 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 ac_cv_cxx_namespaces=yes
29287else
29288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029289sed 's/^/| /' conftest.$ac_ext >&5
29290
John Criswell7a73b802003-06-30 21:59:07 +000029291ac_cv_cxx_namespaces=no
29292fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029294 ac_ext=c
29295ac_cpp='$CPP $CPPFLAGS'
29296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298ac_compiler_gnu=$ac_cv_c_compiler_gnu
29299
29300
29301fi
29302echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29303echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29304if test "$ac_cv_cxx_namespaces" = yes; then
29305
29306cat >>confdefs.h <<\_ACEOF
29307#define HAVE_NAMESPACES
29308_ACEOF
29309
29310fi
29311
Brian Gaeke90583492003-11-10 03:06:28 +000029312echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29313echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29314if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029315 echo $ECHO_N "(cached) $ECHO_C" >&6
29316else
29317
John Criswell7a73b802003-06-30 21:59:07 +000029318 ac_ext=cc
29319ac_cpp='$CXXCPP $CPPFLAGS'
29320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29323
29324 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029325/* confdefs.h. */
29326_ACEOF
29327cat confdefs.h >>conftest.$ac_ext
29328cat >>conftest.$ac_ext <<_ACEOF
29329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029330#include <ext/hash_map>
29331#ifdef HAVE_NAMESPACES
29332using namespace std;
29333#endif
John Criswell7a73b802003-06-30 21:59:07 +000029334int
29335main ()
29336{
Brian Gaeke90583492003-11-10 03:06:28 +000029337hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029338 ;
29339 return 0;
29340}
29341_ACEOF
29342rm -f conftest.$ac_objext
29343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029344 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029345 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029346 grep -v '^ *+' conftest.er1 >conftest.err
29347 rm -f conftest.er1
29348 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029351 { ac_try='test -z "$ac_cxx_werror_flag"
29352 || test ! -s conftest.err'
29353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29354 (eval $ac_try) 2>&5
29355 ac_status=$?
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); }; } &&
29358 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29360 (eval $ac_try) 2>&5
29361 ac_status=$?
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029364 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029365else
29366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029367sed 's/^/| /' conftest.$ac_ext >&5
29368
Brian Gaeke90583492003-11-10 03:06:28 +000029369ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029370fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029372 ac_ext=c
29373ac_cpp='$CPP $CPPFLAGS'
29374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29376ac_compiler_gnu=$ac_cv_c_compiler_gnu
29377
John Criswell7a73b802003-06-30 21:59:07 +000029378fi
Brian Gaeke90583492003-11-10 03:06:28 +000029379echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29380echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029381 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29382 then
John Criswell9f011862004-09-24 18:28:00 +000029383
29384cat >>confdefs.h <<\_ACEOF
29385#define HAVE_STD_EXT_HASH_MAP 1
29386_ACEOF
29387
29388 else
29389
29390cat >>confdefs.h <<\_ACEOF
29391#define HAVE_STD_EXT_HASH_MAP 0
29392_ACEOF
29393
Brian Gaeke90583492003-11-10 03:06:28 +000029394 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029395
Brian Gaeke90583492003-11-10 03:06:28 +000029396 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29397echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29398if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29400else
29401
Brian Gaeke90583492003-11-10 03:06:28 +000029402 ac_ext=cc
29403ac_cpp='$CXXCPP $CPPFLAGS'
29404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29407
29408 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029409/* confdefs.h. */
29410_ACEOF
29411cat confdefs.h >>conftest.$ac_ext
29412cat >>conftest.$ac_ext <<_ACEOF
29413/* end confdefs.h. */
29414#include <ext/hash_map>
29415#ifdef HAVE_NAMESPACES
29416using namespace __gnu_cxx;
29417#endif
29418int
29419main ()
29420{
29421hash_map<int,int> t;
29422 ;
29423 return 0;
29424}
29425_ACEOF
29426rm -f conftest.$ac_objext
29427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029428 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029429 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029430 grep -v '^ *+' conftest.er1 >conftest.err
29431 rm -f conftest.er1
29432 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029435 { ac_try='test -z "$ac_cxx_werror_flag"
29436 || test ! -s conftest.err'
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29448 ac_cv_cxx_have_gnu_ext_hash_map=yes
29449else
29450 echo "$as_me: failed program was:" >&5
29451sed 's/^/| /' conftest.$ac_ext >&5
29452
29453ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029454fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029456 ac_ext=c
29457ac_cpp='$CPP $CPPFLAGS'
29458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29460ac_compiler_gnu=$ac_cv_c_compiler_gnu
29461
29462fi
29463echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29464echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029465 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29466 then
John Criswell9f011862004-09-24 18:28:00 +000029467
29468cat >>confdefs.h <<\_ACEOF
29469#define HAVE_GNU_EXT_HASH_MAP 1
29470_ACEOF
29471
29472 else
29473
29474cat >>confdefs.h <<\_ACEOF
29475#define HAVE_GNU_EXT_HASH_MAP 0
29476_ACEOF
29477
Brian Gaeke90583492003-11-10 03:06:28 +000029478 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029479
Brian Gaeke90583492003-11-10 03:06:28 +000029480 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29481echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29482if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29483 echo $ECHO_N "(cached) $ECHO_C" >&6
29484else
John Criswell7a73b802003-06-30 21:59:07 +000029485
Brian Gaeke90583492003-11-10 03:06:28 +000029486 ac_ext=cc
29487ac_cpp='$CXXCPP $CPPFLAGS'
29488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29491
29492 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029493/* confdefs.h. */
29494_ACEOF
29495cat confdefs.h >>conftest.$ac_ext
29496cat >>conftest.$ac_ext <<_ACEOF
29497/* end confdefs.h. */
29498#include <hash_map>
29499int
29500main ()
29501{
29502hash_map<int,int> t;
29503 ;
29504 return 0;
29505}
29506_ACEOF
29507rm -f conftest.$ac_objext
29508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029509 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029510 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029511 grep -v '^ *+' conftest.er1 >conftest.err
29512 rm -f conftest.er1
29513 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029516 { ac_try='test -z "$ac_cxx_werror_flag"
29517 || test ! -s conftest.err'
29518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519 (eval $ac_try) 2>&5
29520 ac_status=$?
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; } &&
29523 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29526 ac_status=$?
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; }; then
29529 ac_cv_cxx_have_global_hash_map=yes
29530else
29531 echo "$as_me: failed program was:" >&5
29532sed 's/^/| /' conftest.$ac_ext >&5
29533
29534ac_cv_cxx_have_global_hash_map=no
29535fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029537 ac_ext=c
29538ac_cpp='$CPP $CPPFLAGS'
29539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29541ac_compiler_gnu=$ac_cv_c_compiler_gnu
29542
29543fi
29544echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29545echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029546 if test "$ac_cv_cxx_have_global_hash_map" = yes
29547 then
John Criswell9f011862004-09-24 18:28:00 +000029548
29549cat >>confdefs.h <<\_ACEOF
29550#define HAVE_GLOBAL_HASH_MAP 1
29551_ACEOF
29552
29553 else
29554
29555cat >>confdefs.h <<\_ACEOF
29556#define HAVE_GLOBAL_HASH_MAP 0
29557_ACEOF
29558
Brian Gaeke90583492003-11-10 03:06:28 +000029559 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029560
Brian Gaeke90583492003-11-10 03:06:28 +000029561echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29562echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29563if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029564 echo $ECHO_N "(cached) $ECHO_C" >&6
29565else
29566
John Criswell7a73b802003-06-30 21:59:07 +000029567 ac_ext=cc
29568ac_cpp='$CXXCPP $CPPFLAGS'
29569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29572
29573 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029579#include <ext/hash_set>
29580#ifdef HAVE_NAMESPACES
29581using namespace std;
29582#endif
John Criswell7a73b802003-06-30 21:59:07 +000029583int
29584main ()
29585{
Brian Gaeke90583492003-11-10 03:06:28 +000029586hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029587 ;
29588 return 0;
29589}
29590_ACEOF
29591rm -f conftest.$ac_objext
29592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029593 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029595 grep -v '^ *+' conftest.er1 >conftest.err
29596 rm -f conftest.er1
29597 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029600 { ac_try='test -z "$ac_cxx_werror_flag"
29601 || test ! -s conftest.err'
29602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603 (eval $ac_try) 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; } &&
29607 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 (eval $ac_try) 2>&5
29610 ac_status=$?
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029613 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029614else
29615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029616sed 's/^/| /' conftest.$ac_ext >&5
29617
Brian Gaeke90583492003-11-10 03:06:28 +000029618ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029619fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029621 ac_ext=c
29622ac_cpp='$CPP $CPPFLAGS'
29623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29625ac_compiler_gnu=$ac_cv_c_compiler_gnu
29626
29627fi
29628echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29629echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029630 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29631 then
John Criswell9f011862004-09-24 18:28:00 +000029632
29633cat >>confdefs.h <<\_ACEOF
29634#define HAVE_STD_EXT_HASH_SET 1
29635_ACEOF
29636
29637 else
29638
29639cat >>confdefs.h <<\_ACEOF
29640#define HAVE_STD_EXT_HASH_SET 0
29641_ACEOF
29642
Brian Gaeke90583492003-11-10 03:06:28 +000029643 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029644
Brian Gaeke90583492003-11-10 03:06:28 +000029645 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29646echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29647if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29649else
29650
Brian Gaeke90583492003-11-10 03:06:28 +000029651 ac_ext=cc
29652ac_cpp='$CXXCPP $CPPFLAGS'
29653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29656
John Criswell7a73b802003-06-30 21:59:07 +000029657 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029658/* confdefs.h. */
29659_ACEOF
29660cat confdefs.h >>conftest.$ac_ext
29661cat >>conftest.$ac_ext <<_ACEOF
29662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029663#include <ext/hash_set>
29664#ifdef HAVE_NAMESPACES
29665using namespace __gnu_cxx;
29666#endif
John Criswell7a73b802003-06-30 21:59:07 +000029667int
29668main ()
29669{
Brian Gaeke90583492003-11-10 03:06:28 +000029670hash_set<int> t;
29671 ;
29672 return 0;
29673}
29674_ACEOF
29675rm -f conftest.$ac_objext
29676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029677 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029678 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029679 grep -v '^ *+' conftest.er1 >conftest.err
29680 rm -f conftest.er1
29681 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029684 { ac_try='test -z "$ac_cxx_werror_flag"
29685 || test ! -s conftest.err'
29686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687 (eval $ac_try) 2>&5
29688 ac_status=$?
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693 (eval $ac_try) 2>&5
29694 ac_status=$?
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; }; then
29697 ac_cv_cxx_have_gnu_ext_hash_set=yes
29698else
29699 echo "$as_me: failed program was:" >&5
29700sed 's/^/| /' conftest.$ac_ext >&5
29701
29702ac_cv_cxx_have_gnu_ext_hash_set=no
29703fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029705 ac_ext=c
29706ac_cpp='$CPP $CPPFLAGS'
29707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29709ac_compiler_gnu=$ac_cv_c_compiler_gnu
29710
29711fi
29712echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29713echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029714 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29715 then
John Criswell9f011862004-09-24 18:28:00 +000029716
29717cat >>confdefs.h <<\_ACEOF
29718#define HAVE_GNU_EXT_HASH_SET 1
29719_ACEOF
29720
29721 else
29722
29723cat >>confdefs.h <<\_ACEOF
29724#define HAVE_GNU_EXT_HASH_SET 0
29725_ACEOF
29726
Brian Gaeke90583492003-11-10 03:06:28 +000029727 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029728
Brian Gaeke90583492003-11-10 03:06:28 +000029729 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29730echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29731if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29732 echo $ECHO_N "(cached) $ECHO_C" >&6
29733else
29734
Brian Gaeke90583492003-11-10 03:06:28 +000029735 ac_ext=cc
29736ac_cpp='$CXXCPP $CPPFLAGS'
29737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29740
29741 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029742/* confdefs.h. */
29743_ACEOF
29744cat confdefs.h >>conftest.$ac_ext
29745cat >>conftest.$ac_ext <<_ACEOF
29746/* end confdefs.h. */
29747#include <hash_set>
29748int
29749main ()
29750{
John Criswell7a73b802003-06-30 21:59:07 +000029751hash_set<int> t; return 0;
29752 ;
29753 return 0;
29754}
29755_ACEOF
29756rm -f conftest.$ac_objext
29757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029758 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029760 grep -v '^ *+' conftest.er1 >conftest.err
29761 rm -f conftest.er1
29762 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029765 { ac_try='test -z "$ac_cxx_werror_flag"
29766 || test ! -s conftest.err'
29767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29768 (eval $ac_try) 2>&5
29769 ac_status=$?
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; } &&
29772 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774 (eval $ac_try) 2>&5
29775 ac_status=$?
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029778 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029779else
29780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029781sed 's/^/| /' conftest.$ac_ext >&5
29782
Brian Gaeke90583492003-11-10 03:06:28 +000029783ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029784fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029786 ac_ext=c
29787ac_cpp='$CPP $CPPFLAGS'
29788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29790ac_compiler_gnu=$ac_cv_c_compiler_gnu
29791
John Criswell7a73b802003-06-30 21:59:07 +000029792fi
Brian Gaeke90583492003-11-10 03:06:28 +000029793echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29794echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029795 if test "$ac_cv_cxx_have_global_hash_set" = yes
29796 then
John Criswell9f011862004-09-24 18:28:00 +000029797
29798cat >>confdefs.h <<\_ACEOF
29799#define HAVE_GLOBAL_HASH_SET 1
29800_ACEOF
29801
29802 else
29803
29804cat >>confdefs.h <<\_ACEOF
29805#define HAVE_GLOBAL_HASH_SET 0
29806_ACEOF
29807
Brian Gaeke90583492003-11-10 03:06:28 +000029808 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029809
John Criswell7a73b802003-06-30 21:59:07 +000029810echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29811echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29812if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29814else
29815
John Criswell7a73b802003-06-30 21:59:07 +000029816 ac_ext=cc
29817ac_cpp='$CXXCPP $CPPFLAGS'
29818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29821
29822 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029823/* confdefs.h. */
29824_ACEOF
29825cat confdefs.h >>conftest.$ac_ext
29826cat >>conftest.$ac_ext <<_ACEOF
29827/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029828#include <iterator>
29829#ifdef HAVE_NAMESPACES
29830using namespace std;
29831#endif
John Criswell7a73b802003-06-30 21:59:07 +000029832int
29833main ()
29834{
29835iterator<int,int,int> t; return 0;
29836 ;
29837 return 0;
29838}
29839_ACEOF
29840rm -f conftest.$ac_objext
29841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029842 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029843 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029844 grep -v '^ *+' conftest.er1 >conftest.err
29845 rm -f conftest.er1
29846 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029849 { ac_try='test -z "$ac_cxx_werror_flag"
29850 || test ! -s conftest.err'
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; } &&
29856 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858 (eval $ac_try) 2>&5
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; }; then
29862 ac_cv_cxx_have_std_iterator=yes
29863else
29864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029865sed 's/^/| /' conftest.$ac_ext >&5
29866
John Criswell7a73b802003-06-30 21:59:07 +000029867ac_cv_cxx_have_std_iterator=no
29868fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029870 ac_ext=c
29871ac_cpp='$CPP $CPPFLAGS'
29872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29874ac_compiler_gnu=$ac_cv_c_compiler_gnu
29875
29876
29877fi
29878echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29879echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029880if test "$ac_cv_cxx_have_std_iterator" = yes
29881then
John Criswell40468462004-09-24 21:19:06 +000029882
29883cat >>confdefs.h <<\_ACEOF
29884#define HAVE_STD_ITERATOR 1
29885_ACEOF
29886
29887else
29888
29889cat >>confdefs.h <<\_ACEOF
29890#define HAVE_STD_ITERATOR 0
29891_ACEOF
29892
John Criswell7a73b802003-06-30 21:59:07 +000029893fi
29894
29895echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29896echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29897if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900
John Criswell7a73b802003-06-30 21:59:07 +000029901 ac_ext=cc
29902ac_cpp='$CXXCPP $CPPFLAGS'
29903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29906
29907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029908/* confdefs.h. */
29909_ACEOF
29910cat confdefs.h >>conftest.$ac_ext
29911cat >>conftest.$ac_ext <<_ACEOF
29912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029913#include <iterator>
29914#ifdef HAVE_NAMESPACES
29915using namespace std;
29916#endif
John Criswell7a73b802003-06-30 21:59:07 +000029917int
29918main ()
29919{
John Criswellc78022e2003-07-29 19:11:58 +000029920bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029921 ;
29922 return 0;
29923}
29924_ACEOF
29925rm -f conftest.$ac_objext
29926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029927 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029928 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029929 grep -v '^ *+' conftest.er1 >conftest.err
29930 rm -f conftest.er1
29931 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029934 { ac_try='test -z "$ac_cxx_werror_flag"
29935 || test ! -s conftest.err'
29936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29937 (eval $ac_try) 2>&5
29938 ac_status=$?
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; } &&
29941 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29943 (eval $ac_try) 2>&5
29944 ac_status=$?
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; }; then
29947 ac_cv_cxx_have_bi_iterator=yes
29948else
29949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029950sed 's/^/| /' conftest.$ac_ext >&5
29951
John Criswell7a73b802003-06-30 21:59:07 +000029952ac_cv_cxx_have_bi_iterator=no
29953fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029955 ac_ext=c
29956ac_cpp='$CPP $CPPFLAGS'
29957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29959ac_compiler_gnu=$ac_cv_c_compiler_gnu
29960
29961
29962fi
29963echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29964echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029965if test "$ac_cv_cxx_have_bi_iterator" = yes
29966then
John Criswell40468462004-09-24 21:19:06 +000029967
29968cat >>confdefs.h <<\_ACEOF
29969#define HAVE_BI_ITERATOR 1
29970_ACEOF
29971
29972else
29973
29974cat >>confdefs.h <<\_ACEOF
29975#define HAVE_BI_ITERATOR 0
29976_ACEOF
29977
John Criswell7a73b802003-06-30 21:59:07 +000029978fi
29979
29980echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29981echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29982if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29983 echo $ECHO_N "(cached) $ECHO_C" >&6
29984else
29985
John Criswell7a73b802003-06-30 21:59:07 +000029986 ac_ext=cc
29987ac_cpp='$CXXCPP $CPPFLAGS'
29988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29991
29992 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029993/* confdefs.h. */
29994_ACEOF
29995cat confdefs.h >>conftest.$ac_ext
29996cat >>conftest.$ac_ext <<_ACEOF
29997/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029998#include <iterator>
29999#ifdef HAVE_NAMESPACES
30000using namespace std;
30001#endif
John Criswell7a73b802003-06-30 21:59:07 +000030002int
30003main ()
30004{
John Criswellc78022e2003-07-29 19:11:58 +000030005forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030006 ;
30007 return 0;
30008}
30009_ACEOF
30010rm -f conftest.$ac_objext
30011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030012 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030014 grep -v '^ *+' conftest.er1 >conftest.err
30015 rm -f conftest.er1
30016 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030019 { ac_try='test -z "$ac_cxx_werror_flag"
30020 || test ! -s conftest.err'
30021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022 (eval $ac_try) 2>&5
30023 ac_status=$?
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; } &&
30026 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30028 (eval $ac_try) 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; }; then
30032 ac_cv_cxx_have_fwd_iterator=yes
30033else
30034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030035sed 's/^/| /' conftest.$ac_ext >&5
30036
John Criswell7a73b802003-06-30 21:59:07 +000030037ac_cv_cxx_have_fwd_iterator=no
30038fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030040 ac_ext=c
30041ac_cpp='$CPP $CPPFLAGS'
30042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044ac_compiler_gnu=$ac_cv_c_compiler_gnu
30045
30046
30047fi
30048echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30049echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000030050if test "$ac_cv_cxx_have_fwd_iterator" = yes
30051then
John Criswell40468462004-09-24 21:19:06 +000030052
30053cat >>confdefs.h <<\_ACEOF
30054#define HAVE_FWD_ITERATOR 1
30055_ACEOF
30056
30057else
30058
30059cat >>confdefs.h <<\_ACEOF
30060#define HAVE_FWD_ITERATOR 0
30061_ACEOF
30062
John Criswell7a73b802003-06-30 21:59:07 +000030063fi
30064
30065
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030066echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30067echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
30068if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30069 echo $ECHO_N "(cached) $ECHO_C" >&6
30070else
30071 ac_ext=cc
30072ac_cpp='$CXXCPP $CPPFLAGS'
30073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30076
Reid Spencerabec8f92004-10-27 23:03:44 +000030077 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030078/* confdefs.h. */
30079_ACEOF
30080cat confdefs.h >>conftest.$ac_ext
30081cat >>conftest.$ac_ext <<_ACEOF
30082/* end confdefs.h. */
30083#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030084int
30085main ()
30086{
30087float f; isnan(f);
30088 ;
30089 return 0;
30090}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030091_ACEOF
30092rm -f conftest.$ac_objext
30093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030094 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030095 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030096 grep -v '^ *+' conftest.er1 >conftest.err
30097 rm -f conftest.er1
30098 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030101 { ac_try='test -z "$ac_cxx_werror_flag"
30102 || test ! -s conftest.err'
30103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30104 (eval $ac_try) 2>&5
30105 ac_status=$?
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); }; } &&
30108 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30111 ac_status=$?
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; }; then
30114 ac_cv_func_isnan_in_math_h=yes
30115else
30116 echo "$as_me: failed program was:" >&5
30117sed 's/^/| /' conftest.$ac_ext >&5
30118
30119ac_cv_func_isnan_in_math_h=no
30120fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030122 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030123ac_cpp='$CPP $CPPFLAGS'
30124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30126ac_compiler_gnu=$ac_cv_c_compiler_gnu
30127
30128fi
30129echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30130echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030131
30132
30133if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030134
30135cat >>confdefs.h <<\_ACEOF
30136#define HAVE_ISNAN_IN_MATH_H 1
30137_ACEOF
30138
Reid Spencerabec8f92004-10-27 23:03:44 +000030139fi
30140
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030141echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30142echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
30143if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30144 echo $ECHO_N "(cached) $ECHO_C" >&6
30145else
30146 ac_ext=cc
30147ac_cpp='$CXXCPP $CPPFLAGS'
30148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30151
Reid Spencerabec8f92004-10-27 23:03:44 +000030152 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
30158#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030159int
30160main ()
30161{
30162float f; isnan(f);
30163 ;
30164 return 0;
30165}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030166_ACEOF
30167rm -f conftest.$ac_objext
30168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030169 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030171 grep -v '^ *+' conftest.er1 >conftest.err
30172 rm -f conftest.er1
30173 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030176 { ac_try='test -z "$ac_cxx_werror_flag"
30177 || test ! -s conftest.err'
30178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30179 (eval $ac_try) 2>&5
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
30186 ac_status=$?
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; }; then
30189 ac_cv_func_isnan_in_cmath=yes
30190else
30191 echo "$as_me: failed program was:" >&5
30192sed 's/^/| /' conftest.$ac_ext >&5
30193
30194ac_cv_func_isnan_in_cmath=no
30195fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030197 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030198ac_cpp='$CPP $CPPFLAGS'
30199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30201ac_compiler_gnu=$ac_cv_c_compiler_gnu
30202
30203fi
30204echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30205echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030206
30207if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030208
30209cat >>confdefs.h <<\_ACEOF
30210#define HAVE_ISNAN_IN_CMATH 1
30211_ACEOF
30212
Reid Spencerabec8f92004-10-27 23:03:44 +000030213fi
30214
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030215echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30216echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30217if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30218 echo $ECHO_N "(cached) $ECHO_C" >&6
30219else
30220 ac_ext=cc
30221ac_cpp='$CXXCPP $CPPFLAGS'
30222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30225
Reid Spencerabec8f92004-10-27 23:03:44 +000030226 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030227/* confdefs.h. */
30228_ACEOF
30229cat confdefs.h >>conftest.$ac_ext
30230cat >>conftest.$ac_ext <<_ACEOF
30231/* end confdefs.h. */
30232#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030233int
30234main ()
30235{
30236float f; std::isnan(f);
30237 ;
30238 return 0;
30239}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030240_ACEOF
30241rm -f conftest.$ac_objext
30242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030243 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030244 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030245 grep -v '^ *+' conftest.er1 >conftest.err
30246 rm -f conftest.er1
30247 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030250 { ac_try='test -z "$ac_cxx_werror_flag"
30251 || test ! -s conftest.err'
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30254 ac_status=$?
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; } &&
30257 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259 (eval $ac_try) 2>&5
30260 ac_status=$?
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); }; }; then
30263 ac_cv_func_std_isnan_in_cmath=yes
30264else
30265 echo "$as_me: failed program was:" >&5
30266sed 's/^/| /' conftest.$ac_ext >&5
30267
30268ac_cv_func_std_isnan_in_cmath=no
30269fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030271 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030272ac_cpp='$CPP $CPPFLAGS'
30273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30275ac_compiler_gnu=$ac_cv_c_compiler_gnu
30276
30277fi
30278echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30279echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030280
30281if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030282
30283cat >>confdefs.h <<\_ACEOF
30284#define HAVE_STD_ISNAN_IN_CMATH 1
30285_ACEOF
30286
Reid Spencerabec8f92004-10-27 23:03:44 +000030287fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030288
30289
Brian Gaeke52a551d2004-07-21 03:14:12 +000030290echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30291echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30292if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30293 echo $ECHO_N "(cached) $ECHO_C" >&6
30294else
30295 ac_ext=cc
30296ac_cpp='$CXXCPP $CPPFLAGS'
30297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30300
Reid Spencerabec8f92004-10-27 23:03:44 +000030301 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030302/* confdefs.h. */
30303_ACEOF
30304cat confdefs.h >>conftest.$ac_ext
30305cat >>conftest.$ac_ext <<_ACEOF
30306/* end confdefs.h. */
30307#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030308int
30309main ()
30310{
30311float f; isinf(f);
30312 ;
30313 return 0;
30314}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030315_ACEOF
30316rm -f conftest.$ac_objext
30317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030318 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030319 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030320 grep -v '^ *+' conftest.er1 >conftest.err
30321 rm -f conftest.er1
30322 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030325 { ac_try='test -z "$ac_cxx_werror_flag"
30326 || test ! -s conftest.err'
30327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30328 (eval $ac_try) 2>&5
30329 ac_status=$?
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; } &&
30332 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334 (eval $ac_try) 2>&5
30335 ac_status=$?
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; }; then
30338 ac_cv_func_isinf_in_math_h=yes
30339else
30340 echo "$as_me: failed program was:" >&5
30341sed 's/^/| /' conftest.$ac_ext >&5
30342
30343ac_cv_func_isinf_in_math_h=no
30344fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030346 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030347ac_cpp='$CPP $CPPFLAGS'
30348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30350ac_compiler_gnu=$ac_cv_c_compiler_gnu
30351
30352fi
30353echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30354echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030355
30356if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030357
30358cat >>confdefs.h <<\_ACEOF
30359#define HAVE_ISINF_IN_MATH_H 1
30360_ACEOF
30361
Reid Spencerabec8f92004-10-27 23:03:44 +000030362fi
30363
Brian Gaeke52a551d2004-07-21 03:14:12 +000030364echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30365echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30366if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30367 echo $ECHO_N "(cached) $ECHO_C" >&6
30368else
30369 ac_ext=cc
30370ac_cpp='$CXXCPP $CPPFLAGS'
30371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30374
Reid Spencerabec8f92004-10-27 23:03:44 +000030375 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030376/* confdefs.h. */
30377_ACEOF
30378cat confdefs.h >>conftest.$ac_ext
30379cat >>conftest.$ac_ext <<_ACEOF
30380/* end confdefs.h. */
30381#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030382int
30383main ()
30384{
30385float f; isinf(f);
30386 ;
30387 return 0;
30388}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030389_ACEOF
30390rm -f conftest.$ac_objext
30391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030392 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030393 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030394 grep -v '^ *+' conftest.er1 >conftest.err
30395 rm -f conftest.er1
30396 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030399 { ac_try='test -z "$ac_cxx_werror_flag"
30400 || test ! -s conftest.err'
30401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30402 (eval $ac_try) 2>&5
30403 ac_status=$?
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); }; } &&
30406 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408 (eval $ac_try) 2>&5
30409 ac_status=$?
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; }; then
30412 ac_cv_func_isinf_in_cmath=yes
30413else
30414 echo "$as_me: failed program was:" >&5
30415sed 's/^/| /' conftest.$ac_ext >&5
30416
30417ac_cv_func_isinf_in_cmath=no
30418fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030420 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030421ac_cpp='$CPP $CPPFLAGS'
30422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30424ac_compiler_gnu=$ac_cv_c_compiler_gnu
30425
30426fi
30427echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30428echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030429
30430if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030431
30432cat >>confdefs.h <<\_ACEOF
30433#define HAVE_ISINF_IN_CMATH 1
30434_ACEOF
30435
Reid Spencerabec8f92004-10-27 23:03:44 +000030436fi
30437
Brian Gaeke52a551d2004-07-21 03:14:12 +000030438echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30439echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30440if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30441 echo $ECHO_N "(cached) $ECHO_C" >&6
30442else
30443 ac_ext=cc
30444ac_cpp='$CXXCPP $CPPFLAGS'
30445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30448
Reid Spencerabec8f92004-10-27 23:03:44 +000030449 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030450/* confdefs.h. */
30451_ACEOF
30452cat confdefs.h >>conftest.$ac_ext
30453cat >>conftest.$ac_ext <<_ACEOF
30454/* end confdefs.h. */
30455#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030456int
30457main ()
30458{
30459float f; std::isinf(f)}
30460 ;
30461 return 0;
30462}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030463_ACEOF
30464rm -f conftest.$ac_objext
30465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030466 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030467 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030468 grep -v '^ *+' conftest.er1 >conftest.err
30469 rm -f conftest.er1
30470 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030473 { ac_try='test -z "$ac_cxx_werror_flag"
30474 || test ! -s conftest.err'
30475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30476 (eval $ac_try) 2>&5
30477 ac_status=$?
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; } &&
30480 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30482 (eval $ac_try) 2>&5
30483 ac_status=$?
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); }; }; then
30486 ac_cv_func_std_isinf_in_cmath=yes
30487else
30488 echo "$as_me: failed program was:" >&5
30489sed 's/^/| /' conftest.$ac_ext >&5
30490
30491ac_cv_func_std_isinf_in_cmath=no
30492fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030494 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030495ac_cpp='$CPP $CPPFLAGS'
30496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30498ac_compiler_gnu=$ac_cv_c_compiler_gnu
30499
30500fi
30501echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30502echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030503
30504if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030505
30506cat >>confdefs.h <<\_ACEOF
30507#define HAVE_STD_ISINF_IN_CMATH 1
30508_ACEOF
30509
Reid Spencerabec8f92004-10-27 23:03:44 +000030510fi
30511
Brian Gaeked59a6472004-07-21 03:33:58 +000030512echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30513echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30514if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30515 echo $ECHO_N "(cached) $ECHO_C" >&6
30516else
30517 ac_ext=cc
30518ac_cpp='$CXXCPP $CPPFLAGS'
30519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30522
Reid Spencerabec8f92004-10-27 23:03:44 +000030523 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000030524/* confdefs.h. */
30525_ACEOF
30526cat confdefs.h >>conftest.$ac_ext
30527cat >>conftest.$ac_ext <<_ACEOF
30528/* end confdefs.h. */
30529#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030530int
30531main ()
30532{
30533float f; finite(f);
30534 ;
30535 return 0;
30536}
Brian Gaeked59a6472004-07-21 03:33:58 +000030537_ACEOF
30538rm -f conftest.$ac_objext
30539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030540 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000030541 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030542 grep -v '^ *+' conftest.er1 >conftest.err
30543 rm -f conftest.er1
30544 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030547 { ac_try='test -z "$ac_cxx_werror_flag"
30548 || test ! -s conftest.err'
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30551 ac_status=$?
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; } &&
30554 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556 (eval $ac_try) 2>&5
30557 ac_status=$?
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; }; then
30560 ac_cv_func_finite_in_ieeefp_h=yes
30561else
30562 echo "$as_me: failed program was:" >&5
30563sed 's/^/| /' conftest.$ac_ext >&5
30564
30565ac_cv_func_finite_in_ieeefp_h=no
30566fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030568 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030569ac_cpp='$CPP $CPPFLAGS'
30570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30572ac_compiler_gnu=$ac_cv_c_compiler_gnu
30573
30574fi
30575echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30576echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030577
Brian Gaeke6802b552004-10-28 05:06:45 +000030578if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030579
30580cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030581#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030582_ACEOF
30583
Reid Spencerabec8f92004-10-27 23:03:44 +000030584fi
30585
30586
30587
John Criswell7a73b802003-06-30 21:59:07 +000030588
30589
30590for ac_header in stdlib.h unistd.h
30591do
30592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30593if eval "test \"\${$as_ac_Header+set}\" = set"; then
30594 echo "$as_me:$LINENO: checking for $ac_header" >&5
30595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30596if eval "test \"\${$as_ac_Header+set}\" = set"; then
30597 echo $ECHO_N "(cached) $ECHO_C" >&6
30598fi
30599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30601else
30602 # Is the header compilable?
30603echo "$as_me:$LINENO: checking $ac_header usability" >&5
30604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30605cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030606/* confdefs.h. */
30607_ACEOF
30608cat confdefs.h >>conftest.$ac_ext
30609cat >>conftest.$ac_ext <<_ACEOF
30610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030611$ac_includes_default
30612#include <$ac_header>
30613_ACEOF
30614rm -f conftest.$ac_objext
30615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030616 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030618 grep -v '^ *+' conftest.er1 >conftest.err
30619 rm -f conftest.er1
30620 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030623 { ac_try='test -z "$ac_c_werror_flag"
30624 || test ! -s conftest.err'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; } &&
30630 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 ac_header_compiler=yes
30637else
30638 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030639sed 's/^/| /' conftest.$ac_ext >&5
30640
John Criswell7a73b802003-06-30 21:59:07 +000030641ac_header_compiler=no
30642fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30645echo "${ECHO_T}$ac_header_compiler" >&6
30646
30647# Is the header present?
30648echo "$as_me:$LINENO: checking $ac_header presence" >&5
30649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30650cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030651/* confdefs.h. */
30652_ACEOF
30653cat confdefs.h >>conftest.$ac_ext
30654cat >>conftest.$ac_ext <<_ACEOF
30655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030656#include <$ac_header>
30657_ACEOF
30658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30660 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030661 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030662 rm -f conftest.er1
30663 cat conftest.err >&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); } >/dev/null; then
30666 if test -s conftest.err; then
30667 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030669 else
30670 ac_cpp_err=
30671 fi
30672else
30673 ac_cpp_err=yes
30674fi
30675if test -z "$ac_cpp_err"; then
30676 ac_header_preproc=yes
30677else
30678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030679sed 's/^/| /' conftest.$ac_ext >&5
30680
John Criswell7a73b802003-06-30 21:59:07 +000030681 ac_header_preproc=no
30682fi
30683rm -f conftest.err conftest.$ac_ext
30684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30685echo "${ECHO_T}$ac_header_preproc" >&6
30686
30687# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30689 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30694 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030695 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030696 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030709 (
30710 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030711## ----------------------------------- ##
30712## Report this to llvmbugs@cs.uiuc.edu ##
30713## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030714_ASBOX
30715 ) |
30716 sed "s/^/$as_me: WARNING: /" >&2
30717 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030718esac
30719echo "$as_me:$LINENO: checking for $ac_header" >&5
30720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30721if eval "test \"\${$as_ac_Header+set}\" = set"; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30723else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030724 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030725fi
30726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30728
30729fi
30730if test `eval echo '${'$as_ac_Header'}'` = yes; then
30731 cat >>confdefs.h <<_ACEOF
30732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30733_ACEOF
30734
30735fi
30736
30737done
30738
30739
30740for ac_func in getpagesize
30741do
30742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30743echo "$as_me:$LINENO: checking for $ac_func" >&5
30744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30745if eval "test \"\${$as_ac_var+set}\" = set"; then
30746 echo $ECHO_N "(cached) $ECHO_C" >&6
30747else
30748 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030749/* confdefs.h. */
30750_ACEOF
30751cat confdefs.h >>conftest.$ac_ext
30752cat >>conftest.$ac_ext <<_ACEOF
30753/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30756#define $ac_func innocuous_$ac_func
30757
John Criswell7a73b802003-06-30 21:59:07 +000030758/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030759 which can conflict with char $ac_func (); below.
30760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30761 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030762
John Criswell0c38eaf2003-09-10 15:17:25 +000030763#ifdef __STDC__
30764# include <limits.h>
30765#else
30766# include <assert.h>
30767#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030768
30769#undef $ac_func
30770
John Criswell7a73b802003-06-30 21:59:07 +000030771/* Override any gcc2 internal prototype to avoid an error. */
30772#ifdef __cplusplus
30773extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030774{
John Criswell7a73b802003-06-30 21:59:07 +000030775#endif
30776/* We use char because int might match the return type of a gcc2
30777 builtin and then its argument prototype would still apply. */
30778char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030779/* The GNU C library defines this for functions which it implements
30780 to always fail with ENOSYS. Some functions are actually named
30781 something starting with __ and the normal name is an alias. */
30782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30783choke me
30784#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030785char (*f) () = $ac_func;
30786#endif
30787#ifdef __cplusplus
30788}
John Criswell7a73b802003-06-30 21:59:07 +000030789#endif
30790
John Criswell0c38eaf2003-09-10 15:17:25 +000030791int
30792main ()
30793{
30794return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030795 ;
30796 return 0;
30797}
30798_ACEOF
30799rm -f conftest.$ac_objext conftest$ac_exeext
30800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030801 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030803 grep -v '^ *+' conftest.er1 >conftest.err
30804 rm -f conftest.er1
30805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030808 { ac_try='test -z "$ac_c_werror_flag"
30809 || test ! -s conftest.err'
30810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811 (eval $ac_try) 2>&5
30812 ac_status=$?
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); }; } &&
30815 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30817 (eval $ac_try) 2>&5
30818 ac_status=$?
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); }; }; then
30821 eval "$as_ac_var=yes"
30822else
30823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030824sed 's/^/| /' conftest.$ac_ext >&5
30825
John Criswell7a73b802003-06-30 21:59:07 +000030826eval "$as_ac_var=no"
30827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030828rm -f conftest.err conftest.$ac_objext \
30829 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030830fi
30831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30833if test `eval echo '${'$as_ac_var'}'` = yes; then
30834 cat >>confdefs.h <<_ACEOF
30835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30836_ACEOF
30837
30838fi
30839done
30840
30841echo "$as_me:$LINENO: checking for working mmap" >&5
30842echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30843if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30845else
30846 if test "$cross_compiling" = yes; then
30847 ac_cv_func_mmap_fixed_mapped=no
30848else
30849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030850/* confdefs.h. */
30851_ACEOF
30852cat confdefs.h >>conftest.$ac_ext
30853cat >>conftest.$ac_ext <<_ACEOF
30854/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030855$ac_includes_default
30856/* malloc might have been renamed as rpl_malloc. */
30857#undef malloc
30858
30859/* Thanks to Mike Haertel and Jim Avera for this test.
30860 Here is a matrix of mmap possibilities:
30861 mmap private not fixed
30862 mmap private fixed at somewhere currently unmapped
30863 mmap private fixed at somewhere already mapped
30864 mmap shared not fixed
30865 mmap shared fixed at somewhere currently unmapped
30866 mmap shared fixed at somewhere already mapped
30867 For private mappings, we should verify that changes cannot be read()
30868 back from the file, nor mmap's back from the file at a different
30869 address. (There have been systems where private was not correctly
30870 implemented like the infamous i386 svr4.0, and systems where the
30871 VM page cache was not coherent with the file system buffer cache
30872 like early versions of FreeBSD and possibly contemporary NetBSD.)
30873 For shared mappings, we should conversely verify that changes get
30874 propagated back to all the places they're supposed to be.
30875
30876 Grep wants private fixed already mapped.
30877 The main things grep needs to know about mmap are:
30878 * does it exist and is it safe to write into the mmap'd area
30879 * how to use it (BSD variants) */
30880
30881#include <fcntl.h>
30882#include <sys/mman.h>
30883
30884#if !STDC_HEADERS && !HAVE_STDLIB_H
30885char *malloc ();
30886#endif
30887
30888/* This mess was copied from the GNU getpagesize.h. */
30889#if !HAVE_GETPAGESIZE
30890/* Assume that all systems that can run configure have sys/param.h. */
30891# if !HAVE_SYS_PARAM_H
30892# define HAVE_SYS_PARAM_H 1
30893# endif
30894
30895# ifdef _SC_PAGESIZE
30896# define getpagesize() sysconf(_SC_PAGESIZE)
30897# else /* no _SC_PAGESIZE */
30898# if HAVE_SYS_PARAM_H
30899# include <sys/param.h>
30900# ifdef EXEC_PAGESIZE
30901# define getpagesize() EXEC_PAGESIZE
30902# else /* no EXEC_PAGESIZE */
30903# ifdef NBPG
30904# define getpagesize() NBPG * CLSIZE
30905# ifndef CLSIZE
30906# define CLSIZE 1
30907# endif /* no CLSIZE */
30908# else /* no NBPG */
30909# ifdef NBPC
30910# define getpagesize() NBPC
30911# else /* no NBPC */
30912# ifdef PAGESIZE
30913# define getpagesize() PAGESIZE
30914# endif /* PAGESIZE */
30915# endif /* no NBPC */
30916# endif /* no NBPG */
30917# endif /* no EXEC_PAGESIZE */
30918# else /* no HAVE_SYS_PARAM_H */
30919# define getpagesize() 8192 /* punt totally */
30920# endif /* no HAVE_SYS_PARAM_H */
30921# endif /* no _SC_PAGESIZE */
30922
30923#endif /* no HAVE_GETPAGESIZE */
30924
30925int
30926main ()
30927{
30928 char *data, *data2, *data3;
30929 int i, pagesize;
30930 int fd;
30931
30932 pagesize = getpagesize ();
30933
30934 /* First, make a file with some known garbage in it. */
30935 data = (char *) malloc (pagesize);
30936 if (!data)
30937 exit (1);
30938 for (i = 0; i < pagesize; ++i)
30939 *(data + i) = rand ();
30940 umask (0);
30941 fd = creat ("conftest.mmap", 0600);
30942 if (fd < 0)
30943 exit (1);
30944 if (write (fd, data, pagesize) != pagesize)
30945 exit (1);
30946 close (fd);
30947
30948 /* Next, try to mmap the file at a fixed address which already has
30949 something else allocated at it. If we can, also make sure that
30950 we see the same garbage. */
30951 fd = open ("conftest.mmap", O_RDWR);
30952 if (fd < 0)
30953 exit (1);
30954 data2 = (char *) malloc (2 * pagesize);
30955 if (!data2)
30956 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030957 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030958 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030959 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030960 exit (1);
30961 for (i = 0; i < pagesize; ++i)
30962 if (*(data + i) != *(data2 + i))
30963 exit (1);
30964
30965 /* Finally, make sure that changes to the mapped area do not
30966 percolate back to the file as seen by read(). (This is a bug on
30967 some variants of i386 svr4.0.) */
30968 for (i = 0; i < pagesize; ++i)
30969 *(data2 + i) = *(data2 + i) + 1;
30970 data3 = (char *) malloc (pagesize);
30971 if (!data3)
30972 exit (1);
30973 if (read (fd, data3, pagesize) != pagesize)
30974 exit (1);
30975 for (i = 0; i < pagesize; ++i)
30976 if (*(data + i) != *(data3 + i))
30977 exit (1);
30978 close (fd);
30979 exit (0);
30980}
30981_ACEOF
30982rm -f conftest$ac_exeext
30983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30984 (eval $ac_link) 2>&5
30985 ac_status=$?
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989 (eval $ac_try) 2>&5
30990 ac_status=$?
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; }; then
30993 ac_cv_func_mmap_fixed_mapped=yes
30994else
30995 echo "$as_me: program exited with status $ac_status" >&5
30996echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030997sed 's/^/| /' conftest.$ac_ext >&5
30998
John Criswell7a73b802003-06-30 21:59:07 +000030999( exit $ac_status )
31000ac_cv_func_mmap_fixed_mapped=no
31001fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031002rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031003fi
31004fi
31005echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31006echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31007if test $ac_cv_func_mmap_fixed_mapped = yes; then
31008
31009cat >>confdefs.h <<\_ACEOF
31010#define HAVE_MMAP 1
31011_ACEOF
31012
31013fi
31014rm -f conftest.mmap
31015
31016echo "$as_me:$LINENO: checking for mmap of files" >&5
31017echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
31018if test "${ac_cv_func_mmap_file+set}" = set; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31020else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031021 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000031022ac_cpp='$CPP $CPPFLAGS'
31023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31025ac_compiler_gnu=$ac_cv_c_compiler_gnu
31026
31027 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031028 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000031029else
31030 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031031
Reid Spencer777ce172004-09-20 04:09:56 +000031032 /* confdefs.h. */
31033_ACEOF
31034cat confdefs.h >>conftest.$ac_ext
31035cat >>conftest.$ac_ext <<_ACEOF
31036/* end confdefs.h. */
31037
John Criswell7a73b802003-06-30 21:59:07 +000031038#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000031039#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000031040#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000031041
31042int
31043main ()
31044{
John Criswell7a73b802003-06-30 21:59:07 +000031045
31046 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000031047 fd = creat ("foo",0777);
31048 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31049 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031050 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000031051 ;
31052 return 0;
31053}
John Criswell7a73b802003-06-30 21:59:07 +000031054_ACEOF
31055rm -f conftest$ac_exeext
31056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31057 (eval $ac_link) 2>&5
31058 ac_status=$?
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31062 (eval $ac_try) 2>&5
31063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; }; then
31066 ac_cv_func_mmap_file=yes
31067else
31068 echo "$as_me: program exited with status $ac_status" >&5
31069echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031070sed 's/^/| /' conftest.$ac_ext >&5
31071
John Criswell7a73b802003-06-30 21:59:07 +000031072( exit $ac_status )
31073ac_cv_func_mmap_file=no
31074fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031075rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031076fi
31077 ac_ext=c
31078ac_cpp='$CPP $CPPFLAGS'
31079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31081ac_compiler_gnu=$ac_cv_c_compiler_gnu
31082
31083
31084fi
31085echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31086echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
31087if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000031088
31089cat >>confdefs.h <<\_ACEOF
31090#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000031091_ACEOF
31092
31093 MMAP_FILE=yes
31094
31095fi
31096
Reid Spencer7931a782004-12-27 06:15:02 +000031097echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31098echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
31099if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31101else
Reid Spencer582a23c2004-12-29 07:07:57 +000031102 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000031103 ac_cv_need_dev_zero_for_mmap=yes
31104 else
31105 ac_cv_need_dev_zero_for_mmap=no
31106 fi
31107
31108fi
31109echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31110echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
31111if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31112
31113cat >>confdefs.h <<\_ACEOF
31114#define NEED_DEV_ZERO_FOR_MMAP 1
31115_ACEOF
31116
31117fi
John Criswell7a73b802003-06-30 21:59:07 +000031118echo "$as_me:$LINENO: checking for mprotect" >&5
31119echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
31120if test "${ac_cv_func_mprotect+set}" = set; then
31121 echo $ECHO_N "(cached) $ECHO_C" >&6
31122else
31123 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031124/* confdefs.h. */
31125_ACEOF
31126cat confdefs.h >>conftest.$ac_ext
31127cat >>conftest.$ac_ext <<_ACEOF
31128/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031129/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
31130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31131#define mprotect innocuous_mprotect
31132
John Criswell7a73b802003-06-30 21:59:07 +000031133/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000031134 which can conflict with char mprotect (); below.
31135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31136 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031137
John Criswell0c38eaf2003-09-10 15:17:25 +000031138#ifdef __STDC__
31139# include <limits.h>
31140#else
31141# include <assert.h>
31142#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000031143
31144#undef mprotect
31145
John Criswell7a73b802003-06-30 21:59:07 +000031146/* Override any gcc2 internal prototype to avoid an error. */
31147#ifdef __cplusplus
31148extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000031149{
John Criswell7a73b802003-06-30 21:59:07 +000031150#endif
31151/* We use char because int might match the return type of a gcc2
31152 builtin and then its argument prototype would still apply. */
31153char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000031154/* The GNU C library defines this for functions which it implements
31155 to always fail with ENOSYS. Some functions are actually named
31156 something starting with __ and the normal name is an alias. */
31157#if defined (__stub_mprotect) || defined (__stub___mprotect)
31158choke me
31159#else
John Criswell0c38eaf2003-09-10 15:17:25 +000031160char (*f) () = mprotect;
31161#endif
31162#ifdef __cplusplus
31163}
John Criswell7a73b802003-06-30 21:59:07 +000031164#endif
31165
John Criswell0c38eaf2003-09-10 15:17:25 +000031166int
31167main ()
31168{
31169return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000031170 ;
31171 return 0;
31172}
31173_ACEOF
31174rm -f conftest.$ac_objext conftest$ac_exeext
31175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031176 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031178 grep -v '^ *+' conftest.er1 >conftest.err
31179 rm -f conftest.er1
31180 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000031183 { ac_try='test -z "$ac_c_werror_flag"
31184 || test ! -s conftest.err'
31185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31186 (eval $ac_try) 2>&5
31187 ac_status=$?
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); }; } &&
31190 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000031191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31192 (eval $ac_try) 2>&5
31193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; }; then
31196 ac_cv_func_mprotect=yes
31197else
31198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031199sed 's/^/| /' conftest.$ac_ext >&5
31200
John Criswell7a73b802003-06-30 21:59:07 +000031201ac_cv_func_mprotect=no
31202fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031203rm -f conftest.err conftest.$ac_objext \
31204 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031205fi
31206echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31207echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31208if test $ac_cv_func_mprotect = yes; then
31209 :
31210else
31211 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31212echo "$as_me: error: Function mprotect() required but not found" >&2;}
31213 { (exit 1); exit 1; }; }
31214fi
31215
31216
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031217if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031218then
Reid Spencer582a23c2004-12-29 07:07:57 +000031219 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31220echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031221fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031222if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031223then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031224 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31225echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031226fi
John Criswell7a73b802003-06-30 21:59:07 +000031227
31228
Brian Gaekef3b24102003-11-16 18:38:14 +000031229echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31230echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031231if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31232 echo $ECHO_N "(cached) $ECHO_C" >&6
31233else
31234 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031235if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031236 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000031237 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031238 if test $? -eq 0 ; then
31239 llvm_cv_llvmgcc_sanity="yes"
31240 fi
31241 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031242fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031243fi
31244echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31245echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31246
31247if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000031248 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031249 LLVMCC1=$llvmcc1path
31250
Reid Spencer502935f2004-12-22 05:56:56 +000031251 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031252 LLVMCC1PLUS=$llvmcc1pluspath
31253
Reid Spencer502935f2004-12-22 05:56:56 +000031254 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31255 LLVMGCCDIR=$llvmgccdir
31256
Reid Spencerb5d75b82006-05-09 00:31:01 +000031257 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031258 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31259 LLVMGCC_VERSION=$llvmgccversion
31260
31261 LLVMGCC_MAJVERS=$llvmgccmajvers
31262
Brian Gaekef3b24102003-11-16 18:38:14 +000031263fi
31264
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031265SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031266
31267
Reid Spencere9de0912004-08-20 09:03:57 +000031268# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031269# information into substitutions that will end up in Makefile.config.in
31270# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000031271if test "${prefix}" == "NONE" ; then
31272 prefix="/usr/local"
31273fi
Reid Spencere9de0912004-08-20 09:03:57 +000031274eval LLVM_PREFIX="${prefix}";
31275eval LLVM_BINDIR="${prefix}/bin";
31276eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031277eval LLVM_DATADIR="${prefix}/share/llvm";
31278eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31279eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031280eval LLVM_INCLUDEDIR="${prefix}/include";
31281eval LLVM_INFODIR="${prefix}/info";
31282eval LLVM_MANDIR="${prefix}/man";
31283LLVM_CONFIGTIME=`date`
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031295# Place the various directores into the config.h file as #defines so that we
31296# can know about the installation paths within LLVM.
31297
Reid Spencere9de0912004-08-20 09:03:57 +000031298cat >>confdefs.h <<_ACEOF
31299#define LLVM_PREFIX "$LLVM_PREFIX"
31300_ACEOF
31301
31302
31303cat >>confdefs.h <<_ACEOF
31304#define LLVM_BINDIR "$LLVM_BINDIR"
31305_ACEOF
31306
31307
31308cat >>confdefs.h <<_ACEOF
31309#define LLVM_LIBDIR "$LLVM_LIBDIR"
31310_ACEOF
31311
31312
31313cat >>confdefs.h <<_ACEOF
31314#define LLVM_DATADIR "$LLVM_DATADIR"
31315_ACEOF
31316
31317
31318cat >>confdefs.h <<_ACEOF
31319#define LLVM_DATADIR "$LLVM_DOCSDIR"
31320_ACEOF
31321
31322
31323cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031324#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031325_ACEOF
31326
31327
31328cat >>confdefs.h <<_ACEOF
31329#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31330_ACEOF
31331
31332
31333cat >>confdefs.h <<_ACEOF
31334#define LLVM_INFODIR "$LLVM_INFODIR"
31335_ACEOF
31336
31337
31338cat >>confdefs.h <<_ACEOF
31339#define LLVM_MANDIR "$LLVM_MANDIR"
31340_ACEOF
31341
31342
31343cat >>confdefs.h <<_ACEOF
31344#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31345_ACEOF
31346
31347
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031348
31349 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31350
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031351 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31352
31353 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31354
31355 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31356
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031357 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31358
31359
31360 ac_config_files="$ac_config_files Makefile.config"
31361
31362
Reid Spencer1f319422004-11-29 04:56:35 +000031363 ac_config_files="$ac_config_files docs/doxygen.cfg"
31364
31365
Reid Spencere198afc2006-04-20 22:15:30 +000031366 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000031367
31368
Reid Spencerc0682832005-02-24 19:05:19 +000031369 ac_config_commands="$ac_config_commands setup"
31370
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031371 ac_config_commands="$ac_config_commands Makefile"
31372
31373
31374 ac_config_commands="$ac_config_commands Makefile.common"
31375
31376
31377 ac_config_commands="$ac_config_commands examples/Makefile"
31378
31379
31380 ac_config_commands="$ac_config_commands lib/Makefile"
31381
31382
31383 ac_config_commands="$ac_config_commands runtime/Makefile"
31384
31385
31386 ac_config_commands="$ac_config_commands test/Makefile"
31387
31388
31389 ac_config_commands="$ac_config_commands test/Makefile.tests"
31390
31391
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031392 ac_config_commands="$ac_config_commands tools/Makefile"
31393
31394
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031395 ac_config_commands="$ac_config_commands utils/Makefile"
31396
31397
31398 ac_config_commands="$ac_config_commands projects/Makefile"
31399
31400
31401
John Criswell7a73b802003-06-30 21:59:07 +000031402cat >confcache <<\_ACEOF
31403# This file is a shell script that caches the results of configure
31404# tests run on this system so they can be shared between configure
31405# scripts and configure runs, see configure's option --config-cache.
31406# It is not useful on other systems. If it contains results you don't
31407# want to keep, you may remove or edit it.
31408#
31409# config.status only pays attention to the cache file if you give it
31410# the --recheck option to rerun configure.
31411#
John Criswell0c38eaf2003-09-10 15:17:25 +000031412# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000031413# loading this file, other *unset* `ac_cv_foo' will be assigned the
31414# following values.
31415
31416_ACEOF
31417
31418# The following way of writing the cache mishandles newlines in values,
31419# but we know of no workaround that is simple, portable, and efficient.
31420# So, don't put newlines in cache variables' values.
31421# Ultrix sh set writes to stderr and can't be redirected directly,
31422# and sets the high bit in the cache file unless we assign to the vars.
31423{
31424 (set) 2>&1 |
31425 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31426 *ac_space=\ *)
31427 # `set' does not quote correctly, so add quotes (double-quote
31428 # substitution turns \\\\ into \\, and sed turns \\ into \).
31429 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031430 "s/'/'\\\\''/g;
31431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000031432 ;;
31433 *)
31434 # `set' quotes correctly as required by POSIX, so do not add quotes.
31435 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031436 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000031437 ;;
31438 esac;
31439} |
31440 sed '
31441 t clear
31442 : clear
31443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31444 t end
31445 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31446 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000031447if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000031448 if test -w $cache_file; then
31449 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31450 cat confcache >$cache_file
31451 else
31452 echo "not updating unwritable cache $cache_file"
31453 fi
31454fi
31455rm -f confcache
31456
31457test "x$prefix" = xNONE && prefix=$ac_default_prefix
31458# Let make expand exec_prefix.
31459test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31460
31461# VPATH may cause trouble with some makes, so we remove $(srcdir),
31462# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31463# trailing colons and then remove the whole line if VPATH becomes empty
31464# (actually we leave an empty line to preserve line numbers).
31465if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031466 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000031467s/:*\$(srcdir):*/:/;
31468s/:*\${srcdir}:*/:/;
31469s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031470s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000031471s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031472s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000031473}'
31474fi
31475
31476DEFS=-DHAVE_CONFIG_H
31477
John Criswell0c38eaf2003-09-10 15:17:25 +000031478ac_libobjs=
31479ac_ltlibobjs=
31480for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31481 # 1. Remove the extension, and $U if already installed.
31482 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031483 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031484 # 2. Add them.
31485 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31486 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31487done
31488LIBOBJS=$ac_libobjs
31489
31490LTLIBOBJS=$ac_ltlibobjs
31491
31492
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031493if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31494 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31495Usually this means the macro was only invoked conditionally." >&5
31496echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31497Usually this means the macro was only invoked conditionally." >&2;}
31498 { (exit 1); exit 1; }; }
31499fi
31500if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31501 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31502Usually this means the macro was only invoked conditionally." >&5
31503echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31504Usually this means the macro was only invoked conditionally." >&2;}
31505 { (exit 1); exit 1; }; }
31506fi
John Criswell7a73b802003-06-30 21:59:07 +000031507
31508: ${CONFIG_STATUS=./config.status}
31509ac_clean_files_save=$ac_clean_files
31510ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31511{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31512echo "$as_me: creating $CONFIG_STATUS" >&6;}
31513cat >$CONFIG_STATUS <<_ACEOF
31514#! $SHELL
31515# Generated by $as_me.
31516# Run this file to recreate the current configuration.
31517# Compiler output produced by configure, useful for debugging
31518# configure, is in config.log if it exists.
31519
31520debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000031521ac_cs_recheck=false
31522ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000031523SHELL=\${CONFIG_SHELL-$SHELL}
31524_ACEOF
31525
31526cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031527## --------------------- ##
31528## M4sh Initialization. ##
31529## --------------------- ##
31530
31531# Be Bourne compatible
31532if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31533 emulate sh
31534 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031535 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31536 # is contrary to our usage. Disable this feature.
31537 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000031538elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31539 set -o posix
31540fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031541DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000031542
John Criswell7a73b802003-06-30 21:59:07 +000031543# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031544if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031545 as_unset=unset
31546else
31547 as_unset=false
31548fi
31549
John Criswell0c38eaf2003-09-10 15:17:25 +000031550
31551# Work around bugs in pre-3.0 UWIN ksh.
31552$as_unset ENV MAIL MAILPATH
31553PS1='$ '
31554PS2='> '
31555PS4='+ '
31556
31557# NLS nuisances.
31558for as_var in \
31559 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31560 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31561 LC_TELEPHONE LC_TIME
31562do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031563 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031564 eval $as_var=C; export $as_var
31565 else
31566 $as_unset $as_var
31567 fi
31568done
31569
31570# Required to use basename.
31571if expr a : '\(a\)' >/dev/null 2>&1; then
31572 as_expr=expr
31573else
31574 as_expr=false
31575fi
31576
31577if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31578 as_basename=basename
31579else
31580 as_basename=false
31581fi
John Criswell7a73b802003-06-30 21:59:07 +000031582
31583
31584# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031585as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031586$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31587 X"$0" : 'X\(//\)$' \| \
31588 X"$0" : 'X\(/\)$' \| \
31589 . : '\(.\)' 2>/dev/null ||
31590echo X/"$0" |
31591 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31592 /^X\/\(\/\/\)$/{ s//\1/; q; }
31593 /^X\/\(\/\).*/{ s//\1/; q; }
31594 s/.*/./; q'`
31595
John Criswell0c38eaf2003-09-10 15:17:25 +000031596
John Criswell7a73b802003-06-30 21:59:07 +000031597# PATH needs CR, and LINENO needs CR and PATH.
31598# Avoid depending upon Character Ranges.
31599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31602as_cr_digits='0123456789'
31603as_cr_alnum=$as_cr_Letters$as_cr_digits
31604
31605# The user is always right.
31606if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031607 echo "#! /bin/sh" >conf$$.sh
31608 echo "exit 0" >>conf$$.sh
31609 chmod +x conf$$.sh
31610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031611 PATH_SEPARATOR=';'
31612 else
31613 PATH_SEPARATOR=:
31614 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031615 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031616fi
31617
31618
31619 as_lineno_1=$LINENO
31620 as_lineno_2=$LINENO
31621 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31622 test "x$as_lineno_1" != "x$as_lineno_2" &&
31623 test "x$as_lineno_3" = "x$as_lineno_2" || {
31624 # Find who we are. Look in the path if we contain no path at all
31625 # relative or not.
31626 case $0 in
31627 *[\\/]* ) as_myself=$0 ;;
31628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31629for as_dir in $PATH
31630do
31631 IFS=$as_save_IFS
31632 test -z "$as_dir" && as_dir=.
31633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31634done
31635
31636 ;;
31637 esac
31638 # We did not find ourselves, most probably we were run as `sh COMMAND'
31639 # in which case we are not to be found in the path.
31640 if test "x$as_myself" = x; then
31641 as_myself=$0
31642 fi
31643 if test ! -f "$as_myself"; then
31644 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31645echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31646 { (exit 1); exit 1; }; }
31647 fi
31648 case $CONFIG_SHELL in
31649 '')
31650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31651for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31652do
31653 IFS=$as_save_IFS
31654 test -z "$as_dir" && as_dir=.
31655 for as_base in sh bash ksh sh5; do
31656 case $as_dir in
31657 /*)
31658 if ("$as_dir/$as_base" -c '
31659 as_lineno_1=$LINENO
31660 as_lineno_2=$LINENO
31661 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31662 test "x$as_lineno_1" != "x$as_lineno_2" &&
31663 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031664 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31665 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031666 CONFIG_SHELL=$as_dir/$as_base
31667 export CONFIG_SHELL
31668 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31669 fi;;
31670 esac
31671 done
31672done
31673;;
31674 esac
31675
31676 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31677 # uniformly replaced by the line number. The first 'sed' inserts a
31678 # line-number line before each line; the second 'sed' does the real
31679 # work. The second script uses 'N' to pair each line-number line
31680 # with the numbered line, and appends trailing '-' during
31681 # substitution so that $LINENO is not a special case at line end.
31682 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31683 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31684 sed '=' <$as_myself |
31685 sed '
31686 N
31687 s,$,-,
31688 : loop
31689 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31690 t loop
31691 s,-$,,
31692 s,^['$as_cr_digits']*\n,,
31693 ' >$as_me.lineno &&
31694 chmod +x $as_me.lineno ||
31695 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31696echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31697 { (exit 1); exit 1; }; }
31698
31699 # Don't try to exec as it changes $[0], causing all sort of problems
31700 # (the dirname of $[0] is not the place where we might find the
31701 # original and so on. Autoconf is especially sensible to this).
31702 . ./$as_me.lineno
31703 # Exit status is that of the last command.
31704 exit
31705}
31706
31707
31708case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31709 *c*,-n*) ECHO_N= ECHO_C='
31710' ECHO_T=' ' ;;
31711 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31712 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31713esac
31714
31715if expr a : '\(a\)' >/dev/null 2>&1; then
31716 as_expr=expr
31717else
31718 as_expr=false
31719fi
31720
31721rm -f conf$$ conf$$.exe conf$$.file
31722echo >conf$$.file
31723if ln -s conf$$.file conf$$ 2>/dev/null; then
31724 # We could just check for DJGPP; but this test a) works b) is more generic
31725 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31726 if test -f conf$$.exe; then
31727 # Don't use ln at all; we don't have any links
31728 as_ln_s='cp -p'
31729 else
31730 as_ln_s='ln -s'
31731 fi
31732elif ln conf$$.file conf$$ 2>/dev/null; then
31733 as_ln_s=ln
31734else
31735 as_ln_s='cp -p'
31736fi
31737rm -f conf$$ conf$$.exe conf$$.file
31738
John Criswell0c38eaf2003-09-10 15:17:25 +000031739if mkdir -p . 2>/dev/null; then
31740 as_mkdir_p=:
31741else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031742 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031743 as_mkdir_p=false
31744fi
31745
John Criswell7a73b802003-06-30 21:59:07 +000031746as_executable_p="test -f"
31747
31748# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031749as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031750
31751# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031752as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031753
31754
31755# IFS
31756# We need space, tab and new line, in precisely that order.
31757as_nl='
31758'
31759IFS=" $as_nl"
31760
31761# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031762$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031763
31764exec 6>&1
31765
31766# Open the log real soon, to keep \$[0] and so on meaningful, and to
31767# report actual input values of CONFIG_FILES etc. instead of their
31768# values after options handling. Logging --version etc. is OK.
31769exec 5>>config.log
31770{
31771 echo
31772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31773## Running $as_me. ##
31774_ASBOX
31775} >&5
31776cat >&5 <<_CSEOF
31777
Reid Spencer1bc68642006-07-27 23:00:30 +000031778This file was extended by llvm $as_me 1.9cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031779generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031780
31781 CONFIG_FILES = $CONFIG_FILES
31782 CONFIG_HEADERS = $CONFIG_HEADERS
31783 CONFIG_LINKS = $CONFIG_LINKS
31784 CONFIG_COMMANDS = $CONFIG_COMMANDS
31785 $ $0 $@
31786
31787_CSEOF
31788echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31789echo >&5
31790_ACEOF
31791
31792# Files that config.status was made for.
31793if test -n "$ac_config_files"; then
31794 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31795fi
31796
31797if test -n "$ac_config_headers"; then
31798 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31799fi
31800
31801if test -n "$ac_config_links"; then
31802 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31803fi
31804
31805if test -n "$ac_config_commands"; then
31806 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31807fi
31808
31809cat >>$CONFIG_STATUS <<\_ACEOF
31810
31811ac_cs_usage="\
31812\`$as_me' instantiates files from templates according to the
31813current configuration.
31814
31815Usage: $0 [OPTIONS] [FILE]...
31816
31817 -h, --help print this help, then exit
31818 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031819 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031820 -d, --debug don't remove temporary files
31821 --recheck update $as_me by reconfiguring in the same conditions
31822 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031823 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031824 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031825 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031826
31827Configuration files:
31828$config_files
31829
31830Configuration headers:
31831$config_headers
31832
John Criswellc764fbc2003-09-06 15:17:13 +000031833Configuration commands:
31834$config_commands
31835
John Criswell7a73b802003-06-30 21:59:07 +000031836Report bugs to <bug-autoconf@gnu.org>."
31837_ACEOF
31838
31839cat >>$CONFIG_STATUS <<_ACEOF
31840ac_cs_version="\\
Reid Spencer1bc68642006-07-27 23:00:30 +000031841llvm config.status 1.9cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031842configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031843 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31844
Reid Spencer2706f8c2004-09-19 23:53:36 +000031845Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031846This config.status script is free software; the Free Software Foundation
31847gives unlimited permission to copy, distribute and modify it."
31848srcdir=$srcdir
31849INSTALL="$INSTALL"
31850_ACEOF
31851
31852cat >>$CONFIG_STATUS <<\_ACEOF
31853# If no file are specified by the user, then we need to provide default
31854# value. By we need to know if files were specified by the user.
31855ac_need_defaults=:
31856while test $# != 0
31857do
31858 case $1 in
31859 --*=*)
31860 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31861 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031862 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031863 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031864 -*)
31865 ac_option=$1
31866 ac_optarg=$2
31867 ac_shift=shift
31868 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031869 *) # This is not an option, so the user has probably given explicit
31870 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031871 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031872 ac_need_defaults=false;;
31873 esac
31874
John Criswell0c38eaf2003-09-10 15:17:25 +000031875 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031876 # Handling of the options.
31877_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031878cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31880 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031881 --version | --vers* | -V )
31882 echo "$ac_cs_version"; exit 0 ;;
31883 --he | --h)
31884 # Conflict between --help and --header
31885 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31886Try \`$0 --help' for more information." >&5
31887echo "$as_me: error: ambiguous option: $1
31888Try \`$0 --help' for more information." >&2;}
31889 { (exit 1); exit 1; }; };;
31890 --help | --hel | -h )
31891 echo "$ac_cs_usage"; exit 0 ;;
31892 --debug | --d* | -d )
31893 debug=: ;;
31894 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031895 $ac_shift
31896 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031897 ac_need_defaults=false;;
31898 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031899 $ac_shift
31900 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031901 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31904 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031905
31906 # This is an error.
31907 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31908Try \`$0 --help' for more information." >&5
31909echo "$as_me: error: unrecognized option: $1
31910Try \`$0 --help' for more information." >&2;}
31911 { (exit 1); exit 1; }; } ;;
31912
31913 *) ac_config_targets="$ac_config_targets $1" ;;
31914
31915 esac
31916 shift
31917done
31918
John Criswell0c38eaf2003-09-10 15:17:25 +000031919ac_configure_extra_args=
31920
31921if $ac_cs_silent; then
31922 exec 6>/dev/null
31923 ac_configure_extra_args="$ac_configure_extra_args --silent"
31924fi
31925
31926_ACEOF
31927cat >>$CONFIG_STATUS <<_ACEOF
31928if \$ac_cs_recheck; then
31929 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31930 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31931fi
31932
John Criswell7a73b802003-06-30 21:59:07 +000031933_ACEOF
31934
John Criswellc764fbc2003-09-06 15:17:13 +000031935cat >>$CONFIG_STATUS <<_ACEOF
31936#
31937# INIT-COMMANDS section.
31938#
John Criswell7a73b802003-06-30 21:59:07 +000031939
Reid Spencerc0682832005-02-24 19:05:19 +000031940llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031941
31942_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031943
31944
31945
31946cat >>$CONFIG_STATUS <<\_ACEOF
31947for ac_config_target in $ac_config_targets
31948do
31949 case "$ac_config_target" in
31950 # Handling of arguments.
31951 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031952 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencere198afc2006-04-20 22:15:30 +000031953 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031954 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031955 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31956 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031957 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031958 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031959 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031960 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31961 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031962 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031963 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031964 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031965 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031966 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031967 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31968 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031969 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031970 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31971echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31972 { (exit 1); exit 1; }; };;
31973 esac
31974done
31975
31976# If the user did not use the arguments to specify the items to instantiate,
31977# then the envvar interface is used. Set only those that are not.
31978# We use the long form for the default assignment because of an extremely
31979# bizarre bug on SunOS 4.1.3.
31980if $ac_need_defaults; then
31981 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31982 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031983 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031984fi
31985
John Criswell0c38eaf2003-09-10 15:17:25 +000031986# Have a temporary directory for convenience. Make it in the build tree
31987# simply because there is no reason to put it here, and in addition,
31988# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031989# Create a temporary directory, and hook for its removal unless debugging.
31990$debug ||
31991{
31992 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31993 trap '{ (exit 1); exit 1; }' 1 2 13 15
31994}
31995
31996# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031997
John Criswell7a73b802003-06-30 21:59:07 +000031998{
John Criswell0c38eaf2003-09-10 15:17:25 +000031999 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000032000 test -n "$tmp" && test -d "$tmp"
32001} ||
32002{
John Criswell0c38eaf2003-09-10 15:17:25 +000032003 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000032004 (umask 077 && mkdir $tmp)
32005} ||
32006{
John Criswell0c38eaf2003-09-10 15:17:25 +000032007 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032008 { (exit 1); exit 1; }
32009}
32010
32011_ACEOF
32012
32013cat >>$CONFIG_STATUS <<_ACEOF
32014
32015#
32016# CONFIG_FILES section.
32017#
32018
32019# No need to generate the scripts if there are no CONFIG_FILES.
32020# This happens for instance when ./config.status config.h
32021if test -n "\$CONFIG_FILES"; then
32022 # Protect against being on the right side of a sed subst in config.status.
32023 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32024 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32025s,@SHELL@,$SHELL,;t t
32026s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32027s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32028s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32029s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32030s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32031s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32032s,@exec_prefix@,$exec_prefix,;t t
32033s,@prefix@,$prefix,;t t
32034s,@program_transform_name@,$program_transform_name,;t t
32035s,@bindir@,$bindir,;t t
32036s,@sbindir@,$sbindir,;t t
32037s,@libexecdir@,$libexecdir,;t t
32038s,@datadir@,$datadir,;t t
32039s,@sysconfdir@,$sysconfdir,;t t
32040s,@sharedstatedir@,$sharedstatedir,;t t
32041s,@localstatedir@,$localstatedir,;t t
32042s,@libdir@,$libdir,;t t
32043s,@includedir@,$includedir,;t t
32044s,@oldincludedir@,$oldincludedir,;t t
32045s,@infodir@,$infodir,;t t
32046s,@mandir@,$mandir,;t t
32047s,@build_alias@,$build_alias,;t t
32048s,@host_alias@,$host_alias,;t t
32049s,@target_alias@,$target_alias,;t t
32050s,@DEFS@,$DEFS,;t t
32051s,@ECHO_C@,$ECHO_C,;t t
32052s,@ECHO_N@,$ECHO_N,;t t
32053s,@ECHO_T@,$ECHO_T,;t t
32054s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032055s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000032056s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032057s,@build@,$build,;t t
32058s,@build_cpu@,$build_cpu,;t t
32059s,@build_vendor@,$build_vendor,;t t
32060s,@build_os@,$build_os,;t t
32061s,@host@,$host,;t t
32062s,@host_cpu@,$host_cpu,;t t
32063s,@host_vendor@,$host_vendor,;t t
32064s,@host_os@,$host_os,;t t
32065s,@target@,$target,;t t
32066s,@target_cpu@,$target_cpu,;t t
32067s,@target_vendor@,$target_vendor,;t t
32068s,@target_os@,$target_os,;t t
32069s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000032070s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
32071s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000032072s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032073s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032074s,@CC@,$CC,;t t
32075s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032076s,@LDFLAGS@,$LDFLAGS,;t t
32077s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032078s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032079s,@EXEEXT@,$EXEEXT,;t t
32080s,@OBJEXT@,$OBJEXT,;t t
Reid Spencere2cfe5d2006-07-26 21:14:56 +000032081s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t
32082s,@BUILD_CC@,$BUILD_CC,;t t
32083s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000032084s,@CVSBUILD@,$CVSBUILD,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032085s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencerc28ccd82006-04-09 20:42:14 +000032086s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000032087s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032088s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000032089s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032090s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000032091s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000032092s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
Evan Chengcf9be262006-06-20 22:16:32 +000032093s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032094s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032095s,@CXX@,$CXX,;t t
32096s,@CXXFLAGS@,$CXXFLAGS,;t t
32097s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032098s,@LEX@,$LEX,;t t
32099s,@LEXLIB@,$LEXLIB,;t t
32100s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000032101s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032102s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000032103s,@BISON@,$BISON,;t t
Reid Spencer1bc68642006-07-27 23:00:30 +000032104s,@NM@,$NM,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032105s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032106s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000032107s,@CMP@,$CMP,;t t
32108s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032109s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032110s,@FIND@,$FIND,;t t
32111s,@GREP@,$GREP,;t t
32112s,@MKDIR@,$MKDIR,;t t
32113s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032114s,@RANLIB@,$RANLIB,;t t
32115s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032116s,@RM@,$RM,;t t
32117s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000032118s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000032119s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencercaf0ece2006-06-05 15:54:38 +000032120s,@DOT@,$DOT,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000032121s,@GV@,$GV,;t t
Reid Spencerecbd2422006-06-02 23:13:18 +000032122s,@DOTTY@,$DOTTY,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000032123s,@PERL@,$PERL,;t t
32124s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032125s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32126s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32127s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032128s,@BZIP2@,$BZIP2,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032129s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032130s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032131s,@GROFF@,$GROFF,;t t
32132s,@GZIP@,$GZIP,;t t
32133s,@POD2HTML@,$POD2HTML,;t t
32134s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000032135s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000032136s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032137s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032138s,@EGREP@,$EGREP,;t t
32139s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
32140s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
32141s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
32142s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
32143s,@LIBADD_DL@,$LIBADD_DL,;t t
32144s,@ECHO@,$ECHO,;t t
32145s,@AR@,$AR,;t t
32146s,@ac_ct_AR@,$ac_ct_AR,;t t
32147s,@STRIP@,$STRIP,;t t
32148s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32149s,@CXXCPP@,$CXXCPP,;t t
32150s,@F77@,$F77,;t t
32151s,@FFLAGS@,$FFLAGS,;t t
32152s,@ac_ct_F77@,$ac_ct_F77,;t t
32153s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032154s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000032155s,@LLVMGCC@,$LLVMGCC,;t t
32156s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032157s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032158s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000032159s,@LLVMCC1@,$LLVMCC1,;t t
32160s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000032161s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000032162s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
32163s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000032164s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000032165s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
32166s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
32167s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
32168s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
32169s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
32170s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
32171s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
32172s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
32173s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
32174s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000032175s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000032176s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032177CEOF
32178
32179_ACEOF
32180
32181 cat >>$CONFIG_STATUS <<\_ACEOF
32182 # Split the substitutions into bite-sized pieces for seds with
32183 # small command number limits, like on Digital OSF/1 and HP-UX.
32184 ac_max_sed_lines=48
32185 ac_sed_frag=1 # Number of current file.
32186 ac_beg=1 # First line for current file.
32187 ac_end=$ac_max_sed_lines # Line after last line for current file.
32188 ac_more_lines=:
32189 ac_sed_cmds=
32190 while $ac_more_lines; do
32191 if test $ac_beg -gt 1; then
32192 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32193 else
32194 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32195 fi
32196 if test ! -s $tmp/subs.frag; then
32197 ac_more_lines=false
32198 else
32199 # The purpose of the label and of the branching condition is to
32200 # speed up the sed processing (if there are no `@' at all, there
32201 # is no need to browse any of the substitutions).
32202 # These are the two extra sed commands mentioned above.
32203 (echo ':t
32204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32205 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000032206 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032207 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032208 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032209 fi
32210 ac_sed_frag=`expr $ac_sed_frag + 1`
32211 ac_beg=$ac_end
32212 ac_end=`expr $ac_end + $ac_max_sed_lines`
32213 fi
32214 done
32215 if test -z "$ac_sed_cmds"; then
32216 ac_sed_cmds=cat
32217 fi
32218fi # test -n "$CONFIG_FILES"
32219
32220_ACEOF
32221cat >>$CONFIG_STATUS <<\_ACEOF
32222for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32224 case $ac_file in
32225 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032226 cat >$tmp/stdin
32227 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32228 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032229 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032231 * ) ac_file_in=$ac_file.in ;;
32232 esac
32233
32234 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32235 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032237 X"$ac_file" : 'X\(//\)[^/]' \| \
32238 X"$ac_file" : 'X\(//\)$' \| \
32239 X"$ac_file" : 'X\(/\)' \| \
32240 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032241echo X"$ac_file" |
32242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32244 /^X\(\/\/\)$/{ s//\1/; q; }
32245 /^X\(\/\).*/{ s//\1/; q; }
32246 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032247 { if $as_mkdir_p; then
32248 mkdir -p "$ac_dir"
32249 else
32250 as_dir="$ac_dir"
32251 as_dirs=
32252 while test ! -d "$as_dir"; do
32253 as_dirs="$as_dir $as_dirs"
32254 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032256 X"$as_dir" : 'X\(//\)[^/]' \| \
32257 X"$as_dir" : 'X\(//\)$' \| \
32258 X"$as_dir" : 'X\(/\)' \| \
32259 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032260echo X"$as_dir" |
32261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32263 /^X\(\/\/\)$/{ s//\1/; q; }
32264 /^X\(\/\).*/{ s//\1/; q; }
32265 s/.*/./; q'`
32266 done
32267 test ! -n "$as_dirs" || mkdir $as_dirs
32268 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32269echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32270 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032271
32272 ac_builddir=.
32273
32274if test "$ac_dir" != .; then
32275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32276 # A "../" for each directory in $ac_dir_suffix.
32277 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32278else
32279 ac_dir_suffix= ac_top_builddir=
32280fi
32281
32282case $srcdir in
32283 .) # No --srcdir option. We are building in place.
32284 ac_srcdir=.
32285 if test -z "$ac_top_builddir"; then
32286 ac_top_srcdir=.
32287 else
32288 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32289 fi ;;
32290 [\\/]* | ?:[\\/]* ) # Absolute path.
32291 ac_srcdir=$srcdir$ac_dir_suffix;
32292 ac_top_srcdir=$srcdir ;;
32293 *) # Relative path.
32294 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32295 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32296esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032297
32298# Do not use `cd foo && pwd` to compute absolute paths, because
32299# the directories may not exist.
32300case `pwd` in
32301.) ac_abs_builddir="$ac_dir";;
32302*)
32303 case "$ac_dir" in
32304 .) ac_abs_builddir=`pwd`;;
32305 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32306 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32307 esac;;
32308esac
32309case $ac_abs_builddir in
32310.) ac_abs_top_builddir=${ac_top_builddir}.;;
32311*)
32312 case ${ac_top_builddir}. in
32313 .) ac_abs_top_builddir=$ac_abs_builddir;;
32314 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32315 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32316 esac;;
32317esac
32318case $ac_abs_builddir in
32319.) ac_abs_srcdir=$ac_srcdir;;
32320*)
32321 case $ac_srcdir in
32322 .) ac_abs_srcdir=$ac_abs_builddir;;
32323 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32324 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32325 esac;;
32326esac
32327case $ac_abs_builddir in
32328.) ac_abs_top_srcdir=$ac_top_srcdir;;
32329*)
32330 case $ac_top_srcdir in
32331 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32332 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32333 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32334 esac;;
32335esac
John Criswell7a73b802003-06-30 21:59:07 +000032336
32337
32338 case $INSTALL in
32339 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32340 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32341 esac
32342
32343 if test x"$ac_file" != x-; then
32344 { echo "$as_me:$LINENO: creating $ac_file" >&5
32345echo "$as_me: creating $ac_file" >&6;}
32346 rm -f "$ac_file"
32347 fi
32348 # Let's still pretend it is `configure' which instantiates (i.e., don't
32349 # use $as_me), people would be surprised to read:
32350 # /* config.h. Generated by config.status. */
32351 if test x"$ac_file" = x-; then
32352 configure_input=
32353 else
32354 configure_input="$ac_file. "
32355 fi
32356 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000032357 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000032358
32359 # First look for the input files in the build tree, otherwise in the
32360 # src tree.
32361 ac_file_inputs=`IFS=:
32362 for f in $ac_file_in; do
32363 case $f in
32364 -) echo $tmp/stdin ;;
32365 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032366 # Absolute (can't be DOS-style, as IFS=:)
32367 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032368echo "$as_me: error: cannot find input file: $f" >&2;}
32369 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032370 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032371 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032372 if test -f "$f"; then
32373 # Build tree
32374 echo "$f"
32375 elif test -f "$srcdir/$f"; then
32376 # Source tree
32377 echo "$srcdir/$f"
32378 else
32379 # /dev/null tree
32380 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032381echo "$as_me: error: cannot find input file: $f" >&2;}
32382 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032383 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032384 esac
32385 done` || { (exit 1); exit 1; }
32386_ACEOF
32387cat >>$CONFIG_STATUS <<_ACEOF
32388 sed "$ac_vpsub
32389$extrasub
32390_ACEOF
32391cat >>$CONFIG_STATUS <<\_ACEOF
32392:t
32393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32394s,@configure_input@,$configure_input,;t t
32395s,@srcdir@,$ac_srcdir,;t t
32396s,@abs_srcdir@,$ac_abs_srcdir,;t t
32397s,@top_srcdir@,$ac_top_srcdir,;t t
32398s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32399s,@builddir@,$ac_builddir,;t t
32400s,@abs_builddir@,$ac_abs_builddir,;t t
32401s,@top_builddir@,$ac_top_builddir,;t t
32402s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32403s,@INSTALL@,$ac_INSTALL,;t t
32404" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32405 rm -f $tmp/stdin
32406 if test x"$ac_file" != x-; then
32407 mv $tmp/out $ac_file
32408 else
32409 cat $tmp/out
32410 rm -f $tmp/out
32411 fi
32412
32413done
32414_ACEOF
32415cat >>$CONFIG_STATUS <<\_ACEOF
32416
32417#
32418# CONFIG_HEADER section.
32419#
32420
32421# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32422# NAME is the cpp macro being defined and VALUE is the value it is being given.
32423#
32424# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032425ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32426ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000032427ac_dC=' '
32428ac_dD=',;t'
32429# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000032430ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000032431ac_uB='$,\1#\2define\3'
32432ac_uC=' '
32433ac_uD=',;t'
32434
32435for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32437 case $ac_file in
32438 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032439 cat >$tmp/stdin
32440 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32441 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032442 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032444 * ) ac_file_in=$ac_file.in ;;
32445 esac
32446
32447 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32448echo "$as_me: creating $ac_file" >&6;}
32449
32450 # First look for the input files in the build tree, otherwise in the
32451 # src tree.
32452 ac_file_inputs=`IFS=:
32453 for f in $ac_file_in; do
32454 case $f in
32455 -) echo $tmp/stdin ;;
32456 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032457 # Absolute (can't be DOS-style, as IFS=:)
32458 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032459echo "$as_me: error: cannot find input file: $f" >&2;}
32460 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032461 # Do quote $f, to prevent DOS paths from being IFS'd.
32462 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032463 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032464 if test -f "$f"; then
32465 # Build tree
32466 echo "$f"
32467 elif test -f "$srcdir/$f"; then
32468 # Source tree
32469 echo "$srcdir/$f"
32470 else
32471 # /dev/null tree
32472 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032473echo "$as_me: error: cannot find input file: $f" >&2;}
32474 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032475 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032476 esac
32477 done` || { (exit 1); exit 1; }
32478 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000032480
32481_ACEOF
32482
32483# Transform confdefs.h into two sed scripts, `conftest.defines' and
32484# `conftest.undefs', that substitutes the proper values into
32485# config.h.in to produce config.h. The first handles `#define'
32486# templates, and the second `#undef' templates.
32487# And first: Protect against being on the right side of a sed subst in
32488# config.status. Protect against being in an unquoted here document
32489# in config.status.
32490rm -f conftest.defines conftest.undefs
32491# Using a here document instead of a string reduces the quoting nightmare.
32492# Putting comments in sed scripts is not portable.
32493#
32494# `end' is used to avoid that the second main sed command (meant for
32495# 0-ary CPP macros) applies to n-ary macro definitions.
32496# See the Autoconf documentation for `clear'.
32497cat >confdef2sed.sed <<\_ACEOF
32498s/[\\&,]/\\&/g
32499s,[\\$`],\\&,g
32500t clear
32501: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000032502s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032503t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000032504s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032505: end
32506_ACEOF
32507# If some macros were called several times there might be several times
32508# the same #defines, which is useless. Nevertheless, we may not want to
32509# sort them, since we want the *last* AC-DEFINE to be honored.
32510uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32511sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32512rm -f confdef2sed.sed
32513
32514# This sed command replaces #undef with comments. This is necessary, for
32515# example, in the case of _POSIX_SOURCE, which is predefined and required
32516# on some systems where configure will not decide to define it.
32517cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032518s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000032519_ACEOF
32520
32521# Break up conftest.defines because some shells have a limit on the size
32522# of here documents, and old seds have small limits too (100 cmds).
32523echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000032524echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032525echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32526echo ' :' >>$CONFIG_STATUS
32527rm -f conftest.tail
32528while grep . conftest.defines >/dev/null
32529do
32530 # Write a limited-size here document to $tmp/defines.sed.
32531 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32532 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032533 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032534 # Work around the forget-to-reset-the-flag bug.
32535 echo 't clr' >>$CONFIG_STATUS
32536 echo ': clr' >>$CONFIG_STATUS
32537 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32538 echo 'CEOF
32539 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32540 rm -f $tmp/in
32541 mv $tmp/out $tmp/in
32542' >>$CONFIG_STATUS
32543 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32544 rm -f conftest.defines
32545 mv conftest.tail conftest.defines
32546done
32547rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000032548echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032549echo >>$CONFIG_STATUS
32550
32551# Break up conftest.undefs because some shells have a limit on the size
32552# of here documents, and old seds have small limits too (100 cmds).
32553echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32554rm -f conftest.tail
32555while grep . conftest.undefs >/dev/null
32556do
32557 # Write a limited-size here document to $tmp/undefs.sed.
32558 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32559 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000032560 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032561 # Work around the forget-to-reset-the-flag bug.
32562 echo 't clr' >>$CONFIG_STATUS
32563 echo ': clr' >>$CONFIG_STATUS
32564 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32565 echo 'CEOF
32566 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32567 rm -f $tmp/in
32568 mv $tmp/out $tmp/in
32569' >>$CONFIG_STATUS
32570 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32571 rm -f conftest.undefs
32572 mv conftest.tail conftest.undefs
32573done
32574rm -f conftest.undefs
32575
32576cat >>$CONFIG_STATUS <<\_ACEOF
32577 # Let's still pretend it is `configure' which instantiates (i.e., don't
32578 # use $as_me), people would be surprised to read:
32579 # /* config.h. Generated by config.status. */
32580 if test x"$ac_file" = x-; then
32581 echo "/* Generated by configure. */" >$tmp/config.h
32582 else
32583 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32584 fi
32585 cat $tmp/in >>$tmp/config.h
32586 rm -f $tmp/in
32587 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032588 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032589 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32590echo "$as_me: $ac_file is unchanged" >&6;}
32591 else
32592 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32593$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032594 X"$ac_file" : 'X\(//\)[^/]' \| \
32595 X"$ac_file" : 'X\(//\)$' \| \
32596 X"$ac_file" : 'X\(/\)' \| \
32597 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032598echo X"$ac_file" |
32599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32600 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32601 /^X\(\/\/\)$/{ s//\1/; q; }
32602 /^X\(\/\).*/{ s//\1/; q; }
32603 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032604 { if $as_mkdir_p; then
32605 mkdir -p "$ac_dir"
32606 else
32607 as_dir="$ac_dir"
32608 as_dirs=
32609 while test ! -d "$as_dir"; do
32610 as_dirs="$as_dir $as_dirs"
32611 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032613 X"$as_dir" : 'X\(//\)[^/]' \| \
32614 X"$as_dir" : 'X\(//\)$' \| \
32615 X"$as_dir" : 'X\(/\)' \| \
32616 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032617echo X"$as_dir" |
32618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32620 /^X\(\/\/\)$/{ s//\1/; q; }
32621 /^X\(\/\).*/{ s//\1/; q; }
32622 s/.*/./; q'`
32623 done
32624 test ! -n "$as_dirs" || mkdir $as_dirs
32625 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32626echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32627 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032628
32629 rm -f $ac_file
32630 mv $tmp/config.h $ac_file
32631 fi
32632 else
32633 cat $tmp/config.h
32634 rm -f $tmp/config.h
32635 fi
32636done
32637_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032638cat >>$CONFIG_STATUS <<\_ACEOF
32639
32640#
32641# CONFIG_COMMANDS section.
32642#
32643for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32644 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32646 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32647$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032648 X"$ac_dest" : 'X\(//\)[^/]' \| \
32649 X"$ac_dest" : 'X\(//\)$' \| \
32650 X"$ac_dest" : 'X\(/\)' \| \
32651 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032652echo X"$ac_dest" |
32653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32655 /^X\(\/\/\)$/{ s//\1/; q; }
32656 /^X\(\/\).*/{ s//\1/; q; }
32657 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032658 { if $as_mkdir_p; then
32659 mkdir -p "$ac_dir"
32660 else
32661 as_dir="$ac_dir"
32662 as_dirs=
32663 while test ! -d "$as_dir"; do
32664 as_dirs="$as_dir $as_dirs"
32665 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32666$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32667 X"$as_dir" : 'X\(//\)[^/]' \| \
32668 X"$as_dir" : 'X\(//\)$' \| \
32669 X"$as_dir" : 'X\(/\)' \| \
32670 . : '\(.\)' 2>/dev/null ||
32671echo X"$as_dir" |
32672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32674 /^X\(\/\/\)$/{ s//\1/; q; }
32675 /^X\(\/\).*/{ s//\1/; q; }
32676 s/.*/./; q'`
32677 done
32678 test ! -n "$as_dirs" || mkdir $as_dirs
32679 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32680echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32681 { (exit 1); exit 1; }; }; }
32682
John Criswellc764fbc2003-09-06 15:17:13 +000032683 ac_builddir=.
32684
32685if test "$ac_dir" != .; then
32686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32687 # A "../" for each directory in $ac_dir_suffix.
32688 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32689else
32690 ac_dir_suffix= ac_top_builddir=
32691fi
32692
32693case $srcdir in
32694 .) # No --srcdir option. We are building in place.
32695 ac_srcdir=.
32696 if test -z "$ac_top_builddir"; then
32697 ac_top_srcdir=.
32698 else
32699 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32700 fi ;;
32701 [\\/]* | ?:[\\/]* ) # Absolute path.
32702 ac_srcdir=$srcdir$ac_dir_suffix;
32703 ac_top_srcdir=$srcdir ;;
32704 *) # Relative path.
32705 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32706 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32707esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032708
32709# Do not use `cd foo && pwd` to compute absolute paths, because
32710# the directories may not exist.
32711case `pwd` in
32712.) ac_abs_builddir="$ac_dir";;
32713*)
32714 case "$ac_dir" in
32715 .) ac_abs_builddir=`pwd`;;
32716 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32717 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32718 esac;;
32719esac
32720case $ac_abs_builddir in
32721.) ac_abs_top_builddir=${ac_top_builddir}.;;
32722*)
32723 case ${ac_top_builddir}. in
32724 .) ac_abs_top_builddir=$ac_abs_builddir;;
32725 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32726 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32727 esac;;
32728esac
32729case $ac_abs_builddir in
32730.) ac_abs_srcdir=$ac_srcdir;;
32731*)
32732 case $ac_srcdir in
32733 .) ac_abs_srcdir=$ac_abs_builddir;;
32734 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32735 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32736 esac;;
32737esac
32738case $ac_abs_builddir in
32739.) ac_abs_top_srcdir=$ac_top_srcdir;;
32740*)
32741 case $ac_top_srcdir in
32742 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32743 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32744 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32745 esac;;
32746esac
John Criswellc764fbc2003-09-06 15:17:13 +000032747
32748
32749 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32750echo "$as_me: executing $ac_dest commands" >&6;}
32751 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032752 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32753 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32754 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32755 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32756 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32757 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32758 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32759 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32760 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32761 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32762 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32763 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32764 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32765 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32766 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32767 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32768 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32769 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32770 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32771 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032772 esac
32773done
32774_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032775
32776cat >>$CONFIG_STATUS <<\_ACEOF
32777
32778{ (exit 0); exit 0; }
32779_ACEOF
32780chmod +x $CONFIG_STATUS
32781ac_clean_files=$ac_clean_files_save
32782
32783
32784# configure is writing to config.log, and then calls config.status.
32785# config.status does its own redirection, appending to config.log.
32786# Unfortunately, on DOS this fails, as config.log is still kept open
32787# by configure, so config.status won't be able to write to it; its
32788# output is simply discarded. So we exec the FD to /dev/null,
32789# effectively closing config.log, so it can be properly (re)opened and
32790# appended to by config.status. When coming back to configure, we
32791# need to make the FD available again.
32792if test "$no_create" != yes; then
32793 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032794 ac_config_status_args=
32795 test "$silent" = yes &&
32796 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032797 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032798 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032799 exec 5>>config.log
32800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32801 # would make configure fail if this is the last instruction.
32802 $ac_cs_success || { (exit 1); exit 1; }
32803fi
32804
John Criswell12399a12003-09-30 15:55:44 +000032805#
32806# CONFIG_SUBDIRS section.
32807#
32808if test "$no_recursion" != yes; then
32809
32810 # Remove --cache-file and --srcdir arguments so they do not pile up.
32811 ac_sub_configure_args=
32812 ac_prev=
32813 for ac_arg in $ac_configure_args; do
32814 if test -n "$ac_prev"; then
32815 ac_prev=
32816 continue
32817 fi
32818 case $ac_arg in
32819 -cache-file | --cache-file | --cache-fil | --cache-fi \
32820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32821 ac_prev=cache_file ;;
32822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32824 | --c=*)
32825 ;;
32826 --config-cache | -C)
32827 ;;
32828 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32829 ac_prev=srcdir ;;
32830 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32831 ;;
32832 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32833 ac_prev=prefix ;;
32834 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32835 ;;
32836 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32837 esac
32838 done
32839
32840 # Always prepend --prefix to ensure using the same prefix
32841 # in subdir configurations.
32842 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32843
32844 ac_popdir=`pwd`
32845 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32846
32847 # Do not complain, so a configure script can configure whichever
32848 # parts of a large source tree are present.
32849 test -d $srcdir/$ac_dir || continue
32850
32851 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32852echo "$as_me: configuring in $ac_dir" >&6;}
32853 { if $as_mkdir_p; then
32854 mkdir -p "$ac_dir"
32855 else
32856 as_dir="$ac_dir"
32857 as_dirs=
32858 while test ! -d "$as_dir"; do
32859 as_dirs="$as_dir $as_dirs"
32860 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32861$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032862 X"$as_dir" : 'X\(//\)[^/]' \| \
32863 X"$as_dir" : 'X\(//\)$' \| \
32864 X"$as_dir" : 'X\(/\)' \| \
32865 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032866echo X"$as_dir" |
32867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32869 /^X\(\/\/\)$/{ s//\1/; q; }
32870 /^X\(\/\).*/{ s//\1/; q; }
32871 s/.*/./; q'`
32872 done
32873 test ! -n "$as_dirs" || mkdir $as_dirs
32874 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32875echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32876 { (exit 1); exit 1; }; }; }
32877
32878 ac_builddir=.
32879
32880if test "$ac_dir" != .; then
32881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32882 # A "../" for each directory in $ac_dir_suffix.
32883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32884else
32885 ac_dir_suffix= ac_top_builddir=
32886fi
32887
32888case $srcdir in
32889 .) # No --srcdir option. We are building in place.
32890 ac_srcdir=.
32891 if test -z "$ac_top_builddir"; then
32892 ac_top_srcdir=.
32893 else
32894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32895 fi ;;
32896 [\\/]* | ?:[\\/]* ) # Absolute path.
32897 ac_srcdir=$srcdir$ac_dir_suffix;
32898 ac_top_srcdir=$srcdir ;;
32899 *) # Relative path.
32900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32902esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032903
32904# Do not use `cd foo && pwd` to compute absolute paths, because
32905# the directories may not exist.
32906case `pwd` in
32907.) ac_abs_builddir="$ac_dir";;
32908*)
32909 case "$ac_dir" in
32910 .) ac_abs_builddir=`pwd`;;
32911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32913 esac;;
32914esac
32915case $ac_abs_builddir in
32916.) ac_abs_top_builddir=${ac_top_builddir}.;;
32917*)
32918 case ${ac_top_builddir}. in
32919 .) ac_abs_top_builddir=$ac_abs_builddir;;
32920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32922 esac;;
32923esac
32924case $ac_abs_builddir in
32925.) ac_abs_srcdir=$ac_srcdir;;
32926*)
32927 case $ac_srcdir in
32928 .) ac_abs_srcdir=$ac_abs_builddir;;
32929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32931 esac;;
32932esac
32933case $ac_abs_builddir in
32934.) ac_abs_top_srcdir=$ac_top_srcdir;;
32935*)
32936 case $ac_top_srcdir in
32937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32940 esac;;
32941esac
John Criswell12399a12003-09-30 15:55:44 +000032942
32943
32944 cd $ac_dir
32945
32946 # Check for guested configure; otherwise get Cygnus style configure.
32947 if test -f $ac_srcdir/configure.gnu; then
32948 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32949 elif test -f $ac_srcdir/configure; then
32950 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32951 elif test -f $ac_srcdir/configure.in; then
32952 ac_sub_configure=$ac_configure
32953 else
32954 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32955echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32956 ac_sub_configure=
32957 fi
32958
32959 # The recursion is here.
32960 if test -n "$ac_sub_configure"; then
32961 # Make the cache file name correct relative to the subdirectory.
32962 case $cache_file in
32963 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32964 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032965 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032966 esac
32967
32968 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32969echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32970 # The eval makes quoting arguments work.
32971 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032972 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32973 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032974echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32975 { (exit 1); exit 1; }; }
32976 fi
32977
32978 cd $ac_popdir
32979 done
32980fi
32981
Brian Gaekef3b24102003-11-16 18:38:14 +000032982
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032983if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032984 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32985echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032986 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32987echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32988 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32989echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32990 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32991echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32992 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32993echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032994fi