blob: 9daf472f1b87dafc5f71e7f499afa958243749a5 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswelle2503892005-11-08 21:13:01 +00003# Generated by GNU Autoconf 2.59 for llvm 1.7cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
John Criswellc0c186d2005-11-08 21:11:33 +000011# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
John Criswelle2503892005-11-08 21:13:01 +0000428PACKAGE_VERSION='1.7cvs'
429PACKAGE_STRING='llvm 1.7cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell241116f2005-12-19 20:27:24 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer6e96d812005-12-21 03:31:53 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
John Criswelle2503892005-11-08 21:13:01 +0000968\`configure' configures llvm 1.7cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
John Criswelle2503892005-11-08 21:13:01 +00001030 short | recursive ) echo "Configuration of llvm 1.7cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
Reid Spencer6e96d812005-12-21 03:31:53 +00001038 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001039 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001040 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001041 --enable-threads Use threads if available (default is YES)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001042 --enable-target Build specific host targets:
1043 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001044 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001045 --enable-shared[=PKGS]
1046 build shared libraries [default=yes]
1047 --enable-static[=PKGS]
1048 build static libraries [default=yes]
1049 --enable-fast-install[=PKGS]
1050 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001056 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1057 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001058 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001059 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1060 --with-pic try to use only PIC/non-PIC objects [default=use
1061 both]
1062 --with-tags[=TAGS]
1063 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001064
1065Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001066 CC C compiler command
1067 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1069 nonstandard directory <lib dir>
1070 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001072 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001075 CXXCPP C++ preprocessor
1076 F77 Fortran 77 compiler command
1077 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001078
1079Use these variables to override the choices made by `configure' or to help
1080it to find libraries and programs with nonstandard names/locations.
1081
1082Report bugs to <llvmbugs@cs.uiuc.edu>.
1083_ACEOF
1084fi
1085
1086if test "$ac_init_help" = "recursive"; then
1087 # If there are subdirs, report their specific --help.
1088 ac_popdir=`pwd`
1089 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090 test -d $ac_dir || continue
1091 ac_builddir=.
1092
1093if test "$ac_dir" != .; then
1094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095 # A "../" for each directory in $ac_dir_suffix.
1096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097else
1098 ac_dir_suffix= ac_top_builddir=
1099fi
1100
1101case $srcdir in
1102 .) # No --srcdir option. We are building in place.
1103 ac_srcdir=.
1104 if test -z "$ac_top_builddir"; then
1105 ac_top_srcdir=.
1106 else
1107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108 fi ;;
1109 [\\/]* | ?:[\\/]* ) # Absolute path.
1110 ac_srcdir=$srcdir$ac_dir_suffix;
1111 ac_top_srcdir=$srcdir ;;
1112 *) # Relative path.
1113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001116
1117# Do not use `cd foo && pwd` to compute absolute paths, because
1118# the directories may not exist.
1119case `pwd` in
1120.) ac_abs_builddir="$ac_dir";;
1121*)
1122 case "$ac_dir" in
1123 .) ac_abs_builddir=`pwd`;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126 esac;;
1127esac
1128case $ac_abs_builddir in
1129.) ac_abs_top_builddir=${ac_top_builddir}.;;
1130*)
1131 case ${ac_top_builddir}. in
1132 .) ac_abs_top_builddir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135 esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_srcdir=$ac_srcdir;;
1139*)
1140 case $ac_srcdir in
1141 .) ac_abs_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_srcdir=$ac_top_srcdir;;
1148*)
1149 case $ac_top_srcdir in
1150 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 esac;;
1154esac
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 cd $ac_dir
1157 # Check for guested configure; otherwise get Cygnus style configure.
1158 if test -f $ac_srcdir/configure.gnu; then
1159 echo
1160 $SHELL $ac_srcdir/configure.gnu --help=recursive
1161 elif test -f $ac_srcdir/configure; then
1162 echo
1163 $SHELL $ac_srcdir/configure --help=recursive
1164 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001165 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001166 echo
1167 $ac_configure --help
1168 else
1169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170 fi
1171 cd $ac_popdir
1172 done
1173fi
1174
1175test -n "$ac_init_help" && exit 0
1176if $ac_init_version; then
1177 cat <<\_ACEOF
John Criswelle2503892005-11-08 21:13:01 +00001178llvm configure 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001179generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001180
Reid Spencer2706f8c2004-09-19 23:53:36 +00001181Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001182This configure script is free software; the Free Software Foundation
1183gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001184
John Criswellc0c186d2005-11-08 21:11:33 +00001185Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001186_ACEOF
1187 exit 0
1188fi
1189exec 5>config.log
1190cat >&5 <<_ACEOF
1191This file contains any messages produced by compilers while
1192running configure, to aid debugging if configure makes a mistake.
1193
John Criswelle2503892005-11-08 21:13:01 +00001194It was created by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001195generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001196
1197 $ $0 $@
1198
1199_ACEOF
1200{
1201cat <<_ASUNAME
1202## --------- ##
1203## Platform. ##
1204## --------- ##
1205
1206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211
1212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1214
1215/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1216/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1219/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1220/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1221/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1222
1223_ASUNAME
1224
1225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226for as_dir in $PATH
1227do
1228 IFS=$as_save_IFS
1229 test -z "$as_dir" && as_dir=.
1230 echo "PATH: $as_dir"
1231done
1232
1233} >&5
1234
1235cat >&5 <<_ACEOF
1236
1237
1238## ----------- ##
1239## Core tests. ##
1240## ----------- ##
1241
1242_ACEOF
1243
1244
1245# Keep a trace of the command line.
1246# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001247# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001248# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001249# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001250ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001251ac_configure_args0=
1252ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001253ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001254ac_must_keep_next=false
1255for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001256do
John Criswell0c38eaf2003-09-10 15:17:25 +00001257 for ac_arg
1258 do
1259 case $ac_arg in
1260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1263 continue ;;
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 esac
1267 case $ac_pass in
1268 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269 2)
1270 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001272 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001273 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001274 case $ac_arg in
1275 *=* | --config-cache | -C | -disable-* | --disable-* \
1276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278 | -with-* | --with-* | -without-* | --without-* | --x)
1279 case "$ac_configure_args0 " in
1280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281 esac
1282 ;;
1283 -* ) ac_must_keep_next=true ;;
1284 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001285 fi
1286 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287 # Get rid of the leading space.
1288 ac_sep=" "
1289 ;;
1290 esac
1291 done
John Criswell7a73b802003-06-30 21:59:07 +00001292done
John Criswell0c38eaf2003-09-10 15:17:25 +00001293$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294$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 +00001295
1296# When interrupted or exit'd, cleanup temporary files, and complete
1297# config.log. We remove comments because anyway the quotes in there
1298# would cause problems or look ugly.
1299# WARNING: Be sure not to use single quotes in there, as some shells,
1300# such as our DU 5.0 friend, will then `close' the trap.
1301trap 'exit_status=$?
1302 # Save into config.log some information that might help in debugging.
1303 {
1304 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001305
John Criswell7a73b802003-06-30 21:59:07 +00001306 cat <<\_ASBOX
1307## ---------------- ##
1308## Cache variables. ##
1309## ---------------- ##
1310_ASBOX
1311 echo
1312 # The following way of writing the cache mishandles newlines in values,
1313{
1314 (set) 2>&1 |
1315 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316 *ac_space=\ *)
1317 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001318 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001320 ;;
1321 *)
1322 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001323 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001324 ;;
1325 esac;
1326}
1327 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001328
1329 cat <<\_ASBOX
1330## ----------------- ##
1331## Output variables. ##
1332## ----------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_vars
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341
1342 if test -n "$ac_subst_files"; then
1343 cat <<\_ASBOX
1344## ------------- ##
1345## Output files. ##
1346## ------------- ##
1347_ASBOX
1348 echo
1349 for ac_var in $ac_subst_files
1350 do
1351 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001352 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001353 done | sort
1354 echo
1355 fi
1356
John Criswell7a73b802003-06-30 21:59:07 +00001357 if test -s confdefs.h; then
1358 cat <<\_ASBOX
1359## ----------- ##
1360## confdefs.h. ##
1361## ----------- ##
1362_ASBOX
1363 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001364 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001365 echo
1366 fi
1367 test "$ac_signal" != 0 &&
1368 echo "$as_me: caught signal $ac_signal"
1369 echo "$as_me: exit $exit_status"
1370 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001371 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001372 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373 exit $exit_status
1374 ' 0
1375for ac_signal in 1 2 13 15; do
1376 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377done
1378ac_signal=0
1379
1380# confdefs.h avoids OS command line length limits that DEFS can exceed.
1381rm -rf conftest* confdefs.h
1382# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383echo >confdefs.h
1384
1385# Predefined preprocessor variables.
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_NAME "$PACKAGE_NAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_VERSION "$PACKAGE_VERSION"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_STRING "$PACKAGE_STRING"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409_ACEOF
1410
1411
1412# Let the site file select an alternate cache file if it wants to.
1413# Prefer explicitly selected file to automatically selected ones.
1414if test -z "$CONFIG_SITE"; then
1415 if test "x$prefix" != xNONE; then
1416 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417 else
1418 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419 fi
1420fi
1421for ac_site_file in $CONFIG_SITE; do
1422 if test -r "$ac_site_file"; then
1423 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424echo "$as_me: loading site script $ac_site_file" >&6;}
1425 sed 's/^/| /' "$ac_site_file" >&5
1426 . "$ac_site_file"
1427 fi
1428done
1429
1430if test -r "$cache_file"; then
1431 # Some versions of bash will fail to source /dev/null (special
1432 # files actually), so we avoid doing that.
1433 if test -f "$cache_file"; then
1434 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435echo "$as_me: loading cache $cache_file" >&6;}
1436 case $cache_file in
1437 [\\/]* | ?:[\\/]* ) . $cache_file;;
1438 *) . ./$cache_file;;
1439 esac
1440 fi
1441else
1442 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443echo "$as_me: creating cache $cache_file" >&6;}
1444 >$cache_file
1445fi
1446
1447# Check that the precious variables saved in the cache have kept the same
1448# value.
1449ac_cache_corrupted=false
1450for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001451 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001452 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453 eval ac_new_set=\$ac_env_${ac_var}_set
1454 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455 eval ac_new_val="\$ac_env_${ac_var}_value"
1456 case $ac_old_set,$ac_new_set in
1457 set,)
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1461 ,set)
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464 ac_cache_corrupted=: ;;
1465 ,);;
1466 *)
1467 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001469echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001471echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001472 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001473echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001474 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001475 fi;;
1476 esac
1477 # Pass precious variables to config.status.
1478 if test "$ac_new_set" = set; then
1479 case $ac_new_val in
1480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482 *) ac_arg=$ac_var=$ac_new_val ;;
1483 esac
1484 case " $ac_configure_args " in
1485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1486 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487 esac
1488 fi
1489done
1490if $ac_cache_corrupted; then
1491 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495 { (exit 1); exit 1; }; }
1496fi
1497
1498ac_ext=c
1499ac_cpp='$CPP $CPPFLAGS'
1500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
John Criswell0c38eaf2003-09-10 15:17:25 +00001530
Misha Brukman19098e52005-05-12 22:15:34 +00001531LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001532
1533
1534
1535
1536
1537
1538
John Criswell7a73b802003-06-30 21:59:07 +00001539ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001540for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001541 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break
1545 elif test -f $ac_dir/install.sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install.sh -c"
1548 break
1549 elif test -f $ac_dir/shtool; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break
1553 fi
1554done
1555if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001558 { (exit 1); exit 1; }; }
1559fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
John Criswell392aaa32003-07-22 19:18:09 +00001564
Reid Spencer2706f8c2004-09-19 23:53:36 +00001565if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001566 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1567 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001568echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1569 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001570 fi
John Criswell93e1c722003-09-15 17:04:06 +00001571fi
1572
John Criswell33a911a2003-11-25 20:36:46 +00001573for i in `ls ${srcdir}/projects`
1574do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001575 if test -d ${srcdir}/projects/${i} ; then
1576 case ${i} in
1577 "CVS") ;;
1578 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001579
Reid Spencer4d68ba22004-09-07 16:35:45 +00001580subdirs="$subdirs projects/sample"
1581 ;;
1582 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001583
Reid Spencer4d68ba22004-09-07 16:35:45 +00001584subdirs="$subdirs projects/Stacker"
1585 ;;
1586 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001587
Reid Spencer4d68ba22004-09-07 16:35:45 +00001588subdirs="$subdirs projects/llvm-test"
1589 ;;
1590 "llvm-reopt")
1591
1592subdirs="$subdirs projects/llvm-reopt"
1593;;
1594 "llvm-gcc")
1595
1596subdirs="$subdirs projects/llvm-gcc"
1597 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001598 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001599
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001600subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001601 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001602 "llvm-tv")
1603
1604subdirs="$subdirs projects/llvm-tv"
1605 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001606 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001607
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001608subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001609 ;;
John Criswell241116f2005-12-19 20:27:24 +00001610 "llvm-kernel")
1611
1612subdirs="$subdirs projects/llvm-kernel"
1613 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001614 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001615 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1616echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001617 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001618 esac
John Criswell33a911a2003-11-25 20:36:46 +00001619 fi
1620done
John Criswell559a6c12003-09-30 16:31:48 +00001621
John Criswell7a73b802003-06-30 21:59:07 +00001622
1623# Make sure we can run config.sub.
1624$ac_config_sub sun4 >/dev/null 2>&1 ||
1625 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1626echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629echo "$as_me:$LINENO: checking build system type" >&5
1630echo $ECHO_N "checking build system type... $ECHO_C" >&6
1631if test "${ac_cv_build+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634 ac_cv_build_alias=$build_alias
1635test -z "$ac_cv_build_alias" &&
1636 ac_cv_build_alias=`$ac_config_guess`
1637test -z "$ac_cv_build_alias" &&
1638 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1639echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1640 { (exit 1); exit 1; }; }
1641ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1648echo "${ECHO_T}$ac_cv_build" >&6
1649build=$ac_cv_build
1650build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655echo "$as_me:$LINENO: checking host system type" >&5
1656echo $ECHO_N "checking host system type... $ECHO_C" >&6
1657if test "${ac_cv_host+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 ac_cv_host_alias=$host_alias
1661test -z "$ac_cv_host_alias" &&
1662 ac_cv_host_alias=$ac_cv_build_alias
1663ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1665echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1666 { (exit 1); exit 1; }; }
1667
1668fi
1669echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1670echo "${ECHO_T}$ac_cv_host" >&6
1671host=$ac_cv_host
1672host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677echo "$as_me:$LINENO: checking target system type" >&5
1678echo $ECHO_N "checking target system type... $ECHO_C" >&6
1679if test "${ac_cv_target+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682 ac_cv_target_alias=$target_alias
1683test "x$ac_cv_target_alias" = "x" &&
1684 ac_cv_target_alias=$ac_cv_host_alias
1685ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1687echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1688 { (exit 1); exit 1; }; }
1689
1690fi
1691echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1692echo "${ECHO_T}$ac_cv_target" >&6
1693target=$ac_cv_target
1694target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699# The aliases save the names the user supplied, while $host etc.
1700# will get canonicalized.
1701test -n "$target_alias" &&
1702 test "$program_prefix$program_suffix$program_transform_name" = \
1703 NONENONEs,x,x, &&
1704 program_prefix=${target_alias}-
1705
Reid Spencer7b3e8512004-12-24 06:29:05 +00001706echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1707echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1708if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001712 *-*-aix*)
1713 llvm_cv_os_type="AIX"
1714 llvm_cv_platform_type="Unix" ;;
1715 *-*-cygwin*)
1716 llvm_cv_os_type="Cygwin"
1717 llvm_cv_platform_type="Unix" ;;
1718 *-*-darwin*)
1719 llvm_cv_os_type="Darwin"
1720 llvm_cv_platform_type="Unix" ;;
1721 *-*-freebsd*)
1722 llvm_cv_os_type="FreeBSD"
1723 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001724 *-*-hpux*)
1725 llvm_cv_os_type="HP-UX"
1726 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001727 *-*-interix*)
1728 llvm_cv_os_type="Interix"
1729 llvm_cv_platform_type="Unix" ;;
1730 *-*-linux*)
1731 llvm_cv_os_type="Linux"
1732 llvm_cv_platform_type="Unix" ;;
1733 *-*-solaris*)
1734 llvm_cv_os_type="SunOS"
1735 llvm_cv_platform_type="Unix" ;;
1736 *-*-win32*)
1737 llvm_cv_os_type="Win32"
1738 llvm_cv_platform_type="Win32" ;;
1739 *-*-mingw*)
1740 llvm_cv_os_type="MingW"
1741 llvm_cv_platform_type="Win32" ;;
1742 *)
1743 llvm_cv_os_type="Unknown"
1744 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001745esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001746fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001747echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001749
Reid Spencer7b3e8512004-12-24 06:29:05 +00001750if test "$llvm_cv_os_type" = "Unknown" ; then
1751 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001753 { (exit 1); exit 1; }; }
1754fi
1755
Reid Spencer7b3e8512004-12-24 06:29:05 +00001756OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001757
1758
Reid Spencer7b3e8512004-12-24 06:29:05 +00001759case $llvm_cv_platform_type in
1760 Unix)
1761
1762cat >>confdefs.h <<\_ACEOF
1763#define LLVM_ON_UNIX 1
1764_ACEOF
1765
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001766 LLVM_ON_UNIX=1
1767
1768 LLVM_ON_WIN32=0
1769
Reid Spencer7b3e8512004-12-24 06:29:05 +00001770 ;;
1771 Win32)
1772
1773cat >>confdefs.h <<\_ACEOF
1774#define LLVM_ON_WIN32 1
1775_ACEOF
1776
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001777 LLVM_ON_UNIX=0
1778
1779 LLVM_ON_WIN32=1
1780
Reid Spencer7b3e8512004-12-24 06:29:05 +00001781 ;;
1782esac
1783
Reid Spencer73fb5482004-08-31 14:20:36 +00001784echo "$as_me:$LINENO: checking target architecture" >&5
1785echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001786if test "${llvm_cv_target_arch+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001790 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001791 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001792 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1793 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001794 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001795 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001796 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001797esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001798fi
1799echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1800echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001801
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001802if test "$llvm_cv_target_arch" = "Unknown" ; then
1803 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1804echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1805fi
John Criswell76595452003-07-01 22:07:39 +00001806
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001807ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001808
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001809
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001810ac_ext=c
1811ac_cpp='$CPP $CPPFLAGS'
1812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001815if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818echo "$as_me:$LINENO: checking for $ac_word" >&5
1819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1825else
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837done
1838done
1839
1840fi
1841fi
1842CC=$ac_cv_prog_CC
1843if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845echo "${ECHO_T}$CC" >&6
1846else
1847 echo "$as_me:$LINENO: result: no" >&5
1848echo "${ECHO_T}no" >&6
1849fi
1850
1851fi
1852if test -z "$ac_cv_prog_CC"; then
1853 ac_ct_CC=$CC
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855set dummy gcc; ac_word=$2
1856echo "$as_me:$LINENO: checking for $ac_word" >&5
1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863else
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="gcc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875done
1876done
1877
1878fi
1879fi
1880ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883echo "${ECHO_T}$ac_ct_CC" >&6
1884else
1885 echo "$as_me:$LINENO: result: no" >&5
1886echo "${ECHO_T}no" >&6
1887fi
1888
1889 CC=$ac_ct_CC
1890else
1891 CC="$ac_cv_prog_CC"
1892fi
1893
1894if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897set dummy ${ac_tool_prefix}cc; ac_word=$2
1898echo "$as_me:$LINENO: checking for $ac_word" >&5
1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1905else
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_CC="${ac_tool_prefix}cc"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 break 2
1916 fi
1917done
1918done
1919
1920fi
1921fi
1922CC=$ac_cv_prog_CC
1923if test -n "$CC"; then
1924 echo "$as_me:$LINENO: result: $CC" >&5
1925echo "${ECHO_T}$CC" >&6
1926else
1927 echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931fi
1932if test -z "$ac_cv_prog_CC"; then
1933 ac_ct_CC=$CC
1934 # Extract the first word of "cc", so it can be a program name with args.
1935set dummy cc; ac_word=$2
1936echo "$as_me:$LINENO: checking for $ac_word" >&5
1937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940else
1941 if test -n "$ac_ct_CC"; then
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943else
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_ac_ct_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
1957
1958fi
1959fi
1960ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961if test -n "$ac_ct_CC"; then
1962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963echo "${ECHO_T}$ac_ct_CC" >&6
1964else
1965 echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6
1967fi
1968
1969 CC=$ac_ct_CC
1970else
1971 CC="$ac_cv_prog_CC"
1972fi
1973
1974fi
1975if test -z "$CC"; then
1976 # Extract the first word of "cc", so it can be a program name with args.
1977set dummy cc; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1985else
1986 ac_prog_rejected=no
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995 ac_prog_rejected=yes
1996 continue
1997 fi
1998 ac_cv_prog_CC="cc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002done
2003done
2004
2005if test $ac_prog_rejected = yes; then
2006 # We found a bogon in the path, so make sure we never use it.
2007 set dummy $ac_cv_prog_CC
2008 shift
2009 if test $# != 0; then
2010 # We chose a different compiler from the bogus one.
2011 # However, it has the same basename, so the bogon will be chosen
2012 # first if we set CC to just the basename; use the full file name.
2013 shift
2014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015 fi
2016fi
2017fi
2018fi
2019CC=$ac_cv_prog_CC
2020if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022echo "${ECHO_T}$CC" >&6
2023else
2024 echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
2026fi
2027
2028fi
2029if test -z "$CC"; then
2030 if test -n "$ac_tool_prefix"; then
2031 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002032 do
2033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002037if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054done
2055done
2056
2057fi
2058fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002059CC=$ac_cv_prog_CC
2060if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002063else
2064 echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002069 done
2070fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071if test -z "$CC"; then
2072 ac_ct_CC=$CC
2073 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002074do
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076set dummy $ac_prog; ac_word=$2
2077echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002092 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096done
2097done
2098
2099fi
2100fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002101ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102if test -n "$ac_ct_CC"; then
2103 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002105else
2106 echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6
2108fi
2109
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002110 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002111done
John Criswell7a73b802003-06-30 21:59:07 +00002112
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002113 CC=$ac_ct_CC
2114fi
2115
John Criswell7a73b802003-06-30 21:59:07 +00002116fi
2117
2118
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002119test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120See \`config.log' for more details." >&5
2121echo "$as_me: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2124
John Criswell7a73b802003-06-30 21:59:07 +00002125# Provide some information about the compiler.
2126echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002127 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002128ac_compiler=`set X $ac_compile; echo $2`
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130 (eval $ac_compiler --version </dev/null >&5) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135 (eval $ac_compiler -v </dev/null >&5) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140 (eval $ac_compiler -V </dev/null >&5) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144
2145cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002146/* confdefs.h. */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002151
John Criswell7a73b802003-06-30 21:59:07 +00002152int
2153main ()
2154{
2155
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002161ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002162# Try to create an executable without -o first, disregard a.out.
2163# It will help us diagnose broken compilers, and finding out an intuition
2164# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002165echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002167ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169 (eval $ac_link_default) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Find the output, starting from the most likely. This scheme is
2174# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175# resort.
2176
2177# Be careful to initialize this variable, since it used to be cached.
2178# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002180# b.out is created by i960 compilers.
2181for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182do
2183 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002184 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 # This is the source file.
2189 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 # We found the default executable, but exeext='' is most
2192 # certainly right.
2193 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # FIXME: I believe we export ac_cv_exeext for Libtool,
2197 # but it would be cool to find out if it's true. Does anybody
2198 # maintain Libtool? --akim.
2199 export ac_cv_exeext
2200 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002201 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002202 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002203 esac
2204done
2205else
2206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002207sed 's/^/| /' conftest.$ac_ext >&5
2208
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002209{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002210See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002211echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002212See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002213 { (exit 77); exit 77; }; }
2214fi
2215
2216ac_exeext=$ac_cv_exeext
2217echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6
2219
2220# Check the compiler produces executables we can run. If not, either
2221# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002222echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002224# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225# If not cross compiling, check that we can run a simple program.
2226if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 cross_compiling=no
2234 else
2235 if test "$cross_compiling" = maybe; then
2236 cross_compiling=yes
2237 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002241echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002244 { (exit 1); exit 1; }; }
2245 fi
2246 fi
2247fi
2248echo "$as_me:$LINENO: result: yes" >&5
2249echo "${ECHO_T}yes" >&6
2250
John Criswell0c38eaf2003-09-10 15:17:25 +00002251rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002252ac_clean_files=$ac_clean_files_save
2253# Check the compiler produces executables we can run. If not, either
2254# the compiler is broken, or we cross compile.
2255echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258echo "${ECHO_T}$cross_compiling" >&6
2259
2260echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263 (eval $ac_link) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002271for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002273 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002276 export ac_cv_exeext
2277 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 * ) break;;
2279 esac
2280done
2281else
John Criswell0c38eaf2003-09-10 15:17:25 +00002282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&5
2284echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002286 { (exit 1); exit 1; }; }
2287fi
2288
2289rm -f conftest$ac_cv_exeext
2290echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293rm -f conftest.$ac_ext
2294EXEEXT=$ac_cv_exeext
2295ac_exeext=$EXEEXT
2296echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002302/* confdefs.h. */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002307
John Criswell7a73b802003-06-30 21:59:07 +00002308int
2309main ()
2310{
2311
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316rm -f conftest.o conftest.obj
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326 break;;
2327 esac
2328done
2329else
2330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002337 { (exit 1); exit 1; }; }
2338fi
2339
2340rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341fi
2342echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343echo "${ECHO_T}$ac_cv_objext" >&6
2344OBJEXT=$ac_cv_objext
2345ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002346echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002352/* confdefs.h. */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002357
John Criswell7a73b802003-06-30 21:59:07 +00002358int
2359main ()
2360{
2361#ifndef __GNUC__
2362 choke me
2363#endif
2364
2365 ;
2366 return 0;
2367}
2368_ACEOF
2369rm -f conftest.$ac_objext
2370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002371 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_compiler_gnu=yes
2392else
2393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002394sed 's/^/| /' conftest.$ac_ext >&5
2395
John Criswell7a73b802003-06-30 21:59:07 +00002396ac_compiler_gnu=no
2397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002400
2401fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404GCC=`test $ac_compiler_gnu = yes && echo yes`
2405ac_test_CFLAGS=${CFLAGS+set}
2406ac_save_CFLAGS=$CFLAGS
2407CFLAGS="-g"
2408echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002414/* confdefs.h. */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002419
John Criswell7a73b802003-06-30 21:59:07 +00002420int
2421main ()
2422{
2423
2424 ;
2425 return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002430 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002451else
2452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002453sed 's/^/| /' conftest.$ac_ext >&5
2454
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002456fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002458fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2465 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002466 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002468 fi
2469else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470 if test "$GCC" = yes; then
2471 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002472 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002474 fi
2475fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 ac_cv_prog_cc_stdc=no
2482ac_save_CC=$CC
2483cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489#include <stdarg.h>
2490#include <stdio.h>
2491#include <sys/types.h>
2492#include <sys/stat.h>
2493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2494struct buf { int x; };
2495FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496static char *e (p, i)
2497 char **p;
2498 int i;
2499{
2500 return p[i];
2501}
2502static char *f (char * (*g) (char **, int), char **p, ...)
2503{
2504 char *s;
2505 va_list v;
2506 va_start (v,p);
2507 s = g (p, va_arg (v,int));
2508 va_end (v);
2509 return s;
2510}
2511
2512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not '\xHH' hex character constants.
2514 These don't provoke an error unfortunately, instead are silently treated
2515 as 'x'. The following induces an error, until -std1 is added to get
2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2517 array size at least. It's necessary to write '\x00'==0 to get something
2518 that's true only with -std1. */
2519int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521int test (int i, double x);
2522struct s1 {int (*f) (int a);};
2523struct s2 {int (*f) (double a);};
2524int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525int argc;
2526char **argv;
2527int
2528main ()
2529{
2530return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2531 ;
2532 return 0;
2533}
2534_ACEOF
2535# Don't try gcc -ansi; that turns off useful extensions and
2536# breaks some systems' header files.
2537# AIX -qlanglvl=ansi
2538# Ultrix and OSF/1 -std1
2539# HP-UX 10.20 and later -Ae
2540# HP-UX older versions -Aa -D_HPUX_SOURCE
2541# SVR4 -Xc -D__EXTENSIONS__
2542for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543do
2544 CC="$ac_save_CC $ac_arg"
2545 rm -f conftest.$ac_objext
2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_prog_cc_stdc=$ac_arg
2568break
2569else
2570 echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573fi
2574rm -f conftest.err conftest.$ac_objext
2575done
2576rm -f conftest.$ac_ext conftest.$ac_objext
2577CC=$ac_save_CC
2578
2579fi
2580
2581case "x$ac_cv_prog_cc_stdc" in
2582 x|xno)
2583 echo "$as_me:$LINENO: result: none needed" >&5
2584echo "${ECHO_T}none needed" >&6 ;;
2585 *)
2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588 CC="$CC $ac_cv_prog_cc_stdc" ;;
2589esac
2590
2591# Some people use a C++ compiler to compile C. Since we use `exit',
2592# in C++ we need to declare it. In case someone uses the same compiler
2593# for both compiling C and C++ we need to have the C++ compiler decide
2594# the declaration of exit, since it's the most demanding environment.
2595cat >conftest.$ac_ext <<_ACEOF
2596#ifndef __cplusplus
2597 choke me
2598#endif
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002623 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002624 'extern "C" void std::exit (int) throw (); using std::exit;' \
2625 'extern "C" void std::exit (int); using std::exit;' \
2626 'extern "C" void exit (int) throw ();' \
2627 'extern "C" void exit (int);' \
2628 'void exit (int);'
2629do
2630 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002631/* confdefs.h. */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002636$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002637#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002638int
2639main ()
2640{
2641exit (42);
2642 ;
2643 return 0;
2644}
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002648 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 :
2669else
2670 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002671sed 's/^/| /' conftest.$ac_ext >&5
2672
John Criswell7a73b802003-06-30 21:59:07 +00002673continue
2674fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002676 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002677/* confdefs.h. */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002682$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002683int
2684main ()
2685{
2686exit (42);
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002693 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002694 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002700 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002701 || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 break
2714else
2715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002716sed 's/^/| /' conftest.$ac_ext >&5
2717
John Criswell7a73b802003-06-30 21:59:07 +00002718fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002720done
2721rm -f conftest*
2722if test -n "$ac_declaration"; then
2723 echo '#ifdef __cplusplus' >>confdefs.h
2724 echo $ac_declaration >>confdefs.h
2725 echo '#endif' >>confdefs.h
2726fi
2727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728else
2729 echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2742echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2743if test "${ac_cv_c_bigendian+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746 # See if sys/param.h defines the BYTE_ORDER macro.
2747cat >conftest.$ac_ext <<_ACEOF
2748/* confdefs.h. */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h. */
2753#include <sys/types.h>
2754#include <sys/param.h>
2755
2756int
2757main ()
2758{
2759#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2760 bogus endian macros
2761#endif
2762
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext
2768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2770 ac_status=$?
2771 grep -v '^ *+' conftest.er1 >conftest.err
2772 rm -f conftest.er1
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_c_werror_flag"
2777 || test ! -s conftest.err'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 # It does; now see whether it defined to BIG_ENDIAN or not.
2790cat >conftest.$ac_ext <<_ACEOF
2791/* confdefs.h. */
2792_ACEOF
2793cat confdefs.h >>conftest.$ac_ext
2794cat >>conftest.$ac_ext <<_ACEOF
2795/* end confdefs.h. */
2796#include <sys/types.h>
2797#include <sys/param.h>
2798
2799int
2800main ()
2801{
2802#if BYTE_ORDER != BIG_ENDIAN
2803 not big endian
2804#endif
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810rm -f conftest.$ac_objext
2811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 ac_cv_c_bigendian=yes
2833else
2834 echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837ac_cv_c_bigendian=no
2838fi
2839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840else
2841 echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844# It does not; compile a test program.
2845if test "$cross_compiling" = yes; then
2846 # try to guess the endianness by grepping values into an object file
2847 ac_cv_c_bigendian=unknown
2848 cat >conftest.$ac_ext <<_ACEOF
2849/* confdefs.h. */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h. */
2854short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2855short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2856void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2857short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2858short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2859void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2860int
2861main ()
2862{
2863 _ascii (); _ebcdic ();
2864 ;
2865 return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext
2869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -z "$ac_c_werror_flag"
2878 || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2891 ac_cv_c_bigendian=yes
2892fi
2893if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2894 if test "$ac_cv_c_bigendian" = unknown; then
2895 ac_cv_c_bigendian=no
2896 else
2897 # finding both strings is unlikely to happen, but who knows?
2898 ac_cv_c_bigendian=unknown
2899 fi
2900fi
2901else
2902 echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905fi
2906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907else
2908 cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
2914int
2915main ()
2916{
2917 /* Are we little or big endian? From Harbison&Steele. */
2918 union
2919 {
2920 long l;
2921 char c[sizeof (long)];
2922 } u;
2923 u.l = 1;
2924 exit (u.c[sizeof (long) - 1] == 1);
2925}
2926_ACEOF
2927rm -f conftest$ac_exeext
2928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929 (eval $ac_link) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_c_bigendian=no
2939else
2940 echo "$as_me: program exited with status $ac_status" >&5
2941echo "$as_me: failed program was:" >&5
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
2944( exit $ac_status )
2945ac_cv_c_bigendian=yes
2946fi
2947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2948fi
2949fi
2950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951fi
2952echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2953echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2954case $ac_cv_c_bigendian in
2955 yes)
2956 ENDIAN=big
2957 ;;
2958 no)
2959 ENDIAN=little
2960 ;;
2961 *)
2962 { { echo "$as_me:$LINENO: error: unknown endianness
2963presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2964echo "$as_me: error: unknown endianness
2965presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2966 { (exit 1); exit 1; }; } ;;
2967esac
2968
2969
2970
2971# Check whether --enable-optimized or --disable-optimized was given.
2972if test "${enable_optimized+set}" = set; then
2973 enableval="$enable_optimized"
2974
2975else
2976 enableval=no
2977fi;
2978if test ${enableval} = "no" ; then
2979 ENABLE_OPTIMIZED=
2980
2981else
2982 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2983
2984fi
2985
Reid Spencer6e96d812005-12-21 03:31:53 +00002986# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
2987if test "${enable_debug_runtime+set}" = set; then
2988 enableval="$enable_debug_runtime"
2989
2990else
2991 enableval=no
2992fi;
2993if test ${enableval} = "no" ; then
2994 DEBUG_RUNTIME=
2995
2996else
2997 DEBUG_RUNTIME=DEBUG_RUNTIME=1
2998
2999fi
3000
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003001# Check whether --enable-jit or --disable-jit was given.
3002if test "${enable_jit+set}" = set; then
3003 enableval="$enable_jit"
3004
3005else
3006 enableval=default
3007fi;
3008if test ${enableval} = "no"
3009then
3010 JIT=
3011
3012else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003013 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003014 x86) JIT=TARGET_HAS_JIT=1
3015 ;;
3016 Sparc) JIT=TARGET_HAS_JIT=1
3017 ;;
3018 PowerPC) JIT=TARGET_HAS_JIT=1
3019 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003020 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003021 ;;
Andrew Lenharthddc31e82005-07-22 20:54:01 +00003022 Alpha) JIT=TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003023 ;;
3024 IA64) JIT=
3025 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003026 *) JIT=
3027 ;;
3028 esac
3029fi
3030
Reid Spencer1f319422004-11-29 04:56:35 +00003031# Check whether --enable-doxygen or --disable-doxygen was given.
3032if test "${enable_doxygen+set}" = set; then
3033 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003034
Reid Spencer1f319422004-11-29 04:56:35 +00003035else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003036 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003037fi;
3038case "$enableval" in
3039 yes) ENABLE_DOXYGEN=1
3040 ;;
3041 no) ENABLE_DOXYGEN=0
3042 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003043 default) ENABLE_DOXYGEN=0
3044 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3046echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3047 { (exit 1); exit 1; }; } ;;
3048esac
3049
Reid Spencer0a262ba2005-08-24 10:07:20 +00003050# Check whether --enable-threads or --disable-threads was given.
3051if test "${enable_threads+set}" = set; then
3052 enableval="$enable_threads"
3053
3054else
3055 enableval=yes
3056fi;
3057case "$enableval" in
3058 yes) ENABLE_THREADS=1
3059 ;;
3060 no) ENABLE_THREADS=0
3061 ;;
3062 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3063echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3064 { (exit 1); exit 1; }; } ;;
3065esac
3066
3067cat >>confdefs.h <<_ACEOF
3068#define ENABLE_THREADS $ENABLE_THREADS
3069_ACEOF
3070
3071
Reid Spencer945de9b2005-04-22 07:27:28 +00003072TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003073# Check whether --enable-targets or --disable-targets was given.
3074if test "${enable_targets+set}" = set; then
3075 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003076
3077else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003078 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003079fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003080case "$enableval" in
Misha Brukmanccc1c162005-04-22 18:00:34 +00003081 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003082 host-only)
3083 case "$llvm_cv_target_arch" in
3084 x86) TARGETS_TO_BUILD="X86" ;;
3085 x86_64) TARGETS_TO_BUILD="X86" ;;
3086 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3087 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3088 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3089 IA64) TARGETS_TO_BUILD="IA64" ;;
3090 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003091echo "$as_me: error: Can not set target to build" >&2;}
3092 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003093 esac
3094 ;;
3095 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3096 case "$a_target" in
3097 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3098 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3099 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3100 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3101 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3102 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3103 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3104 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3105echo "$as_me: error: Unrecognized target $a_target" >&2;}
3106 { (exit 1); exit 1; }; } ;;
3107 esac
3108 done
3109 ;;
3110esac
Reid Spencer675f0922005-04-22 17:06:18 +00003111TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003112TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3113
3114
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003115
Reid Spencer59473af2004-12-25 07:31:29 +00003116# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3117if test "${with_llvmgccdir+set}" = set; then
3118 withval="$with_llvmgccdir"
3119
3120else
3121 withval=default
3122fi;
3123case "$withval" in
3124 default) WITH_LLVMGCCDIR=default ;;
3125 /*) WITH_LLVMGCCDIR=$withval ;;
3126 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3127echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3128 { (exit 1); exit 1; }; } ;;
3129esac
3130
3131
Reid Spencer945de9b2005-04-22 07:27:28 +00003132
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3140# On Suns, sometimes $CPP names a directory.
3141if test -n "$CPP" && test -d "$CPP"; then
3142 CPP=
3143fi
3144if test -z "$CPP"; then
3145 if test "${ac_cv_prog_CPP+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148 # Double quotes because CPP needs to be expanded
3149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3150 do
3151 ac_preproc_ok=false
3152for ac_c_preproc_warn_flag in '' yes
3153do
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
3166#ifdef __STDC__
3167# include <limits.h>
3168#else
3169# include <assert.h>
3170#endif
3171 Syntax error
3172_ACEOF
3173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184 else
3185 ac_cpp_err=
3186 fi
3187else
3188 ac_cpp_err=yes
3189fi
3190if test -z "$ac_cpp_err"; then
3191 :
3192else
3193 echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 # Broken: fails on valid input.
3197continue
3198fi
3199rm -f conftest.err conftest.$ac_ext
3200
3201 # OK, works on sane cases. Now check whether non-existent headers
3202 # can be detected and how.
3203 cat >conftest.$ac_ext <<_ACEOF
3204/* confdefs.h. */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h. */
3209#include <ac_nonexistent.h>
3210_ACEOF
3211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } >/dev/null; then
3219 if test -s conftest.err; then
3220 ac_cpp_err=$ac_c_preproc_warn_flag
3221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3222 else
3223 ac_cpp_err=
3224 fi
3225else
3226 ac_cpp_err=yes
3227fi
3228if test -z "$ac_cpp_err"; then
3229 # Broken: success on invalid input.
3230continue
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 # Passes both tests.
3236ac_preproc_ok=:
3237break
3238fi
3239rm -f conftest.err conftest.$ac_ext
3240
3241done
3242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243rm -f conftest.err conftest.$ac_ext
3244if $ac_preproc_ok; then
3245 break
3246fi
3247
3248 done
3249 ac_cv_prog_CPP=$CPP
3250
3251fi
3252 CPP=$ac_cv_prog_CPP
3253else
3254 ac_cv_prog_CPP=$CPP
3255fi
3256echo "$as_me:$LINENO: result: $CPP" >&5
3257echo "${ECHO_T}$CPP" >&6
3258ac_preproc_ok=false
3259for ac_c_preproc_warn_flag in '' yes
3260do
3261 # Use a header file that comes with gcc, so configuring glibc
3262 # with a fresh cross-compiler works.
3263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264 # <limits.h> exists even on freestanding compilers.
3265 # On the NeXT, cc -E runs the code through the compiler's parser,
3266 # not just through cpp. "Syntax error" is here to catch this case.
3267 cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h. */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h. */
3273#ifdef __STDC__
3274# include <limits.h>
3275#else
3276# include <assert.h>
3277#endif
3278 Syntax error
3279_ACEOF
3280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282 ac_status=$?
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } >/dev/null; then
3288 if test -s conftest.err; then
3289 ac_cpp_err=$ac_c_preproc_warn_flag
3290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 else
3292 ac_cpp_err=
3293 fi
3294else
3295 ac_cpp_err=yes
3296fi
3297if test -z "$ac_cpp_err"; then
3298 :
3299else
3300 echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 # Broken: fails on valid input.
3304continue
3305fi
3306rm -f conftest.err conftest.$ac_ext
3307
3308 # OK, works on sane cases. Now check whether non-existent headers
3309 # can be detected and how.
3310 cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h. */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h. */
3316#include <ac_nonexistent.h>
3317_ACEOF
3318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329 else
3330 ac_cpp_err=
3331 fi
3332else
3333 ac_cpp_err=yes
3334fi
3335if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3337continue
3338else
3339 echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
3342 # Passes both tests.
3343ac_preproc_ok=:
3344break
3345fi
3346rm -f conftest.err conftest.$ac_ext
3347
3348done
3349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350rm -f conftest.err conftest.$ac_ext
3351if $ac_preproc_ok; then
3352 :
3353else
3354 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3355See \`config.log' for more details." >&5
3356echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3357See \`config.log' for more details." >&2;}
3358 { (exit 1); exit 1; }; }
3359fi
3360
John Criswell7a73b802003-06-30 21:59:07 +00003361ac_ext=c
3362ac_cpp='$CPP $CPPFLAGS'
3363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366
3367ac_ext=c
3368ac_cpp='$CPP $CPPFLAGS'
3369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372if test -n "$ac_tool_prefix"; then
3373 for ac_prog in gcc
3374 do
3375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377echo "$as_me:$LINENO: checking for $ac_word" >&5
3378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379if test "${ac_cv_prog_CC+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397done
3398
3399fi
3400fi
3401CC=$ac_cv_prog_CC
3402if test -n "$CC"; then
3403 echo "$as_me:$LINENO: result: $CC" >&5
3404echo "${ECHO_T}$CC" >&6
3405else
3406 echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408fi
3409
3410 test -n "$CC" && break
3411 done
3412fi
3413if test -z "$CC"; then
3414 ac_ct_CC=$CC
3415 for ac_prog in gcc
3416do
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418set dummy $ac_prog; ac_word=$2
3419echo "$as_me:$LINENO: checking for $ac_word" >&5
3420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438done
3439done
3440
3441fi
3442fi
3443ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444if test -n "$ac_ct_CC"; then
3445 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3446echo "${ECHO_T}$ac_ct_CC" >&6
3447else
3448 echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450fi
3451
3452 test -n "$ac_ct_CC" && break
3453done
3454
3455 CC=$ac_ct_CC
3456fi
3457
3458
John Criswell0c38eaf2003-09-10 15:17:25 +00003459test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3460See \`config.log' for more details." >&5
3461echo "$as_me: error: no acceptable C compiler found in \$PATH
3462See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003463 { (exit 1); exit 1; }; }
3464
3465# Provide some information about the compiler.
3466echo "$as_me:$LINENO:" \
3467 "checking for C compiler version" >&5
3468ac_compiler=`set X $ac_compile; echo $2`
3469{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3470 (eval $ac_compiler --version </dev/null >&5) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }
3474{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3475 (eval $ac_compiler -v </dev/null >&5) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }
3479{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3480 (eval $ac_compiler -V </dev/null >&5) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }
3484
3485echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3486echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3487if test "${ac_cv_c_compiler_gnu+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003491/* confdefs.h. */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003496
John Criswell7a73b802003-06-30 21:59:07 +00003497int
3498main ()
3499{
3500#ifndef __GNUC__
3501 choke me
3502#endif
3503
3504 ;
3505 return 0;
3506}
3507_ACEOF
3508rm -f conftest.$ac_objext
3509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003510 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003511 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_compiler_gnu=yes
3531else
3532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003533sed 's/^/| /' conftest.$ac_ext >&5
3534
John Criswell7a73b802003-06-30 21:59:07 +00003535ac_compiler_gnu=no
3536fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003538ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540fi
3541echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3542echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3543GCC=`test $ac_compiler_gnu = yes && echo yes`
3544ac_test_CFLAGS=${CFLAGS+set}
3545ac_save_CFLAGS=$CFLAGS
3546CFLAGS="-g"
3547echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3548echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3549if test "${ac_cv_prog_cc_g+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003558
John Criswell7a73b802003-06-30 21:59:07 +00003559int
3560main ()
3561{
3562
3563 ;
3564 return 0;
3565}
3566_ACEOF
3567rm -f conftest.$ac_objext
3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003569 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003570 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 ac_cv_prog_cc_g=yes
3590else
3591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003592sed 's/^/| /' conftest.$ac_ext >&5
3593
John Criswell7a73b802003-06-30 21:59:07 +00003594ac_cv_prog_cc_g=no
3595fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003597fi
3598echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3599echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3600if test "$ac_test_CFLAGS" = set; then
3601 CFLAGS=$ac_save_CFLAGS
3602elif test $ac_cv_prog_cc_g = yes; then
3603 if test "$GCC" = yes; then
3604 CFLAGS="-g -O2"
3605 else
3606 CFLAGS="-g"
3607 fi
3608else
3609 if test "$GCC" = yes; then
3610 CFLAGS="-O2"
3611 else
3612 CFLAGS=
3613 fi
3614fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003615echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3616echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3617if test "${ac_cv_prog_cc_stdc+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620 ac_cv_prog_cc_stdc=no
3621ac_save_CC=$CC
3622cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
3628#include <stdarg.h>
3629#include <stdio.h>
3630#include <sys/types.h>
3631#include <sys/stat.h>
3632/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3633struct buf { int x; };
3634FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635static char *e (p, i)
3636 char **p;
3637 int i;
3638{
3639 return p[i];
3640}
3641static char *f (char * (*g) (char **, int), char **p, ...)
3642{
3643 char *s;
3644 va_list v;
3645 va_start (v,p);
3646 s = g (p, va_arg (v,int));
3647 va_end (v);
3648 return s;
3649}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003650
3651/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3652 function prototypes and stuff, but not '\xHH' hex character constants.
3653 These don't provoke an error unfortunately, instead are silently treated
3654 as 'x'. The following induces an error, until -std1 is added to get
3655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3656 array size at least. It's necessary to write '\x00'==0 to get something
3657 that's true only with -std1. */
3658int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
John Criswell0c38eaf2003-09-10 15:17:25 +00003660int test (int i, double x);
3661struct s1 {int (*f) (int a);};
3662struct s2 {int (*f) (double a);};
3663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664int argc;
3665char **argv;
3666int
3667main ()
3668{
3669return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3670 ;
3671 return 0;
3672}
3673_ACEOF
3674# Don't try gcc -ansi; that turns off useful extensions and
3675# breaks some systems' header files.
3676# AIX -qlanglvl=ansi
3677# Ultrix and OSF/1 -std1
3678# HP-UX 10.20 and later -Ae
3679# HP-UX older versions -Aa -D_HPUX_SOURCE
3680# SVR4 -Xc -D__EXTENSIONS__
3681for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682do
3683 CC="$ac_save_CC $ac_arg"
3684 rm -f conftest.$ac_objext
3685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003686 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 ac_cv_prog_cc_stdc=$ac_arg
3707break
3708else
3709 echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003713rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003714done
3715rm -f conftest.$ac_ext conftest.$ac_objext
3716CC=$ac_save_CC
3717
3718fi
3719
3720case "x$ac_cv_prog_cc_stdc" in
3721 x|xno)
3722 echo "$as_me:$LINENO: result: none needed" >&5
3723echo "${ECHO_T}none needed" >&6 ;;
3724 *)
3725 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3726echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3727 CC="$CC $ac_cv_prog_cc_stdc" ;;
3728esac
3729
John Criswell7a73b802003-06-30 21:59:07 +00003730# Some people use a C++ compiler to compile C. Since we use `exit',
3731# in C++ we need to declare it. In case someone uses the same compiler
3732# for both compiling C and C++ we need to have the C++ compiler decide
3733# the declaration of exit, since it's the most demanding environment.
3734cat >conftest.$ac_ext <<_ACEOF
3735#ifndef __cplusplus
3736 choke me
3737#endif
3738_ACEOF
3739rm -f conftest.$ac_objext
3740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003741 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003742 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003748 { ac_try='test -z "$ac_c_werror_flag"
3749 || test ! -s conftest.err'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; } &&
3755 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003762 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003763 'extern "C" void std::exit (int) throw (); using std::exit;' \
3764 'extern "C" void std::exit (int); using std::exit;' \
3765 'extern "C" void exit (int) throw ();' \
3766 'extern "C" void exit (int);' \
3767 'void exit (int);'
3768do
3769 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003770/* confdefs.h. */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003775$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003776#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003777int
3778main ()
3779{
3780exit (42);
3781 ;
3782 return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext
3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003787 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 :
3808else
3809 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003810sed 's/^/| /' conftest.$ac_ext >&5
3811
John Criswell7a73b802003-06-30 21:59:07 +00003812continue
3813fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003815 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003816/* confdefs.h. */
3817_ACEOF
3818cat confdefs.h >>conftest.$ac_ext
3819cat >>conftest.$ac_ext <<_ACEOF
3820/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003821$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003822int
3823main ()
3824{
3825exit (42);
3826 ;
3827 return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext
3831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003832 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003833 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 break
3853else
3854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003855sed 's/^/| /' conftest.$ac_ext >&5
3856
John Criswell7a73b802003-06-30 21:59:07 +00003857fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003859done
3860rm -f conftest*
3861if test -n "$ac_declaration"; then
3862 echo '#ifdef __cplusplus' >>confdefs.h
3863 echo $ac_declaration >>confdefs.h
3864 echo '#endif' >>confdefs.h
3865fi
3866
3867else
3868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003869sed 's/^/| /' conftest.$ac_ext >&5
3870
John Criswell7a73b802003-06-30 21:59:07 +00003871fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003873ac_ext=c
3874ac_cpp='$CPP $CPPFLAGS'
3875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003879ac_ext=cc
3880ac_cpp='$CXXCPP $CPPFLAGS'
3881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3884if test -n "$ac_tool_prefix"; then
3885 for ac_prog in $CCC g++
3886 do
3887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889echo "$as_me:$LINENO: checking for $ac_word" >&5
3890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003894 if test -n "$CXX"; then
3895 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003899do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908done
3909done
3910
3911fi
3912fi
3913CXX=$ac_cv_prog_CXX
3914if test -n "$CXX"; then
3915 echo "$as_me:$LINENO: result: $CXX" >&5
3916echo "${ECHO_T}$CXX" >&6
3917else
3918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920fi
3921
3922 test -n "$CXX" && break
3923 done
3924fi
3925if test -z "$CXX"; then
3926 ac_ct_CXX=$CXX
3927 for ac_prog in $CCC g++
3928do
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
3931echo "$as_me:$LINENO: checking for $ac_word" >&5
3932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936 if test -n "$ac_ct_CXX"; then
3937 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_ac_ct_CXX="$ac_prog"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951done
3952
3953fi
3954fi
3955ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3956if test -n "$ac_ct_CXX"; then
3957 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3958echo "${ECHO_T}$ac_ct_CXX" >&6
3959else
3960 echo "$as_me:$LINENO: result: no" >&5
3961echo "${ECHO_T}no" >&6
3962fi
3963
3964 test -n "$ac_ct_CXX" && break
3965done
3966test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3967
3968 CXX=$ac_ct_CXX
3969fi
3970
3971
3972# Provide some information about the compiler.
3973echo "$as_me:$LINENO:" \
3974 "checking for C++ compiler version" >&5
3975ac_compiler=`set X $ac_compile; echo $2`
3976{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3977 (eval $ac_compiler --version </dev/null >&5) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }
3981{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3982 (eval $ac_compiler -v </dev/null >&5) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }
3986{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3987 (eval $ac_compiler -V </dev/null >&5) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }
3991
3992echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3993echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3994if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
John Criswell7a73b802003-06-30 21:59:07 +00003997 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004003
4004int
4005main ()
4006{
4007#ifndef __GNUC__
4008 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004009#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004010
4011 ;
4012 return 0;
4013}
John Criswell7a73b802003-06-30 21:59:07 +00004014_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004015rm -f conftest.$ac_objext
4016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004018 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004019 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_cxx_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 (eval $ac_try) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 ac_compiler_gnu=yes
4038else
4039 echo "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
4041
4042ac_compiler_gnu=no
4043fi
4044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4046
4047fi
4048echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4049echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4050GXX=`test $ac_compiler_gnu = yes && echo yes`
4051ac_test_CXXFLAGS=${CXXFLAGS+set}
4052ac_save_CXXFLAGS=$CXXFLAGS
4053CXXFLAGS="-g"
4054echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4055echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4056if test "${ac_cv_prog_cxx_g+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059 cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h. */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h. */
4065
4066int
4067main ()
4068{
4069
4070 ;
4071 return 0;
4072}
4073_ACEOF
4074rm -f conftest.$ac_objext
4075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_cxx_werror_flag"
4084 || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 (eval $ac_try) 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_cv_prog_cxx_g=yes
4097else
4098 echo "$as_me: failed program was:" >&5
4099sed 's/^/| /' conftest.$ac_ext >&5
4100
4101ac_cv_prog_cxx_g=no
4102fi
4103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4104fi
4105echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4106echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4107if test "$ac_test_CXXFLAGS" = set; then
4108 CXXFLAGS=$ac_save_CXXFLAGS
4109elif test $ac_cv_prog_cxx_g = yes; then
4110 if test "$GXX" = yes; then
4111 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004112 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004113 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004114 fi
4115else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004116 if test "$GXX" = yes; then
4117 CXXFLAGS="-O2"
4118 else
4119 CXXFLAGS=
4120 fi
John Criswell7a73b802003-06-30 21:59:07 +00004121fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004122for ac_declaration in \
4123 '' \
4124 'extern "C" void std::exit (int) throw (); using std::exit;' \
4125 'extern "C" void std::exit (int); using std::exit;' \
4126 'extern "C" void exit (int) throw ();' \
4127 'extern "C" void exit (int);' \
4128 'void exit (int);'
4129do
4130 cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h. */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h. */
4136$ac_declaration
4137#include <stdlib.h>
4138int
4139main ()
4140{
4141exit (42);
4142 ;
4143 return 0;
4144}
4145_ACEOF
4146rm -f conftest.$ac_objext
4147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_cxx_werror_flag"
4156 || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004168 :
4169else
4170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004171sed 's/^/| /' conftest.$ac_ext >&5
4172
John Criswell7a73b802003-06-30 21:59:07 +00004173continue
4174fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004176 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004182$ac_declaration
4183int
4184main ()
4185{
4186exit (42);
4187 ;
4188 return 0;
4189}
John Criswell7a73b802003-06-30 21:59:07 +00004190_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004191rm -f conftest.$ac_objext
4192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004194 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004195 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_cxx_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004213 break
John Criswell7a73b802003-06-30 21:59:07 +00004214else
4215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004216sed 's/^/| /' conftest.$ac_ext >&5
4217
John Criswell7a73b802003-06-30 21:59:07 +00004218fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004220done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004221rm -f conftest*
4222if test -n "$ac_declaration"; then
4223 echo '#ifdef __cplusplus' >>confdefs.h
4224 echo $ac_declaration >>confdefs.h
4225 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004226fi
4227
4228ac_ext=c
4229ac_cpp='$CPP $CPPFLAGS'
4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
John Criswell7a73b802003-06-30 21:59:07 +00004234echo "$as_me:$LINENO: checking " >&5
4235echo $ECHO_N "checking ... $ECHO_C" >&6
4236if test "${ac_cv_has_flex+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239 for ac_prog in flex lex
4240do
4241 # Extract the first word of "$ac_prog", so it can be a program name with args.
4242set dummy $ac_prog; ac_word=$2
4243echo "$as_me:$LINENO: checking for $ac_word" >&5
4244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245if test "${ac_cv_prog_LEX+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248 if test -n "$LEX"; then
4249 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4250else
4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_LEX="$ac_prog"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262done
4263done
4264
4265fi
4266fi
4267LEX=$ac_cv_prog_LEX
4268if test -n "$LEX"; then
4269 echo "$as_me:$LINENO: result: $LEX" >&5
4270echo "${ECHO_T}$LEX" >&6
4271else
4272 echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6
4274fi
4275
4276 test -n "$LEX" && break
4277done
4278test -n "$LEX" || LEX=":"
4279
4280if test -z "$LEXLIB"
4281then
4282 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4283echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4284if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287 ac_check_lib_save_LIBS=$LIBS
4288LIBS="-lfl $LIBS"
4289cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004295
4296/* Override any gcc2 internal prototype to avoid an error. */
4297#ifdef __cplusplus
4298extern "C"
4299#endif
4300/* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4302char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004303int
4304main ()
4305{
4306yywrap ();
4307 ;
4308 return 0;
4309}
4310_ACEOF
4311rm -f conftest.$ac_objext conftest$ac_exeext
4312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004313 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004314 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004315 grep -v '^ *+' conftest.er1 >conftest.err
4316 rm -f conftest.er1
4317 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004320 { ac_try='test -z "$ac_c_werror_flag"
4321 || test ! -s conftest.err'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_lib_fl_yywrap=yes
4334else
4335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004336sed 's/^/| /' conftest.$ac_ext >&5
4337
John Criswell7a73b802003-06-30 21:59:07 +00004338ac_cv_lib_fl_yywrap=no
4339fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004340rm -f conftest.err conftest.$ac_objext \
4341 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004342LIBS=$ac_check_lib_save_LIBS
4343fi
4344echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4345echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4346if test $ac_cv_lib_fl_yywrap = yes; then
4347 LEXLIB="-lfl"
4348else
4349 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4350echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4351if test "${ac_cv_lib_l_yywrap+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354 ac_check_lib_save_LIBS=$LIBS
4355LIBS="-ll $LIBS"
4356cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004357/* confdefs.h. */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004362
4363/* Override any gcc2 internal prototype to avoid an error. */
4364#ifdef __cplusplus
4365extern "C"
4366#endif
4367/* We use char because int might match the return type of a gcc2
4368 builtin and then its argument prototype would still apply. */
4369char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004370int
4371main ()
4372{
4373yywrap ();
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378rm -f conftest.$ac_objext conftest$ac_exeext
4379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004380 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004387 { ac_try='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_lib_l_yywrap=yes
4401else
4402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004403sed 's/^/| /' conftest.$ac_ext >&5
4404
John Criswell7a73b802003-06-30 21:59:07 +00004405ac_cv_lib_l_yywrap=no
4406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004407rm -f conftest.err conftest.$ac_objext \
4408 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004409LIBS=$ac_check_lib_save_LIBS
4410fi
4411echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4412echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4413if test $ac_cv_lib_l_yywrap = yes; then
4414 LEXLIB="-ll"
4415fi
4416
4417fi
4418
4419fi
4420
4421if test "x$LEX" != "x:"; then
4422 echo "$as_me:$LINENO: checking lex output file root" >&5
4423echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4424if test "${ac_cv_prog_lex_root+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427 # The minimal lex program is just a single line: %%. But some broken lexes
4428# (Solaris, I think it was) want two %% lines, so accommodate them.
4429cat >conftest.l <<_ACEOF
4430%%
4431%%
4432_ACEOF
4433{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4434 (eval $LEX conftest.l) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }
4438if test -f lex.yy.c; then
4439 ac_cv_prog_lex_root=lex.yy
4440elif test -f lexyy.c; then
4441 ac_cv_prog_lex_root=lexyy
4442else
4443 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4444echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4445 { (exit 1); exit 1; }; }
4446fi
4447fi
4448echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4449echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4450rm -f conftest.l
4451LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4452
4453echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4454echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4455if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458 # POSIX says lex can declare yytext either as a pointer or an array; the
4459# default is implementation-dependent. Figure out which it is, since
4460# not all implementations provide the %pointer and %array declarations.
4461ac_cv_prog_lex_yytext_pointer=no
4462echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4463ac_save_LIBS=$LIBS
4464LIBS="$LIBS $LEXLIB"
4465cat >conftest.$ac_ext <<_ACEOF
4466`cat $LEX_OUTPUT_ROOT.c`
4467_ACEOF
4468rm -f conftest.$ac_objext conftest$ac_exeext
4469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004470 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004471 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004477 { ac_try='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_prog_lex_yytext_pointer=yes
4491else
4492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004493sed 's/^/| /' conftest.$ac_ext >&5
4494
John Criswell7a73b802003-06-30 21:59:07 +00004495fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004496rm -f conftest.err conftest.$ac_objext \
4497 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004498LIBS=$ac_save_LIBS
4499rm -f "${LEX_OUTPUT_ROOT}.c"
4500
4501fi
4502echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4503echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4504if test $ac_cv_prog_lex_yytext_pointer = yes; then
4505
4506cat >>confdefs.h <<\_ACEOF
4507#define YYTEXT_POINTER 1
4508_ACEOF
4509
4510fi
4511
4512fi
4513
4514fi
4515echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4516echo "${ECHO_T}$ac_cv_has_flex" >&6
4517if test "$LEX" != "flex"; then
4518 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4519echo "$as_me: error: flex not found but required" >&2;}
4520 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004521else
4522 FLEX=flex
4523
John Criswell7a73b802003-06-30 21:59:07 +00004524fi
4525
4526echo "$as_me:$LINENO: checking " >&5
4527echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004528if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 for ac_prog in 'bison -y' byacc
4532do
4533 # Extract the first word of "$ac_prog", so it can be a program name with args.
4534set dummy $ac_prog; ac_word=$2
4535echo "$as_me:$LINENO: checking for $ac_word" >&5
4536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537if test "${ac_cv_prog_YACC+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 if test -n "$YACC"; then
4541 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4542else
4543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH
4545do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_YACC="$ac_prog"
4551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554done
4555done
4556
4557fi
4558fi
4559YACC=$ac_cv_prog_YACC
4560if test -n "$YACC"; then
4561 echo "$as_me:$LINENO: result: $YACC" >&5
4562echo "${ECHO_T}$YACC" >&6
4563else
4564 echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566fi
4567
4568 test -n "$YACC" && break
4569done
4570test -n "$YACC" || YACC="yacc"
4571
John Criswell7a73b802003-06-30 21:59:07 +00004572fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004573echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4574echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004575if test "$YACC" != "bison -y"; then
4576 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4577echo "$as_me: error: bison not found but required" >&2;}
4578 { (exit 1); exit 1; }; }
4579else
Brian Gaeke12810632004-01-13 06:52:10 +00004580 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004581
4582fi
4583
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004584echo "$as_me:$LINENO: checking for GNU make" >&5
4585echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4586if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004589 llvm_cv_gnu_make_command=''
4590 for a in "$MAKE" make gmake gnumake ; do
4591 if test -z "$a" ; then continue ; fi ;
4592 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4593 then
4594 llvm_cv_gnu_make_command=$a ;
4595 break;
John Criswell47fdd832003-07-14 16:52:07 +00004596 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004597 done
John Criswell7a73b802003-06-30 21:59:07 +00004598fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004599echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4600echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4601 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4602 ifGNUmake='' ;
4603 else
4604 ifGNUmake='#' ;
4605 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4606echo "${ECHO_T}\"Not found\"" >&6;
4607 fi
John Criswell7a73b802003-06-30 21:59:07 +00004608
John Criswell7a73b802003-06-30 21:59:07 +00004609
4610echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4612LN_S=$as_ln_s
4613if test "$LN_S" = "ln -s"; then
4614 echo "$as_me:$LINENO: result: yes" >&5
4615echo "${ECHO_T}yes" >&6
4616else
4617 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618echo "${ECHO_T}no, using $LN_S" >&6
4619fi
4620
Reid Spencer8a2d4712004-12-16 17:48:14 +00004621# Extract the first word of "cmp", so it can be a program name with args.
4622set dummy cmp; ac_word=$2
4623echo "$as_me:$LINENO: checking for $ac_word" >&5
4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625if test "${ac_cv_path_CMP+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 case $CMP in
4629 [\\/]* | ?:[\\/]*)
4630 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4631 ;;
4632 *)
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4643 fi
4644done
4645done
4646
4647 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4648 ;;
4649esac
4650fi
4651CMP=$ac_cv_path_CMP
4652
4653if test -n "$CMP"; then
4654 echo "$as_me:$LINENO: result: $CMP" >&5
4655echo "${ECHO_T}$CMP" >&6
4656else
4657 echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6
4659fi
4660
4661# Extract the first word of "cp", so it can be a program name with args.
4662set dummy cp; ac_word=$2
4663echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665if test "${ac_cv_path_CP+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668 case $CP in
4669 [\\/]* | ?:[\\/]*)
4670 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4671 ;;
4672 *)
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684done
4685done
4686
4687 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4688 ;;
4689esac
4690fi
4691CP=$ac_cv_path_CP
4692
4693if test -n "$CP"; then
4694 echo "$as_me:$LINENO: result: $CP" >&5
4695echo "${ECHO_T}$CP" >&6
4696else
4697 echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6
4699fi
4700
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004701# Extract the first word of "date", so it can be a program name with args.
4702set dummy date; ac_word=$2
4703echo "$as_me:$LINENO: checking for $ac_word" >&5
4704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004708 case $DATE in
4709 [\\/]* | ?:[\\/]*)
4710 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004711 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004712 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004723 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004724done
4725done
John Criswell7a73b802003-06-30 21:59:07 +00004726
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004727 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004728 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004729esac
John Criswell7a73b802003-06-30 21:59:07 +00004730fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004731DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004732
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004733if test -n "$DATE"; then
4734 echo "$as_me:$LINENO: result: $DATE" >&5
4735echo "${ECHO_T}$DATE" >&6
4736else
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
4739fi
John Criswell7a73b802003-06-30 21:59:07 +00004740
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004741# Extract the first word of "find", so it can be a program name with args.
4742set dummy find; ac_word=$2
4743echo "$as_me:$LINENO: checking for $ac_word" >&5
4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004748 case $FIND in
4749 [\\/]* | ?:[\\/]*)
4750 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4751 ;;
4752 *)
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764done
4765done
4766
4767 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4768 ;;
4769esac
4770fi
4771FIND=$ac_cv_path_FIND
4772
4773if test -n "$FIND"; then
4774 echo "$as_me:$LINENO: result: $FIND" >&5
4775echo "${ECHO_T}$FIND" >&6
4776else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779fi
4780
4781# Extract the first word of "grep", so it can be a program name with args.
4782set dummy grep; ac_word=$2
4783echo "$as_me:$LINENO: checking for $ac_word" >&5
4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785if test "${ac_cv_path_GREP+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 case $GREP in
4789 [\\/]* | ?:[\\/]*)
4790 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4791 ;;
4792 *)
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804done
4805done
4806
4807 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4808 ;;
4809esac
4810fi
4811GREP=$ac_cv_path_GREP
4812
4813if test -n "$GREP"; then
4814 echo "$as_me:$LINENO: result: $GREP" >&5
4815echo "${ECHO_T}$GREP" >&6
4816else
4817 echo "$as_me:$LINENO: result: no" >&5
4818echo "${ECHO_T}no" >&6
4819fi
4820
4821# Extract the first word of "mkdir", so it can be a program name with args.
4822set dummy mkdir; ac_word=$2
4823echo "$as_me:$LINENO: checking for $ac_word" >&5
4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825if test "${ac_cv_path_MKDIR+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828 case $MKDIR in
4829 [\\/]* | ?:[\\/]*)
4830 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4831 ;;
4832 *)
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4843 fi
4844done
4845done
4846
4847 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4848 ;;
4849esac
4850fi
4851MKDIR=$ac_cv_path_MKDIR
4852
4853if test -n "$MKDIR"; then
4854 echo "$as_me:$LINENO: result: $MKDIR" >&5
4855echo "${ECHO_T}$MKDIR" >&6
4856else
4857 echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859fi
4860
4861# Extract the first word of "mv", so it can be a program name with args.
4862set dummy mv; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865if test "${ac_cv_path_MV+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868 case $MV in
4869 [\\/]* | ?:[\\/]*)
4870 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4871 ;;
4872 *)
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884done
4885done
4886
4887 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4888 ;;
4889esac
4890fi
4891MV=$ac_cv_path_MV
4892
4893if test -n "$MV"; then
4894 echo "$as_me:$LINENO: result: $MV" >&5
4895echo "${ECHO_T}$MV" >&6
4896else
4897 echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6
4899fi
4900
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004901if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4903set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4904echo "$as_me:$LINENO: checking for $ac_word" >&5
4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906if test "${ac_cv_prog_RANLIB+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 if test -n "$RANLIB"; then
4910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923done
4924done
4925
4926fi
4927fi
4928RANLIB=$ac_cv_prog_RANLIB
4929if test -n "$RANLIB"; then
4930 echo "$as_me:$LINENO: result: $RANLIB" >&5
4931echo "${ECHO_T}$RANLIB" >&6
4932else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935fi
4936
4937fi
4938if test -z "$ac_cv_prog_RANLIB"; then
4939 ac_ct_RANLIB=$RANLIB
4940 # Extract the first word of "ranlib", so it can be a program name with args.
4941set dummy ranlib; ac_word=$2
4942echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 if test -n "$ac_ct_RANLIB"; then
4948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_ac_ct_RANLIB="ranlib"
4958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962done
4963
4964 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4965fi
4966fi
4967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4968if test -n "$ac_ct_RANLIB"; then
4969 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4970echo "${ECHO_T}$ac_ct_RANLIB" >&6
4971else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974fi
4975
4976 RANLIB=$ac_ct_RANLIB
4977else
4978 RANLIB="$ac_cv_prog_RANLIB"
4979fi
4980
4981# Extract the first word of "rm", so it can be a program name with args.
4982set dummy rm; ac_word=$2
4983echo "$as_me:$LINENO: checking for $ac_word" >&5
4984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985if test "${ac_cv_path_RM+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988 case $RM in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4991 ;;
4992 *)
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004done
5005done
5006
5007 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5008 ;;
5009esac
5010fi
5011RM=$ac_cv_path_RM
5012
5013if test -n "$RM"; then
5014 echo "$as_me:$LINENO: result: $RM" >&5
5015echo "${ECHO_T}$RM" >&6
5016else
5017 echo "$as_me:$LINENO: result: no" >&5
5018echo "${ECHO_T}no" >&6
5019fi
5020
5021# Extract the first word of "sed", so it can be a program name with args.
5022set dummy sed; ac_word=$2
5023echo "$as_me:$LINENO: checking for $ac_word" >&5
5024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025if test "${ac_cv_path_SED+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 case $SED in
5029 [\\/]* | ?:[\\/]*)
5030 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5031 ;;
5032 *)
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045done
5046
5047 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5048 ;;
5049esac
5050fi
5051SED=$ac_cv_path_SED
5052
5053if test -n "$SED"; then
5054 echo "$as_me:$LINENO: result: $SED" >&5
5055echo "${ECHO_T}$SED" >&6
5056else
5057 echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
5059fi
5060
5061# Extract the first word of "tar", so it can be a program name with args.
5062set dummy tar; ac_word=$2
5063echo "$as_me:$LINENO: checking for $ac_word" >&5
5064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065if test "${ac_cv_path_TAR+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068 case $TAR in
5069 [\\/]* | ?:[\\/]*)
5070 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5071 ;;
5072 *)
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084done
5085done
5086
5087 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5088 ;;
5089esac
5090fi
5091TAR=$ac_cv_path_TAR
5092
5093if test -n "$TAR"; then
5094 echo "$as_me:$LINENO: result: $TAR" >&5
5095echo "${ECHO_T}$TAR" >&6
5096else
5097 echo "$as_me:$LINENO: result: no" >&5
5098echo "${ECHO_T}no" >&6
5099fi
5100
Reid Spencer8a2246f2005-07-13 03:20:14 +00005101# Extract the first word of "Graphviz", so it can be a program name with args.
5102set dummy Graphviz; ac_word=$2
5103echo "$as_me:$LINENO: checking for $ac_word" >&5
5104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108 case $GRAPHVIZ in
5109 [\\/]* | ?:[\\/]*)
5110 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5111 ;;
5112 *)
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124done
5125done
5126
Reid Spencerc232a652005-07-14 02:25:12 +00005127 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005128 ;;
5129esac
5130fi
5131GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5132
5133if test -n "$GRAPHVIZ"; then
5134 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5135echo "${ECHO_T}$GRAPHVIZ" >&6
5136else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139fi
5140
Reid Spencerc232a652005-07-14 02:25:12 +00005141if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005142
5143cat >>confdefs.h <<\_ACEOF
5144#define HAVE_GRAPHVIZ 1
5145_ACEOF
5146
Reid Spencerc232a652005-07-14 02:25:12 +00005147
Reid Spencerbe130282005-07-14 05:19:12 +00005148cat >>confdefs.h <<_ACEOF
Reid Spencerc232a652005-07-14 02:25:12 +00005149#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5150_ACEOF
5151
Reid Spencer8a2246f2005-07-13 03:20:14 +00005152fi
Reid Spencerbe130282005-07-14 05:19:12 +00005153# Extract the first word of "gv", so it can be a program name with args.
5154set dummy gv; ac_word=$2
5155echo "$as_me:$LINENO: checking for $ac_word" >&5
5156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157if test "${ac_cv_path_GV+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160 case $GV in
5161 [\\/]* | ?:[\\/]*)
5162 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5163 ;;
5164 *)
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177done
5178
5179 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5180 ;;
5181esac
5182fi
5183GV=$ac_cv_path_GV
5184
5185if test -n "$GV"; then
5186 echo "$as_me:$LINENO: result: $GV" >&5
5187echo "${ECHO_T}$GV" >&6
5188else
5189 echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191fi
5192
Misha Brukmanf83d4062005-11-01 21:00:49 +00005193if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005194
5195cat >>confdefs.h <<\_ACEOF
5196#define HAVE_GV 1
5197_ACEOF
5198
5199
5200cat >>confdefs.h <<_ACEOF
5201#define LLVM_PATH_GV "$GV"
5202_ACEOF
5203
5204fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005205
5206# Find a good install program. We prefer a C program (faster),
5207# so one script is as good as another. But avoid the broken or
5208# incompatible versions:
5209# SysV /etc/install, /usr/sbin/install
5210# SunOS /usr/etc/install
5211# IRIX /sbin/install
5212# AIX /bin/install
5213# AmigaOS /C/install, which installs bootblocks on floppy discs
5214# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5215# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5216# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5217# OS/2's system install, which has a completely different semantic
5218# ./install, which can be erroneously created by make from ./install.sh.
5219echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5220echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5221if test -z "$INSTALL"; then
5222if test "${ac_cv_path_install+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 as_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 # Account for people who put trailing slashes in PATH elements.
5231case $as_dir/ in
5232 ./ | .// | /cC/* | \
5233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5234 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5235 /usr/ucb/* ) ;;
5236 *)
5237 # OSF1 and SCO ODT 3.0 have their own names for install.
5238 # Don't use installbsd from OSF since it installs stuff as root
5239 # by default.
5240 for ac_prog in ginstall scoinst install; do
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5243 if test $ac_prog = install &&
5244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5245 # AIX install. It has an incompatible calling convention.
5246 :
5247 elif test $ac_prog = install &&
5248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5249 # program-specific install script used by HP pwplus--don't use.
5250 :
5251 else
5252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5253 break 3
5254 fi
5255 fi
5256 done
5257 done
5258 ;;
5259esac
5260done
5261
5262
5263fi
5264 if test "${ac_cv_path_install+set}" = set; then
5265 INSTALL=$ac_cv_path_install
5266 else
5267 # As a last resort, use the slow shell script. We don't cache a
5268 # path for INSTALL within a source directory, because that will
5269 # break other packages using the cache if that directory is
5270 # removed, or if the path is relative.
5271 INSTALL=$ac_install_sh
5272 fi
5273fi
5274echo "$as_me:$LINENO: result: $INSTALL" >&5
5275echo "${ECHO_T}$INSTALL" >&6
5276
5277# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5278# It thinks the first close brace ends the variable substitution.
5279test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5280
5281test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5282
5283test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5284
5285
5286# Extract the first word of "bzip2", so it can be a program name with args.
5287set dummy bzip2; ac_word=$2
5288echo "$as_me:$LINENO: checking for $ac_word" >&5
5289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290if test "${ac_cv_path_BZIP2+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293 case $BZIP2 in
5294 [\\/]* | ?:[\\/]*)
5295 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5296 ;;
5297 *)
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309done
5310done
5311
5312 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5313 ;;
5314esac
5315fi
5316BZIP2=$ac_cv_path_BZIP2
5317
5318if test -n "$BZIP2"; then
5319 echo "$as_me:$LINENO: result: $BZIP2" >&5
5320echo "${ECHO_T}$BZIP2" >&6
5321else
5322 echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324fi
5325
5326# Extract the first word of "dot", so it can be a program name with args.
5327set dummy dot; ac_word=$2
5328echo "$as_me:$LINENO: checking for $ac_word" >&5
5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330if test "${ac_cv_path_DOT+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 case $DOT in
5334 [\\/]* | ?:[\\/]*)
5335 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5336 ;;
5337 *)
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339for as_dir in $PATH
5340do
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5348 fi
5349done
5350done
5351
5352 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5353 ;;
5354esac
5355fi
5356DOT=$ac_cv_path_DOT
5357
5358if test -n "$DOT"; then
5359 echo "$as_me:$LINENO: result: $DOT" >&5
5360echo "${ECHO_T}$DOT" >&6
5361else
5362 echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6
5364fi
5365
5366# Extract the first word of "doxygen", so it can be a program name with args.
5367set dummy doxygen; ac_word=$2
5368echo "$as_me:$LINENO: checking for $ac_word" >&5
5369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370if test "${ac_cv_path_DOXYGEN+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373 case $DOXYGEN in
5374 [\\/]* | ?:[\\/]*)
5375 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5376 ;;
5377 *)
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389done
5390done
5391
5392 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5393 ;;
5394esac
5395fi
5396DOXYGEN=$ac_cv_path_DOXYGEN
5397
5398if test -n "$DOXYGEN"; then
5399 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5400echo "${ECHO_T}$DOXYGEN" >&6
5401else
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404fi
5405
5406# Extract the first word of "etags", so it can be a program name with args.
5407set dummy etags; ac_word=$2
5408echo "$as_me:$LINENO: checking for $ac_word" >&5
5409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410if test "${ac_cv_path_ETAGS+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 case $ETAGS in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5416 ;;
5417 *)
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429done
5430done
5431
5432 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5433 ;;
5434esac
5435fi
5436ETAGS=$ac_cv_path_ETAGS
5437
5438if test -n "$ETAGS"; then
5439 echo "$as_me:$LINENO: result: $ETAGS" >&5
5440echo "${ECHO_T}$ETAGS" >&6
5441else
5442 echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6
5444fi
5445
5446# Extract the first word of "groff", so it can be a program name with args.
5447set dummy groff; ac_word=$2
5448echo "$as_me:$LINENO: checking for $ac_word" >&5
5449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450if test "${ac_cv_path_GROFF+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453 case $GROFF in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5456 ;;
5457 *)
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469done
5470done
5471
5472 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5473 ;;
5474esac
5475fi
5476GROFF=$ac_cv_path_GROFF
5477
5478if test -n "$GROFF"; then
5479 echo "$as_me:$LINENO: result: $GROFF" >&5
5480echo "${ECHO_T}$GROFF" >&6
5481else
5482 echo "$as_me:$LINENO: result: no" >&5
5483echo "${ECHO_T}no" >&6
5484fi
5485
5486# Extract the first word of "gzip", so it can be a program name with args.
5487set dummy gzip; ac_word=$2
5488echo "$as_me:$LINENO: checking for $ac_word" >&5
5489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5490if test "${ac_cv_path_GZIP+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493 case $GZIP in
5494 [\\/]* | ?:[\\/]*)
5495 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5496 ;;
5497 *)
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5508 fi
5509done
5510done
5511
5512 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5513 ;;
5514esac
5515fi
5516GZIP=$ac_cv_path_GZIP
5517
5518if test -n "$GZIP"; then
5519 echo "$as_me:$LINENO: result: $GZIP" >&5
5520echo "${ECHO_T}$GZIP" >&6
5521else
5522 echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524fi
5525
5526# Extract the first word of "pod2html", so it can be a program name with args.
5527set dummy pod2html; ac_word=$2
5528echo "$as_me:$LINENO: checking for $ac_word" >&5
5529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530if test "${ac_cv_path_POD2HTML+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533 case $POD2HTML in
5534 [\\/]* | ?:[\\/]*)
5535 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5536 ;;
5537 *)
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549done
5550done
5551
5552 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5553 ;;
5554esac
5555fi
5556POD2HTML=$ac_cv_path_POD2HTML
5557
5558if test -n "$POD2HTML"; then
5559 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5560echo "${ECHO_T}$POD2HTML" >&6
5561else
5562 echo "$as_me:$LINENO: result: no" >&5
5563echo "${ECHO_T}no" >&6
5564fi
5565
5566# Extract the first word of "pod2man", so it can be a program name with args.
5567set dummy pod2man; ac_word=$2
5568echo "$as_me:$LINENO: checking for $ac_word" >&5
5569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570if test "${ac_cv_path_POD2MAN+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573 case $POD2MAN in
5574 [\\/]* | ?:[\\/]*)
5575 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5576 ;;
5577 *)
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589done
5590done
5591
5592 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5593 ;;
5594esac
5595fi
5596POD2MAN=$ac_cv_path_POD2MAN
5597
5598if test -n "$POD2MAN"; then
5599 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5600echo "${ECHO_T}$POD2MAN" >&6
5601else
5602 echo "$as_me:$LINENO: result: no" >&5
5603echo "${ECHO_T}no" >&6
5604fi
5605
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005606# Extract the first word of "runtest", so it can be a program name with args.
5607set dummy runtest; ac_word=$2
5608echo "$as_me:$LINENO: checking for $ac_word" >&5
5609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610if test "${ac_cv_path_RUNTEST+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613 case $RUNTEST in
5614 [\\/]* | ?:[\\/]*)
5615 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5616 ;;
5617 *)
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629done
5630done
5631
5632 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5633 ;;
5634esac
5635fi
5636RUNTEST=$ac_cv_path_RUNTEST
5637
5638if test -n "$RUNTEST"; then
5639 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5640echo "${ECHO_T}$RUNTEST" >&6
5641else
5642 echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644fi
5645
Reid Spencer0fcb9412004-11-30 08:11:54 +00005646
Reid Spencer0fcb9412004-11-30 08:11:54 +00005647no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005648echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5649echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005650
5651# Check whether --with-tclinclude or --without-tclinclude was given.
5652if test "${with_tclinclude+set}" = set; then
5653 withval="$with_tclinclude"
5654 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005655else
5656 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005657fi;
5658if test "${ac_cv_path_tclsh+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661
5662if test x"${with_tclinclude}" != x ; then
5663 if test -f ${with_tclinclude}/tclsh ; then
5664 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5665 elif test -f ${with_tclinclude}/src/tclsh ; then
5666 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5667 else
5668 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5669echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5670 { (exit 1); exit 1; }; }
5671 fi
5672fi
5673
Reid Spencer0fcb9412004-11-30 08:11:54 +00005674if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005675 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005676echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005677 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 +00005678do
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005681echo "$as_me:$LINENO: checking for $ac_word" >&5
5682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005683if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
Reid Spencercda35f82004-12-02 04:17:20 +00005686 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005687 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005688 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005689 ;;
5690 *)
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005698 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5701 fi
5702done
5703done
5704
5705 ;;
5706esac
5707fi
Reid Spencercda35f82004-12-02 04:17:20 +00005708TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005709
Reid Spencercda35f82004-12-02 04:17:20 +00005710if test -n "$TCLSH"; then
5711 echo "$as_me:$LINENO: result: $TCLSH" >&5
5712echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005713else
5714 echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716fi
5717
Reid Spencercda35f82004-12-02 04:17:20 +00005718 test -n "$TCLSH" && break
5719done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005720
Reid Spencercda35f82004-12-02 04:17:20 +00005721 if test x"${TCLSH}" = x ; then
5722 ac_cv_path_tclsh='';
5723 else
5724 ac_cv_path_tclsh="${TCLSH}";
5725 fi
5726else
5727 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5728echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5729 TCLSH="${ac_cv_path_tclsh}"
5730
5731fi
5732
5733fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005734
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005735# Extract the first word of "zip", so it can be a program name with args.
5736set dummy zip; ac_word=$2
5737echo "$as_me:$LINENO: checking for $ac_word" >&5
5738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5739if test "${ac_cv_path_ZIP+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742 case $ZIP in
5743 [\\/]* | ?:[\\/]*)
5744 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5745 ;;
5746 *)
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748for as_dir in $PATH
5749do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5757 fi
5758done
5759done
5760
5761 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5762 ;;
5763esac
5764fi
5765ZIP=$ac_cv_path_ZIP
5766
5767if test -n "$ZIP"; then
5768 echo "$as_me:$LINENO: result: $ZIP" >&5
5769echo "${ECHO_T}$ZIP" >&6
5770else
5771 echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773fi
5774
5775
5776echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5777echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5778if test "${llvm_cv_link_use_r+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005782ac_cpp='$CPP $CPPFLAGS'
5783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005787 oldcflags="$CFLAGS"
5788 CFLAGS="$CFLAGS -Wl,-R."
5789 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005790/* confdefs.h. */
5791_ACEOF
5792cat confdefs.h >>conftest.$ac_ext
5793cat >>conftest.$ac_ext <<_ACEOF
5794/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005795
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005796int
5797main ()
5798{
5799int main() { return 0; }
5800 ;
5801 return 0;
5802}
John Criswell47fdd832003-07-14 16:52:07 +00005803_ACEOF
5804rm -f conftest.$ac_objext conftest$ac_exeext
5805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005806 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005812 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005826 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005827else
John Criswell47fdd832003-07-14 16:52:07 +00005828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005829sed 's/^/| /' conftest.$ac_ext >&5
5830
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005831llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005832fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005833rm -f conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005835 CFLAGS="$oldcflags"
5836 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005837ac_cpp='$CPP $CPPFLAGS'
5838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840ac_compiler_gnu=$ac_cv_c_compiler_gnu
5841
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005842
John Criswell7a73b802003-06-30 21:59:07 +00005843fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005844echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5845echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5846if test "$llvm_cv_link_use_r" = yes ; then
5847
5848cat >>confdefs.h <<\_ACEOF
5849#define HAVE_LINK_R 1
5850_ACEOF
5851
John Criswell47fdd832003-07-14 16:52:07 +00005852 fi
John Criswell47fdd832003-07-14 16:52:07 +00005853
John Criswell47fdd832003-07-14 16:52:07 +00005854
John Criswell47fdd832003-07-14 16:52:07 +00005855
John Criswell7a73b802003-06-30 21:59:07 +00005856
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005857echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5858echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5859if test "${ac_cv_c_const+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862 cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h. */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h. */
5868
5869int
5870main ()
5871{
5872/* FIXME: Include the comments suggested by Paul. */
5873#ifndef __cplusplus
5874 /* Ultrix mips cc rejects this. */
5875 typedef int charset[2];
5876 const charset x;
5877 /* SunOS 4.1.1 cc rejects this. */
5878 char const *const *ccp;
5879 char **p;
5880 /* NEC SVR4.0.2 mips cc rejects this. */
5881 struct point {int x, y;};
5882 static struct point const zero = {0,0};
5883 /* AIX XL C 1.02.0.0 rejects this.
5884 It does not let you subtract one const X* pointer from another in
5885 an arm of an if-expression whose if-part is not a constant
5886 expression */
5887 const char *g = "string";
5888 ccp = &g + (g ? g-g : 0);
5889 /* HPUX 7.0 cc rejects these. */
5890 ++ccp;
5891 p = (char**) ccp;
5892 ccp = (char const *const *) p;
5893 { /* SCO 3.2v4 cc rejects this. */
5894 char *t;
5895 char const *s = 0 ? (char *) 0 : (char const *) 0;
5896
5897 *t++ = 0;
5898 }
5899 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5900 int x[] = {25, 17};
5901 const int *foo = &x[0];
5902 ++foo;
5903 }
5904 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5905 typedef const int *iptr;
5906 iptr p = 0;
5907 ++p;
5908 }
5909 { /* AIX XL C 1.02.0.0 rejects this saying
5910 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5911 struct s { int j; const int *ap[3]; };
5912 struct s *b; b->j = 5;
5913 }
5914 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5915 const int foo = 10;
5916 }
5917#endif
5918
5919 ;
5920 return 0;
5921}
5922_ACEOF
5923rm -f conftest.$ac_objext
5924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925 (eval $ac_compile) 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_c_werror_flag"
5933 || test ! -s conftest.err'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_c_const=yes
5946else
5947 echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
5950ac_cv_c_const=no
5951fi
5952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953fi
5954echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5955echo "${ECHO_T}$ac_cv_c_const" >&6
5956if test $ac_cv_c_const = no; then
5957
5958cat >>confdefs.h <<\_ACEOF
5959#define const
5960_ACEOF
5961
5962fi
5963
5964
5965echo "$as_me:$LINENO: checking for egrep" >&5
5966echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5967if test "${ac_cv_prog_egrep+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5971 then ac_cv_prog_egrep='grep -E'
5972 else ac_cv_prog_egrep='egrep'
5973 fi
5974fi
5975echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5976echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5977 EGREP=$ac_cv_prog_egrep
5978
John Criswell7a73b802003-06-30 21:59:07 +00005979
5980echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5981echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5982if test "${ac_cv_header_stdc+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005991#include <stdlib.h>
5992#include <stdarg.h>
5993#include <string.h>
5994#include <float.h>
5995
John Criswell0c38eaf2003-09-10 15:17:25 +00005996int
5997main ()
5998{
5999
6000 ;
6001 return 0;
6002}
John Criswell7a73b802003-06-30 21:59:07 +00006003_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006004rm -f conftest.$ac_objext
6005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006006 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006012 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006013 { ac_try='test -z "$ac_c_werror_flag"
6014 || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006026 ac_cv_header_stdc=yes
6027else
6028 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006032fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006034
6035if test $ac_cv_header_stdc = yes; then
6036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6037 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006038/* confdefs.h. */
6039_ACEOF
6040cat confdefs.h >>conftest.$ac_ext
6041cat >>conftest.$ac_ext <<_ACEOF
6042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006043#include <string.h>
6044
6045_ACEOF
6046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006047 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006048 :
6049else
6050 ac_cv_header_stdc=no
6051fi
6052rm -f conftest*
6053
6054fi
6055
6056if test $ac_cv_header_stdc = yes; then
6057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006059/* confdefs.h. */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006064#include <stdlib.h>
6065
6066_ACEOF
6067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006068 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006069 :
6070else
6071 ac_cv_header_stdc=no
6072fi
6073rm -f conftest*
6074
6075fi
6076
6077if test $ac_cv_header_stdc = yes; then
6078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079 if test "$cross_compiling" = yes; then
6080 :
6081else
6082 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006088#include <ctype.h>
6089#if ((' ' & 0x0FF) == 0x020)
6090# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006093# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006094 (('a' <= (c) && (c) <= 'i') \
6095 || ('j' <= (c) && (c) <= 'r') \
6096 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006097# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098#endif
6099
6100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101int
6102main ()
6103{
6104 int i;
6105 for (i = 0; i < 256; i++)
6106 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006107 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006108 exit(2);
6109 exit (0);
6110}
6111_ACEOF
6112rm -f conftest$ac_exeext
6113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 :
6124else
6125 echo "$as_me: program exited with status $ac_status" >&5
6126echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006127sed 's/^/| /' conftest.$ac_ext >&5
6128
John Criswell7a73b802003-06-30 21:59:07 +00006129( exit $ac_status )
6130ac_cv_header_stdc=no
6131fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006132rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006133fi
6134fi
6135fi
6136echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137echo "${ECHO_T}$ac_cv_header_stdc" >&6
6138if test $ac_cv_header_stdc = yes; then
6139
6140cat >>confdefs.h <<\_ACEOF
6141#define STDC_HEADERS 1
6142_ACEOF
6143
6144fi
6145
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006146
6147
6148
6149
6150
6151ac_header_dirent=no
6152for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6153 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6154echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6155echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6156if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159 cat >conftest.$ac_ext <<_ACEOF
6160/* confdefs.h. */
6161_ACEOF
6162cat confdefs.h >>conftest.$ac_ext
6163cat >>conftest.$ac_ext <<_ACEOF
6164/* end confdefs.h. */
6165#include <sys/types.h>
6166#include <$ac_hdr>
6167
6168int
6169main ()
6170{
6171if ((DIR *) 0)
6172return 0;
6173 ;
6174 return 0;
6175}
6176_ACEOF
6177rm -f conftest.$ac_objext
6178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest.$ac_objext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 eval "$as_ac_Header=yes"
6200else
6201 echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204eval "$as_ac_Header=no"
6205fi
6206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6213_ACEOF
6214
6215ac_header_dirent=$ac_hdr; break
6216fi
6217
6218done
6219# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6220if test $ac_header_dirent = dirent.h; then
6221 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6222echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6223if test "${ac_cv_search_opendir+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226 ac_func_search_save_LIBS=$LIBS
6227ac_cv_search_opendir=no
6228cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
6234
6235/* Override any gcc2 internal prototype to avoid an error. */
6236#ifdef __cplusplus
6237extern "C"
6238#endif
6239/* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6241char opendir ();
6242int
6243main ()
6244{
6245opendir ();
6246 ;
6247 return 0;
6248}
6249_ACEOF
6250rm -f conftest.$ac_objext conftest$ac_exeext
6251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_cv_search_opendir="none required"
6273else
6274 echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277fi
6278rm -f conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
6280if test "$ac_cv_search_opendir" = no; then
6281 for ac_lib in dir; do
6282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6283 cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h. */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h. */
6289
6290/* Override any gcc2 internal prototype to avoid an error. */
6291#ifdef __cplusplus
6292extern "C"
6293#endif
6294/* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6296char opendir ();
6297int
6298main ()
6299{
6300opendir ();
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext conftest$ac_exeext
6306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_cv_search_opendir="-l$ac_lib"
6328break
6329else
6330 echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333fi
6334rm -f conftest.err conftest.$ac_objext \
6335 conftest$ac_exeext conftest.$ac_ext
6336 done
6337fi
6338LIBS=$ac_func_search_save_LIBS
6339fi
6340echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6341echo "${ECHO_T}$ac_cv_search_opendir" >&6
6342if test "$ac_cv_search_opendir" != no; then
6343 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6344
6345fi
6346
6347else
6348 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6349echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6350if test "${ac_cv_search_opendir+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353 ac_func_search_save_LIBS=$LIBS
6354ac_cv_search_opendir=no
6355cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h. */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h. */
6361
6362/* Override any gcc2 internal prototype to avoid an error. */
6363#ifdef __cplusplus
6364extern "C"
6365#endif
6366/* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6368char opendir ();
6369int
6370main ()
6371{
6372opendir ();
6373 ;
6374 return 0;
6375}
6376_ACEOF
6377rm -f conftest.$ac_objext conftest$ac_exeext
6378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379 (eval $ac_link) 2>conftest.er1
6380 ac_status=$?
6381 grep -v '^ *+' conftest.er1 >conftest.err
6382 rm -f conftest.er1
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -z "$ac_c_werror_flag"
6387 || test ! -s conftest.err'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; } &&
6393 { ac_try='test -s conftest$ac_exeext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_search_opendir="none required"
6400else
6401 echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404fi
6405rm -f conftest.err conftest.$ac_objext \
6406 conftest$ac_exeext conftest.$ac_ext
6407if test "$ac_cv_search_opendir" = no; then
6408 for ac_lib in x; do
6409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6410 cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h. */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h. */
6416
6417/* Override any gcc2 internal prototype to avoid an error. */
6418#ifdef __cplusplus
6419extern "C"
6420#endif
6421/* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6423char opendir ();
6424int
6425main ()
6426{
6427opendir ();
6428 ;
6429 return 0;
6430}
6431_ACEOF
6432rm -f conftest.$ac_objext conftest$ac_exeext
6433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_cv_search_opendir="-l$ac_lib"
6455break
6456else
6457 echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460fi
6461rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6463 done
6464fi
6465LIBS=$ac_func_search_save_LIBS
6466fi
6467echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6468echo "${ECHO_T}$ac_cv_search_opendir" >&6
6469if test "$ac_cv_search_opendir" != no; then
6470 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6471
6472fi
6473
6474fi
6475
John Criswell7a73b802003-06-30 21:59:07 +00006476# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006487 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006488do
6489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490echo "$as_me:$LINENO: checking for $ac_header" >&5
6491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494else
6495 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006496/* confdefs.h. */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
6500/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006501$ac_includes_default
6502
6503#include <$ac_header>
6504_ACEOF
6505rm -f conftest.$ac_objext
6506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006507 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006508 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006514 { ac_try='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 eval "$as_ac_Header=yes"
6528else
6529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006530sed 's/^/| /' conftest.$ac_ext >&5
6531
John Criswell7a73b802003-06-30 21:59:07 +00006532eval "$as_ac_Header=no"
6533fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006535fi
6536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541_ACEOF
6542
6543fi
6544
6545done
6546
6547
6548
6549for ac_header in dlfcn.h
6550do
6551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006552if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6555if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006557fi
6558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006560else
Brian Gaeke0a621332004-09-08 20:38:05 +00006561 # Is the header compilable?
6562echo "$as_me:$LINENO: checking $ac_header usability" >&5
6563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6564cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006570$ac_includes_default
6571#include <$ac_header>
6572_ACEOF
6573rm -f conftest.$ac_objext
6574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006575 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006582 { ac_try='test -z "$ac_c_werror_flag"
6583 || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006595 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006596else
6597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006598sed 's/^/| /' conftest.$ac_ext >&5
6599
Brian Gaeke0a621332004-09-08 20:38:05 +00006600ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006601fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6604echo "${ECHO_T}$ac_header_compiler" >&6
6605
6606# Is the header present?
6607echo "$as_me:$LINENO: checking $ac_header presence" >&5
6608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6609cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006610/* confdefs.h. */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h. */
6615#include <$ac_header>
6616_ACEOF
6617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev/null; then
6625 if test -s conftest.err; then
6626 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006628 else
6629 ac_cpp_err=
6630 fi
6631else
6632 ac_cpp_err=yes
6633fi
6634if test -z "$ac_cpp_err"; then
6635 ac_header_preproc=yes
6636else
6637 echo "$as_me: failed program was:" >&5
6638sed 's/^/| /' conftest.$ac_ext >&5
6639
6640 ac_header_preproc=no
6641fi
6642rm -f conftest.err conftest.$ac_ext
6643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6644echo "${ECHO_T}$ac_header_preproc" >&6
6645
6646# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6648 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6653 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006654 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006655 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6659echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6663echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006668 (
6669 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006670## ----------------------------------- ##
6671## Report this to llvmbugs@cs.uiuc.edu ##
6672## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006673_ASBOX
6674 ) |
6675 sed "s/^/$as_me: WARNING: /" >&2
6676 ;;
6677esac
6678echo "$as_me:$LINENO: checking for $ac_header" >&5
6679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6680if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006683 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006684fi
6685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006687
6688fi
John Criswell7a73b802003-06-30 21:59:07 +00006689if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690 cat >>confdefs.h <<_ACEOF
6691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6692_ACEOF
6693
6694fi
6695
6696done
6697
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006698# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6699if test "${enable_ltdl_install+set}" = set; then
6700 enableval="$enable_ltdl_install"
6701
6702fi;
6703
6704
6705
6706if test x"${enable_ltdl_install-no}" != xno; then
6707 INSTALL_LTDL_TRUE=
6708 INSTALL_LTDL_FALSE='#'
6709else
6710 INSTALL_LTDL_TRUE='#'
6711 INSTALL_LTDL_FALSE=
6712fi
6713
6714
6715
6716if test x"${enable_ltdl_convenience-no}" != xno; then
6717 CONVENIENCE_LTDL_TRUE=
6718 CONVENIENCE_LTDL_FALSE='#'
6719else
6720 CONVENIENCE_LTDL_TRUE='#'
6721 CONVENIENCE_LTDL_FALSE=
6722fi
6723
6724
6725echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6726echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6727library_names_spec=
6728libname_spec='lib$name'
6729soname_spec=
6730shrext_cmds=".so"
6731postinstall_cmds=
6732postuninstall_cmds=
6733finish_cmds=
6734finish_eval=
6735shlibpath_var=
6736shlibpath_overrides_runpath=unknown
6737version_type=none
6738dynamic_linker="$host_os ld.so"
6739sys_lib_dlsearch_path_spec="/lib /usr/lib"
6740if test "$GCC" = yes; then
6741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6742 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6743 # if the path contains ";" then we assume it to be the separator
6744 # otherwise default to the standard path separator (i.e. ":") - it is
6745 # assumed that no part of a normal pathname contains ";" but that should
6746 # okay in the real world where ";" in dirpaths is itself problematic.
6747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6748 else
6749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6750 fi
6751else
6752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6753fi
6754need_lib_prefix=unknown
6755hardcode_into_libs=no
6756
6757# when you set need_version to no, make sure it does not cause -set_version
6758# flags to be left without arguments
6759need_version=unknown
6760
6761case $host_os in
6762aix3*)
6763 version_type=linux
6764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6765 shlibpath_var=LIBPATH
6766
6767 # AIX 3 has no versioning support, so we append a major version to the name.
6768 soname_spec='${libname}${release}${shared_ext}$major'
6769 ;;
6770
6771aix4* | aix5*)
6772 version_type=linux
6773 need_lib_prefix=no
6774 need_version=no
6775 hardcode_into_libs=yes
6776 if test "$host_cpu" = ia64; then
6777 # AIX 5 supports IA64
6778 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6779 shlibpath_var=LD_LIBRARY_PATH
6780 else
6781 # With GCC up to 2.95.x, collect2 would create an import file
6782 # for dependence libraries. The import file would start with
6783 # the line `#! .'. This would cause the generated library to
6784 # depend on `.', always an invalid library. This was fixed in
6785 # development snapshots of GCC prior to 3.0.
6786 case $host_os in
6787 aix4 | aix4.[01] | aix4.[01].*)
6788 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6789 echo ' yes '
6790 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6791 :
6792 else
6793 can_build_shared=no
6794 fi
6795 ;;
6796 esac
6797 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6798 # soname into executable. Probably we can add versioning support to
6799 # collect2, so additional links can be useful in future.
6800 if test "$aix_use_runtimelinking" = yes; then
6801 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6802 # instead of lib<name>.a to let people know that these are not
6803 # typical AIX shared libraries.
6804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6805 else
6806 # We preserve .a as extension for shared libraries through AIX4.2
6807 # and later when we are not doing run time linking.
6808 library_names_spec='${libname}${release}.a $libname.a'
6809 soname_spec='${libname}${release}${shared_ext}$major'
6810 fi
6811 shlibpath_var=LIBPATH
6812 fi
6813 ;;
6814
6815amigaos*)
6816 library_names_spec='$libname.ixlibrary $libname.a'
6817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6818 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'
6819 ;;
6820
6821beos*)
6822 library_names_spec='${libname}${shared_ext}'
6823 dynamic_linker="$host_os ld.so"
6824 shlibpath_var=LIBRARY_PATH
6825 ;;
6826
6827bsdi[45]*)
6828 version_type=linux
6829 need_version=no
6830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6831 soname_spec='${libname}${release}${shared_ext}$major'
6832 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6833 shlibpath_var=LD_LIBRARY_PATH
6834 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6835 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6836 # the default ld.so.conf also contains /usr/contrib/lib and
6837 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6838 # libtool to hard-code these into programs
6839 ;;
6840
6841cygwin* | mingw* | pw32*)
6842 version_type=windows
6843 shrext_cmds=".dll"
6844 need_version=no
6845 need_lib_prefix=no
6846
6847 case $GCC,$host_os in
6848 yes,cygwin* | yes,mingw* | yes,pw32*)
6849 library_names_spec='$libname.dll.a'
6850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6851 postinstall_cmds='base_file=`basename \${file}`~
6852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6853 dldir=$destdir/`dirname \$dlpath`~
6854 test -d \$dldir || mkdir -p \$dldir~
6855 $install_prog $dir/$dlname \$dldir/$dlname'
6856 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6857 dlpath=$dir/\$dldll~
6858 $rm \$dlpath'
6859 shlibpath_overrides_runpath=yes
6860
6861 case $host_os in
6862 cygwin*)
6863 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6864 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6865 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6866 ;;
6867 mingw*)
6868 # MinGW DLLs use traditional 'lib' prefix
6869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6871 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6872 # It is most probably a Windows format PATH printed by
6873 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6874 # path with ; separators, and with drive letters. We can handle the
6875 # drive letters (cygwin fileutils understands them), so leave them,
6876 # especially as we might pass files found there to a mingw objdump,
6877 # which wouldn't understand a cygwinified path. Ahh.
6878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6879 else
6880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6881 fi
6882 ;;
6883 pw32*)
6884 # pw32 DLLs use 'pw' prefix rather than 'lib'
6885 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6886 ;;
6887 esac
6888 ;;
6889
6890 *)
6891 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6892 ;;
6893 esac
6894 dynamic_linker='Win32 ld.exe'
6895 # FIXME: first we should search . and the directory the executable is in
6896 shlibpath_var=PATH
6897 ;;
6898
6899darwin* | rhapsody*)
6900 dynamic_linker="$host_os dyld"
6901 version_type=darwin
6902 need_lib_prefix=no
6903 need_version=no
6904 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6905 soname_spec='${libname}${release}${major}$shared_ext'
6906 shlibpath_overrides_runpath=yes
6907 shlibpath_var=DYLD_LIBRARY_PATH
6908 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6909 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6910 if test "$GCC" = yes; then
6911 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"`
6912 else
6913 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6914 fi
6915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6916 ;;
6917
6918dgux*)
6919 version_type=linux
6920 need_lib_prefix=no
6921 need_version=no
6922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6923 soname_spec='${libname}${release}${shared_ext}$major'
6924 shlibpath_var=LD_LIBRARY_PATH
6925 ;;
6926
6927freebsd1*)
6928 dynamic_linker=no
6929 ;;
6930
6931kfreebsd*-gnu)
6932 version_type=linux
6933 need_lib_prefix=no
6934 need_version=no
6935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6936 soname_spec='${libname}${release}${shared_ext}$major'
6937 shlibpath_var=LD_LIBRARY_PATH
6938 shlibpath_overrides_runpath=no
6939 hardcode_into_libs=yes
6940 dynamic_linker='GNU ld.so'
6941 ;;
6942
6943freebsd*)
6944 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6945 version_type=freebsd-$objformat
6946 case $version_type in
6947 freebsd-elf*)
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6949 need_version=no
6950 need_lib_prefix=no
6951 ;;
6952 freebsd-*)
6953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6954 need_version=yes
6955 ;;
6956 esac
6957 shlibpath_var=LD_LIBRARY_PATH
6958 case $host_os in
6959 freebsd2*)
6960 shlibpath_overrides_runpath=yes
6961 ;;
6962 freebsd3.01* | freebsdelf3.01*)
6963 shlibpath_overrides_runpath=yes
6964 hardcode_into_libs=yes
6965 ;;
6966 *) # from 3.2 on
6967 shlibpath_overrides_runpath=no
6968 hardcode_into_libs=yes
6969 ;;
6970 esac
6971 ;;
6972
6973gnu*)
6974 version_type=linux
6975 need_lib_prefix=no
6976 need_version=no
6977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6978 soname_spec='${libname}${release}${shared_ext}$major'
6979 shlibpath_var=LD_LIBRARY_PATH
6980 hardcode_into_libs=yes
6981 ;;
6982
6983hpux9* | hpux10* | hpux11*)
6984 # Give a soname corresponding to the major version so that dld.sl refuses to
6985 # link against other versions.
6986 version_type=sunos
6987 need_lib_prefix=no
6988 need_version=no
6989 case "$host_cpu" in
6990 ia64*)
6991 shrext_cmds='.so'
6992 hardcode_into_libs=yes
6993 dynamic_linker="$host_os dld.so"
6994 shlibpath_var=LD_LIBRARY_PATH
6995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6997 soname_spec='${libname}${release}${shared_ext}$major'
6998 if test "X$HPUX_IA64_MODE" = X32; then
6999 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7000 else
7001 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7002 fi
7003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7004 ;;
7005 hppa*64*)
7006 shrext_cmds='.sl'
7007 hardcode_into_libs=yes
7008 dynamic_linker="$host_os dld.sl"
7009 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7012 soname_spec='${libname}${release}${shared_ext}$major'
7013 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7015 ;;
7016 *)
7017 shrext_cmds='.sl'
7018 dynamic_linker="$host_os dld.sl"
7019 shlibpath_var=SHLIB_PATH
7020 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7022 soname_spec='${libname}${release}${shared_ext}$major'
7023 ;;
7024 esac
7025 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7026 postinstall_cmds='chmod 555 $lib'
7027 ;;
7028
7029irix5* | irix6* | nonstopux*)
7030 case $host_os in
7031 nonstopux*) version_type=nonstopux ;;
7032 *)
7033 if test "$lt_cv_prog_gnu_ld" = yes; then
7034 version_type=linux
7035 else
7036 version_type=irix
7037 fi ;;
7038 esac
7039 need_lib_prefix=no
7040 need_version=no
7041 soname_spec='${libname}${release}${shared_ext}$major'
7042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7043 case $host_os in
7044 irix5* | nonstopux*)
7045 libsuff= shlibsuff=
7046 ;;
7047 *)
7048 case $LD in # libtool.m4 will add one of these switches to LD
7049 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7050 libsuff= shlibsuff= libmagic=32-bit;;
7051 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7052 libsuff=32 shlibsuff=N32 libmagic=N32;;
7053 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7054 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7055 *) libsuff= shlibsuff= libmagic=never-match;;
7056 esac
7057 ;;
7058 esac
7059 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7060 shlibpath_overrides_runpath=no
7061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7063 hardcode_into_libs=yes
7064 ;;
7065
7066# No shared lib support for Linux oldld, aout, or coff.
7067linux*oldld* | linux*aout* | linux*coff*)
7068 dynamic_linker=no
7069 ;;
7070
7071# This must be Linux ELF.
7072linux*)
7073 version_type=linux
7074 need_lib_prefix=no
7075 need_version=no
7076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7077 soname_spec='${libname}${release}${shared_ext}$major'
7078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7079 shlibpath_var=LD_LIBRARY_PATH
7080 shlibpath_overrides_runpath=no
7081 # This implies no fast_install, which is unacceptable.
7082 # Some rework will be needed to allow for fast_install
7083 # before this can be enabled.
7084 hardcode_into_libs=yes
7085
7086 # Append ld.so.conf contents to the search path
7087 if test -f /etc/ld.so.conf; then
7088 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7090 fi
7091
7092 # We used to test for /lib/ld.so.1 and disable shared libraries on
7093 # powerpc, because MkLinux only supported shared libraries with the
7094 # GNU dynamic linker. Since this was broken with cross compilers,
7095 # most powerpc-linux boxes support dynamic linking these days and
7096 # people can always --disable-shared, the test was removed, and we
7097 # assume the GNU/Linux dynamic linker is in use.
7098 dynamic_linker='GNU/Linux ld.so'
7099 ;;
7100
7101knetbsd*-gnu)
7102 version_type=linux
7103 need_lib_prefix=no
7104 need_version=no
7105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7106 soname_spec='${libname}${release}${shared_ext}$major'
7107 shlibpath_var=LD_LIBRARY_PATH
7108 shlibpath_overrides_runpath=no
7109 hardcode_into_libs=yes
7110 dynamic_linker='GNU ld.so'
7111 ;;
7112
7113netbsd*)
7114 version_type=sunos
7115 need_lib_prefix=no
7116 need_version=no
7117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7120 dynamic_linker='NetBSD (a.out) ld.so'
7121 else
7122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7123 soname_spec='${libname}${release}${shared_ext}$major'
7124 dynamic_linker='NetBSD ld.elf_so'
7125 fi
7126 shlibpath_var=LD_LIBRARY_PATH
7127 shlibpath_overrides_runpath=yes
7128 hardcode_into_libs=yes
7129 ;;
7130
7131newsos6)
7132 version_type=linux
7133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7134 shlibpath_var=LD_LIBRARY_PATH
7135 shlibpath_overrides_runpath=yes
7136 ;;
7137
7138nto-qnx*)
7139 version_type=linux
7140 need_lib_prefix=no
7141 need_version=no
7142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7143 soname_spec='${libname}${release}${shared_ext}$major'
7144 shlibpath_var=LD_LIBRARY_PATH
7145 shlibpath_overrides_runpath=yes
7146 ;;
7147
7148openbsd*)
7149 version_type=sunos
7150 need_lib_prefix=no
7151 need_version=no
7152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7154 shlibpath_var=LD_LIBRARY_PATH
7155 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7156 case $host_os in
7157 openbsd2.[89] | openbsd2.[89].*)
7158 shlibpath_overrides_runpath=no
7159 ;;
7160 *)
7161 shlibpath_overrides_runpath=yes
7162 ;;
7163 esac
7164 else
7165 shlibpath_overrides_runpath=yes
7166 fi
7167 ;;
7168
7169os2*)
7170 libname_spec='$name'
7171 shrext_cmds=".dll"
7172 need_lib_prefix=no
7173 library_names_spec='$libname${shared_ext} $libname.a'
7174 dynamic_linker='OS/2 ld.exe'
7175 shlibpath_var=LIBPATH
7176 ;;
7177
7178osf3* | osf4* | osf5*)
7179 version_type=osf
7180 need_lib_prefix=no
7181 need_version=no
7182 soname_spec='${libname}${release}${shared_ext}$major'
7183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7184 shlibpath_var=LD_LIBRARY_PATH
7185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7186 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7187 ;;
7188
7189sco3.2v5*)
7190 version_type=osf
7191 soname_spec='${libname}${release}${shared_ext}$major'
7192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7193 shlibpath_var=LD_LIBRARY_PATH
7194 ;;
7195
7196solaris*)
7197 version_type=linux
7198 need_lib_prefix=no
7199 need_version=no
7200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7201 soname_spec='${libname}${release}${shared_ext}$major'
7202 shlibpath_var=LD_LIBRARY_PATH
7203 shlibpath_overrides_runpath=yes
7204 hardcode_into_libs=yes
7205 # ldd complains unless libraries are executable
7206 postinstall_cmds='chmod +x $lib'
7207 ;;
7208
7209sunos4*)
7210 version_type=sunos
7211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7213 shlibpath_var=LD_LIBRARY_PATH
7214 shlibpath_overrides_runpath=yes
7215 if test "$with_gnu_ld" = yes; then
7216 need_lib_prefix=no
7217 fi
7218 need_version=yes
7219 ;;
7220
7221sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7222 version_type=linux
7223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7224 soname_spec='${libname}${release}${shared_ext}$major'
7225 shlibpath_var=LD_LIBRARY_PATH
7226 case $host_vendor in
7227 sni)
7228 shlibpath_overrides_runpath=no
7229 need_lib_prefix=no
7230 export_dynamic_flag_spec='${wl}-Blargedynsym'
7231 runpath_var=LD_RUN_PATH
7232 ;;
7233 siemens)
7234 need_lib_prefix=no
7235 ;;
7236 motorola)
7237 need_lib_prefix=no
7238 need_version=no
7239 shlibpath_overrides_runpath=no
7240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7241 ;;
7242 esac
7243 ;;
7244
7245sysv4*MP*)
7246 if test -d /usr/nec ;then
7247 version_type=linux
7248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7249 soname_spec='$libname${shared_ext}.$major'
7250 shlibpath_var=LD_LIBRARY_PATH
7251 fi
7252 ;;
7253
7254uts4*)
7255 version_type=linux
7256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257 soname_spec='${libname}${release}${shared_ext}$major'
7258 shlibpath_var=LD_LIBRARY_PATH
7259 ;;
7260
7261*)
7262 dynamic_linker=no
7263 ;;
7264esac
7265echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7266echo "${ECHO_T}$dynamic_linker" >&6
7267test "$dynamic_linker" = no && can_build_shared=no
7268
7269
7270echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7271echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7272if test "${libltdl_cv_shlibext+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275
7276module=yes
7277eval libltdl_cv_shlibext=$shrext_cmds
7278
7279fi
7280echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7281echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7282if test -n "$libltdl_cv_shlibext"; then
7283
7284cat >>confdefs.h <<_ACEOF
7285#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7286_ACEOF
7287
7288fi
7289
7290
7291echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7292echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7293if test "${libltdl_cv_shlibpath_var+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296 libltdl_cv_shlibpath_var="$shlibpath_var"
7297fi
7298echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7299echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7300if test -n "$libltdl_cv_shlibpath_var"; then
7301
7302cat >>confdefs.h <<_ACEOF
7303#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7304_ACEOF
7305
7306fi
7307
7308
7309echo "$as_me:$LINENO: checking for the default library search path" >&5
7310echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7311if test "${libltdl_cv_sys_search_path+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7315fi
7316echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7317echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7318if test -n "$libltdl_cv_sys_search_path"; then
7319 sys_search_path=
7320 for dir in $libltdl_cv_sys_search_path; do
7321 if test -z "$sys_search_path"; then
7322 sys_search_path="$dir"
7323 else
7324 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7325 fi
7326 done
7327
7328cat >>confdefs.h <<_ACEOF
7329#define LTDL_SYSSEARCHPATH "$sys_search_path"
7330_ACEOF
7331
7332fi
7333
7334echo "$as_me:$LINENO: checking for objdir" >&5
7335echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7336if test "${libltdl_cv_objdir+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339 libltdl_cv_objdir="$objdir"
7340 if test -n "$objdir"; then
7341 :
7342 else
7343 rm -f .libs 2>/dev/null
7344 mkdir .libs 2>/dev/null
7345 if test -d .libs; then
7346 libltdl_cv_objdir=.libs
7347 else
7348 # MS-DOS does not allow filenames that begin with a dot.
7349 libltdl_cv_objdir=_libs
7350 fi
7351 rmdir .libs 2>/dev/null
7352 fi
7353
7354fi
7355echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7356echo "${ECHO_T}$libltdl_cv_objdir" >&6
7357
7358cat >>confdefs.h <<_ACEOF
7359#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7360_ACEOF
7361
7362
7363echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7364echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7365if test "${lt_cv_path_NM+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368 if test -n "$NM"; then
7369 # Let the user override the test.
7370 lt_cv_path_NM="$NM"
7371else
7372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7374 IFS="$lt_save_ifs"
7375 test -z "$ac_dir" && ac_dir=.
7376 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7377 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7378 # Check to see if the nm accepts a BSD-compat flag.
7379 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7380 # nm: unknown option "B" ignored
7381 # Tru64's nm complains that /dev/null is an invalid object file
7382 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7383 */dev/null* | *'Invalid file or object type'*)
7384 lt_cv_path_NM="$tmp_nm -B"
7385 break
7386 ;;
7387 *)
7388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7389 */dev/null*)
7390 lt_cv_path_NM="$tmp_nm -p"
7391 break
7392 ;;
7393 *)
7394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7395 continue # so that we can try to find one that supports BSD flags
7396 ;;
7397 esac
7398 esac
7399 fi
7400 done
7401 IFS="$lt_save_ifs"
7402 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7403fi
7404fi
7405echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7406echo "${ECHO_T}$lt_cv_path_NM" >&6
7407NM="$lt_cv_path_NM"
7408
7409
7410
7411
7412
7413# Check for command to grab the raw symbol name followed by C symbol from nm.
7414echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7415echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7416if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419
7420# These are sane defaults that work on at least a few old systems.
7421# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7422
7423# Character class describing NM global symbol codes.
7424symcode='[BCDEGRST]'
7425
7426# Regexp to match symbols that can be accessed directly from C.
7427sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7428
7429# Transform the above into a raw symbol and a C symbol.
7430symxfrm='\1 \2\3 \3'
7431
7432# Transform an extracted symbol line into a proper C declaration
7433lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7434
7435# Transform an extracted symbol line into symbol name and symbol address
7436lt_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'"
7437
7438# Define system-specific variables.
7439case $host_os in
7440aix*)
7441 symcode='[BCDT]'
7442 ;;
7443cygwin* | mingw* | pw32*)
7444 symcode='[ABCDGISTW]'
7445 ;;
7446hpux*) # Its linker distinguishes data from code symbols
7447 if test "$host_cpu" = ia64; then
7448 symcode='[ABCDEGRST]'
7449 fi
7450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7451 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'"
7452 ;;
7453linux*)
7454 if test "$host_cpu" = ia64; then
7455 symcode='[ABCDGIRSTW]'
7456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457 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'"
7458 fi
7459 ;;
7460irix* | nonstopux*)
7461 symcode='[BCDEGRST]'
7462 ;;
7463osf*)
7464 symcode='[BCDEGQRST]'
7465 ;;
7466solaris* | sysv5*)
7467 symcode='[BDRT]'
7468 ;;
7469sysv4)
7470 symcode='[DFNSTU]'
7471 ;;
7472esac
7473
7474# Handle CRLF in mingw tool chain
7475opt_cr=
7476case $build_os in
7477mingw*)
7478 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7479 ;;
7480esac
7481
7482# If we're using GNU nm, then use its standard symbol codes.
7483case `$NM -V 2>&1` in
7484*GNU* | *'with BFD'*)
7485 symcode='[ABCDGIRSTW]' ;;
7486esac
7487
7488# Try without a prefix undercore, then with it.
7489for ac_symprfx in "" "_"; do
7490
7491 # Write the raw and C identifiers.
7492 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7493
7494 # Check to see that the pipe works correctly.
7495 pipe_works=no
7496
7497 rm -f conftest*
7498 cat > conftest.$ac_ext <<EOF
7499#ifdef __cplusplus
7500extern "C" {
7501#endif
7502char nm_test_var;
7503void nm_test_func(){}
7504#ifdef __cplusplus
7505}
7506#endif
7507int main(){nm_test_var='a';nm_test_func();return(0);}
7508EOF
7509
7510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7511 (eval $ac_compile) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; then
7515 # Now try to grab the symbols.
7516 nlist=conftest.nm
7517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && test -s "$nlist"; then
7522 # Try sorting and uniquifying the output.
7523 if sort "$nlist" | uniq > "$nlist"T; then
7524 mv -f "$nlist"T "$nlist"
7525 else
7526 rm -f "$nlist"T
7527 fi
7528
7529 # Make sure that we snagged all the symbols we need.
7530 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7531 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7532 cat <<EOF > conftest.$ac_ext
7533#ifdef __cplusplus
7534extern "C" {
7535#endif
7536
7537EOF
7538 # Now generate the symbol file.
7539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7540
7541 cat <<EOF >> conftest.$ac_ext
7542#if defined (__STDC__) && __STDC__
7543# define lt_ptr_t void *
7544#else
7545# define lt_ptr_t char *
7546# define const
7547#endif
7548
7549/* The mapping between symbol names and symbols. */
7550const struct {
7551 const char *name;
7552 lt_ptr_t address;
7553}
7554lt_preloaded_symbols[] =
7555{
7556EOF
7557 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7558 cat <<\EOF >> conftest.$ac_ext
7559 {0, (lt_ptr_t) 0}
7560};
7561
7562#ifdef __cplusplus
7563}
7564#endif
7565EOF
7566 # Now try linking the two files.
7567 mv conftest.$ac_objext conftstm.$ac_objext
7568 lt_save_LIBS="$LIBS"
7569 lt_save_CFLAGS="$CFLAGS"
7570 LIBS="conftstm.$ac_objext"
7571 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573 (eval $ac_link) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7577 pipe_works=yes
7578 fi
7579 LIBS="$lt_save_LIBS"
7580 CFLAGS="$lt_save_CFLAGS"
7581 else
7582 echo "cannot find nm_test_func in $nlist" >&5
7583 fi
7584 else
7585 echo "cannot find nm_test_var in $nlist" >&5
7586 fi
7587 else
7588 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7589 fi
7590 else
7591 echo "$progname: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 fi
7594 rm -f conftest* conftst*
7595
7596 # Do not use the global_symbol_pipe unless it works.
7597 if test "$pipe_works" = yes; then
7598 break
7599 else
7600 lt_cv_sys_global_symbol_pipe=
7601 fi
7602done
7603
7604fi
7605
7606if test -z "$lt_cv_sys_global_symbol_pipe"; then
7607 lt_cv_sys_global_symbol_to_cdecl=
7608fi
7609if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7610 echo "$as_me:$LINENO: result: failed" >&5
7611echo "${ECHO_T}failed" >&6
7612else
7613 echo "$as_me:$LINENO: result: ok" >&5
7614echo "${ECHO_T}ok" >&6
7615fi
7616
7617
7618echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7619echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7620if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7624 libltdl_cv_preloaded_symbols=yes
7625 else
7626 libltdl_cv_preloaded_symbols=no
7627 fi
7628
7629fi
7630echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7631echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7632if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7633
7634cat >>confdefs.h <<\_ACEOF
7635#define HAVE_PRELOADED_SYMBOLS 1
7636_ACEOF
7637
7638fi
7639
7640LIBADD_DL=
7641
7642ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649echo "$as_me:$LINENO: checking for shl_load" >&5
7650echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7651if test "${ac_cv_func_shl_load+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h. */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h. */
7660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7662#define shl_load innocuous_shl_load
7663
7664/* System header to define __stub macros and hopefully few prototypes,
7665 which can conflict with char shl_load (); below.
7666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667 <limits.h> exists even on freestanding compilers. */
7668
7669#ifdef __STDC__
7670# include <limits.h>
7671#else
7672# include <assert.h>
7673#endif
7674
7675#undef shl_load
7676
7677/* Override any gcc2 internal prototype to avoid an error. */
7678#ifdef __cplusplus
7679extern "C"
7680{
7681#endif
7682/* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684char shl_load ();
7685/* The GNU C library defines this for functions which it implements
7686 to always fail with ENOSYS. Some functions are actually named
7687 something starting with __ and the normal name is an alias. */
7688#if defined (__stub_shl_load) || defined (__stub___shl_load)
7689choke me
7690#else
7691char (*f) () = shl_load;
7692#endif
7693#ifdef __cplusplus
7694}
7695#endif
7696
7697int
7698main ()
7699{
7700return f != shl_load;
7701 ;
7702 return 0;
7703}
7704_ACEOF
7705rm -f conftest.$ac_objext conftest$ac_exeext
7706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -z "$ac_c_werror_flag"
7715 || test ! -s conftest.err'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; } &&
7721 { ac_try='test -s conftest$ac_exeext'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; }; then
7727 ac_cv_func_shl_load=yes
7728else
7729 echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732ac_cv_func_shl_load=no
7733fi
7734rm -f conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736fi
7737echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7738echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7739if test $ac_cv_func_shl_load = yes; then
7740
7741cat >>confdefs.h <<\_ACEOF
7742#define HAVE_SHL_LOAD 1
7743_ACEOF
7744
7745else
7746 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7747echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7748if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751 ac_check_lib_save_LIBS=$LIBS
7752LIBS="-ldld $LIBS"
7753cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h. */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h. */
7759
7760/* Override any gcc2 internal prototype to avoid an error. */
7761#ifdef __cplusplus
7762extern "C"
7763#endif
7764/* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7766char shl_load ();
7767int
7768main ()
7769{
7770shl_load ();
7771 ;
7772 return 0;
7773}
7774_ACEOF
7775rm -f conftest.$ac_objext conftest$ac_exeext
7776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>conftest.er1
7778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag"
7785 || test ! -s conftest.err'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 (eval $ac_try) 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7797 ac_cv_lib_dld_shl_load=yes
7798else
7799 echo "$as_me: failed program was:" >&5
7800sed 's/^/| /' conftest.$ac_ext >&5
7801
7802ac_cv_lib_dld_shl_load=no
7803fi
7804rm -f conftest.err conftest.$ac_objext \
7805 conftest$ac_exeext conftest.$ac_ext
7806LIBS=$ac_check_lib_save_LIBS
7807fi
7808echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7809echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7810if test $ac_cv_lib_dld_shl_load = yes; then
7811
7812cat >>confdefs.h <<\_ACEOF
7813#define HAVE_SHL_LOAD 1
7814_ACEOF
7815
7816 LIBADD_DL="$LIBADD_DL -ldld"
7817else
7818 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7819echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7820if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822else
7823 ac_check_lib_save_LIBS=$LIBS
7824LIBS="-ldl $LIBS"
7825cat >conftest.$ac_ext <<_ACEOF
7826/* confdefs.h. */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
7830/* end confdefs.h. */
7831
7832/* Override any gcc2 internal prototype to avoid an error. */
7833#ifdef __cplusplus
7834extern "C"
7835#endif
7836/* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7838char dlopen ();
7839int
7840main ()
7841{
7842dlopen ();
7843 ;
7844 return 0;
7845}
7846_ACEOF
7847rm -f conftest.$ac_objext conftest$ac_exeext
7848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849 (eval $ac_link) 2>conftest.er1
7850 ac_status=$?
7851 grep -v '^ *+' conftest.er1 >conftest.err
7852 rm -f conftest.er1
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try='test -z "$ac_c_werror_flag"
7857 || test ! -s conftest.err'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_lib_dl_dlopen=yes
7870else
7871 echo "$as_me: failed program was:" >&5
7872sed 's/^/| /' conftest.$ac_ext >&5
7873
7874ac_cv_lib_dl_dlopen=no
7875fi
7876rm -f conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878LIBS=$ac_check_lib_save_LIBS
7879fi
7880echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7881echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7882if test $ac_cv_lib_dl_dlopen = yes; then
7883
7884cat >>confdefs.h <<\_ACEOF
7885#define HAVE_LIBDL 1
7886_ACEOF
7887
7888 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7889else
7890 cat >conftest.$ac_ext <<_ACEOF
7891/* confdefs.h. */
7892_ACEOF
7893cat confdefs.h >>conftest.$ac_ext
7894cat >>conftest.$ac_ext <<_ACEOF
7895/* end confdefs.h. */
7896#if HAVE_DLFCN_H
7897# include <dlfcn.h>
7898#endif
7899
7900int
7901main ()
7902{
7903dlopen(0, 0);
7904 ;
7905 return 0;
7906}
7907_ACEOF
7908rm -f conftest.$ac_objext conftest$ac_exeext
7909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag"
7918 || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930
7931cat >>confdefs.h <<\_ACEOF
7932#define HAVE_LIBDL 1
7933_ACEOF
7934 libltdl_cv_func_dlopen="yes"
7935else
7936 echo "$as_me: failed program was:" >&5
7937sed 's/^/| /' conftest.$ac_ext >&5
7938
7939echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7940echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7941if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943else
7944 ac_check_lib_save_LIBS=$LIBS
7945LIBS="-lsvld $LIBS"
7946cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
7952
7953/* Override any gcc2 internal prototype to avoid an error. */
7954#ifdef __cplusplus
7955extern "C"
7956#endif
7957/* We use char because int might match the return type of a gcc2
7958 builtin and then its argument prototype would still apply. */
7959char dlopen ();
7960int
7961main ()
7962{
7963dlopen ();
7964 ;
7965 return 0;
7966}
7967_ACEOF
7968rm -f conftest.$ac_objext conftest$ac_exeext
7969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>conftest.er1
7971 ac_status=$?
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -z "$ac_c_werror_flag"
7978 || test ! -s conftest.err'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest$ac_exeext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 (eval $ac_try) 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 ac_cv_lib_svld_dlopen=yes
7991else
7992 echo "$as_me: failed program was:" >&5
7993sed 's/^/| /' conftest.$ac_ext >&5
7994
7995ac_cv_lib_svld_dlopen=no
7996fi
7997rm -f conftest.err conftest.$ac_objext \
7998 conftest$ac_exeext conftest.$ac_ext
7999LIBS=$ac_check_lib_save_LIBS
8000fi
8001echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8002echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8003if test $ac_cv_lib_svld_dlopen = yes; then
8004
8005cat >>confdefs.h <<\_ACEOF
8006#define HAVE_LIBDL 1
8007_ACEOF
8008
8009 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8010else
8011 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8012echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8013if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016 ac_check_lib_save_LIBS=$LIBS
8017LIBS="-ldld $LIBS"
8018cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h. */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h. */
8024
8025/* Override any gcc2 internal prototype to avoid an error. */
8026#ifdef __cplusplus
8027extern "C"
8028#endif
8029/* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8031char dld_link ();
8032int
8033main ()
8034{
8035dld_link ();
8036 ;
8037 return 0;
8038}
8039_ACEOF
8040rm -f conftest.$ac_objext conftest$ac_exeext
8041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_lib_dld_dld_link=yes
8063else
8064 echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067ac_cv_lib_dld_dld_link=no
8068fi
8069rm -f conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8071LIBS=$ac_check_lib_save_LIBS
8072fi
8073echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8074echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8075if test $ac_cv_lib_dld_dld_link = yes; then
8076
8077cat >>confdefs.h <<\_ACEOF
8078#define HAVE_DLD 1
8079_ACEOF
8080
8081 LIBADD_DL="$LIBADD_DL -ldld"
8082else
8083 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8084echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8085if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 cat >conftest.$ac_ext <<_ACEOF
8089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h. */
8094/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8096#define _dyld_func_lookup innocuous__dyld_func_lookup
8097
8098/* System header to define __stub macros and hopefully few prototypes,
8099 which can conflict with char _dyld_func_lookup (); below.
8100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8101 <limits.h> exists even on freestanding compilers. */
8102
8103#ifdef __STDC__
8104# include <limits.h>
8105#else
8106# include <assert.h>
8107#endif
8108
8109#undef _dyld_func_lookup
8110
8111/* Override any gcc2 internal prototype to avoid an error. */
8112#ifdef __cplusplus
8113extern "C"
8114{
8115#endif
8116/* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8118char _dyld_func_lookup ();
8119/* The GNU C library defines this for functions which it implements
8120 to always fail with ENOSYS. Some functions are actually named
8121 something starting with __ and the normal name is an alias. */
8122#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8123choke me
8124#else
8125char (*f) () = _dyld_func_lookup;
8126#endif
8127#ifdef __cplusplus
8128}
8129#endif
8130
8131int
8132main ()
8133{
8134return f != _dyld_func_lookup;
8135 ;
8136 return 0;
8137}
8138_ACEOF
8139rm -f conftest.$ac_objext conftest$ac_exeext
8140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141 (eval $ac_link) 2>conftest.er1
8142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -z "$ac_c_werror_flag"
8149 || test ! -s conftest.err'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest$ac_exeext'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 ac_cv_func__dyld_func_lookup=yes
8162else
8163 echo "$as_me: failed program was:" >&5
8164sed 's/^/| /' conftest.$ac_ext >&5
8165
8166ac_cv_func__dyld_func_lookup=no
8167fi
8168rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170fi
8171echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8172echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8173if test $ac_cv_func__dyld_func_lookup = yes; then
8174
8175cat >>confdefs.h <<\_ACEOF
8176#define HAVE_DYLD 1
8177_ACEOF
8178
8179fi
8180
8181
8182fi
8183
8184
8185fi
8186
8187
8188fi
8189rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191
8192fi
8193
8194
8195fi
8196
8197
8198fi
8199
8200
8201if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8202then
8203 lt_save_LIBS="$LIBS"
8204 LIBS="$LIBS $LIBADD_DL"
8205
8206for ac_func in dlerror
8207do
8208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8209echo "$as_me:$LINENO: checking for $ac_func" >&5
8210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8211if eval "test \"\${$as_ac_var+set}\" = set"; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213else
8214 cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h. */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h. */
8220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8222#define $ac_func innocuous_$ac_func
8223
8224/* System header to define __stub macros and hopefully few prototypes,
8225 which can conflict with char $ac_func (); below.
8226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8227 <limits.h> exists even on freestanding compilers. */
8228
8229#ifdef __STDC__
8230# include <limits.h>
8231#else
8232# include <assert.h>
8233#endif
8234
8235#undef $ac_func
8236
8237/* Override any gcc2 internal prototype to avoid an error. */
8238#ifdef __cplusplus
8239extern "C"
8240{
8241#endif
8242/* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8244char $ac_func ();
8245/* The GNU C library defines this for functions which it implements
8246 to always fail with ENOSYS. Some functions are actually named
8247 something starting with __ and the normal name is an alias. */
8248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8249choke me
8250#else
8251char (*f) () = $ac_func;
8252#endif
8253#ifdef __cplusplus
8254}
8255#endif
8256
8257int
8258main ()
8259{
8260return f != $ac_func;
8261 ;
8262 return 0;
8263}
8264_ACEOF
8265rm -f conftest.$ac_objext conftest$ac_exeext
8266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267 (eval $ac_link) 2>conftest.er1
8268 ac_status=$?
8269 grep -v '^ *+' conftest.er1 >conftest.err
8270 rm -f conftest.er1
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag"
8275 || test ! -s conftest.err'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 (eval $ac_try) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest$ac_exeext'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 eval "$as_ac_var=yes"
8288else
8289 echo "$as_me: failed program was:" >&5
8290sed 's/^/| /' conftest.$ac_ext >&5
8291
8292eval "$as_ac_var=no"
8293fi
8294rm -f conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8296fi
8297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8299if test `eval echo '${'$as_ac_var'}'` = yes; then
8300 cat >>confdefs.h <<_ACEOF
8301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8302_ACEOF
8303
8304fi
8305done
8306
8307 LIBS="$lt_save_LIBS"
8308fi
8309ac_ext=c
8310ac_cpp='$CPP $CPPFLAGS'
8311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8313ac_compiler_gnu=$ac_cv_c_compiler_gnu
8314
8315
8316
8317echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8318echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8319if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322 ac_cv_sys_symbol_underscore=no
8323 cat > conftest.$ac_ext <<EOF
8324void nm_test_func(){}
8325int main(){nm_test_func;return 0;}
8326EOF
8327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328 (eval $ac_compile) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; then
8332 # Now try to grab the symbols.
8333 ac_nlist=conftest.nm
8334 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8335 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && test -s "$ac_nlist"; then
8339 # See whether the symbols have a leading underscore.
8340 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8341 ac_cv_sys_symbol_underscore=yes
8342 else
8343 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8344 :
8345 else
8346 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8347 fi
8348 fi
8349 else
8350 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8351 fi
8352 else
8353 echo "configure: failed program was:" >&5
8354 cat conftest.c >&5
8355 fi
8356 rm -rf conftest*
8357
8358fi
8359echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8360echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8361
8362
8363if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8364 if test x"$libltdl_cv_func_dlopen" = xyes ||
8365 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8366 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8367echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8368if test "${libltdl_cv_need_uscore+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371 libltdl_cv_need_uscore=unknown
8372 save_LIBS="$LIBS"
8373 LIBS="$LIBS $LIBADD_DL"
8374 if test "$cross_compiling" = yes; then :
8375 libltdl_cv_need_uscore=cross
8376else
8377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8378 lt_status=$lt_dlunknown
8379 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +00008380#line 8380 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008381#include "confdefs.h"
8382
8383#if HAVE_DLFCN_H
8384#include <dlfcn.h>
8385#endif
8386
8387#include <stdio.h>
8388
8389#ifdef RTLD_GLOBAL
8390# define LT_DLGLOBAL RTLD_GLOBAL
8391#else
8392# ifdef DL_GLOBAL
8393# define LT_DLGLOBAL DL_GLOBAL
8394# else
8395# define LT_DLGLOBAL 0
8396# endif
8397#endif
8398
8399/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8400 find out it does not work in some platform. */
8401#ifndef LT_DLLAZY_OR_NOW
8402# ifdef RTLD_LAZY
8403# define LT_DLLAZY_OR_NOW RTLD_LAZY
8404# else
8405# ifdef DL_LAZY
8406# define LT_DLLAZY_OR_NOW DL_LAZY
8407# else
8408# ifdef RTLD_NOW
8409# define LT_DLLAZY_OR_NOW RTLD_NOW
8410# else
8411# ifdef DL_NOW
8412# define LT_DLLAZY_OR_NOW DL_NOW
8413# else
8414# define LT_DLLAZY_OR_NOW 0
8415# endif
8416# endif
8417# endif
8418# endif
8419#endif
8420
8421#ifdef __cplusplus
8422extern "C" void exit (int);
8423#endif
8424
8425void fnord() { int i=42;}
8426int main ()
8427{
8428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8429 int status = $lt_dlunknown;
8430
8431 if (self)
8432 {
8433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8435 /* dlclose (self); */
8436 }
8437
8438 exit (status);
8439}
8440EOF
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8446 (./conftest; exit; ) 2>/dev/null
8447 lt_status=$?
8448 case x$lt_status in
8449 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8450 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8451 x$lt_unknown|x*) ;;
8452 esac
8453 else :
8454 # compilation failed
8455
8456 fi
8457fi
8458rm -fr conftest*
8459
8460 LIBS="$save_LIBS"
8461
8462fi
8463echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8464echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8465 fi
8466fi
8467
8468if test x"$libltdl_cv_need_uscore" = xyes; then
8469
8470cat >>confdefs.h <<\_ACEOF
8471#define NEED_USCORE 1
8472_ACEOF
8473
8474fi
8475
8476
8477echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8478echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8479if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482 # PORTME does your system automatically load deplibs for dlopen?
8483 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8484 # For now, we just catch OSes we know something about -- in the
8485 # future, we'll try test this programmatically.
8486 libltdl_cv_sys_dlopen_deplibs=unknown
8487 case "$host_os" in
8488 aix3*|aix4.1.*|aix4.2.*)
8489 # Unknown whether this is true for these versions of AIX, but
8490 # we want this `case' here to explicitly catch those versions.
8491 libltdl_cv_sys_dlopen_deplibs=unknown
8492 ;;
8493 aix[45]*)
8494 libltdl_cv_sys_dlopen_deplibs=yes
8495 ;;
8496 darwin*)
8497 # Assuming the user has installed a libdl from somewhere, this is true
8498 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8499 libltdl_cv_sys_dlopen_deplibs=yes
8500 ;;
8501 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8502 # GNU and its variants, using gnu ld.so (Glibc)
8503 libltdl_cv_sys_dlopen_deplibs=yes
8504 ;;
8505 hpux10*|hpux11*)
8506 libltdl_cv_sys_dlopen_deplibs=yes
8507 ;;
8508 irix[12345]*|irix6.[01]*)
8509 # Catch all versions of IRIX before 6.2, and indicate that we don't
8510 # know how it worked for any of those versions.
8511 libltdl_cv_sys_dlopen_deplibs=unknown
8512 ;;
8513 irix*)
8514 # The case above catches anything before 6.2, and it's known that
8515 # at 6.2 and later dlopen does load deplibs.
8516 libltdl_cv_sys_dlopen_deplibs=yes
8517 ;;
8518 netbsd*)
8519 libltdl_cv_sys_dlopen_deplibs=yes
8520 ;;
8521 openbsd*)
8522 libltdl_cv_sys_dlopen_deplibs=yes
8523 ;;
8524 osf[1234]*)
8525 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8526 # it did *not* use an RPATH in a shared library to find objects the
8527 # library depends on, so we explictly say `no'.
8528 libltdl_cv_sys_dlopen_deplibs=no
8529 ;;
8530 osf5.0|osf5.0a|osf5.1)
8531 # dlopen *does* load deplibs and with the right loader patch applied
8532 # it even uses RPATH in a shared library to search for shared objects
8533 # that the library depends on, but there's no easy way to know if that
8534 # patch is installed. Since this is the case, all we can really
8535 # say is unknown -- it depends on the patch being installed. If
8536 # it is, this changes to `yes'. Without it, it would be `no'.
8537 libltdl_cv_sys_dlopen_deplibs=unknown
8538 ;;
8539 osf*)
8540 # the two cases above should catch all versions of osf <= 5.1. Read
8541 # the comments above for what we know about them.
8542 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8543 # is used to find them so we can finally say `yes'.
8544 libltdl_cv_sys_dlopen_deplibs=yes
8545 ;;
8546 solaris*)
8547 libltdl_cv_sys_dlopen_deplibs=yes
8548 ;;
8549 esac
8550
8551fi
8552echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8553echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8554if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8555
8556cat >>confdefs.h <<\_ACEOF
8557#define LTDL_DLOPEN_DEPLIBS 1
8558_ACEOF
8559
8560fi
8561
8562
8563for ac_header in argz.h
8564do
8565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567 echo "$as_me:$LINENO: checking for $ac_header" >&5
8568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571fi
8572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8574else
8575 # Is the header compilable?
8576echo "$as_me:$LINENO: checking $ac_header usability" >&5
8577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8578cat >conftest.$ac_ext <<_ACEOF
8579/* confdefs.h. */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h. */
8584$ac_includes_default
8585#include <$ac_header>
8586_ACEOF
8587rm -f conftest.$ac_objext
8588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_header_compiler=yes
8610else
8611 echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614ac_header_compiler=no
8615fi
8616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618echo "${ECHO_T}$ac_header_compiler" >&6
8619
8620# Is the header present?
8621echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8623cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h. */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h. */
8629#include <$ac_header>
8630_ACEOF
8631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } >/dev/null; then
8639 if test -s conftest.err; then
8640 ac_cpp_err=$ac_c_preproc_warn_flag
8641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8642 else
8643 ac_cpp_err=
8644 fi
8645else
8646 ac_cpp_err=yes
8647fi
8648if test -z "$ac_cpp_err"; then
8649 ac_header_preproc=yes
8650else
8651 echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654 ac_header_preproc=no
8655fi
8656rm -f conftest.err conftest.$ac_ext
8657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658echo "${ECHO_T}$ac_header_preproc" >&6
8659
8660# So? What about this header?
8661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8662 yes:no: )
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667 ac_header_preproc=yes
8668 ;;
8669 no:yes:* )
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8682 (
8683 cat <<\_ASBOX
8684## ----------------------------------- ##
8685## Report this to llvmbugs@cs.uiuc.edu ##
8686## ----------------------------------- ##
8687_ASBOX
8688 ) |
8689 sed "s/^/$as_me: WARNING: /" >&2
8690 ;;
8691esac
8692echo "$as_me:$LINENO: checking for $ac_header" >&5
8693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697 eval "$as_ac_Header=\$ac_header_preproc"
8698fi
8699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8701
8702fi
8703if test `eval echo '${'$as_ac_Header'}'` = yes; then
8704 cat >>confdefs.h <<_ACEOF
8705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8706_ACEOF
8707
8708fi
8709
8710done
8711
8712
8713echo "$as_me:$LINENO: checking for error_t" >&5
8714echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8715if test "${ac_cv_type_error_t+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
8718 cat >conftest.$ac_ext <<_ACEOF
8719/* confdefs.h. */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
8723/* end confdefs.h. */
8724#if HAVE_ARGZ_H
8725# include <argz.h>
8726#endif
8727
8728int
8729main ()
8730{
8731if ((error_t *) 0)
8732 return 0;
8733if (sizeof (error_t))
8734 return 0;
8735 ;
8736 return 0;
8737}
8738_ACEOF
8739rm -f conftest.$ac_objext
8740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -z "$ac_c_werror_flag"
8749 || test ! -s conftest.err'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 (eval $ac_try) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; } &&
8755 { ac_try='test -s conftest.$ac_objext'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 (eval $ac_try) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 ac_cv_type_error_t=yes
8762else
8763 echo "$as_me: failed program was:" >&5
8764sed 's/^/| /' conftest.$ac_ext >&5
8765
8766ac_cv_type_error_t=no
8767fi
8768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8769fi
8770echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8771echo "${ECHO_T}$ac_cv_type_error_t" >&6
8772if test $ac_cv_type_error_t = yes; then
8773
8774cat >>confdefs.h <<_ACEOF
8775#define HAVE_ERROR_T 1
8776_ACEOF
8777
8778
8779else
8780
8781cat >>confdefs.h <<\_ACEOF
8782#define error_t int
8783_ACEOF
8784
8785fi
8786
8787
8788
8789
8790
8791
8792
8793for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8794do
8795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8796echo "$as_me:$LINENO: checking for $ac_func" >&5
8797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8798if eval "test \"\${$as_ac_var+set}\" = set"; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801 cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */
8807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8809#define $ac_func innocuous_$ac_func
8810
8811/* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char $ac_func (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */
8815
8816#ifdef __STDC__
8817# include <limits.h>
8818#else
8819# include <assert.h>
8820#endif
8821
8822#undef $ac_func
8823
8824/* Override any gcc2 internal prototype to avoid an error. */
8825#ifdef __cplusplus
8826extern "C"
8827{
8828#endif
8829/* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8831char $ac_func ();
8832/* The GNU C library defines this for functions which it implements
8833 to always fail with ENOSYS. Some functions are actually named
8834 something starting with __ and the normal name is an alias. */
8835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8836choke me
8837#else
8838char (*f) () = $ac_func;
8839#endif
8840#ifdef __cplusplus
8841}
8842#endif
8843
8844int
8845main ()
8846{
8847return f != $ac_func;
8848 ;
8849 return 0;
8850}
8851_ACEOF
8852rm -f conftest.$ac_objext conftest$ac_exeext
8853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 eval "$as_ac_var=yes"
8875else
8876 echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879eval "$as_ac_var=no"
8880fi
8881rm -f conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883fi
8884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8886if test `eval echo '${'$as_ac_var'}'` = yes; then
8887 cat >>confdefs.h <<_ACEOF
8888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8889_ACEOF
8890
8891fi
8892done
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8922 stdio.h unistd.h
8923do
8924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925if eval "test \"\${$as_ac_Header+set}\" = set"; then
8926 echo "$as_me:$LINENO: checking for $ac_header" >&5
8927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8928if eval "test \"\${$as_ac_Header+set}\" = set"; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930fi
8931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8933else
8934 # Is the header compilable?
8935echo "$as_me:$LINENO: checking $ac_header usability" >&5
8936echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8937cat >conftest.$ac_ext <<_ACEOF
8938/* confdefs.h. */
8939_ACEOF
8940cat confdefs.h >>conftest.$ac_ext
8941cat >>conftest.$ac_ext <<_ACEOF
8942/* end confdefs.h. */
8943$ac_includes_default
8944#include <$ac_header>
8945_ACEOF
8946rm -f conftest.$ac_objext
8947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest.$ac_objext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_header_compiler=yes
8969else
8970 echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973ac_header_compiler=no
8974fi
8975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8977echo "${ECHO_T}$ac_header_compiler" >&6
8978
8979# Is the header present?
8980echo "$as_me:$LINENO: checking $ac_header presence" >&5
8981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8982cat >conftest.$ac_ext <<_ACEOF
8983/* confdefs.h. */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h. */
8988#include <$ac_header>
8989_ACEOF
8990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } >/dev/null; then
8998 if test -s conftest.err; then
8999 ac_cpp_err=$ac_c_preproc_warn_flag
9000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9001 else
9002 ac_cpp_err=
9003 fi
9004else
9005 ac_cpp_err=yes
9006fi
9007if test -z "$ac_cpp_err"; then
9008 ac_header_preproc=yes
9009else
9010 echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 ac_header_preproc=no
9014fi
9015rm -f conftest.err conftest.$ac_ext
9016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9017echo "${ECHO_T}$ac_header_preproc" >&6
9018
9019# So? What about this header?
9020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9021 yes:no: )
9022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9026 ac_header_preproc=yes
9027 ;;
9028 no:yes:* )
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9032echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9036echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9041 (
9042 cat <<\_ASBOX
9043## ----------------------------------- ##
9044## Report this to llvmbugs@cs.uiuc.edu ##
9045## ----------------------------------- ##
9046_ASBOX
9047 ) |
9048 sed "s/^/$as_me: WARNING: /" >&2
9049 ;;
9050esac
9051echo "$as_me:$LINENO: checking for $ac_header" >&5
9052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055else
9056 eval "$as_ac_Header=\$ac_header_preproc"
9057fi
9058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060
9061fi
9062if test `eval echo '${'$as_ac_Header'}'` = yes; then
9063 cat >>confdefs.h <<_ACEOF
9064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9065_ACEOF
9066
9067fi
9068
9069done
9070
9071
9072
9073
9074
9075for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9076do
9077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079 echo "$as_me:$LINENO: checking for $ac_header" >&5
9080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083fi
9084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086else
9087 # Is the header compilable?
9088echo "$as_me:$LINENO: checking $ac_header usability" >&5
9089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9090cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h. */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
9095/* end confdefs.h. */
9096$ac_includes_default
9097#include <$ac_header>
9098_ACEOF
9099rm -f conftest.$ac_objext
9100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101 (eval $ac_compile) 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag"
9109 || test ! -s conftest.err'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest.$ac_objext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 ac_header_compiler=yes
9122else
9123 echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126ac_header_compiler=no
9127fi
9128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130echo "${ECHO_T}$ac_header_compiler" >&6
9131
9132# Is the header present?
9133echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135cat >conftest.$ac_ext <<_ACEOF
9136/* confdefs.h. */
9137_ACEOF
9138cat confdefs.h >>conftest.$ac_ext
9139cat >>conftest.$ac_ext <<_ACEOF
9140/* end confdefs.h. */
9141#include <$ac_header>
9142_ACEOF
9143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9145 ac_status=$?
9146 grep -v '^ *+' conftest.er1 >conftest.err
9147 rm -f conftest.er1
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } >/dev/null; then
9151 if test -s conftest.err; then
9152 ac_cpp_err=$ac_c_preproc_warn_flag
9153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9154 else
9155 ac_cpp_err=
9156 fi
9157else
9158 ac_cpp_err=yes
9159fi
9160if test -z "$ac_cpp_err"; then
9161 ac_header_preproc=yes
9162else
9163 echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
9166 ac_header_preproc=no
9167fi
9168rm -f conftest.err conftest.$ac_ext
9169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172# So? What about this header?
9173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174 yes:no: )
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9179 ac_header_preproc=yes
9180 ;;
9181 no:yes:* )
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9194 (
9195 cat <<\_ASBOX
9196## ----------------------------------- ##
9197## Report this to llvmbugs@cs.uiuc.edu ##
9198## ----------------------------------- ##
9199_ASBOX
9200 ) |
9201 sed "s/^/$as_me: WARNING: /" >&2
9202 ;;
9203esac
9204echo "$as_me:$LINENO: checking for $ac_header" >&5
9205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209 eval "$as_ac_Header=\$ac_header_preproc"
9210fi
9211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213
9214fi
9215if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216 cat >>confdefs.h <<_ACEOF
9217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218_ACEOF
9219
9220fi
9221
9222done
9223
9224
9225
9226for ac_header in string.h strings.h
9227do
9228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9229if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230 echo "$as_me:$LINENO: checking for $ac_header" >&5
9231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234fi
9235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237else
9238 # Is the header compilable?
9239echo "$as_me:$LINENO: checking $ac_header usability" >&5
9240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9241cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h. */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h. */
9247$ac_includes_default
9248#include <$ac_header>
9249_ACEOF
9250rm -f conftest.$ac_objext
9251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest.$ac_objext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_header_compiler=yes
9273else
9274 echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
9277ac_header_compiler=no
9278fi
9279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9281echo "${ECHO_T}$ac_header_compiler" >&6
9282
9283# Is the header present?
9284echo "$as_me:$LINENO: checking $ac_header presence" >&5
9285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9286cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h. */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h. */
9292#include <$ac_header>
9293_ACEOF
9294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } >/dev/null; then
9302 if test -s conftest.err; then
9303 ac_cpp_err=$ac_c_preproc_warn_flag
9304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9305 else
9306 ac_cpp_err=
9307 fi
9308else
9309 ac_cpp_err=yes
9310fi
9311if test -z "$ac_cpp_err"; then
9312 ac_header_preproc=yes
9313else
9314 echo "$as_me: failed program was:" >&5
9315sed 's/^/| /' conftest.$ac_ext >&5
9316
9317 ac_header_preproc=no
9318fi
9319rm -f conftest.err conftest.$ac_ext
9320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321echo "${ECHO_T}$ac_header_preproc" >&6
9322
9323# So? What about this header?
9324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325 yes:no: )
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330 ac_header_preproc=yes
9331 ;;
9332 no:yes:* )
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9345 (
9346 cat <<\_ASBOX
9347## ----------------------------------- ##
9348## Report this to llvmbugs@cs.uiuc.edu ##
9349## ----------------------------------- ##
9350_ASBOX
9351 ) |
9352 sed "s/^/$as_me: WARNING: /" >&2
9353 ;;
9354esac
9355echo "$as_me:$LINENO: checking for $ac_header" >&5
9356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359else
9360 eval "$as_ac_Header=\$ac_header_preproc"
9361fi
9362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9364
9365fi
9366if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367 cat >>confdefs.h <<_ACEOF
9368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369_ACEOF
9370 break
9371fi
9372
9373done
9374
9375
9376
9377
9378for ac_func in strchr index
9379do
9380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9381echo "$as_me:$LINENO: checking for $ac_func" >&5
9382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9383if eval "test \"\${$as_ac_var+set}\" = set"; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385else
9386 cat >conftest.$ac_ext <<_ACEOF
9387/* confdefs.h. */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
9391/* end confdefs.h. */
9392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9394#define $ac_func innocuous_$ac_func
9395
9396/* System header to define __stub macros and hopefully few prototypes,
9397 which can conflict with char $ac_func (); below.
9398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399 <limits.h> exists even on freestanding compilers. */
9400
9401#ifdef __STDC__
9402# include <limits.h>
9403#else
9404# include <assert.h>
9405#endif
9406
9407#undef $ac_func
9408
9409/* Override any gcc2 internal prototype to avoid an error. */
9410#ifdef __cplusplus
9411extern "C"
9412{
9413#endif
9414/* We use char because int might match the return type of a gcc2
9415 builtin and then its argument prototype would still apply. */
9416char $ac_func ();
9417/* The GNU C library defines this for functions which it implements
9418 to always fail with ENOSYS. Some functions are actually named
9419 something starting with __ and the normal name is an alias. */
9420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9421choke me
9422#else
9423char (*f) () = $ac_func;
9424#endif
9425#ifdef __cplusplus
9426}
9427#endif
9428
9429int
9430main ()
9431{
9432return f != $ac_func;
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext conftest$ac_exeext
9438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>conftest.er1
9440 ac_status=$?
9441 grep -v '^ *+' conftest.er1 >conftest.err
9442 rm -f conftest.er1
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag"
9447 || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try='test -s conftest$ac_exeext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 eval "$as_ac_var=yes"
9460else
9461 echo "$as_me: failed program was:" >&5
9462sed 's/^/| /' conftest.$ac_ext >&5
9463
9464eval "$as_ac_var=no"
9465fi
9466rm -f conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468fi
9469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9471if test `eval echo '${'$as_ac_var'}'` = yes; then
9472 cat >>confdefs.h <<_ACEOF
9473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9474_ACEOF
9475 break
9476fi
9477done
9478
9479
9480
9481for ac_func in strrchr rindex
9482do
9483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9484echo "$as_me:$LINENO: checking for $ac_func" >&5
9485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9486if eval "test \"\${$as_ac_var+set}\" = set"; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489 cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h. */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h. */
9495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497#define $ac_func innocuous_$ac_func
9498
9499/* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char $ac_func (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9503
9504#ifdef __STDC__
9505# include <limits.h>
9506#else
9507# include <assert.h>
9508#endif
9509
9510#undef $ac_func
9511
9512/* Override any gcc2 internal prototype to avoid an error. */
9513#ifdef __cplusplus
9514extern "C"
9515{
9516#endif
9517/* We use char because int might match the return type of a gcc2
9518 builtin and then its argument prototype would still apply. */
9519char $ac_func ();
9520/* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9524choke me
9525#else
9526char (*f) () = $ac_func;
9527#endif
9528#ifdef __cplusplus
9529}
9530#endif
9531
9532int
9533main ()
9534{
9535return f != $ac_func;
9536 ;
9537 return 0;
9538}
9539_ACEOF
9540rm -f conftest.$ac_objext conftest$ac_exeext
9541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag"
9550 || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 eval "$as_ac_var=yes"
9563else
9564 echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567eval "$as_ac_var=no"
9568fi
9569rm -f conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571fi
9572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9574if test `eval echo '${'$as_ac_var'}'` = yes; then
9575 cat >>confdefs.h <<_ACEOF
9576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9577_ACEOF
9578 break
9579fi
9580done
9581
9582
9583
9584for ac_func in memcpy bcopy
9585do
9586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9587echo "$as_me:$LINENO: checking for $ac_func" >&5
9588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9589if eval "test \"\${$as_ac_var+set}\" = set"; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592 cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h. */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
9597/* end confdefs.h. */
9598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9600#define $ac_func innocuous_$ac_func
9601
9602/* System header to define __stub macros and hopefully few prototypes,
9603 which can conflict with char $ac_func (); below.
9604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605 <limits.h> exists even on freestanding compilers. */
9606
9607#ifdef __STDC__
9608# include <limits.h>
9609#else
9610# include <assert.h>
9611#endif
9612
9613#undef $ac_func
9614
9615/* Override any gcc2 internal prototype to avoid an error. */
9616#ifdef __cplusplus
9617extern "C"
9618{
9619#endif
9620/* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */
9622char $ac_func ();
9623/* The GNU C library defines this for functions which it implements
9624 to always fail with ENOSYS. Some functions are actually named
9625 something starting with __ and the normal name is an alias. */
9626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9627choke me
9628#else
9629char (*f) () = $ac_func;
9630#endif
9631#ifdef __cplusplus
9632}
9633#endif
9634
9635int
9636main ()
9637{
9638return f != $ac_func;
9639 ;
9640 return 0;
9641}
9642_ACEOF
9643rm -f conftest.$ac_objext conftest$ac_exeext
9644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645 (eval $ac_link) 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } &&
9652 { ac_try='test -z "$ac_c_werror_flag"
9653 || test ! -s conftest.err'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 (eval $ac_try) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 eval "$as_ac_var=yes"
9666else
9667 echo "$as_me: failed program was:" >&5
9668sed 's/^/| /' conftest.$ac_ext >&5
9669
9670eval "$as_ac_var=no"
9671fi
9672rm -f conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674fi
9675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9677if test `eval echo '${'$as_ac_var'}'` = yes; then
9678 cat >>confdefs.h <<_ACEOF
9679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9680_ACEOF
9681 break
9682fi
9683done
9684
9685
9686
9687for ac_func in memmove strcmp
9688do
9689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9690echo "$as_me:$LINENO: checking for $ac_func" >&5
9691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9692if eval "test \"\${$as_ac_var+set}\" = set"; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695 cat >conftest.$ac_ext <<_ACEOF
9696/* confdefs.h. */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
9700/* end confdefs.h. */
9701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9703#define $ac_func innocuous_$ac_func
9704
9705/* System header to define __stub macros and hopefully few prototypes,
9706 which can conflict with char $ac_func (); below.
9707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9708 <limits.h> exists even on freestanding compilers. */
9709
9710#ifdef __STDC__
9711# include <limits.h>
9712#else
9713# include <assert.h>
9714#endif
9715
9716#undef $ac_func
9717
9718/* Override any gcc2 internal prototype to avoid an error. */
9719#ifdef __cplusplus
9720extern "C"
9721{
9722#endif
9723/* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9725char $ac_func ();
9726/* The GNU C library defines this for functions which it implements
9727 to always fail with ENOSYS. Some functions are actually named
9728 something starting with __ and the normal name is an alias. */
9729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9730choke me
9731#else
9732char (*f) () = $ac_func;
9733#endif
9734#ifdef __cplusplus
9735}
9736#endif
9737
9738int
9739main ()
9740{
9741return f != $ac_func;
9742 ;
9743 return 0;
9744}
9745_ACEOF
9746rm -f conftest.$ac_objext conftest$ac_exeext
9747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>conftest.er1
9749 ac_status=$?
9750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 (eval $ac_try) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 eval "$as_ac_var=yes"
9769else
9770 echo "$as_me: failed program was:" >&5
9771sed 's/^/| /' conftest.$ac_ext >&5
9772
9773eval "$as_ac_var=no"
9774fi
9775rm -f conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777fi
9778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9779echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9780if test `eval echo '${'$as_ac_var'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9783_ACEOF
9784
9785fi
9786done
9787
9788
9789
9790
9791for ac_func in closedir opendir readdir
9792do
9793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9794echo "$as_me:$LINENO: checking for $ac_func" >&5
9795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9796if eval "test \"\${$as_ac_var+set}\" = set"; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799 cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h. */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h. */
9805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9807#define $ac_func innocuous_$ac_func
9808
9809/* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char $ac_func (); below.
9811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 <limits.h> exists even on freestanding compilers. */
9813
9814#ifdef __STDC__
9815# include <limits.h>
9816#else
9817# include <assert.h>
9818#endif
9819
9820#undef $ac_func
9821
9822/* Override any gcc2 internal prototype to avoid an error. */
9823#ifdef __cplusplus
9824extern "C"
9825{
9826#endif
9827/* We use char because int might match the return type of a gcc2
9828 builtin and then its argument prototype would still apply. */
9829char $ac_func ();
9830/* The GNU C library defines this for functions which it implements
9831 to always fail with ENOSYS. Some functions are actually named
9832 something starting with __ and the normal name is an alias. */
9833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9834choke me
9835#else
9836char (*f) () = $ac_func;
9837#endif
9838#ifdef __cplusplus
9839}
9840#endif
9841
9842int
9843main ()
9844{
9845return f != $ac_func;
9846 ;
9847 return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext conftest$ac_exeext
9851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 eval "$as_ac_var=yes"
9873else
9874 echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877eval "$as_ac_var=no"
9878fi
9879rm -f conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9881fi
9882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9884if test `eval echo '${'$as_ac_var'}'` = yes; then
9885 cat >>confdefs.h <<_ACEOF
9886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9887_ACEOF
9888
9889fi
9890done
9891
9892
9893# Check whether --enable-shared or --disable-shared was given.
9894if test "${enable_shared+set}" = set; then
9895 enableval="$enable_shared"
9896 p=${PACKAGE-default}
9897 case $enableval in
9898 yes) enable_shared=yes ;;
9899 no) enable_shared=no ;;
9900 *)
9901 enable_shared=no
9902 # Look at the argument we got. We use all the common list separators.
9903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9904 for pkg in $enableval; do
9905 IFS="$lt_save_ifs"
9906 if test "X$pkg" = "X$p"; then
9907 enable_shared=yes
9908 fi
9909 done
9910 IFS="$lt_save_ifs"
9911 ;;
9912 esac
9913else
9914 enable_shared=yes
9915fi;
9916
9917# Check whether --enable-static or --disable-static was given.
9918if test "${enable_static+set}" = set; then
9919 enableval="$enable_static"
9920 p=${PACKAGE-default}
9921 case $enableval in
9922 yes) enable_static=yes ;;
9923 no) enable_static=no ;;
9924 *)
9925 enable_static=no
9926 # Look at the argument we got. We use all the common list separators.
9927 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9928 for pkg in $enableval; do
9929 IFS="$lt_save_ifs"
9930 if test "X$pkg" = "X$p"; then
9931 enable_static=yes
9932 fi
9933 done
9934 IFS="$lt_save_ifs"
9935 ;;
9936 esac
9937else
9938 enable_static=yes
9939fi;
9940
9941# Check whether --enable-fast-install or --disable-fast-install was given.
9942if test "${enable_fast_install+set}" = set; then
9943 enableval="$enable_fast_install"
9944 p=${PACKAGE-default}
9945 case $enableval in
9946 yes) enable_fast_install=yes ;;
9947 no) enable_fast_install=no ;;
9948 *)
9949 enable_fast_install=no
9950 # Look at the argument we got. We use all the common list separators.
9951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9952 for pkg in $enableval; do
9953 IFS="$lt_save_ifs"
9954 if test "X$pkg" = "X$p"; then
9955 enable_fast_install=yes
9956 fi
9957 done
9958 IFS="$lt_save_ifs"
9959 ;;
9960 esac
9961else
9962 enable_fast_install=yes
9963fi;
9964
9965echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9966echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9967if test "${lt_cv_path_SED+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969else
9970 # Loop through the user's path and test for sed and gsed.
9971# Then use that list of sed's as ones to test for truncation.
9972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for lt_ac_prog in sed gsed; do
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9980 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9981 fi
9982 done
9983 done
9984done
9985lt_ac_max=0
9986lt_ac_count=0
9987# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9988# along with /bin/sed that truncates output.
9989for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9990 test ! -f $lt_ac_sed && break
9991 cat /dev/null > conftest.in
9992 lt_ac_count=0
9993 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9994 # Check for GNU sed and select it if it is found.
9995 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9996 lt_cv_path_SED=$lt_ac_sed
9997 break
9998 fi
9999 while true; do
10000 cat conftest.in conftest.in >conftest.tmp
10001 mv conftest.tmp conftest.in
10002 cp conftest.in conftest.nl
10003 echo >>conftest.nl
10004 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10005 cmp -s conftest.out conftest.nl || break
10006 # 10000 chars as input seems more than enough
10007 test $lt_ac_count -gt 10 && break
10008 lt_ac_count=`expr $lt_ac_count + 1`
10009 if test $lt_ac_count -gt $lt_ac_max; then
10010 lt_ac_max=$lt_ac_count
10011 lt_cv_path_SED=$lt_ac_sed
10012 fi
10013 done
10014done
10015
10016fi
10017
10018SED=$lt_cv_path_SED
10019echo "$as_me:$LINENO: result: $SED" >&5
10020echo "${ECHO_T}$SED" >&6
10021
10022
10023# Check whether --with-gnu-ld or --without-gnu-ld was given.
10024if test "${with_gnu_ld+set}" = set; then
10025 withval="$with_gnu_ld"
10026 test "$withval" = no || with_gnu_ld=yes
10027else
10028 with_gnu_ld=no
10029fi;
10030ac_prog=ld
10031if test "$GCC" = yes; then
10032 # Check if gcc -print-prog-name=ld gives a path.
10033 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10034echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10035 case $host in
10036 *-*-mingw*)
10037 # gcc leaves a trailing carriage return which upsets mingw
10038 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10039 *)
10040 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10041 esac
10042 case $ac_prog in
10043 # Accept absolute paths.
10044 [\\/]* | ?:[\\/]*)
10045 re_direlt='/[^/][^/]*/\.\./'
10046 # Canonicalize the pathname of ld
10047 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10048 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10049 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10050 done
10051 test -z "$LD" && LD="$ac_prog"
10052 ;;
10053 "")
10054 # If it fails, then pretend we aren't using GCC.
10055 ac_prog=ld
10056 ;;
10057 *)
10058 # If it is relative, then search for the first ld in PATH.
10059 with_gnu_ld=unknown
10060 ;;
10061 esac
10062elif test "$with_gnu_ld" = yes; then
10063 echo "$as_me:$LINENO: checking for GNU ld" >&5
10064echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10065else
10066 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10067echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10068fi
10069if test "${lt_cv_path_LD+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072 if test -z "$LD"; then
10073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10074 for ac_dir in $PATH; do
10075 IFS="$lt_save_ifs"
10076 test -z "$ac_dir" && ac_dir=.
10077 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10078 lt_cv_path_LD="$ac_dir/$ac_prog"
10079 # Check to see if the program is GNU ld. I'd rather use --version,
10080 # but apparently some GNU ld's only accept -v.
10081 # Break only if it was the GNU/non-GNU ld that we prefer.
10082 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10083 *GNU* | *'with BFD'*)
10084 test "$with_gnu_ld" != no && break
10085 ;;
10086 *)
10087 test "$with_gnu_ld" != yes && break
10088 ;;
10089 esac
10090 fi
10091 done
10092 IFS="$lt_save_ifs"
10093else
10094 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10095fi
10096fi
10097
10098LD="$lt_cv_path_LD"
10099if test -n "$LD"; then
10100 echo "$as_me:$LINENO: result: $LD" >&5
10101echo "${ECHO_T}$LD" >&6
10102else
10103 echo "$as_me:$LINENO: result: no" >&5
10104echo "${ECHO_T}no" >&6
10105fi
10106test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10107echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10108 { (exit 1); exit 1; }; }
10109echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10110echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10111if test "${lt_cv_prog_gnu_ld+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10115case `$LD -v 2>&1 </dev/null` in
10116*GNU* | *'with BFD'*)
10117 lt_cv_prog_gnu_ld=yes
10118 ;;
10119*)
10120 lt_cv_prog_gnu_ld=no
10121 ;;
10122esac
10123fi
10124echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10125echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10126with_gnu_ld=$lt_cv_prog_gnu_ld
10127
10128
10129echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10130echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10131if test "${lt_cv_ld_reload_flag+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134 lt_cv_ld_reload_flag='-r'
10135fi
10136echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10137echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10138reload_flag=$lt_cv_ld_reload_flag
10139case $reload_flag in
10140"" | " "*) ;;
10141*) reload_flag=" $reload_flag" ;;
10142esac
10143reload_cmds='$LD$reload_flag -o $output$reload_objs'
10144case $host_os in
10145 darwin*)
10146 if test "$GCC" = yes; then
10147 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10148 else
10149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10150 fi
10151 ;;
10152esac
10153
10154echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10155echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10156if test "${lt_cv_deplibs_check_method+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158else
10159 lt_cv_file_magic_cmd='$MAGIC_CMD'
10160lt_cv_file_magic_test_file=
10161lt_cv_deplibs_check_method='unknown'
10162# Need to set the preceding variable on all platforms that support
10163# interlibrary dependencies.
10164# 'none' -- dependencies not supported.
10165# `unknown' -- same as none, but documents that we really don't know.
10166# 'pass_all' -- all dependencies passed with no checks.
10167# 'test_compile' -- check by making test program.
10168# 'file_magic [[regex]]' -- check by looking for files in library path
10169# which responds to the $file_magic_cmd with a given extended regex.
10170# If you have `file' or equivalent on your system and you're not sure
10171# whether `pass_all' will *always* work, you probably want this one.
10172
10173case $host_os in
10174aix4* | aix5*)
10175 lt_cv_deplibs_check_method=pass_all
10176 ;;
10177
10178beos*)
10179 lt_cv_deplibs_check_method=pass_all
10180 ;;
10181
10182bsdi[45]*)
10183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10184 lt_cv_file_magic_cmd='/usr/bin/file -L'
10185 lt_cv_file_magic_test_file=/shlib/libc.so
10186 ;;
10187
10188cygwin*)
10189 # func_win32_libid is a shell function defined in ltmain.sh
10190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10191 lt_cv_file_magic_cmd='func_win32_libid'
10192 ;;
10193
10194mingw* | pw32*)
10195 # Base MSYS/MinGW do not provide the 'file' command needed by
10196 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10197 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10198 lt_cv_file_magic_cmd='$OBJDUMP -f'
10199 ;;
10200
10201darwin* | rhapsody*)
10202 lt_cv_deplibs_check_method=pass_all
10203 ;;
10204
10205freebsd* | kfreebsd*-gnu)
10206 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10207 case $host_cpu in
10208 i*86 )
10209 # Not sure whether the presence of OpenBSD here was a mistake.
10210 # Let's accept both of them until this is cleared up.
10211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10212 lt_cv_file_magic_cmd=/usr/bin/file
10213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10214 ;;
10215 esac
10216 else
10217 lt_cv_deplibs_check_method=pass_all
10218 fi
10219 ;;
10220
10221gnu*)
10222 lt_cv_deplibs_check_method=pass_all
10223 ;;
10224
10225hpux10.20* | hpux11*)
10226 lt_cv_file_magic_cmd=/usr/bin/file
10227 case "$host_cpu" in
10228 ia64*)
10229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10231 ;;
10232 hppa*64*)
10233 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]'
10234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10235 ;;
10236 *)
10237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10239 ;;
10240 esac
10241 ;;
10242
10243irix5* | irix6* | nonstopux*)
10244 case $LD in
10245 *-32|*"-32 ") libmagic=32-bit;;
10246 *-n32|*"-n32 ") libmagic=N32;;
10247 *-64|*"-64 ") libmagic=64-bit;;
10248 *) libmagic=never-match;;
10249 esac
10250 lt_cv_deplibs_check_method=pass_all
10251 ;;
10252
10253# This must be Linux ELF.
10254linux*)
10255 lt_cv_deplibs_check_method=pass_all
10256 ;;
10257
10258netbsd*)
10259 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10261 else
10262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10263 fi
10264 ;;
10265
10266newos6*)
10267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10268 lt_cv_file_magic_cmd=/usr/bin/file
10269 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10270 ;;
10271
10272nto-qnx*)
10273 lt_cv_deplibs_check_method=unknown
10274 ;;
10275
10276openbsd*)
10277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10279 else
10280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10281 fi
10282 ;;
10283
10284osf3* | osf4* | osf5*)
10285 lt_cv_deplibs_check_method=pass_all
10286 ;;
10287
10288sco3.2v5*)
10289 lt_cv_deplibs_check_method=pass_all
10290 ;;
10291
10292solaris*)
10293 lt_cv_deplibs_check_method=pass_all
10294 ;;
10295
10296sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10297 case $host_vendor in
10298 motorola)
10299 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]'
10300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10301 ;;
10302 ncr)
10303 lt_cv_deplibs_check_method=pass_all
10304 ;;
10305 sequent)
10306 lt_cv_file_magic_cmd='/bin/file'
10307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10308 ;;
10309 sni)
10310 lt_cv_file_magic_cmd='/bin/file'
10311 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10312 lt_cv_file_magic_test_file=/lib/libc.so
10313 ;;
10314 siemens)
10315 lt_cv_deplibs_check_method=pass_all
10316 ;;
10317 esac
10318 ;;
10319
10320sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10321 lt_cv_deplibs_check_method=pass_all
10322 ;;
10323esac
10324
10325fi
10326echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10327echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10328file_magic_cmd=$lt_cv_file_magic_cmd
10329deplibs_check_method=$lt_cv_deplibs_check_method
10330test -z "$deplibs_check_method" && deplibs_check_method=unknown
10331
10332
10333
10334# If no C compiler was specified, use CC.
10335LTCC=${LTCC-"$CC"}
10336
10337# Allow CC to be a program name with arguments.
10338compiler=$CC
10339
10340# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10341if test "${enable_libtool_lock+set}" = set; then
10342 enableval="$enable_libtool_lock"
10343
10344fi;
10345test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10346
10347# Some flags need to be propagated to the compiler or linker for good
10348# libtool support.
10349case $host in
10350ia64-*-hpux*)
10351 # Find out which ABI we are using.
10352 echo 'int i;' > conftest.$ac_ext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; then
10358 case `/usr/bin/file conftest.$ac_objext` in
10359 *ELF-32*)
10360 HPUX_IA64_MODE="32"
10361 ;;
10362 *ELF-64*)
10363 HPUX_IA64_MODE="64"
10364 ;;
10365 esac
10366 fi
10367 rm -rf conftest*
10368 ;;
10369*-*-irix6*)
10370 # Find out which ABI we are using.
Reid Spencer6e96d812005-12-21 03:31:53 +000010371 echo '#line 10371 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10373 (eval $ac_compile) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; then
10377 if test "$lt_cv_prog_gnu_ld" = yes; then
10378 case `/usr/bin/file conftest.$ac_objext` in
10379 *32-bit*)
10380 LD="${LD-ld} -melf32bsmip"
10381 ;;
10382 *N32*)
10383 LD="${LD-ld} -melf32bmipn32"
10384 ;;
10385 *64-bit*)
10386 LD="${LD-ld} -melf64bmip"
10387 ;;
10388 esac
10389 else
10390 case `/usr/bin/file conftest.$ac_objext` in
10391 *32-bit*)
10392 LD="${LD-ld} -32"
10393 ;;
10394 *N32*)
10395 LD="${LD-ld} -n32"
10396 ;;
10397 *64-bit*)
10398 LD="${LD-ld} -64"
10399 ;;
10400 esac
10401 fi
10402 fi
10403 rm -rf conftest*
10404 ;;
10405
10406x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10407 # Find out which ABI we are using.
10408 echo 'int i;' > conftest.$ac_ext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410 (eval $ac_compile) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; then
10414 case "`/usr/bin/file conftest.o`" in
10415 *32-bit*)
10416 case $host in
10417 x86_64-*linux*)
10418 LD="${LD-ld} -m elf_i386"
10419 ;;
10420 ppc64-*linux*|powerpc64-*linux*)
10421 LD="${LD-ld} -m elf32ppclinux"
10422 ;;
10423 s390x-*linux*)
10424 LD="${LD-ld} -m elf_s390"
10425 ;;
10426 sparc64-*linux*)
10427 LD="${LD-ld} -m elf32_sparc"
10428 ;;
10429 esac
10430 ;;
10431 *64-bit*)
10432 case $host in
10433 x86_64-*linux*)
10434 LD="${LD-ld} -m elf_x86_64"
10435 ;;
10436 ppc*-*linux*|powerpc*-*linux*)
10437 LD="${LD-ld} -m elf64ppc"
10438 ;;
10439 s390*-*linux*)
10440 LD="${LD-ld} -m elf64_s390"
10441 ;;
10442 sparc*-*linux*)
10443 LD="${LD-ld} -m elf64_sparc"
10444 ;;
10445 esac
10446 ;;
10447 esac
10448 fi
10449 rm -rf conftest*
10450 ;;
10451
10452*-*-sco3.2v5*)
10453 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10454 SAVE_CFLAGS="$CFLAGS"
10455 CFLAGS="$CFLAGS -belf"
10456 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10457echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10458if test "${lt_cv_cc_needs_belf+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460else
10461 ac_ext=c
10462ac_cpp='$CPP $CPPFLAGS'
10463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466
10467 cat >conftest.$ac_ext <<_ACEOF
10468/* confdefs.h. */
10469_ACEOF
10470cat confdefs.h >>conftest.$ac_ext
10471cat >>conftest.$ac_ext <<_ACEOF
10472/* end confdefs.h. */
10473
10474_ACEOF
10475rm -f conftest.$ac_objext conftest$ac_exeext
10476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -z "$ac_c_werror_flag"
10485 || test ! -s conftest.err'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; } &&
10491 { ac_try='test -s conftest$ac_exeext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 lt_cv_cc_needs_belf=yes
10498else
10499 echo "$as_me: failed program was:" >&5
10500sed 's/^/| /' conftest.$ac_ext >&5
10501
10502lt_cv_cc_needs_belf=no
10503fi
10504rm -f conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 ac_ext=c
10507ac_cpp='$CPP $CPPFLAGS'
10508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512fi
10513echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10514echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10515 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10516 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10517 CFLAGS="$SAVE_CFLAGS"
10518 fi
10519 ;;
10520
10521esac
10522
10523need_locks="$enable_libtool_lock"
10524
10525
Reid Spencer2706f8c2004-09-19 23:53:36 +000010526
10527
10528if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10529 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10530 (test "X$CXX" != "Xg++"))) ; then
10531 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010532ac_cpp='$CXXCPP $CPPFLAGS'
10533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10536echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10537echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10538if test -z "$CXXCPP"; then
10539 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541else
John Criswell47fdd832003-07-14 16:52:07 +000010542 # Double quotes because CXXCPP needs to be expanded
10543 for CXXCPP in "$CXX -E" "/lib/cpp"
10544 do
10545 ac_preproc_ok=false
10546for ac_cxx_preproc_warn_flag in '' yes
10547do
10548 # Use a header file that comes with gcc, so configuring glibc
10549 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010552 # On the NeXT, cc -E runs the code through the compiler's parser,
10553 # not just through cpp. "Syntax error" is here to catch this case.
10554 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010555/* confdefs.h. */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h. */
10560#ifdef __STDC__
10561# include <limits.h>
10562#else
10563# include <assert.h>
10564#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010565 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010566_ACEOF
10567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10569 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010570 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } >/dev/null; then
10575 if test -s conftest.err; then
10576 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010578 else
John Criswell47fdd832003-07-14 16:52:07 +000010579 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010580 fi
John Criswell47fdd832003-07-14 16:52:07 +000010581else
10582 ac_cpp_err=yes
10583fi
10584if test -z "$ac_cpp_err"; then
10585 :
10586else
10587 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010588sed 's/^/| /' conftest.$ac_ext >&5
10589
John Criswell47fdd832003-07-14 16:52:07 +000010590 # Broken: fails on valid input.
10591continue
10592fi
10593rm -f conftest.err conftest.$ac_ext
10594
10595 # OK, works on sane cases. Now check whether non-existent headers
10596 # can be detected and how.
10597 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010603#include <ac_nonexistent.h>
10604_ACEOF
10605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10607 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010608 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } >/dev/null; then
10613 if test -s conftest.err; then
10614 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010615 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010616 else
10617 ac_cpp_err=
10618 fi
10619else
10620 ac_cpp_err=yes
10621fi
10622if test -z "$ac_cpp_err"; then
10623 # Broken: success on invalid input.
10624continue
10625else
10626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010627sed 's/^/| /' conftest.$ac_ext >&5
10628
John Criswell47fdd832003-07-14 16:52:07 +000010629 # Passes both tests.
10630ac_preproc_ok=:
10631break
10632fi
10633rm -f conftest.err conftest.$ac_ext
10634
10635done
10636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10637rm -f conftest.err conftest.$ac_ext
10638if $ac_preproc_ok; then
10639 break
John Criswell7a73b802003-06-30 21:59:07 +000010640fi
10641
John Criswell47fdd832003-07-14 16:52:07 +000010642 done
10643 ac_cv_prog_CXXCPP=$CXXCPP
10644
10645fi
10646 CXXCPP=$ac_cv_prog_CXXCPP
10647else
10648 ac_cv_prog_CXXCPP=$CXXCPP
10649fi
10650echo "$as_me:$LINENO: result: $CXXCPP" >&5
10651echo "${ECHO_T}$CXXCPP" >&6
10652ac_preproc_ok=false
10653for ac_cxx_preproc_warn_flag in '' yes
10654do
10655 # Use a header file that comes with gcc, so configuring glibc
10656 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10658 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010659 # On the NeXT, cc -E runs the code through the compiler's parser,
10660 # not just through cpp. "Syntax error" is here to catch this case.
10661 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
10667#ifdef __STDC__
10668# include <limits.h>
10669#else
10670# include <assert.h>
10671#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010672 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010673_ACEOF
10674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10676 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010677 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } >/dev/null; then
10682 if test -s conftest.err; then
10683 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010684 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010685 else
10686 ac_cpp_err=
10687 fi
10688else
10689 ac_cpp_err=yes
10690fi
10691if test -z "$ac_cpp_err"; then
10692 :
10693else
10694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010695sed 's/^/| /' conftest.$ac_ext >&5
10696
John Criswell47fdd832003-07-14 16:52:07 +000010697 # Broken: fails on valid input.
10698continue
10699fi
10700rm -f conftest.err conftest.$ac_ext
10701
10702 # OK, works on sane cases. Now check whether non-existent headers
10703 # can be detected and how.
10704 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010705/* confdefs.h. */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010710#include <ac_nonexistent.h>
10711_ACEOF
10712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10714 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010715 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } >/dev/null; then
10720 if test -s conftest.err; then
10721 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010722 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010723 else
10724 ac_cpp_err=
10725 fi
10726else
10727 ac_cpp_err=yes
10728fi
10729if test -z "$ac_cpp_err"; then
10730 # Broken: success on invalid input.
10731continue
10732else
10733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010734sed 's/^/| /' conftest.$ac_ext >&5
10735
John Criswell47fdd832003-07-14 16:52:07 +000010736 # Passes both tests.
10737ac_preproc_ok=:
10738break
10739fi
10740rm -f conftest.err conftest.$ac_ext
10741
10742done
10743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10744rm -f conftest.err conftest.$ac_ext
10745if $ac_preproc_ok; then
10746 :
10747else
John Criswell0c38eaf2003-09-10 15:17:25 +000010748 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10749See \`config.log' for more details." >&5
10750echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10751See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010752 { (exit 1); exit 1; }; }
10753fi
10754
10755ac_ext=cc
10756ac_cpp='$CXXCPP $CPPFLAGS'
10757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10760
Reid Spencer2706f8c2004-09-19 23:53:36 +000010761fi
10762
John Criswell47fdd832003-07-14 16:52:07 +000010763
10764ac_ext=f
10765ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10766ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10768if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010769 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 +000010770 do
10771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10773echo "$as_me:$LINENO: checking for $ac_word" >&5
10774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10775if test "${ac_cv_prog_F77+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 if test -n "$F77"; then
10779 ac_cv_prog_F77="$F77" # Let the user override the test.
10780else
10781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782for as_dir in $PATH
10783do
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
10786 for ac_exec_ext in '' $ac_executable_extensions; do
10787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10790 break 2
10791 fi
10792done
10793done
10794
10795fi
10796fi
10797F77=$ac_cv_prog_F77
10798if test -n "$F77"; then
10799 echo "$as_me:$LINENO: result: $F77" >&5
10800echo "${ECHO_T}$F77" >&6
10801else
10802 echo "$as_me:$LINENO: result: no" >&5
10803echo "${ECHO_T}no" >&6
10804fi
10805
10806 test -n "$F77" && break
10807 done
10808fi
10809if test -z "$F77"; then
10810 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010811 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 +000010812do
10813 # Extract the first word of "$ac_prog", so it can be a program name with args.
10814set dummy $ac_prog; ac_word=$2
10815echo "$as_me:$LINENO: checking for $ac_word" >&5
10816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10817if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819else
10820 if test -n "$ac_ct_F77"; then
10821 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10822else
10823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH
10825do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_ac_ct_F77="$ac_prog"
10831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834done
10835done
10836
10837fi
10838fi
10839ac_ct_F77=$ac_cv_prog_ac_ct_F77
10840if test -n "$ac_ct_F77"; then
10841 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10842echo "${ECHO_T}$ac_ct_F77" >&6
10843else
10844 echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6
10846fi
10847
10848 test -n "$ac_ct_F77" && break
10849done
10850
10851 F77=$ac_ct_F77
10852fi
10853
10854
10855# Provide some information about the compiler.
Reid Spencer6e96d812005-12-21 03:31:53 +000010856echo "$as_me:10856:" \
John Criswell47fdd832003-07-14 16:52:07 +000010857 "checking for Fortran 77 compiler version" >&5
10858ac_compiler=`set X $ac_compile; echo $2`
10859{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10860 (eval $ac_compiler --version </dev/null >&5) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }
10864{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10865 (eval $ac_compiler -v </dev/null >&5) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }
10869{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10870 (eval $ac_compiler -V </dev/null >&5) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010874rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010875
10876# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010877# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010878ac_save_ext=$ac_ext
10879ac_ext=F
10880echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10881echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10882if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 cat >conftest.$ac_ext <<_ACEOF
10886 program main
10887#ifndef __GNUC__
10888 choke me
10889#endif
10890
10891 end
10892_ACEOF
10893rm -f conftest.$ac_objext
10894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010895 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010896 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010902 { ac_try='test -z "$ac_f77_werror_flag"
10903 || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_compiler_gnu=yes
10916else
10917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010918sed 's/^/| /' conftest.$ac_ext >&5
10919
John Criswell47fdd832003-07-14 16:52:07 +000010920ac_compiler_gnu=no
10921fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010923ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10924
10925fi
10926echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10927echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10928ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010929ac_test_FFLAGS=${FFLAGS+set}
10930ac_save_FFLAGS=$FFLAGS
10931FFLAGS=
10932echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10933echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10934if test "${ac_cv_prog_f77_g+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937 FFLAGS=-g
10938cat >conftest.$ac_ext <<_ACEOF
10939 program main
10940
10941 end
10942_ACEOF
10943rm -f conftest.$ac_objext
10944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010945 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010946 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010952 { ac_try='test -z "$ac_f77_werror_flag"
10953 || test ! -s conftest.err'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_cv_prog_f77_g=yes
10966else
10967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010968sed 's/^/| /' conftest.$ac_ext >&5
10969
John Criswell47fdd832003-07-14 16:52:07 +000010970ac_cv_prog_f77_g=no
10971fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010973
10974fi
10975echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10976echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10977if test "$ac_test_FFLAGS" = set; then
10978 FFLAGS=$ac_save_FFLAGS
10979elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010980 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010981 FFLAGS="-g -O2"
10982 else
10983 FFLAGS="-g"
10984 fi
10985else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010986 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010987 FFLAGS="-O2"
10988 else
10989 FFLAGS=
10990 fi
10991fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010992
10993G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010994ac_ext=c
10995ac_cpp='$CPP $CPPFLAGS'
10996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998ac_compiler_gnu=$ac_cv_c_compiler_gnu
10999
11000
11001
11002# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11003
11004# find the maximum length of command line arguments
11005echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11006echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11007if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009else
11010 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011011 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011012
11013 case $build_os in
11014 msdosdjgpp*)
11015 # On DJGPP, this test can blow up pretty badly due to problems in libc
11016 # (any single argument exceeding 2000 bytes causes a buffer overrun
11017 # during glob expansion). Even if it were fixed, the result of this
11018 # check would be larger than it should be.
11019 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11020 ;;
11021
11022 gnu*)
11023 # Under GNU Hurd, this test is not required because there is
11024 # no limit to the length of command line arguments.
11025 # Libtool will interpret -1 as no limit whatsoever
11026 lt_cv_sys_max_cmd_len=-1;
11027 ;;
11028
11029 cygwin* | mingw*)
11030 # On Win9x/ME, this test blows up -- it succeeds, but takes
11031 # about 5 minutes as the teststring grows exponentially.
11032 # Worse, since 9x/ME are not pre-emptively multitasking,
11033 # you end up with a "frozen" computer, even though with patience
11034 # the test eventually succeeds (with a max line length of 256k).
11035 # Instead, let's just punt: use the minimum linelength reported by
11036 # all of the supported platforms: 8192 (on NT/2K/XP).
11037 lt_cv_sys_max_cmd_len=8192;
11038 ;;
11039
Reid Spencer2706f8c2004-09-19 23:53:36 +000011040 amigaos*)
11041 # On AmigaOS with pdksh, this test takes hours, literally.
11042 # So we just punt and use a minimum line length of 8192.
11043 lt_cv_sys_max_cmd_len=8192;
11044 ;;
11045
11046 netbsd* | freebsd* | openbsd* | darwin* )
11047 # This has been around since 386BSD, at least. Likely further.
11048 if test -x /sbin/sysctl; then
11049 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11050 elif test -x /usr/sbin/sysctl; then
11051 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11052 else
11053 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11054 fi
11055 # And add a safety zone
11056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11057 ;;
11058
John Criswell47fdd832003-07-14 16:52:07 +000011059 *)
11060 # If test is not a shell built-in, we'll probably end up computing a
11061 # maximum length that is only half of the actual maximum length, but
11062 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011063 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11064 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11065 = "XX$teststring") >/dev/null 2>&1 &&
11066 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011067 lt_cv_sys_max_cmd_len=$new_result &&
11068 test $i != 17 # 1/2 MB should be enough
11069 do
11070 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011071 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011072 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011073 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011074 # Add a significant safety factor because C++ compilers can tack on massive
11075 # amounts of additional arguments before passing them to the linker.
11076 # It appears as though 1/2 is a usable value.
11077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11078 ;;
11079 esac
11080
11081fi
11082
11083if test -n $lt_cv_sys_max_cmd_len ; then
11084 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11085echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11086else
11087 echo "$as_me:$LINENO: result: none" >&5
11088echo "${ECHO_T}none" >&6
11089fi
11090
11091
11092
11093
11094# Check for command to grab the raw symbol name followed by C symbol from nm.
11095echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11096echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11097if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099else
11100
11101# These are sane defaults that work on at least a few old systems.
11102# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11103
11104# Character class describing NM global symbol codes.
11105symcode='[BCDEGRST]'
11106
11107# Regexp to match symbols that can be accessed directly from C.
11108sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11109
11110# Transform the above into a raw symbol and a C symbol.
11111symxfrm='\1 \2\3 \3'
11112
11113# Transform an extracted symbol line into a proper C declaration
11114lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11115
11116# Transform an extracted symbol line into symbol name and symbol address
11117lt_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'"
11118
11119# Define system-specific variables.
11120case $host_os in
11121aix*)
11122 symcode='[BCDT]'
11123 ;;
11124cygwin* | mingw* | pw32*)
11125 symcode='[ABCDGISTW]'
11126 ;;
11127hpux*) # Its linker distinguishes data from code symbols
11128 if test "$host_cpu" = ia64; then
11129 symcode='[ABCDEGRST]'
11130 fi
11131 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11132 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'"
11133 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011134linux*)
11135 if test "$host_cpu" = ia64; then
11136 symcode='[ABCDGIRSTW]'
11137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11138 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'"
11139 fi
11140 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011141irix* | nonstopux*)
11142 symcode='[BCDEGRST]'
11143 ;;
11144osf*)
11145 symcode='[BCDEGQRST]'
11146 ;;
11147solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011148 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011149 ;;
11150sysv4)
11151 symcode='[DFNSTU]'
11152 ;;
11153esac
11154
11155# Handle CRLF in mingw tool chain
11156opt_cr=
11157case $build_os in
11158mingw*)
11159 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11160 ;;
11161esac
11162
11163# If we're using GNU nm, then use its standard symbol codes.
11164case `$NM -V 2>&1` in
11165*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011166 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011167esac
11168
11169# Try without a prefix undercore, then with it.
11170for ac_symprfx in "" "_"; do
11171
11172 # Write the raw and C identifiers.
11173 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11174
11175 # Check to see that the pipe works correctly.
11176 pipe_works=no
11177
11178 rm -f conftest*
11179 cat > conftest.$ac_ext <<EOF
11180#ifdef __cplusplus
11181extern "C" {
11182#endif
11183char nm_test_var;
11184void nm_test_func(){}
11185#ifdef __cplusplus
11186}
11187#endif
11188int main(){nm_test_var='a';nm_test_func();return(0);}
11189EOF
11190
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; then
11196 # Now try to grab the symbols.
11197 nlist=conftest.nm
11198 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11199 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && test -s "$nlist"; then
11203 # Try sorting and uniquifying the output.
11204 if sort "$nlist" | uniq > "$nlist"T; then
11205 mv -f "$nlist"T "$nlist"
11206 else
11207 rm -f "$nlist"T
11208 fi
11209
11210 # Make sure that we snagged all the symbols we need.
11211 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11212 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11213 cat <<EOF > conftest.$ac_ext
11214#ifdef __cplusplus
11215extern "C" {
11216#endif
11217
11218EOF
11219 # Now generate the symbol file.
11220 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11221
11222 cat <<EOF >> conftest.$ac_ext
11223#if defined (__STDC__) && __STDC__
11224# define lt_ptr_t void *
11225#else
11226# define lt_ptr_t char *
11227# define const
11228#endif
11229
11230/* The mapping between symbol names and symbols. */
11231const struct {
11232 const char *name;
11233 lt_ptr_t address;
11234}
11235lt_preloaded_symbols[] =
11236{
11237EOF
11238 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11239 cat <<\EOF >> conftest.$ac_ext
11240 {0, (lt_ptr_t) 0}
11241};
11242
11243#ifdef __cplusplus
11244}
11245#endif
11246EOF
11247 # Now try linking the two files.
11248 mv conftest.$ac_objext conftstm.$ac_objext
11249 lt_save_LIBS="$LIBS"
11250 lt_save_CFLAGS="$CFLAGS"
11251 LIBS="conftstm.$ac_objext"
11252 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11258 pipe_works=yes
11259 fi
11260 LIBS="$lt_save_LIBS"
11261 CFLAGS="$lt_save_CFLAGS"
11262 else
11263 echo "cannot find nm_test_func in $nlist" >&5
11264 fi
11265 else
11266 echo "cannot find nm_test_var in $nlist" >&5
11267 fi
11268 else
11269 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11270 fi
11271 else
11272 echo "$progname: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 fi
11275 rm -f conftest* conftst*
11276
11277 # Do not use the global_symbol_pipe unless it works.
11278 if test "$pipe_works" = yes; then
11279 break
11280 else
11281 lt_cv_sys_global_symbol_pipe=
11282 fi
11283done
11284
11285fi
11286
11287if test -z "$lt_cv_sys_global_symbol_pipe"; then
11288 lt_cv_sys_global_symbol_to_cdecl=
11289fi
11290if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11291 echo "$as_me:$LINENO: result: failed" >&5
11292echo "${ECHO_T}failed" >&6
11293else
11294 echo "$as_me:$LINENO: result: ok" >&5
11295echo "${ECHO_T}ok" >&6
11296fi
11297
11298echo "$as_me:$LINENO: checking for objdir" >&5
11299echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11300if test "${lt_cv_objdir+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303 rm -f .libs 2>/dev/null
11304mkdir .libs 2>/dev/null
11305if test -d .libs; then
11306 lt_cv_objdir=.libs
11307else
11308 # MS-DOS does not allow filenames that begin with a dot.
11309 lt_cv_objdir=_libs
11310fi
11311rmdir .libs 2>/dev/null
11312fi
11313echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11314echo "${ECHO_T}$lt_cv_objdir" >&6
11315objdir=$lt_cv_objdir
11316
11317
11318
11319
11320
11321case $host_os in
11322aix3*)
11323 # AIX sometimes has problems with the GCC collect2 program. For some
11324 # reason, if we set the COLLECT_NAMES environment variable, the problems
11325 # vanish in a puff of smoke.
11326 if test "X${COLLECT_NAMES+set}" != Xset; then
11327 COLLECT_NAMES=
11328 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011329 fi
11330 ;;
11331esac
11332
John Criswell47fdd832003-07-14 16:52:07 +000011333# Sed substitution that helps us do robust quoting. It backslashifies
11334# metacharacters that are still active within double-quoted strings.
11335Xsed='sed -e s/^X//'
11336sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11337
11338# Same as above, but do not quote variable references.
11339double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11340
11341# Sed substitution to delay expansion of an escaped shell variable in a
11342# double_quote_subst'ed string.
11343delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11344
11345# Sed substitution to avoid accidental globbing in evaled expressions
11346no_glob_subst='s/\*/\\\*/g'
11347
11348# Constants:
11349rm="rm -f"
11350
11351# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011352default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011353can_build_shared=yes
11354
11355# All known linkers require a `.a' archive for static linking (except M$VC,
11356# which needs '.lib').
11357libext=a
11358ltmain="$ac_aux_dir/ltmain.sh"
11359ofile="$default_ofile"
11360with_gnu_ld="$lt_cv_prog_gnu_ld"
11361
11362if test -n "$ac_tool_prefix"; then
11363 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11364set dummy ${ac_tool_prefix}ar; ac_word=$2
11365echo "$as_me:$LINENO: checking for $ac_word" >&5
11366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367if test "${ac_cv_prog_AR+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370 if test -n "$AR"; then
11371 ac_cv_prog_AR="$AR" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_AR="${ac_tool_prefix}ar"
11381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385done
11386
11387fi
11388fi
11389AR=$ac_cv_prog_AR
11390if test -n "$AR"; then
11391 echo "$as_me:$LINENO: result: $AR" >&5
11392echo "${ECHO_T}$AR" >&6
11393else
11394 echo "$as_me:$LINENO: result: no" >&5
11395echo "${ECHO_T}no" >&6
11396fi
11397
11398fi
11399if test -z "$ac_cv_prog_AR"; then
11400 ac_ct_AR=$AR
11401 # Extract the first word of "ar", so it can be a program name with args.
11402set dummy ar; ac_word=$2
11403echo "$as_me:$LINENO: checking for $ac_word" >&5
11404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11405if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407else
11408 if test -n "$ac_ct_AR"; then
11409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11410else
11411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412for as_dir in $PATH
11413do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418 ac_cv_prog_ac_ct_AR="ar"
11419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11421 fi
11422done
11423done
11424
11425 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11426fi
11427fi
11428ac_ct_AR=$ac_cv_prog_ac_ct_AR
11429if test -n "$ac_ct_AR"; then
11430 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11431echo "${ECHO_T}$ac_ct_AR" >&6
11432else
11433 echo "$as_me:$LINENO: result: no" >&5
11434echo "${ECHO_T}no" >&6
11435fi
11436
11437 AR=$ac_ct_AR
11438else
11439 AR="$ac_cv_prog_AR"
11440fi
11441
John Criswell7a73b802003-06-30 21:59:07 +000011442if test -n "$ac_tool_prefix"; then
11443 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11444set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11445echo "$as_me:$LINENO: checking for $ac_word" >&5
11446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11447if test "${ac_cv_prog_RANLIB+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449else
11450 if test -n "$RANLIB"; then
11451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11452else
11453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454for as_dir in $PATH
11455do
11456 IFS=$as_save_IFS
11457 test -z "$as_dir" && as_dir=.
11458 for ac_exec_ext in '' $ac_executable_extensions; do
11459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11462 break 2
11463 fi
11464done
11465done
11466
11467fi
11468fi
11469RANLIB=$ac_cv_prog_RANLIB
11470if test -n "$RANLIB"; then
11471 echo "$as_me:$LINENO: result: $RANLIB" >&5
11472echo "${ECHO_T}$RANLIB" >&6
11473else
11474 echo "$as_me:$LINENO: result: no" >&5
11475echo "${ECHO_T}no" >&6
11476fi
11477
11478fi
11479if test -z "$ac_cv_prog_RANLIB"; then
11480 ac_ct_RANLIB=$RANLIB
11481 # Extract the first word of "ranlib", so it can be a program name with args.
11482set dummy ranlib; ac_word=$2
11483echo "$as_me:$LINENO: checking for $ac_word" >&5
11484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11485if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487else
11488 if test -n "$ac_ct_RANLIB"; then
11489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11490else
11491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492for as_dir in $PATH
11493do
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498 ac_cv_prog_ac_ct_RANLIB="ranlib"
11499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11501 fi
11502done
11503done
11504
11505 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11506fi
11507fi
11508ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11509if test -n "$ac_ct_RANLIB"; then
11510 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11511echo "${ECHO_T}$ac_ct_RANLIB" >&6
11512else
11513 echo "$as_me:$LINENO: result: no" >&5
11514echo "${ECHO_T}no" >&6
11515fi
11516
11517 RANLIB=$ac_ct_RANLIB
11518else
11519 RANLIB="$ac_cv_prog_RANLIB"
11520fi
11521
11522if test -n "$ac_tool_prefix"; then
11523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11524set dummy ${ac_tool_prefix}strip; ac_word=$2
11525echo "$as_me:$LINENO: checking for $ac_word" >&5
11526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11527if test "${ac_cv_prog_STRIP+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529else
11530 if test -n "$STRIP"; then
11531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11532else
11533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534for as_dir in $PATH
11535do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544done
11545done
11546
11547fi
11548fi
11549STRIP=$ac_cv_prog_STRIP
11550if test -n "$STRIP"; then
11551 echo "$as_me:$LINENO: result: $STRIP" >&5
11552echo "${ECHO_T}$STRIP" >&6
11553else
11554 echo "$as_me:$LINENO: result: no" >&5
11555echo "${ECHO_T}no" >&6
11556fi
11557
11558fi
11559if test -z "$ac_cv_prog_STRIP"; then
11560 ac_ct_STRIP=$STRIP
11561 # Extract the first word of "strip", so it can be a program name with args.
11562set dummy strip; ac_word=$2
11563echo "$as_me:$LINENO: checking for $ac_word" >&5
11564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568 if test -n "$ac_ct_STRIP"; then
11569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11570else
11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_prog_ac_ct_STRIP="strip"
11579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582done
11583done
11584
11585 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11586fi
11587fi
11588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11589if test -n "$ac_ct_STRIP"; then
11590 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11591echo "${ECHO_T}$ac_ct_STRIP" >&6
11592else
11593 echo "$as_me:$LINENO: result: no" >&5
11594echo "${ECHO_T}no" >&6
11595fi
11596
11597 STRIP=$ac_ct_STRIP
11598else
11599 STRIP="$ac_cv_prog_STRIP"
11600fi
11601
11602
John Criswell7a73b802003-06-30 21:59:07 +000011603old_CC="$CC"
11604old_CFLAGS="$CFLAGS"
11605
11606# Set sane defaults for various variables
11607test -z "$AR" && AR=ar
11608test -z "$AR_FLAGS" && AR_FLAGS=cru
11609test -z "$AS" && AS=as
11610test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011611test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011612test -z "$DLLTOOL" && DLLTOOL=dlltool
11613test -z "$LD" && LD=ld
11614test -z "$LN_S" && LN_S="ln -s"
11615test -z "$MAGIC_CMD" && MAGIC_CMD=file
11616test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011617test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011618test -z "$OBJDUMP" && OBJDUMP=objdump
11619test -z "$RANLIB" && RANLIB=:
11620test -z "$STRIP" && STRIP=:
11621test -z "$ac_objext" && ac_objext=o
11622
John Criswell7a73b802003-06-30 21:59:07 +000011623# Determine commands to create old-style static archives.
11624old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11625old_postinstall_cmds='chmod 644 $oldlib'
11626old_postuninstall_cmds=
11627
11628if test -n "$RANLIB"; then
11629 case $host_os in
11630 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011631 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011632 ;;
11633 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011634 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011635 ;;
11636 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011637 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011638fi
11639
Reid Spencer2706f8c2004-09-19 23:53:36 +000011640cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11641
John Criswell47fdd832003-07-14 16:52:07 +000011642# Only perform the check for file, if the check method requires it
11643case $deplibs_check_method in
11644file_magic*)
11645 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11646 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11647echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11648if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011650else
John Criswell47fdd832003-07-14 16:52:07 +000011651 case $MAGIC_CMD in
11652[\\/*] | ?:[\\/]*)
11653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11654 ;;
11655*)
11656 lt_save_MAGIC_CMD="$MAGIC_CMD"
11657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11659 for ac_dir in $ac_dummy; do
11660 IFS="$lt_save_ifs"
11661 test -z "$ac_dir" && ac_dir=.
11662 if test -f $ac_dir/${ac_tool_prefix}file; then
11663 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11664 if test -n "$file_magic_test_file"; then
11665 case $deplibs_check_method in
11666 "file_magic "*)
11667 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11670 $EGREP "$file_magic_regex" > /dev/null; then
11671 :
11672 else
11673 cat <<EOF 1>&2
11674
11675*** Warning: the command libtool uses to detect shared libraries,
11676*** $file_magic_cmd, produces output that libtool cannot recognize.
11677*** The result is that libtool may fail to recognize shared libraries
11678*** as such. This will affect the creation of libtool libraries that
11679*** depend on shared libraries, but programs linked with such libtool
11680*** libraries will work regardless of this problem. Nevertheless, you
11681*** may want to report the problem to your system manager and/or to
11682*** bug-libtool@gnu.org
11683
11684EOF
11685 fi ;;
11686 esac
11687 fi
11688 break
11689 fi
11690 done
11691 IFS="$lt_save_ifs"
11692 MAGIC_CMD="$lt_save_MAGIC_CMD"
11693 ;;
11694esac
John Criswell7a73b802003-06-30 21:59:07 +000011695fi
John Criswell7a73b802003-06-30 21:59:07 +000011696
John Criswell47fdd832003-07-14 16:52:07 +000011697MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11698if test -n "$MAGIC_CMD"; then
11699 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11700echo "${ECHO_T}$MAGIC_CMD" >&6
11701else
11702 echo "$as_me:$LINENO: result: no" >&5
11703echo "${ECHO_T}no" >&6
11704fi
John Criswell7a73b802003-06-30 21:59:07 +000011705
John Criswell47fdd832003-07-14 16:52:07 +000011706if test -z "$lt_cv_path_MAGIC_CMD"; then
11707 if test -n "$ac_tool_prefix"; then
11708 echo "$as_me:$LINENO: checking for file" >&5
11709echo $ECHO_N "checking for file... $ECHO_C" >&6
11710if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712else
11713 case $MAGIC_CMD in
11714[\\/*] | ?:[\\/]*)
11715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11716 ;;
11717*)
11718 lt_save_MAGIC_CMD="$MAGIC_CMD"
11719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11721 for ac_dir in $ac_dummy; do
11722 IFS="$lt_save_ifs"
11723 test -z "$ac_dir" && ac_dir=.
11724 if test -f $ac_dir/file; then
11725 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11726 if test -n "$file_magic_test_file"; then
11727 case $deplibs_check_method in
11728 "file_magic "*)
11729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11732 $EGREP "$file_magic_regex" > /dev/null; then
11733 :
11734 else
11735 cat <<EOF 1>&2
11736
11737*** Warning: the command libtool uses to detect shared libraries,
11738*** $file_magic_cmd, produces output that libtool cannot recognize.
11739*** The result is that libtool may fail to recognize shared libraries
11740*** as such. This will affect the creation of libtool libraries that
11741*** depend on shared libraries, but programs linked with such libtool
11742*** libraries will work regardless of this problem. Nevertheless, you
11743*** may want to report the problem to your system manager and/or to
11744*** bug-libtool@gnu.org
11745
11746EOF
11747 fi ;;
11748 esac
11749 fi
11750 break
11751 fi
11752 done
11753 IFS="$lt_save_ifs"
11754 MAGIC_CMD="$lt_save_MAGIC_CMD"
11755 ;;
11756esac
11757fi
11758
11759MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760if test -n "$MAGIC_CMD"; then
11761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11762echo "${ECHO_T}$MAGIC_CMD" >&6
11763else
11764 echo "$as_me:$LINENO: result: no" >&5
11765echo "${ECHO_T}no" >&6
11766fi
11767
11768 else
11769 MAGIC_CMD=:
11770 fi
11771fi
11772
11773 fi
11774 ;;
11775esac
11776
Reid Spencer17795972004-11-18 09:47:37 +000011777enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011778enable_win32_dll=no
11779
11780# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11781if test "${enable_libtool_lock+set}" = set; then
11782 enableval="$enable_libtool_lock"
11783
11784fi;
11785test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11786
John Criswell7a73b802003-06-30 21:59:07 +000011787
11788# Check whether --with-pic or --without-pic was given.
11789if test "${with_pic+set}" = set; then
11790 withval="$with_pic"
11791 pic_mode="$withval"
11792else
11793 pic_mode=default
11794fi;
11795test -z "$pic_mode" && pic_mode=default
11796
John Criswell47fdd832003-07-14 16:52:07 +000011797# Use C for the default configuration in the libtool script
11798tagname=
11799lt_save_CC="$CC"
11800ac_ext=c
11801ac_cpp='$CPP $CPPFLAGS'
11802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11804ac_compiler_gnu=$ac_cv_c_compiler_gnu
11805
11806
11807# Source file extension for C test sources.
11808ac_ext=c
11809
11810# Object file extension for compiled C test sources.
11811objext=o
11812objext=$objext
11813
11814# Code to be used in simple compile tests
11815lt_simple_compile_test_code="int some_variable = 0;\n"
11816
11817# Code to be used in simple link tests
11818lt_simple_link_test_code='int main(){return(0);}\n'
11819
11820
11821# If no C compiler was specified, use CC.
11822LTCC=${LTCC-"$CC"}
11823
11824# Allow CC to be a program name with arguments.
11825compiler=$CC
11826
11827
11828#
11829# Check for any special shared library compilation flags.
11830#
11831lt_prog_cc_shlib=
11832if test "$GCC" = no; then
11833 case $host_os in
11834 sco3.2v5*)
11835 lt_prog_cc_shlib='-belf'
11836 ;;
11837 esac
11838fi
11839if test -n "$lt_prog_cc_shlib"; then
11840 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11841echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11842 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11843 else
11844 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11845echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11846 lt_cv_prog_cc_can_build_shared=no
11847 fi
11848fi
11849
11850
11851#
11852# Check to make sure the static flag actually works.
11853#
11854echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11855echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11856if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858else
John Criswell47fdd832003-07-14 16:52:07 +000011859 lt_prog_compiler_static_works=no
11860 save_LDFLAGS="$LDFLAGS"
11861 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11862 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11864 # The compiler can only warn and ignore the option if not recognized
11865 # So say no if there are warnings
11866 if test -s conftest.err; then
11867 # Append any errors to the config.log.
11868 cat conftest.err 1>&5
11869 else
11870 lt_prog_compiler_static_works=yes
11871 fi
11872 fi
11873 $rm conftest*
11874 LDFLAGS="$save_LDFLAGS"
11875
11876fi
11877echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11878echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11879
11880if test x"$lt_prog_compiler_static_works" = xyes; then
11881 :
11882else
11883 lt_prog_compiler_static=
11884fi
11885
11886
11887
John Criswell47fdd832003-07-14 16:52:07 +000011888
11889lt_prog_compiler_no_builtin_flag=
11890
11891if test "$GCC" = yes; then
11892 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11893
Reid Spencer2706f8c2004-09-19 23:53:36 +000011894
11895echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011896echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11897if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 lt_cv_prog_compiler_rtti_exceptions=no
11901 ac_outfile=conftest.$ac_objext
11902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11903 lt_compiler_flag="-fno-rtti -fno-exceptions"
11904 # Insert the option either (1) after the last *FLAGS variable, or
11905 # (2) before a word containing "conftest.", or (3) at the end.
11906 # Note that $ac_compile itself does not contain backslashes and begins
11907 # with a dollar sign (not a hyphen), so the echo should work correctly.
11908 # The option is referenced via a variable to avoid confusing sed.
11909 lt_compile=`echo "$ac_compile" | $SED \
11910 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11912 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000011913 (eval echo "\"\$as_me:11913: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011914 (eval "$lt_compile" 2>conftest.err)
11915 ac_status=$?
11916 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000011917 echo "$as_me:11917: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011918 if (exit $ac_status) && test -s "$ac_outfile"; then
11919 # The compiler can only warn and ignore the option if not recognized
11920 # So say no if there are warnings
11921 if test ! -s conftest.err; then
11922 lt_cv_prog_compiler_rtti_exceptions=yes
11923 fi
11924 fi
11925 $rm conftest*
11926
11927fi
11928echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11929echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11930
11931if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11932 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11933else
11934 :
11935fi
11936
11937fi
11938
11939lt_prog_compiler_wl=
11940lt_prog_compiler_pic=
11941lt_prog_compiler_static=
11942
11943echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11944echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011945
11946 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011947 lt_prog_compiler_wl='-Wl,'
11948 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011949
11950 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011951 aix*)
11952 # All AIX code is PIC.
11953 if test "$host_cpu" = ia64; then
11954 # AIX 5 now supports IA64 processor
11955 lt_prog_compiler_static='-Bstatic'
11956 fi
John Criswell7a73b802003-06-30 21:59:07 +000011957 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011958
John Criswell7a73b802003-06-30 21:59:07 +000011959 amigaos*)
11960 # FIXME: we need at least 68020 code to build shared libraries, but
11961 # adding the `-m68020' flag to GCC prevents building anything better,
11962 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011963 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011964 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011965
11966 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011967 # PIC is the default for these OSes.
11968 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011969
11970 mingw* | pw32* | os2*)
11971 # This hack is so that the source file can tell whether it is being
11972 # built for inclusion in a dll (and should export symbols for example).
11973 lt_prog_compiler_pic='-DDLL_EXPORT'
11974 ;;
11975
John Criswell7a73b802003-06-30 21:59:07 +000011976 darwin* | rhapsody*)
11977 # PIC is the default on this platform
11978 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011979 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011980 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011981
11982 msdosdjgpp*)
11983 # Just because we use GCC doesn't mean we suddenly get shared libraries
11984 # on systems that don't support them.
11985 lt_prog_compiler_can_build_shared=no
11986 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011987 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011988
John Criswell7a73b802003-06-30 21:59:07 +000011989 sysv4*MP*)
11990 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011991 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011992 fi
11993 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011994
11995 hpux*)
11996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11997 # not for PA HP-UX.
11998 case "$host_cpu" in
11999 hppa*64*|ia64*)
12000 # +Z the default
12001 ;;
12002 *)
12003 lt_prog_compiler_pic='-fPIC'
12004 ;;
12005 esac
12006 ;;
12007
John Criswell7a73b802003-06-30 21:59:07 +000012008 *)
John Criswell47fdd832003-07-14 16:52:07 +000012009 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012010 ;;
12011 esac
12012 else
John Criswell47fdd832003-07-14 16:52:07 +000012013 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012014 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012015 aix*)
12016 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012017 if test "$host_cpu" = ia64; then
12018 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012019 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012020 else
John Criswell47fdd832003-07-14 16:52:07 +000012021 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012022 fi
12023 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012024 darwin*)
12025 # PIC is the default on this platform
12026 # Common symbols not allowed in MH_DYLIB files
12027 case "$cc_basename" in
12028 xlc*)
12029 lt_prog_compiler_pic='-qnocommon'
12030 lt_prog_compiler_wl='-Wl,'
12031 ;;
12032 esac
12033 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012034
John Criswell47fdd832003-07-14 16:52:07 +000012035 mingw* | pw32* | os2*)
12036 # This hack is so that the source file can tell whether it is being
12037 # built for inclusion in a dll (and should export symbols for example).
12038 lt_prog_compiler_pic='-DDLL_EXPORT'
12039 ;;
12040
John Criswell7a73b802003-06-30 21:59:07 +000012041 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012042 lt_prog_compiler_wl='-Wl,'
12043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12044 # not for PA HP-UX.
12045 case "$host_cpu" in
12046 hppa*64*|ia64*)
12047 # +Z the default
12048 ;;
12049 *)
12050 lt_prog_compiler_pic='+Z'
12051 ;;
12052 esac
12053 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12054 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012055 ;;
12056
John Criswell47fdd832003-07-14 16:52:07 +000012057 irix5* | irix6* | nonstopux*)
12058 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012059 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012060 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012061 ;;
12062
12063 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012064 lt_prog_compiler_pic='-KPIC'
12065 lt_prog_compiler_static='-Bstatic'
12066 ;;
12067
12068 linux*)
12069 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012070 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012071 lt_prog_compiler_wl='-Wl,'
12072 lt_prog_compiler_pic='-KPIC'
12073 lt_prog_compiler_static='-static'
12074 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012075 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012076 lt_prog_compiler_wl='-Wl,'
12077 # All Alpha code is PIC.
12078 lt_prog_compiler_static='-non_shared'
12079 ;;
12080 esac
John Criswell7a73b802003-06-30 21:59:07 +000012081 ;;
12082
12083 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012084 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012085 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012086 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012087 ;;
12088
12089 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012090 lt_prog_compiler_pic='-Kpic'
12091 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012092 ;;
12093
12094 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012095 lt_prog_compiler_wl='-Wl,'
12096 lt_prog_compiler_pic='-KPIC'
12097 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012098 ;;
12099
12100 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012101 lt_prog_compiler_wl='-Qoption ld '
12102 lt_prog_compiler_pic='-PIC'
12103 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012104 ;;
12105
12106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012107 lt_prog_compiler_wl='-Wl,'
12108 lt_prog_compiler_pic='-KPIC'
12109 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012110 ;;
12111
12112 sysv4*MP*)
12113 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012114 lt_prog_compiler_pic='-Kconform_pic'
12115 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012116 fi
12117 ;;
12118
John Criswell47fdd832003-07-14 16:52:07 +000012119 uts4*)
12120 lt_prog_compiler_pic='-pic'
12121 lt_prog_compiler_static='-Bstatic'
12122 ;;
12123
John Criswell7a73b802003-06-30 21:59:07 +000012124 *)
John Criswell47fdd832003-07-14 16:52:07 +000012125 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012126 ;;
12127 esac
12128 fi
12129
John Criswell47fdd832003-07-14 16:52:07 +000012130echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12131echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012132
John Criswell47fdd832003-07-14 16:52:07 +000012133#
12134# Check to make sure the PIC flag actually works.
12135#
12136if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012137
12138echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012139echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12140if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
John Criswell47fdd832003-07-14 16:52:07 +000012143 lt_prog_compiler_pic_works=no
12144 ac_outfile=conftest.$ac_objext
12145 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12146 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12147 # Insert the option either (1) after the last *FLAGS variable, or
12148 # (2) before a word containing "conftest.", or (3) at the end.
12149 # Note that $ac_compile itself does not contain backslashes and begins
12150 # with a dollar sign (not a hyphen), so the echo should work correctly.
12151 # The option is referenced via a variable to avoid confusing sed.
12152 lt_compile=`echo "$ac_compile" | $SED \
12153 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12155 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000012156 (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012157 (eval "$lt_compile" 2>conftest.err)
12158 ac_status=$?
12159 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000012160 echo "$as_me:12160: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012161 if (exit $ac_status) && test -s "$ac_outfile"; then
12162 # The compiler can only warn and ignore the option if not recognized
12163 # So say no if there are warnings
12164 if test ! -s conftest.err; then
12165 lt_prog_compiler_pic_works=yes
12166 fi
12167 fi
12168 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012169
John Criswell47fdd832003-07-14 16:52:07 +000012170fi
12171echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12172echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012173
John Criswell47fdd832003-07-14 16:52:07 +000012174if test x"$lt_prog_compiler_pic_works" = xyes; then
12175 case $lt_prog_compiler_pic in
12176 "" | " "*) ;;
12177 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12178 esac
John Criswell7a73b802003-06-30 21:59:07 +000012179else
John Criswell47fdd832003-07-14 16:52:07 +000012180 lt_prog_compiler_pic=
12181 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012182fi
12183
John Criswell7a73b802003-06-30 21:59:07 +000012184fi
John Criswell47fdd832003-07-14 16:52:07 +000012185case "$host_os" in
12186 # For platforms which do not support PIC, -DPIC is meaningless:
12187 *djgpp*)
12188 lt_prog_compiler_pic=
12189 ;;
12190 *)
12191 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12192 ;;
12193esac
John Criswell7a73b802003-06-30 21:59:07 +000012194
John Criswell7a73b802003-06-30 21:59:07 +000012195echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12196echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012197if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012198 echo $ECHO_N "(cached) $ECHO_C" >&6
12199else
John Criswell47fdd832003-07-14 16:52:07 +000012200 lt_cv_prog_compiler_c_o=no
12201 $rm -r conftest 2>/dev/null
12202 mkdir conftest
12203 cd conftest
12204 mkdir out
12205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012206
John Criswell47fdd832003-07-14 16:52:07 +000012207 lt_compiler_flag="-o out/conftest2.$ac_objext"
12208 # Insert the option either (1) after the last *FLAGS variable, or
12209 # (2) before a word containing "conftest.", or (3) at the end.
12210 # Note that $ac_compile itself does not contain backslashes and begins
12211 # with a dollar sign (not a hyphen), so the echo should work correctly.
12212 lt_compile=`echo "$ac_compile" | $SED \
12213 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12215 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000012216 (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012217 (eval "$lt_compile" 2>out/conftest.err)
12218 ac_status=$?
12219 cat out/conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000012220 echo "$as_me:12220: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12222 then
12223 # The compiler can only warn and ignore the option if not recognized
12224 # So say no if there are warnings
12225 if test ! -s out/conftest.err; then
12226 lt_cv_prog_compiler_c_o=yes
12227 fi
12228 fi
12229 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012230 $rm conftest*
12231 # SGI C++ compiler will create directory out/ii_files/ for
12232 # template instantiation
12233 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12234 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012235 cd ..
12236 rmdir conftest
12237 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012238
12239fi
John Criswell47fdd832003-07-14 16:52:07 +000012240echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12241echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012242
John Criswell7a73b802003-06-30 21:59:07 +000012243
John Criswell7a73b802003-06-30 21:59:07 +000012244hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012245if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012246 # do not overwrite the value of need_locks provided by the user
12247 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12248echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12249 hard_links=yes
12250 $rm conftest*
12251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12252 touch conftest.a
12253 ln conftest.a conftest.b 2>&5 || hard_links=no
12254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12255 echo "$as_me:$LINENO: result: $hard_links" >&5
12256echo "${ECHO_T}$hard_links" >&6
12257 if test "$hard_links" = no; then
12258 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12259echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12260 need_locks=warn
12261 fi
12262else
12263 need_locks=no
12264fi
John Criswell7a73b802003-06-30 21:59:07 +000012265
John Criswell47fdd832003-07-14 16:52:07 +000012266echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12267echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12268
12269 runpath_var=
12270 allow_undefined_flag=
12271 enable_shared_with_static_runtimes=no
12272 archive_cmds=
12273 archive_expsym_cmds=
12274 old_archive_From_new_cmds=
12275 old_archive_from_expsyms_cmds=
12276 export_dynamic_flag_spec=
12277 whole_archive_flag_spec=
12278 thread_safe_flag_spec=
12279 hardcode_libdir_flag_spec=
12280 hardcode_libdir_flag_spec_ld=
12281 hardcode_libdir_separator=
12282 hardcode_direct=no
12283 hardcode_minus_L=no
12284 hardcode_shlibpath_var=unsupported
12285 link_all_deplibs=unknown
12286 hardcode_automatic=no
12287 module_cmds=
12288 module_expsym_cmds=
12289 always_export_symbols=no
12290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12291 # include_expsyms should be a list of space-separated symbols to be *always*
12292 # included in the symbol list
12293 include_expsyms=
12294 # exclude_expsyms can be an extended regexp of symbols to exclude
12295 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12296 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12297 # as well as any symbol that contains `d'.
12298 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12299 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12300 # platforms (ab)use it in PIC code, but their linkers get confused if
12301 # the symbol is explicitly referenced. Since portable code cannot
12302 # rely on this symbol name, it's probably fine to never include it in
12303 # preloaded symbol tables.
12304 extract_expsyms_cmds=
12305
12306 case $host_os in
12307 cygwin* | mingw* | pw32*)
12308 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12309 # When not using gcc, we currently assume that we are using
12310 # Microsoft Visual C++.
12311 if test "$GCC" != yes; then
12312 with_gnu_ld=no
12313 fi
12314 ;;
12315 openbsd*)
12316 with_gnu_ld=no
12317 ;;
12318 esac
12319
12320 ld_shlibs=yes
12321 if test "$with_gnu_ld" = yes; then
12322 # If archive_cmds runs LD, not CC, wlarc should be empty
12323 wlarc='${wl}'
12324
12325 # See if GNU ld supports shared libraries.
12326 case $host_os in
12327 aix3* | aix4* | aix5*)
12328 # On AIX/PPC, the GNU linker is very broken
12329 if test "$host_cpu" != ia64; then
12330 ld_shlibs=no
12331 cat <<EOF 1>&2
12332
12333*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12334*** to be unable to reliably create shared libraries on AIX.
12335*** Therefore, libtool is disabling shared libraries support. If you
12336*** really care for shared libraries, you may want to modify your PATH
12337*** so that a non-GNU linker is found, and then restart.
12338
12339EOF
12340 fi
12341 ;;
12342
12343 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012344 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 +000012345 hardcode_libdir_flag_spec='-L$libdir'
12346 hardcode_minus_L=yes
12347
12348 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12349 # that the semantics of dynamic libraries on AmigaOS, at least up
12350 # to version 4, is to share data among multiple programs linked
12351 # with the same dynamic library. Since this doesn't match the
12352 # behavior of shared libraries on other platforms, we can't use
12353 # them.
12354 ld_shlibs=no
12355 ;;
12356
12357 beos*)
12358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12359 allow_undefined_flag=unsupported
12360 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12361 # support --undefined. This deserves some investigation. FIXME
12362 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363 else
12364 ld_shlibs=no
12365 fi
12366 ;;
12367
12368 cygwin* | mingw* | pw32*)
12369 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12370 # as there is no search path for DLLs.
12371 hardcode_libdir_flag_spec='-L$libdir'
12372 allow_undefined_flag=unsupported
12373 always_export_symbols=no
12374 enable_shared_with_static_runtimes=yes
12375 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12376
12377 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12379 # If the export-symbols file already is a .def file (1st line
12380 # is EXPORTS), use it as is; otherwise, prepend...
12381 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12382 cp $export_symbols $output_objdir/$soname.def;
12383 else
12384 echo EXPORTS > $output_objdir/$soname.def;
12385 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012386 fi~
12387 $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 +000012388 else
12389 ld_shlibs=no
12390 fi
12391 ;;
12392
12393 netbsd*)
12394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12395 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12396 wlarc=
12397 else
12398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12400 fi
12401 ;;
12402
12403 solaris* | sysv5*)
12404 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12405 ld_shlibs=no
12406 cat <<EOF 1>&2
12407
12408*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12409*** create shared libraries on Solaris systems. Therefore, libtool
12410*** is disabling shared libraries support. We urge you to upgrade GNU
12411*** binutils to release 2.9.1 or newer. Another option is to modify
12412*** your PATH or compiler configuration so that the native linker is
12413*** used, and then restart.
12414
12415EOF
12416 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12419 else
12420 ld_shlibs=no
12421 fi
12422 ;;
12423
12424 sunos4*)
12425 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12426 wlarc=
12427 hardcode_direct=yes
12428 hardcode_shlibpath_var=no
12429 ;;
12430
Reid Spencer2706f8c2004-09-19 23:53:36 +000012431 linux*)
12432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12433 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12434 archive_cmds="$tmp_archive_cmds"
12435 supports_anon_versioning=no
12436 case `$LD -v 2>/dev/null` in
12437 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12440 *\ 2.11.*) ;; # other 2.11 versions
12441 *) supports_anon_versioning=yes ;;
12442 esac
12443 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012444 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12445cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12446$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012447 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12448 else
12449 archive_expsym_cmds="$tmp_archive_cmds"
12450 fi
12451 else
12452 ld_shlibs=no
12453 fi
12454 ;;
12455
John Criswell47fdd832003-07-14 16:52:07 +000012456 *)
12457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12460 else
12461 ld_shlibs=no
12462 fi
12463 ;;
12464 esac
12465
12466 if test "$ld_shlibs" = yes; then
12467 runpath_var=LD_RUN_PATH
12468 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12469 export_dynamic_flag_spec='${wl}--export-dynamic'
12470 # ancient GNU ld didn't support --whole-archive et. al.
12471 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12472 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473 else
12474 whole_archive_flag_spec=
12475 fi
12476 fi
12477 else
12478 # PORTME fill in a description of your system's linker (not GNU ld)
12479 case $host_os in
12480 aix3*)
12481 allow_undefined_flag=unsupported
12482 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012483 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 +000012484 # Note: this linker hardcodes the directories in LIBPATH if there
12485 # are no directories specified by -L.
12486 hardcode_minus_L=yes
12487 if test "$GCC" = yes && test -z "$link_static_flag"; then
12488 # Neither direct hardcoding nor static linking is supported with a
12489 # broken collect2.
12490 hardcode_direct=unsupported
12491 fi
12492 ;;
12493
12494 aix4* | aix5*)
12495 if test "$host_cpu" = ia64; then
12496 # On IA64, the linker does run time linking by default, so we don't
12497 # have to do anything special.
12498 aix_use_runtimelinking=no
12499 exp_sym_flag='-Bexport'
12500 no_entry_flag=""
12501 else
12502 # If we're using GNU nm, then we don't want the "-C" option.
12503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12504 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12505 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'
12506 else
12507 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'
12508 fi
12509 aix_use_runtimelinking=no
12510
12511 # Test if we are trying to use run time linking or normal
12512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12513 # need to do runtime linking.
12514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12515 for ld_flag in $LDFLAGS; do
12516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12517 aix_use_runtimelinking=yes
12518 break
12519 fi
12520 done
12521 esac
12522
12523 exp_sym_flag='-bexport'
12524 no_entry_flag='-bnoentry'
12525 fi
12526
12527 # When large executables or shared objects are built, AIX ld can
12528 # have problems creating the table of contents. If linking a library
12529 # or program results in "error TOC overflow" add -mminimal-toc to
12530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12532
12533 archive_cmds=''
12534 hardcode_direct=yes
12535 hardcode_libdir_separator=':'
12536 link_all_deplibs=yes
12537
12538 if test "$GCC" = yes; then
12539 case $host_os in aix4.012|aix4.012.*)
12540 # We only want to do this on AIX 4.2 and lower, the check
12541 # below for broken collect2 doesn't work under 4.3+
12542 collect2name=`${CC} -print-prog-name=collect2`
12543 if test -f "$collect2name" && \
12544 strings "$collect2name" | grep resolve_lib_name >/dev/null
12545 then
12546 # We have reworked collect2
12547 hardcode_direct=yes
12548 else
12549 # We have old collect2
12550 hardcode_direct=unsupported
12551 # It fails to find uninstalled libraries when the uninstalled
12552 # path is not listed in the libpath. Setting hardcode_minus_L
12553 # to unsupported forces relinking
12554 hardcode_minus_L=yes
12555 hardcode_libdir_flag_spec='-L$libdir'
12556 hardcode_libdir_separator=
12557 fi
12558 esac
12559 shared_flag='-shared'
12560 else
12561 # not using gcc
12562 if test "$host_cpu" = ia64; then
12563 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12564 # chokes on -Wl,-G. The following line is correct:
12565 shared_flag='-G'
12566 else
12567 if test "$aix_use_runtimelinking" = yes; then
12568 shared_flag='${wl}-G'
12569 else
12570 shared_flag='${wl}-bM:SRE'
12571 fi
12572 fi
12573 fi
12574
12575 # It seems that -bexpall does not export symbols beginning with
12576 # underscore (_), so it is better to generate a list of symbols to export.
12577 always_export_symbols=yes
12578 if test "$aix_use_runtimelinking" = yes; then
12579 # Warning - without using the other runtime loading flags (-brtl),
12580 # -berok will link without error, but may produce a broken library.
12581 allow_undefined_flag='-berok'
12582 # Determine the default libpath from the value encoded in an empty executable.
12583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012589
John Criswell7a73b802003-06-30 21:59:07 +000012590int
12591main ()
12592{
John Criswell47fdd832003-07-14 16:52:07 +000012593
John Criswell7a73b802003-06-30 21:59:07 +000012594 ;
12595 return 0;
12596}
12597_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012598rm -f conftest.$ac_objext conftest$ac_exeext
12599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012600 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012607 { ac_try='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012620
John Criswell47fdd832003-07-14 16:52:07 +000012621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12622}'`
12623# Check for a 64-bit object if we didn't find anything.
12624if 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; }
12625}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012626else
12627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012628sed 's/^/| /' conftest.$ac_ext >&5
12629
John Criswell7a73b802003-06-30 21:59:07 +000012630fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012631rm -f conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012634
John Criswell47fdd832003-07-14 16:52:07 +000012635 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12636 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"
12637 else
12638 if test "$host_cpu" = ia64; then
12639 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12640 allow_undefined_flag="-z nodefs"
12641 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"
12642 else
12643 # Determine the default libpath from the value encoded in an empty executable.
12644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012650
John Criswell47fdd832003-07-14 16:52:07 +000012651int
12652main ()
12653{
John Criswell7a73b802003-06-30 21:59:07 +000012654
John Criswell47fdd832003-07-14 16:52:07 +000012655 ;
12656 return 0;
12657}
12658_ACEOF
12659rm -f conftest.$ac_objext conftest$ac_exeext
12660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012661 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012662 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012663 grep -v '^ *+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012668 { ac_try='test -z "$ac_c_werror_flag"
12669 || test ! -s conftest.err'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012681
John Criswell47fdd832003-07-14 16:52:07 +000012682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12683}'`
12684# Check for a 64-bit object if we didn't find anything.
12685if 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; }
12686}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012687else
John Criswell47fdd832003-07-14 16:52:07 +000012688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012689sed 's/^/| /' conftest.$ac_ext >&5
12690
John Criswell47fdd832003-07-14 16:52:07 +000012691fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012692rm -f conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012695
John Criswell47fdd832003-07-14 16:52:07 +000012696 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12697 # Warning - without using the other run time loading flags,
12698 # -berok will link without error, but may produce a broken library.
12699 no_undefined_flag=' ${wl}-bernotok'
12700 allow_undefined_flag=' ${wl}-berok'
12701 # -bexpall does not export symbols beginning with underscore (_)
12702 always_export_symbols=yes
12703 # Exported symbols can be pulled into shared objects from archives
12704 whole_archive_flag_spec=' '
12705 archive_cmds_need_lc=yes
12706 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012707 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 +000012708 fi
12709 fi
John Criswell7a73b802003-06-30 21:59:07 +000012710 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012711
12712 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012713 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 +000012714 hardcode_libdir_flag_spec='-L$libdir'
12715 hardcode_minus_L=yes
12716 # see comment about different semantics on the GNU ld section
12717 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012718 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012719
Reid Spencer2706f8c2004-09-19 23:53:36 +000012720 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012721 export_dynamic_flag_spec=-rdynamic
12722 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012723
John Criswell47fdd832003-07-14 16:52:07 +000012724 cygwin* | mingw* | pw32*)
12725 # When not using gcc, we currently assume that we are using
12726 # Microsoft Visual C++.
12727 # hardcode_libdir_flag_spec is actually meaningless, as there is
12728 # no search path for DLLs.
12729 hardcode_libdir_flag_spec=' '
12730 allow_undefined_flag=unsupported
12731 # Tell ltmain to make .lib files, not .a files.
12732 libext=lib
12733 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012734 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012735 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012737 # The linker will automatically build a .lib file if we build a DLL.
12738 old_archive_From_new_cmds='true'
12739 # FIXME: Should let the user specify the lib program.
12740 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12741 fix_srcfile_path='`cygpath -w "$srcfile"`'
12742 enable_shared_with_static_runtimes=yes
12743 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012744
John Criswell47fdd832003-07-14 16:52:07 +000012745 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012746 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012747 rhapsody* | darwin1.[012])
12748 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12749 ;;
12750 *) # Darwin 1.3 on
12751 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12752 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12753 else
12754 case ${MACOSX_DEPLOYMENT_TARGET} in
12755 10.[012])
12756 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12757 ;;
12758 10.*)
12759 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12760 ;;
12761 esac
12762 fi
12763 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012764 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012765 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012766 hardcode_direct=no
12767 hardcode_automatic=yes
12768 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012769 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012770 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012771 if test "$GCC" = yes ; then
12772 output_verbose_link_cmd='echo'
12773 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12774 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12775 # 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 +000012776 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}'
12777 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 +000012778 else
12779 case "$cc_basename" in
12780 xlc*)
12781 output_verbose_link_cmd='echo'
12782 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12783 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12784 # 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 +000012785 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}'
12786 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 +000012787 ;;
12788 *)
12789 ld_shlibs=no
12790 ;;
12791 esac
John Criswell7a73b802003-06-30 21:59:07 +000012792 fi
John Criswell47fdd832003-07-14 16:52:07 +000012793 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012794
John Criswell47fdd832003-07-14 16:52:07 +000012795 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012797 hardcode_libdir_flag_spec='-L$libdir'
12798 hardcode_shlibpath_var=no
12799 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012800
John Criswell47fdd832003-07-14 16:52:07 +000012801 freebsd1*)
12802 ld_shlibs=no
12803 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012804
John Criswell47fdd832003-07-14 16:52:07 +000012805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12806 # support. Future versions do this automatically, but an explicit c++rt0.o
12807 # does not break anything, and helps significantly (at the cost of a little
12808 # extra space).
12809 freebsd2.2*)
12810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12811 hardcode_libdir_flag_spec='-R$libdir'
12812 hardcode_direct=yes
12813 hardcode_shlibpath_var=no
12814 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012815
John Criswell47fdd832003-07-14 16:52:07 +000012816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12817 freebsd2*)
12818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12819 hardcode_direct=yes
12820 hardcode_minus_L=yes
12821 hardcode_shlibpath_var=no
12822 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012823
John Criswell47fdd832003-07-14 16:52:07 +000012824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012825 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012826 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12827 hardcode_libdir_flag_spec='-R$libdir'
12828 hardcode_direct=yes
12829 hardcode_shlibpath_var=no
12830 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012831
John Criswell47fdd832003-07-14 16:52:07 +000012832 hpux9*)
12833 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012834 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 +000012835 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012836 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 +000012837 fi
12838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12839 hardcode_libdir_separator=:
12840 hardcode_direct=yes
12841
12842 # hardcode_minus_L: Not really in the search PATH,
12843 # but as the default location of the library.
12844 hardcode_minus_L=yes
12845 export_dynamic_flag_spec='${wl}-E'
12846 ;;
12847
12848 hpux10* | hpux11*)
12849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12850 case "$host_cpu" in
12851 hppa*64*|ia64*)
12852 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12853 ;;
12854 *)
12855 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12856 ;;
12857 esac
12858 else
12859 case "$host_cpu" in
12860 hppa*64*|ia64*)
12861 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12862 ;;
12863 *)
12864 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12865 ;;
12866 esac
12867 fi
12868 if test "$with_gnu_ld" = no; then
12869 case "$host_cpu" in
12870 hppa*64*)
12871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12872 hardcode_libdir_flag_spec_ld='+b $libdir'
12873 hardcode_libdir_separator=:
12874 hardcode_direct=no
12875 hardcode_shlibpath_var=no
12876 ;;
12877 ia64*)
12878 hardcode_libdir_flag_spec='-L$libdir'
12879 hardcode_direct=no
12880 hardcode_shlibpath_var=no
12881
12882 # hardcode_minus_L: Not really in the search PATH,
12883 # but as the default location of the library.
12884 hardcode_minus_L=yes
12885 ;;
12886 *)
12887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12888 hardcode_libdir_separator=:
12889 hardcode_direct=yes
12890 export_dynamic_flag_spec='${wl}-E'
12891
12892 # hardcode_minus_L: Not really in the search PATH,
12893 # but as the default location of the library.
12894 hardcode_minus_L=yes
12895 ;;
12896 esac
12897 fi
12898 ;;
12899
12900 irix5* | irix6* | nonstopux*)
12901 if test "$GCC" = yes; then
12902 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'
12903 else
12904 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'
12905 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12906 fi
12907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12908 hardcode_libdir_separator=:
12909 link_all_deplibs=yes
12910 ;;
12911
12912 netbsd*)
12913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12915 else
12916 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12917 fi
12918 hardcode_libdir_flag_spec='-R$libdir'
12919 hardcode_direct=yes
12920 hardcode_shlibpath_var=no
12921 ;;
12922
12923 newsos6)
12924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12925 hardcode_direct=yes
12926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12927 hardcode_libdir_separator=:
12928 hardcode_shlibpath_var=no
12929 ;;
12930
12931 openbsd*)
12932 hardcode_direct=yes
12933 hardcode_shlibpath_var=no
12934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012936 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 +000012937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12938 export_dynamic_flag_spec='${wl}-E'
12939 else
12940 case $host_os in
12941 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943 hardcode_libdir_flag_spec='-R$libdir'
12944 ;;
12945 *)
12946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12948 ;;
12949 esac
12950 fi
12951 ;;
12952
12953 os2*)
12954 hardcode_libdir_flag_spec='-L$libdir'
12955 hardcode_minus_L=yes
12956 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012957 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 +000012958 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12959 ;;
12960
12961 osf3*)
12962 if test "$GCC" = yes; then
12963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12964 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'
12965 else
12966 allow_undefined_flag=' -expect_unresolved \*'
12967 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'
12968 fi
12969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12970 hardcode_libdir_separator=:
12971 ;;
12972
12973 osf4* | osf5*) # as osf3* with the addition of -msym flag
12974 if test "$GCC" = yes; then
12975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12976 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'
12977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12978 else
12979 allow_undefined_flag=' -expect_unresolved \*'
12980 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 +000012981 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12982 $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'
12983
John Criswell47fdd832003-07-14 16:52:07 +000012984 # Both c and cxx compiler support -rpath directly
12985 hardcode_libdir_flag_spec='-rpath $libdir'
12986 fi
12987 hardcode_libdir_separator=:
12988 ;;
12989
12990 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12992 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012993 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012994 runpath_var=LD_RUN_PATH
12995 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012996 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012997
John Criswell47fdd832003-07-14 16:52:07 +000012998 solaris*)
12999 no_undefined_flag=' -z text'
13000 if test "$GCC" = yes; then
13001 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013002 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003 $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 +000013004 else
13005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013006 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13007 $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 +000013008 fi
13009 hardcode_libdir_flag_spec='-R$libdir'
13010 hardcode_shlibpath_var=no
13011 case $host_os in
13012 solaris2.[0-5] | solaris2.[0-5].*) ;;
13013 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13014 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13015 esac
13016 link_all_deplibs=yes
13017 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013018
John Criswell47fdd832003-07-14 16:52:07 +000013019 sunos4*)
13020 if test "x$host_vendor" = xsequent; then
13021 # Use $CC to link under sequent, because it throws in some extra .o
13022 # files that make .init and .fini sections work.
13023 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13024 else
13025 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13026 fi
13027 hardcode_libdir_flag_spec='-L$libdir'
13028 hardcode_direct=yes
13029 hardcode_minus_L=yes
13030 hardcode_shlibpath_var=no
13031 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013032
John Criswell47fdd832003-07-14 16:52:07 +000013033 sysv4)
13034 case $host_vendor in
13035 sni)
13036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037 hardcode_direct=yes # is this really true???
13038 ;;
13039 siemens)
13040 ## LD is ld it makes a PLAMLIB
13041 ## CC just makes a GrossModule.
13042 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13043 reload_cmds='$CC -r -o $output$reload_objs'
13044 hardcode_direct=no
13045 ;;
13046 motorola)
13047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13049 ;;
13050 esac
13051 runpath_var='LD_RUN_PATH'
13052 hardcode_shlibpath_var=no
13053 ;;
13054
13055 sysv4.3*)
13056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057 hardcode_shlibpath_var=no
13058 export_dynamic_flag_spec='-Bexport'
13059 ;;
13060
13061 sysv4*MP*)
13062 if test -d /usr/nec; then
13063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064 hardcode_shlibpath_var=no
13065 runpath_var=LD_RUN_PATH
13066 hardcode_runpath_var=yes
13067 ld_shlibs=yes
13068 fi
13069 ;;
13070
13071 sysv4.2uw2*)
13072 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13073 hardcode_direct=yes
13074 hardcode_minus_L=no
13075 hardcode_shlibpath_var=no
13076 hardcode_runpath_var=yes
13077 runpath_var=LD_RUN_PATH
13078 ;;
13079
13080 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13081 no_undefined_flag='${wl}-z ${wl}text'
13082 if test "$GCC" = yes; then
13083 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13084 else
13085 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13086 fi
13087 runpath_var='LD_RUN_PATH'
13088 hardcode_shlibpath_var=no
13089 ;;
13090
13091 sysv5*)
13092 no_undefined_flag=' -z text'
13093 # $CC -shared without GNU ld will not create a library from C++
13094 # object files and a static libstdc++, better avoid it by now
13095 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013096 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13097 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000013098 hardcode_libdir_flag_spec=
13099 hardcode_shlibpath_var=no
13100 runpath_var='LD_RUN_PATH'
13101 ;;
13102
13103 uts4*)
13104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13105 hardcode_libdir_flag_spec='-L$libdir'
13106 hardcode_shlibpath_var=no
13107 ;;
13108
13109 *)
13110 ld_shlibs=no
13111 ;;
13112 esac
13113 fi
13114
John Criswell7a73b802003-06-30 21:59:07 +000013115echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13116echo "${ECHO_T}$ld_shlibs" >&6
13117test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013118
John Criswell47fdd832003-07-14 16:52:07 +000013119variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13120if test "$GCC" = yes; then
13121 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13122fi
13123
13124#
13125# Do we need to explicitly link libc?
13126#
13127case "x$archive_cmds_need_lc" in
13128x|xyes)
13129 # Assume -lc should be added
13130 archive_cmds_need_lc=yes
13131
13132 if test "$enable_shared" = yes && test "$GCC" = yes; then
13133 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013134 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013135 # FIXME: we may have to deal with multi-command sequences.
13136 ;;
13137 '$CC '*)
13138 # Test whether the compiler implicitly links with -lc since on some
13139 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13140 # to ld, don't add -lc before -lgcc.
13141 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13142echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13143 $rm conftest*
13144 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13145
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } 2>conftest.err; then
13151 soname=conftest
13152 lib=conftest
13153 libobjs=conftest.$ac_objext
13154 deplibs=
13155 wl=$lt_prog_compiler_wl
13156 compiler_flags=-v
13157 linker_flags=-v
13158 verstring=
13159 output_objdir=.
13160 libname=conftest
13161 lt_save_allow_undefined_flag=$allow_undefined_flag
13162 allow_undefined_flag=
13163 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13164 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }
13168 then
13169 archive_cmds_need_lc=no
13170 else
13171 archive_cmds_need_lc=yes
13172 fi
13173 allow_undefined_flag=$lt_save_allow_undefined_flag
13174 else
13175 cat conftest.err 1>&5
13176 fi
13177 $rm conftest*
13178 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13179echo "${ECHO_T}$archive_cmds_need_lc" >&6
13180 ;;
13181 esac
13182 fi
13183 ;;
13184esac
13185
John Criswell7a73b802003-06-30 21:59:07 +000013186echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13187echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13188library_names_spec=
13189libname_spec='lib$name'
13190soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013191shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013192postinstall_cmds=
13193postuninstall_cmds=
13194finish_cmds=
13195finish_eval=
13196shlibpath_var=
13197shlibpath_overrides_runpath=unknown
13198version_type=none
13199dynamic_linker="$host_os ld.so"
13200sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013201if test "$GCC" = yes; then
13202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13203 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13204 # if the path contains ";" then we assume it to be the separator
13205 # otherwise default to the standard path separator (i.e. ":") - it is
13206 # assumed that no part of a normal pathname contains ";" but that should
13207 # okay in the real world where ";" in dirpaths is itself problematic.
13208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13209 else
13210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13211 fi
13212else
13213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13214fi
13215need_lib_prefix=unknown
13216hardcode_into_libs=no
13217
13218# when you set need_version to no, make sure it does not cause -set_version
13219# flags to be left without arguments
13220need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013221
13222case $host_os in
13223aix3*)
13224 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013226 shlibpath_var=LIBPATH
13227
John Criswell47fdd832003-07-14 16:52:07 +000013228 # AIX 3 has no versioning support, so we append a major version to the name.
13229 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013230 ;;
13231
13232aix4* | aix5*)
13233 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013234 need_lib_prefix=no
13235 need_version=no
13236 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013237 if test "$host_cpu" = ia64; then
13238 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013239 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013240 shlibpath_var=LD_LIBRARY_PATH
13241 else
13242 # With GCC up to 2.95.x, collect2 would create an import file
13243 # for dependence libraries. The import file would start with
13244 # the line `#! .'. This would cause the generated library to
13245 # depend on `.', always an invalid library. This was fixed in
13246 # development snapshots of GCC prior to 3.0.
13247 case $host_os in
13248 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013249 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13250 echo ' yes '
13251 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13252 :
13253 else
13254 can_build_shared=no
13255 fi
13256 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013257 esac
John Criswell47fdd832003-07-14 16:52:07 +000013258 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13259 # soname into executable. Probably we can add versioning support to
13260 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013261 if test "$aix_use_runtimelinking" = yes; then
13262 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13263 # instead of lib<name>.a to let people know that these are not
13264 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013266 else
13267 # We preserve .a as extension for shared libraries through AIX4.2
13268 # and later when we are not doing run time linking.
13269 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013270 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013271 fi
13272 shlibpath_var=LIBPATH
13273 fi
13274 ;;
13275
13276amigaos*)
13277 library_names_spec='$libname.ixlibrary $libname.a'
13278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013279 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 +000013280 ;;
13281
13282beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013283 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013284 dynamic_linker="$host_os ld.so"
13285 shlibpath_var=LIBRARY_PATH
13286 ;;
13287
Reid Spencer2706f8c2004-09-19 23:53:36 +000013288bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013289 version_type=linux
13290 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013297 # the default ld.so.conf also contains /usr/contrib/lib and
13298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13299 # libtool to hard-code these into programs
13300 ;;
13301
13302cygwin* | mingw* | pw32*)
13303 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013304 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013305 need_version=no
13306 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013307
John Criswell7a73b802003-06-30 21:59:07 +000013308 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013309 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013310 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013312 postinstall_cmds='base_file=`basename \${file}`~
13313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13314 dldir=$destdir/`dirname \$dlpath`~
13315 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013316 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13318 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013319 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013320 shlibpath_overrides_runpath=yes
13321
13322 case $host_os in
13323 cygwin*)
13324 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13325 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 +000013326 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013327 ;;
13328 mingw*)
13329 # MinGW DLLs use traditional 'lib' prefix
13330 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13331 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13332 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13333 # It is most probably a Windows format PATH printed by
13334 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13335 # path with ; separators, and with drive letters. We can handle the
13336 # drive letters (cygwin fileutils understands them), so leave them,
13337 # especially as we might pass files found there to a mingw objdump,
13338 # which wouldn't understand a cygwinified path. Ahh.
13339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13340 else
13341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13342 fi
13343 ;;
13344 pw32*)
13345 # pw32 DLLs use 'pw' prefix rather than 'lib'
13346 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13347 ;;
13348 esac
John Criswell7a73b802003-06-30 21:59:07 +000013349 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013350
John Criswell7a73b802003-06-30 21:59:07 +000013351 *)
John Criswell47fdd832003-07-14 16:52:07 +000013352 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013353 ;;
13354 esac
13355 dynamic_linker='Win32 ld.exe'
13356 # FIXME: first we should search . and the directory the executable is in
13357 shlibpath_var=PATH
13358 ;;
13359
13360darwin* | rhapsody*)
13361 dynamic_linker="$host_os dyld"
13362 version_type=darwin
13363 need_lib_prefix=no
13364 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013365 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013366 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013367 shlibpath_overrides_runpath=yes
13368 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013369 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013370 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013371 if test "$GCC" = yes; then
13372 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"`
13373 else
13374 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013375 fi
13376 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13377 ;;
13378
13379dgux*)
13380 version_type=linux
13381 need_lib_prefix=no
13382 need_version=no
13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13384 soname_spec='${libname}${release}${shared_ext}$major'
13385 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013386 ;;
13387
13388freebsd1*)
13389 dynamic_linker=no
13390 ;;
13391
Reid Spencer2706f8c2004-09-19 23:53:36 +000013392kfreebsd*-gnu)
13393 version_type=linux
13394 need_lib_prefix=no
13395 need_version=no
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13397 soname_spec='${libname}${release}${shared_ext}$major'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 shlibpath_overrides_runpath=no
13400 hardcode_into_libs=yes
13401 dynamic_linker='GNU ld.so'
13402 ;;
13403
John Criswell7a73b802003-06-30 21:59:07 +000013404freebsd*)
13405 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13406 version_type=freebsd-$objformat
13407 case $version_type in
13408 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013410 need_version=no
13411 need_lib_prefix=no
13412 ;;
13413 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013415 need_version=yes
13416 ;;
13417 esac
13418 shlibpath_var=LD_LIBRARY_PATH
13419 case $host_os in
13420 freebsd2*)
13421 shlibpath_overrides_runpath=yes
13422 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013423 freebsd3.01* | freebsdelf3.01*)
13424 shlibpath_overrides_runpath=yes
13425 hardcode_into_libs=yes
13426 ;;
13427 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013428 shlibpath_overrides_runpath=no
13429 hardcode_into_libs=yes
13430 ;;
13431 esac
13432 ;;
13433
13434gnu*)
13435 version_type=linux
13436 need_lib_prefix=no
13437 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013440 shlibpath_var=LD_LIBRARY_PATH
13441 hardcode_into_libs=yes
13442 ;;
13443
13444hpux9* | hpux10* | hpux11*)
13445 # Give a soname corresponding to the major version so that dld.sl refuses to
13446 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013447 version_type=sunos
13448 need_lib_prefix=no
13449 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013450 case "$host_cpu" in
13451 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013452 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013453 hardcode_into_libs=yes
13454 dynamic_linker="$host_os dld.so"
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 if test "X$HPUX_IA64_MODE" = X32; then
13460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461 else
13462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463 fi
13464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13465 ;;
13466 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013467 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013468 hardcode_into_libs=yes
13469 dynamic_linker="$host_os dld.sl"
13470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476 ;;
13477 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013478 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013479 dynamic_linker="$host_os dld.sl"
13480 shlibpath_var=SHLIB_PATH
13481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483 soname_spec='${libname}${release}${shared_ext}$major'
13484 ;;
13485 esac
John Criswell7a73b802003-06-30 21:59:07 +000013486 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13487 postinstall_cmds='chmod 555 $lib'
13488 ;;
13489
John Criswell47fdd832003-07-14 16:52:07 +000013490irix5* | irix6* | nonstopux*)
13491 case $host_os in
13492 nonstopux*) version_type=nonstopux ;;
13493 *)
13494 if test "$lt_cv_prog_gnu_ld" = yes; then
13495 version_type=linux
13496 else
13497 version_type=irix
13498 fi ;;
13499 esac
John Criswell7a73b802003-06-30 21:59:07 +000013500 need_lib_prefix=no
13501 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013502 soname_spec='${libname}${release}${shared_ext}$major'
13503 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 +000013504 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013505 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013506 libsuff= shlibsuff=
13507 ;;
13508 *)
13509 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013510 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13511 libsuff= shlibsuff= libmagic=32-bit;;
13512 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13513 libsuff=32 shlibsuff=N32 libmagic=N32;;
13514 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13515 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013516 *) libsuff= shlibsuff= libmagic=never-match;;
13517 esac
13518 ;;
13519 esac
13520 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13521 shlibpath_overrides_runpath=no
13522 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13523 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013524 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013525 ;;
13526
13527# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013528linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013529 dynamic_linker=no
13530 ;;
13531
13532# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013533linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013534 version_type=linux
13535 need_lib_prefix=no
13536 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 shlibpath_overrides_runpath=no
13542 # This implies no fast_install, which is unacceptable.
13543 # Some rework will be needed to allow for fast_install
13544 # before this can be enabled.
13545 hardcode_into_libs=yes
13546
Reid Spencer2706f8c2004-09-19 23:53:36 +000013547 # Append ld.so.conf contents to the search path
13548 if test -f /etc/ld.so.conf; then
13549 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13550 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13551 fi
13552
John Criswell7a73b802003-06-30 21:59:07 +000013553 # We used to test for /lib/ld.so.1 and disable shared libraries on
13554 # powerpc, because MkLinux only supported shared libraries with the
13555 # GNU dynamic linker. Since this was broken with cross compilers,
13556 # most powerpc-linux boxes support dynamic linking these days and
13557 # people can always --disable-shared, the test was removed, and we
13558 # assume the GNU/Linux dynamic linker is in use.
13559 dynamic_linker='GNU/Linux ld.so'
13560 ;;
13561
Reid Spencer2706f8c2004-09-19 23:53:36 +000013562knetbsd*-gnu)
13563 version_type=linux
13564 need_lib_prefix=no
13565 need_version=no
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=no
13570 hardcode_into_libs=yes
13571 dynamic_linker='GNU ld.so'
13572 ;;
13573
John Criswell7a73b802003-06-30 21:59:07 +000013574netbsd*)
13575 version_type=sunos
13576 need_lib_prefix=no
13577 need_version=no
13578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581 dynamic_linker='NetBSD (a.out) ld.so'
13582 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013584 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013585 dynamic_linker='NetBSD ld.elf_so'
13586 fi
13587 shlibpath_var=LD_LIBRARY_PATH
13588 shlibpath_overrides_runpath=yes
13589 hardcode_into_libs=yes
13590 ;;
13591
13592newsos6)
13593 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595 shlibpath_var=LD_LIBRARY_PATH
13596 shlibpath_overrides_runpath=yes
13597 ;;
13598
Reid Spencer2706f8c2004-09-19 23:53:36 +000013599nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013600 version_type=linux
13601 need_lib_prefix=no
13602 need_version=no
13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013605 shlibpath_var=LD_LIBRARY_PATH
13606 shlibpath_overrides_runpath=yes
13607 ;;
13608
13609openbsd*)
13610 version_type=sunos
13611 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013612 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13615 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013616 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 +000013617 case $host_os in
13618 openbsd2.[89] | openbsd2.[89].*)
13619 shlibpath_overrides_runpath=no
13620 ;;
13621 *)
13622 shlibpath_overrides_runpath=yes
13623 ;;
13624 esac
John Criswell7a73b802003-06-30 21:59:07 +000013625 else
13626 shlibpath_overrides_runpath=yes
13627 fi
John Criswell7a73b802003-06-30 21:59:07 +000013628 ;;
13629
13630os2*)
13631 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013632 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013633 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013634 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013635 dynamic_linker='OS/2 ld.exe'
13636 shlibpath_var=LIBPATH
13637 ;;
13638
13639osf3* | osf4* | osf5*)
13640 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013641 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013642 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013643 soname_spec='${libname}${release}${shared_ext}$major'
13644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013645 shlibpath_var=LD_LIBRARY_PATH
13646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13648 ;;
13649
13650sco3.2v5*)
13651 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013652 soname_spec='${libname}${release}${shared_ext}$major'
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013654 shlibpath_var=LD_LIBRARY_PATH
13655 ;;
13656
13657solaris*)
13658 version_type=linux
13659 need_lib_prefix=no
13660 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013663 shlibpath_var=LD_LIBRARY_PATH
13664 shlibpath_overrides_runpath=yes
13665 hardcode_into_libs=yes
13666 # ldd complains unless libraries are executable
13667 postinstall_cmds='chmod +x $lib'
13668 ;;
13669
13670sunos4*)
13671 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 shlibpath_overrides_runpath=yes
13676 if test "$with_gnu_ld" = yes; then
13677 need_lib_prefix=no
13678 fi
13679 need_version=yes
13680 ;;
13681
13682sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13683 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013686 shlibpath_var=LD_LIBRARY_PATH
13687 case $host_vendor in
13688 sni)
13689 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013690 need_lib_prefix=no
13691 export_dynamic_flag_spec='${wl}-Blargedynsym'
13692 runpath_var=LD_RUN_PATH
13693 ;;
13694 siemens)
13695 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013696 ;;
13697 motorola)
13698 need_lib_prefix=no
13699 need_version=no
13700 shlibpath_overrides_runpath=no
13701 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13702 ;;
13703 esac
13704 ;;
13705
John Criswell7a73b802003-06-30 21:59:07 +000013706sysv4*MP*)
13707 if test -d /usr/nec ;then
13708 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013709 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13710 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013711 shlibpath_var=LD_LIBRARY_PATH
13712 fi
13713 ;;
13714
John Criswell47fdd832003-07-14 16:52:07 +000013715uts4*)
13716 version_type=linux
13717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718 soname_spec='${libname}${release}${shared_ext}$major'
13719 shlibpath_var=LD_LIBRARY_PATH
13720 ;;
13721
John Criswell7a73b802003-06-30 21:59:07 +000013722*)
13723 dynamic_linker=no
13724 ;;
13725esac
13726echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13727echo "${ECHO_T}$dynamic_linker" >&6
13728test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013729
Reid Spencer2706f8c2004-09-19 23:53:36 +000013730echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13731echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13732hardcode_action=
13733if test -n "$hardcode_libdir_flag_spec" || \
13734 test -n "$runpath_var" || \
13735 test "X$hardcode_automatic" = "Xyes" ; then
13736
13737 # We can hardcode non-existant directories.
13738 if test "$hardcode_direct" != no &&
13739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13740 # have to relink, otherwise we might link with an installed library
13741 # when we should be linking with a yet-to-be-installed one
13742 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13743 test "$hardcode_minus_L" != no; then
13744 # Linking always hardcodes the temporary library directory.
13745 hardcode_action=relink
13746 else
13747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13748 hardcode_action=immediate
13749 fi
13750else
13751 # We cannot hardcode anything, or else we can only hardcode existing
13752 # directories.
13753 hardcode_action=unsupported
13754fi
13755echo "$as_me:$LINENO: result: $hardcode_action" >&5
13756echo "${ECHO_T}$hardcode_action" >&6
13757
13758if test "$hardcode_action" = relink; then
13759 # Fast installation is not supported
13760 enable_fast_install=no
13761elif test "$shlibpath_overrides_runpath" = yes ||
13762 test "$enable_shared" = no; then
13763 # Fast installation is not necessary
13764 enable_fast_install=needless
13765fi
13766
13767striplib=
13768old_striplib=
13769echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13770echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13771if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13774 echo "$as_me:$LINENO: result: yes" >&5
13775echo "${ECHO_T}yes" >&6
13776else
13777# FIXME - insert some real tests, host_os isn't really good enough
13778 case $host_os in
13779 darwin*)
13780 if test -n "$STRIP" ; then
13781 striplib="$STRIP -x"
13782 echo "$as_me:$LINENO: result: yes" >&5
13783echo "${ECHO_T}yes" >&6
13784 else
13785 echo "$as_me:$LINENO: result: no" >&5
13786echo "${ECHO_T}no" >&6
13787fi
13788 ;;
13789 *)
13790 echo "$as_me:$LINENO: result: no" >&5
13791echo "${ECHO_T}no" >&6
13792 ;;
13793 esac
13794fi
13795
John Criswell7a73b802003-06-30 21:59:07 +000013796if test "x$enable_dlopen" != xyes; then
13797 enable_dlopen=unknown
13798 enable_dlopen_self=unknown
13799 enable_dlopen_self_static=unknown
13800else
13801 lt_cv_dlopen=no
13802 lt_cv_dlopen_libs=
13803
13804 case $host_os in
13805 beos*)
13806 lt_cv_dlopen="load_add_on"
13807 lt_cv_dlopen_libs=
13808 lt_cv_dlopen_self=yes
13809 ;;
13810
John Criswell47fdd832003-07-14 16:52:07 +000013811 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013812 lt_cv_dlopen="LoadLibrary"
13813 lt_cv_dlopen_libs=
13814 ;;
13815
John Criswell47fdd832003-07-14 16:52:07 +000013816 cygwin*)
13817 lt_cv_dlopen="dlopen"
13818 lt_cv_dlopen_libs=
13819 ;;
13820
13821 darwin*)
13822 # if libdl is installed we need to link against it
13823 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13824echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13825if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13827else
13828 ac_check_lib_save_LIBS=$LIBS
13829LIBS="-ldl $LIBS"
13830cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013831/* confdefs.h. */
13832_ACEOF
13833cat confdefs.h >>conftest.$ac_ext
13834cat >>conftest.$ac_ext <<_ACEOF
13835/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013836
13837/* Override any gcc2 internal prototype to avoid an error. */
13838#ifdef __cplusplus
13839extern "C"
13840#endif
13841/* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13843char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013844int
13845main ()
13846{
13847dlopen ();
13848 ;
13849 return 0;
13850}
13851_ACEOF
13852rm -f conftest.$ac_objext conftest$ac_exeext
13853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013854 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013855 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_lib_dl_dlopen=yes
13875else
13876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013877sed 's/^/| /' conftest.$ac_ext >&5
13878
John Criswell47fdd832003-07-14 16:52:07 +000013879ac_cv_lib_dl_dlopen=no
13880fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013881rm -f conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013883LIBS=$ac_check_lib_save_LIBS
13884fi
13885echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13886echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13887if test $ac_cv_lib_dl_dlopen = yes; then
13888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13889else
13890
13891 lt_cv_dlopen="dyld"
13892 lt_cv_dlopen_libs=
13893 lt_cv_dlopen_self=yes
13894
13895fi
13896
13897 ;;
13898
John Criswell7a73b802003-06-30 21:59:07 +000013899 *)
13900 echo "$as_me:$LINENO: checking for shl_load" >&5
13901echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13902if test "${ac_cv_func_shl_load+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013911/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13913#define shl_load innocuous_shl_load
13914
John Criswell7a73b802003-06-30 21:59:07 +000013915/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013916 which can conflict with char shl_load (); below.
13917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013919
John Criswell0c38eaf2003-09-10 15:17:25 +000013920#ifdef __STDC__
13921# include <limits.h>
13922#else
13923# include <assert.h>
13924#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013925
13926#undef shl_load
13927
John Criswell7a73b802003-06-30 21:59:07 +000013928/* Override any gcc2 internal prototype to avoid an error. */
13929#ifdef __cplusplus
13930extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013931{
John Criswell7a73b802003-06-30 21:59:07 +000013932#endif
13933/* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13935char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013936/* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939#if defined (__stub_shl_load) || defined (__stub___shl_load)
13940choke me
13941#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013942char (*f) () = shl_load;
13943#endif
13944#ifdef __cplusplus
13945}
John Criswell7a73b802003-06-30 21:59:07 +000013946#endif
13947
John Criswell0c38eaf2003-09-10 15:17:25 +000013948int
13949main ()
13950{
13951return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013952 ;
13953 return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext conftest$ac_exeext
13957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013958 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013959 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_cv_func_shl_load=yes
13979else
13980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013981sed 's/^/| /' conftest.$ac_ext >&5
13982
John Criswell7a73b802003-06-30 21:59:07 +000013983ac_cv_func_shl_load=no
13984fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013985rm -f conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013987fi
13988echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13989echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13990if test $ac_cv_func_shl_load = yes; then
13991 lt_cv_dlopen="shl_load"
13992else
13993 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13994echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13995if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997else
13998 ac_check_lib_save_LIBS=$LIBS
13999LIBS="-ldld $LIBS"
14000cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014006
14007/* Override any gcc2 internal prototype to avoid an error. */
14008#ifdef __cplusplus
14009extern "C"
14010#endif
14011/* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14013char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014014int
14015main ()
14016{
14017shl_load ();
14018 ;
14019 return 0;
14020}
14021_ACEOF
14022rm -f conftest.$ac_objext conftest$ac_exeext
14023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014024 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_lib_dld_shl_load=yes
14045else
14046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014047sed 's/^/| /' conftest.$ac_ext >&5
14048
John Criswell7a73b802003-06-30 21:59:07 +000014049ac_cv_lib_dld_shl_load=no
14050fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014051rm -f conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014053LIBS=$ac_check_lib_save_LIBS
14054fi
14055echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14056echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14057if test $ac_cv_lib_dld_shl_load = yes; then
14058 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14059else
14060 echo "$as_me:$LINENO: checking for dlopen" >&5
14061echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14062if test "${ac_cv_func_dlopen+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064else
14065 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014071/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14073#define dlopen innocuous_dlopen
14074
John Criswell7a73b802003-06-30 21:59:07 +000014075/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014076 which can conflict with char dlopen (); below.
14077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14078 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014079
John Criswell0c38eaf2003-09-10 15:17:25 +000014080#ifdef __STDC__
14081# include <limits.h>
14082#else
14083# include <assert.h>
14084#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014085
14086#undef dlopen
14087
John Criswell7a73b802003-06-30 21:59:07 +000014088/* Override any gcc2 internal prototype to avoid an error. */
14089#ifdef __cplusplus
14090extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014091{
John Criswell7a73b802003-06-30 21:59:07 +000014092#endif
14093/* We use char because int might match the return type of a gcc2
14094 builtin and then its argument prototype would still apply. */
14095char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014096/* The GNU C library defines this for functions which it implements
14097 to always fail with ENOSYS. Some functions are actually named
14098 something starting with __ and the normal name is an alias. */
14099#if defined (__stub_dlopen) || defined (__stub___dlopen)
14100choke me
14101#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014102char (*f) () = dlopen;
14103#endif
14104#ifdef __cplusplus
14105}
John Criswell7a73b802003-06-30 21:59:07 +000014106#endif
14107
John Criswell0c38eaf2003-09-10 15:17:25 +000014108int
14109main ()
14110{
14111return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014112 ;
14113 return 0;
14114}
14115_ACEOF
14116rm -f conftest.$ac_objext conftest$ac_exeext
14117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014118 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014119 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014125 { ac_try='test -z "$ac_c_werror_flag"
14126 || test ! -s conftest.err'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_func_dlopen=yes
14139else
14140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014141sed 's/^/| /' conftest.$ac_ext >&5
14142
John Criswell7a73b802003-06-30 21:59:07 +000014143ac_cv_func_dlopen=no
14144fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014145rm -f conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014147fi
14148echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14149echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14150if test $ac_cv_func_dlopen = yes; then
14151 lt_cv_dlopen="dlopen"
14152else
14153 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14154echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14155if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157else
14158 ac_check_lib_save_LIBS=$LIBS
14159LIBS="-ldl $LIBS"
14160cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014161/* confdefs.h. */
14162_ACEOF
14163cat confdefs.h >>conftest.$ac_ext
14164cat >>conftest.$ac_ext <<_ACEOF
14165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014166
14167/* Override any gcc2 internal prototype to avoid an error. */
14168#ifdef __cplusplus
14169extern "C"
14170#endif
14171/* We use char because int might match the return type of a gcc2
14172 builtin and then its argument prototype would still apply. */
14173char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014174int
14175main ()
14176{
14177dlopen ();
14178 ;
14179 return 0;
14180}
14181_ACEOF
14182rm -f conftest.$ac_objext conftest$ac_exeext
14183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014184 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014185 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014186 grep -v '^ *+' conftest.er1 >conftest.err
14187 rm -f conftest.er1
14188 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014191 { ac_try='test -z "$ac_c_werror_flag"
14192 || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 ac_cv_lib_dl_dlopen=yes
14205else
14206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014207sed 's/^/| /' conftest.$ac_ext >&5
14208
John Criswell7a73b802003-06-30 21:59:07 +000014209ac_cv_lib_dl_dlopen=no
14210fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014211rm -f conftest.err conftest.$ac_objext \
14212 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014213LIBS=$ac_check_lib_save_LIBS
14214fi
14215echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14216echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14217if test $ac_cv_lib_dl_dlopen = yes; then
14218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14219else
14220 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14221echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14222if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14224else
14225 ac_check_lib_save_LIBS=$LIBS
14226LIBS="-lsvld $LIBS"
14227cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014228/* confdefs.h. */
14229_ACEOF
14230cat confdefs.h >>conftest.$ac_ext
14231cat >>conftest.$ac_ext <<_ACEOF
14232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014233
14234/* Override any gcc2 internal prototype to avoid an error. */
14235#ifdef __cplusplus
14236extern "C"
14237#endif
14238/* We use char because int might match the return type of a gcc2
14239 builtin and then its argument prototype would still apply. */
14240char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014241int
14242main ()
14243{
14244dlopen ();
14245 ;
14246 return 0;
14247}
14248_ACEOF
14249rm -f conftest.$ac_objext conftest$ac_exeext
14250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014251 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014252 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014258 { ac_try='test -z "$ac_c_werror_flag"
14259 || test ! -s conftest.err'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_lib_svld_dlopen=yes
14272else
14273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014274sed 's/^/| /' conftest.$ac_ext >&5
14275
John Criswell7a73b802003-06-30 21:59:07 +000014276ac_cv_lib_svld_dlopen=no
14277fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014278rm -f conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014280LIBS=$ac_check_lib_save_LIBS
14281fi
14282echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14283echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14284if test $ac_cv_lib_svld_dlopen = yes; then
14285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14286else
14287 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14288echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14289if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291else
14292 ac_check_lib_save_LIBS=$LIBS
14293LIBS="-ldld $LIBS"
14294cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014300
14301/* Override any gcc2 internal prototype to avoid an error. */
14302#ifdef __cplusplus
14303extern "C"
14304#endif
14305/* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14307char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014308int
14309main ()
14310{
14311dld_link ();
14312 ;
14313 return 0;
14314}
14315_ACEOF
14316rm -f conftest.$ac_objext conftest$ac_exeext
14317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014318 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014319 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014320 grep -v '^ *+' conftest.er1 >conftest.err
14321 rm -f conftest.er1
14322 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014325 { ac_try='test -z "$ac_c_werror_flag"
14326 || test ! -s conftest.err'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; } &&
14332 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_cv_lib_dld_dld_link=yes
14339else
14340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014341sed 's/^/| /' conftest.$ac_ext >&5
14342
John Criswell7a73b802003-06-30 21:59:07 +000014343ac_cv_lib_dld_dld_link=no
14344fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014345rm -f conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014347LIBS=$ac_check_lib_save_LIBS
14348fi
14349echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14350echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14351if test $ac_cv_lib_dld_dld_link = yes; then
14352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14353fi
14354
14355
14356fi
14357
14358
14359fi
14360
14361
14362fi
14363
14364
14365fi
14366
14367
14368fi
14369
14370 ;;
14371 esac
14372
14373 if test "x$lt_cv_dlopen" != xno; then
14374 enable_dlopen=yes
14375 else
14376 enable_dlopen=no
14377 fi
14378
14379 case $lt_cv_dlopen in
14380 dlopen)
14381 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014383
14384 save_LDFLAGS="$LDFLAGS"
14385 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14386
14387 save_LIBS="$LIBS"
14388 LIBS="$lt_cv_dlopen_libs $LIBS"
14389
14390 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14391echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14392if test "${lt_cv_dlopen_self+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395 if test "$cross_compiling" = yes; then :
14396 lt_cv_dlopen_self=cross
14397else
John Criswell47fdd832003-07-14 16:52:07 +000014398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014399 lt_status=$lt_dlunknown
14400 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000014401#line 14401 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014402#include "confdefs.h"
14403
14404#if HAVE_DLFCN_H
14405#include <dlfcn.h>
14406#endif
14407
14408#include <stdio.h>
14409
14410#ifdef RTLD_GLOBAL
14411# define LT_DLGLOBAL RTLD_GLOBAL
14412#else
14413# ifdef DL_GLOBAL
14414# define LT_DLGLOBAL DL_GLOBAL
14415# else
14416# define LT_DLGLOBAL 0
14417# endif
14418#endif
14419
14420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14421 find out it does not work in some platform. */
14422#ifndef LT_DLLAZY_OR_NOW
14423# ifdef RTLD_LAZY
14424# define LT_DLLAZY_OR_NOW RTLD_LAZY
14425# else
14426# ifdef DL_LAZY
14427# define LT_DLLAZY_OR_NOW DL_LAZY
14428# else
14429# ifdef RTLD_NOW
14430# define LT_DLLAZY_OR_NOW RTLD_NOW
14431# else
14432# ifdef DL_NOW
14433# define LT_DLLAZY_OR_NOW DL_NOW
14434# else
14435# define LT_DLLAZY_OR_NOW 0
14436# endif
14437# endif
14438# endif
14439# endif
14440#endif
14441
14442#ifdef __cplusplus
14443extern "C" void exit (int);
14444#endif
14445
14446void fnord() { int i=42;}
14447int main ()
14448{
14449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14450 int status = $lt_dlunknown;
14451
14452 if (self)
14453 {
14454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14455 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14456 /* dlclose (self); */
14457 }
14458
14459 exit (status);
14460}
14461EOF
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14467 (./conftest; exit; ) 2>/dev/null
14468 lt_status=$?
14469 case x$lt_status in
14470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14472 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14473 esac
14474 else :
14475 # compilation failed
14476 lt_cv_dlopen_self=no
14477 fi
14478fi
14479rm -fr conftest*
14480
14481
14482fi
14483echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14484echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14485
14486 if test "x$lt_cv_dlopen_self" = xyes; then
14487 LDFLAGS="$LDFLAGS $link_static_flag"
14488 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14489echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14490if test "${lt_cv_dlopen_self_static+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493 if test "$cross_compiling" = yes; then :
14494 lt_cv_dlopen_self_static=cross
14495else
John Criswell47fdd832003-07-14 16:52:07 +000014496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014497 lt_status=$lt_dlunknown
14498 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000014499#line 14499 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014500#include "confdefs.h"
14501
14502#if HAVE_DLFCN_H
14503#include <dlfcn.h>
14504#endif
14505
14506#include <stdio.h>
14507
14508#ifdef RTLD_GLOBAL
14509# define LT_DLGLOBAL RTLD_GLOBAL
14510#else
14511# ifdef DL_GLOBAL
14512# define LT_DLGLOBAL DL_GLOBAL
14513# else
14514# define LT_DLGLOBAL 0
14515# endif
14516#endif
14517
14518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14519 find out it does not work in some platform. */
14520#ifndef LT_DLLAZY_OR_NOW
14521# ifdef RTLD_LAZY
14522# define LT_DLLAZY_OR_NOW RTLD_LAZY
14523# else
14524# ifdef DL_LAZY
14525# define LT_DLLAZY_OR_NOW DL_LAZY
14526# else
14527# ifdef RTLD_NOW
14528# define LT_DLLAZY_OR_NOW RTLD_NOW
14529# else
14530# ifdef DL_NOW
14531# define LT_DLLAZY_OR_NOW DL_NOW
14532# else
14533# define LT_DLLAZY_OR_NOW 0
14534# endif
14535# endif
14536# endif
14537# endif
14538#endif
14539
14540#ifdef __cplusplus
14541extern "C" void exit (int);
14542#endif
14543
14544void fnord() { int i=42;}
14545int main ()
14546{
14547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14548 int status = $lt_dlunknown;
14549
14550 if (self)
14551 {
14552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14554 /* dlclose (self); */
14555 }
14556
14557 exit (status);
14558}
14559EOF
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14565 (./conftest; exit; ) 2>/dev/null
14566 lt_status=$?
14567 case x$lt_status in
14568 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14569 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14570 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14571 esac
14572 else :
14573 # compilation failed
14574 lt_cv_dlopen_self_static=no
14575 fi
14576fi
14577rm -fr conftest*
14578
14579
14580fi
14581echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14582echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14583 fi
14584
14585 CPPFLAGS="$save_CPPFLAGS"
14586 LDFLAGS="$save_LDFLAGS"
14587 LIBS="$save_LIBS"
14588 ;;
14589 esac
14590
14591 case $lt_cv_dlopen_self in
14592 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14593 *) enable_dlopen_self=unknown ;;
14594 esac
14595
14596 case $lt_cv_dlopen_self_static in
14597 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14598 *) enable_dlopen_self_static=unknown ;;
14599 esac
14600fi
14601
14602
John Criswell47fdd832003-07-14 16:52:07 +000014603# Report which librarie types wil actually be built
14604echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14605echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14606echo "$as_me:$LINENO: result: $can_build_shared" >&5
14607echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014608
John Criswell47fdd832003-07-14 16:52:07 +000014609echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14610echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14611test "$can_build_shared" = "no" && enable_shared=no
14612
14613# On AIX, shared libraries and static libraries use the same namespace, and
14614# are all built from PIC.
14615case "$host_os" in
14616aix3*)
14617 test "$enable_shared" = yes && enable_static=no
14618 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014619 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014620 postinstall_cmds='$RANLIB $lib'
14621 fi
14622 ;;
14623
Reid Spencer2706f8c2004-09-19 23:53:36 +000014624aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014625 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14626 test "$enable_shared" = yes && enable_static=no
14627 fi
John Criswell7a73b802003-06-30 21:59:07 +000014628 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014629esac
14630echo "$as_me:$LINENO: result: $enable_shared" >&5
14631echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014632
John Criswell47fdd832003-07-14 16:52:07 +000014633echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14634echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14635# Make sure either enable_shared or enable_static is yes.
14636test "$enable_shared" = yes || enable_static=yes
14637echo "$as_me:$LINENO: result: $enable_static" >&5
14638echo "${ECHO_T}$enable_static" >&6
14639
14640# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014641# libtool distribution, otherwise you forgot to ship ltmain.sh
14642# with your package, and you will get complaints that there are
14643# no rules to generate ltmain.sh.
14644if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014645 # See if we are running on zsh, and set the options which allow our commands through
14646 # without removal of \ escapes.
14647 if test -n "${ZSH_VERSION+set}" ; then
14648 setopt NO_GLOB_SUBST
14649 fi
John Criswell7a73b802003-06-30 21:59:07 +000014650 # Now quote all the things that may contain metacharacters while being
14651 # careful not to overquote the AC_SUBSTed values. We take copies of the
14652 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014653 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14654 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014655 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14656 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14657 deplibs_check_method reload_flag reload_cmds need_locks \
14658 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14659 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014660 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014661 old_postinstall_cmds old_postuninstall_cmds \
14662 compiler \
14663 CC \
14664 LD \
14665 lt_prog_compiler_wl \
14666 lt_prog_compiler_pic \
14667 lt_prog_compiler_static \
14668 lt_prog_compiler_no_builtin_flag \
14669 export_dynamic_flag_spec \
14670 thread_safe_flag_spec \
14671 whole_archive_flag_spec \
14672 enable_shared_with_static_runtimes \
14673 old_archive_cmds \
14674 old_archive_from_new_cmds \
14675 predep_objects \
14676 postdep_objects \
14677 predeps \
14678 postdeps \
14679 compiler_lib_search_path \
14680 archive_cmds \
14681 archive_expsym_cmds \
14682 postinstall_cmds \
14683 postuninstall_cmds \
14684 old_archive_from_expsyms_cmds \
14685 allow_undefined_flag \
14686 no_undefined_flag \
14687 export_symbols_cmds \
14688 hardcode_libdir_flag_spec \
14689 hardcode_libdir_flag_spec_ld \
14690 hardcode_libdir_separator \
14691 hardcode_automatic \
14692 module_cmds \
14693 module_expsym_cmds \
14694 lt_cv_prog_compiler_c_o \
14695 exclude_expsyms \
14696 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014697
14698 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014699 old_archive_cmds | \
14700 old_archive_from_new_cmds | \
14701 archive_cmds | \
14702 archive_expsym_cmds | \
14703 module_cmds | \
14704 module_expsym_cmds | \
14705 old_archive_from_expsyms_cmds | \
14706 export_symbols_cmds | \
14707 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014708 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014709 old_postinstall_cmds | old_postuninstall_cmds | \
14710 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014711 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014712 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 +000014713 ;;
14714 *)
14715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14716 ;;
14717 esac
14718 done
14719
John Criswell47fdd832003-07-14 16:52:07 +000014720 case $lt_echo in
14721 *'\$0 --fallback-echo"')
14722 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14723 ;;
14724 esac
14725
14726cfgfile="${ofile}T"
14727 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14728 $rm -f "$cfgfile"
14729 { echo "$as_me:$LINENO: creating $ofile" >&5
14730echo "$as_me: creating $ofile" >&6;}
14731
14732 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014733#! $SHELL
14734
John Criswell47fdd832003-07-14 16:52:07 +000014735# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014736# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14737# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14738#
John Criswell47fdd832003-07-14 16:52:07 +000014739# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14740# Free Software Foundation, Inc.
14741#
14742# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014743# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14744#
14745# This program is free software; you can redistribute it and/or modify
14746# it under the terms of the GNU General Public License as published by
14747# the Free Software Foundation; either version 2 of the License, or
14748# (at your option) any later version.
14749#
14750# This program is distributed in the hope that it will be useful, but
14751# WITHOUT ANY WARRANTY; without even the implied warranty of
14752# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14753# General Public License for more details.
14754#
14755# You should have received a copy of the GNU General Public License
14756# along with this program; if not, write to the Free Software
14757# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14758#
14759# As a special exception to the GNU General Public License, if you
14760# distribute this file as part of a program that contains a
14761# configuration script generated by Autoconf, you may include it under
14762# the same distribution terms that you use for the rest of that program.
14763
John Criswell47fdd832003-07-14 16:52:07 +000014764# A sed program that does not truncate output.
14765SED=$lt_SED
14766
John Criswell7a73b802003-06-30 21:59:07 +000014767# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014768Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014769
14770# The HP-UX ksh and POSIX shell print the target directory to stdout
14771# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014772(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014773
John Criswell47fdd832003-07-14 16:52:07 +000014774# The names of the tagged configurations supported by this script.
14775available_tags=
14776
John Criswell7a73b802003-06-30 21:59:07 +000014777# ### BEGIN LIBTOOL CONFIG
14778
14779# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14780
14781# Shell to use when invoking shell scripts.
14782SHELL=$lt_SHELL
14783
14784# Whether or not to build shared libraries.
14785build_libtool_libs=$enable_shared
14786
14787# Whether or not to build static libraries.
14788build_old_libs=$enable_static
14789
14790# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014791build_libtool_need_lc=$archive_cmds_need_lc
14792
14793# Whether or not to disallow shared libs when runtime libs are static
14794allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014795
14796# Whether or not to optimize for fast installation.
14797fast_install=$enable_fast_install
14798
14799# The host system.
14800host_alias=$host_alias
14801host=$host
14802
14803# An echo program that does not interpret backslashes.
14804echo=$lt_echo
14805
14806# The archiver.
14807AR=$lt_AR
14808AR_FLAGS=$lt_AR_FLAGS
14809
John Criswell47fdd832003-07-14 16:52:07 +000014810# A C compiler.
14811LTCC=$lt_LTCC
14812
14813# A language-specific compiler.
14814CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014815
14816# Is the compiler the GNU C compiler?
14817with_gcc=$GCC
14818
John Criswell47fdd832003-07-14 16:52:07 +000014819# An ERE matcher.
14820EGREP=$lt_EGREP
14821
John Criswell7a73b802003-06-30 21:59:07 +000014822# The linker used to build libraries.
14823LD=$lt_LD
14824
14825# Whether we need hard or soft links.
14826LN_S=$lt_LN_S
14827
14828# A BSD-compatible nm program.
14829NM=$lt_NM
14830
14831# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014832STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014833
14834# Used to examine libraries when file_magic_cmd begins "file"
14835MAGIC_CMD=$MAGIC_CMD
14836
14837# Used on cygwin: DLL creation program.
14838DLLTOOL="$DLLTOOL"
14839
14840# Used on cygwin: object dumper.
14841OBJDUMP="$OBJDUMP"
14842
14843# Used on cygwin: assembler.
14844AS="$AS"
14845
14846# The name of the directory that contains temporary libtool files.
14847objdir=$objdir
14848
14849# How to create reloadable object files.
14850reload_flag=$lt_reload_flag
14851reload_cmds=$lt_reload_cmds
14852
14853# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014854wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014855
14856# Object file suffix (normally "o").
14857objext="$ac_objext"
14858
14859# Old archive suffix (normally "a").
14860libext="$libext"
14861
John Criswell47fdd832003-07-14 16:52:07 +000014862# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014863shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014864
John Criswell7a73b802003-06-30 21:59:07 +000014865# Executable file suffix (normally "").
14866exeext="$exeext"
14867
14868# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014869pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014870pic_mode=$pic_mode
14871
John Criswell47fdd832003-07-14 16:52:07 +000014872# What is the maximum length of a command?
14873max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014874
John Criswell47fdd832003-07-14 16:52:07 +000014875# Does compiler simultaneously support -c and -o options?
14876compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014877
14878# Must we lock files when doing compilation ?
14879need_locks=$lt_need_locks
14880
14881# Do we need the lib prefix for modules?
14882need_lib_prefix=$need_lib_prefix
14883
14884# Do we need a version for libraries?
14885need_version=$need_version
14886
14887# Whether dlopen is supported.
14888dlopen_support=$enable_dlopen
14889
14890# Whether dlopen of programs is supported.
14891dlopen_self=$enable_dlopen_self
14892
14893# Whether dlopen of statically linked programs is supported.
14894dlopen_self_static=$enable_dlopen_self_static
14895
14896# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014897link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014898
14899# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014900no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014901
14902# Compiler flag to allow reflexive dlopens.
14903export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14904
14905# Compiler flag to generate shared objects directly from archives.
14906whole_archive_flag_spec=$lt_whole_archive_flag_spec
14907
14908# Compiler flag to generate thread-safe objects.
14909thread_safe_flag_spec=$lt_thread_safe_flag_spec
14910
14911# Library versioning type.
14912version_type=$version_type
14913
14914# Format of library name prefix.
14915libname_spec=$lt_libname_spec
14916
14917# List of archive names. First name is the real one, the rest are links.
14918# The last name is the one that the linker finds with -lNAME.
14919library_names_spec=$lt_library_names_spec
14920
14921# The coded name of the library, if different from the real name.
14922soname_spec=$lt_soname_spec
14923
14924# Commands used to build and install an old-style archive.
14925RANLIB=$lt_RANLIB
14926old_archive_cmds=$lt_old_archive_cmds
14927old_postinstall_cmds=$lt_old_postinstall_cmds
14928old_postuninstall_cmds=$lt_old_postuninstall_cmds
14929
14930# Create an old-style archive from a shared archive.
14931old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14932
14933# Create a temporary old-style archive to link instead of a shared archive.
14934old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14935
14936# Commands used to build and install a shared archive.
14937archive_cmds=$lt_archive_cmds
14938archive_expsym_cmds=$lt_archive_expsym_cmds
14939postinstall_cmds=$lt_postinstall_cmds
14940postuninstall_cmds=$lt_postuninstall_cmds
14941
John Criswell47fdd832003-07-14 16:52:07 +000014942# Commands used to build a loadable module (assumed same as above if empty)
14943module_cmds=$lt_module_cmds
14944module_expsym_cmds=$lt_module_expsym_cmds
14945
John Criswell7a73b802003-06-30 21:59:07 +000014946# Commands to strip libraries.
14947old_striplib=$lt_old_striplib
14948striplib=$lt_striplib
14949
John Criswell47fdd832003-07-14 16:52:07 +000014950# Dependencies to place before the objects being linked to create a
14951# shared library.
14952predep_objects=$lt_predep_objects
14953
14954# Dependencies to place after the objects being linked to create a
14955# shared library.
14956postdep_objects=$lt_postdep_objects
14957
14958# Dependencies to place before the objects being linked to create a
14959# shared library.
14960predeps=$lt_predeps
14961
14962# Dependencies to place after the objects being linked to create a
14963# shared library.
14964postdeps=$lt_postdeps
14965
14966# The library search path used internally by the compiler when linking
14967# a shared library.
14968compiler_lib_search_path=$lt_compiler_lib_search_path
14969
John Criswell7a73b802003-06-30 21:59:07 +000014970# Method to check whether dependent libraries are shared objects.
14971deplibs_check_method=$lt_deplibs_check_method
14972
14973# Command to use when deplibs_check_method == file_magic.
14974file_magic_cmd=$lt_file_magic_cmd
14975
14976# Flag that allows shared libraries with undefined symbols to be built.
14977allow_undefined_flag=$lt_allow_undefined_flag
14978
14979# Flag that forces no undefined symbols.
14980no_undefined_flag=$lt_no_undefined_flag
14981
14982# Commands used to finish a libtool library installation in a directory.
14983finish_cmds=$lt_finish_cmds
14984
14985# Same as above, but a single script fragment to be evaled but not shown.
14986finish_eval=$lt_finish_eval
14987
14988# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014990
14991# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014993
14994# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014995global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014996
14997# This is the shared library runtime path variable.
14998runpath_var=$runpath_var
14999
15000# This is the shared library path variable.
15001shlibpath_var=$shlibpath_var
15002
15003# Is shlibpath searched before the hard-coded library search path?
15004shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15005
15006# How to hardcode a shared library path into an executable.
15007hardcode_action=$hardcode_action
15008
15009# Whether we should hardcode library paths into libraries.
15010hardcode_into_libs=$hardcode_into_libs
15011
15012# Flag to hardcode \$libdir into a binary during linking.
15013# This must work even if \$libdir does not exist.
15014hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15015
John Criswell47fdd832003-07-14 16:52:07 +000015016# If ld is used when linking, flag to hardcode \$libdir into
15017# a binary during linking. This must work even if \$libdir does
15018# not exist.
15019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15020
John Criswell7a73b802003-06-30 21:59:07 +000015021# Whether we need a single -rpath flag with a separated argument.
15022hardcode_libdir_separator=$lt_hardcode_libdir_separator
15023
John Criswell47fdd832003-07-14 16:52:07 +000015024# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015025# resulting binary.
15026hardcode_direct=$hardcode_direct
15027
15028# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15029# resulting binary.
15030hardcode_minus_L=$hardcode_minus_L
15031
15032# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15033# the resulting binary.
15034hardcode_shlibpath_var=$hardcode_shlibpath_var
15035
John Criswell47fdd832003-07-14 16:52:07 +000015036# Set to yes if building a shared library automatically hardcodes DIR into the library
15037# and all subsequent libraries and executables linked against it.
15038hardcode_automatic=$hardcode_automatic
15039
John Criswell7a73b802003-06-30 21:59:07 +000015040# Variables whose values should be saved in libtool wrapper scripts and
15041# restored at relink time.
15042variables_saved_for_relink="$variables_saved_for_relink"
15043
15044# Whether libtool must link a program against all its dependency libraries.
15045link_all_deplibs=$link_all_deplibs
15046
15047# Compile-time system search path for libraries
15048sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15049
15050# Run-time system search path for libraries
15051sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15052
15053# Fix the shell variable \$srcfile for the compiler.
15054fix_srcfile_path="$fix_srcfile_path"
15055
15056# Set to yes if exported symbols are required.
15057always_export_symbols=$always_export_symbols
15058
15059# The commands to list exported symbols.
15060export_symbols_cmds=$lt_export_symbols_cmds
15061
15062# The commands to extract the exported symbol list from a shared archive.
15063extract_expsyms_cmds=$lt_extract_expsyms_cmds
15064
15065# Symbols that should not be listed in the preloaded symbols.
15066exclude_expsyms=$lt_exclude_expsyms
15067
15068# Symbols that must always be exported.
15069include_expsyms=$lt_include_expsyms
15070
15071# ### END LIBTOOL CONFIG
15072
15073__EOF__
15074
John Criswell47fdd832003-07-14 16:52:07 +000015075
John Criswell7a73b802003-06-30 21:59:07 +000015076 case $host_os in
15077 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015078 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015079
15080# AIX sometimes has problems with the GCC collect2 program. For some
15081# reason, if we set the COLLECT_NAMES environment variable, the problems
15082# vanish in a puff of smoke.
15083if test "X${COLLECT_NAMES+set}" != Xset; then
15084 COLLECT_NAMES=
15085 export COLLECT_NAMES
15086fi
15087EOF
15088 ;;
15089 esac
15090
John Criswell7a73b802003-06-30 21:59:07 +000015091 # We use sed instead of cat because bash on DJGPP gets confused if
15092 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15093 # text mode, it properly converts lines to CR/LF. This bash problem
15094 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015095 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015096
John Criswell47fdd832003-07-14 16:52:07 +000015097 mv -f "$cfgfile" "$ofile" || \
15098 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015099 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015100
15101else
15102 # If there is no Makefile yet, we rely on a make rule to execute
15103 # `config.status --recheck' to rerun these tests and create the
15104 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15106 if test -f "$ltmain_in"; then
15107 test -f Makefile && make "$ltmain"
15108 fi
John Criswell7a73b802003-06-30 21:59:07 +000015109fi
John Criswell7a73b802003-06-30 21:59:07 +000015110
15111
John Criswell47fdd832003-07-14 16:52:07 +000015112ac_ext=c
15113ac_cpp='$CPP $CPPFLAGS'
15114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116ac_compiler_gnu=$ac_cv_c_compiler_gnu
15117
15118CC="$lt_save_CC"
15119
15120
15121# Check whether --with-tags or --without-tags was given.
15122if test "${with_tags+set}" = set; then
15123 withval="$with_tags"
15124 tagnames="$withval"
15125fi;
15126
15127if test -f "$ltmain" && test -n "$tagnames"; then
15128 if test ! -f "${ofile}"; then
15129 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15130echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15131 fi
15132
15133 if test -z "$LTCC"; then
15134 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15135 if test -z "$LTCC"; then
15136 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15137echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15138 else
15139 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15140echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15141 fi
15142 fi
15143
15144 # Extract list of available tagged configurations in $ofile.
15145 # Note that this assumes the entire list is on one line.
15146 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15147
15148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15149 for tagname in $tagnames; do
15150 IFS="$lt_save_ifs"
15151 # Check whether tagname contains only valid characters
15152 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15153 "") ;;
15154 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15155echo "$as_me: error: invalid tag name: $tagname" >&2;}
15156 { (exit 1); exit 1; }; }
15157 ;;
15158 esac
15159
15160 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15161 then
15162 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15163echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15164 { (exit 1); exit 1; }; }
15165 fi
15166
15167 # Update the list of available tags.
15168 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015169 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015170
15171 case $tagname in
15172 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15175 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015176 ac_ext=cc
15177ac_cpp='$CXXCPP $CPPFLAGS'
15178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15181
15182
15183
15184
15185archive_cmds_need_lc_CXX=no
15186allow_undefined_flag_CXX=
15187always_export_symbols_CXX=no
15188archive_expsym_cmds_CXX=
15189export_dynamic_flag_spec_CXX=
15190hardcode_direct_CXX=no
15191hardcode_libdir_flag_spec_CXX=
15192hardcode_libdir_flag_spec_ld_CXX=
15193hardcode_libdir_separator_CXX=
15194hardcode_minus_L_CXX=no
15195hardcode_automatic_CXX=no
15196module_cmds_CXX=
15197module_expsym_cmds_CXX=
15198link_all_deplibs_CXX=unknown
15199old_archive_cmds_CXX=$old_archive_cmds
15200no_undefined_flag_CXX=
15201whole_archive_flag_spec_CXX=
15202enable_shared_with_static_runtimes_CXX=no
15203
15204# Dependencies to place before and after the object being linked:
15205predep_objects_CXX=
15206postdep_objects_CXX=
15207predeps_CXX=
15208postdeps_CXX=
15209compiler_lib_search_path_CXX=
15210
15211# Source file extension for C++ test sources.
15212ac_ext=cc
15213
15214# Object file extension for compiled C++ test sources.
15215objext=o
15216objext_CXX=$objext
15217
15218# Code to be used in simple compile tests
15219lt_simple_compile_test_code="int some_variable = 0;\n"
15220
15221# Code to be used in simple link tests
15222lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15223
15224# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15225
15226# If no C compiler was specified, use CC.
15227LTCC=${LTCC-"$CC"}
15228
15229# Allow CC to be a program name with arguments.
15230compiler=$CC
15231
15232
15233# Allow CC to be a program name with arguments.
15234lt_save_CC=$CC
15235lt_save_LD=$LD
15236lt_save_GCC=$GCC
15237GCC=$GXX
15238lt_save_with_gnu_ld=$with_gnu_ld
15239lt_save_path_LD=$lt_cv_path_LD
15240if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15241 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15242else
15243 unset lt_cv_prog_gnu_ld
15244fi
15245if test -n "${lt_cv_path_LDCXX+set}"; then
15246 lt_cv_path_LD=$lt_cv_path_LDCXX
15247else
15248 unset lt_cv_path_LD
15249fi
15250test -z "${LDCXX+set}" || LD=$LDCXX
15251CC=${CXX-"c++"}
15252compiler=$CC
15253compiler_CXX=$CC
15254cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15255
15256# We don't want -fno-exception wen compiling C++ code, so set the
15257# no_builtin_flag separately
15258if test "$GXX" = yes; then
15259 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15260else
15261 lt_prog_compiler_no_builtin_flag_CXX=
15262fi
15263
15264if test "$GXX" = yes; then
15265 # Set up default GNU C++ configuration
15266
15267
15268# Check whether --with-gnu-ld or --without-gnu-ld was given.
15269if test "${with_gnu_ld+set}" = set; then
15270 withval="$with_gnu_ld"
15271 test "$withval" = no || with_gnu_ld=yes
15272else
15273 with_gnu_ld=no
15274fi;
15275ac_prog=ld
15276if test "$GCC" = yes; then
15277 # Check if gcc -print-prog-name=ld gives a path.
15278 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15279echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15280 case $host in
15281 *-*-mingw*)
15282 # gcc leaves a trailing carriage return which upsets mingw
15283 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15284 *)
15285 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15286 esac
15287 case $ac_prog in
15288 # Accept absolute paths.
15289 [\\/]* | ?:[\\/]*)
15290 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015291 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015292 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15293 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15294 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15295 done
15296 test -z "$LD" && LD="$ac_prog"
15297 ;;
15298 "")
15299 # If it fails, then pretend we aren't using GCC.
15300 ac_prog=ld
15301 ;;
15302 *)
15303 # If it is relative, then search for the first ld in PATH.
15304 with_gnu_ld=unknown
15305 ;;
15306 esac
15307elif test "$with_gnu_ld" = yes; then
15308 echo "$as_me:$LINENO: checking for GNU ld" >&5
15309echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15310else
15311 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15312echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15313fi
15314if test "${lt_cv_path_LD+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317 if test -z "$LD"; then
15318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15319 for ac_dir in $PATH; do
15320 IFS="$lt_save_ifs"
15321 test -z "$ac_dir" && ac_dir=.
15322 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15323 lt_cv_path_LD="$ac_dir/$ac_prog"
15324 # Check to see if the program is GNU ld. I'd rather use --version,
15325 # but apparently some GNU ld's only accept -v.
15326 # Break only if it was the GNU/non-GNU ld that we prefer.
15327 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15328 *GNU* | *'with BFD'*)
15329 test "$with_gnu_ld" != no && break
15330 ;;
15331 *)
15332 test "$with_gnu_ld" != yes && break
15333 ;;
15334 esac
15335 fi
15336 done
15337 IFS="$lt_save_ifs"
15338else
15339 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15340fi
15341fi
15342
15343LD="$lt_cv_path_LD"
15344if test -n "$LD"; then
15345 echo "$as_me:$LINENO: result: $LD" >&5
15346echo "${ECHO_T}$LD" >&6
15347else
15348 echo "$as_me:$LINENO: result: no" >&5
15349echo "${ECHO_T}no" >&6
15350fi
15351test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15352echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15353 { (exit 1); exit 1; }; }
15354echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15355echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15356if test "${lt_cv_prog_gnu_ld+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358else
15359 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015360case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015361*GNU* | *'with BFD'*)
15362 lt_cv_prog_gnu_ld=yes
15363 ;;
15364*)
15365 lt_cv_prog_gnu_ld=no
15366 ;;
15367esac
15368fi
15369echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15370echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15371with_gnu_ld=$lt_cv_prog_gnu_ld
15372
15373
15374
15375 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15376 # archiving commands below assume that GNU ld is being used.
15377 if test "$with_gnu_ld" = yes; then
15378 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15379 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'
15380
15381 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15383
15384 # If archive_cmds runs LD, not CC, wlarc should be empty
15385 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15386 # investigate it a little bit more. (MM)
15387 wlarc='${wl}'
15388
15389 # ancient GNU ld didn't support --whole-archive et. al.
15390 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15391 grep 'no-whole-archive' > /dev/null; then
15392 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15393 else
15394 whole_archive_flag_spec_CXX=
15395 fi
15396 else
15397 with_gnu_ld=no
15398 wlarc=
15399
15400 # A generic and very simple default shared library creation
15401 # command for GNU C++ for the case where it uses the native
15402 # linker, instead of GNU ld. If possible, this setting should
15403 # overridden to take advantage of the native linker features on
15404 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015405 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015406 fi
15407
15408 # Commands to make compiler produce verbose output that lists
15409 # what "hidden" libraries, object files and flags are used when
15410 # linking a shared library.
15411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15412
15413else
15414 GXX=no
15415 with_gnu_ld=no
15416 wlarc=
15417fi
15418
15419# PORTME: fill in a description of your system's C++ link characteristics
15420echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15421echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15422ld_shlibs_CXX=yes
15423case $host_os in
15424 aix3*)
15425 # FIXME: insert proper C++ library support
15426 ld_shlibs_CXX=no
15427 ;;
15428 aix4* | aix5*)
15429 if test "$host_cpu" = ia64; then
15430 # On IA64, the linker does run time linking by default, so we don't
15431 # have to do anything special.
15432 aix_use_runtimelinking=no
15433 exp_sym_flag='-Bexport'
15434 no_entry_flag=""
15435 else
15436 aix_use_runtimelinking=no
15437
15438 # Test if we are trying to use run time linking or normal
15439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15440 # need to do runtime linking.
15441 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15442 for ld_flag in $LDFLAGS; do
15443 case $ld_flag in
15444 *-brtl*)
15445 aix_use_runtimelinking=yes
15446 break
15447 ;;
15448 esac
15449 done
15450 esac
15451
15452 exp_sym_flag='-bexport'
15453 no_entry_flag='-bnoentry'
15454 fi
15455
15456 # When large executables or shared objects are built, AIX ld can
15457 # have problems creating the table of contents. If linking a library
15458 # or program results in "error TOC overflow" add -mminimal-toc to
15459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15461
15462 archive_cmds_CXX=''
15463 hardcode_direct_CXX=yes
15464 hardcode_libdir_separator_CXX=':'
15465 link_all_deplibs_CXX=yes
15466
15467 if test "$GXX" = yes; then
15468 case $host_os in aix4.012|aix4.012.*)
15469 # We only want to do this on AIX 4.2 and lower, the check
15470 # below for broken collect2 doesn't work under 4.3+
15471 collect2name=`${CC} -print-prog-name=collect2`
15472 if test -f "$collect2name" && \
15473 strings "$collect2name" | grep resolve_lib_name >/dev/null
15474 then
15475 # We have reworked collect2
15476 hardcode_direct_CXX=yes
15477 else
15478 # We have old collect2
15479 hardcode_direct_CXX=unsupported
15480 # It fails to find uninstalled libraries when the uninstalled
15481 # path is not listed in the libpath. Setting hardcode_minus_L
15482 # to unsupported forces relinking
15483 hardcode_minus_L_CXX=yes
15484 hardcode_libdir_flag_spec_CXX='-L$libdir'
15485 hardcode_libdir_separator_CXX=
15486 fi
15487 esac
15488 shared_flag='-shared'
15489 else
15490 # not using gcc
15491 if test "$host_cpu" = ia64; then
15492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15493 # chokes on -Wl,-G. The following line is correct:
15494 shared_flag='-G'
15495 else
15496 if test "$aix_use_runtimelinking" = yes; then
15497 shared_flag='${wl}-G'
15498 else
15499 shared_flag='${wl}-bM:SRE'
15500 fi
15501 fi
15502 fi
15503
15504 # It seems that -bexpall does not export symbols beginning with
15505 # underscore (_), so it is better to generate a list of symbols to export.
15506 always_export_symbols_CXX=yes
15507 if test "$aix_use_runtimelinking" = yes; then
15508 # Warning - without using the other runtime loading flags (-brtl),
15509 # -berok will link without error, but may produce a broken library.
15510 allow_undefined_flag_CXX='-berok'
15511 # Determine the default libpath from the value encoded in an empty executable.
15512 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015513/* confdefs.h. */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015518
John Criswell47fdd832003-07-14 16:52:07 +000015519int
15520main ()
15521{
15522
15523 ;
15524 return 0;
15525}
15526_ACEOF
15527rm -f conftest.$ac_objext conftest$ac_exeext
15528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015529 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015530 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015536 { ac_try='test -z "$ac_cxx_werror_flag"
15537 || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549
15550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15551}'`
15552# Check for a 64-bit object if we didn't find anything.
15553if 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; }
15554}'`; fi
15555else
15556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015557sed 's/^/| /' conftest.$ac_ext >&5
15558
John Criswell47fdd832003-07-14 16:52:07 +000015559fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015560rm -f conftest.err conftest.$ac_objext \
15561 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15563
15564 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15565
15566 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"
15567 else
15568 if test "$host_cpu" = ia64; then
15569 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15570 allow_undefined_flag_CXX="-z nodefs"
15571 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"
15572 else
15573 # Determine the default libpath from the value encoded in an empty executable.
15574 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015575/* confdefs.h. */
15576_ACEOF
15577cat confdefs.h >>conftest.$ac_ext
15578cat >>conftest.$ac_ext <<_ACEOF
15579/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015580
John Criswell47fdd832003-07-14 16:52:07 +000015581int
15582main ()
15583{
15584
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext conftest$ac_exeext
15590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015591 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015598 { ac_try='test -z "$ac_cxx_werror_flag"
15599 || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611
15612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15613}'`
15614# Check for a 64-bit object if we didn't find anything.
15615if 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; }
15616}'`; fi
15617else
15618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015619sed 's/^/| /' conftest.$ac_ext >&5
15620
John Criswell47fdd832003-07-14 16:52:07 +000015621fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015622rm -f conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15625
15626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15627 # Warning - without using the other run time loading flags,
15628 # -berok will link without error, but may produce a broken library.
15629 no_undefined_flag_CXX=' ${wl}-bernotok'
15630 allow_undefined_flag_CXX=' ${wl}-berok'
15631 # -bexpall does not export symbols beginning with underscore (_)
15632 always_export_symbols_CXX=yes
15633 # Exported symbols can be pulled into shared objects from archives
15634 whole_archive_flag_spec_CXX=' '
15635 archive_cmds_need_lc_CXX=yes
15636 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015637 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 +000015638 fi
15639 fi
15640 ;;
15641 chorus*)
15642 case $cc_basename in
15643 *)
15644 # FIXME: insert proper C++ library support
15645 ld_shlibs_CXX=no
15646 ;;
15647 esac
15648 ;;
15649
Reid Spencer2706f8c2004-09-19 23:53:36 +000015650
John Criswell47fdd832003-07-14 16:52:07 +000015651 cygwin* | mingw* | pw32*)
15652 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15653 # as there is no search path for DLLs.
15654 hardcode_libdir_flag_spec_CXX='-L$libdir'
15655 allow_undefined_flag_CXX=unsupported
15656 always_export_symbols_CXX=no
15657 enable_shared_with_static_runtimes_CXX=yes
15658
15659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15660 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'
15661 # If the export-symbols file already is a .def file (1st line
15662 # is EXPORTS), use it as is; otherwise, prepend...
15663 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15664 cp $export_symbols $output_objdir/$soname.def;
15665 else
15666 echo EXPORTS > $output_objdir/$soname.def;
15667 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015668 fi~
15669 $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 +000015670 else
15671 ld_shlibs_CXX=no
15672 fi
15673 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015674 darwin* | rhapsody*)
15675 case "$host_os" in
15676 rhapsody* | darwin1.[012])
15677 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15678 ;;
15679 *) # Darwin 1.3 on
15680 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15681 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15682 else
15683 case ${MACOSX_DEPLOYMENT_TARGET} in
15684 10.[012])
15685 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15686 ;;
15687 10.*)
15688 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15689 ;;
15690 esac
15691 fi
15692 ;;
15693 esac
15694 archive_cmds_need_lc_CXX=no
15695 hardcode_direct_CXX=no
15696 hardcode_automatic_CXX=yes
15697 hardcode_shlibpath_var_CXX=unsupported
15698 whole_archive_flag_spec_CXX=''
15699 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015700
Reid Spencer2706f8c2004-09-19 23:53:36 +000015701 if test "$GXX" = yes ; then
15702 lt_int_apple_cc_single_mod=no
15703 output_verbose_link_cmd='echo'
15704 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15705 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015706 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015707 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015708 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 +000015709 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015710 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 +000015711 fi
15712 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15713 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15714 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015715 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 +000015716 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015717 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 +000015718 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015719 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 +000015720 else
15721 case "$cc_basename" in
15722 xlc*)
15723 output_verbose_link_cmd='echo'
15724 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'
15725 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15726 # 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 +000015727 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}'
15728 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 +000015729 ;;
15730 *)
15731 ld_shlibs_CXX=no
15732 ;;
15733 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015734 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015735 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015736
15737 dgux*)
15738 case $cc_basename in
15739 ec++)
15740 # FIXME: insert proper C++ library support
15741 ld_shlibs_CXX=no
15742 ;;
15743 ghcx)
15744 # Green Hills C++ Compiler
15745 # FIXME: insert proper C++ library support
15746 ld_shlibs_CXX=no
15747 ;;
15748 *)
15749 # FIXME: insert proper C++ library support
15750 ld_shlibs_CXX=no
15751 ;;
15752 esac
15753 ;;
15754 freebsd12*)
15755 # C++ shared libraries reported to be fairly broken before switch to ELF
15756 ld_shlibs_CXX=no
15757 ;;
15758 freebsd-elf*)
15759 archive_cmds_need_lc_CXX=no
15760 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015761 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15763 # conventions
15764 ld_shlibs_CXX=yes
15765 ;;
15766 gnu*)
15767 ;;
15768 hpux9*)
15769 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15770 hardcode_libdir_separator_CXX=:
15771 export_dynamic_flag_spec_CXX='${wl}-E'
15772 hardcode_direct_CXX=yes
15773 hardcode_minus_L_CXX=yes # Not in the search PATH,
15774 # but as the default
15775 # location of the library.
15776
15777 case $cc_basename in
15778 CC)
15779 # FIXME: insert proper C++ library support
15780 ld_shlibs_CXX=no
15781 ;;
15782 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015783 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 +000015784 # Commands to make compiler produce verbose output that lists
15785 # what "hidden" libraries, object files and flags are used when
15786 # linking a shared library.
15787 #
15788 # There doesn't appear to be a way to prevent this compiler from
15789 # explicitly linking system object files so we need to strip them
15790 # from the output so that they don't get included in the library
15791 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015792 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 +000015793 ;;
15794 *)
15795 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015796 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 +000015797 else
15798 # FIXME: insert proper C++ library support
15799 ld_shlibs_CXX=no
15800 fi
15801 ;;
15802 esac
15803 ;;
15804 hpux10*|hpux11*)
15805 if test $with_gnu_ld = no; then
15806 case "$host_cpu" in
15807 hppa*64*)
15808 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15809 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15810 hardcode_libdir_separator_CXX=:
15811 ;;
15812 ia64*)
15813 hardcode_libdir_flag_spec_CXX='-L$libdir'
15814 ;;
15815 *)
15816 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15817 hardcode_libdir_separator_CXX=:
15818 export_dynamic_flag_spec_CXX='${wl}-E'
15819 ;;
15820 esac
15821 fi
15822 case "$host_cpu" in
15823 hppa*64*)
15824 hardcode_direct_CXX=no
15825 hardcode_shlibpath_var_CXX=no
15826 ;;
15827 ia64*)
15828 hardcode_direct_CXX=no
15829 hardcode_shlibpath_var_CXX=no
15830 hardcode_minus_L_CXX=yes # Not in the search PATH,
15831 # but as the default
15832 # location of the library.
15833 ;;
15834 *)
15835 hardcode_direct_CXX=yes
15836 hardcode_minus_L_CXX=yes # Not in the search PATH,
15837 # but as the default
15838 # location of the library.
15839 ;;
15840 esac
15841
15842 case $cc_basename in
15843 CC)
15844 # FIXME: insert proper C++ library support
15845 ld_shlibs_CXX=no
15846 ;;
15847 aCC)
15848 case "$host_cpu" in
15849 hppa*64*|ia64*)
15850 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15851 ;;
15852 *)
15853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15854 ;;
15855 esac
15856 # Commands to make compiler produce verbose output that lists
15857 # what "hidden" libraries, object files and flags are used when
15858 # linking a shared library.
15859 #
15860 # There doesn't appear to be a way to prevent this compiler from
15861 # explicitly linking system object files so we need to strip them
15862 # from the output so that they don't get included in the library
15863 # dependencies.
15864 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'
15865 ;;
15866 *)
15867 if test "$GXX" = yes; then
15868 if test $with_gnu_ld = no; then
15869 case "$host_cpu" in
15870 ia64*|hppa*64*)
15871 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15872 ;;
15873 *)
15874 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'
15875 ;;
15876 esac
15877 fi
15878 else
15879 # FIXME: insert proper C++ library support
15880 ld_shlibs_CXX=no
15881 fi
15882 ;;
15883 esac
15884 ;;
15885 irix5* | irix6*)
15886 case $cc_basename in
15887 CC)
15888 # SGI C++
15889 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'
15890
15891 # Archives containing C++ object files must be created using
15892 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15893 # necessary to make sure instantiated templates are included
15894 # in the archive.
15895 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15896 ;;
15897 *)
15898 if test "$GXX" = yes; then
15899 if test "$with_gnu_ld" = no; then
15900 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'
15901 else
15902 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'
15903 fi
15904 fi
15905 link_all_deplibs_CXX=yes
15906 ;;
15907 esac
15908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15909 hardcode_libdir_separator_CXX=:
15910 ;;
15911 linux*)
15912 case $cc_basename in
15913 KCC)
15914 # Kuck and Associates, Inc. (KAI) C++ Compiler
15915
15916 # KCC will only create a shared library if the output file
15917 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15918 # to its proper name (with version) after linking.
15919 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'
15920 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'
15921 # Commands to make compiler produce verbose output that lists
15922 # what "hidden" libraries, object files and flags are used when
15923 # linking a shared library.
15924 #
15925 # There doesn't appear to be a way to prevent this compiler from
15926 # explicitly linking system object files so we need to strip them
15927 # from the output so that they don't get included in the library
15928 # dependencies.
15929 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'
15930
15931 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15933
15934 # Archives containing C++ object files must be created using
15935 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15936 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15937 ;;
15938 icpc)
15939 # Intel C++
15940 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015941 # version 8.0 and above of icpc choke on multiply defined symbols
15942 # if we add $predep_objects and $postdep_objects, however 7.1 and
15943 # earlier do not add the objects themselves.
15944 case `$CC -V 2>&1` in
15945 *"Version 7."*)
15946 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947 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'
15948 ;;
15949 *) # Version 8.0 or newer
15950 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15952 ;;
15953 esac
John Criswell47fdd832003-07-14 16:52:07 +000015954 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15956 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15957 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15958 ;;
15959 cxx)
15960 # Compaq C++
15961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962 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'
15963
15964 runpath_var=LD_RUN_PATH
15965 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15966 hardcode_libdir_separator_CXX=:
15967
15968 # Commands to make compiler produce verbose output that lists
15969 # what "hidden" libraries, object files and flags are used when
15970 # linking a shared library.
15971 #
15972 # There doesn't appear to be a way to prevent this compiler from
15973 # explicitly linking system object files so we need to strip them
15974 # from the output so that they don't get included in the library
15975 # dependencies.
15976 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'
15977 ;;
15978 esac
15979 ;;
15980 lynxos*)
15981 # FIXME: insert proper C++ library support
15982 ld_shlibs_CXX=no
15983 ;;
15984 m88k*)
15985 # FIXME: insert proper C++ library support
15986 ld_shlibs_CXX=no
15987 ;;
15988 mvs*)
15989 case $cc_basename in
15990 cxx)
15991 # FIXME: insert proper C++ library support
15992 ld_shlibs_CXX=no
15993 ;;
15994 *)
15995 # FIXME: insert proper C++ library support
15996 ld_shlibs_CXX=no
15997 ;;
15998 esac
15999 ;;
16000 netbsd*)
16001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16003 wlarc=
16004 hardcode_libdir_flag_spec_CXX='-R$libdir'
16005 hardcode_direct_CXX=yes
16006 hardcode_shlibpath_var_CXX=no
16007 fi
16008 # Workaround some broken pre-1.5 toolchains
16009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16010 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016011 openbsd2*)
16012 # C++ shared libraries are fairly broken
16013 ld_shlibs_CXX=no
16014 ;;
16015 openbsd*)
16016 hardcode_direct_CXX=yes
16017 hardcode_shlibpath_var_CXX=no
16018 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16019 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16021 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16022 export_dynamic_flag_spec_CXX='${wl}-E'
16023 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16024 fi
16025 output_verbose_link_cmd='echo'
16026 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016027 osf3*)
16028 case $cc_basename in
16029 KCC)
16030 # Kuck and Associates, Inc. (KAI) C++ Compiler
16031
16032 # KCC will only create a shared library if the output file
16033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16034 # to its proper name (with version) after linking.
16035 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'
16036
16037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16038 hardcode_libdir_separator_CXX=:
16039
16040 # Archives containing C++ object files must be created using
16041 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16042 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16043
16044 ;;
16045 RCC)
16046 # Rational C++ 2.4.1
16047 # FIXME: insert proper C++ library support
16048 ld_shlibs_CXX=no
16049 ;;
16050 cxx)
16051 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16052 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'
16053
16054 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16055 hardcode_libdir_separator_CXX=:
16056
16057 # Commands to make compiler produce verbose output that lists
16058 # what "hidden" libraries, object files and flags are used when
16059 # linking a shared library.
16060 #
16061 # There doesn't appear to be a way to prevent this compiler from
16062 # explicitly linking system object files so we need to strip them
16063 # from the output so that they don't get included in the library
16064 # dependencies.
16065 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'
16066 ;;
16067 *)
16068 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16070 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'
16071
16072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16073 hardcode_libdir_separator_CXX=:
16074
16075 # Commands to make compiler produce verbose output that lists
16076 # what "hidden" libraries, object files and flags are used when
16077 # linking a shared library.
16078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16079
16080 else
16081 # FIXME: insert proper C++ library support
16082 ld_shlibs_CXX=no
16083 fi
16084 ;;
16085 esac
16086 ;;
16087 osf4* | osf5*)
16088 case $cc_basename in
16089 KCC)
16090 # Kuck and Associates, Inc. (KAI) C++ Compiler
16091
16092 # KCC will only create a shared library if the output file
16093 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16094 # to its proper name (with version) after linking.
16095 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'
16096
16097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16098 hardcode_libdir_separator_CXX=:
16099
16100 # Archives containing C++ object files must be created using
16101 # the KAI C++ compiler.
16102 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16103 ;;
16104 RCC)
16105 # Rational C++ 2.4.1
16106 # FIXME: insert proper C++ library support
16107 ld_shlibs_CXX=no
16108 ;;
16109 cxx)
16110 allow_undefined_flag_CXX=' -expect_unresolved \*'
16111 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 +000016112 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16113 echo "-hidden">> $lib.exp~
16114 $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~
16115 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016116
16117 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16118 hardcode_libdir_separator_CXX=:
16119
16120 # Commands to make compiler produce verbose output that lists
16121 # what "hidden" libraries, object files and flags are used when
16122 # linking a shared library.
16123 #
16124 # There doesn't appear to be a way to prevent this compiler from
16125 # explicitly linking system object files so we need to strip them
16126 # from the output so that they don't get included in the library
16127 # dependencies.
16128 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'
16129 ;;
16130 *)
16131 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16132 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16133 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'
16134
16135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16136 hardcode_libdir_separator_CXX=:
16137
16138 # Commands to make compiler produce verbose output that lists
16139 # what "hidden" libraries, object files and flags are used when
16140 # linking a shared library.
16141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16142
16143 else
16144 # FIXME: insert proper C++ library support
16145 ld_shlibs_CXX=no
16146 fi
16147 ;;
16148 esac
16149 ;;
16150 psos*)
16151 # FIXME: insert proper C++ library support
16152 ld_shlibs_CXX=no
16153 ;;
16154 sco*)
16155 archive_cmds_need_lc_CXX=no
16156 case $cc_basename in
16157 CC)
16158 # FIXME: insert proper C++ library support
16159 ld_shlibs_CXX=no
16160 ;;
16161 *)
16162 # FIXME: insert proper C++ library support
16163 ld_shlibs_CXX=no
16164 ;;
16165 esac
16166 ;;
16167 sunos4*)
16168 case $cc_basename in
16169 CC)
16170 # Sun C++ 4.x
16171 # FIXME: insert proper C++ library support
16172 ld_shlibs_CXX=no
16173 ;;
16174 lcc)
16175 # Lucid
16176 # FIXME: insert proper C++ library support
16177 ld_shlibs_CXX=no
16178 ;;
16179 *)
16180 # FIXME: insert proper C++ library support
16181 ld_shlibs_CXX=no
16182 ;;
16183 esac
16184 ;;
16185 solaris*)
16186 case $cc_basename in
16187 CC)
16188 # Sun C++ 4.2, 5.x and Centerline C++
16189 no_undefined_flag_CXX=' -zdefs'
16190 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 +000016191 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16192 $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 +000016193
16194 hardcode_libdir_flag_spec_CXX='-R$libdir'
16195 hardcode_shlibpath_var_CXX=no
16196 case $host_os in
16197 solaris2.0-5 | solaris2.0-5.*) ;;
16198 *)
16199 # The C++ compiler is used as linker so we must use $wl
16200 # flag to pass the commands to the underlying system
16201 # linker.
16202 # Supported since Solaris 2.6 (maybe 2.5.1?)
16203 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16204 ;;
16205 esac
16206 link_all_deplibs_CXX=yes
16207
16208 # Commands to make compiler produce verbose output that lists
16209 # what "hidden" libraries, object files and flags are used when
16210 # linking a shared library.
16211 #
16212 # There doesn't appear to be a way to prevent this compiler from
16213 # explicitly linking system object files so we need to strip them
16214 # from the output so that they don't get included in the library
16215 # dependencies.
16216 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'
16217
16218 # Archives containing C++ object files must be created using
16219 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16220 # necessary to make sure instantiated templates are included
16221 # in the archive.
16222 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16223 ;;
16224 gcx)
16225 # Green Hills C++ Compiler
16226 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16227
16228 # The C++ compiler must be used to create the archive.
16229 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16230 ;;
16231 *)
16232 # GNU C++ compiler with Solaris linker
16233 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16234 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16235 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016236 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 +000016237 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16238 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16239
John Criswell47fdd832003-07-14 16:52:07 +000016240 # Commands to make compiler produce verbose output that lists
16241 # what "hidden" libraries, object files and flags are used when
16242 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016243 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016244 else
16245 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16246 # platform.
16247 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 +000016248 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16249 $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 +000016250
16251 # Commands to make compiler produce verbose output that lists
16252 # what "hidden" libraries, object files and flags are used when
16253 # linking a shared library.
16254 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16255 fi
16256
16257 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16258 fi
16259 ;;
16260 esac
16261 ;;
16262 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16263 archive_cmds_need_lc_CXX=no
16264 ;;
16265 tandem*)
16266 case $cc_basename in
16267 NCC)
16268 # NonStop-UX NCC 3.20
16269 # FIXME: insert proper C++ library support
16270 ld_shlibs_CXX=no
16271 ;;
16272 *)
16273 # FIXME: insert proper C++ library support
16274 ld_shlibs_CXX=no
16275 ;;
16276 esac
16277 ;;
16278 vxworks*)
16279 # FIXME: insert proper C++ library support
16280 ld_shlibs_CXX=no
16281 ;;
16282 *)
16283 # FIXME: insert proper C++ library support
16284 ld_shlibs_CXX=no
16285 ;;
16286esac
16287echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16288echo "${ECHO_T}$ld_shlibs_CXX" >&6
16289test "$ld_shlibs_CXX" = no && can_build_shared=no
16290
16291GCC_CXX="$GXX"
16292LD_CXX="$LD"
16293
John Criswell47fdd832003-07-14 16:52:07 +000016294
16295cat > conftest.$ac_ext <<EOF
16296class Foo
16297{
16298public:
16299 Foo (void) { a = 0; }
16300private:
16301 int a;
16302};
16303EOF
16304
16305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; then
16310 # Parse the compiler output and extract the necessary
16311 # objects, libraries and library flags.
16312
16313 # Sentinel used to keep track of whether or not we are before
16314 # the conftest object file.
16315 pre_test_object_deps_done=no
16316
16317 # The `*' in the case matches for architectures that use `case' in
16318 # $output_verbose_cmd can trigger glob expansion during the loop
16319 # eval without this substitution.
16320 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16321
16322 for p in `eval $output_verbose_link_cmd`; do
16323 case $p in
16324
16325 -L* | -R* | -l*)
16326 # Some compilers place space between "-{L,R}" and the path.
16327 # Remove the space.
16328 if test $p = "-L" \
16329 || test $p = "-R"; then
16330 prev=$p
16331 continue
16332 else
16333 prev=
16334 fi
16335
16336 if test "$pre_test_object_deps_done" = no; then
16337 case $p in
16338 -L* | -R*)
16339 # Internal compiler library paths should come after those
16340 # provided the user. The postdeps already come after the
16341 # user supplied libs so there is no need to process them.
16342 if test -z "$compiler_lib_search_path_CXX"; then
16343 compiler_lib_search_path_CXX="${prev}${p}"
16344 else
16345 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16346 fi
16347 ;;
16348 # The "-l" case would never come before the object being
16349 # linked, so don't bother handling this case.
16350 esac
16351 else
16352 if test -z "$postdeps_CXX"; then
16353 postdeps_CXX="${prev}${p}"
16354 else
16355 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16356 fi
16357 fi
16358 ;;
16359
16360 *.$objext)
16361 # This assumes that the test object file only shows up
16362 # once in the compiler output.
16363 if test "$p" = "conftest.$objext"; then
16364 pre_test_object_deps_done=yes
16365 continue
16366 fi
16367
16368 if test "$pre_test_object_deps_done" = no; then
16369 if test -z "$predep_objects_CXX"; then
16370 predep_objects_CXX="$p"
16371 else
16372 predep_objects_CXX="$predep_objects_CXX $p"
16373 fi
16374 else
16375 if test -z "$postdep_objects_CXX"; then
16376 postdep_objects_CXX="$p"
16377 else
16378 postdep_objects_CXX="$postdep_objects_CXX $p"
16379 fi
16380 fi
16381 ;;
16382
16383 *) ;; # Ignore the rest.
16384
16385 esac
16386 done
16387
16388 # Clean up.
16389 rm -f a.out a.exe
16390else
16391 echo "libtool.m4: error: problem compiling CXX test program"
16392fi
16393
16394$rm -f confest.$objext
16395
16396case " $postdeps_CXX " in
16397*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16398esac
16399
16400lt_prog_compiler_wl_CXX=
16401lt_prog_compiler_pic_CXX=
16402lt_prog_compiler_static_CXX=
16403
16404echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16405echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16406
16407 # C++ specific cases for pic, static, wl, etc.
16408 if test "$GXX" = yes; then
16409 lt_prog_compiler_wl_CXX='-Wl,'
16410 lt_prog_compiler_static_CXX='-static'
16411
16412 case $host_os in
16413 aix*)
16414 # All AIX code is PIC.
16415 if test "$host_cpu" = ia64; then
16416 # AIX 5 now supports IA64 processor
16417 lt_prog_compiler_static_CXX='-Bstatic'
16418 fi
16419 ;;
16420 amigaos*)
16421 # FIXME: we need at least 68020 code to build shared libraries, but
16422 # adding the `-m68020' flag to GCC prevents building anything better,
16423 # like `-m68040'.
16424 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16425 ;;
16426 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16427 # PIC is the default for these OSes.
16428 ;;
16429 mingw* | os2* | pw32*)
16430 # This hack is so that the source file can tell whether it is being
16431 # built for inclusion in a dll (and should export symbols for example).
16432 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16433 ;;
16434 darwin* | rhapsody*)
16435 # PIC is the default on this platform
16436 # Common symbols not allowed in MH_DYLIB files
16437 lt_prog_compiler_pic_CXX='-fno-common'
16438 ;;
16439 *djgpp*)
16440 # DJGPP does not support shared libraries at all
16441 lt_prog_compiler_pic_CXX=
16442 ;;
16443 sysv4*MP*)
16444 if test -d /usr/nec; then
16445 lt_prog_compiler_pic_CXX=-Kconform_pic
16446 fi
16447 ;;
16448 hpux*)
16449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16450 # not for PA HP-UX.
16451 case "$host_cpu" in
16452 hppa*64*|ia64*)
16453 ;;
16454 *)
16455 lt_prog_compiler_pic_CXX='-fPIC'
16456 ;;
16457 esac
16458 ;;
16459 *)
16460 lt_prog_compiler_pic_CXX='-fPIC'
16461 ;;
16462 esac
16463 else
16464 case $host_os in
16465 aix4* | aix5*)
16466 # All AIX code is PIC.
16467 if test "$host_cpu" = ia64; then
16468 # AIX 5 now supports IA64 processor
16469 lt_prog_compiler_static_CXX='-Bstatic'
16470 else
16471 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16472 fi
16473 ;;
16474 chorus*)
16475 case $cc_basename in
16476 cxch68)
16477 # Green Hills C++ Compiler
16478 # _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"
16479 ;;
16480 esac
16481 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016482 darwin*)
16483 # PIC is the default on this platform
16484 # Common symbols not allowed in MH_DYLIB files
16485 case "$cc_basename" in
16486 xlc*)
16487 lt_prog_compiler_pic_CXX='-qnocommon'
16488 lt_prog_compiler_wl_CXX='-Wl,'
16489 ;;
16490 esac
16491 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016492 dgux*)
16493 case $cc_basename in
16494 ec++)
16495 lt_prog_compiler_pic_CXX='-KPIC'
16496 ;;
16497 ghcx)
16498 # Green Hills C++ Compiler
16499 lt_prog_compiler_pic_CXX='-pic'
16500 ;;
16501 *)
16502 ;;
16503 esac
16504 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016505 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016506 # FreeBSD uses GNU C++
16507 ;;
16508 hpux9* | hpux10* | hpux11*)
16509 case $cc_basename in
16510 CC)
16511 lt_prog_compiler_wl_CXX='-Wl,'
16512 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16513 if test "$host_cpu" != ia64; then
16514 lt_prog_compiler_pic_CXX='+Z'
16515 fi
16516 ;;
16517 aCC)
16518 lt_prog_compiler_wl_CXX='-Wl,'
16519 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16520 case "$host_cpu" in
16521 hppa*64*|ia64*)
16522 # +Z the default
16523 ;;
16524 *)
16525 lt_prog_compiler_pic_CXX='+Z'
16526 ;;
16527 esac
16528 ;;
16529 *)
16530 ;;
16531 esac
16532 ;;
16533 irix5* | irix6* | nonstopux*)
16534 case $cc_basename in
16535 CC)
16536 lt_prog_compiler_wl_CXX='-Wl,'
16537 lt_prog_compiler_static_CXX='-non_shared'
16538 # CC pic flag -KPIC is the default.
16539 ;;
16540 *)
16541 ;;
16542 esac
16543 ;;
16544 linux*)
16545 case $cc_basename in
16546 KCC)
16547 # KAI C++ Compiler
16548 lt_prog_compiler_wl_CXX='--backend -Wl,'
16549 lt_prog_compiler_pic_CXX='-fPIC'
16550 ;;
16551 icpc)
16552 # Intel C++
16553 lt_prog_compiler_wl_CXX='-Wl,'
16554 lt_prog_compiler_pic_CXX='-KPIC'
16555 lt_prog_compiler_static_CXX='-static'
16556 ;;
16557 cxx)
16558 # Compaq C++
16559 # Make sure the PIC flag is empty. It appears that all Alpha
16560 # Linux and Compaq Tru64 Unix objects are PIC.
16561 lt_prog_compiler_pic_CXX=
16562 lt_prog_compiler_static_CXX='-non_shared'
16563 ;;
16564 *)
16565 ;;
16566 esac
16567 ;;
16568 lynxos*)
16569 ;;
16570 m88k*)
16571 ;;
16572 mvs*)
16573 case $cc_basename in
16574 cxx)
16575 lt_prog_compiler_pic_CXX='-W c,exportall'
16576 ;;
16577 *)
16578 ;;
16579 esac
16580 ;;
16581 netbsd*)
16582 ;;
16583 osf3* | osf4* | osf5*)
16584 case $cc_basename in
16585 KCC)
16586 lt_prog_compiler_wl_CXX='--backend -Wl,'
16587 ;;
16588 RCC)
16589 # Rational C++ 2.4.1
16590 lt_prog_compiler_pic_CXX='-pic'
16591 ;;
16592 cxx)
16593 # Digital/Compaq C++
16594 lt_prog_compiler_wl_CXX='-Wl,'
16595 # Make sure the PIC flag is empty. It appears that all Alpha
16596 # Linux and Compaq Tru64 Unix objects are PIC.
16597 lt_prog_compiler_pic_CXX=
16598 lt_prog_compiler_static_CXX='-non_shared'
16599 ;;
16600 *)
16601 ;;
16602 esac
16603 ;;
16604 psos*)
16605 ;;
16606 sco*)
16607 case $cc_basename in
16608 CC)
16609 lt_prog_compiler_pic_CXX='-fPIC'
16610 ;;
16611 *)
16612 ;;
16613 esac
16614 ;;
16615 solaris*)
16616 case $cc_basename in
16617 CC)
16618 # Sun C++ 4.2, 5.x and Centerline C++
16619 lt_prog_compiler_pic_CXX='-KPIC'
16620 lt_prog_compiler_static_CXX='-Bstatic'
16621 lt_prog_compiler_wl_CXX='-Qoption ld '
16622 ;;
16623 gcx)
16624 # Green Hills C++ Compiler
16625 lt_prog_compiler_pic_CXX='-PIC'
16626 ;;
16627 *)
16628 ;;
16629 esac
16630 ;;
16631 sunos4*)
16632 case $cc_basename in
16633 CC)
16634 # Sun C++ 4.x
16635 lt_prog_compiler_pic_CXX='-pic'
16636 lt_prog_compiler_static_CXX='-Bstatic'
16637 ;;
16638 lcc)
16639 # Lucid
16640 lt_prog_compiler_pic_CXX='-pic'
16641 ;;
16642 *)
16643 ;;
16644 esac
16645 ;;
16646 tandem*)
16647 case $cc_basename in
16648 NCC)
16649 # NonStop-UX NCC 3.20
16650 lt_prog_compiler_pic_CXX='-KPIC'
16651 ;;
16652 *)
16653 ;;
16654 esac
16655 ;;
16656 unixware*)
16657 ;;
16658 vxworks*)
16659 ;;
16660 *)
16661 lt_prog_compiler_can_build_shared_CXX=no
16662 ;;
16663 esac
16664 fi
16665
16666echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16667echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16668
16669#
16670# Check to make sure the PIC flag actually works.
16671#
16672if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016673
16674echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016675echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16676if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678else
16679 lt_prog_compiler_pic_works_CXX=no
16680 ac_outfile=conftest.$ac_objext
16681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16683 # Insert the option either (1) after the last *FLAGS variable, or
16684 # (2) before a word containing "conftest.", or (3) at the end.
16685 # Note that $ac_compile itself does not contain backslashes and begins
16686 # with a dollar sign (not a hyphen), so the echo should work correctly.
16687 # The option is referenced via a variable to avoid confusing sed.
16688 lt_compile=`echo "$ac_compile" | $SED \
16689 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000016692 (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016693 (eval "$lt_compile" 2>conftest.err)
16694 ac_status=$?
16695 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000016696 echo "$as_me:16696: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016697 if (exit $ac_status) && test -s "$ac_outfile"; then
16698 # The compiler can only warn and ignore the option if not recognized
16699 # So say no if there are warnings
16700 if test ! -s conftest.err; then
16701 lt_prog_compiler_pic_works_CXX=yes
16702 fi
16703 fi
16704 $rm conftest*
16705
16706fi
16707echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16708echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16709
16710if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16711 case $lt_prog_compiler_pic_CXX in
16712 "" | " "*) ;;
16713 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16714 esac
16715else
16716 lt_prog_compiler_pic_CXX=
16717 lt_prog_compiler_can_build_shared_CXX=no
16718fi
16719
16720fi
16721case "$host_os" in
16722 # For platforms which do not support PIC, -DPIC is meaningless:
16723 *djgpp*)
16724 lt_prog_compiler_pic_CXX=
16725 ;;
16726 *)
16727 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16728 ;;
16729esac
16730
16731echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16732echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16733if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736 lt_cv_prog_compiler_c_o_CXX=no
16737 $rm -r conftest 2>/dev/null
16738 mkdir conftest
16739 cd conftest
16740 mkdir out
16741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16742
John Criswell47fdd832003-07-14 16:52:07 +000016743 lt_compiler_flag="-o out/conftest2.$ac_objext"
16744 # Insert the option either (1) after the last *FLAGS variable, or
16745 # (2) before a word containing "conftest.", or (3) at the end.
16746 # Note that $ac_compile itself does not contain backslashes and begins
16747 # with a dollar sign (not a hyphen), so the echo should work correctly.
16748 lt_compile=`echo "$ac_compile" | $SED \
16749 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16751 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000016752 (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016753 (eval "$lt_compile" 2>out/conftest.err)
16754 ac_status=$?
16755 cat out/conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000016756 echo "$as_me:16756: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16758 then
16759 # The compiler can only warn and ignore the option if not recognized
16760 # So say no if there are warnings
16761 if test ! -s out/conftest.err; then
16762 lt_cv_prog_compiler_c_o_CXX=yes
16763 fi
16764 fi
16765 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016766 $rm conftest*
16767 # SGI C++ compiler will create directory out/ii_files/ for
16768 # template instantiation
16769 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16770 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016771 cd ..
16772 rmdir conftest
16773 $rm conftest*
16774
16775fi
16776echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16777echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16778
16779
16780hard_links="nottested"
16781if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16782 # do not overwrite the value of need_locks provided by the user
16783 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16784echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16785 hard_links=yes
16786 $rm conftest*
16787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788 touch conftest.a
16789 ln conftest.a conftest.b 2>&5 || hard_links=no
16790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16791 echo "$as_me:$LINENO: result: $hard_links" >&5
16792echo "${ECHO_T}$hard_links" >&6
16793 if test "$hard_links" = no; then
16794 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16795echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16796 need_locks=warn
16797 fi
16798else
16799 need_locks=no
16800fi
16801
16802echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16803echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16804
16805 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16806 case $host_os in
16807 aix4* | aix5*)
16808 # If we're using GNU nm, then we don't want the "-C" option.
16809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16810 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16811 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'
16812 else
16813 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'
16814 fi
16815 ;;
16816 pw32*)
16817 export_symbols_cmds_CXX="$ltdll_cmds"
16818 ;;
16819 cygwin* | mingw*)
16820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16821 ;;
16822 *)
16823 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16824 ;;
16825 esac
16826
16827echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16828echo "${ECHO_T}$ld_shlibs_CXX" >&6
16829test "$ld_shlibs_CXX" = no && can_build_shared=no
16830
16831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16832if test "$GCC" = yes; then
16833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16834fi
16835
16836#
16837# Do we need to explicitly link libc?
16838#
16839case "x$archive_cmds_need_lc_CXX" in
16840x|xyes)
16841 # Assume -lc should be added
16842 archive_cmds_need_lc_CXX=yes
16843
16844 if test "$enable_shared" = yes && test "$GCC" = yes; then
16845 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016846 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016847 # FIXME: we may have to deal with multi-command sequences.
16848 ;;
16849 '$CC '*)
16850 # Test whether the compiler implicitly links with -lc since on some
16851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16852 # to ld, don't add -lc before -lgcc.
16853 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16854echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16855 $rm conftest*
16856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16857
16858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859 (eval $ac_compile) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } 2>conftest.err; then
16863 soname=conftest
16864 lib=conftest
16865 libobjs=conftest.$ac_objext
16866 deplibs=
16867 wl=$lt_prog_compiler_wl_CXX
16868 compiler_flags=-v
16869 linker_flags=-v
16870 verstring=
16871 output_objdir=.
16872 libname=conftest
16873 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16874 allow_undefined_flag_CXX=
16875 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16876 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }
16880 then
16881 archive_cmds_need_lc_CXX=no
16882 else
16883 archive_cmds_need_lc_CXX=yes
16884 fi
16885 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16886 else
16887 cat conftest.err 1>&5
16888 fi
16889 $rm conftest*
16890 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16891echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16892 ;;
16893 esac
16894 fi
16895 ;;
16896esac
16897
John Criswell47fdd832003-07-14 16:52:07 +000016898echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16899echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16900library_names_spec=
16901libname_spec='lib$name'
16902soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016903shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016904postinstall_cmds=
16905postuninstall_cmds=
16906finish_cmds=
16907finish_eval=
16908shlibpath_var=
16909shlibpath_overrides_runpath=unknown
16910version_type=none
16911dynamic_linker="$host_os ld.so"
16912sys_lib_dlsearch_path_spec="/lib /usr/lib"
16913if test "$GCC" = yes; then
16914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16915 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16916 # if the path contains ";" then we assume it to be the separator
16917 # otherwise default to the standard path separator (i.e. ":") - it is
16918 # assumed that no part of a normal pathname contains ";" but that should
16919 # okay in the real world where ";" in dirpaths is itself problematic.
16920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16921 else
16922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16923 fi
16924else
16925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16926fi
16927need_lib_prefix=unknown
16928hardcode_into_libs=no
16929
16930# when you set need_version to no, make sure it does not cause -set_version
16931# flags to be left without arguments
16932need_version=unknown
16933
16934case $host_os in
16935aix3*)
16936 version_type=linux
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16938 shlibpath_var=LIBPATH
16939
16940 # AIX 3 has no versioning support, so we append a major version to the name.
16941 soname_spec='${libname}${release}${shared_ext}$major'
16942 ;;
16943
16944aix4* | aix5*)
16945 version_type=linux
16946 need_lib_prefix=no
16947 need_version=no
16948 hardcode_into_libs=yes
16949 if test "$host_cpu" = ia64; then
16950 # AIX 5 supports IA64
16951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 else
16954 # With GCC up to 2.95.x, collect2 would create an import file
16955 # for dependence libraries. The import file would start with
16956 # the line `#! .'. This would cause the generated library to
16957 # depend on `.', always an invalid library. This was fixed in
16958 # development snapshots of GCC prior to 3.0.
16959 case $host_os in
16960 aix4 | aix4.[01] | aix4.[01].*)
16961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16962 echo ' yes '
16963 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16964 :
16965 else
16966 can_build_shared=no
16967 fi
16968 ;;
16969 esac
16970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16971 # soname into executable. Probably we can add versioning support to
16972 # collect2, so additional links can be useful in future.
16973 if test "$aix_use_runtimelinking" = yes; then
16974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16975 # instead of lib<name>.a to let people know that these are not
16976 # typical AIX shared libraries.
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978 else
16979 # We preserve .a as extension for shared libraries through AIX4.2
16980 # and later when we are not doing run time linking.
16981 library_names_spec='${libname}${release}.a $libname.a'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 fi
16984 shlibpath_var=LIBPATH
16985 fi
16986 ;;
16987
16988amigaos*)
16989 library_names_spec='$libname.ixlibrary $libname.a'
16990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016991 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 +000016992 ;;
16993
16994beos*)
16995 library_names_spec='${libname}${shared_ext}'
16996 dynamic_linker="$host_os ld.so"
16997 shlibpath_var=LIBRARY_PATH
16998 ;;
16999
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017001 version_type=linux
17002 need_version=no
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17009 # the default ld.so.conf also contains /usr/contrib/lib and
17010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17011 # libtool to hard-code these into programs
17012 ;;
17013
17014cygwin* | mingw* | pw32*)
17015 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017016 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017017 need_version=no
17018 need_lib_prefix=no
17019
17020 case $GCC,$host_os in
17021 yes,cygwin* | yes,mingw* | yes,pw32*)
17022 library_names_spec='$libname.dll.a'
17023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017024 postinstall_cmds='base_file=`basename \${file}`~
17025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17026 dldir=$destdir/`dirname \$dlpath`~
17027 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017028 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17030 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017031 $rm \$dlpath'
17032 shlibpath_overrides_runpath=yes
17033
17034 case $host_os in
17035 cygwin*)
17036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17037 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 +000017038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017039 ;;
17040 mingw*)
17041 # MinGW DLLs use traditional 'lib' prefix
17042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17045 # It is most probably a Windows format PATH printed by
17046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17047 # path with ; separators, and with drive letters. We can handle the
17048 # drive letters (cygwin fileutils understands them), so leave them,
17049 # especially as we might pass files found there to a mingw objdump,
17050 # which wouldn't understand a cygwinified path. Ahh.
17051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17052 else
17053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17054 fi
17055 ;;
17056 pw32*)
17057 # pw32 DLLs use 'pw' prefix rather than 'lib'
17058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17059 ;;
17060 esac
17061 ;;
17062
17063 *)
17064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17065 ;;
17066 esac
17067 dynamic_linker='Win32 ld.exe'
17068 # FIXME: first we should search . and the directory the executable is in
17069 shlibpath_var=PATH
17070 ;;
17071
17072darwin* | rhapsody*)
17073 dynamic_linker="$host_os dyld"
17074 version_type=darwin
17075 need_lib_prefix=no
17076 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017078 soname_spec='${libname}${release}${major}$shared_ext'
17079 shlibpath_overrides_runpath=yes
17080 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017081 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017082 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017083 if test "$GCC" = yes; then
17084 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"`
17085 else
17086 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017087 fi
17088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17089 ;;
17090
17091dgux*)
17092 version_type=linux
17093 need_lib_prefix=no
17094 need_version=no
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 shlibpath_var=LD_LIBRARY_PATH
17098 ;;
17099
17100freebsd1*)
17101 dynamic_linker=no
17102 ;;
17103
Reid Spencer2706f8c2004-09-19 23:53:36 +000017104kfreebsd*-gnu)
17105 version_type=linux
17106 need_lib_prefix=no
17107 need_version=no
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=no
17112 hardcode_into_libs=yes
17113 dynamic_linker='GNU ld.so'
17114 ;;
17115
John Criswell47fdd832003-07-14 16:52:07 +000017116freebsd*)
17117 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17118 version_type=freebsd-$objformat
17119 case $version_type in
17120 freebsd-elf*)
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17122 need_version=no
17123 need_lib_prefix=no
17124 ;;
17125 freebsd-*)
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17127 need_version=yes
17128 ;;
17129 esac
17130 shlibpath_var=LD_LIBRARY_PATH
17131 case $host_os in
17132 freebsd2*)
17133 shlibpath_overrides_runpath=yes
17134 ;;
17135 freebsd3.01* | freebsdelf3.01*)
17136 shlibpath_overrides_runpath=yes
17137 hardcode_into_libs=yes
17138 ;;
17139 *) # from 3.2 on
17140 shlibpath_overrides_runpath=no
17141 hardcode_into_libs=yes
17142 ;;
17143 esac
17144 ;;
17145
17146gnu*)
17147 version_type=linux
17148 need_lib_prefix=no
17149 need_version=no
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 shlibpath_var=LD_LIBRARY_PATH
17153 hardcode_into_libs=yes
17154 ;;
17155
17156hpux9* | hpux10* | hpux11*)
17157 # Give a soname corresponding to the major version so that dld.sl refuses to
17158 # link against other versions.
17159 version_type=sunos
17160 need_lib_prefix=no
17161 need_version=no
17162 case "$host_cpu" in
17163 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017164 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017165 hardcode_into_libs=yes
17166 dynamic_linker="$host_os dld.so"
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 if test "X$HPUX_IA64_MODE" = X32; then
17172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173 else
17174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17175 fi
17176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177 ;;
17178 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017179 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017180 hardcode_into_libs=yes
17181 dynamic_linker="$host_os dld.sl"
17182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17188 ;;
17189 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017190 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017191 dynamic_linker="$host_os dld.sl"
17192 shlibpath_var=SHLIB_PATH
17193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 ;;
17197 esac
17198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17199 postinstall_cmds='chmod 555 $lib'
17200 ;;
17201
17202irix5* | irix6* | nonstopux*)
17203 case $host_os in
17204 nonstopux*) version_type=nonstopux ;;
17205 *)
17206 if test "$lt_cv_prog_gnu_ld" = yes; then
17207 version_type=linux
17208 else
17209 version_type=irix
17210 fi ;;
17211 esac
17212 need_lib_prefix=no
17213 need_version=no
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17216 case $host_os in
17217 irix5* | nonstopux*)
17218 libsuff= shlibsuff=
17219 ;;
17220 *)
17221 case $LD in # libtool.m4 will add one of these switches to LD
17222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17223 libsuff= shlibsuff= libmagic=32-bit;;
17224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17225 libsuff=32 shlibsuff=N32 libmagic=N32;;
17226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17228 *) libsuff= shlibsuff= libmagic=never-match;;
17229 esac
17230 ;;
17231 esac
17232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17233 shlibpath_overrides_runpath=no
17234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17236 hardcode_into_libs=yes
17237 ;;
17238
17239# No shared lib support for Linux oldld, aout, or coff.
17240linux*oldld* | linux*aout* | linux*coff*)
17241 dynamic_linker=no
17242 ;;
17243
17244# This must be Linux ELF.
17245linux*)
17246 version_type=linux
17247 need_lib_prefix=no
17248 need_version=no
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250 soname_spec='${libname}${release}${shared_ext}$major'
17251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17252 shlibpath_var=LD_LIBRARY_PATH
17253 shlibpath_overrides_runpath=no
17254 # This implies no fast_install, which is unacceptable.
17255 # Some rework will be needed to allow for fast_install
17256 # before this can be enabled.
17257 hardcode_into_libs=yes
17258
Reid Spencer2706f8c2004-09-19 23:53:36 +000017259 # Append ld.so.conf contents to the search path
17260 if test -f /etc/ld.so.conf; then
17261 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17263 fi
17264
John Criswell47fdd832003-07-14 16:52:07 +000017265 # We used to test for /lib/ld.so.1 and disable shared libraries on
17266 # powerpc, because MkLinux only supported shared libraries with the
17267 # GNU dynamic linker. Since this was broken with cross compilers,
17268 # most powerpc-linux boxes support dynamic linking these days and
17269 # people can always --disable-shared, the test was removed, and we
17270 # assume the GNU/Linux dynamic linker is in use.
17271 dynamic_linker='GNU/Linux ld.so'
17272 ;;
17273
Reid Spencer2706f8c2004-09-19 23:53:36 +000017274knetbsd*-gnu)
17275 version_type=linux
17276 need_lib_prefix=no
17277 need_version=no
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=no
17282 hardcode_into_libs=yes
17283 dynamic_linker='GNU ld.so'
17284 ;;
17285
John Criswell47fdd832003-07-14 16:52:07 +000017286netbsd*)
17287 version_type=sunos
17288 need_lib_prefix=no
17289 need_version=no
17290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17293 dynamic_linker='NetBSD (a.out) ld.so'
17294 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017296 soname_spec='${libname}${release}${shared_ext}$major'
17297 dynamic_linker='NetBSD ld.elf_so'
17298 fi
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=yes
17301 hardcode_into_libs=yes
17302 ;;
17303
17304newsos6)
17305 version_type=linux
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307 shlibpath_var=LD_LIBRARY_PATH
17308 shlibpath_overrides_runpath=yes
17309 ;;
17310
Reid Spencer2706f8c2004-09-19 23:53:36 +000017311nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017312 version_type=linux
17313 need_lib_prefix=no
17314 need_version=no
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes
17319 ;;
17320
17321openbsd*)
17322 version_type=sunos
17323 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017324 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17329 case $host_os in
17330 openbsd2.[89] | openbsd2.[89].*)
17331 shlibpath_overrides_runpath=no
17332 ;;
17333 *)
17334 shlibpath_overrides_runpath=yes
17335 ;;
17336 esac
17337 else
17338 shlibpath_overrides_runpath=yes
17339 fi
17340 ;;
17341
17342os2*)
17343 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017344 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017345 need_lib_prefix=no
17346 library_names_spec='$libname${shared_ext} $libname.a'
17347 dynamic_linker='OS/2 ld.exe'
17348 shlibpath_var=LIBPATH
17349 ;;
17350
17351osf3* | osf4* | osf5*)
17352 version_type=osf
17353 need_lib_prefix=no
17354 need_version=no
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 shlibpath_var=LD_LIBRARY_PATH
17358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17360 ;;
17361
17362sco3.2v5*)
17363 version_type=osf
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 ;;
17368
17369solaris*)
17370 version_type=linux
17371 need_lib_prefix=no
17372 need_version=no
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374 soname_spec='${libname}${release}${shared_ext}$major'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=yes
17377 hardcode_into_libs=yes
17378 # ldd complains unless libraries are executable
17379 postinstall_cmds='chmod +x $lib'
17380 ;;
17381
17382sunos4*)
17383 version_type=sunos
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17386 shlibpath_var=LD_LIBRARY_PATH
17387 shlibpath_overrides_runpath=yes
17388 if test "$with_gnu_ld" = yes; then
17389 need_lib_prefix=no
17390 fi
17391 need_version=yes
17392 ;;
17393
17394sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17395 version_type=linux
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 case $host_vendor in
17400 sni)
17401 shlibpath_overrides_runpath=no
17402 need_lib_prefix=no
17403 export_dynamic_flag_spec='${wl}-Blargedynsym'
17404 runpath_var=LD_RUN_PATH
17405 ;;
17406 siemens)
17407 need_lib_prefix=no
17408 ;;
17409 motorola)
17410 need_lib_prefix=no
17411 need_version=no
17412 shlibpath_overrides_runpath=no
17413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17414 ;;
17415 esac
17416 ;;
17417
17418sysv4*MP*)
17419 if test -d /usr/nec ;then
17420 version_type=linux
17421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17422 soname_spec='$libname${shared_ext}.$major'
17423 shlibpath_var=LD_LIBRARY_PATH
17424 fi
17425 ;;
17426
17427uts4*)
17428 version_type=linux
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 ;;
17433
17434*)
17435 dynamic_linker=no
17436 ;;
17437esac
17438echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17439echo "${ECHO_T}$dynamic_linker" >&6
17440test "$dynamic_linker" = no && can_build_shared=no
17441
Reid Spencer2706f8c2004-09-19 23:53:36 +000017442echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17444hardcode_action_CXX=
17445if test -n "$hardcode_libdir_flag_spec_CXX" || \
17446 test -n "$runpath_var_CXX" || \
17447 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17448
17449 # We can hardcode non-existant directories.
17450 if test "$hardcode_direct_CXX" != no &&
17451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452 # have to relink, otherwise we might link with an installed library
17453 # when we should be linking with a yet-to-be-installed one
17454 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17455 test "$hardcode_minus_L_CXX" != no; then
17456 # Linking always hardcodes the temporary library directory.
17457 hardcode_action_CXX=relink
17458 else
17459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460 hardcode_action_CXX=immediate
17461 fi
17462else
17463 # We cannot hardcode anything, or else we can only hardcode existing
17464 # directories.
17465 hardcode_action_CXX=unsupported
17466fi
17467echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17468echo "${ECHO_T}$hardcode_action_CXX" >&6
17469
17470if test "$hardcode_action_CXX" = relink; then
17471 # Fast installation is not supported
17472 enable_fast_install=no
17473elif test "$shlibpath_overrides_runpath" = yes ||
17474 test "$enable_shared" = no; then
17475 # Fast installation is not necessary
17476 enable_fast_install=needless
17477fi
17478
17479striplib=
17480old_striplib=
17481echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17482echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17483if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17484 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17485 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17486 echo "$as_me:$LINENO: result: yes" >&5
17487echo "${ECHO_T}yes" >&6
17488else
17489# FIXME - insert some real tests, host_os isn't really good enough
17490 case $host_os in
17491 darwin*)
17492 if test -n "$STRIP" ; then
17493 striplib="$STRIP -x"
17494 echo "$as_me:$LINENO: result: yes" >&5
17495echo "${ECHO_T}yes" >&6
17496 else
17497 echo "$as_me:$LINENO: result: no" >&5
17498echo "${ECHO_T}no" >&6
17499fi
17500 ;;
17501 *)
17502 echo "$as_me:$LINENO: result: no" >&5
17503echo "${ECHO_T}no" >&6
17504 ;;
17505 esac
17506fi
17507
John Criswell47fdd832003-07-14 16:52:07 +000017508if test "x$enable_dlopen" != xyes; then
17509 enable_dlopen=unknown
17510 enable_dlopen_self=unknown
17511 enable_dlopen_self_static=unknown
17512else
17513 lt_cv_dlopen=no
17514 lt_cv_dlopen_libs=
17515
17516 case $host_os in
17517 beos*)
17518 lt_cv_dlopen="load_add_on"
17519 lt_cv_dlopen_libs=
17520 lt_cv_dlopen_self=yes
17521 ;;
17522
17523 mingw* | pw32*)
17524 lt_cv_dlopen="LoadLibrary"
17525 lt_cv_dlopen_libs=
17526 ;;
17527
17528 cygwin*)
17529 lt_cv_dlopen="dlopen"
17530 lt_cv_dlopen_libs=
17531 ;;
17532
17533 darwin*)
17534 # if libdl is installed we need to link against it
17535 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17536echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17537if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
17540 ac_check_lib_save_LIBS=$LIBS
17541LIBS="-ldl $LIBS"
17542cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017548
17549/* Override any gcc2 internal prototype to avoid an error. */
17550#ifdef __cplusplus
17551extern "C"
17552#endif
17553/* We use char because int might match the return type of a gcc2
17554 builtin and then its argument prototype would still apply. */
17555char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017556int
17557main ()
17558{
17559dlopen ();
17560 ;
17561 return 0;
17562}
17563_ACEOF
17564rm -f conftest.$ac_objext conftest$ac_exeext
17565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017566 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017573 { ac_try='test -z "$ac_cxx_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_cv_lib_dl_dlopen=yes
17587else
17588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017589sed 's/^/| /' conftest.$ac_ext >&5
17590
John Criswell47fdd832003-07-14 16:52:07 +000017591ac_cv_lib_dl_dlopen=no
17592fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017593rm -f conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017595LIBS=$ac_check_lib_save_LIBS
17596fi
17597echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17599if test $ac_cv_lib_dl_dlopen = yes; then
17600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17601else
17602
17603 lt_cv_dlopen="dyld"
17604 lt_cv_dlopen_libs=
17605 lt_cv_dlopen_self=yes
17606
17607fi
17608
17609 ;;
17610
17611 *)
17612 echo "$as_me:$LINENO: checking for shl_load" >&5
17613echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17614if test "${ac_cv_func_shl_load+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17616else
17617 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017623/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17625#define shl_load innocuous_shl_load
17626
John Criswell47fdd832003-07-14 16:52:07 +000017627/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017628 which can conflict with char shl_load (); below.
17629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017631
John Criswell0c38eaf2003-09-10 15:17:25 +000017632#ifdef __STDC__
17633# include <limits.h>
17634#else
17635# include <assert.h>
17636#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017637
17638#undef shl_load
17639
John Criswell47fdd832003-07-14 16:52:07 +000017640/* Override any gcc2 internal prototype to avoid an error. */
17641#ifdef __cplusplus
17642extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017643{
John Criswell47fdd832003-07-14 16:52:07 +000017644#endif
17645/* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17647char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017648/* The GNU C library defines this for functions which it implements
17649 to always fail with ENOSYS. Some functions are actually named
17650 something starting with __ and the normal name is an alias. */
17651#if defined (__stub_shl_load) || defined (__stub___shl_load)
17652choke me
17653#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017654char (*f) () = shl_load;
17655#endif
17656#ifdef __cplusplus
17657}
John Criswell47fdd832003-07-14 16:52:07 +000017658#endif
17659
John Criswell0c38eaf2003-09-10 15:17:25 +000017660int
17661main ()
17662{
17663return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017664 ;
17665 return 0;
17666}
17667_ACEOF
17668rm -f conftest.$ac_objext conftest$ac_exeext
17669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017670 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017677 { ac_try='test -z "$ac_cxx_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_func_shl_load=yes
17691else
17692 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017693sed 's/^/| /' conftest.$ac_ext >&5
17694
John Criswell47fdd832003-07-14 16:52:07 +000017695ac_cv_func_shl_load=no
17696fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017697rm -f conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017699fi
17700echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17701echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17702if test $ac_cv_func_shl_load = yes; then
17703 lt_cv_dlopen="shl_load"
17704else
17705 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17706echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17707if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17709else
17710 ac_check_lib_save_LIBS=$LIBS
17711LIBS="-ldld $LIBS"
17712cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017713/* confdefs.h. */
17714_ACEOF
17715cat confdefs.h >>conftest.$ac_ext
17716cat >>conftest.$ac_ext <<_ACEOF
17717/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017718
17719/* Override any gcc2 internal prototype to avoid an error. */
17720#ifdef __cplusplus
17721extern "C"
17722#endif
17723/* We use char because int might match the return type of a gcc2
17724 builtin and then its argument prototype would still apply. */
17725char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017726int
17727main ()
17728{
17729shl_load ();
17730 ;
17731 return 0;
17732}
17733_ACEOF
17734rm -f conftest.$ac_objext conftest$ac_exeext
17735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017736 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017743 { ac_try='test -z "$ac_cxx_werror_flag"
17744 || test ! -s conftest.err'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_lib_dld_shl_load=yes
17757else
17758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017759sed 's/^/| /' conftest.$ac_ext >&5
17760
John Criswell47fdd832003-07-14 16:52:07 +000017761ac_cv_lib_dld_shl_load=no
17762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763rm -f conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017765LIBS=$ac_check_lib_save_LIBS
17766fi
17767echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17768echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17769if test $ac_cv_lib_dld_shl_load = yes; then
17770 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17771else
17772 echo "$as_me:$LINENO: checking for dlopen" >&5
17773echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17774if test "${ac_cv_func_dlopen+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017783/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785#define dlopen innocuous_dlopen
17786
John Criswell47fdd832003-07-14 16:52:07 +000017787/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017788 which can conflict with char dlopen (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017791
John Criswell0c38eaf2003-09-10 15:17:25 +000017792#ifdef __STDC__
17793# include <limits.h>
17794#else
17795# include <assert.h>
17796#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017797
17798#undef dlopen
17799
John Criswell47fdd832003-07-14 16:52:07 +000017800/* Override any gcc2 internal prototype to avoid an error. */
17801#ifdef __cplusplus
17802extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017803{
John Criswell47fdd832003-07-14 16:52:07 +000017804#endif
17805/* We use char because int might match the return type of a gcc2
17806 builtin and then its argument prototype would still apply. */
17807char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017808/* The GNU C library defines this for functions which it implements
17809 to always fail with ENOSYS. Some functions are actually named
17810 something starting with __ and the normal name is an alias. */
17811#if defined (__stub_dlopen) || defined (__stub___dlopen)
17812choke me
17813#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017814char (*f) () = dlopen;
17815#endif
17816#ifdef __cplusplus
17817}
John Criswell47fdd832003-07-14 16:52:07 +000017818#endif
17819
John Criswell0c38eaf2003-09-10 15:17:25 +000017820int
17821main ()
17822{
17823return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017824 ;
17825 return 0;
17826}
17827_ACEOF
17828rm -f conftest.$ac_objext conftest$ac_exeext
17829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017830 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017831 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017837 { ac_try='test -z "$ac_cxx_werror_flag"
17838 || test ! -s conftest.err'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_cv_func_dlopen=yes
17851else
17852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017853sed 's/^/| /' conftest.$ac_ext >&5
17854
John Criswell47fdd832003-07-14 16:52:07 +000017855ac_cv_func_dlopen=no
17856fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017857rm -f conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017859fi
17860echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17861echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17862if test $ac_cv_func_dlopen = yes; then
17863 lt_cv_dlopen="dlopen"
17864else
17865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17866echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17867if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17869else
17870 ac_check_lib_save_LIBS=$LIBS
17871LIBS="-ldl $LIBS"
17872cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017873/* confdefs.h. */
17874_ACEOF
17875cat confdefs.h >>conftest.$ac_ext
17876cat >>conftest.$ac_ext <<_ACEOF
17877/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017878
17879/* Override any gcc2 internal prototype to avoid an error. */
17880#ifdef __cplusplus
17881extern "C"
17882#endif
17883/* We use char because int might match the return type of a gcc2
17884 builtin and then its argument prototype would still apply. */
17885char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017886int
17887main ()
17888{
17889dlopen ();
17890 ;
17891 return 0;
17892}
17893_ACEOF
17894rm -f conftest.$ac_objext conftest$ac_exeext
17895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017896 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017903 { ac_try='test -z "$ac_cxx_werror_flag"
17904 || test ! -s conftest.err'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 ac_cv_lib_dl_dlopen=yes
17917else
17918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017919sed 's/^/| /' conftest.$ac_ext >&5
17920
John Criswell47fdd832003-07-14 16:52:07 +000017921ac_cv_lib_dl_dlopen=no
17922fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017923rm -f conftest.err conftest.$ac_objext \
17924 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017925LIBS=$ac_check_lib_save_LIBS
17926fi
17927echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17928echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17929if test $ac_cv_lib_dl_dlopen = yes; then
17930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17931else
17932 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17933echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17934if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936else
17937 ac_check_lib_save_LIBS=$LIBS
17938LIBS="-lsvld $LIBS"
17939cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017940/* confdefs.h. */
17941_ACEOF
17942cat confdefs.h >>conftest.$ac_ext
17943cat >>conftest.$ac_ext <<_ACEOF
17944/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017945
17946/* Override any gcc2 internal prototype to avoid an error. */
17947#ifdef __cplusplus
17948extern "C"
17949#endif
17950/* We use char because int might match the return type of a gcc2
17951 builtin and then its argument prototype would still apply. */
17952char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017953int
17954main ()
17955{
17956dlopen ();
17957 ;
17958 return 0;
17959}
17960_ACEOF
17961rm -f conftest.$ac_objext conftest$ac_exeext
17962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017963 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017964 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017965 grep -v '^ *+' conftest.er1 >conftest.err
17966 rm -f conftest.er1
17967 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017970 { ac_try='test -z "$ac_cxx_werror_flag"
17971 || test ! -s conftest.err'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 ac_cv_lib_svld_dlopen=yes
17984else
17985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017986sed 's/^/| /' conftest.$ac_ext >&5
17987
John Criswell47fdd832003-07-14 16:52:07 +000017988ac_cv_lib_svld_dlopen=no
17989fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017990rm -f conftest.err conftest.$ac_objext \
17991 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017992LIBS=$ac_check_lib_save_LIBS
17993fi
17994echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17995echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17996if test $ac_cv_lib_svld_dlopen = yes; then
17997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17998else
17999 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18000echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18001if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003else
18004 ac_check_lib_save_LIBS=$LIBS
18005LIBS="-ldld $LIBS"
18006cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018012
18013/* Override any gcc2 internal prototype to avoid an error. */
18014#ifdef __cplusplus
18015extern "C"
18016#endif
18017/* We use char because int might match the return type of a gcc2
18018 builtin and then its argument prototype would still apply. */
18019char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018020int
18021main ()
18022{
18023dld_link ();
18024 ;
18025 return 0;
18026}
18027_ACEOF
18028rm -f conftest.$ac_objext conftest$ac_exeext
18029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018030 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018031 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018032 grep -v '^ *+' conftest.er1 >conftest.err
18033 rm -f conftest.er1
18034 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018037 { ac_try='test -z "$ac_cxx_werror_flag"
18038 || test ! -s conftest.err'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 ac_cv_lib_dld_dld_link=yes
18051else
18052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018053sed 's/^/| /' conftest.$ac_ext >&5
18054
John Criswell47fdd832003-07-14 16:52:07 +000018055ac_cv_lib_dld_dld_link=no
18056fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018057rm -f conftest.err conftest.$ac_objext \
18058 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018059LIBS=$ac_check_lib_save_LIBS
18060fi
18061echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18062echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18063if test $ac_cv_lib_dld_dld_link = yes; then
18064 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18065fi
18066
18067
18068fi
18069
18070
18071fi
18072
18073
18074fi
18075
18076
18077fi
18078
18079
18080fi
18081
18082 ;;
18083 esac
18084
18085 if test "x$lt_cv_dlopen" != xno; then
18086 enable_dlopen=yes
18087 else
18088 enable_dlopen=no
18089 fi
18090
18091 case $lt_cv_dlopen in
18092 dlopen)
18093 save_CPPFLAGS="$CPPFLAGS"
18094 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18095
18096 save_LDFLAGS="$LDFLAGS"
18097 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18098
18099 save_LIBS="$LIBS"
18100 LIBS="$lt_cv_dlopen_libs $LIBS"
18101
18102 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18103echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18104if test "${lt_cv_dlopen_self+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18106else
18107 if test "$cross_compiling" = yes; then :
18108 lt_cv_dlopen_self=cross
18109else
18110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18111 lt_status=$lt_dlunknown
18112 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000018113#line 18113 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018114#include "confdefs.h"
18115
18116#if HAVE_DLFCN_H
18117#include <dlfcn.h>
18118#endif
18119
18120#include <stdio.h>
18121
18122#ifdef RTLD_GLOBAL
18123# define LT_DLGLOBAL RTLD_GLOBAL
18124#else
18125# ifdef DL_GLOBAL
18126# define LT_DLGLOBAL DL_GLOBAL
18127# else
18128# define LT_DLGLOBAL 0
18129# endif
18130#endif
18131
18132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18133 find out it does not work in some platform. */
18134#ifndef LT_DLLAZY_OR_NOW
18135# ifdef RTLD_LAZY
18136# define LT_DLLAZY_OR_NOW RTLD_LAZY
18137# else
18138# ifdef DL_LAZY
18139# define LT_DLLAZY_OR_NOW DL_LAZY
18140# else
18141# ifdef RTLD_NOW
18142# define LT_DLLAZY_OR_NOW RTLD_NOW
18143# else
18144# ifdef DL_NOW
18145# define LT_DLLAZY_OR_NOW DL_NOW
18146# else
18147# define LT_DLLAZY_OR_NOW 0
18148# endif
18149# endif
18150# endif
18151# endif
18152#endif
18153
18154#ifdef __cplusplus
18155extern "C" void exit (int);
18156#endif
18157
18158void fnord() { int i=42;}
18159int main ()
18160{
18161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18162 int status = $lt_dlunknown;
18163
18164 if (self)
18165 {
18166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18168 /* dlclose (self); */
18169 }
18170
18171 exit (status);
18172}
18173EOF
18174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175 (eval $ac_link) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18179 (./conftest; exit; ) 2>/dev/null
18180 lt_status=$?
18181 case x$lt_status in
18182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18184 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18185 esac
18186 else :
18187 # compilation failed
18188 lt_cv_dlopen_self=no
18189 fi
18190fi
18191rm -fr conftest*
18192
18193
18194fi
18195echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18196echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18197
18198 if test "x$lt_cv_dlopen_self" = xyes; then
18199 LDFLAGS="$LDFLAGS $link_static_flag"
18200 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18201echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18202if test "${lt_cv_dlopen_self_static+set}" = set; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
18204else
18205 if test "$cross_compiling" = yes; then :
18206 lt_cv_dlopen_self_static=cross
18207else
18208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18209 lt_status=$lt_dlunknown
18210 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000018211#line 18211 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018212#include "confdefs.h"
18213
18214#if HAVE_DLFCN_H
18215#include <dlfcn.h>
18216#endif
18217
18218#include <stdio.h>
18219
18220#ifdef RTLD_GLOBAL
18221# define LT_DLGLOBAL RTLD_GLOBAL
18222#else
18223# ifdef DL_GLOBAL
18224# define LT_DLGLOBAL DL_GLOBAL
18225# else
18226# define LT_DLGLOBAL 0
18227# endif
18228#endif
18229
18230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18231 find out it does not work in some platform. */
18232#ifndef LT_DLLAZY_OR_NOW
18233# ifdef RTLD_LAZY
18234# define LT_DLLAZY_OR_NOW RTLD_LAZY
18235# else
18236# ifdef DL_LAZY
18237# define LT_DLLAZY_OR_NOW DL_LAZY
18238# else
18239# ifdef RTLD_NOW
18240# define LT_DLLAZY_OR_NOW RTLD_NOW
18241# else
18242# ifdef DL_NOW
18243# define LT_DLLAZY_OR_NOW DL_NOW
18244# else
18245# define LT_DLLAZY_OR_NOW 0
18246# endif
18247# endif
18248# endif
18249# endif
18250#endif
18251
18252#ifdef __cplusplus
18253extern "C" void exit (int);
18254#endif
18255
18256void fnord() { int i=42;}
18257int main ()
18258{
18259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18260 int status = $lt_dlunknown;
18261
18262 if (self)
18263 {
18264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18266 /* dlclose (self); */
18267 }
18268
18269 exit (status);
18270}
18271EOF
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18277 (./conftest; exit; ) 2>/dev/null
18278 lt_status=$?
18279 case x$lt_status in
18280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18282 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18283 esac
18284 else :
18285 # compilation failed
18286 lt_cv_dlopen_self_static=no
18287 fi
18288fi
18289rm -fr conftest*
18290
18291
18292fi
18293echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18294echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18295 fi
18296
18297 CPPFLAGS="$save_CPPFLAGS"
18298 LDFLAGS="$save_LDFLAGS"
18299 LIBS="$save_LIBS"
18300 ;;
18301 esac
18302
18303 case $lt_cv_dlopen_self in
18304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18305 *) enable_dlopen_self=unknown ;;
18306 esac
18307
18308 case $lt_cv_dlopen_self_static in
18309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18310 *) enable_dlopen_self_static=unknown ;;
18311 esac
18312fi
18313
18314
18315# The else clause should only fire when bootstrapping the
18316# libtool distribution, otherwise you forgot to ship ltmain.sh
18317# with your package, and you will get complaints that there are
18318# no rules to generate ltmain.sh.
18319if test -f "$ltmain"; then
18320 # See if we are running on zsh, and set the options which allow our commands through
18321 # without removal of \ escapes.
18322 if test -n "${ZSH_VERSION+set}" ; then
18323 setopt NO_GLOB_SUBST
18324 fi
18325 # Now quote all the things that may contain metacharacters while being
18326 # careful not to overquote the AC_SUBSTed values. We take copies of the
18327 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18329 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332 deplibs_check_method reload_flag reload_cmds need_locks \
18333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334 lt_cv_sys_global_symbol_to_c_name_address \
18335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336 old_postinstall_cmds old_postuninstall_cmds \
18337 compiler_CXX \
18338 CC_CXX \
18339 LD_CXX \
18340 lt_prog_compiler_wl_CXX \
18341 lt_prog_compiler_pic_CXX \
18342 lt_prog_compiler_static_CXX \
18343 lt_prog_compiler_no_builtin_flag_CXX \
18344 export_dynamic_flag_spec_CXX \
18345 thread_safe_flag_spec_CXX \
18346 whole_archive_flag_spec_CXX \
18347 enable_shared_with_static_runtimes_CXX \
18348 old_archive_cmds_CXX \
18349 old_archive_from_new_cmds_CXX \
18350 predep_objects_CXX \
18351 postdep_objects_CXX \
18352 predeps_CXX \
18353 postdeps_CXX \
18354 compiler_lib_search_path_CXX \
18355 archive_cmds_CXX \
18356 archive_expsym_cmds_CXX \
18357 postinstall_cmds_CXX \
18358 postuninstall_cmds_CXX \
18359 old_archive_from_expsyms_cmds_CXX \
18360 allow_undefined_flag_CXX \
18361 no_undefined_flag_CXX \
18362 export_symbols_cmds_CXX \
18363 hardcode_libdir_flag_spec_CXX \
18364 hardcode_libdir_flag_spec_ld_CXX \
18365 hardcode_libdir_separator_CXX \
18366 hardcode_automatic_CXX \
18367 module_cmds_CXX \
18368 module_expsym_cmds_CXX \
18369 lt_cv_prog_compiler_c_o_CXX \
18370 exclude_expsyms_CXX \
18371 include_expsyms_CXX; do
18372
18373 case $var in
18374 old_archive_cmds_CXX | \
18375 old_archive_from_new_cmds_CXX | \
18376 archive_cmds_CXX | \
18377 archive_expsym_cmds_CXX | \
18378 module_cmds_CXX | \
18379 module_expsym_cmds_CXX | \
18380 old_archive_from_expsyms_cmds_CXX | \
18381 export_symbols_cmds_CXX | \
18382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18383 postinstall_cmds | postuninstall_cmds | \
18384 old_postinstall_cmds | old_postuninstall_cmds | \
18385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18386 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018387 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 +000018388 ;;
18389 *)
18390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18391 ;;
18392 esac
18393 done
18394
18395 case $lt_echo in
18396 *'\$0 --fallback-echo"')
18397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18398 ;;
18399 esac
18400
18401cfgfile="$ofile"
18402
18403 cat <<__EOF__ >> "$cfgfile"
18404# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18405
18406# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18407
18408# Shell to use when invoking shell scripts.
18409SHELL=$lt_SHELL
18410
18411# Whether or not to build shared libraries.
18412build_libtool_libs=$enable_shared
18413
18414# Whether or not to build static libraries.
18415build_old_libs=$enable_static
18416
18417# Whether or not to add -lc for building shared libraries.
18418build_libtool_need_lc=$archive_cmds_need_lc_CXX
18419
18420# Whether or not to disallow shared libs when runtime libs are static
18421allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18422
18423# Whether or not to optimize for fast installation.
18424fast_install=$enable_fast_install
18425
18426# The host system.
18427host_alias=$host_alias
18428host=$host
18429
18430# An echo program that does not interpret backslashes.
18431echo=$lt_echo
18432
18433# The archiver.
18434AR=$lt_AR
18435AR_FLAGS=$lt_AR_FLAGS
18436
18437# A C compiler.
18438LTCC=$lt_LTCC
18439
18440# A language-specific compiler.
18441CC=$lt_compiler_CXX
18442
18443# Is the compiler the GNU C compiler?
18444with_gcc=$GCC_CXX
18445
18446# An ERE matcher.
18447EGREP=$lt_EGREP
18448
18449# The linker used to build libraries.
18450LD=$lt_LD_CXX
18451
18452# Whether we need hard or soft links.
18453LN_S=$lt_LN_S
18454
18455# A BSD-compatible nm program.
18456NM=$lt_NM
18457
18458# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018459STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018460
18461# Used to examine libraries when file_magic_cmd begins "file"
18462MAGIC_CMD=$MAGIC_CMD
18463
18464# Used on cygwin: DLL creation program.
18465DLLTOOL="$DLLTOOL"
18466
18467# Used on cygwin: object dumper.
18468OBJDUMP="$OBJDUMP"
18469
18470# Used on cygwin: assembler.
18471AS="$AS"
18472
18473# The name of the directory that contains temporary libtool files.
18474objdir=$objdir
18475
18476# How to create reloadable object files.
18477reload_flag=$lt_reload_flag
18478reload_cmds=$lt_reload_cmds
18479
18480# How to pass a linker flag through the compiler.
18481wl=$lt_lt_prog_compiler_wl_CXX
18482
18483# Object file suffix (normally "o").
18484objext="$ac_objext"
18485
18486# Old archive suffix (normally "a").
18487libext="$libext"
18488
18489# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018490shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018491
18492# Executable file suffix (normally "").
18493exeext="$exeext"
18494
18495# Additional compiler flags for building library objects.
18496pic_flag=$lt_lt_prog_compiler_pic_CXX
18497pic_mode=$pic_mode
18498
18499# What is the maximum length of a command?
18500max_cmd_len=$lt_cv_sys_max_cmd_len
18501
18502# Does compiler simultaneously support -c and -o options?
18503compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18504
18505# Must we lock files when doing compilation ?
18506need_locks=$lt_need_locks
18507
18508# Do we need the lib prefix for modules?
18509need_lib_prefix=$need_lib_prefix
18510
18511# Do we need a version for libraries?
18512need_version=$need_version
18513
18514# Whether dlopen is supported.
18515dlopen_support=$enable_dlopen
18516
18517# Whether dlopen of programs is supported.
18518dlopen_self=$enable_dlopen_self
18519
18520# Whether dlopen of statically linked programs is supported.
18521dlopen_self_static=$enable_dlopen_self_static
18522
18523# Compiler flag to prevent dynamic linking.
18524link_static_flag=$lt_lt_prog_compiler_static_CXX
18525
18526# Compiler flag to turn off builtin functions.
18527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18528
18529# Compiler flag to allow reflexive dlopens.
18530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18531
18532# Compiler flag to generate shared objects directly from archives.
18533whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18534
18535# Compiler flag to generate thread-safe objects.
18536thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18537
18538# Library versioning type.
18539version_type=$version_type
18540
18541# Format of library name prefix.
18542libname_spec=$lt_libname_spec
18543
18544# List of archive names. First name is the real one, the rest are links.
18545# The last name is the one that the linker finds with -lNAME.
18546library_names_spec=$lt_library_names_spec
18547
18548# The coded name of the library, if different from the real name.
18549soname_spec=$lt_soname_spec
18550
18551# Commands used to build and install an old-style archive.
18552RANLIB=$lt_RANLIB
18553old_archive_cmds=$lt_old_archive_cmds_CXX
18554old_postinstall_cmds=$lt_old_postinstall_cmds
18555old_postuninstall_cmds=$lt_old_postuninstall_cmds
18556
18557# Create an old-style archive from a shared archive.
18558old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18559
18560# Create a temporary old-style archive to link instead of a shared archive.
18561old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18562
18563# Commands used to build and install a shared archive.
18564archive_cmds=$lt_archive_cmds_CXX
18565archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18566postinstall_cmds=$lt_postinstall_cmds
18567postuninstall_cmds=$lt_postuninstall_cmds
18568
18569# Commands used to build a loadable module (assumed same as above if empty)
18570module_cmds=$lt_module_cmds_CXX
18571module_expsym_cmds=$lt_module_expsym_cmds_CXX
18572
18573# Commands to strip libraries.
18574old_striplib=$lt_old_striplib
18575striplib=$lt_striplib
18576
18577# Dependencies to place before the objects being linked to create a
18578# shared library.
18579predep_objects=$lt_predep_objects_CXX
18580
18581# Dependencies to place after the objects being linked to create a
18582# shared library.
18583postdep_objects=$lt_postdep_objects_CXX
18584
18585# Dependencies to place before the objects being linked to create a
18586# shared library.
18587predeps=$lt_predeps_CXX
18588
18589# Dependencies to place after the objects being linked to create a
18590# shared library.
18591postdeps=$lt_postdeps_CXX
18592
18593# The library search path used internally by the compiler when linking
18594# a shared library.
18595compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18596
18597# Method to check whether dependent libraries are shared objects.
18598deplibs_check_method=$lt_deplibs_check_method
18599
18600# Command to use when deplibs_check_method == file_magic.
18601file_magic_cmd=$lt_file_magic_cmd
18602
18603# Flag that allows shared libraries with undefined symbols to be built.
18604allow_undefined_flag=$lt_allow_undefined_flag_CXX
18605
18606# Flag that forces no undefined symbols.
18607no_undefined_flag=$lt_no_undefined_flag_CXX
18608
18609# Commands used to finish a libtool library installation in a directory.
18610finish_cmds=$lt_finish_cmds
18611
18612# Same as above, but a single script fragment to be evaled but not shown.
18613finish_eval=$lt_finish_eval
18614
18615# Take the output of nm and produce a listing of raw symbols and C names.
18616global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18617
18618# Transform the output of nm in a proper C declaration
18619global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18620
18621# Transform the output of nm in a C name address pair
18622global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18623
18624# This is the shared library runtime path variable.
18625runpath_var=$runpath_var
18626
18627# This is the shared library path variable.
18628shlibpath_var=$shlibpath_var
18629
18630# Is shlibpath searched before the hard-coded library search path?
18631shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18632
18633# How to hardcode a shared library path into an executable.
18634hardcode_action=$hardcode_action_CXX
18635
18636# Whether we should hardcode library paths into libraries.
18637hardcode_into_libs=$hardcode_into_libs
18638
18639# Flag to hardcode \$libdir into a binary during linking.
18640# This must work even if \$libdir does not exist.
18641hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18642
18643# If ld is used when linking, flag to hardcode \$libdir into
18644# a binary during linking. This must work even if \$libdir does
18645# not exist.
18646hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18647
18648# Whether we need a single -rpath flag with a separated argument.
18649hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18650
18651# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18652# resulting binary.
18653hardcode_direct=$hardcode_direct_CXX
18654
18655# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18656# resulting binary.
18657hardcode_minus_L=$hardcode_minus_L_CXX
18658
18659# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18660# the resulting binary.
18661hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18662
18663# Set to yes if building a shared library automatically hardcodes DIR into the library
18664# and all subsequent libraries and executables linked against it.
18665hardcode_automatic=$hardcode_automatic_CXX
18666
18667# Variables whose values should be saved in libtool wrapper scripts and
18668# restored at relink time.
18669variables_saved_for_relink="$variables_saved_for_relink"
18670
18671# Whether libtool must link a program against all its dependency libraries.
18672link_all_deplibs=$link_all_deplibs_CXX
18673
18674# Compile-time system search path for libraries
18675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18676
18677# Run-time system search path for libraries
18678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18679
18680# Fix the shell variable \$srcfile for the compiler.
18681fix_srcfile_path="$fix_srcfile_path_CXX"
18682
18683# Set to yes if exported symbols are required.
18684always_export_symbols=$always_export_symbols_CXX
18685
18686# The commands to list exported symbols.
18687export_symbols_cmds=$lt_export_symbols_cmds_CXX
18688
18689# The commands to extract the exported symbol list from a shared archive.
18690extract_expsyms_cmds=$lt_extract_expsyms_cmds
18691
18692# Symbols that should not be listed in the preloaded symbols.
18693exclude_expsyms=$lt_exclude_expsyms_CXX
18694
18695# Symbols that must always be exported.
18696include_expsyms=$lt_include_expsyms_CXX
18697
18698# ### END LIBTOOL TAG CONFIG: $tagname
18699
18700__EOF__
18701
18702
18703else
18704 # If there is no Makefile yet, we rely on a make rule to execute
18705 # `config.status --recheck' to rerun these tests and create the
18706 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18708 if test -f "$ltmain_in"; then
18709 test -f Makefile && make "$ltmain"
18710 fi
John Criswell47fdd832003-07-14 16:52:07 +000018711fi
18712
18713
18714ac_ext=c
18715ac_cpp='$CPP $CPPFLAGS'
18716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718ac_compiler_gnu=$ac_cv_c_compiler_gnu
18719
18720CC=$lt_save_CC
18721LDCXX=$LD
18722LD=$lt_save_LD
18723GCC=$lt_save_GCC
18724with_gnu_ldcxx=$with_gnu_ld
18725with_gnu_ld=$lt_save_with_gnu_ld
18726lt_cv_path_LDCXX=$lt_cv_path_LD
18727lt_cv_path_LD=$lt_save_path_LD
18728lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18729lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18730
18731 else
18732 tagname=""
18733 fi
18734 ;;
18735
18736 F77)
18737 if test -n "$F77" && test "X$F77" != "Xno"; then
18738
18739ac_ext=f
18740ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18741ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18742ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18743
18744
18745archive_cmds_need_lc_F77=no
18746allow_undefined_flag_F77=
18747always_export_symbols_F77=no
18748archive_expsym_cmds_F77=
18749export_dynamic_flag_spec_F77=
18750hardcode_direct_F77=no
18751hardcode_libdir_flag_spec_F77=
18752hardcode_libdir_flag_spec_ld_F77=
18753hardcode_libdir_separator_F77=
18754hardcode_minus_L_F77=no
18755hardcode_automatic_F77=no
18756module_cmds_F77=
18757module_expsym_cmds_F77=
18758link_all_deplibs_F77=unknown
18759old_archive_cmds_F77=$old_archive_cmds
18760no_undefined_flag_F77=
18761whole_archive_flag_spec_F77=
18762enable_shared_with_static_runtimes_F77=no
18763
18764# Source file extension for f77 test sources.
18765ac_ext=f
18766
18767# Object file extension for compiled f77 test sources.
18768objext=o
18769objext_F77=$objext
18770
18771# Code to be used in simple compile tests
18772lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18773
18774# Code to be used in simple link tests
18775lt_simple_link_test_code=" program t\n end\n"
18776
18777# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18778
18779# If no C compiler was specified, use CC.
18780LTCC=${LTCC-"$CC"}
18781
18782# Allow CC to be a program name with arguments.
18783compiler=$CC
18784
18785
18786# Allow CC to be a program name with arguments.
18787lt_save_CC="$CC"
18788CC=${F77-"f77"}
18789compiler=$CC
18790compiler_F77=$CC
18791cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18792
18793echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18794echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18795echo "$as_me:$LINENO: result: $can_build_shared" >&5
18796echo "${ECHO_T}$can_build_shared" >&6
18797
18798echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18799echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18800test "$can_build_shared" = "no" && enable_shared=no
18801
18802# On AIX, shared libraries and static libraries use the same namespace, and
18803# are all built from PIC.
18804case "$host_os" in
18805aix3*)
18806 test "$enable_shared" = yes && enable_static=no
18807 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018808 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018809 postinstall_cmds='$RANLIB $lib'
18810 fi
18811 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018812aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018813 test "$enable_shared" = yes && enable_static=no
18814 ;;
18815esac
18816echo "$as_me:$LINENO: result: $enable_shared" >&5
18817echo "${ECHO_T}$enable_shared" >&6
18818
18819echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18820echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18821# Make sure either enable_shared or enable_static is yes.
18822test "$enable_shared" = yes || enable_static=yes
18823echo "$as_me:$LINENO: result: $enable_static" >&5
18824echo "${ECHO_T}$enable_static" >&6
18825
18826test "$ld_shlibs_F77" = no && can_build_shared=no
18827
18828GCC_F77="$G77"
18829LD_F77="$LD"
18830
18831lt_prog_compiler_wl_F77=
18832lt_prog_compiler_pic_F77=
18833lt_prog_compiler_static_F77=
18834
18835echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18836echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18837
18838 if test "$GCC" = yes; then
18839 lt_prog_compiler_wl_F77='-Wl,'
18840 lt_prog_compiler_static_F77='-static'
18841
18842 case $host_os in
18843 aix*)
18844 # All AIX code is PIC.
18845 if test "$host_cpu" = ia64; then
18846 # AIX 5 now supports IA64 processor
18847 lt_prog_compiler_static_F77='-Bstatic'
18848 fi
18849 ;;
18850
18851 amigaos*)
18852 # FIXME: we need at least 68020 code to build shared libraries, but
18853 # adding the `-m68020' flag to GCC prevents building anything better,
18854 # like `-m68040'.
18855 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18856 ;;
18857
18858 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18859 # PIC is the default for these OSes.
18860 ;;
18861
18862 mingw* | pw32* | os2*)
18863 # This hack is so that the source file can tell whether it is being
18864 # built for inclusion in a dll (and should export symbols for example).
18865 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18866 ;;
18867
18868 darwin* | rhapsody*)
18869 # PIC is the default on this platform
18870 # Common symbols not allowed in MH_DYLIB files
18871 lt_prog_compiler_pic_F77='-fno-common'
18872 ;;
18873
18874 msdosdjgpp*)
18875 # Just because we use GCC doesn't mean we suddenly get shared libraries
18876 # on systems that don't support them.
18877 lt_prog_compiler_can_build_shared_F77=no
18878 enable_shared=no
18879 ;;
18880
18881 sysv4*MP*)
18882 if test -d /usr/nec; then
18883 lt_prog_compiler_pic_F77=-Kconform_pic
18884 fi
18885 ;;
18886
18887 hpux*)
18888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18889 # not for PA HP-UX.
18890 case "$host_cpu" in
18891 hppa*64*|ia64*)
18892 # +Z the default
18893 ;;
18894 *)
18895 lt_prog_compiler_pic_F77='-fPIC'
18896 ;;
18897 esac
18898 ;;
18899
18900 *)
18901 lt_prog_compiler_pic_F77='-fPIC'
18902 ;;
18903 esac
18904 else
18905 # PORTME Check for flag to pass linker flags through the system compiler.
18906 case $host_os in
18907 aix*)
18908 lt_prog_compiler_wl_F77='-Wl,'
18909 if test "$host_cpu" = ia64; then
18910 # AIX 5 now supports IA64 processor
18911 lt_prog_compiler_static_F77='-Bstatic'
18912 else
18913 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18914 fi
18915 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018916 darwin*)
18917 # PIC is the default on this platform
18918 # Common symbols not allowed in MH_DYLIB files
18919 case "$cc_basename" in
18920 xlc*)
18921 lt_prog_compiler_pic_F77='-qnocommon'
18922 lt_prog_compiler_wl_F77='-Wl,'
18923 ;;
18924 esac
18925 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018926
18927 mingw* | pw32* | os2*)
18928 # This hack is so that the source file can tell whether it is being
18929 # built for inclusion in a dll (and should export symbols for example).
18930 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18931 ;;
18932
18933 hpux9* | hpux10* | hpux11*)
18934 lt_prog_compiler_wl_F77='-Wl,'
18935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18936 # not for PA HP-UX.
18937 case "$host_cpu" in
18938 hppa*64*|ia64*)
18939 # +Z the default
18940 ;;
18941 *)
18942 lt_prog_compiler_pic_F77='+Z'
18943 ;;
18944 esac
18945 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18946 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18947 ;;
18948
18949 irix5* | irix6* | nonstopux*)
18950 lt_prog_compiler_wl_F77='-Wl,'
18951 # PIC (with -KPIC) is the default.
18952 lt_prog_compiler_static_F77='-non_shared'
18953 ;;
18954
18955 newsos6)
18956 lt_prog_compiler_pic_F77='-KPIC'
18957 lt_prog_compiler_static_F77='-Bstatic'
18958 ;;
18959
18960 linux*)
18961 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018962 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018963 lt_prog_compiler_wl_F77='-Wl,'
18964 lt_prog_compiler_pic_F77='-KPIC'
18965 lt_prog_compiler_static_F77='-static'
18966 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018967 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018968 lt_prog_compiler_wl_F77='-Wl,'
18969 # All Alpha code is PIC.
18970 lt_prog_compiler_static_F77='-non_shared'
18971 ;;
18972 esac
18973 ;;
18974
18975 osf3* | osf4* | osf5*)
18976 lt_prog_compiler_wl_F77='-Wl,'
18977 # All OSF/1 code is PIC.
18978 lt_prog_compiler_static_F77='-non_shared'
18979 ;;
18980
18981 sco3.2v5*)
18982 lt_prog_compiler_pic_F77='-Kpic'
18983 lt_prog_compiler_static_F77='-dn'
18984 ;;
18985
18986 solaris*)
18987 lt_prog_compiler_wl_F77='-Wl,'
18988 lt_prog_compiler_pic_F77='-KPIC'
18989 lt_prog_compiler_static_F77='-Bstatic'
18990 ;;
18991
18992 sunos4*)
18993 lt_prog_compiler_wl_F77='-Qoption ld '
18994 lt_prog_compiler_pic_F77='-PIC'
18995 lt_prog_compiler_static_F77='-Bstatic'
18996 ;;
18997
18998 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18999 lt_prog_compiler_wl_F77='-Wl,'
19000 lt_prog_compiler_pic_F77='-KPIC'
19001 lt_prog_compiler_static_F77='-Bstatic'
19002 ;;
19003
19004 sysv4*MP*)
19005 if test -d /usr/nec ;then
19006 lt_prog_compiler_pic_F77='-Kconform_pic'
19007 lt_prog_compiler_static_F77='-Bstatic'
19008 fi
19009 ;;
19010
19011 uts4*)
19012 lt_prog_compiler_pic_F77='-pic'
19013 lt_prog_compiler_static_F77='-Bstatic'
19014 ;;
19015
19016 *)
19017 lt_prog_compiler_can_build_shared_F77=no
19018 ;;
19019 esac
19020 fi
19021
19022echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19023echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19024
19025#
19026# Check to make sure the PIC flag actually works.
19027#
19028if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019029
19030echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019031echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19032if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19034else
19035 lt_prog_compiler_pic_works_F77=no
19036 ac_outfile=conftest.$ac_objext
19037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19038 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19039 # Insert the option either (1) after the last *FLAGS variable, or
19040 # (2) before a word containing "conftest.", or (3) at the end.
19041 # Note that $ac_compile itself does not contain backslashes and begins
19042 # with a dollar sign (not a hyphen), so the echo should work correctly.
19043 # The option is referenced via a variable to avoid confusing sed.
19044 lt_compile=`echo "$ac_compile" | $SED \
19045 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19047 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000019048 (eval echo "\"\$as_me:19048: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019049 (eval "$lt_compile" 2>conftest.err)
19050 ac_status=$?
19051 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000019052 echo "$as_me:19052: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019053 if (exit $ac_status) && test -s "$ac_outfile"; then
19054 # The compiler can only warn and ignore the option if not recognized
19055 # So say no if there are warnings
19056 if test ! -s conftest.err; then
19057 lt_prog_compiler_pic_works_F77=yes
19058 fi
19059 fi
19060 $rm conftest*
19061
19062fi
19063echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19064echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19065
19066if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19067 case $lt_prog_compiler_pic_F77 in
19068 "" | " "*) ;;
19069 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19070 esac
19071else
19072 lt_prog_compiler_pic_F77=
19073 lt_prog_compiler_can_build_shared_F77=no
19074fi
19075
19076fi
19077case "$host_os" in
19078 # For platforms which do not support PIC, -DPIC is meaningless:
19079 *djgpp*)
19080 lt_prog_compiler_pic_F77=
19081 ;;
19082 *)
19083 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19084 ;;
19085esac
19086
19087echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19088echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19089if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19091else
19092 lt_cv_prog_compiler_c_o_F77=no
19093 $rm -r conftest 2>/dev/null
19094 mkdir conftest
19095 cd conftest
19096 mkdir out
19097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19098
John Criswell47fdd832003-07-14 16:52:07 +000019099 lt_compiler_flag="-o out/conftest2.$ac_objext"
19100 # Insert the option either (1) after the last *FLAGS variable, or
19101 # (2) before a word containing "conftest.", or (3) at the end.
19102 # Note that $ac_compile itself does not contain backslashes and begins
19103 # with a dollar sign (not a hyphen), so the echo should work correctly.
19104 lt_compile=`echo "$ac_compile" | $SED \
19105 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19107 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000019108 (eval echo "\"\$as_me:19108: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019109 (eval "$lt_compile" 2>out/conftest.err)
19110 ac_status=$?
19111 cat out/conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000019112 echo "$as_me:19112: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19114 then
19115 # The compiler can only warn and ignore the option if not recognized
19116 # So say no if there are warnings
19117 if test ! -s out/conftest.err; then
19118 lt_cv_prog_compiler_c_o_F77=yes
19119 fi
19120 fi
19121 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019122 $rm conftest*
19123 # SGI C++ compiler will create directory out/ii_files/ for
19124 # template instantiation
19125 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19126 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019127 cd ..
19128 rmdir conftest
19129 $rm conftest*
19130
19131fi
19132echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19133echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19134
19135
19136hard_links="nottested"
19137if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19138 # do not overwrite the value of need_locks provided by the user
19139 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19140echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19141 hard_links=yes
19142 $rm conftest*
19143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19144 touch conftest.a
19145 ln conftest.a conftest.b 2>&5 || hard_links=no
19146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19147 echo "$as_me:$LINENO: result: $hard_links" >&5
19148echo "${ECHO_T}$hard_links" >&6
19149 if test "$hard_links" = no; then
19150 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19151echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19152 need_locks=warn
19153 fi
19154else
19155 need_locks=no
19156fi
19157
19158echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19159echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19160
19161 runpath_var=
19162 allow_undefined_flag_F77=
19163 enable_shared_with_static_runtimes_F77=no
19164 archive_cmds_F77=
19165 archive_expsym_cmds_F77=
19166 old_archive_From_new_cmds_F77=
19167 old_archive_from_expsyms_cmds_F77=
19168 export_dynamic_flag_spec_F77=
19169 whole_archive_flag_spec_F77=
19170 thread_safe_flag_spec_F77=
19171 hardcode_libdir_flag_spec_F77=
19172 hardcode_libdir_flag_spec_ld_F77=
19173 hardcode_libdir_separator_F77=
19174 hardcode_direct_F77=no
19175 hardcode_minus_L_F77=no
19176 hardcode_shlibpath_var_F77=unsupported
19177 link_all_deplibs_F77=unknown
19178 hardcode_automatic_F77=no
19179 module_cmds_F77=
19180 module_expsym_cmds_F77=
19181 always_export_symbols_F77=no
19182 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19183 # include_expsyms should be a list of space-separated symbols to be *always*
19184 # included in the symbol list
19185 include_expsyms_F77=
19186 # exclude_expsyms can be an extended regexp of symbols to exclude
19187 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19188 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19189 # as well as any symbol that contains `d'.
19190 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19191 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19192 # platforms (ab)use it in PIC code, but their linkers get confused if
19193 # the symbol is explicitly referenced. Since portable code cannot
19194 # rely on this symbol name, it's probably fine to never include it in
19195 # preloaded symbol tables.
19196 extract_expsyms_cmds=
19197
19198 case $host_os in
19199 cygwin* | mingw* | pw32*)
19200 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19201 # When not using gcc, we currently assume that we are using
19202 # Microsoft Visual C++.
19203 if test "$GCC" != yes; then
19204 with_gnu_ld=no
19205 fi
19206 ;;
19207 openbsd*)
19208 with_gnu_ld=no
19209 ;;
19210 esac
19211
19212 ld_shlibs_F77=yes
19213 if test "$with_gnu_ld" = yes; then
19214 # If archive_cmds runs LD, not CC, wlarc should be empty
19215 wlarc='${wl}'
19216
19217 # See if GNU ld supports shared libraries.
19218 case $host_os in
19219 aix3* | aix4* | aix5*)
19220 # On AIX/PPC, the GNU linker is very broken
19221 if test "$host_cpu" != ia64; then
19222 ld_shlibs_F77=no
19223 cat <<EOF 1>&2
19224
19225*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19226*** to be unable to reliably create shared libraries on AIX.
19227*** Therefore, libtool is disabling shared libraries support. If you
19228*** really care for shared libraries, you may want to modify your PATH
19229*** so that a non-GNU linker is found, and then restart.
19230
19231EOF
19232 fi
19233 ;;
19234
19235 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019236 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 +000019237 hardcode_libdir_flag_spec_F77='-L$libdir'
19238 hardcode_minus_L_F77=yes
19239
19240 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19241 # that the semantics of dynamic libraries on AmigaOS, at least up
19242 # to version 4, is to share data among multiple programs linked
19243 # with the same dynamic library. Since this doesn't match the
19244 # behavior of shared libraries on other platforms, we can't use
19245 # them.
19246 ld_shlibs_F77=no
19247 ;;
19248
19249 beos*)
19250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19251 allow_undefined_flag_F77=unsupported
19252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19253 # support --undefined. This deserves some investigation. FIXME
19254 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19255 else
19256 ld_shlibs_F77=no
19257 fi
19258 ;;
19259
19260 cygwin* | mingw* | pw32*)
19261 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19262 # as there is no search path for DLLs.
19263 hardcode_libdir_flag_spec_F77='-L$libdir'
19264 allow_undefined_flag_F77=unsupported
19265 always_export_symbols_F77=no
19266 enable_shared_with_static_runtimes_F77=yes
19267 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19268
19269 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19270 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19271 # If the export-symbols file already is a .def file (1st line
19272 # is EXPORTS), use it as is; otherwise, prepend...
19273 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19274 cp $export_symbols $output_objdir/$soname.def;
19275 else
19276 echo EXPORTS > $output_objdir/$soname.def;
19277 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019278 fi~
19279 $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 +000019280 else
19281 ld_shlibs=no
19282 fi
19283 ;;
19284
19285 netbsd*)
19286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19287 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19288 wlarc=
19289 else
19290 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19291 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19292 fi
19293 ;;
19294
19295 solaris* | sysv5*)
19296 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19297 ld_shlibs_F77=no
19298 cat <<EOF 1>&2
19299
19300*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19301*** create shared libraries on Solaris systems. Therefore, libtool
19302*** is disabling shared libraries support. We urge you to upgrade GNU
19303*** binutils to release 2.9.1 or newer. Another option is to modify
19304*** your PATH or compiler configuration so that the native linker is
19305*** used, and then restart.
19306
19307EOF
19308 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19309 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19310 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19311 else
19312 ld_shlibs_F77=no
19313 fi
19314 ;;
19315
19316 sunos4*)
19317 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19318 wlarc=
19319 hardcode_direct_F77=yes
19320 hardcode_shlibpath_var_F77=no
19321 ;;
19322
Reid Spencer2706f8c2004-09-19 23:53:36 +000019323 linux*)
19324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19325 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19326 archive_cmds_F77="$tmp_archive_cmds"
19327 supports_anon_versioning=no
19328 case `$LD -v 2>/dev/null` in
19329 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19332 *\ 2.11.*) ;; # other 2.11 versions
19333 *) supports_anon_versioning=yes ;;
19334 esac
19335 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019336 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19337cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19338$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019339 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19340 else
19341 archive_expsym_cmds_F77="$tmp_archive_cmds"
19342 fi
19343 else
19344 ld_shlibs_F77=no
19345 fi
19346 ;;
19347
John Criswell47fdd832003-07-14 16:52:07 +000019348 *)
19349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19350 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19352 else
19353 ld_shlibs_F77=no
19354 fi
19355 ;;
19356 esac
19357
19358 if test "$ld_shlibs_F77" = yes; then
19359 runpath_var=LD_RUN_PATH
19360 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19361 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19362 # ancient GNU ld didn't support --whole-archive et. al.
19363 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19364 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19365 else
19366 whole_archive_flag_spec_F77=
19367 fi
19368 fi
19369 else
19370 # PORTME fill in a description of your system's linker (not GNU ld)
19371 case $host_os in
19372 aix3*)
19373 allow_undefined_flag_F77=unsupported
19374 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019375 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 +000019376 # Note: this linker hardcodes the directories in LIBPATH if there
19377 # are no directories specified by -L.
19378 hardcode_minus_L_F77=yes
19379 if test "$GCC" = yes && test -z "$link_static_flag"; then
19380 # Neither direct hardcoding nor static linking is supported with a
19381 # broken collect2.
19382 hardcode_direct_F77=unsupported
19383 fi
19384 ;;
19385
19386 aix4* | aix5*)
19387 if test "$host_cpu" = ia64; then
19388 # On IA64, the linker does run time linking by default, so we don't
19389 # have to do anything special.
19390 aix_use_runtimelinking=no
19391 exp_sym_flag='-Bexport'
19392 no_entry_flag=""
19393 else
19394 # If we're using GNU nm, then we don't want the "-C" option.
19395 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19396 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19397 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'
19398 else
19399 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'
19400 fi
19401 aix_use_runtimelinking=no
19402
19403 # Test if we are trying to use run time linking or normal
19404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19405 # need to do runtime linking.
19406 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19407 for ld_flag in $LDFLAGS; do
19408 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19409 aix_use_runtimelinking=yes
19410 break
19411 fi
19412 done
19413 esac
19414
19415 exp_sym_flag='-bexport'
19416 no_entry_flag='-bnoentry'
19417 fi
19418
19419 # When large executables or shared objects are built, AIX ld can
19420 # have problems creating the table of contents. If linking a library
19421 # or program results in "error TOC overflow" add -mminimal-toc to
19422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19424
19425 archive_cmds_F77=''
19426 hardcode_direct_F77=yes
19427 hardcode_libdir_separator_F77=':'
19428 link_all_deplibs_F77=yes
19429
19430 if test "$GCC" = yes; then
19431 case $host_os in aix4.012|aix4.012.*)
19432 # We only want to do this on AIX 4.2 and lower, the check
19433 # below for broken collect2 doesn't work under 4.3+
19434 collect2name=`${CC} -print-prog-name=collect2`
19435 if test -f "$collect2name" && \
19436 strings "$collect2name" | grep resolve_lib_name >/dev/null
19437 then
19438 # We have reworked collect2
19439 hardcode_direct_F77=yes
19440 else
19441 # We have old collect2
19442 hardcode_direct_F77=unsupported
19443 # It fails to find uninstalled libraries when the uninstalled
19444 # path is not listed in the libpath. Setting hardcode_minus_L
19445 # to unsupported forces relinking
19446 hardcode_minus_L_F77=yes
19447 hardcode_libdir_flag_spec_F77='-L$libdir'
19448 hardcode_libdir_separator_F77=
19449 fi
19450 esac
19451 shared_flag='-shared'
19452 else
19453 # not using gcc
19454 if test "$host_cpu" = ia64; then
19455 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19456 # chokes on -Wl,-G. The following line is correct:
19457 shared_flag='-G'
19458 else
19459 if test "$aix_use_runtimelinking" = yes; then
19460 shared_flag='${wl}-G'
19461 else
19462 shared_flag='${wl}-bM:SRE'
19463 fi
19464 fi
19465 fi
19466
19467 # It seems that -bexpall does not export symbols beginning with
19468 # underscore (_), so it is better to generate a list of symbols to export.
19469 always_export_symbols_F77=yes
19470 if test "$aix_use_runtimelinking" = yes; then
19471 # Warning - without using the other runtime loading flags (-brtl),
19472 # -berok will link without error, but may produce a broken library.
19473 allow_undefined_flag_F77='-berok'
19474 # Determine the default libpath from the value encoded in an empty executable.
19475 cat >conftest.$ac_ext <<_ACEOF
19476 program main
19477
19478 end
19479_ACEOF
19480rm -f conftest.$ac_objext conftest$ac_exeext
19481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019482 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019483 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019484 grep -v '^ *+' conftest.er1 >conftest.err
19485 rm -f conftest.er1
19486 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019489 { ac_try='test -z "$ac_f77_werror_flag"
19490 || test ! -s conftest.err'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; } &&
19496 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502
19503aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19504}'`
19505# Check for a 64-bit object if we didn't find anything.
19506if 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; }
19507}'`; fi
19508else
19509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019510sed 's/^/| /' conftest.$ac_ext >&5
19511
John Criswell47fdd832003-07-14 16:52:07 +000019512fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019513rm -f conftest.err conftest.$ac_objext \
19514 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19516
19517 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19518 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"
19519 else
19520 if test "$host_cpu" = ia64; then
19521 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19522 allow_undefined_flag_F77="-z nodefs"
19523 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"
19524 else
19525 # Determine the default libpath from the value encoded in an empty executable.
19526 cat >conftest.$ac_ext <<_ACEOF
19527 program main
19528
19529 end
19530_ACEOF
19531rm -f conftest.$ac_objext conftest$ac_exeext
19532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019533 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019534 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019540 { ac_try='test -z "$ac_f77_werror_flag"
19541 || test ! -s conftest.err'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; } &&
19547 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; }; then
19553
19554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19555}'`
19556# Check for a 64-bit object if we didn't find anything.
19557if 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; }
19558}'`; fi
19559else
19560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019561sed 's/^/| /' conftest.$ac_ext >&5
19562
John Criswell47fdd832003-07-14 16:52:07 +000019563fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019564rm -f conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019566if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19567
19568 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19569 # Warning - without using the other run time loading flags,
19570 # -berok will link without error, but may produce a broken library.
19571 no_undefined_flag_F77=' ${wl}-bernotok'
19572 allow_undefined_flag_F77=' ${wl}-berok'
19573 # -bexpall does not export symbols beginning with underscore (_)
19574 always_export_symbols_F77=yes
19575 # Exported symbols can be pulled into shared objects from archives
19576 whole_archive_flag_spec_F77=' '
19577 archive_cmds_need_lc_F77=yes
19578 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019579 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 +000019580 fi
19581 fi
19582 ;;
19583
19584 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019585 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 +000019586 hardcode_libdir_flag_spec_F77='-L$libdir'
19587 hardcode_minus_L_F77=yes
19588 # see comment about different semantics on the GNU ld section
19589 ld_shlibs_F77=no
19590 ;;
19591
Reid Spencer2706f8c2004-09-19 23:53:36 +000019592 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019593 export_dynamic_flag_spec_F77=-rdynamic
19594 ;;
19595
19596 cygwin* | mingw* | pw32*)
19597 # When not using gcc, we currently assume that we are using
19598 # Microsoft Visual C++.
19599 # hardcode_libdir_flag_spec is actually meaningless, as there is
19600 # no search path for DLLs.
19601 hardcode_libdir_flag_spec_F77=' '
19602 allow_undefined_flag_F77=unsupported
19603 # Tell ltmain to make .lib files, not .a files.
19604 libext=lib
19605 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019606 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019607 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019608 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 +000019609 # The linker will automatically build a .lib file if we build a DLL.
19610 old_archive_From_new_cmds_F77='true'
19611 # FIXME: Should let the user specify the lib program.
19612 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19613 fix_srcfile_path='`cygpath -w "$srcfile"`'
19614 enable_shared_with_static_runtimes_F77=yes
19615 ;;
19616
19617 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019618 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019619 rhapsody* | darwin1.[012])
19620 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19621 ;;
19622 *) # Darwin 1.3 on
19623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19624 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19625 else
19626 case ${MACOSX_DEPLOYMENT_TARGET} in
19627 10.[012])
19628 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19629 ;;
19630 10.*)
19631 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19632 ;;
19633 esac
19634 fi
19635 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019636 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019637 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019638 hardcode_direct_F77=no
19639 hardcode_automatic_F77=yes
19640 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019641 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019642 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019643 if test "$GCC" = yes ; then
19644 output_verbose_link_cmd='echo'
19645 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19646 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19647 # 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 +000019648 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}'
19649 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 +000019650 else
19651 case "$cc_basename" in
19652 xlc*)
19653 output_verbose_link_cmd='echo'
19654 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19655 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19656 # 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 +000019657 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}'
19658 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 +000019659 ;;
19660 *)
19661 ld_shlibs_F77=no
19662 ;;
19663 esac
John Criswell47fdd832003-07-14 16:52:07 +000019664 fi
19665 ;;
19666
19667 dgux*)
19668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669 hardcode_libdir_flag_spec_F77='-L$libdir'
19670 hardcode_shlibpath_var_F77=no
19671 ;;
19672
19673 freebsd1*)
19674 ld_shlibs_F77=no
19675 ;;
19676
19677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19678 # support. Future versions do this automatically, but an explicit c++rt0.o
19679 # does not break anything, and helps significantly (at the cost of a little
19680 # extra space).
19681 freebsd2.2*)
19682 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19683 hardcode_libdir_flag_spec_F77='-R$libdir'
19684 hardcode_direct_F77=yes
19685 hardcode_shlibpath_var_F77=no
19686 ;;
19687
19688 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19689 freebsd2*)
19690 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19691 hardcode_direct_F77=yes
19692 hardcode_minus_L_F77=yes
19693 hardcode_shlibpath_var_F77=no
19694 ;;
19695
19696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019697 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019698 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19699 hardcode_libdir_flag_spec_F77='-R$libdir'
19700 hardcode_direct_F77=yes
19701 hardcode_shlibpath_var_F77=no
19702 ;;
19703
19704 hpux9*)
19705 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019706 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 +000019707 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019708 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 +000019709 fi
19710 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19711 hardcode_libdir_separator_F77=:
19712 hardcode_direct_F77=yes
19713
19714 # hardcode_minus_L: Not really in the search PATH,
19715 # but as the default location of the library.
19716 hardcode_minus_L_F77=yes
19717 export_dynamic_flag_spec_F77='${wl}-E'
19718 ;;
19719
19720 hpux10* | hpux11*)
19721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19722 case "$host_cpu" in
19723 hppa*64*|ia64*)
19724 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19725 ;;
19726 *)
19727 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19728 ;;
19729 esac
19730 else
19731 case "$host_cpu" in
19732 hppa*64*|ia64*)
19733 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19734 ;;
19735 *)
19736 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19737 ;;
19738 esac
19739 fi
19740 if test "$with_gnu_ld" = no; then
19741 case "$host_cpu" in
19742 hppa*64*)
19743 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19744 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19745 hardcode_libdir_separator_F77=:
19746 hardcode_direct_F77=no
19747 hardcode_shlibpath_var_F77=no
19748 ;;
19749 ia64*)
19750 hardcode_libdir_flag_spec_F77='-L$libdir'
19751 hardcode_direct_F77=no
19752 hardcode_shlibpath_var_F77=no
19753
19754 # hardcode_minus_L: Not really in the search PATH,
19755 # but as the default location of the library.
19756 hardcode_minus_L_F77=yes
19757 ;;
19758 *)
19759 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19760 hardcode_libdir_separator_F77=:
19761 hardcode_direct_F77=yes
19762 export_dynamic_flag_spec_F77='${wl}-E'
19763
19764 # hardcode_minus_L: Not really in the search PATH,
19765 # but as the default location of the library.
19766 hardcode_minus_L_F77=yes
19767 ;;
19768 esac
19769 fi
19770 ;;
19771
19772 irix5* | irix6* | nonstopux*)
19773 if test "$GCC" = yes; then
19774 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'
19775 else
19776 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'
19777 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19778 fi
19779 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19780 hardcode_libdir_separator_F77=:
19781 link_all_deplibs_F77=yes
19782 ;;
19783
19784 netbsd*)
19785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19786 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19787 else
19788 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19789 fi
19790 hardcode_libdir_flag_spec_F77='-R$libdir'
19791 hardcode_direct_F77=yes
19792 hardcode_shlibpath_var_F77=no
19793 ;;
19794
19795 newsos6)
19796 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19797 hardcode_direct_F77=yes
19798 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19799 hardcode_libdir_separator_F77=:
19800 hardcode_shlibpath_var_F77=no
19801 ;;
19802
19803 openbsd*)
19804 hardcode_direct_F77=yes
19805 hardcode_shlibpath_var_F77=no
19806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19807 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019808 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 +000019809 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19810 export_dynamic_flag_spec_F77='${wl}-E'
19811 else
19812 case $host_os in
19813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19815 hardcode_libdir_flag_spec_F77='-R$libdir'
19816 ;;
19817 *)
19818 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19820 ;;
19821 esac
19822 fi
19823 ;;
19824
19825 os2*)
19826 hardcode_libdir_flag_spec_F77='-L$libdir'
19827 hardcode_minus_L_F77=yes
19828 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019829 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 +000019830 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19831 ;;
19832
19833 osf3*)
19834 if test "$GCC" = yes; then
19835 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19836 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'
19837 else
19838 allow_undefined_flag_F77=' -expect_unresolved \*'
19839 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'
19840 fi
19841 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842 hardcode_libdir_separator_F77=:
19843 ;;
19844
19845 osf4* | osf5*) # as osf3* with the addition of -msym flag
19846 if test "$GCC" = yes; then
19847 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19848 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'
19849 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19850 else
19851 allow_undefined_flag_F77=' -expect_unresolved \*'
19852 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 +000019853 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~
19854 $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'
19855
John Criswell47fdd832003-07-14 16:52:07 +000019856 # Both c and cxx compiler support -rpath directly
19857 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19858 fi
19859 hardcode_libdir_separator_F77=:
19860 ;;
19861
19862 sco3.2v5*)
19863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19864 hardcode_shlibpath_var_F77=no
19865 export_dynamic_flag_spec_F77='${wl}-Bexport'
19866 runpath_var=LD_RUN_PATH
19867 hardcode_runpath_var=yes
19868 ;;
19869
19870 solaris*)
19871 no_undefined_flag_F77=' -z text'
19872 if test "$GCC" = yes; then
19873 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019874 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19875 $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 +000019876 else
19877 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019878 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19879 $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 +000019880 fi
19881 hardcode_libdir_flag_spec_F77='-R$libdir'
19882 hardcode_shlibpath_var_F77=no
19883 case $host_os in
19884 solaris2.[0-5] | solaris2.[0-5].*) ;;
19885 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19886 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19887 esac
19888 link_all_deplibs_F77=yes
19889 ;;
19890
19891 sunos4*)
19892 if test "x$host_vendor" = xsequent; then
19893 # Use $CC to link under sequent, because it throws in some extra .o
19894 # files that make .init and .fini sections work.
19895 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19896 else
19897 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19898 fi
19899 hardcode_libdir_flag_spec_F77='-L$libdir'
19900 hardcode_direct_F77=yes
19901 hardcode_minus_L_F77=yes
19902 hardcode_shlibpath_var_F77=no
19903 ;;
19904
19905 sysv4)
19906 case $host_vendor in
19907 sni)
19908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19909 hardcode_direct_F77=yes # is this really true???
19910 ;;
19911 siemens)
19912 ## LD is ld it makes a PLAMLIB
19913 ## CC just makes a GrossModule.
19914 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19915 reload_cmds_F77='$CC -r -o $output$reload_objs'
19916 hardcode_direct_F77=no
19917 ;;
19918 motorola)
19919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19920 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19921 ;;
19922 esac
19923 runpath_var='LD_RUN_PATH'
19924 hardcode_shlibpath_var_F77=no
19925 ;;
19926
19927 sysv4.3*)
19928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19929 hardcode_shlibpath_var_F77=no
19930 export_dynamic_flag_spec_F77='-Bexport'
19931 ;;
19932
19933 sysv4*MP*)
19934 if test -d /usr/nec; then
19935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19936 hardcode_shlibpath_var_F77=no
19937 runpath_var=LD_RUN_PATH
19938 hardcode_runpath_var=yes
19939 ld_shlibs_F77=yes
19940 fi
19941 ;;
19942
19943 sysv4.2uw2*)
19944 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19945 hardcode_direct_F77=yes
19946 hardcode_minus_L_F77=no
19947 hardcode_shlibpath_var_F77=no
19948 hardcode_runpath_var=yes
19949 runpath_var=LD_RUN_PATH
19950 ;;
19951
19952 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19953 no_undefined_flag_F77='${wl}-z ${wl}text'
19954 if test "$GCC" = yes; then
19955 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19956 else
19957 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19958 fi
19959 runpath_var='LD_RUN_PATH'
19960 hardcode_shlibpath_var_F77=no
19961 ;;
19962
19963 sysv5*)
19964 no_undefined_flag_F77=' -z text'
19965 # $CC -shared without GNU ld will not create a library from C++
19966 # object files and a static libstdc++, better avoid it by now
19967 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019968 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019970 hardcode_libdir_flag_spec_F77=
19971 hardcode_shlibpath_var_F77=no
19972 runpath_var='LD_RUN_PATH'
19973 ;;
19974
19975 uts4*)
19976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19977 hardcode_libdir_flag_spec_F77='-L$libdir'
19978 hardcode_shlibpath_var_F77=no
19979 ;;
19980
19981 *)
19982 ld_shlibs_F77=no
19983 ;;
19984 esac
19985 fi
19986
19987echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19988echo "${ECHO_T}$ld_shlibs_F77" >&6
19989test "$ld_shlibs_F77" = no && can_build_shared=no
19990
19991variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19992if test "$GCC" = yes; then
19993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19994fi
19995
19996#
19997# Do we need to explicitly link libc?
19998#
19999case "x$archive_cmds_need_lc_F77" in
20000x|xyes)
20001 # Assume -lc should be added
20002 archive_cmds_need_lc_F77=yes
20003
20004 if test "$enable_shared" = yes && test "$GCC" = yes; then
20005 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020006 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020007 # FIXME: we may have to deal with multi-command sequences.
20008 ;;
20009 '$CC '*)
20010 # Test whether the compiler implicitly links with -lc since on some
20011 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20012 # to ld, don't add -lc before -lgcc.
20013 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20014echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20015 $rm conftest*
20016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20017
20018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019 (eval $ac_compile) 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } 2>conftest.err; then
20023 soname=conftest
20024 lib=conftest
20025 libobjs=conftest.$ac_objext
20026 deplibs=
20027 wl=$lt_prog_compiler_wl_F77
20028 compiler_flags=-v
20029 linker_flags=-v
20030 verstring=
20031 output_objdir=.
20032 libname=conftest
20033 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20034 allow_undefined_flag_F77=
20035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20036 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }
20040 then
20041 archive_cmds_need_lc_F77=no
20042 else
20043 archive_cmds_need_lc_F77=yes
20044 fi
20045 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20046 else
20047 cat conftest.err 1>&5
20048 fi
20049 $rm conftest*
20050 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20051echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20052 ;;
20053 esac
20054 fi
20055 ;;
20056esac
20057
John Criswell47fdd832003-07-14 16:52:07 +000020058echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20059echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20060library_names_spec=
20061libname_spec='lib$name'
20062soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020063shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020064postinstall_cmds=
20065postuninstall_cmds=
20066finish_cmds=
20067finish_eval=
20068shlibpath_var=
20069shlibpath_overrides_runpath=unknown
20070version_type=none
20071dynamic_linker="$host_os ld.so"
20072sys_lib_dlsearch_path_spec="/lib /usr/lib"
20073if test "$GCC" = yes; then
20074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20075 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20076 # if the path contains ";" then we assume it to be the separator
20077 # otherwise default to the standard path separator (i.e. ":") - it is
20078 # assumed that no part of a normal pathname contains ";" but that should
20079 # okay in the real world where ";" in dirpaths is itself problematic.
20080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20081 else
20082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20083 fi
20084else
20085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20086fi
20087need_lib_prefix=unknown
20088hardcode_into_libs=no
20089
20090# when you set need_version to no, make sure it does not cause -set_version
20091# flags to be left without arguments
20092need_version=unknown
20093
20094case $host_os in
20095aix3*)
20096 version_type=linux
20097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20098 shlibpath_var=LIBPATH
20099
20100 # AIX 3 has no versioning support, so we append a major version to the name.
20101 soname_spec='${libname}${release}${shared_ext}$major'
20102 ;;
20103
20104aix4* | aix5*)
20105 version_type=linux
20106 need_lib_prefix=no
20107 need_version=no
20108 hardcode_into_libs=yes
20109 if test "$host_cpu" = ia64; then
20110 # AIX 5 supports IA64
20111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20112 shlibpath_var=LD_LIBRARY_PATH
20113 else
20114 # With GCC up to 2.95.x, collect2 would create an import file
20115 # for dependence libraries. The import file would start with
20116 # the line `#! .'. This would cause the generated library to
20117 # depend on `.', always an invalid library. This was fixed in
20118 # development snapshots of GCC prior to 3.0.
20119 case $host_os in
20120 aix4 | aix4.[01] | aix4.[01].*)
20121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20122 echo ' yes '
20123 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20124 :
20125 else
20126 can_build_shared=no
20127 fi
20128 ;;
20129 esac
20130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20131 # soname into executable. Probably we can add versioning support to
20132 # collect2, so additional links can be useful in future.
20133 if test "$aix_use_runtimelinking" = yes; then
20134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20135 # instead of lib<name>.a to let people know that these are not
20136 # typical AIX shared libraries.
20137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20138 else
20139 # We preserve .a as extension for shared libraries through AIX4.2
20140 # and later when we are not doing run time linking.
20141 library_names_spec='${libname}${release}.a $libname.a'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 fi
20144 shlibpath_var=LIBPATH
20145 fi
20146 ;;
20147
20148amigaos*)
20149 library_names_spec='$libname.ixlibrary $libname.a'
20150 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151 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 +000020152 ;;
20153
20154beos*)
20155 library_names_spec='${libname}${shared_ext}'
20156 dynamic_linker="$host_os ld.so"
20157 shlibpath_var=LIBRARY_PATH
20158 ;;
20159
Reid Spencer2706f8c2004-09-19 23:53:36 +000020160bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020161 version_type=linux
20162 need_version=no
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20166 shlibpath_var=LD_LIBRARY_PATH
20167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20169 # the default ld.so.conf also contains /usr/contrib/lib and
20170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20171 # libtool to hard-code these into programs
20172 ;;
20173
20174cygwin* | mingw* | pw32*)
20175 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020176 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020177 need_version=no
20178 need_lib_prefix=no
20179
20180 case $GCC,$host_os in
20181 yes,cygwin* | yes,mingw* | yes,pw32*)
20182 library_names_spec='$libname.dll.a'
20183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020184 postinstall_cmds='base_file=`basename \${file}`~
20185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20186 dldir=$destdir/`dirname \$dlpath`~
20187 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020188 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20190 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020191 $rm \$dlpath'
20192 shlibpath_overrides_runpath=yes
20193
20194 case $host_os in
20195 cygwin*)
20196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20197 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 +000020198 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020199 ;;
20200 mingw*)
20201 # MinGW DLLs use traditional 'lib' prefix
20202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20203 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20204 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20205 # It is most probably a Windows format PATH printed by
20206 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20207 # path with ; separators, and with drive letters. We can handle the
20208 # drive letters (cygwin fileutils understands them), so leave them,
20209 # especially as we might pass files found there to a mingw objdump,
20210 # which wouldn't understand a cygwinified path. Ahh.
20211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20212 else
20213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20214 fi
20215 ;;
20216 pw32*)
20217 # pw32 DLLs use 'pw' prefix rather than 'lib'
20218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20219 ;;
20220 esac
20221 ;;
20222
20223 *)
20224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20225 ;;
20226 esac
20227 dynamic_linker='Win32 ld.exe'
20228 # FIXME: first we should search . and the directory the executable is in
20229 shlibpath_var=PATH
20230 ;;
20231
20232darwin* | rhapsody*)
20233 dynamic_linker="$host_os dyld"
20234 version_type=darwin
20235 need_lib_prefix=no
20236 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020237 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020238 soname_spec='${libname}${release}${major}$shared_ext'
20239 shlibpath_overrides_runpath=yes
20240 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020241 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020242 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020243 if test "$GCC" = yes; then
20244 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"`
20245 else
20246 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020247 fi
20248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20249 ;;
20250
20251dgux*)
20252 version_type=linux
20253 need_lib_prefix=no
20254 need_version=no
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 ;;
20259
20260freebsd1*)
20261 dynamic_linker=no
20262 ;;
20263
Reid Spencer2706f8c2004-09-19 23:53:36 +000020264kfreebsd*-gnu)
20265 version_type=linux
20266 need_lib_prefix=no
20267 need_version=no
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20269 soname_spec='${libname}${release}${shared_ext}$major'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 shlibpath_overrides_runpath=no
20272 hardcode_into_libs=yes
20273 dynamic_linker='GNU ld.so'
20274 ;;
20275
John Criswell47fdd832003-07-14 16:52:07 +000020276freebsd*)
20277 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20278 version_type=freebsd-$objformat
20279 case $version_type in
20280 freebsd-elf*)
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20282 need_version=no
20283 need_lib_prefix=no
20284 ;;
20285 freebsd-*)
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20287 need_version=yes
20288 ;;
20289 esac
20290 shlibpath_var=LD_LIBRARY_PATH
20291 case $host_os in
20292 freebsd2*)
20293 shlibpath_overrides_runpath=yes
20294 ;;
20295 freebsd3.01* | freebsdelf3.01*)
20296 shlibpath_overrides_runpath=yes
20297 hardcode_into_libs=yes
20298 ;;
20299 *) # from 3.2 on
20300 shlibpath_overrides_runpath=no
20301 hardcode_into_libs=yes
20302 ;;
20303 esac
20304 ;;
20305
20306gnu*)
20307 version_type=linux
20308 need_lib_prefix=no
20309 need_version=no
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20312 shlibpath_var=LD_LIBRARY_PATH
20313 hardcode_into_libs=yes
20314 ;;
20315
20316hpux9* | hpux10* | hpux11*)
20317 # Give a soname corresponding to the major version so that dld.sl refuses to
20318 # link against other versions.
20319 version_type=sunos
20320 need_lib_prefix=no
20321 need_version=no
20322 case "$host_cpu" in
20323 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020324 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020325 hardcode_into_libs=yes
20326 dynamic_linker="$host_os dld.so"
20327 shlibpath_var=LD_LIBRARY_PATH
20328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330 soname_spec='${libname}${release}${shared_ext}$major'
20331 if test "X$HPUX_IA64_MODE" = X32; then
20332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20333 else
20334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20335 fi
20336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20337 ;;
20338 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020339 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020340 hardcode_into_libs=yes
20341 dynamic_linker="$host_os dld.sl"
20342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20348 ;;
20349 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020350 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020351 dynamic_linker="$host_os dld.sl"
20352 shlibpath_var=SHLIB_PATH
20353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 ;;
20357 esac
20358 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20359 postinstall_cmds='chmod 555 $lib'
20360 ;;
20361
20362irix5* | irix6* | nonstopux*)
20363 case $host_os in
20364 nonstopux*) version_type=nonstopux ;;
20365 *)
20366 if test "$lt_cv_prog_gnu_ld" = yes; then
20367 version_type=linux
20368 else
20369 version_type=irix
20370 fi ;;
20371 esac
20372 need_lib_prefix=no
20373 need_version=no
20374 soname_spec='${libname}${release}${shared_ext}$major'
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20376 case $host_os in
20377 irix5* | nonstopux*)
20378 libsuff= shlibsuff=
20379 ;;
20380 *)
20381 case $LD in # libtool.m4 will add one of these switches to LD
20382 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20383 libsuff= shlibsuff= libmagic=32-bit;;
20384 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20385 libsuff=32 shlibsuff=N32 libmagic=N32;;
20386 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20387 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20388 *) libsuff= shlibsuff= libmagic=never-match;;
20389 esac
20390 ;;
20391 esac
20392 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20393 shlibpath_overrides_runpath=no
20394 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20395 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20396 hardcode_into_libs=yes
20397 ;;
20398
20399# No shared lib support for Linux oldld, aout, or coff.
20400linux*oldld* | linux*aout* | linux*coff*)
20401 dynamic_linker=no
20402 ;;
20403
20404# This must be Linux ELF.
20405linux*)
20406 version_type=linux
20407 need_lib_prefix=no
20408 need_version=no
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20412 shlibpath_var=LD_LIBRARY_PATH
20413 shlibpath_overrides_runpath=no
20414 # This implies no fast_install, which is unacceptable.
20415 # Some rework will be needed to allow for fast_install
20416 # before this can be enabled.
20417 hardcode_into_libs=yes
20418
Reid Spencer2706f8c2004-09-19 23:53:36 +000020419 # Append ld.so.conf contents to the search path
20420 if test -f /etc/ld.so.conf; then
20421 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20422 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20423 fi
20424
John Criswell47fdd832003-07-14 16:52:07 +000020425 # We used to test for /lib/ld.so.1 and disable shared libraries on
20426 # powerpc, because MkLinux only supported shared libraries with the
20427 # GNU dynamic linker. Since this was broken with cross compilers,
20428 # most powerpc-linux boxes support dynamic linking these days and
20429 # people can always --disable-shared, the test was removed, and we
20430 # assume the GNU/Linux dynamic linker is in use.
20431 dynamic_linker='GNU/Linux ld.so'
20432 ;;
20433
Reid Spencer2706f8c2004-09-19 23:53:36 +000020434knetbsd*-gnu)
20435 version_type=linux
20436 need_lib_prefix=no
20437 need_version=no
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 shlibpath_overrides_runpath=no
20442 hardcode_into_libs=yes
20443 dynamic_linker='GNU ld.so'
20444 ;;
20445
John Criswell47fdd832003-07-14 16:52:07 +000020446netbsd*)
20447 version_type=sunos
20448 need_lib_prefix=no
20449 need_version=no
20450 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20453 dynamic_linker='NetBSD (a.out) ld.so'
20454 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020456 soname_spec='${libname}${release}${shared_ext}$major'
20457 dynamic_linker='NetBSD ld.elf_so'
20458 fi
20459 shlibpath_var=LD_LIBRARY_PATH
20460 shlibpath_overrides_runpath=yes
20461 hardcode_into_libs=yes
20462 ;;
20463
20464newsos6)
20465 version_type=linux
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 shlibpath_overrides_runpath=yes
20469 ;;
20470
Reid Spencer2706f8c2004-09-19 23:53:36 +000020471nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020472 version_type=linux
20473 need_lib_prefix=no
20474 need_version=no
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20479 ;;
20480
20481openbsd*)
20482 version_type=sunos
20483 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020484 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20489 case $host_os in
20490 openbsd2.[89] | openbsd2.[89].*)
20491 shlibpath_overrides_runpath=no
20492 ;;
20493 *)
20494 shlibpath_overrides_runpath=yes
20495 ;;
20496 esac
20497 else
20498 shlibpath_overrides_runpath=yes
20499 fi
20500 ;;
20501
20502os2*)
20503 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020504 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020505 need_lib_prefix=no
20506 library_names_spec='$libname${shared_ext} $libname.a'
20507 dynamic_linker='OS/2 ld.exe'
20508 shlibpath_var=LIBPATH
20509 ;;
20510
20511osf3* | osf4* | osf5*)
20512 version_type=osf
20513 need_lib_prefix=no
20514 need_version=no
20515 soname_spec='${libname}${release}${shared_ext}$major'
20516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20517 shlibpath_var=LD_LIBRARY_PATH
20518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20520 ;;
20521
20522sco3.2v5*)
20523 version_type=osf
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526 shlibpath_var=LD_LIBRARY_PATH
20527 ;;
20528
20529solaris*)
20530 version_type=linux
20531 need_lib_prefix=no
20532 need_version=no
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 shlibpath_overrides_runpath=yes
20537 hardcode_into_libs=yes
20538 # ldd complains unless libraries are executable
20539 postinstall_cmds='chmod +x $lib'
20540 ;;
20541
20542sunos4*)
20543 version_type=sunos
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20546 shlibpath_var=LD_LIBRARY_PATH
20547 shlibpath_overrides_runpath=yes
20548 if test "$with_gnu_ld" = yes; then
20549 need_lib_prefix=no
20550 fi
20551 need_version=yes
20552 ;;
20553
20554sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20555 version_type=linux
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557 soname_spec='${libname}${release}${shared_ext}$major'
20558 shlibpath_var=LD_LIBRARY_PATH
20559 case $host_vendor in
20560 sni)
20561 shlibpath_overrides_runpath=no
20562 need_lib_prefix=no
20563 export_dynamic_flag_spec='${wl}-Blargedynsym'
20564 runpath_var=LD_RUN_PATH
20565 ;;
20566 siemens)
20567 need_lib_prefix=no
20568 ;;
20569 motorola)
20570 need_lib_prefix=no
20571 need_version=no
20572 shlibpath_overrides_runpath=no
20573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20574 ;;
20575 esac
20576 ;;
20577
20578sysv4*MP*)
20579 if test -d /usr/nec ;then
20580 version_type=linux
20581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20582 soname_spec='$libname${shared_ext}.$major'
20583 shlibpath_var=LD_LIBRARY_PATH
20584 fi
20585 ;;
20586
20587uts4*)
20588 version_type=linux
20589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20590 soname_spec='${libname}${release}${shared_ext}$major'
20591 shlibpath_var=LD_LIBRARY_PATH
20592 ;;
20593
20594*)
20595 dynamic_linker=no
20596 ;;
20597esac
20598echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20599echo "${ECHO_T}$dynamic_linker" >&6
20600test "$dynamic_linker" = no && can_build_shared=no
20601
Reid Spencer2706f8c2004-09-19 23:53:36 +000020602echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20603echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20604hardcode_action_F77=
20605if test -n "$hardcode_libdir_flag_spec_F77" || \
20606 test -n "$runpath_var_F77" || \
20607 test "X$hardcode_automatic_F77" = "Xyes" ; then
20608
20609 # We can hardcode non-existant directories.
20610 if test "$hardcode_direct_F77" != no &&
20611 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20612 # have to relink, otherwise we might link with an installed library
20613 # when we should be linking with a yet-to-be-installed one
20614 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20615 test "$hardcode_minus_L_F77" != no; then
20616 # Linking always hardcodes the temporary library directory.
20617 hardcode_action_F77=relink
20618 else
20619 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20620 hardcode_action_F77=immediate
20621 fi
20622else
20623 # We cannot hardcode anything, or else we can only hardcode existing
20624 # directories.
20625 hardcode_action_F77=unsupported
20626fi
20627echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20628echo "${ECHO_T}$hardcode_action_F77" >&6
20629
20630if test "$hardcode_action_F77" = relink; then
20631 # Fast installation is not supported
20632 enable_fast_install=no
20633elif test "$shlibpath_overrides_runpath" = yes ||
20634 test "$enable_shared" = no; then
20635 # Fast installation is not necessary
20636 enable_fast_install=needless
20637fi
20638
20639striplib=
20640old_striplib=
20641echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20642echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20643if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20645 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20646 echo "$as_me:$LINENO: result: yes" >&5
20647echo "${ECHO_T}yes" >&6
20648else
20649# FIXME - insert some real tests, host_os isn't really good enough
20650 case $host_os in
20651 darwin*)
20652 if test -n "$STRIP" ; then
20653 striplib="$STRIP -x"
20654 echo "$as_me:$LINENO: result: yes" >&5
20655echo "${ECHO_T}yes" >&6
20656 else
20657 echo "$as_me:$LINENO: result: no" >&5
20658echo "${ECHO_T}no" >&6
20659fi
20660 ;;
20661 *)
20662 echo "$as_me:$LINENO: result: no" >&5
20663echo "${ECHO_T}no" >&6
20664 ;;
20665 esac
20666fi
20667
20668
John Criswell47fdd832003-07-14 16:52:07 +000020669
20670# The else clause should only fire when bootstrapping the
20671# libtool distribution, otherwise you forgot to ship ltmain.sh
20672# with your package, and you will get complaints that there are
20673# no rules to generate ltmain.sh.
20674if test -f "$ltmain"; then
20675 # See if we are running on zsh, and set the options which allow our commands through
20676 # without removal of \ escapes.
20677 if test -n "${ZSH_VERSION+set}" ; then
20678 setopt NO_GLOB_SUBST
20679 fi
20680 # Now quote all the things that may contain metacharacters while being
20681 # careful not to overquote the AC_SUBSTed values. We take copies of the
20682 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020683 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20684 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020685 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20686 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20687 deplibs_check_method reload_flag reload_cmds need_locks \
20688 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20689 lt_cv_sys_global_symbol_to_c_name_address \
20690 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20691 old_postinstall_cmds old_postuninstall_cmds \
20692 compiler_F77 \
20693 CC_F77 \
20694 LD_F77 \
20695 lt_prog_compiler_wl_F77 \
20696 lt_prog_compiler_pic_F77 \
20697 lt_prog_compiler_static_F77 \
20698 lt_prog_compiler_no_builtin_flag_F77 \
20699 export_dynamic_flag_spec_F77 \
20700 thread_safe_flag_spec_F77 \
20701 whole_archive_flag_spec_F77 \
20702 enable_shared_with_static_runtimes_F77 \
20703 old_archive_cmds_F77 \
20704 old_archive_from_new_cmds_F77 \
20705 predep_objects_F77 \
20706 postdep_objects_F77 \
20707 predeps_F77 \
20708 postdeps_F77 \
20709 compiler_lib_search_path_F77 \
20710 archive_cmds_F77 \
20711 archive_expsym_cmds_F77 \
20712 postinstall_cmds_F77 \
20713 postuninstall_cmds_F77 \
20714 old_archive_from_expsyms_cmds_F77 \
20715 allow_undefined_flag_F77 \
20716 no_undefined_flag_F77 \
20717 export_symbols_cmds_F77 \
20718 hardcode_libdir_flag_spec_F77 \
20719 hardcode_libdir_flag_spec_ld_F77 \
20720 hardcode_libdir_separator_F77 \
20721 hardcode_automatic_F77 \
20722 module_cmds_F77 \
20723 module_expsym_cmds_F77 \
20724 lt_cv_prog_compiler_c_o_F77 \
20725 exclude_expsyms_F77 \
20726 include_expsyms_F77; do
20727
20728 case $var in
20729 old_archive_cmds_F77 | \
20730 old_archive_from_new_cmds_F77 | \
20731 archive_cmds_F77 | \
20732 archive_expsym_cmds_F77 | \
20733 module_cmds_F77 | \
20734 module_expsym_cmds_F77 | \
20735 old_archive_from_expsyms_cmds_F77 | \
20736 export_symbols_cmds_F77 | \
20737 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20738 postinstall_cmds | postuninstall_cmds | \
20739 old_postinstall_cmds | old_postuninstall_cmds | \
20740 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20741 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020742 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 +000020743 ;;
20744 *)
20745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20746 ;;
20747 esac
20748 done
20749
20750 case $lt_echo in
20751 *'\$0 --fallback-echo"')
20752 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20753 ;;
20754 esac
20755
20756cfgfile="$ofile"
20757
20758 cat <<__EOF__ >> "$cfgfile"
20759# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20760
20761# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20762
20763# Shell to use when invoking shell scripts.
20764SHELL=$lt_SHELL
20765
20766# Whether or not to build shared libraries.
20767build_libtool_libs=$enable_shared
20768
20769# Whether or not to build static libraries.
20770build_old_libs=$enable_static
20771
20772# Whether or not to add -lc for building shared libraries.
20773build_libtool_need_lc=$archive_cmds_need_lc_F77
20774
20775# Whether or not to disallow shared libs when runtime libs are static
20776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20777
20778# Whether or not to optimize for fast installation.
20779fast_install=$enable_fast_install
20780
20781# The host system.
20782host_alias=$host_alias
20783host=$host
20784
20785# An echo program that does not interpret backslashes.
20786echo=$lt_echo
20787
20788# The archiver.
20789AR=$lt_AR
20790AR_FLAGS=$lt_AR_FLAGS
20791
20792# A C compiler.
20793LTCC=$lt_LTCC
20794
20795# A language-specific compiler.
20796CC=$lt_compiler_F77
20797
20798# Is the compiler the GNU C compiler?
20799with_gcc=$GCC_F77
20800
20801# An ERE matcher.
20802EGREP=$lt_EGREP
20803
20804# The linker used to build libraries.
20805LD=$lt_LD_F77
20806
20807# Whether we need hard or soft links.
20808LN_S=$lt_LN_S
20809
20810# A BSD-compatible nm program.
20811NM=$lt_NM
20812
20813# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020814STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020815
20816# Used to examine libraries when file_magic_cmd begins "file"
20817MAGIC_CMD=$MAGIC_CMD
20818
20819# Used on cygwin: DLL creation program.
20820DLLTOOL="$DLLTOOL"
20821
20822# Used on cygwin: object dumper.
20823OBJDUMP="$OBJDUMP"
20824
20825# Used on cygwin: assembler.
20826AS="$AS"
20827
20828# The name of the directory that contains temporary libtool files.
20829objdir=$objdir
20830
20831# How to create reloadable object files.
20832reload_flag=$lt_reload_flag
20833reload_cmds=$lt_reload_cmds
20834
20835# How to pass a linker flag through the compiler.
20836wl=$lt_lt_prog_compiler_wl_F77
20837
20838# Object file suffix (normally "o").
20839objext="$ac_objext"
20840
20841# Old archive suffix (normally "a").
20842libext="$libext"
20843
20844# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020845shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020846
20847# Executable file suffix (normally "").
20848exeext="$exeext"
20849
20850# Additional compiler flags for building library objects.
20851pic_flag=$lt_lt_prog_compiler_pic_F77
20852pic_mode=$pic_mode
20853
20854# What is the maximum length of a command?
20855max_cmd_len=$lt_cv_sys_max_cmd_len
20856
20857# Does compiler simultaneously support -c and -o options?
20858compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20859
20860# Must we lock files when doing compilation ?
20861need_locks=$lt_need_locks
20862
20863# Do we need the lib prefix for modules?
20864need_lib_prefix=$need_lib_prefix
20865
20866# Do we need a version for libraries?
20867need_version=$need_version
20868
20869# Whether dlopen is supported.
20870dlopen_support=$enable_dlopen
20871
20872# Whether dlopen of programs is supported.
20873dlopen_self=$enable_dlopen_self
20874
20875# Whether dlopen of statically linked programs is supported.
20876dlopen_self_static=$enable_dlopen_self_static
20877
20878# Compiler flag to prevent dynamic linking.
20879link_static_flag=$lt_lt_prog_compiler_static_F77
20880
20881# Compiler flag to turn off builtin functions.
20882no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20883
20884# Compiler flag to allow reflexive dlopens.
20885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20886
20887# Compiler flag to generate shared objects directly from archives.
20888whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20889
20890# Compiler flag to generate thread-safe objects.
20891thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20892
20893# Library versioning type.
20894version_type=$version_type
20895
20896# Format of library name prefix.
20897libname_spec=$lt_libname_spec
20898
20899# List of archive names. First name is the real one, the rest are links.
20900# The last name is the one that the linker finds with -lNAME.
20901library_names_spec=$lt_library_names_spec
20902
20903# The coded name of the library, if different from the real name.
20904soname_spec=$lt_soname_spec
20905
20906# Commands used to build and install an old-style archive.
20907RANLIB=$lt_RANLIB
20908old_archive_cmds=$lt_old_archive_cmds_F77
20909old_postinstall_cmds=$lt_old_postinstall_cmds
20910old_postuninstall_cmds=$lt_old_postuninstall_cmds
20911
20912# Create an old-style archive from a shared archive.
20913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20914
20915# Create a temporary old-style archive to link instead of a shared archive.
20916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20917
20918# Commands used to build and install a shared archive.
20919archive_cmds=$lt_archive_cmds_F77
20920archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20921postinstall_cmds=$lt_postinstall_cmds
20922postuninstall_cmds=$lt_postuninstall_cmds
20923
20924# Commands used to build a loadable module (assumed same as above if empty)
20925module_cmds=$lt_module_cmds_F77
20926module_expsym_cmds=$lt_module_expsym_cmds_F77
20927
20928# Commands to strip libraries.
20929old_striplib=$lt_old_striplib
20930striplib=$lt_striplib
20931
20932# Dependencies to place before the objects being linked to create a
20933# shared library.
20934predep_objects=$lt_predep_objects_F77
20935
20936# Dependencies to place after the objects being linked to create a
20937# shared library.
20938postdep_objects=$lt_postdep_objects_F77
20939
20940# Dependencies to place before the objects being linked to create a
20941# shared library.
20942predeps=$lt_predeps_F77
20943
20944# Dependencies to place after the objects being linked to create a
20945# shared library.
20946postdeps=$lt_postdeps_F77
20947
20948# The library search path used internally by the compiler when linking
20949# a shared library.
20950compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20951
20952# Method to check whether dependent libraries are shared objects.
20953deplibs_check_method=$lt_deplibs_check_method
20954
20955# Command to use when deplibs_check_method == file_magic.
20956file_magic_cmd=$lt_file_magic_cmd
20957
20958# Flag that allows shared libraries with undefined symbols to be built.
20959allow_undefined_flag=$lt_allow_undefined_flag_F77
20960
20961# Flag that forces no undefined symbols.
20962no_undefined_flag=$lt_no_undefined_flag_F77
20963
20964# Commands used to finish a libtool library installation in a directory.
20965finish_cmds=$lt_finish_cmds
20966
20967# Same as above, but a single script fragment to be evaled but not shown.
20968finish_eval=$lt_finish_eval
20969
20970# Take the output of nm and produce a listing of raw symbols and C names.
20971global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20972
20973# Transform the output of nm in a proper C declaration
20974global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20975
20976# Transform the output of nm in a C name address pair
20977global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20978
20979# This is the shared library runtime path variable.
20980runpath_var=$runpath_var
20981
20982# This is the shared library path variable.
20983shlibpath_var=$shlibpath_var
20984
20985# Is shlibpath searched before the hard-coded library search path?
20986shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20987
20988# How to hardcode a shared library path into an executable.
20989hardcode_action=$hardcode_action_F77
20990
20991# Whether we should hardcode library paths into libraries.
20992hardcode_into_libs=$hardcode_into_libs
20993
20994# Flag to hardcode \$libdir into a binary during linking.
20995# This must work even if \$libdir does not exist.
20996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20997
20998# If ld is used when linking, flag to hardcode \$libdir into
20999# a binary during linking. This must work even if \$libdir does
21000# not exist.
21001hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21002
21003# Whether we need a single -rpath flag with a separated argument.
21004hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21005
21006# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21007# resulting binary.
21008hardcode_direct=$hardcode_direct_F77
21009
21010# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21011# resulting binary.
21012hardcode_minus_L=$hardcode_minus_L_F77
21013
21014# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21015# the resulting binary.
21016hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21017
21018# Set to yes if building a shared library automatically hardcodes DIR into the library
21019# and all subsequent libraries and executables linked against it.
21020hardcode_automatic=$hardcode_automatic_F77
21021
21022# Variables whose values should be saved in libtool wrapper scripts and
21023# restored at relink time.
21024variables_saved_for_relink="$variables_saved_for_relink"
21025
21026# Whether libtool must link a program against all its dependency libraries.
21027link_all_deplibs=$link_all_deplibs_F77
21028
21029# Compile-time system search path for libraries
21030sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21031
21032# Run-time system search path for libraries
21033sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21034
21035# Fix the shell variable \$srcfile for the compiler.
21036fix_srcfile_path="$fix_srcfile_path_F77"
21037
21038# Set to yes if exported symbols are required.
21039always_export_symbols=$always_export_symbols_F77
21040
21041# The commands to list exported symbols.
21042export_symbols_cmds=$lt_export_symbols_cmds_F77
21043
21044# The commands to extract the exported symbol list from a shared archive.
21045extract_expsyms_cmds=$lt_extract_expsyms_cmds
21046
21047# Symbols that should not be listed in the preloaded symbols.
21048exclude_expsyms=$lt_exclude_expsyms_F77
21049
21050# Symbols that must always be exported.
21051include_expsyms=$lt_include_expsyms_F77
21052
21053# ### END LIBTOOL TAG CONFIG: $tagname
21054
21055__EOF__
21056
21057
21058else
21059 # If there is no Makefile yet, we rely on a make rule to execute
21060 # `config.status --recheck' to rerun these tests and create the
21061 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021062 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21063 if test -f "$ltmain_in"; then
21064 test -f Makefile && make "$ltmain"
21065 fi
John Criswell47fdd832003-07-14 16:52:07 +000021066fi
21067
21068
21069ac_ext=c
21070ac_cpp='$CPP $CPPFLAGS'
21071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073ac_compiler_gnu=$ac_cv_c_compiler_gnu
21074
21075CC="$lt_save_CC"
21076
21077 else
21078 tagname=""
21079 fi
21080 ;;
21081
21082 GCJ)
21083 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021084 ac_ext=c
21085ac_cpp='$CPP $CPPFLAGS'
21086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021089
21090
21091# Source file extension for Java test sources.
21092ac_ext=java
21093
21094# Object file extension for compiled Java test sources.
21095objext=o
21096objext_GCJ=$objext
21097
21098# Code to be used in simple compile tests
21099lt_simple_compile_test_code="class foo {}\n"
21100
21101# Code to be used in simple link tests
21102lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21103
21104# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21105
21106# If no C compiler was specified, use CC.
21107LTCC=${LTCC-"$CC"}
21108
21109# Allow CC to be a program name with arguments.
21110compiler=$CC
21111
21112
21113# Allow CC to be a program name with arguments.
21114lt_save_CC="$CC"
21115CC=${GCJ-"gcj"}
21116compiler=$CC
21117compiler_GCJ=$CC
21118
21119# GCJ did not exist at the time GCC didn't implicitly link libc in.
21120archive_cmds_need_lc_GCJ=no
21121
John Criswell47fdd832003-07-14 16:52:07 +000021122
21123lt_prog_compiler_no_builtin_flag_GCJ=
21124
21125if test "$GCC" = yes; then
21126 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21127
Reid Spencer2706f8c2004-09-19 23:53:36 +000021128
21129echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021130echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21131if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21133else
21134 lt_cv_prog_compiler_rtti_exceptions=no
21135 ac_outfile=conftest.$ac_objext
21136 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21137 lt_compiler_flag="-fno-rtti -fno-exceptions"
21138 # Insert the option either (1) after the last *FLAGS variable, or
21139 # (2) before a word containing "conftest.", or (3) at the end.
21140 # Note that $ac_compile itself does not contain backslashes and begins
21141 # with a dollar sign (not a hyphen), so the echo should work correctly.
21142 # The option is referenced via a variable to avoid confusing sed.
21143 lt_compile=`echo "$ac_compile" | $SED \
21144 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21146 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000021147 (eval echo "\"\$as_me:21147: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021148 (eval "$lt_compile" 2>conftest.err)
21149 ac_status=$?
21150 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000021151 echo "$as_me:21151: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021152 if (exit $ac_status) && test -s "$ac_outfile"; then
21153 # The compiler can only warn and ignore the option if not recognized
21154 # So say no if there are warnings
21155 if test ! -s conftest.err; then
21156 lt_cv_prog_compiler_rtti_exceptions=yes
21157 fi
21158 fi
21159 $rm conftest*
21160
21161fi
21162echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21163echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21164
21165if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21166 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21167else
21168 :
21169fi
21170
21171fi
21172
21173lt_prog_compiler_wl_GCJ=
21174lt_prog_compiler_pic_GCJ=
21175lt_prog_compiler_static_GCJ=
21176
21177echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21178echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21179
21180 if test "$GCC" = yes; then
21181 lt_prog_compiler_wl_GCJ='-Wl,'
21182 lt_prog_compiler_static_GCJ='-static'
21183
21184 case $host_os in
21185 aix*)
21186 # All AIX code is PIC.
21187 if test "$host_cpu" = ia64; then
21188 # AIX 5 now supports IA64 processor
21189 lt_prog_compiler_static_GCJ='-Bstatic'
21190 fi
21191 ;;
21192
21193 amigaos*)
21194 # FIXME: we need at least 68020 code to build shared libraries, but
21195 # adding the `-m68020' flag to GCC prevents building anything better,
21196 # like `-m68040'.
21197 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21198 ;;
21199
21200 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21201 # PIC is the default for these OSes.
21202 ;;
21203
21204 mingw* | pw32* | os2*)
21205 # This hack is so that the source file can tell whether it is being
21206 # built for inclusion in a dll (and should export symbols for example).
21207 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21208 ;;
21209
21210 darwin* | rhapsody*)
21211 # PIC is the default on this platform
21212 # Common symbols not allowed in MH_DYLIB files
21213 lt_prog_compiler_pic_GCJ='-fno-common'
21214 ;;
21215
21216 msdosdjgpp*)
21217 # Just because we use GCC doesn't mean we suddenly get shared libraries
21218 # on systems that don't support them.
21219 lt_prog_compiler_can_build_shared_GCJ=no
21220 enable_shared=no
21221 ;;
21222
21223 sysv4*MP*)
21224 if test -d /usr/nec; then
21225 lt_prog_compiler_pic_GCJ=-Kconform_pic
21226 fi
21227 ;;
21228
21229 hpux*)
21230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21231 # not for PA HP-UX.
21232 case "$host_cpu" in
21233 hppa*64*|ia64*)
21234 # +Z the default
21235 ;;
21236 *)
21237 lt_prog_compiler_pic_GCJ='-fPIC'
21238 ;;
21239 esac
21240 ;;
21241
21242 *)
21243 lt_prog_compiler_pic_GCJ='-fPIC'
21244 ;;
21245 esac
21246 else
21247 # PORTME Check for flag to pass linker flags through the system compiler.
21248 case $host_os in
21249 aix*)
21250 lt_prog_compiler_wl_GCJ='-Wl,'
21251 if test "$host_cpu" = ia64; then
21252 # AIX 5 now supports IA64 processor
21253 lt_prog_compiler_static_GCJ='-Bstatic'
21254 else
21255 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21256 fi
21257 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021258 darwin*)
21259 # PIC is the default on this platform
21260 # Common symbols not allowed in MH_DYLIB files
21261 case "$cc_basename" in
21262 xlc*)
21263 lt_prog_compiler_pic_GCJ='-qnocommon'
21264 lt_prog_compiler_wl_GCJ='-Wl,'
21265 ;;
21266 esac
21267 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021268
21269 mingw* | pw32* | os2*)
21270 # This hack is so that the source file can tell whether it is being
21271 # built for inclusion in a dll (and should export symbols for example).
21272 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21273 ;;
21274
21275 hpux9* | hpux10* | hpux11*)
21276 lt_prog_compiler_wl_GCJ='-Wl,'
21277 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21278 # not for PA HP-UX.
21279 case "$host_cpu" in
21280 hppa*64*|ia64*)
21281 # +Z the default
21282 ;;
21283 *)
21284 lt_prog_compiler_pic_GCJ='+Z'
21285 ;;
21286 esac
21287 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21288 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21289 ;;
21290
21291 irix5* | irix6* | nonstopux*)
21292 lt_prog_compiler_wl_GCJ='-Wl,'
21293 # PIC (with -KPIC) is the default.
21294 lt_prog_compiler_static_GCJ='-non_shared'
21295 ;;
21296
21297 newsos6)
21298 lt_prog_compiler_pic_GCJ='-KPIC'
21299 lt_prog_compiler_static_GCJ='-Bstatic'
21300 ;;
21301
21302 linux*)
21303 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021304 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021305 lt_prog_compiler_wl_GCJ='-Wl,'
21306 lt_prog_compiler_pic_GCJ='-KPIC'
21307 lt_prog_compiler_static_GCJ='-static'
21308 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021309 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021310 lt_prog_compiler_wl_GCJ='-Wl,'
21311 # All Alpha code is PIC.
21312 lt_prog_compiler_static_GCJ='-non_shared'
21313 ;;
21314 esac
21315 ;;
21316
21317 osf3* | osf4* | osf5*)
21318 lt_prog_compiler_wl_GCJ='-Wl,'
21319 # All OSF/1 code is PIC.
21320 lt_prog_compiler_static_GCJ='-non_shared'
21321 ;;
21322
21323 sco3.2v5*)
21324 lt_prog_compiler_pic_GCJ='-Kpic'
21325 lt_prog_compiler_static_GCJ='-dn'
21326 ;;
21327
21328 solaris*)
21329 lt_prog_compiler_wl_GCJ='-Wl,'
21330 lt_prog_compiler_pic_GCJ='-KPIC'
21331 lt_prog_compiler_static_GCJ='-Bstatic'
21332 ;;
21333
21334 sunos4*)
21335 lt_prog_compiler_wl_GCJ='-Qoption ld '
21336 lt_prog_compiler_pic_GCJ='-PIC'
21337 lt_prog_compiler_static_GCJ='-Bstatic'
21338 ;;
21339
21340 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21341 lt_prog_compiler_wl_GCJ='-Wl,'
21342 lt_prog_compiler_pic_GCJ='-KPIC'
21343 lt_prog_compiler_static_GCJ='-Bstatic'
21344 ;;
21345
21346 sysv4*MP*)
21347 if test -d /usr/nec ;then
21348 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21349 lt_prog_compiler_static_GCJ='-Bstatic'
21350 fi
21351 ;;
21352
21353 uts4*)
21354 lt_prog_compiler_pic_GCJ='-pic'
21355 lt_prog_compiler_static_GCJ='-Bstatic'
21356 ;;
21357
21358 *)
21359 lt_prog_compiler_can_build_shared_GCJ=no
21360 ;;
21361 esac
21362 fi
21363
21364echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21365echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21366
21367#
21368# Check to make sure the PIC flag actually works.
21369#
21370if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021371
21372echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021373echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21374if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21376else
21377 lt_prog_compiler_pic_works_GCJ=no
21378 ac_outfile=conftest.$ac_objext
21379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21380 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21381 # Insert the option either (1) after the last *FLAGS variable, or
21382 # (2) before a word containing "conftest.", or (3) at the end.
21383 # Note that $ac_compile itself does not contain backslashes and begins
21384 # with a dollar sign (not a hyphen), so the echo should work correctly.
21385 # The option is referenced via a variable to avoid confusing sed.
21386 lt_compile=`echo "$ac_compile" | $SED \
21387 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21389 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000021390 (eval echo "\"\$as_me:21390: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021391 (eval "$lt_compile" 2>conftest.err)
21392 ac_status=$?
21393 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000021394 echo "$as_me:21394: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021395 if (exit $ac_status) && test -s "$ac_outfile"; then
21396 # The compiler can only warn and ignore the option if not recognized
21397 # So say no if there are warnings
21398 if test ! -s conftest.err; then
21399 lt_prog_compiler_pic_works_GCJ=yes
21400 fi
21401 fi
21402 $rm conftest*
21403
21404fi
21405echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21406echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21407
21408if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21409 case $lt_prog_compiler_pic_GCJ in
21410 "" | " "*) ;;
21411 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21412 esac
21413else
21414 lt_prog_compiler_pic_GCJ=
21415 lt_prog_compiler_can_build_shared_GCJ=no
21416fi
21417
21418fi
21419case "$host_os" in
21420 # For platforms which do not support PIC, -DPIC is meaningless:
21421 *djgpp*)
21422 lt_prog_compiler_pic_GCJ=
21423 ;;
21424 *)
21425 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21426 ;;
21427esac
21428
21429echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21430echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21431if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21433else
21434 lt_cv_prog_compiler_c_o_GCJ=no
21435 $rm -r conftest 2>/dev/null
21436 mkdir conftest
21437 cd conftest
21438 mkdir out
21439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21440
John Criswell47fdd832003-07-14 16:52:07 +000021441 lt_compiler_flag="-o out/conftest2.$ac_objext"
21442 # Insert the option either (1) after the last *FLAGS variable, or
21443 # (2) before a word containing "conftest.", or (3) at the end.
21444 # Note that $ac_compile itself does not contain backslashes and begins
21445 # with a dollar sign (not a hyphen), so the echo should work correctly.
21446 lt_compile=`echo "$ac_compile" | $SED \
21447 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21449 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000021450 (eval echo "\"\$as_me:21450: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021451 (eval "$lt_compile" 2>out/conftest.err)
21452 ac_status=$?
21453 cat out/conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000021454 echo "$as_me:21454: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21456 then
21457 # The compiler can only warn and ignore the option if not recognized
21458 # So say no if there are warnings
21459 if test ! -s out/conftest.err; then
21460 lt_cv_prog_compiler_c_o_GCJ=yes
21461 fi
21462 fi
21463 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021464 $rm conftest*
21465 # SGI C++ compiler will create directory out/ii_files/ for
21466 # template instantiation
21467 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21468 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021469 cd ..
21470 rmdir conftest
21471 $rm conftest*
21472
21473fi
21474echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21475echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21476
21477
21478hard_links="nottested"
21479if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21480 # do not overwrite the value of need_locks provided by the user
21481 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21482echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21483 hard_links=yes
21484 $rm conftest*
21485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21486 touch conftest.a
21487 ln conftest.a conftest.b 2>&5 || hard_links=no
21488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21489 echo "$as_me:$LINENO: result: $hard_links" >&5
21490echo "${ECHO_T}$hard_links" >&6
21491 if test "$hard_links" = no; then
21492 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21493echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21494 need_locks=warn
21495 fi
21496else
21497 need_locks=no
21498fi
21499
21500echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21501echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21502
21503 runpath_var=
21504 allow_undefined_flag_GCJ=
21505 enable_shared_with_static_runtimes_GCJ=no
21506 archive_cmds_GCJ=
21507 archive_expsym_cmds_GCJ=
21508 old_archive_From_new_cmds_GCJ=
21509 old_archive_from_expsyms_cmds_GCJ=
21510 export_dynamic_flag_spec_GCJ=
21511 whole_archive_flag_spec_GCJ=
21512 thread_safe_flag_spec_GCJ=
21513 hardcode_libdir_flag_spec_GCJ=
21514 hardcode_libdir_flag_spec_ld_GCJ=
21515 hardcode_libdir_separator_GCJ=
21516 hardcode_direct_GCJ=no
21517 hardcode_minus_L_GCJ=no
21518 hardcode_shlibpath_var_GCJ=unsupported
21519 link_all_deplibs_GCJ=unknown
21520 hardcode_automatic_GCJ=no
21521 module_cmds_GCJ=
21522 module_expsym_cmds_GCJ=
21523 always_export_symbols_GCJ=no
21524 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21525 # include_expsyms should be a list of space-separated symbols to be *always*
21526 # included in the symbol list
21527 include_expsyms_GCJ=
21528 # exclude_expsyms can be an extended regexp of symbols to exclude
21529 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21530 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21531 # as well as any symbol that contains `d'.
21532 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21533 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21534 # platforms (ab)use it in PIC code, but their linkers get confused if
21535 # the symbol is explicitly referenced. Since portable code cannot
21536 # rely on this symbol name, it's probably fine to never include it in
21537 # preloaded symbol tables.
21538 extract_expsyms_cmds=
21539
21540 case $host_os in
21541 cygwin* | mingw* | pw32*)
21542 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21543 # When not using gcc, we currently assume that we are using
21544 # Microsoft Visual C++.
21545 if test "$GCC" != yes; then
21546 with_gnu_ld=no
21547 fi
21548 ;;
21549 openbsd*)
21550 with_gnu_ld=no
21551 ;;
21552 esac
21553
21554 ld_shlibs_GCJ=yes
21555 if test "$with_gnu_ld" = yes; then
21556 # If archive_cmds runs LD, not CC, wlarc should be empty
21557 wlarc='${wl}'
21558
21559 # See if GNU ld supports shared libraries.
21560 case $host_os in
21561 aix3* | aix4* | aix5*)
21562 # On AIX/PPC, the GNU linker is very broken
21563 if test "$host_cpu" != ia64; then
21564 ld_shlibs_GCJ=no
21565 cat <<EOF 1>&2
21566
21567*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21568*** to be unable to reliably create shared libraries on AIX.
21569*** Therefore, libtool is disabling shared libraries support. If you
21570*** really care for shared libraries, you may want to modify your PATH
21571*** so that a non-GNU linker is found, and then restart.
21572
21573EOF
21574 fi
21575 ;;
21576
21577 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021578 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 +000021579 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21580 hardcode_minus_L_GCJ=yes
21581
21582 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21583 # that the semantics of dynamic libraries on AmigaOS, at least up
21584 # to version 4, is to share data among multiple programs linked
21585 # with the same dynamic library. Since this doesn't match the
21586 # behavior of shared libraries on other platforms, we can't use
21587 # them.
21588 ld_shlibs_GCJ=no
21589 ;;
21590
21591 beos*)
21592 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21593 allow_undefined_flag_GCJ=unsupported
21594 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21595 # support --undefined. This deserves some investigation. FIXME
21596 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21597 else
21598 ld_shlibs_GCJ=no
21599 fi
21600 ;;
21601
21602 cygwin* | mingw* | pw32*)
21603 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21604 # as there is no search path for DLLs.
21605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21606 allow_undefined_flag_GCJ=unsupported
21607 always_export_symbols_GCJ=no
21608 enable_shared_with_static_runtimes_GCJ=yes
21609 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21610
21611 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21613 # If the export-symbols file already is a .def file (1st line
21614 # is EXPORTS), use it as is; otherwise, prepend...
21615 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21616 cp $export_symbols $output_objdir/$soname.def;
21617 else
21618 echo EXPORTS > $output_objdir/$soname.def;
21619 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021620 fi~
21621 $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 +000021622 else
21623 ld_shlibs=no
21624 fi
21625 ;;
21626
21627 netbsd*)
21628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21629 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21630 wlarc=
21631 else
21632 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21633 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21634 fi
21635 ;;
21636
21637 solaris* | sysv5*)
21638 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21639 ld_shlibs_GCJ=no
21640 cat <<EOF 1>&2
21641
21642*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21643*** create shared libraries on Solaris systems. Therefore, libtool
21644*** is disabling shared libraries support. We urge you to upgrade GNU
21645*** binutils to release 2.9.1 or newer. Another option is to modify
21646*** your PATH or compiler configuration so that the native linker is
21647*** used, and then restart.
21648
21649EOF
21650 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21651 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21653 else
21654 ld_shlibs_GCJ=no
21655 fi
21656 ;;
21657
21658 sunos4*)
21659 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21660 wlarc=
21661 hardcode_direct_GCJ=yes
21662 hardcode_shlibpath_var_GCJ=no
21663 ;;
21664
Reid Spencer2706f8c2004-09-19 23:53:36 +000021665 linux*)
21666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21667 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21668 archive_cmds_GCJ="$tmp_archive_cmds"
21669 supports_anon_versioning=no
21670 case `$LD -v 2>/dev/null` in
21671 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21672 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21673 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21674 *\ 2.11.*) ;; # other 2.11 versions
21675 *) supports_anon_versioning=yes ;;
21676 esac
21677 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021678 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21679cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21680$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021681 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21682 else
21683 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21684 fi
21685 else
21686 ld_shlibs_GCJ=no
21687 fi
21688 ;;
21689
John Criswell47fdd832003-07-14 16:52:07 +000021690 *)
21691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21693 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21694 else
21695 ld_shlibs_GCJ=no
21696 fi
21697 ;;
21698 esac
21699
21700 if test "$ld_shlibs_GCJ" = yes; then
21701 runpath_var=LD_RUN_PATH
21702 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21703 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21704 # ancient GNU ld didn't support --whole-archive et. al.
21705 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21706 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21707 else
21708 whole_archive_flag_spec_GCJ=
21709 fi
21710 fi
21711 else
21712 # PORTME fill in a description of your system's linker (not GNU ld)
21713 case $host_os in
21714 aix3*)
21715 allow_undefined_flag_GCJ=unsupported
21716 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021717 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 +000021718 # Note: this linker hardcodes the directories in LIBPATH if there
21719 # are no directories specified by -L.
21720 hardcode_minus_L_GCJ=yes
21721 if test "$GCC" = yes && test -z "$link_static_flag"; then
21722 # Neither direct hardcoding nor static linking is supported with a
21723 # broken collect2.
21724 hardcode_direct_GCJ=unsupported
21725 fi
21726 ;;
21727
21728 aix4* | aix5*)
21729 if test "$host_cpu" = ia64; then
21730 # On IA64, the linker does run time linking by default, so we don't
21731 # have to do anything special.
21732 aix_use_runtimelinking=no
21733 exp_sym_flag='-Bexport'
21734 no_entry_flag=""
21735 else
21736 # If we're using GNU nm, then we don't want the "-C" option.
21737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21738 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21739 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'
21740 else
21741 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'
21742 fi
21743 aix_use_runtimelinking=no
21744
21745 # Test if we are trying to use run time linking or normal
21746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21747 # need to do runtime linking.
21748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21749 for ld_flag in $LDFLAGS; do
21750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21751 aix_use_runtimelinking=yes
21752 break
21753 fi
21754 done
21755 esac
21756
21757 exp_sym_flag='-bexport'
21758 no_entry_flag='-bnoentry'
21759 fi
21760
21761 # When large executables or shared objects are built, AIX ld can
21762 # have problems creating the table of contents. If linking a library
21763 # or program results in "error TOC overflow" add -mminimal-toc to
21764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21766
21767 archive_cmds_GCJ=''
21768 hardcode_direct_GCJ=yes
21769 hardcode_libdir_separator_GCJ=':'
21770 link_all_deplibs_GCJ=yes
21771
21772 if test "$GCC" = yes; then
21773 case $host_os in aix4.012|aix4.012.*)
21774 # We only want to do this on AIX 4.2 and lower, the check
21775 # below for broken collect2 doesn't work under 4.3+
21776 collect2name=`${CC} -print-prog-name=collect2`
21777 if test -f "$collect2name" && \
21778 strings "$collect2name" | grep resolve_lib_name >/dev/null
21779 then
21780 # We have reworked collect2
21781 hardcode_direct_GCJ=yes
21782 else
21783 # We have old collect2
21784 hardcode_direct_GCJ=unsupported
21785 # It fails to find uninstalled libraries when the uninstalled
21786 # path is not listed in the libpath. Setting hardcode_minus_L
21787 # to unsupported forces relinking
21788 hardcode_minus_L_GCJ=yes
21789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21790 hardcode_libdir_separator_GCJ=
21791 fi
21792 esac
21793 shared_flag='-shared'
21794 else
21795 # not using gcc
21796 if test "$host_cpu" = ia64; then
21797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21798 # chokes on -Wl,-G. The following line is correct:
21799 shared_flag='-G'
21800 else
21801 if test "$aix_use_runtimelinking" = yes; then
21802 shared_flag='${wl}-G'
21803 else
21804 shared_flag='${wl}-bM:SRE'
21805 fi
21806 fi
21807 fi
21808
21809 # It seems that -bexpall does not export symbols beginning with
21810 # underscore (_), so it is better to generate a list of symbols to export.
21811 always_export_symbols_GCJ=yes
21812 if test "$aix_use_runtimelinking" = yes; then
21813 # Warning - without using the other runtime loading flags (-brtl),
21814 # -berok will link without error, but may produce a broken library.
21815 allow_undefined_flag_GCJ='-berok'
21816 # Determine the default libpath from the value encoded in an empty executable.
21817 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021818/* confdefs.h. */
21819_ACEOF
21820cat confdefs.h >>conftest.$ac_ext
21821cat >>conftest.$ac_ext <<_ACEOF
21822/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021823
John Criswell47fdd832003-07-14 16:52:07 +000021824int
21825main ()
21826{
21827
21828 ;
21829 return 0;
21830}
21831_ACEOF
21832rm -f conftest.$ac_objext conftest$ac_exeext
21833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021834 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021835 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021836 grep -v '^ *+' conftest.er1 >conftest.err
21837 rm -f conftest.er1
21838 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021841 { ac_try='test -z "$ac_c_werror_flag"
21842 || test ! -s conftest.err'
21843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844 (eval $ac_try) 2>&5
21845 ac_status=$?
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); }; } &&
21848 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; }; then
21854
21855aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21856}'`
21857# Check for a 64-bit object if we didn't find anything.
21858if 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; }
21859}'`; fi
21860else
21861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021862sed 's/^/| /' conftest.$ac_ext >&5
21863
John Criswell47fdd832003-07-14 16:52:07 +000021864fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021865rm -f conftest.err conftest.$ac_objext \
21866 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21868
21869 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21870 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"
21871 else
21872 if test "$host_cpu" = ia64; then
21873 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21874 allow_undefined_flag_GCJ="-z nodefs"
21875 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"
21876 else
21877 # Determine the default libpath from the value encoded in an empty executable.
21878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021879/* confdefs.h. */
21880_ACEOF
21881cat confdefs.h >>conftest.$ac_ext
21882cat >>conftest.$ac_ext <<_ACEOF
21883/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021884
John Criswell47fdd832003-07-14 16:52:07 +000021885int
21886main ()
21887{
21888
21889 ;
21890 return 0;
21891}
21892_ACEOF
21893rm -f conftest.$ac_objext conftest$ac_exeext
21894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021895 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021896 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021897 grep -v '^ *+' conftest.er1 >conftest.err
21898 rm -f conftest.er1
21899 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021902 { ac_try='test -z "$ac_c_werror_flag"
21903 || test ! -s conftest.err'
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; } &&
21909 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915
21916aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21917}'`
21918# Check for a 64-bit object if we didn't find anything.
21919if 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; }
21920}'`; fi
21921else
21922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021923sed 's/^/| /' conftest.$ac_ext >&5
21924
John Criswell47fdd832003-07-14 16:52:07 +000021925fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021926rm -f conftest.err conftest.$ac_objext \
21927 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021928if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21929
21930 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21931 # Warning - without using the other run time loading flags,
21932 # -berok will link without error, but may produce a broken library.
21933 no_undefined_flag_GCJ=' ${wl}-bernotok'
21934 allow_undefined_flag_GCJ=' ${wl}-berok'
21935 # -bexpall does not export symbols beginning with underscore (_)
21936 always_export_symbols_GCJ=yes
21937 # Exported symbols can be pulled into shared objects from archives
21938 whole_archive_flag_spec_GCJ=' '
21939 archive_cmds_need_lc_GCJ=yes
21940 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021941 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 +000021942 fi
21943 fi
21944 ;;
21945
21946 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021947 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 +000021948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21949 hardcode_minus_L_GCJ=yes
21950 # see comment about different semantics on the GNU ld section
21951 ld_shlibs_GCJ=no
21952 ;;
21953
Reid Spencer2706f8c2004-09-19 23:53:36 +000021954 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021955 export_dynamic_flag_spec_GCJ=-rdynamic
21956 ;;
21957
21958 cygwin* | mingw* | pw32*)
21959 # When not using gcc, we currently assume that we are using
21960 # Microsoft Visual C++.
21961 # hardcode_libdir_flag_spec is actually meaningless, as there is
21962 # no search path for DLLs.
21963 hardcode_libdir_flag_spec_GCJ=' '
21964 allow_undefined_flag_GCJ=unsupported
21965 # Tell ltmain to make .lib files, not .a files.
21966 libext=lib
21967 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021968 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021969 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021970 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 +000021971 # The linker will automatically build a .lib file if we build a DLL.
21972 old_archive_From_new_cmds_GCJ='true'
21973 # FIXME: Should let the user specify the lib program.
21974 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21975 fix_srcfile_path='`cygpath -w "$srcfile"`'
21976 enable_shared_with_static_runtimes_GCJ=yes
21977 ;;
21978
21979 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021980 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021981 rhapsody* | darwin1.[012])
21982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21983 ;;
21984 *) # Darwin 1.3 on
21985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21986 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21987 else
21988 case ${MACOSX_DEPLOYMENT_TARGET} in
21989 10.[012])
21990 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21991 ;;
21992 10.*)
21993 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21994 ;;
21995 esac
21996 fi
21997 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021998 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021999 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022000 hardcode_direct_GCJ=no
22001 hardcode_automatic_GCJ=yes
22002 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022003 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022004 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022005 if test "$GCC" = yes ; then
22006 output_verbose_link_cmd='echo'
22007 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22008 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22009 # 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 +000022010 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}'
22011 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 +000022012 else
22013 case "$cc_basename" in
22014 xlc*)
22015 output_verbose_link_cmd='echo'
22016 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22017 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22018 # 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 +000022019 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}'
22020 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 +000022021 ;;
22022 *)
22023 ld_shlibs_GCJ=no
22024 ;;
22025 esac
John Criswell47fdd832003-07-14 16:52:07 +000022026 fi
22027 ;;
22028
22029 dgux*)
22030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22032 hardcode_shlibpath_var_GCJ=no
22033 ;;
22034
22035 freebsd1*)
22036 ld_shlibs_GCJ=no
22037 ;;
22038
22039 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22040 # support. Future versions do this automatically, but an explicit c++rt0.o
22041 # does not break anything, and helps significantly (at the cost of a little
22042 # extra space).
22043 freebsd2.2*)
22044 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22046 hardcode_direct_GCJ=yes
22047 hardcode_shlibpath_var_GCJ=no
22048 ;;
22049
22050 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22051 freebsd2*)
22052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22053 hardcode_direct_GCJ=yes
22054 hardcode_minus_L_GCJ=yes
22055 hardcode_shlibpath_var_GCJ=no
22056 ;;
22057
22058 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022059 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022060 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22061 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22062 hardcode_direct_GCJ=yes
22063 hardcode_shlibpath_var_GCJ=no
22064 ;;
22065
22066 hpux9*)
22067 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022068 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 +000022069 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022070 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 +000022071 fi
22072 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22073 hardcode_libdir_separator_GCJ=:
22074 hardcode_direct_GCJ=yes
22075
22076 # hardcode_minus_L: Not really in the search PATH,
22077 # but as the default location of the library.
22078 hardcode_minus_L_GCJ=yes
22079 export_dynamic_flag_spec_GCJ='${wl}-E'
22080 ;;
22081
22082 hpux10* | hpux11*)
22083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22084 case "$host_cpu" in
22085 hppa*64*|ia64*)
22086 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22087 ;;
22088 *)
22089 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22090 ;;
22091 esac
22092 else
22093 case "$host_cpu" in
22094 hppa*64*|ia64*)
22095 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22096 ;;
22097 *)
22098 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22099 ;;
22100 esac
22101 fi
22102 if test "$with_gnu_ld" = no; then
22103 case "$host_cpu" in
22104 hppa*64*)
22105 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22106 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22107 hardcode_libdir_separator_GCJ=:
22108 hardcode_direct_GCJ=no
22109 hardcode_shlibpath_var_GCJ=no
22110 ;;
22111 ia64*)
22112 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22113 hardcode_direct_GCJ=no
22114 hardcode_shlibpath_var_GCJ=no
22115
22116 # hardcode_minus_L: Not really in the search PATH,
22117 # but as the default location of the library.
22118 hardcode_minus_L_GCJ=yes
22119 ;;
22120 *)
22121 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22122 hardcode_libdir_separator_GCJ=:
22123 hardcode_direct_GCJ=yes
22124 export_dynamic_flag_spec_GCJ='${wl}-E'
22125
22126 # hardcode_minus_L: Not really in the search PATH,
22127 # but as the default location of the library.
22128 hardcode_minus_L_GCJ=yes
22129 ;;
22130 esac
22131 fi
22132 ;;
22133
22134 irix5* | irix6* | nonstopux*)
22135 if test "$GCC" = yes; then
22136 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'
22137 else
22138 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'
22139 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22140 fi
22141 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22142 hardcode_libdir_separator_GCJ=:
22143 link_all_deplibs_GCJ=yes
22144 ;;
22145
22146 netbsd*)
22147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22148 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22149 else
22150 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22151 fi
22152 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153 hardcode_direct_GCJ=yes
22154 hardcode_shlibpath_var_GCJ=no
22155 ;;
22156
22157 newsos6)
22158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22159 hardcode_direct_GCJ=yes
22160 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22161 hardcode_libdir_separator_GCJ=:
22162 hardcode_shlibpath_var_GCJ=no
22163 ;;
22164
22165 openbsd*)
22166 hardcode_direct_GCJ=yes
22167 hardcode_shlibpath_var_GCJ=no
22168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22169 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022170 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 +000022171 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22172 export_dynamic_flag_spec_GCJ='${wl}-E'
22173 else
22174 case $host_os in
22175 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22176 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22177 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22178 ;;
22179 *)
22180 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22182 ;;
22183 esac
22184 fi
22185 ;;
22186
22187 os2*)
22188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22189 hardcode_minus_L_GCJ=yes
22190 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022191 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 +000022192 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22193 ;;
22194
22195 osf3*)
22196 if test "$GCC" = yes; then
22197 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22198 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'
22199 else
22200 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22201 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'
22202 fi
22203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22204 hardcode_libdir_separator_GCJ=:
22205 ;;
22206
22207 osf4* | osf5*) # as osf3* with the addition of -msym flag
22208 if test "$GCC" = yes; then
22209 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22210 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'
22211 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22212 else
22213 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22214 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 +000022215 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~
22216 $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'
22217
John Criswell47fdd832003-07-14 16:52:07 +000022218 # Both c and cxx compiler support -rpath directly
22219 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22220 fi
22221 hardcode_libdir_separator_GCJ=:
22222 ;;
22223
22224 sco3.2v5*)
22225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226 hardcode_shlibpath_var_GCJ=no
22227 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22228 runpath_var=LD_RUN_PATH
22229 hardcode_runpath_var=yes
22230 ;;
22231
22232 solaris*)
22233 no_undefined_flag_GCJ=' -z text'
22234 if test "$GCC" = yes; then
22235 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022236 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22237 $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 +000022238 else
22239 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022240 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22241 $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 +000022242 fi
22243 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244 hardcode_shlibpath_var_GCJ=no
22245 case $host_os in
22246 solaris2.[0-5] | solaris2.[0-5].*) ;;
22247 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22248 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22249 esac
22250 link_all_deplibs_GCJ=yes
22251 ;;
22252
22253 sunos4*)
22254 if test "x$host_vendor" = xsequent; then
22255 # Use $CC to link under sequent, because it throws in some extra .o
22256 # files that make .init and .fini sections work.
22257 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22258 else
22259 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22260 fi
22261 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22262 hardcode_direct_GCJ=yes
22263 hardcode_minus_L_GCJ=yes
22264 hardcode_shlibpath_var_GCJ=no
22265 ;;
22266
22267 sysv4)
22268 case $host_vendor in
22269 sni)
22270 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22271 hardcode_direct_GCJ=yes # is this really true???
22272 ;;
22273 siemens)
22274 ## LD is ld it makes a PLAMLIB
22275 ## CC just makes a GrossModule.
22276 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22277 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22278 hardcode_direct_GCJ=no
22279 ;;
22280 motorola)
22281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22282 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22283 ;;
22284 esac
22285 runpath_var='LD_RUN_PATH'
22286 hardcode_shlibpath_var_GCJ=no
22287 ;;
22288
22289 sysv4.3*)
22290 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22291 hardcode_shlibpath_var_GCJ=no
22292 export_dynamic_flag_spec_GCJ='-Bexport'
22293 ;;
22294
22295 sysv4*MP*)
22296 if test -d /usr/nec; then
22297 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22298 hardcode_shlibpath_var_GCJ=no
22299 runpath_var=LD_RUN_PATH
22300 hardcode_runpath_var=yes
22301 ld_shlibs_GCJ=yes
22302 fi
22303 ;;
22304
22305 sysv4.2uw2*)
22306 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22307 hardcode_direct_GCJ=yes
22308 hardcode_minus_L_GCJ=no
22309 hardcode_shlibpath_var_GCJ=no
22310 hardcode_runpath_var=yes
22311 runpath_var=LD_RUN_PATH
22312 ;;
22313
22314 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22315 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22316 if test "$GCC" = yes; then
22317 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22318 else
22319 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22320 fi
22321 runpath_var='LD_RUN_PATH'
22322 hardcode_shlibpath_var_GCJ=no
22323 ;;
22324
22325 sysv5*)
22326 no_undefined_flag_GCJ=' -z text'
22327 # $CC -shared without GNU ld will not create a library from C++
22328 # object files and a static libstdc++, better avoid it by now
22329 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022330 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022332 hardcode_libdir_flag_spec_GCJ=
22333 hardcode_shlibpath_var_GCJ=no
22334 runpath_var='LD_RUN_PATH'
22335 ;;
22336
22337 uts4*)
22338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22340 hardcode_shlibpath_var_GCJ=no
22341 ;;
22342
22343 *)
22344 ld_shlibs_GCJ=no
22345 ;;
22346 esac
22347 fi
22348
22349echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22350echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22351test "$ld_shlibs_GCJ" = no && can_build_shared=no
22352
22353variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22354if test "$GCC" = yes; then
22355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22356fi
22357
22358#
22359# Do we need to explicitly link libc?
22360#
22361case "x$archive_cmds_need_lc_GCJ" in
22362x|xyes)
22363 # Assume -lc should be added
22364 archive_cmds_need_lc_GCJ=yes
22365
22366 if test "$enable_shared" = yes && test "$GCC" = yes; then
22367 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022368 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022369 # FIXME: we may have to deal with multi-command sequences.
22370 ;;
22371 '$CC '*)
22372 # Test whether the compiler implicitly links with -lc since on some
22373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22374 # to ld, don't add -lc before -lgcc.
22375 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22376echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22377 $rm conftest*
22378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22379
22380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22381 (eval $ac_compile) 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } 2>conftest.err; then
22385 soname=conftest
22386 lib=conftest
22387 libobjs=conftest.$ac_objext
22388 deplibs=
22389 wl=$lt_prog_compiler_wl_GCJ
22390 compiler_flags=-v
22391 linker_flags=-v
22392 verstring=
22393 output_objdir=.
22394 libname=conftest
22395 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22396 allow_undefined_flag_GCJ=
22397 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22398 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }
22402 then
22403 archive_cmds_need_lc_GCJ=no
22404 else
22405 archive_cmds_need_lc_GCJ=yes
22406 fi
22407 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22408 else
22409 cat conftest.err 1>&5
22410 fi
22411 $rm conftest*
22412 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22413echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22414 ;;
22415 esac
22416 fi
22417 ;;
22418esac
22419
John Criswell47fdd832003-07-14 16:52:07 +000022420echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22421echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22422library_names_spec=
22423libname_spec='lib$name'
22424soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022425shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022426postinstall_cmds=
22427postuninstall_cmds=
22428finish_cmds=
22429finish_eval=
22430shlibpath_var=
22431shlibpath_overrides_runpath=unknown
22432version_type=none
22433dynamic_linker="$host_os ld.so"
22434sys_lib_dlsearch_path_spec="/lib /usr/lib"
22435if test "$GCC" = yes; then
22436 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22437 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22438 # if the path contains ";" then we assume it to be the separator
22439 # otherwise default to the standard path separator (i.e. ":") - it is
22440 # assumed that no part of a normal pathname contains ";" but that should
22441 # okay in the real world where ";" in dirpaths is itself problematic.
22442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22443 else
22444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22445 fi
22446else
22447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22448fi
22449need_lib_prefix=unknown
22450hardcode_into_libs=no
22451
22452# when you set need_version to no, make sure it does not cause -set_version
22453# flags to be left without arguments
22454need_version=unknown
22455
22456case $host_os in
22457aix3*)
22458 version_type=linux
22459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22460 shlibpath_var=LIBPATH
22461
22462 # AIX 3 has no versioning support, so we append a major version to the name.
22463 soname_spec='${libname}${release}${shared_ext}$major'
22464 ;;
22465
22466aix4* | aix5*)
22467 version_type=linux
22468 need_lib_prefix=no
22469 need_version=no
22470 hardcode_into_libs=yes
22471 if test "$host_cpu" = ia64; then
22472 # AIX 5 supports IA64
22473 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22474 shlibpath_var=LD_LIBRARY_PATH
22475 else
22476 # With GCC up to 2.95.x, collect2 would create an import file
22477 # for dependence libraries. The import file would start with
22478 # the line `#! .'. This would cause the generated library to
22479 # depend on `.', always an invalid library. This was fixed in
22480 # development snapshots of GCC prior to 3.0.
22481 case $host_os in
22482 aix4 | aix4.[01] | aix4.[01].*)
22483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22484 echo ' yes '
22485 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22486 :
22487 else
22488 can_build_shared=no
22489 fi
22490 ;;
22491 esac
22492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22493 # soname into executable. Probably we can add versioning support to
22494 # collect2, so additional links can be useful in future.
22495 if test "$aix_use_runtimelinking" = yes; then
22496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22497 # instead of lib<name>.a to let people know that these are not
22498 # typical AIX shared libraries.
22499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22500 else
22501 # We preserve .a as extension for shared libraries through AIX4.2
22502 # and later when we are not doing run time linking.
22503 library_names_spec='${libname}${release}.a $libname.a'
22504 soname_spec='${libname}${release}${shared_ext}$major'
22505 fi
22506 shlibpath_var=LIBPATH
22507 fi
22508 ;;
22509
22510amigaos*)
22511 library_names_spec='$libname.ixlibrary $libname.a'
22512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022513 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 +000022514 ;;
22515
22516beos*)
22517 library_names_spec='${libname}${shared_ext}'
22518 dynamic_linker="$host_os ld.so"
22519 shlibpath_var=LIBRARY_PATH
22520 ;;
22521
Reid Spencer2706f8c2004-09-19 23:53:36 +000022522bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022523 version_type=linux
22524 need_version=no
22525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22526 soname_spec='${libname}${release}${shared_ext}$major'
22527 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22528 shlibpath_var=LD_LIBRARY_PATH
22529 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22530 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22531 # the default ld.so.conf also contains /usr/contrib/lib and
22532 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22533 # libtool to hard-code these into programs
22534 ;;
22535
22536cygwin* | mingw* | pw32*)
22537 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022538 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022539 need_version=no
22540 need_lib_prefix=no
22541
22542 case $GCC,$host_os in
22543 yes,cygwin* | yes,mingw* | yes,pw32*)
22544 library_names_spec='$libname.dll.a'
22545 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022546 postinstall_cmds='base_file=`basename \${file}`~
22547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22548 dldir=$destdir/`dirname \$dlpath`~
22549 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022550 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22552 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022553 $rm \$dlpath'
22554 shlibpath_overrides_runpath=yes
22555
22556 case $host_os in
22557 cygwin*)
22558 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22559 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 +000022560 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022561 ;;
22562 mingw*)
22563 # MinGW DLLs use traditional 'lib' prefix
22564 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22566 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22567 # It is most probably a Windows format PATH printed by
22568 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22569 # path with ; separators, and with drive letters. We can handle the
22570 # drive letters (cygwin fileutils understands them), so leave them,
22571 # especially as we might pass files found there to a mingw objdump,
22572 # which wouldn't understand a cygwinified path. Ahh.
22573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22574 else
22575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22576 fi
22577 ;;
22578 pw32*)
22579 # pw32 DLLs use 'pw' prefix rather than 'lib'
22580 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22581 ;;
22582 esac
22583 ;;
22584
22585 *)
22586 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22587 ;;
22588 esac
22589 dynamic_linker='Win32 ld.exe'
22590 # FIXME: first we should search . and the directory the executable is in
22591 shlibpath_var=PATH
22592 ;;
22593
22594darwin* | rhapsody*)
22595 dynamic_linker="$host_os dyld"
22596 version_type=darwin
22597 need_lib_prefix=no
22598 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022599 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022600 soname_spec='${libname}${release}${major}$shared_ext'
22601 shlibpath_overrides_runpath=yes
22602 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022603 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022604 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022605 if test "$GCC" = yes; then
22606 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"`
22607 else
22608 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022609 fi
22610 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22611 ;;
22612
22613dgux*)
22614 version_type=linux
22615 need_lib_prefix=no
22616 need_version=no
22617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22618 soname_spec='${libname}${release}${shared_ext}$major'
22619 shlibpath_var=LD_LIBRARY_PATH
22620 ;;
22621
22622freebsd1*)
22623 dynamic_linker=no
22624 ;;
22625
Reid Spencer2706f8c2004-09-19 23:53:36 +000022626kfreebsd*-gnu)
22627 version_type=linux
22628 need_lib_prefix=no
22629 need_version=no
22630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22631 soname_spec='${libname}${release}${shared_ext}$major'
22632 shlibpath_var=LD_LIBRARY_PATH
22633 shlibpath_overrides_runpath=no
22634 hardcode_into_libs=yes
22635 dynamic_linker='GNU ld.so'
22636 ;;
22637
John Criswell47fdd832003-07-14 16:52:07 +000022638freebsd*)
22639 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22640 version_type=freebsd-$objformat
22641 case $version_type in
22642 freebsd-elf*)
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22644 need_version=no
22645 need_lib_prefix=no
22646 ;;
22647 freebsd-*)
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22649 need_version=yes
22650 ;;
22651 esac
22652 shlibpath_var=LD_LIBRARY_PATH
22653 case $host_os in
22654 freebsd2*)
22655 shlibpath_overrides_runpath=yes
22656 ;;
22657 freebsd3.01* | freebsdelf3.01*)
22658 shlibpath_overrides_runpath=yes
22659 hardcode_into_libs=yes
22660 ;;
22661 *) # from 3.2 on
22662 shlibpath_overrides_runpath=no
22663 hardcode_into_libs=yes
22664 ;;
22665 esac
22666 ;;
22667
22668gnu*)
22669 version_type=linux
22670 need_lib_prefix=no
22671 need_version=no
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 shlibpath_var=LD_LIBRARY_PATH
22675 hardcode_into_libs=yes
22676 ;;
22677
22678hpux9* | hpux10* | hpux11*)
22679 # Give a soname corresponding to the major version so that dld.sl refuses to
22680 # link against other versions.
22681 version_type=sunos
22682 need_lib_prefix=no
22683 need_version=no
22684 case "$host_cpu" in
22685 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022686 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022687 hardcode_into_libs=yes
22688 dynamic_linker="$host_os dld.so"
22689 shlibpath_var=LD_LIBRARY_PATH
22690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22692 soname_spec='${libname}${release}${shared_ext}$major'
22693 if test "X$HPUX_IA64_MODE" = X32; then
22694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22695 else
22696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22697 fi
22698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22699 ;;
22700 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022701 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022702 hardcode_into_libs=yes
22703 dynamic_linker="$host_os dld.sl"
22704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22707 soname_spec='${libname}${release}${shared_ext}$major'
22708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22710 ;;
22711 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022712 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022713 dynamic_linker="$host_os dld.sl"
22714 shlibpath_var=SHLIB_PATH
22715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717 soname_spec='${libname}${release}${shared_ext}$major'
22718 ;;
22719 esac
22720 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22721 postinstall_cmds='chmod 555 $lib'
22722 ;;
22723
22724irix5* | irix6* | nonstopux*)
22725 case $host_os in
22726 nonstopux*) version_type=nonstopux ;;
22727 *)
22728 if test "$lt_cv_prog_gnu_ld" = yes; then
22729 version_type=linux
22730 else
22731 version_type=irix
22732 fi ;;
22733 esac
22734 need_lib_prefix=no
22735 need_version=no
22736 soname_spec='${libname}${release}${shared_ext}$major'
22737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22738 case $host_os in
22739 irix5* | nonstopux*)
22740 libsuff= shlibsuff=
22741 ;;
22742 *)
22743 case $LD in # libtool.m4 will add one of these switches to LD
22744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22745 libsuff= shlibsuff= libmagic=32-bit;;
22746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22747 libsuff=32 shlibsuff=N32 libmagic=N32;;
22748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22750 *) libsuff= shlibsuff= libmagic=never-match;;
22751 esac
22752 ;;
22753 esac
22754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22755 shlibpath_overrides_runpath=no
22756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22758 hardcode_into_libs=yes
22759 ;;
22760
22761# No shared lib support for Linux oldld, aout, or coff.
22762linux*oldld* | linux*aout* | linux*coff*)
22763 dynamic_linker=no
22764 ;;
22765
22766# This must be Linux ELF.
22767linux*)
22768 version_type=linux
22769 need_lib_prefix=no
22770 need_version=no
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772 soname_spec='${libname}${release}${shared_ext}$major'
22773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22774 shlibpath_var=LD_LIBRARY_PATH
22775 shlibpath_overrides_runpath=no
22776 # This implies no fast_install, which is unacceptable.
22777 # Some rework will be needed to allow for fast_install
22778 # before this can be enabled.
22779 hardcode_into_libs=yes
22780
Reid Spencer2706f8c2004-09-19 23:53:36 +000022781 # Append ld.so.conf contents to the search path
22782 if test -f /etc/ld.so.conf; then
22783 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22785 fi
22786
John Criswell47fdd832003-07-14 16:52:07 +000022787 # We used to test for /lib/ld.so.1 and disable shared libraries on
22788 # powerpc, because MkLinux only supported shared libraries with the
22789 # GNU dynamic linker. Since this was broken with cross compilers,
22790 # most powerpc-linux boxes support dynamic linking these days and
22791 # people can always --disable-shared, the test was removed, and we
22792 # assume the GNU/Linux dynamic linker is in use.
22793 dynamic_linker='GNU/Linux ld.so'
22794 ;;
22795
Reid Spencer2706f8c2004-09-19 23:53:36 +000022796knetbsd*-gnu)
22797 version_type=linux
22798 need_lib_prefix=no
22799 need_version=no
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801 soname_spec='${libname}${release}${shared_ext}$major'
22802 shlibpath_var=LD_LIBRARY_PATH
22803 shlibpath_overrides_runpath=no
22804 hardcode_into_libs=yes
22805 dynamic_linker='GNU ld.so'
22806 ;;
22807
John Criswell47fdd832003-07-14 16:52:07 +000022808netbsd*)
22809 version_type=sunos
22810 need_lib_prefix=no
22811 need_version=no
22812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22815 dynamic_linker='NetBSD (a.out) ld.so'
22816 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022818 soname_spec='${libname}${release}${shared_ext}$major'
22819 dynamic_linker='NetBSD ld.elf_so'
22820 fi
22821 shlibpath_var=LD_LIBRARY_PATH
22822 shlibpath_overrides_runpath=yes
22823 hardcode_into_libs=yes
22824 ;;
22825
22826newsos6)
22827 version_type=linux
22828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22829 shlibpath_var=LD_LIBRARY_PATH
22830 shlibpath_overrides_runpath=yes
22831 ;;
22832
Reid Spencer2706f8c2004-09-19 23:53:36 +000022833nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022834 version_type=linux
22835 need_lib_prefix=no
22836 need_version=no
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838 soname_spec='${libname}${release}${shared_ext}$major'
22839 shlibpath_var=LD_LIBRARY_PATH
22840 shlibpath_overrides_runpath=yes
22841 ;;
22842
22843openbsd*)
22844 version_type=sunos
22845 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022846 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22851 case $host_os in
22852 openbsd2.[89] | openbsd2.[89].*)
22853 shlibpath_overrides_runpath=no
22854 ;;
22855 *)
22856 shlibpath_overrides_runpath=yes
22857 ;;
22858 esac
22859 else
22860 shlibpath_overrides_runpath=yes
22861 fi
22862 ;;
22863
22864os2*)
22865 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022866 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022867 need_lib_prefix=no
22868 library_names_spec='$libname${shared_ext} $libname.a'
22869 dynamic_linker='OS/2 ld.exe'
22870 shlibpath_var=LIBPATH
22871 ;;
22872
22873osf3* | osf4* | osf5*)
22874 version_type=osf
22875 need_lib_prefix=no
22876 need_version=no
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22881 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22882 ;;
22883
22884sco3.2v5*)
22885 version_type=osf
22886 soname_spec='${libname}${release}${shared_ext}$major'
22887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888 shlibpath_var=LD_LIBRARY_PATH
22889 ;;
22890
22891solaris*)
22892 version_type=linux
22893 need_lib_prefix=no
22894 need_version=no
22895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22896 soname_spec='${libname}${release}${shared_ext}$major'
22897 shlibpath_var=LD_LIBRARY_PATH
22898 shlibpath_overrides_runpath=yes
22899 hardcode_into_libs=yes
22900 # ldd complains unless libraries are executable
22901 postinstall_cmds='chmod +x $lib'
22902 ;;
22903
22904sunos4*)
22905 version_type=sunos
22906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22908 shlibpath_var=LD_LIBRARY_PATH
22909 shlibpath_overrides_runpath=yes
22910 if test "$with_gnu_ld" = yes; then
22911 need_lib_prefix=no
22912 fi
22913 need_version=yes
22914 ;;
22915
22916sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22917 version_type=linux
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919 soname_spec='${libname}${release}${shared_ext}$major'
22920 shlibpath_var=LD_LIBRARY_PATH
22921 case $host_vendor in
22922 sni)
22923 shlibpath_overrides_runpath=no
22924 need_lib_prefix=no
22925 export_dynamic_flag_spec='${wl}-Blargedynsym'
22926 runpath_var=LD_RUN_PATH
22927 ;;
22928 siemens)
22929 need_lib_prefix=no
22930 ;;
22931 motorola)
22932 need_lib_prefix=no
22933 need_version=no
22934 shlibpath_overrides_runpath=no
22935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22936 ;;
22937 esac
22938 ;;
22939
22940sysv4*MP*)
22941 if test -d /usr/nec ;then
22942 version_type=linux
22943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22944 soname_spec='$libname${shared_ext}.$major'
22945 shlibpath_var=LD_LIBRARY_PATH
22946 fi
22947 ;;
22948
22949uts4*)
22950 version_type=linux
22951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952 soname_spec='${libname}${release}${shared_ext}$major'
22953 shlibpath_var=LD_LIBRARY_PATH
22954 ;;
22955
22956*)
22957 dynamic_linker=no
22958 ;;
22959esac
22960echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22961echo "${ECHO_T}$dynamic_linker" >&6
22962test "$dynamic_linker" = no && can_build_shared=no
22963
Reid Spencer2706f8c2004-09-19 23:53:36 +000022964echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22965echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22966hardcode_action_GCJ=
22967if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22968 test -n "$runpath_var_GCJ" || \
22969 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22970
22971 # We can hardcode non-existant directories.
22972 if test "$hardcode_direct_GCJ" != no &&
22973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22974 # have to relink, otherwise we might link with an installed library
22975 # when we should be linking with a yet-to-be-installed one
22976 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22977 test "$hardcode_minus_L_GCJ" != no; then
22978 # Linking always hardcodes the temporary library directory.
22979 hardcode_action_GCJ=relink
22980 else
22981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22982 hardcode_action_GCJ=immediate
22983 fi
22984else
22985 # We cannot hardcode anything, or else we can only hardcode existing
22986 # directories.
22987 hardcode_action_GCJ=unsupported
22988fi
22989echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22990echo "${ECHO_T}$hardcode_action_GCJ" >&6
22991
22992if test "$hardcode_action_GCJ" = relink; then
22993 # Fast installation is not supported
22994 enable_fast_install=no
22995elif test "$shlibpath_overrides_runpath" = yes ||
22996 test "$enable_shared" = no; then
22997 # Fast installation is not necessary
22998 enable_fast_install=needless
22999fi
23000
23001striplib=
23002old_striplib=
23003echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23004echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23005if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23006 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23007 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23008 echo "$as_me:$LINENO: result: yes" >&5
23009echo "${ECHO_T}yes" >&6
23010else
23011# FIXME - insert some real tests, host_os isn't really good enough
23012 case $host_os in
23013 darwin*)
23014 if test -n "$STRIP" ; then
23015 striplib="$STRIP -x"
23016 echo "$as_me:$LINENO: result: yes" >&5
23017echo "${ECHO_T}yes" >&6
23018 else
23019 echo "$as_me:$LINENO: result: no" >&5
23020echo "${ECHO_T}no" >&6
23021fi
23022 ;;
23023 *)
23024 echo "$as_me:$LINENO: result: no" >&5
23025echo "${ECHO_T}no" >&6
23026 ;;
23027 esac
23028fi
23029
John Criswell47fdd832003-07-14 16:52:07 +000023030if test "x$enable_dlopen" != xyes; then
23031 enable_dlopen=unknown
23032 enable_dlopen_self=unknown
23033 enable_dlopen_self_static=unknown
23034else
23035 lt_cv_dlopen=no
23036 lt_cv_dlopen_libs=
23037
23038 case $host_os in
23039 beos*)
23040 lt_cv_dlopen="load_add_on"
23041 lt_cv_dlopen_libs=
23042 lt_cv_dlopen_self=yes
23043 ;;
23044
23045 mingw* | pw32*)
23046 lt_cv_dlopen="LoadLibrary"
23047 lt_cv_dlopen_libs=
23048 ;;
23049
23050 cygwin*)
23051 lt_cv_dlopen="dlopen"
23052 lt_cv_dlopen_libs=
23053 ;;
23054
23055 darwin*)
23056 # if libdl is installed we need to link against it
23057 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23058echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23059if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23061else
23062 ac_check_lib_save_LIBS=$LIBS
23063LIBS="-ldl $LIBS"
23064cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023065/* confdefs.h. */
23066_ACEOF
23067cat confdefs.h >>conftest.$ac_ext
23068cat >>conftest.$ac_ext <<_ACEOF
23069/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023070
23071/* Override any gcc2 internal prototype to avoid an error. */
23072#ifdef __cplusplus
23073extern "C"
23074#endif
23075/* We use char because int might match the return type of a gcc2
23076 builtin and then its argument prototype would still apply. */
23077char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023078int
23079main ()
23080{
23081dlopen ();
23082 ;
23083 return 0;
23084}
23085_ACEOF
23086rm -f conftest.$ac_objext conftest$ac_exeext
23087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023088 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023095 { ac_try='test -z "$ac_c_werror_flag"
23096 || test ! -s conftest.err'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; }; then
23108 ac_cv_lib_dl_dlopen=yes
23109else
23110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023111sed 's/^/| /' conftest.$ac_ext >&5
23112
John Criswell47fdd832003-07-14 16:52:07 +000023113ac_cv_lib_dl_dlopen=no
23114fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023115rm -f conftest.err conftest.$ac_objext \
23116 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023117LIBS=$ac_check_lib_save_LIBS
23118fi
23119echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23120echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23121if test $ac_cv_lib_dl_dlopen = yes; then
23122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23123else
23124
23125 lt_cv_dlopen="dyld"
23126 lt_cv_dlopen_libs=
23127 lt_cv_dlopen_self=yes
23128
23129fi
23130
23131 ;;
23132
23133 *)
23134 echo "$as_me:$LINENO: checking for shl_load" >&5
23135echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23136if test "${ac_cv_func_shl_load+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23138else
23139 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023140/* confdefs.h. */
23141_ACEOF
23142cat confdefs.h >>conftest.$ac_ext
23143cat >>conftest.$ac_ext <<_ACEOF
23144/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023145/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23147#define shl_load innocuous_shl_load
23148
John Criswell47fdd832003-07-14 16:52:07 +000023149/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023150 which can conflict with char shl_load (); below.
23151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23152 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023153
John Criswell0c38eaf2003-09-10 15:17:25 +000023154#ifdef __STDC__
23155# include <limits.h>
23156#else
23157# include <assert.h>
23158#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023159
23160#undef shl_load
23161
John Criswell47fdd832003-07-14 16:52:07 +000023162/* Override any gcc2 internal prototype to avoid an error. */
23163#ifdef __cplusplus
23164extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023165{
John Criswell47fdd832003-07-14 16:52:07 +000023166#endif
23167/* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23169char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023170/* The GNU C library defines this for functions which it implements
23171 to always fail with ENOSYS. Some functions are actually named
23172 something starting with __ and the normal name is an alias. */
23173#if defined (__stub_shl_load) || defined (__stub___shl_load)
23174choke me
23175#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023176char (*f) () = shl_load;
23177#endif
23178#ifdef __cplusplus
23179}
John Criswell47fdd832003-07-14 16:52:07 +000023180#endif
23181
John Criswell0c38eaf2003-09-10 15:17:25 +000023182int
23183main ()
23184{
23185return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023186 ;
23187 return 0;
23188}
23189_ACEOF
23190rm -f conftest.$ac_objext conftest$ac_exeext
23191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023192 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023193 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023194 grep -v '^ *+' conftest.er1 >conftest.err
23195 rm -f conftest.er1
23196 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023199 { ac_try='test -z "$ac_c_werror_flag"
23200 || test ! -s conftest.err'
23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202 (eval $ac_try) 2>&5
23203 ac_status=$?
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; } &&
23206 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23209 ac_status=$?
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; }; then
23212 ac_cv_func_shl_load=yes
23213else
23214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023215sed 's/^/| /' conftest.$ac_ext >&5
23216
John Criswell47fdd832003-07-14 16:52:07 +000023217ac_cv_func_shl_load=no
23218fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023219rm -f conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023221fi
23222echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23223echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23224if test $ac_cv_func_shl_load = yes; then
23225 lt_cv_dlopen="shl_load"
23226else
23227 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23228echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23229if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23231else
23232 ac_check_lib_save_LIBS=$LIBS
23233LIBS="-ldld $LIBS"
23234cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023235/* confdefs.h. */
23236_ACEOF
23237cat confdefs.h >>conftest.$ac_ext
23238cat >>conftest.$ac_ext <<_ACEOF
23239/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023240
23241/* Override any gcc2 internal prototype to avoid an error. */
23242#ifdef __cplusplus
23243extern "C"
23244#endif
23245/* We use char because int might match the return type of a gcc2
23246 builtin and then its argument prototype would still apply. */
23247char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023248int
23249main ()
23250{
23251shl_load ();
23252 ;
23253 return 0;
23254}
23255_ACEOF
23256rm -f conftest.$ac_objext conftest$ac_exeext
23257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023259 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023265 { ac_try='test -z "$ac_c_werror_flag"
23266 || test ! -s conftest.err'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_cv_lib_dld_shl_load=yes
23279else
23280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023281sed 's/^/| /' conftest.$ac_ext >&5
23282
John Criswell47fdd832003-07-14 16:52:07 +000023283ac_cv_lib_dld_shl_load=no
23284fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023285rm -f conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023287LIBS=$ac_check_lib_save_LIBS
23288fi
23289echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23290echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23291if test $ac_cv_lib_dld_shl_load = yes; then
23292 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23293else
23294 echo "$as_me:$LINENO: checking for dlopen" >&5
23295echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23296if test "${ac_cv_func_dlopen+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23298else
23299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023300/* confdefs.h. */
23301_ACEOF
23302cat confdefs.h >>conftest.$ac_ext
23303cat >>conftest.$ac_ext <<_ACEOF
23304/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023305/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23307#define dlopen innocuous_dlopen
23308
John Criswell47fdd832003-07-14 16:52:07 +000023309/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023310 which can conflict with char dlopen (); below.
23311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23312 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023313
John Criswell0c38eaf2003-09-10 15:17:25 +000023314#ifdef __STDC__
23315# include <limits.h>
23316#else
23317# include <assert.h>
23318#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023319
23320#undef dlopen
23321
John Criswell47fdd832003-07-14 16:52:07 +000023322/* Override any gcc2 internal prototype to avoid an error. */
23323#ifdef __cplusplus
23324extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023325{
John Criswell47fdd832003-07-14 16:52:07 +000023326#endif
23327/* We use char because int might match the return type of a gcc2
23328 builtin and then its argument prototype would still apply. */
23329char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023330/* The GNU C library defines this for functions which it implements
23331 to always fail with ENOSYS. Some functions are actually named
23332 something starting with __ and the normal name is an alias. */
23333#if defined (__stub_dlopen) || defined (__stub___dlopen)
23334choke me
23335#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023336char (*f) () = dlopen;
23337#endif
23338#ifdef __cplusplus
23339}
John Criswell47fdd832003-07-14 16:52:07 +000023340#endif
23341
John Criswell0c38eaf2003-09-10 15:17:25 +000023342int
23343main ()
23344{
23345return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023346 ;
23347 return 0;
23348}
23349_ACEOF
23350rm -f conftest.$ac_objext conftest$ac_exeext
23351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023353 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023354 grep -v '^ *+' conftest.er1 >conftest.err
23355 rm -f conftest.er1
23356 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023359 { ac_try='test -z "$ac_c_werror_flag"
23360 || test ! -s conftest.err'
23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362 (eval $ac_try) 2>&5
23363 ac_status=$?
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; } &&
23366 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368 (eval $ac_try) 2>&5
23369 ac_status=$?
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_cv_func_dlopen=yes
23373else
23374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023375sed 's/^/| /' conftest.$ac_ext >&5
23376
John Criswell47fdd832003-07-14 16:52:07 +000023377ac_cv_func_dlopen=no
23378fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023379rm -f conftest.err conftest.$ac_objext \
23380 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023381fi
23382echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23383echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23384if test $ac_cv_func_dlopen = yes; then
23385 lt_cv_dlopen="dlopen"
23386else
23387 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23388echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23389if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23391else
23392 ac_check_lib_save_LIBS=$LIBS
23393LIBS="-ldl $LIBS"
23394cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023395/* confdefs.h. */
23396_ACEOF
23397cat confdefs.h >>conftest.$ac_ext
23398cat >>conftest.$ac_ext <<_ACEOF
23399/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023400
23401/* Override any gcc2 internal prototype to avoid an error. */
23402#ifdef __cplusplus
23403extern "C"
23404#endif
23405/* We use char because int might match the return type of a gcc2
23406 builtin and then its argument prototype would still apply. */
23407char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023408int
23409main ()
23410{
23411dlopen ();
23412 ;
23413 return 0;
23414}
23415_ACEOF
23416rm -f conftest.$ac_objext conftest$ac_exeext
23417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023418 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023420 grep -v '^ *+' conftest.er1 >conftest.err
23421 rm -f conftest.er1
23422 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023425 { ac_try='test -z "$ac_c_werror_flag"
23426 || test ! -s conftest.err'
23427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428 (eval $ac_try) 2>&5
23429 ac_status=$?
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); }; } &&
23432 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23435 ac_status=$?
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; }; then
23438 ac_cv_lib_dl_dlopen=yes
23439else
23440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023441sed 's/^/| /' conftest.$ac_ext >&5
23442
John Criswell47fdd832003-07-14 16:52:07 +000023443ac_cv_lib_dl_dlopen=no
23444fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023445rm -f conftest.err conftest.$ac_objext \
23446 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023447LIBS=$ac_check_lib_save_LIBS
23448fi
23449echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23451if test $ac_cv_lib_dl_dlopen = yes; then
23452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23453else
23454 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23455echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23456if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23458else
23459 ac_check_lib_save_LIBS=$LIBS
23460LIBS="-lsvld $LIBS"
23461cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023462/* confdefs.h. */
23463_ACEOF
23464cat confdefs.h >>conftest.$ac_ext
23465cat >>conftest.$ac_ext <<_ACEOF
23466/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023467
23468/* Override any gcc2 internal prototype to avoid an error. */
23469#ifdef __cplusplus
23470extern "C"
23471#endif
23472/* We use char because int might match the return type of a gcc2
23473 builtin and then its argument prototype would still apply. */
23474char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023475int
23476main ()
23477{
23478dlopen ();
23479 ;
23480 return 0;
23481}
23482_ACEOF
23483rm -f conftest.$ac_objext conftest$ac_exeext
23484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023485 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023486 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023487 grep -v '^ *+' conftest.er1 >conftest.err
23488 rm -f conftest.er1
23489 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023492 { ac_try='test -z "$ac_c_werror_flag"
23493 || test ! -s conftest.err'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_cv_lib_svld_dlopen=yes
23506else
23507 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023508sed 's/^/| /' conftest.$ac_ext >&5
23509
John Criswell47fdd832003-07-14 16:52:07 +000023510ac_cv_lib_svld_dlopen=no
23511fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023512rm -f conftest.err conftest.$ac_objext \
23513 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023514LIBS=$ac_check_lib_save_LIBS
23515fi
23516echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23517echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23518if test $ac_cv_lib_svld_dlopen = yes; then
23519 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23520else
23521 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23522echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23523if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23525else
23526 ac_check_lib_save_LIBS=$LIBS
23527LIBS="-ldld $LIBS"
23528cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023529/* confdefs.h. */
23530_ACEOF
23531cat confdefs.h >>conftest.$ac_ext
23532cat >>conftest.$ac_ext <<_ACEOF
23533/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023534
23535/* Override any gcc2 internal prototype to avoid an error. */
23536#ifdef __cplusplus
23537extern "C"
23538#endif
23539/* We use char because int might match the return type of a gcc2
23540 builtin and then its argument prototype would still apply. */
23541char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023542int
23543main ()
23544{
23545dld_link ();
23546 ;
23547 return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext conftest$ac_exeext
23551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023552 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023553 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023559 { ac_try='test -z "$ac_c_werror_flag"
23560 || test ! -s conftest.err'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_lib_dld_dld_link=yes
23573else
23574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023575sed 's/^/| /' conftest.$ac_ext >&5
23576
John Criswell47fdd832003-07-14 16:52:07 +000023577ac_cv_lib_dld_dld_link=no
23578fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023579rm -f conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023581LIBS=$ac_check_lib_save_LIBS
23582fi
23583echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23584echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23585if test $ac_cv_lib_dld_dld_link = yes; then
23586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23587fi
23588
23589
23590fi
23591
23592
23593fi
23594
23595
23596fi
23597
23598
23599fi
23600
23601
23602fi
23603
23604 ;;
23605 esac
23606
23607 if test "x$lt_cv_dlopen" != xno; then
23608 enable_dlopen=yes
23609 else
23610 enable_dlopen=no
23611 fi
23612
23613 case $lt_cv_dlopen in
23614 dlopen)
23615 save_CPPFLAGS="$CPPFLAGS"
23616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23617
23618 save_LDFLAGS="$LDFLAGS"
23619 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23620
23621 save_LIBS="$LIBS"
23622 LIBS="$lt_cv_dlopen_libs $LIBS"
23623
23624 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23625echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23626if test "${lt_cv_dlopen_self+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628else
23629 if test "$cross_compiling" = yes; then :
23630 lt_cv_dlopen_self=cross
23631else
23632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23633 lt_status=$lt_dlunknown
23634 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000023635#line 23635 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023636#include "confdefs.h"
23637
23638#if HAVE_DLFCN_H
23639#include <dlfcn.h>
23640#endif
23641
23642#include <stdio.h>
23643
23644#ifdef RTLD_GLOBAL
23645# define LT_DLGLOBAL RTLD_GLOBAL
23646#else
23647# ifdef DL_GLOBAL
23648# define LT_DLGLOBAL DL_GLOBAL
23649# else
23650# define LT_DLGLOBAL 0
23651# endif
23652#endif
23653
23654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23655 find out it does not work in some platform. */
23656#ifndef LT_DLLAZY_OR_NOW
23657# ifdef RTLD_LAZY
23658# define LT_DLLAZY_OR_NOW RTLD_LAZY
23659# else
23660# ifdef DL_LAZY
23661# define LT_DLLAZY_OR_NOW DL_LAZY
23662# else
23663# ifdef RTLD_NOW
23664# define LT_DLLAZY_OR_NOW RTLD_NOW
23665# else
23666# ifdef DL_NOW
23667# define LT_DLLAZY_OR_NOW DL_NOW
23668# else
23669# define LT_DLLAZY_OR_NOW 0
23670# endif
23671# endif
23672# endif
23673# endif
23674#endif
23675
23676#ifdef __cplusplus
23677extern "C" void exit (int);
23678#endif
23679
23680void fnord() { int i=42;}
23681int main ()
23682{
23683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23684 int status = $lt_dlunknown;
23685
23686 if (self)
23687 {
23688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23689 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23690 /* dlclose (self); */
23691 }
23692
23693 exit (status);
23694}
23695EOF
23696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23697 (eval $ac_link) 2>&5
23698 ac_status=$?
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23701 (./conftest; exit; ) 2>/dev/null
23702 lt_status=$?
23703 case x$lt_status in
23704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23706 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23707 esac
23708 else :
23709 # compilation failed
23710 lt_cv_dlopen_self=no
23711 fi
23712fi
23713rm -fr conftest*
23714
23715
23716fi
23717echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23718echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23719
23720 if test "x$lt_cv_dlopen_self" = xyes; then
23721 LDFLAGS="$LDFLAGS $link_static_flag"
23722 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23723echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23724if test "${lt_cv_dlopen_self_static+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726else
23727 if test "$cross_compiling" = yes; then :
23728 lt_cv_dlopen_self_static=cross
23729else
23730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23731 lt_status=$lt_dlunknown
23732 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000023733#line 23733 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023734#include "confdefs.h"
23735
23736#if HAVE_DLFCN_H
23737#include <dlfcn.h>
23738#endif
23739
23740#include <stdio.h>
23741
23742#ifdef RTLD_GLOBAL
23743# define LT_DLGLOBAL RTLD_GLOBAL
23744#else
23745# ifdef DL_GLOBAL
23746# define LT_DLGLOBAL DL_GLOBAL
23747# else
23748# define LT_DLGLOBAL 0
23749# endif
23750#endif
23751
23752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23753 find out it does not work in some platform. */
23754#ifndef LT_DLLAZY_OR_NOW
23755# ifdef RTLD_LAZY
23756# define LT_DLLAZY_OR_NOW RTLD_LAZY
23757# else
23758# ifdef DL_LAZY
23759# define LT_DLLAZY_OR_NOW DL_LAZY
23760# else
23761# ifdef RTLD_NOW
23762# define LT_DLLAZY_OR_NOW RTLD_NOW
23763# else
23764# ifdef DL_NOW
23765# define LT_DLLAZY_OR_NOW DL_NOW
23766# else
23767# define LT_DLLAZY_OR_NOW 0
23768# endif
23769# endif
23770# endif
23771# endif
23772#endif
23773
23774#ifdef __cplusplus
23775extern "C" void exit (int);
23776#endif
23777
23778void fnord() { int i=42;}
23779int main ()
23780{
23781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23782 int status = $lt_dlunknown;
23783
23784 if (self)
23785 {
23786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23788 /* dlclose (self); */
23789 }
23790
23791 exit (status);
23792}
23793EOF
23794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23795 (eval $ac_link) 2>&5
23796 ac_status=$?
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23799 (./conftest; exit; ) 2>/dev/null
23800 lt_status=$?
23801 case x$lt_status in
23802 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23803 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23804 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23805 esac
23806 else :
23807 # compilation failed
23808 lt_cv_dlopen_self_static=no
23809 fi
23810fi
23811rm -fr conftest*
23812
23813
23814fi
23815echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23816echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23817 fi
23818
23819 CPPFLAGS="$save_CPPFLAGS"
23820 LDFLAGS="$save_LDFLAGS"
23821 LIBS="$save_LIBS"
23822 ;;
23823 esac
23824
23825 case $lt_cv_dlopen_self in
23826 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23827 *) enable_dlopen_self=unknown ;;
23828 esac
23829
23830 case $lt_cv_dlopen_self_static in
23831 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23832 *) enable_dlopen_self_static=unknown ;;
23833 esac
23834fi
23835
23836
23837# The else clause should only fire when bootstrapping the
23838# libtool distribution, otherwise you forgot to ship ltmain.sh
23839# with your package, and you will get complaints that there are
23840# no rules to generate ltmain.sh.
23841if test -f "$ltmain"; then
23842 # See if we are running on zsh, and set the options which allow our commands through
23843 # without removal of \ escapes.
23844 if test -n "${ZSH_VERSION+set}" ; then
23845 setopt NO_GLOB_SUBST
23846 fi
23847 # Now quote all the things that may contain metacharacters while being
23848 # careful not to overquote the AC_SUBSTed values. We take copies of the
23849 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023850 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23851 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023852 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23853 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23854 deplibs_check_method reload_flag reload_cmds need_locks \
23855 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23856 lt_cv_sys_global_symbol_to_c_name_address \
23857 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23858 old_postinstall_cmds old_postuninstall_cmds \
23859 compiler_GCJ \
23860 CC_GCJ \
23861 LD_GCJ \
23862 lt_prog_compiler_wl_GCJ \
23863 lt_prog_compiler_pic_GCJ \
23864 lt_prog_compiler_static_GCJ \
23865 lt_prog_compiler_no_builtin_flag_GCJ \
23866 export_dynamic_flag_spec_GCJ \
23867 thread_safe_flag_spec_GCJ \
23868 whole_archive_flag_spec_GCJ \
23869 enable_shared_with_static_runtimes_GCJ \
23870 old_archive_cmds_GCJ \
23871 old_archive_from_new_cmds_GCJ \
23872 predep_objects_GCJ \
23873 postdep_objects_GCJ \
23874 predeps_GCJ \
23875 postdeps_GCJ \
23876 compiler_lib_search_path_GCJ \
23877 archive_cmds_GCJ \
23878 archive_expsym_cmds_GCJ \
23879 postinstall_cmds_GCJ \
23880 postuninstall_cmds_GCJ \
23881 old_archive_from_expsyms_cmds_GCJ \
23882 allow_undefined_flag_GCJ \
23883 no_undefined_flag_GCJ \
23884 export_symbols_cmds_GCJ \
23885 hardcode_libdir_flag_spec_GCJ \
23886 hardcode_libdir_flag_spec_ld_GCJ \
23887 hardcode_libdir_separator_GCJ \
23888 hardcode_automatic_GCJ \
23889 module_cmds_GCJ \
23890 module_expsym_cmds_GCJ \
23891 lt_cv_prog_compiler_c_o_GCJ \
23892 exclude_expsyms_GCJ \
23893 include_expsyms_GCJ; do
23894
23895 case $var in
23896 old_archive_cmds_GCJ | \
23897 old_archive_from_new_cmds_GCJ | \
23898 archive_cmds_GCJ | \
23899 archive_expsym_cmds_GCJ | \
23900 module_cmds_GCJ | \
23901 module_expsym_cmds_GCJ | \
23902 old_archive_from_expsyms_cmds_GCJ | \
23903 export_symbols_cmds_GCJ | \
23904 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23905 postinstall_cmds | postuninstall_cmds | \
23906 old_postinstall_cmds | old_postuninstall_cmds | \
23907 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23908 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023909 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 +000023910 ;;
23911 *)
23912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23913 ;;
23914 esac
23915 done
23916
23917 case $lt_echo in
23918 *'\$0 --fallback-echo"')
23919 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23920 ;;
23921 esac
23922
23923cfgfile="$ofile"
23924
23925 cat <<__EOF__ >> "$cfgfile"
23926# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23927
23928# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23929
23930# Shell to use when invoking shell scripts.
23931SHELL=$lt_SHELL
23932
23933# Whether or not to build shared libraries.
23934build_libtool_libs=$enable_shared
23935
23936# Whether or not to build static libraries.
23937build_old_libs=$enable_static
23938
23939# Whether or not to add -lc for building shared libraries.
23940build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23941
23942# Whether or not to disallow shared libs when runtime libs are static
23943allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23944
23945# Whether or not to optimize for fast installation.
23946fast_install=$enable_fast_install
23947
23948# The host system.
23949host_alias=$host_alias
23950host=$host
23951
23952# An echo program that does not interpret backslashes.
23953echo=$lt_echo
23954
23955# The archiver.
23956AR=$lt_AR
23957AR_FLAGS=$lt_AR_FLAGS
23958
23959# A C compiler.
23960LTCC=$lt_LTCC
23961
23962# A language-specific compiler.
23963CC=$lt_compiler_GCJ
23964
23965# Is the compiler the GNU C compiler?
23966with_gcc=$GCC_GCJ
23967
23968# An ERE matcher.
23969EGREP=$lt_EGREP
23970
23971# The linker used to build libraries.
23972LD=$lt_LD_GCJ
23973
23974# Whether we need hard or soft links.
23975LN_S=$lt_LN_S
23976
23977# A BSD-compatible nm program.
23978NM=$lt_NM
23979
23980# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023981STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023982
23983# Used to examine libraries when file_magic_cmd begins "file"
23984MAGIC_CMD=$MAGIC_CMD
23985
23986# Used on cygwin: DLL creation program.
23987DLLTOOL="$DLLTOOL"
23988
23989# Used on cygwin: object dumper.
23990OBJDUMP="$OBJDUMP"
23991
23992# Used on cygwin: assembler.
23993AS="$AS"
23994
23995# The name of the directory that contains temporary libtool files.
23996objdir=$objdir
23997
23998# How to create reloadable object files.
23999reload_flag=$lt_reload_flag
24000reload_cmds=$lt_reload_cmds
24001
24002# How to pass a linker flag through the compiler.
24003wl=$lt_lt_prog_compiler_wl_GCJ
24004
24005# Object file suffix (normally "o").
24006objext="$ac_objext"
24007
24008# Old archive suffix (normally "a").
24009libext="$libext"
24010
24011# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024012shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024013
24014# Executable file suffix (normally "").
24015exeext="$exeext"
24016
24017# Additional compiler flags for building library objects.
24018pic_flag=$lt_lt_prog_compiler_pic_GCJ
24019pic_mode=$pic_mode
24020
24021# What is the maximum length of a command?
24022max_cmd_len=$lt_cv_sys_max_cmd_len
24023
24024# Does compiler simultaneously support -c and -o options?
24025compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24026
24027# Must we lock files when doing compilation ?
24028need_locks=$lt_need_locks
24029
24030# Do we need the lib prefix for modules?
24031need_lib_prefix=$need_lib_prefix
24032
24033# Do we need a version for libraries?
24034need_version=$need_version
24035
24036# Whether dlopen is supported.
24037dlopen_support=$enable_dlopen
24038
24039# Whether dlopen of programs is supported.
24040dlopen_self=$enable_dlopen_self
24041
24042# Whether dlopen of statically linked programs is supported.
24043dlopen_self_static=$enable_dlopen_self_static
24044
24045# Compiler flag to prevent dynamic linking.
24046link_static_flag=$lt_lt_prog_compiler_static_GCJ
24047
24048# Compiler flag to turn off builtin functions.
24049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24050
24051# Compiler flag to allow reflexive dlopens.
24052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24053
24054# Compiler flag to generate shared objects directly from archives.
24055whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24056
24057# Compiler flag to generate thread-safe objects.
24058thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24059
24060# Library versioning type.
24061version_type=$version_type
24062
24063# Format of library name prefix.
24064libname_spec=$lt_libname_spec
24065
24066# List of archive names. First name is the real one, the rest are links.
24067# The last name is the one that the linker finds with -lNAME.
24068library_names_spec=$lt_library_names_spec
24069
24070# The coded name of the library, if different from the real name.
24071soname_spec=$lt_soname_spec
24072
24073# Commands used to build and install an old-style archive.
24074RANLIB=$lt_RANLIB
24075old_archive_cmds=$lt_old_archive_cmds_GCJ
24076old_postinstall_cmds=$lt_old_postinstall_cmds
24077old_postuninstall_cmds=$lt_old_postuninstall_cmds
24078
24079# Create an old-style archive from a shared archive.
24080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24081
24082# Create a temporary old-style archive to link instead of a shared archive.
24083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24084
24085# Commands used to build and install a shared archive.
24086archive_cmds=$lt_archive_cmds_GCJ
24087archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24088postinstall_cmds=$lt_postinstall_cmds
24089postuninstall_cmds=$lt_postuninstall_cmds
24090
24091# Commands used to build a loadable module (assumed same as above if empty)
24092module_cmds=$lt_module_cmds_GCJ
24093module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24094
24095# Commands to strip libraries.
24096old_striplib=$lt_old_striplib
24097striplib=$lt_striplib
24098
24099# Dependencies to place before the objects being linked to create a
24100# shared library.
24101predep_objects=$lt_predep_objects_GCJ
24102
24103# Dependencies to place after the objects being linked to create a
24104# shared library.
24105postdep_objects=$lt_postdep_objects_GCJ
24106
24107# Dependencies to place before the objects being linked to create a
24108# shared library.
24109predeps=$lt_predeps_GCJ
24110
24111# Dependencies to place after the objects being linked to create a
24112# shared library.
24113postdeps=$lt_postdeps_GCJ
24114
24115# The library search path used internally by the compiler when linking
24116# a shared library.
24117compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24118
24119# Method to check whether dependent libraries are shared objects.
24120deplibs_check_method=$lt_deplibs_check_method
24121
24122# Command to use when deplibs_check_method == file_magic.
24123file_magic_cmd=$lt_file_magic_cmd
24124
24125# Flag that allows shared libraries with undefined symbols to be built.
24126allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24127
24128# Flag that forces no undefined symbols.
24129no_undefined_flag=$lt_no_undefined_flag_GCJ
24130
24131# Commands used to finish a libtool library installation in a directory.
24132finish_cmds=$lt_finish_cmds
24133
24134# Same as above, but a single script fragment to be evaled but not shown.
24135finish_eval=$lt_finish_eval
24136
24137# Take the output of nm and produce a listing of raw symbols and C names.
24138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24139
24140# Transform the output of nm in a proper C declaration
24141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24142
24143# Transform the output of nm in a C name address pair
24144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24145
24146# This is the shared library runtime path variable.
24147runpath_var=$runpath_var
24148
24149# This is the shared library path variable.
24150shlibpath_var=$shlibpath_var
24151
24152# Is shlibpath searched before the hard-coded library search path?
24153shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24154
24155# How to hardcode a shared library path into an executable.
24156hardcode_action=$hardcode_action_GCJ
24157
24158# Whether we should hardcode library paths into libraries.
24159hardcode_into_libs=$hardcode_into_libs
24160
24161# Flag to hardcode \$libdir into a binary during linking.
24162# This must work even if \$libdir does not exist.
24163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24164
24165# If ld is used when linking, flag to hardcode \$libdir into
24166# a binary during linking. This must work even if \$libdir does
24167# not exist.
24168hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24169
24170# Whether we need a single -rpath flag with a separated argument.
24171hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24172
24173# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24174# resulting binary.
24175hardcode_direct=$hardcode_direct_GCJ
24176
24177# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24178# resulting binary.
24179hardcode_minus_L=$hardcode_minus_L_GCJ
24180
24181# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24182# the resulting binary.
24183hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24184
24185# Set to yes if building a shared library automatically hardcodes DIR into the library
24186# and all subsequent libraries and executables linked against it.
24187hardcode_automatic=$hardcode_automatic_GCJ
24188
24189# Variables whose values should be saved in libtool wrapper scripts and
24190# restored at relink time.
24191variables_saved_for_relink="$variables_saved_for_relink"
24192
24193# Whether libtool must link a program against all its dependency libraries.
24194link_all_deplibs=$link_all_deplibs_GCJ
24195
24196# Compile-time system search path for libraries
24197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24198
24199# Run-time system search path for libraries
24200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24201
24202# Fix the shell variable \$srcfile for the compiler.
24203fix_srcfile_path="$fix_srcfile_path_GCJ"
24204
24205# Set to yes if exported symbols are required.
24206always_export_symbols=$always_export_symbols_GCJ
24207
24208# The commands to list exported symbols.
24209export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24210
24211# The commands to extract the exported symbol list from a shared archive.
24212extract_expsyms_cmds=$lt_extract_expsyms_cmds
24213
24214# Symbols that should not be listed in the preloaded symbols.
24215exclude_expsyms=$lt_exclude_expsyms_GCJ
24216
24217# Symbols that must always be exported.
24218include_expsyms=$lt_include_expsyms_GCJ
24219
24220# ### END LIBTOOL TAG CONFIG: $tagname
24221
24222__EOF__
24223
24224
24225else
24226 # If there is no Makefile yet, we rely on a make rule to execute
24227 # `config.status --recheck' to rerun these tests and create the
24228 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024229 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24230 if test -f "$ltmain_in"; then
24231 test -f Makefile && make "$ltmain"
24232 fi
John Criswell47fdd832003-07-14 16:52:07 +000024233fi
24234
24235
24236ac_ext=c
24237ac_cpp='$CPP $CPPFLAGS'
24238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24240ac_compiler_gnu=$ac_cv_c_compiler_gnu
24241
24242CC="$lt_save_CC"
24243
24244 else
24245 tagname=""
24246 fi
24247 ;;
24248
24249 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024250 ac_ext=c
24251ac_cpp='$CPP $CPPFLAGS'
24252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24254ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024255
24256
24257# Source file extension for RC test sources.
24258ac_ext=rc
24259
24260# Object file extension for compiled RC test sources.
24261objext=o
24262objext_RC=$objext
24263
24264# Code to be used in simple compile tests
24265lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24266
24267# Code to be used in simple link tests
24268lt_simple_link_test_code="$lt_simple_compile_test_code"
24269
24270# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24271
24272# If no C compiler was specified, use CC.
24273LTCC=${LTCC-"$CC"}
24274
24275# Allow CC to be a program name with arguments.
24276compiler=$CC
24277
24278
24279# Allow CC to be a program name with arguments.
24280lt_save_CC="$CC"
24281CC=${RC-"windres"}
24282compiler=$CC
24283compiler_RC=$CC
24284lt_cv_prog_compiler_c_o_RC=yes
24285
24286# The else clause should only fire when bootstrapping the
24287# libtool distribution, otherwise you forgot to ship ltmain.sh
24288# with your package, and you will get complaints that there are
24289# no rules to generate ltmain.sh.
24290if test -f "$ltmain"; then
24291 # See if we are running on zsh, and set the options which allow our commands through
24292 # without removal of \ escapes.
24293 if test -n "${ZSH_VERSION+set}" ; then
24294 setopt NO_GLOB_SUBST
24295 fi
24296 # Now quote all the things that may contain metacharacters while being
24297 # careful not to overquote the AC_SUBSTed values. We take copies of the
24298 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24300 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24303 deplibs_check_method reload_flag reload_cmds need_locks \
24304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24305 lt_cv_sys_global_symbol_to_c_name_address \
24306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24307 old_postinstall_cmds old_postuninstall_cmds \
24308 compiler_RC \
24309 CC_RC \
24310 LD_RC \
24311 lt_prog_compiler_wl_RC \
24312 lt_prog_compiler_pic_RC \
24313 lt_prog_compiler_static_RC \
24314 lt_prog_compiler_no_builtin_flag_RC \
24315 export_dynamic_flag_spec_RC \
24316 thread_safe_flag_spec_RC \
24317 whole_archive_flag_spec_RC \
24318 enable_shared_with_static_runtimes_RC \
24319 old_archive_cmds_RC \
24320 old_archive_from_new_cmds_RC \
24321 predep_objects_RC \
24322 postdep_objects_RC \
24323 predeps_RC \
24324 postdeps_RC \
24325 compiler_lib_search_path_RC \
24326 archive_cmds_RC \
24327 archive_expsym_cmds_RC \
24328 postinstall_cmds_RC \
24329 postuninstall_cmds_RC \
24330 old_archive_from_expsyms_cmds_RC \
24331 allow_undefined_flag_RC \
24332 no_undefined_flag_RC \
24333 export_symbols_cmds_RC \
24334 hardcode_libdir_flag_spec_RC \
24335 hardcode_libdir_flag_spec_ld_RC \
24336 hardcode_libdir_separator_RC \
24337 hardcode_automatic_RC \
24338 module_cmds_RC \
24339 module_expsym_cmds_RC \
24340 lt_cv_prog_compiler_c_o_RC \
24341 exclude_expsyms_RC \
24342 include_expsyms_RC; do
24343
24344 case $var in
24345 old_archive_cmds_RC | \
24346 old_archive_from_new_cmds_RC | \
24347 archive_cmds_RC | \
24348 archive_expsym_cmds_RC | \
24349 module_cmds_RC | \
24350 module_expsym_cmds_RC | \
24351 old_archive_from_expsyms_cmds_RC | \
24352 export_symbols_cmds_RC | \
24353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24354 postinstall_cmds | postuninstall_cmds | \
24355 old_postinstall_cmds | old_postuninstall_cmds | \
24356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24357 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024358 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 +000024359 ;;
24360 *)
24361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24362 ;;
24363 esac
24364 done
24365
24366 case $lt_echo in
24367 *'\$0 --fallback-echo"')
24368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24369 ;;
24370 esac
24371
24372cfgfile="$ofile"
24373
24374 cat <<__EOF__ >> "$cfgfile"
24375# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24376
24377# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24378
24379# Shell to use when invoking shell scripts.
24380SHELL=$lt_SHELL
24381
24382# Whether or not to build shared libraries.
24383build_libtool_libs=$enable_shared
24384
24385# Whether or not to build static libraries.
24386build_old_libs=$enable_static
24387
24388# Whether or not to add -lc for building shared libraries.
24389build_libtool_need_lc=$archive_cmds_need_lc_RC
24390
24391# Whether or not to disallow shared libs when runtime libs are static
24392allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24393
24394# Whether or not to optimize for fast installation.
24395fast_install=$enable_fast_install
24396
24397# The host system.
24398host_alias=$host_alias
24399host=$host
24400
24401# An echo program that does not interpret backslashes.
24402echo=$lt_echo
24403
24404# The archiver.
24405AR=$lt_AR
24406AR_FLAGS=$lt_AR_FLAGS
24407
24408# A C compiler.
24409LTCC=$lt_LTCC
24410
24411# A language-specific compiler.
24412CC=$lt_compiler_RC
24413
24414# Is the compiler the GNU C compiler?
24415with_gcc=$GCC_RC
24416
24417# An ERE matcher.
24418EGREP=$lt_EGREP
24419
24420# The linker used to build libraries.
24421LD=$lt_LD_RC
24422
24423# Whether we need hard or soft links.
24424LN_S=$lt_LN_S
24425
24426# A BSD-compatible nm program.
24427NM=$lt_NM
24428
24429# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024430STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024431
24432# Used to examine libraries when file_magic_cmd begins "file"
24433MAGIC_CMD=$MAGIC_CMD
24434
24435# Used on cygwin: DLL creation program.
24436DLLTOOL="$DLLTOOL"
24437
24438# Used on cygwin: object dumper.
24439OBJDUMP="$OBJDUMP"
24440
24441# Used on cygwin: assembler.
24442AS="$AS"
24443
24444# The name of the directory that contains temporary libtool files.
24445objdir=$objdir
24446
24447# How to create reloadable object files.
24448reload_flag=$lt_reload_flag
24449reload_cmds=$lt_reload_cmds
24450
24451# How to pass a linker flag through the compiler.
24452wl=$lt_lt_prog_compiler_wl_RC
24453
24454# Object file suffix (normally "o").
24455objext="$ac_objext"
24456
24457# Old archive suffix (normally "a").
24458libext="$libext"
24459
24460# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024461shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024462
24463# Executable file suffix (normally "").
24464exeext="$exeext"
24465
24466# Additional compiler flags for building library objects.
24467pic_flag=$lt_lt_prog_compiler_pic_RC
24468pic_mode=$pic_mode
24469
24470# What is the maximum length of a command?
24471max_cmd_len=$lt_cv_sys_max_cmd_len
24472
24473# Does compiler simultaneously support -c and -o options?
24474compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24475
24476# Must we lock files when doing compilation ?
24477need_locks=$lt_need_locks
24478
24479# Do we need the lib prefix for modules?
24480need_lib_prefix=$need_lib_prefix
24481
24482# Do we need a version for libraries?
24483need_version=$need_version
24484
24485# Whether dlopen is supported.
24486dlopen_support=$enable_dlopen
24487
24488# Whether dlopen of programs is supported.
24489dlopen_self=$enable_dlopen_self
24490
24491# Whether dlopen of statically linked programs is supported.
24492dlopen_self_static=$enable_dlopen_self_static
24493
24494# Compiler flag to prevent dynamic linking.
24495link_static_flag=$lt_lt_prog_compiler_static_RC
24496
24497# Compiler flag to turn off builtin functions.
24498no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24499
24500# Compiler flag to allow reflexive dlopens.
24501export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24502
24503# Compiler flag to generate shared objects directly from archives.
24504whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24505
24506# Compiler flag to generate thread-safe objects.
24507thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24508
24509# Library versioning type.
24510version_type=$version_type
24511
24512# Format of library name prefix.
24513libname_spec=$lt_libname_spec
24514
24515# List of archive names. First name is the real one, the rest are links.
24516# The last name is the one that the linker finds with -lNAME.
24517library_names_spec=$lt_library_names_spec
24518
24519# The coded name of the library, if different from the real name.
24520soname_spec=$lt_soname_spec
24521
24522# Commands used to build and install an old-style archive.
24523RANLIB=$lt_RANLIB
24524old_archive_cmds=$lt_old_archive_cmds_RC
24525old_postinstall_cmds=$lt_old_postinstall_cmds
24526old_postuninstall_cmds=$lt_old_postuninstall_cmds
24527
24528# Create an old-style archive from a shared archive.
24529old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24530
24531# Create a temporary old-style archive to link instead of a shared archive.
24532old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24533
24534# Commands used to build and install a shared archive.
24535archive_cmds=$lt_archive_cmds_RC
24536archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24537postinstall_cmds=$lt_postinstall_cmds
24538postuninstall_cmds=$lt_postuninstall_cmds
24539
24540# Commands used to build a loadable module (assumed same as above if empty)
24541module_cmds=$lt_module_cmds_RC
24542module_expsym_cmds=$lt_module_expsym_cmds_RC
24543
24544# Commands to strip libraries.
24545old_striplib=$lt_old_striplib
24546striplib=$lt_striplib
24547
24548# Dependencies to place before the objects being linked to create a
24549# shared library.
24550predep_objects=$lt_predep_objects_RC
24551
24552# Dependencies to place after the objects being linked to create a
24553# shared library.
24554postdep_objects=$lt_postdep_objects_RC
24555
24556# Dependencies to place before the objects being linked to create a
24557# shared library.
24558predeps=$lt_predeps_RC
24559
24560# Dependencies to place after the objects being linked to create a
24561# shared library.
24562postdeps=$lt_postdeps_RC
24563
24564# The library search path used internally by the compiler when linking
24565# a shared library.
24566compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24567
24568# Method to check whether dependent libraries are shared objects.
24569deplibs_check_method=$lt_deplibs_check_method
24570
24571# Command to use when deplibs_check_method == file_magic.
24572file_magic_cmd=$lt_file_magic_cmd
24573
24574# Flag that allows shared libraries with undefined symbols to be built.
24575allow_undefined_flag=$lt_allow_undefined_flag_RC
24576
24577# Flag that forces no undefined symbols.
24578no_undefined_flag=$lt_no_undefined_flag_RC
24579
24580# Commands used to finish a libtool library installation in a directory.
24581finish_cmds=$lt_finish_cmds
24582
24583# Same as above, but a single script fragment to be evaled but not shown.
24584finish_eval=$lt_finish_eval
24585
24586# Take the output of nm and produce a listing of raw symbols and C names.
24587global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24588
24589# Transform the output of nm in a proper C declaration
24590global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24591
24592# Transform the output of nm in a C name address pair
24593global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24594
24595# This is the shared library runtime path variable.
24596runpath_var=$runpath_var
24597
24598# This is the shared library path variable.
24599shlibpath_var=$shlibpath_var
24600
24601# Is shlibpath searched before the hard-coded library search path?
24602shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24603
24604# How to hardcode a shared library path into an executable.
24605hardcode_action=$hardcode_action_RC
24606
24607# Whether we should hardcode library paths into libraries.
24608hardcode_into_libs=$hardcode_into_libs
24609
24610# Flag to hardcode \$libdir into a binary during linking.
24611# This must work even if \$libdir does not exist.
24612hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24613
24614# If ld is used when linking, flag to hardcode \$libdir into
24615# a binary during linking. This must work even if \$libdir does
24616# not exist.
24617hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24618
24619# Whether we need a single -rpath flag with a separated argument.
24620hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24621
24622# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24623# resulting binary.
24624hardcode_direct=$hardcode_direct_RC
24625
24626# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24627# resulting binary.
24628hardcode_minus_L=$hardcode_minus_L_RC
24629
24630# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24631# the resulting binary.
24632hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24633
24634# Set to yes if building a shared library automatically hardcodes DIR into the library
24635# and all subsequent libraries and executables linked against it.
24636hardcode_automatic=$hardcode_automatic_RC
24637
24638# Variables whose values should be saved in libtool wrapper scripts and
24639# restored at relink time.
24640variables_saved_for_relink="$variables_saved_for_relink"
24641
24642# Whether libtool must link a program against all its dependency libraries.
24643link_all_deplibs=$link_all_deplibs_RC
24644
24645# Compile-time system search path for libraries
24646sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24647
24648# Run-time system search path for libraries
24649sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24650
24651# Fix the shell variable \$srcfile for the compiler.
24652fix_srcfile_path="$fix_srcfile_path_RC"
24653
24654# Set to yes if exported symbols are required.
24655always_export_symbols=$always_export_symbols_RC
24656
24657# The commands to list exported symbols.
24658export_symbols_cmds=$lt_export_symbols_cmds_RC
24659
24660# The commands to extract the exported symbol list from a shared archive.
24661extract_expsyms_cmds=$lt_extract_expsyms_cmds
24662
24663# Symbols that should not be listed in the preloaded symbols.
24664exclude_expsyms=$lt_exclude_expsyms_RC
24665
24666# Symbols that must always be exported.
24667include_expsyms=$lt_include_expsyms_RC
24668
24669# ### END LIBTOOL TAG CONFIG: $tagname
24670
24671__EOF__
24672
24673
24674else
24675 # If there is no Makefile yet, we rely on a make rule to execute
24676 # `config.status --recheck' to rerun these tests and create the
24677 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024678 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24679 if test -f "$ltmain_in"; then
24680 test -f Makefile && make "$ltmain"
24681 fi
John Criswell47fdd832003-07-14 16:52:07 +000024682fi
24683
24684
24685ac_ext=c
24686ac_cpp='$CPP $CPPFLAGS'
24687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24689ac_compiler_gnu=$ac_cv_c_compiler_gnu
24690
24691CC="$lt_save_CC"
24692
24693 ;;
24694
24695 *)
24696 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24697echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24698 { (exit 1); exit 1; }; }
24699 ;;
24700 esac
24701
24702 # Append the new tag name to the list of available tags.
24703 if test -n "$tagname" ; then
24704 available_tags="$available_tags $tagname"
24705 fi
24706 fi
24707 done
24708 IFS="$lt_save_ifs"
24709
24710 # Now substitute the updated list of available tags.
24711 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24712 mv "${ofile}T" "$ofile"
24713 chmod +x "$ofile"
24714 else
24715 rm -f "${ofile}T"
24716 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24717echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24718 { (exit 1); exit 1; }; }
24719 fi
24720fi
John Criswell7a73b802003-06-30 21:59:07 +000024721
24722
24723
24724# This can be used to rebuild libtool when needed
24725LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24726
24727# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024728LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024729
24730# Prevent multiple expansion
24731
24732
24733
John Criswell47fdd832003-07-14 16:52:07 +000024734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024751
Reid Spencer582a23c2004-12-29 07:07:57 +000024752if test "$lt_cv_dlopen_self" = "yes" ; then
24753
24754cat >>confdefs.h <<\_ACEOF
24755#define CAN_DLOPEN_SELF 1
24756_ACEOF
24757
24758fi
24759
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024760etags_version=`$ETAGS --version 2>&1`
24761case "$etags_version" in
24762 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24763 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24764 *) ETAGSFLAGS="" ;;
24765esac
24766ETAGSFLAGS=$ETAGSFLAGS
24767
24768
Reid Spencer7931a782004-12-27 06:15:02 +000024769if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024770 LLVMGCC="llvm-gcc${EXEEXT}"
24771 LLVMGXX="llvm-g++${EXEEXT}"
24772 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24773set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024774echo "$as_me:$LINENO: checking for $ac_word" >&5
24775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24776if test "${ac_cv_path_LLVMGCC+set}" = set; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24778else
24779 case $LLVMGCC in
24780 [\\/]* | ?:[\\/]*)
24781 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24782 ;;
24783 *)
24784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24785for as_dir in $PATH
24786do
24787 IFS=$as_save_IFS
24788 test -z "$as_dir" && as_dir=.
24789 for ac_exec_ext in '' $ac_executable_extensions; do
24790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24791 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24793 break 2
24794 fi
24795done
24796done
24797
Reid Spencer59473af2004-12-25 07:31:29 +000024798 ;;
24799esac
24800fi
24801LLVMGCC=$ac_cv_path_LLVMGCC
24802
24803if test -n "$LLVMGCC"; then
24804 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24805echo "${ECHO_T}$LLVMGCC" >&6
24806else
24807 echo "$as_me:$LINENO: result: no" >&5
24808echo "${ECHO_T}no" >&6
24809fi
24810
Reid Spencerc84492c2005-06-02 22:34:49 +000024811 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24812set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024813echo "$as_me:$LINENO: checking for $ac_word" >&5
24814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24815if test "${ac_cv_path_LLVMGXX+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24817else
24818 case $LLVMGXX in
24819 [\\/]* | ?:[\\/]*)
24820 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24821 ;;
24822 *)
24823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24824for as_dir in $PATH
24825do
24826 IFS=$as_save_IFS
24827 test -z "$as_dir" && as_dir=.
24828 for ac_exec_ext in '' $ac_executable_extensions; do
24829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24830 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24832 break 2
24833 fi
24834done
24835done
24836
Reid Spencer59473af2004-12-25 07:31:29 +000024837 ;;
24838esac
24839fi
24840LLVMGXX=$ac_cv_path_LLVMGXX
24841
24842if test -n "$LLVMGXX"; then
24843 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24844echo "${ECHO_T}$LLVMGXX" >&6
24845else
24846 echo "$as_me:$LINENO: result: no" >&5
24847echo "${ECHO_T}no" >&6
24848fi
24849
24850else
Reid Spencerc84492c2005-06-02 22:34:49 +000024851 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24852 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024853 LLVMGCC=$LLVMGCC
24854
24855 LLVMGXX=$LLVMGXX
24856
24857fi
24858
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024859echo "$as_me:$LINENO: checking tool compatibility" >&5
24860echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24861
Reid Spencer86901802004-12-08 23:07:27 +000024862ICC=no
24863IXX=no
24864case $CC in
24865 icc*|icpc*)
24866 ICC=yes
24867 IXX=yes
24868 ;;
24869 *)
24870 ;;
24871esac
24872
24873if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024874then
Reid Spencer86901802004-12-08 23:07:27 +000024875 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24876echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024877 { (exit 1); exit 1; }; }
24878fi
24879
Reid Spencer86901802004-12-08 23:07:27 +000024880if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024881then
Reid Spencer86901802004-12-08 23:07:27 +000024882 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24883echo "$as_me: error: g++|icc required but not found" >&2;}
24884 { (exit 1); exit 1; }; }
24885fi
24886
24887if test "$GCC" = "yes"
24888then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000024889 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000024890 if test "$gccmajor" -lt "3"
24891 then
24892 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024893echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24894 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024895 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024896fi
24897
24898if test -z "$llvm_cv_gnu_make_command"
24899then
24900 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24901echo "$as_me: error: GNU Make required but not found" >&2;}
24902 { (exit 1); exit 1; }; }
24903fi
24904
24905echo "$as_me:$LINENO: result: ok" >&5
24906echo "${ECHO_T}ok" >&6
24907
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024908
John Criswell7a73b802003-06-30 21:59:07 +000024909
John Criswell7a73b802003-06-30 21:59:07 +000024910echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24911echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24912if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24914else
24915 ac_check_lib_save_LIBS=$LIBS
24916LIBS="-lelf $LIBS"
24917cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024918/* confdefs.h. */
24919_ACEOF
24920cat confdefs.h >>conftest.$ac_ext
24921cat >>conftest.$ac_ext <<_ACEOF
24922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024923
24924/* Override any gcc2 internal prototype to avoid an error. */
24925#ifdef __cplusplus
24926extern "C"
24927#endif
24928/* We use char because int might match the return type of a gcc2
24929 builtin and then its argument prototype would still apply. */
24930char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024931int
24932main ()
24933{
24934elf_begin ();
24935 ;
24936 return 0;
24937}
24938_ACEOF
24939rm -f conftest.$ac_objext conftest$ac_exeext
24940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024941 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024943 grep -v '^ *+' conftest.er1 >conftest.err
24944 rm -f conftest.er1
24945 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024948 { ac_try='test -z "$ac_c_werror_flag"
24949 || test ! -s conftest.err'
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24958 ac_status=$?
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ac_cv_lib_elf_elf_begin=yes
24962else
24963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024964sed 's/^/| /' conftest.$ac_ext >&5
24965
John Criswell7a73b802003-06-30 21:59:07 +000024966ac_cv_lib_elf_elf_begin=no
24967fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024968rm -f conftest.err conftest.$ac_objext \
24969 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024970LIBS=$ac_check_lib_save_LIBS
24971fi
24972echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24973echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24974if test $ac_cv_lib_elf_elf_begin = yes; then
24975 cat >>confdefs.h <<_ACEOF
24976#define HAVE_LIBELF 1
24977_ACEOF
24978
24979 LIBS="-lelf $LIBS"
24980
24981fi
24982
24983
Reid Spencer22177fe2005-07-12 15:24:20 +000024984
Reid Spencer17795972004-11-18 09:47:37 +000024985echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24986echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24987if test "${ac_cv_search_lt_dlopen+set}" = set; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
24989else
24990 ac_func_search_save_LIBS=$LIBS
24991ac_cv_search_lt_dlopen=no
24992cat >conftest.$ac_ext <<_ACEOF
24993/* confdefs.h. */
24994_ACEOF
24995cat confdefs.h >>conftest.$ac_ext
24996cat >>conftest.$ac_ext <<_ACEOF
24997/* end confdefs.h. */
24998
24999/* Override any gcc2 internal prototype to avoid an error. */
25000#ifdef __cplusplus
25001extern "C"
25002#endif
25003/* We use char because int might match the return type of a gcc2
25004 builtin and then its argument prototype would still apply. */
25005char lt_dlopen ();
25006int
25007main ()
25008{
25009lt_dlopen ();
25010 ;
25011 return 0;
25012}
25013_ACEOF
25014rm -f conftest.$ac_objext conftest$ac_exeext
25015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25016 (eval $ac_link) 2>conftest.er1
25017 ac_status=$?
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
25023 { ac_try='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest$ac_exeext'
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_cv_search_lt_dlopen="none required"
25037else
25038 echo "$as_me: failed program was:" >&5
25039sed 's/^/| /' conftest.$ac_ext >&5
25040
25041fi
25042rm -f conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
25044if test "$ac_cv_search_lt_dlopen" = no; then
25045 for ac_lib in ltdl; do
25046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25047 cat >conftest.$ac_ext <<_ACEOF
25048/* confdefs.h. */
25049_ACEOF
25050cat confdefs.h >>conftest.$ac_ext
25051cat >>conftest.$ac_ext <<_ACEOF
25052/* end confdefs.h. */
25053
25054/* Override any gcc2 internal prototype to avoid an error. */
25055#ifdef __cplusplus
25056extern "C"
25057#endif
25058/* We use char because int might match the return type of a gcc2
25059 builtin and then its argument prototype would still apply. */
25060char lt_dlopen ();
25061int
25062main ()
25063{
25064lt_dlopen ();
25065 ;
25066 return 0;
25067}
25068_ACEOF
25069rm -f conftest.$ac_objext conftest$ac_exeext
25070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25071 (eval $ac_link) 2>conftest.er1
25072 ac_status=$?
25073 grep -v '^ *+' conftest.er1 >conftest.err
25074 rm -f conftest.er1
25075 cat conftest.err >&5
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); } &&
25078 { ac_try='test -z "$ac_c_werror_flag"
25079 || test ! -s conftest.err'
25080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25081 (eval $ac_try) 2>&5
25082 ac_status=$?
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); }; } &&
25085 { ac_try='test -s conftest$ac_exeext'
25086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087 (eval $ac_try) 2>&5
25088 ac_status=$?
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); }; }; then
25091 ac_cv_search_lt_dlopen="-l$ac_lib"
25092break
25093else
25094 echo "$as_me: failed program was:" >&5
25095sed 's/^/| /' conftest.$ac_ext >&5
25096
25097fi
25098rm -f conftest.err conftest.$ac_objext \
25099 conftest$ac_exeext conftest.$ac_ext
25100 done
25101fi
25102LIBS=$ac_func_search_save_LIBS
25103fi
25104echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25105echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25106if test "$ac_cv_search_lt_dlopen" != no; then
25107 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25108
25109cat >>confdefs.h <<\_ACEOF
25110#define HAVE_LT_DLOPEN 1
25111_ACEOF
25112
25113else
25114 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25115 not be available" >&5
25116echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25117 not be available" >&2;}
25118fi
25119
25120
John Criswell7a73b802003-06-30 21:59:07 +000025121echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25122echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25123if test "${ac_cv_search_dlopen+set}" = set; then
25124 echo $ECHO_N "(cached) $ECHO_C" >&6
25125else
25126 ac_func_search_save_LIBS=$LIBS
25127ac_cv_search_dlopen=no
25128cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025129/* confdefs.h. */
25130_ACEOF
25131cat confdefs.h >>conftest.$ac_ext
25132cat >>conftest.$ac_ext <<_ACEOF
25133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025134
25135/* Override any gcc2 internal prototype to avoid an error. */
25136#ifdef __cplusplus
25137extern "C"
25138#endif
25139/* We use char because int might match the return type of a gcc2
25140 builtin and then its argument prototype would still apply. */
25141char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025142int
25143main ()
25144{
25145dlopen ();
25146 ;
25147 return 0;
25148}
25149_ACEOF
25150rm -f conftest.$ac_objext conftest$ac_exeext
25151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025152 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025153 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025154 grep -v '^ *+' conftest.er1 >conftest.err
25155 rm -f conftest.er1
25156 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025159 { ac_try='test -z "$ac_c_werror_flag"
25160 || test ! -s conftest.err'
25161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); }; } &&
25166 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25168 (eval $ac_try) 2>&5
25169 ac_status=$?
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); }; }; then
25172 ac_cv_search_dlopen="none required"
25173else
25174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025175sed 's/^/| /' conftest.$ac_ext >&5
25176
John Criswell7a73b802003-06-30 21:59:07 +000025177fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025178rm -f conftest.err conftest.$ac_objext \
25179 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025180if test "$ac_cv_search_dlopen" = no; then
25181 for ac_lib in dl; do
25182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025184/* confdefs.h. */
25185_ACEOF
25186cat confdefs.h >>conftest.$ac_ext
25187cat >>conftest.$ac_ext <<_ACEOF
25188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025189
25190/* Override any gcc2 internal prototype to avoid an error. */
25191#ifdef __cplusplus
25192extern "C"
25193#endif
25194/* We use char because int might match the return type of a gcc2
25195 builtin and then its argument prototype would still apply. */
25196char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025197int
25198main ()
25199{
25200dlopen ();
25201 ;
25202 return 0;
25203}
25204_ACEOF
25205rm -f conftest.$ac_objext conftest$ac_exeext
25206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025207 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025208 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025209 grep -v '^ *+' conftest.er1 >conftest.err
25210 rm -f conftest.er1
25211 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025214 { ac_try='test -z "$ac_c_werror_flag"
25215 || test ! -s conftest.err'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; } &&
25221 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); }; }; then
25227 ac_cv_search_dlopen="-l$ac_lib"
25228break
25229else
25230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025231sed 's/^/| /' conftest.$ac_ext >&5
25232
John Criswell7a73b802003-06-30 21:59:07 +000025233fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025234rm -f conftest.err conftest.$ac_objext \
25235 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025236 done
25237fi
25238LIBS=$ac_func_search_save_LIBS
25239fi
25240echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25241echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25242if test "$ac_cv_search_dlopen" != no; then
25243 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025244
25245cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025246#define HAVE_DLOPEN 1
25247_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025248
25249else
Brian Gaekec45be042003-10-07 06:01:34 +000025250 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25251echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025252fi
25253
25254
25255echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25256echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25257if test "${ac_cv_search_mallinfo+set}" = set; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
25259else
25260 ac_func_search_save_LIBS=$LIBS
25261ac_cv_search_mallinfo=no
25262cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025263/* confdefs.h. */
25264_ACEOF
25265cat confdefs.h >>conftest.$ac_ext
25266cat >>conftest.$ac_ext <<_ACEOF
25267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025268
25269/* Override any gcc2 internal prototype to avoid an error. */
25270#ifdef __cplusplus
25271extern "C"
25272#endif
25273/* We use char because int might match the return type of a gcc2
25274 builtin and then its argument prototype would still apply. */
25275char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025276int
25277main ()
25278{
25279mallinfo ();
25280 ;
25281 return 0;
25282}
25283_ACEOF
25284rm -f conftest.$ac_objext conftest$ac_exeext
25285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025286 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025288 grep -v '^ *+' conftest.er1 >conftest.err
25289 rm -f conftest.er1
25290 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025293 { ac_try='test -z "$ac_c_werror_flag"
25294 || test ! -s conftest.err'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25297 ac_status=$?
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; } &&
25300 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); }; }; then
25306 ac_cv_search_mallinfo="none required"
25307else
25308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025309sed 's/^/| /' conftest.$ac_ext >&5
25310
John Criswell7a73b802003-06-30 21:59:07 +000025311fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025312rm -f conftest.err conftest.$ac_objext \
25313 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025314if test "$ac_cv_search_mallinfo" = no; then
25315 for ac_lib in malloc; do
25316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25317 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025318/* confdefs.h. */
25319_ACEOF
25320cat confdefs.h >>conftest.$ac_ext
25321cat >>conftest.$ac_ext <<_ACEOF
25322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025323
25324/* Override any gcc2 internal prototype to avoid an error. */
25325#ifdef __cplusplus
25326extern "C"
25327#endif
25328/* We use char because int might match the return type of a gcc2
25329 builtin and then its argument prototype would still apply. */
25330char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025331int
25332main ()
25333{
25334mallinfo ();
25335 ;
25336 return 0;
25337}
25338_ACEOF
25339rm -f conftest.$ac_objext conftest$ac_exeext
25340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025341 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025343 grep -v '^ *+' conftest.er1 >conftest.err
25344 rm -f conftest.er1
25345 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025348 { ac_try='test -z "$ac_c_werror_flag"
25349 || test ! -s conftest.err'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; } &&
25355 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357 (eval $ac_try) 2>&5
25358 ac_status=$?
25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); }; }; then
25361 ac_cv_search_mallinfo="-l$ac_lib"
25362break
25363else
25364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025365sed 's/^/| /' conftest.$ac_ext >&5
25366
John Criswell7a73b802003-06-30 21:59:07 +000025367fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025368rm -f conftest.err conftest.$ac_objext \
25369 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025370 done
25371fi
25372LIBS=$ac_func_search_save_LIBS
25373fi
25374echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25375echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25376if test "$ac_cv_search_mallinfo" != no; then
25377 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025378
25379cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025380#define HAVE_MALLINFO 1
25381_ACEOF
25382
25383fi
25384
25385
Reid Spencer0a262ba2005-08-24 10:07:20 +000025386if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025387
25388echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25389echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25390if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25391 echo $ECHO_N "(cached) $ECHO_C" >&6
25392else
25393 ac_check_lib_save_LIBS=$LIBS
25394LIBS="-lpthread $LIBS"
25395cat >conftest.$ac_ext <<_ACEOF
25396/* confdefs.h. */
25397_ACEOF
25398cat confdefs.h >>conftest.$ac_ext
25399cat >>conftest.$ac_ext <<_ACEOF
25400/* end confdefs.h. */
25401
25402/* Override any gcc2 internal prototype to avoid an error. */
25403#ifdef __cplusplus
25404extern "C"
25405#endif
25406/* We use char because int might match the return type of a gcc2
25407 builtin and then its argument prototype would still apply. */
25408char pthread_mutex_init ();
25409int
25410main ()
25411{
25412pthread_mutex_init ();
25413 ;
25414 return 0;
25415}
25416_ACEOF
25417rm -f conftest.$ac_objext conftest$ac_exeext
25418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25419 (eval $ac_link) 2>conftest.er1
25420 ac_status=$?
25421 grep -v '^ *+' conftest.er1 >conftest.err
25422 rm -f conftest.er1
25423 cat conftest.err >&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); } &&
25426 { ac_try='test -z "$ac_c_werror_flag"
25427 || test ! -s conftest.err'
25428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; } &&
25433 { ac_try='test -s conftest$ac_exeext'
25434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); }; }; then
25439 ac_cv_lib_pthread_pthread_mutex_init=yes
25440else
25441 echo "$as_me: failed program was:" >&5
25442sed 's/^/| /' conftest.$ac_ext >&5
25443
25444ac_cv_lib_pthread_pthread_mutex_init=no
25445fi
25446rm -f conftest.err conftest.$ac_objext \
25447 conftest$ac_exeext conftest.$ac_ext
25448LIBS=$ac_check_lib_save_LIBS
25449fi
25450echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25451echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25452if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25453 cat >>confdefs.h <<_ACEOF
25454#define HAVE_LIBPTHREAD 1
25455_ACEOF
25456
25457 LIBS="-lpthread $LIBS"
25458
25459fi
25460
Reid Spencer0a262ba2005-08-24 10:07:20 +000025461 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025462echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25463if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25464 echo $ECHO_N "(cached) $ECHO_C" >&6
25465else
25466 ac_func_search_save_LIBS=$LIBS
25467ac_cv_search_pthread_mutex_lock=no
25468cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025469/* confdefs.h. */
25470_ACEOF
25471cat confdefs.h >>conftest.$ac_ext
25472cat >>conftest.$ac_ext <<_ACEOF
25473/* end confdefs.h. */
25474
25475/* Override any gcc2 internal prototype to avoid an error. */
25476#ifdef __cplusplus
25477extern "C"
25478#endif
25479/* We use char because int might match the return type of a gcc2
25480 builtin and then its argument prototype would still apply. */
25481char pthread_mutex_lock ();
25482int
25483main ()
25484{
25485pthread_mutex_lock ();
25486 ;
25487 return 0;
25488}
25489_ACEOF
25490rm -f conftest.$ac_objext conftest$ac_exeext
25491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025492 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025494 grep -v '^ *+' conftest.er1 >conftest.err
25495 rm -f conftest.er1
25496 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025499 { ac_try='test -z "$ac_c_werror_flag"
25500 || test ! -s conftest.err'
25501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502 (eval $ac_try) 2>&5
25503 ac_status=$?
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); }; } &&
25506 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 ac_cv_search_pthread_mutex_lock="none required"
25513else
25514 echo "$as_me: failed program was:" >&5
25515sed 's/^/| /' conftest.$ac_ext >&5
25516
25517fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025518rm -f conftest.err conftest.$ac_objext \
25519 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025520if test "$ac_cv_search_pthread_mutex_lock" = no; then
25521 for ac_lib in pthread; do
25522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25523 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025524/* confdefs.h. */
25525_ACEOF
25526cat confdefs.h >>conftest.$ac_ext
25527cat >>conftest.$ac_ext <<_ACEOF
25528/* end confdefs.h. */
25529
25530/* Override any gcc2 internal prototype to avoid an error. */
25531#ifdef __cplusplus
25532extern "C"
25533#endif
25534/* We use char because int might match the return type of a gcc2
25535 builtin and then its argument prototype would still apply. */
25536char pthread_mutex_lock ();
25537int
25538main ()
25539{
25540pthread_mutex_lock ();
25541 ;
25542 return 0;
25543}
25544_ACEOF
25545rm -f conftest.$ac_objext conftest$ac_exeext
25546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025547 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025549 grep -v '^ *+' conftest.er1 >conftest.err
25550 rm -f conftest.er1
25551 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025554 { ac_try='test -z "$ac_c_werror_flag"
25555 || test ! -s conftest.err'
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; } &&
25561 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; }; then
25567 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25568break
25569else
25570 echo "$as_me: failed program was:" >&5
25571sed 's/^/| /' conftest.$ac_ext >&5
25572
25573fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025574rm -f conftest.err conftest.$ac_objext \
25575 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025576 done
25577fi
25578LIBS=$ac_func_search_save_LIBS
25579fi
25580echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25581echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25582if test "$ac_cv_search_pthread_mutex_lock" != no; then
25583 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025584
John Criswell40468462004-09-24 21:19:06 +000025585cat >>confdefs.h <<\_ACEOF
25586#define HAVE_PTHREAD_MUTEX_LOCK 1
25587_ACEOF
25588
25589fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025590
Reid Spencer0a262ba2005-08-24 10:07:20 +000025591fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025592
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025593
Reid Spencer59473af2004-12-25 07:31:29 +000025594
25595
25596
25597
25598
25599ac_header_dirent=no
25600for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25601 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25602echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25603echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25604if eval "test \"\${$as_ac_Header+set}\" = set"; then
25605 echo $ECHO_N "(cached) $ECHO_C" >&6
25606else
25607 cat >conftest.$ac_ext <<_ACEOF
25608/* confdefs.h. */
25609_ACEOF
25610cat confdefs.h >>conftest.$ac_ext
25611cat >>conftest.$ac_ext <<_ACEOF
25612/* end confdefs.h. */
25613#include <sys/types.h>
25614#include <$ac_hdr>
25615
25616int
25617main ()
25618{
25619if ((DIR *) 0)
25620return 0;
25621 ;
25622 return 0;
25623}
25624_ACEOF
25625rm -f conftest.$ac_objext
25626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25627 (eval $ac_compile) 2>conftest.er1
25628 ac_status=$?
25629 grep -v '^ *+' conftest.er1 >conftest.err
25630 rm -f conftest.er1
25631 cat conftest.err >&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); } &&
25634 { ac_try='test -z "$ac_c_werror_flag"
25635 || test ! -s conftest.err'
25636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25637 (eval $ac_try) 2>&5
25638 ac_status=$?
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); }; } &&
25641 { ac_try='test -s conftest.$ac_objext'
25642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25643 (eval $ac_try) 2>&5
25644 ac_status=$?
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); }; }; then
25647 eval "$as_ac_Header=yes"
25648else
25649 echo "$as_me: failed program was:" >&5
25650sed 's/^/| /' conftest.$ac_ext >&5
25651
25652eval "$as_ac_Header=no"
25653fi
25654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25655fi
25656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25658if test `eval echo '${'$as_ac_Header'}'` = yes; then
25659 cat >>confdefs.h <<_ACEOF
25660#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25661_ACEOF
25662
25663ac_header_dirent=$ac_hdr; break
25664fi
25665
25666done
25667# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25668if test $ac_header_dirent = dirent.h; then
25669 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25670echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25671if test "${ac_cv_search_opendir+set}" = set; then
25672 echo $ECHO_N "(cached) $ECHO_C" >&6
25673else
25674 ac_func_search_save_LIBS=$LIBS
25675ac_cv_search_opendir=no
25676cat >conftest.$ac_ext <<_ACEOF
25677/* confdefs.h. */
25678_ACEOF
25679cat confdefs.h >>conftest.$ac_ext
25680cat >>conftest.$ac_ext <<_ACEOF
25681/* end confdefs.h. */
25682
25683/* Override any gcc2 internal prototype to avoid an error. */
25684#ifdef __cplusplus
25685extern "C"
25686#endif
25687/* We use char because int might match the return type of a gcc2
25688 builtin and then its argument prototype would still apply. */
25689char opendir ();
25690int
25691main ()
25692{
25693opendir ();
25694 ;
25695 return 0;
25696}
25697_ACEOF
25698rm -f conftest.$ac_objext conftest$ac_exeext
25699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25700 (eval $ac_link) 2>conftest.er1
25701 ac_status=$?
25702 grep -v '^ *+' conftest.er1 >conftest.err
25703 rm -f conftest.er1
25704 cat conftest.err >&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } &&
25707 { ac_try='test -z "$ac_c_werror_flag"
25708 || test ! -s conftest.err'
25709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710 (eval $ac_try) 2>&5
25711 ac_status=$?
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); }; } &&
25714 { ac_try='test -s conftest$ac_exeext'
25715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716 (eval $ac_try) 2>&5
25717 ac_status=$?
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 ac_cv_search_opendir="none required"
25721else
25722 echo "$as_me: failed program was:" >&5
25723sed 's/^/| /' conftest.$ac_ext >&5
25724
25725fi
25726rm -f conftest.err conftest.$ac_objext \
25727 conftest$ac_exeext conftest.$ac_ext
25728if test "$ac_cv_search_opendir" = no; then
25729 for ac_lib in dir; do
25730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25731 cat >conftest.$ac_ext <<_ACEOF
25732/* confdefs.h. */
25733_ACEOF
25734cat confdefs.h >>conftest.$ac_ext
25735cat >>conftest.$ac_ext <<_ACEOF
25736/* end confdefs.h. */
25737
25738/* Override any gcc2 internal prototype to avoid an error. */
25739#ifdef __cplusplus
25740extern "C"
25741#endif
25742/* We use char because int might match the return type of a gcc2
25743 builtin and then its argument prototype would still apply. */
25744char opendir ();
25745int
25746main ()
25747{
25748opendir ();
25749 ;
25750 return 0;
25751}
25752_ACEOF
25753rm -f conftest.$ac_objext conftest$ac_exeext
25754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25755 (eval $ac_link) 2>conftest.er1
25756 ac_status=$?
25757 grep -v '^ *+' conftest.er1 >conftest.err
25758 rm -f conftest.er1
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } &&
25762 { ac_try='test -z "$ac_c_werror_flag"
25763 || test ! -s conftest.err'
25764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25765 (eval $ac_try) 2>&5
25766 ac_status=$?
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); }; } &&
25769 { ac_try='test -s conftest$ac_exeext'
25770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; }; then
25775 ac_cv_search_opendir="-l$ac_lib"
25776break
25777else
25778 echo "$as_me: failed program was:" >&5
25779sed 's/^/| /' conftest.$ac_ext >&5
25780
25781fi
25782rm -f conftest.err conftest.$ac_objext \
25783 conftest$ac_exeext conftest.$ac_ext
25784 done
25785fi
25786LIBS=$ac_func_search_save_LIBS
25787fi
25788echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25789echo "${ECHO_T}$ac_cv_search_opendir" >&6
25790if test "$ac_cv_search_opendir" != no; then
25791 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25792
25793fi
25794
25795else
25796 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25797echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25798if test "${ac_cv_search_opendir+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25800else
25801 ac_func_search_save_LIBS=$LIBS
25802ac_cv_search_opendir=no
25803cat >conftest.$ac_ext <<_ACEOF
25804/* confdefs.h. */
25805_ACEOF
25806cat confdefs.h >>conftest.$ac_ext
25807cat >>conftest.$ac_ext <<_ACEOF
25808/* end confdefs.h. */
25809
25810/* Override any gcc2 internal prototype to avoid an error. */
25811#ifdef __cplusplus
25812extern "C"
25813#endif
25814/* We use char because int might match the return type of a gcc2
25815 builtin and then its argument prototype would still apply. */
25816char opendir ();
25817int
25818main ()
25819{
25820opendir ();
25821 ;
25822 return 0;
25823}
25824_ACEOF
25825rm -f conftest.$ac_objext conftest$ac_exeext
25826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827 (eval $ac_link) 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
25834 { ac_try='test -z "$ac_c_werror_flag"
25835 || test ! -s conftest.err'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; } &&
25841 { ac_try='test -s conftest$ac_exeext'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 ac_cv_search_opendir="none required"
25848else
25849 echo "$as_me: failed program was:" >&5
25850sed 's/^/| /' conftest.$ac_ext >&5
25851
25852fi
25853rm -f conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
25855if test "$ac_cv_search_opendir" = no; then
25856 for ac_lib in x; do
25857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25858 cat >conftest.$ac_ext <<_ACEOF
25859/* confdefs.h. */
25860_ACEOF
25861cat confdefs.h >>conftest.$ac_ext
25862cat >>conftest.$ac_ext <<_ACEOF
25863/* end confdefs.h. */
25864
25865/* Override any gcc2 internal prototype to avoid an error. */
25866#ifdef __cplusplus
25867extern "C"
25868#endif
25869/* We use char because int might match the return type of a gcc2
25870 builtin and then its argument prototype would still apply. */
25871char opendir ();
25872int
25873main ()
25874{
25875opendir ();
25876 ;
25877 return 0;
25878}
25879_ACEOF
25880rm -f conftest.$ac_objext conftest$ac_exeext
25881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25882 (eval $ac_link) 2>conftest.er1
25883 ac_status=$?
25884 grep -v '^ *+' conftest.er1 >conftest.err
25885 rm -f conftest.er1
25886 cat conftest.err >&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } &&
25889 { ac_try='test -z "$ac_c_werror_flag"
25890 || test ! -s conftest.err'
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; } &&
25896 { ac_try='test -s conftest$ac_exeext'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; }; then
25902 ac_cv_search_opendir="-l$ac_lib"
25903break
25904else
25905 echo "$as_me: failed program was:" >&5
25906sed 's/^/| /' conftest.$ac_ext >&5
25907
25908fi
25909rm -f conftest.err conftest.$ac_objext \
25910 conftest$ac_exeext conftest.$ac_ext
25911 done
25912fi
25913LIBS=$ac_func_search_save_LIBS
25914fi
25915echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25916echo "${ECHO_T}$ac_cv_search_opendir" >&6
25917if test "$ac_cv_search_opendir" != no; then
25918 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25919
25920fi
25921
25922fi
25923
25924echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25925echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25926if test "${ac_cv_header_mmap_anon+set}" = set; then
25927 echo $ECHO_N "(cached) $ECHO_C" >&6
25928else
25929 ac_ext=c
25930ac_cpp='$CPP $CPPFLAGS'
25931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25933ac_compiler_gnu=$ac_cv_c_compiler_gnu
25934
25935 cat >conftest.$ac_ext <<_ACEOF
25936/* confdefs.h. */
25937_ACEOF
25938cat confdefs.h >>conftest.$ac_ext
25939cat >>conftest.$ac_ext <<_ACEOF
25940/* end confdefs.h. */
25941#include <sys/mman.h>
25942#include <unistd.h>
25943#include <fcntl.h>
25944int
25945main ()
25946{
25947mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25948 ;
25949 return 0;
25950}
25951_ACEOF
25952rm -f conftest.$ac_objext
25953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25954 (eval $ac_compile) 2>conftest.er1
25955 ac_status=$?
25956 grep -v '^ *+' conftest.er1 >conftest.err
25957 rm -f conftest.er1
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } &&
25961 { ac_try='test -z "$ac_c_werror_flag"
25962 || test ! -s conftest.err'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest.$ac_objext'
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 ac_cv_header_mmap_anon=yes
25975else
25976 echo "$as_me: failed program was:" >&5
25977sed 's/^/| /' conftest.$ac_ext >&5
25978
25979ac_cv_header_mmap_anon=no
25980fi
25981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25982 ac_ext=c
25983ac_cpp='$CPP $CPPFLAGS'
25984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25986ac_compiler_gnu=$ac_cv_c_compiler_gnu
25987
25988
25989fi
25990echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25991echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25992if test "$ac_cv_header_mmap_anon" = yes; then
25993
25994cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025995#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025996_ACEOF
25997
25998fi
25999
26000echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26001echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26002if test "${ac_cv_header_stat_broken+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26004else
26005 cat >conftest.$ac_ext <<_ACEOF
26006/* confdefs.h. */
26007_ACEOF
26008cat confdefs.h >>conftest.$ac_ext
26009cat >>conftest.$ac_ext <<_ACEOF
26010/* end confdefs.h. */
26011#include <sys/types.h>
26012#include <sys/stat.h>
26013
26014#if defined(S_ISBLK) && defined(S_IFDIR)
26015# if S_ISBLK (S_IFDIR)
26016You lose.
26017# endif
26018#endif
26019
26020#if defined(S_ISBLK) && defined(S_IFCHR)
26021# if S_ISBLK (S_IFCHR)
26022You lose.
26023# endif
26024#endif
26025
26026#if defined(S_ISLNK) && defined(S_IFREG)
26027# if S_ISLNK (S_IFREG)
26028You lose.
26029# endif
26030#endif
26031
26032#if defined(S_ISSOCK) && defined(S_IFREG)
26033# if S_ISSOCK (S_IFREG)
26034You lose.
26035# endif
26036#endif
26037
26038_ACEOF
26039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26040 $EGREP "You lose" >/dev/null 2>&1; then
26041 ac_cv_header_stat_broken=yes
26042else
26043 ac_cv_header_stat_broken=no
26044fi
26045rm -f conftest*
26046
26047fi
26048echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26049echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26050if test $ac_cv_header_stat_broken = yes; then
26051
26052cat >>confdefs.h <<\_ACEOF
26053#define STAT_MACROS_BROKEN 1
26054_ACEOF
26055
26056fi
26057
John Criswell7a73b802003-06-30 21:59:07 +000026058echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26059echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26060if test "${ac_cv_header_stdc+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26062else
26063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026064/* confdefs.h. */
26065_ACEOF
26066cat confdefs.h >>conftest.$ac_ext
26067cat >>conftest.$ac_ext <<_ACEOF
26068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026069#include <stdlib.h>
26070#include <stdarg.h>
26071#include <string.h>
26072#include <float.h>
26073
John Criswell0c38eaf2003-09-10 15:17:25 +000026074int
26075main ()
26076{
26077
26078 ;
26079 return 0;
26080}
John Criswell7a73b802003-06-30 21:59:07 +000026081_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026082rm -f conftest.$ac_objext
26083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026084 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026085 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026090 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026104 ac_cv_header_stdc=yes
26105else
26106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026107sed 's/^/| /' conftest.$ac_ext >&5
26108
26109ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026110fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026112
26113if test $ac_cv_header_stdc = yes; then
26114 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26115 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026121#include <string.h>
26122
26123_ACEOF
26124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026125 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026126 :
26127else
26128 ac_cv_header_stdc=no
26129fi
26130rm -f conftest*
26131
26132fi
26133
26134if test $ac_cv_header_stdc = yes; then
26135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26136 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026137/* confdefs.h. */
26138_ACEOF
26139cat confdefs.h >>conftest.$ac_ext
26140cat >>conftest.$ac_ext <<_ACEOF
26141/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026142#include <stdlib.h>
26143
26144_ACEOF
26145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026146 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026147 :
26148else
26149 ac_cv_header_stdc=no
26150fi
26151rm -f conftest*
26152
26153fi
26154
26155if test $ac_cv_header_stdc = yes; then
26156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26157 if test "$cross_compiling" = yes; then
26158 :
26159else
26160 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026161/* confdefs.h. */
26162_ACEOF
26163cat confdefs.h >>conftest.$ac_ext
26164cat >>conftest.$ac_ext <<_ACEOF
26165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026166#include <ctype.h>
26167#if ((' ' & 0x0FF) == 0x020)
26168# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26169# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26170#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026171# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026172 (('a' <= (c) && (c) <= 'i') \
26173 || ('j' <= (c) && (c) <= 'r') \
26174 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026175# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26176#endif
26177
26178#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26179int
26180main ()
26181{
26182 int i;
26183 for (i = 0; i < 256; i++)
26184 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026185 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026186 exit(2);
26187 exit (0);
26188}
26189_ACEOF
26190rm -f conftest$ac_exeext
26191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26192 (eval $ac_link) 2>&5
26193 ac_status=$?
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 (eval $ac_try) 2>&5
26198 ac_status=$?
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; }; then
26201 :
26202else
26203 echo "$as_me: program exited with status $ac_status" >&5
26204echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026205sed 's/^/| /' conftest.$ac_ext >&5
26206
John Criswell7a73b802003-06-30 21:59:07 +000026207( exit $ac_status )
26208ac_cv_header_stdc=no
26209fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026211fi
26212fi
26213fi
26214echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26215echo "${ECHO_T}$ac_cv_header_stdc" >&6
26216if test $ac_cv_header_stdc = yes; then
26217
26218cat >>confdefs.h <<\_ACEOF
26219#define STDC_HEADERS 1
26220_ACEOF
26221
26222fi
26223
26224echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26225echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26226if test "${ac_cv_header_sys_wait_h+set}" = set; then
26227 echo $ECHO_N "(cached) $ECHO_C" >&6
26228else
26229 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026230/* confdefs.h. */
26231_ACEOF
26232cat confdefs.h >>conftest.$ac_ext
26233cat >>conftest.$ac_ext <<_ACEOF
26234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026235#include <sys/types.h>
26236#include <sys/wait.h>
26237#ifndef WEXITSTATUS
26238# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26239#endif
26240#ifndef WIFEXITED
26241# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26242#endif
26243
John Criswell7a73b802003-06-30 21:59:07 +000026244int
26245main ()
26246{
26247 int s;
26248 wait (&s);
26249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26250 ;
26251 return 0;
26252}
26253_ACEOF
26254rm -f conftest.$ac_objext
26255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026256 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026258 grep -v '^ *+' conftest.er1 >conftest.err
26259 rm -f conftest.er1
26260 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026263 { ac_try='test -z "$ac_c_werror_flag"
26264 || test ! -s conftest.err'
26265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26267 ac_status=$?
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; } &&
26270 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; }; then
26276 ac_cv_header_sys_wait_h=yes
26277else
26278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026279sed 's/^/| /' conftest.$ac_ext >&5
26280
John Criswell7a73b802003-06-30 21:59:07 +000026281ac_cv_header_sys_wait_h=no
26282fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026284fi
26285echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26286echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26287if test $ac_cv_header_sys_wait_h = yes; then
26288
26289cat >>confdefs.h <<\_ACEOF
26290#define HAVE_SYS_WAIT_H 1
26291_ACEOF
26292
26293fi
26294
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026295echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26296echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26297if test "${ac_cv_header_time+set}" = set; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26299else
26300 cat >conftest.$ac_ext <<_ACEOF
26301/* confdefs.h. */
26302_ACEOF
26303cat confdefs.h >>conftest.$ac_ext
26304cat >>conftest.$ac_ext <<_ACEOF
26305/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026306#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026307#include <sys/time.h>
26308#include <time.h>
26309
26310int
26311main ()
26312{
26313if ((struct tm *) 0)
26314return 0;
26315 ;
26316 return 0;
26317}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026318_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026319rm -f conftest.$ac_objext
26320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26321 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026322 ac_status=$?
26323 grep -v '^ *+' conftest.er1 >conftest.err
26324 rm -f conftest.er1
26325 cat conftest.err >&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026327 (exit $ac_status); } &&
26328 { ac_try='test -z "$ac_c_werror_flag"
26329 || test ! -s conftest.err'
26330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26332 ac_status=$?
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; } &&
26335 { ac_try='test -s conftest.$ac_objext'
26336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337 (eval $ac_try) 2>&5
26338 ac_status=$?
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; }; then
26341 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026342else
26343 echo "$as_me: failed program was:" >&5
26344sed 's/^/| /' conftest.$ac_ext >&5
26345
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026346ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026347fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26349fi
26350echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26351echo "${ECHO_T}$ac_cv_header_time" >&6
26352if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026353
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026354cat >>confdefs.h <<\_ACEOF
26355#define TIME_WITH_SYS_TIME 1
26356_ACEOF
26357
26358fi
26359
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026360
Reid Spencer59473af2004-12-25 07:31:29 +000026361
26362
26363
26364
26365
26366
26367for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26368do
26369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26370if eval "test \"\${$as_ac_Header+set}\" = set"; then
26371 echo "$as_me:$LINENO: checking for $ac_header" >&5
26372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26373if eval "test \"\${$as_ac_Header+set}\" = set"; then
26374 echo $ECHO_N "(cached) $ECHO_C" >&6
26375fi
26376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26378else
26379 # Is the header compilable?
26380echo "$as_me:$LINENO: checking $ac_header usability" >&5
26381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26382cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026383/* confdefs.h. */
26384_ACEOF
26385cat confdefs.h >>conftest.$ac_ext
26386cat >>conftest.$ac_ext <<_ACEOF
26387/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026388$ac_includes_default
26389#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026390_ACEOF
26391rm -f conftest.$ac_objext
26392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26393 (eval $ac_compile) 2>conftest.er1
26394 ac_status=$?
26395 grep -v '^ *+' conftest.er1 >conftest.err
26396 rm -f conftest.er1
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } &&
26400 { ac_try='test -z "$ac_c_werror_flag"
26401 || test ! -s conftest.err'
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; } &&
26407 { ac_try='test -s conftest.$ac_objext'
26408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26409 (eval $ac_try) 2>&5
26410 ac_status=$?
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026413 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026414else
26415 echo "$as_me: failed program was:" >&5
26416sed 's/^/| /' conftest.$ac_ext >&5
26417
Reid Spencer59473af2004-12-25 07:31:29 +000026418ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026419fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26422echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026423
Reid Spencer59473af2004-12-25 07:31:29 +000026424# Is the header present?
26425echo "$as_me:$LINENO: checking $ac_header presence" >&5
26426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26427cat >conftest.$ac_ext <<_ACEOF
26428/* confdefs.h. */
26429_ACEOF
26430cat confdefs.h >>conftest.$ac_ext
26431cat >>conftest.$ac_ext <<_ACEOF
26432/* end confdefs.h. */
26433#include <$ac_header>
26434_ACEOF
26435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26437 ac_status=$?
26438 grep -v '^ *+' conftest.er1 >conftest.err
26439 rm -f conftest.er1
26440 cat conftest.err >&5
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } >/dev/null; then
26443 if test -s conftest.err; then
26444 ac_cpp_err=$ac_c_preproc_warn_flag
26445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26446 else
26447 ac_cpp_err=
26448 fi
26449else
26450 ac_cpp_err=yes
26451fi
26452if test -z "$ac_cpp_err"; then
26453 ac_header_preproc=yes
26454else
26455 echo "$as_me: failed program was:" >&5
26456sed 's/^/| /' conftest.$ac_ext >&5
26457
26458 ac_header_preproc=no
26459fi
26460rm -f conftest.err conftest.$ac_ext
26461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26462echo "${ECHO_T}$ac_header_preproc" >&6
26463
26464# So? What about this header?
26465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26466 yes:no: )
26467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26471 ac_header_preproc=yes
26472 ;;
26473 no:yes:* )
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26486 (
26487 cat <<\_ASBOX
26488## ----------------------------------- ##
26489## Report this to llvmbugs@cs.uiuc.edu ##
26490## ----------------------------------- ##
26491_ASBOX
26492 ) |
26493 sed "s/^/$as_me: WARNING: /" >&2
26494 ;;
26495esac
26496echo "$as_me:$LINENO: checking for $ac_header" >&5
26497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26498if eval "test \"\${$as_ac_Header+set}\" = set"; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26500else
26501 eval "$as_ac_Header=\$ac_header_preproc"
26502fi
26503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026505
26506fi
Reid Spencer59473af2004-12-25 07:31:29 +000026507if test `eval echo '${'$as_ac_Header'}'` = yes; then
26508 cat >>confdefs.h <<_ACEOF
26509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026510_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026511
26512fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026513
Reid Spencer59473af2004-12-25 07:31:29 +000026514done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026515
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026516
26517
Reid Spencer59473af2004-12-25 07:31:29 +000026518
26519
26520
26521
Reid Spencer0a262ba2005-08-24 10:07:20 +000026522for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026523do
26524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26525if eval "test \"\${$as_ac_Header+set}\" = set"; then
26526 echo "$as_me:$LINENO: checking for $ac_header" >&5
26527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26528if eval "test \"\${$as_ac_Header+set}\" = set"; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26530fi
26531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26533else
26534 # Is the header compilable?
26535echo "$as_me:$LINENO: checking $ac_header usability" >&5
26536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26537cat >conftest.$ac_ext <<_ACEOF
26538/* confdefs.h. */
26539_ACEOF
26540cat confdefs.h >>conftest.$ac_ext
26541cat >>conftest.$ac_ext <<_ACEOF
26542/* end confdefs.h. */
26543$ac_includes_default
26544#include <$ac_header>
26545_ACEOF
26546rm -f conftest.$ac_objext
26547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26548 (eval $ac_compile) 2>conftest.er1
26549 ac_status=$?
26550 grep -v '^ *+' conftest.er1 >conftest.err
26551 rm -f conftest.er1
26552 cat conftest.err >&5
26553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); } &&
26555 { ac_try='test -z "$ac_c_werror_flag"
26556 || test ! -s conftest.err'
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; } &&
26562 { ac_try='test -s conftest.$ac_objext'
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; }; then
26568 ac_header_compiler=yes
26569else
26570 echo "$as_me: failed program was:" >&5
26571sed 's/^/| /' conftest.$ac_ext >&5
26572
26573ac_header_compiler=no
26574fi
26575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26577echo "${ECHO_T}$ac_header_compiler" >&6
26578
26579# Is the header present?
26580echo "$as_me:$LINENO: checking $ac_header presence" >&5
26581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26582cat >conftest.$ac_ext <<_ACEOF
26583/* confdefs.h. */
26584_ACEOF
26585cat confdefs.h >>conftest.$ac_ext
26586cat >>conftest.$ac_ext <<_ACEOF
26587/* end confdefs.h. */
26588#include <$ac_header>
26589_ACEOF
26590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26592 ac_status=$?
26593 grep -v '^ *+' conftest.er1 >conftest.err
26594 rm -f conftest.er1
26595 cat conftest.err >&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); } >/dev/null; then
26598 if test -s conftest.err; then
26599 ac_cpp_err=$ac_c_preproc_warn_flag
26600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26601 else
26602 ac_cpp_err=
26603 fi
26604else
26605 ac_cpp_err=yes
26606fi
26607if test -z "$ac_cpp_err"; then
26608 ac_header_preproc=yes
26609else
26610 echo "$as_me: failed program was:" >&5
26611sed 's/^/| /' conftest.$ac_ext >&5
26612
26613 ac_header_preproc=no
26614fi
26615rm -f conftest.err conftest.$ac_ext
26616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26617echo "${ECHO_T}$ac_header_preproc" >&6
26618
26619# So? What about this header?
26620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26621 yes:no: )
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26626 ac_header_preproc=yes
26627 ;;
26628 no:yes:* )
26629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26641 (
26642 cat <<\_ASBOX
26643## ----------------------------------- ##
26644## Report this to llvmbugs@cs.uiuc.edu ##
26645## ----------------------------------- ##
26646_ASBOX
26647 ) |
26648 sed "s/^/$as_me: WARNING: /" >&2
26649 ;;
26650esac
26651echo "$as_me:$LINENO: checking for $ac_header" >&5
26652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26653if eval "test \"\${$as_ac_Header+set}\" = set"; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26655else
26656 eval "$as_ac_Header=\$ac_header_preproc"
26657fi
26658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26660
26661fi
26662if test `eval echo '${'$as_ac_Header'}'` = yes; then
26663 cat >>confdefs.h <<_ACEOF
26664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26665_ACEOF
26666
26667fi
26668
26669done
26670
26671
26672
26673
26674
26675
26676for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026677do
26678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26679if eval "test \"\${$as_ac_Header+set}\" = set"; then
26680 echo "$as_me:$LINENO: checking for $ac_header" >&5
26681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26682if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026683 echo $ECHO_N "(cached) $ECHO_C" >&6
26684fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026687else
26688 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026689echo "$as_me:$LINENO: checking $ac_header usability" >&5
26690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026691cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026692/* confdefs.h. */
26693_ACEOF
26694cat confdefs.h >>conftest.$ac_ext
26695cat >>conftest.$ac_ext <<_ACEOF
26696/* end confdefs.h. */
26697$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026698#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026699_ACEOF
26700rm -f conftest.$ac_objext
26701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026702 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026704 grep -v '^ *+' conftest.er1 >conftest.err
26705 rm -f conftest.er1
26706 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026709 { ac_try='test -z "$ac_c_werror_flag"
26710 || test ! -s conftest.err'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; } &&
26716 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26719 ac_status=$?
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; }; then
26722 ac_header_compiler=yes
26723else
26724 echo "$as_me: failed program was:" >&5
26725sed 's/^/| /' conftest.$ac_ext >&5
26726
26727ac_header_compiler=no
26728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26731echo "${ECHO_T}$ac_header_compiler" >&6
26732
26733# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026734echo "$as_me:$LINENO: checking $ac_header presence" >&5
26735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026736cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026737/* confdefs.h. */
26738_ACEOF
26739cat confdefs.h >>conftest.$ac_ext
26740cat >>conftest.$ac_ext <<_ACEOF
26741/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026742#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026743_ACEOF
26744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26746 ac_status=$?
26747 grep -v '^ *+' conftest.er1 >conftest.err
26748 rm -f conftest.er1
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } >/dev/null; then
26752 if test -s conftest.err; then
26753 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026755 else
26756 ac_cpp_err=
26757 fi
26758else
26759 ac_cpp_err=yes
26760fi
26761if test -z "$ac_cpp_err"; then
26762 ac_header_preproc=yes
26763else
26764 echo "$as_me: failed program was:" >&5
26765sed 's/^/| /' conftest.$ac_ext >&5
26766
26767 ac_header_preproc=no
26768fi
26769rm -f conftest.err conftest.$ac_ext
26770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26771echo "${ECHO_T}$ac_header_preproc" >&6
26772
26773# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26775 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026780 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026781 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026782 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26790echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026795 (
26796 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026797## ----------------------------------- ##
26798## Report this to llvmbugs@cs.uiuc.edu ##
26799## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026800_ASBOX
26801 ) |
26802 sed "s/^/$as_me: WARNING: /" >&2
26803 ;;
26804esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026805echo "$as_me:$LINENO: checking for $ac_header" >&5
26806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26807if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026808 echo $ECHO_N "(cached) $ECHO_C" >&6
26809else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026810 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026811fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026814
26815fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026816if test `eval echo '${'$as_ac_Header'}'` = yes; then
26817 cat >>confdefs.h <<_ACEOF
26818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026819_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026820
26821fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026822
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026823done
26824
John Criswell7ed43ad2004-07-19 16:12:29 +000026825
Chris Lattner0b142592005-11-14 06:57:34 +000026826for ac_header in malloc/malloc.h
26827do
26828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26829if eval "test \"\${$as_ac_Header+set}\" = set"; then
26830 echo "$as_me:$LINENO: checking for $ac_header" >&5
26831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26832if eval "test \"\${$as_ac_Header+set}\" = set"; then
26833 echo $ECHO_N "(cached) $ECHO_C" >&6
26834fi
26835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26837else
26838 # Is the header compilable?
26839echo "$as_me:$LINENO: checking $ac_header usability" >&5
26840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26841cat >conftest.$ac_ext <<_ACEOF
26842/* confdefs.h. */
26843_ACEOF
26844cat confdefs.h >>conftest.$ac_ext
26845cat >>conftest.$ac_ext <<_ACEOF
26846/* end confdefs.h. */
26847$ac_includes_default
26848#include <$ac_header>
26849_ACEOF
26850rm -f conftest.$ac_objext
26851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26852 (eval $ac_compile) 2>conftest.er1
26853 ac_status=$?
26854 grep -v '^ *+' conftest.er1 >conftest.err
26855 rm -f conftest.er1
26856 cat conftest.err >&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } &&
26859 { ac_try='test -z "$ac_c_werror_flag"
26860 || test ! -s conftest.err'
26861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862 (eval $ac_try) 2>&5
26863 ac_status=$?
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; } &&
26866 { ac_try='test -s conftest.$ac_objext'
26867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868 (eval $ac_try) 2>&5
26869 ac_status=$?
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); }; }; then
26872 ac_header_compiler=yes
26873else
26874 echo "$as_me: failed program was:" >&5
26875sed 's/^/| /' conftest.$ac_ext >&5
26876
26877ac_header_compiler=no
26878fi
26879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26881echo "${ECHO_T}$ac_header_compiler" >&6
26882
26883# Is the header present?
26884echo "$as_me:$LINENO: checking $ac_header presence" >&5
26885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26886cat >conftest.$ac_ext <<_ACEOF
26887/* confdefs.h. */
26888_ACEOF
26889cat confdefs.h >>conftest.$ac_ext
26890cat >>conftest.$ac_ext <<_ACEOF
26891/* end confdefs.h. */
26892#include <$ac_header>
26893_ACEOF
26894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26896 ac_status=$?
26897 grep -v '^ *+' conftest.er1 >conftest.err
26898 rm -f conftest.er1
26899 cat conftest.err >&5
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); } >/dev/null; then
26902 if test -s conftest.err; then
26903 ac_cpp_err=$ac_c_preproc_warn_flag
26904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26905 else
26906 ac_cpp_err=
26907 fi
26908else
26909 ac_cpp_err=yes
26910fi
26911if test -z "$ac_cpp_err"; then
26912 ac_header_preproc=yes
26913else
26914 echo "$as_me: failed program was:" >&5
26915sed 's/^/| /' conftest.$ac_ext >&5
26916
26917 ac_header_preproc=no
26918fi
26919rm -f conftest.err conftest.$ac_ext
26920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26921echo "${ECHO_T}$ac_header_preproc" >&6
26922
26923# So? What about this header?
26924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26925 yes:no: )
26926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26930 ac_header_preproc=yes
26931 ;;
26932 no:yes:* )
26933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26945 (
26946 cat <<\_ASBOX
26947## ----------------------------------- ##
26948## Report this to llvmbugs@cs.uiuc.edu ##
26949## ----------------------------------- ##
26950_ASBOX
26951 ) |
26952 sed "s/^/$as_me: WARNING: /" >&2
26953 ;;
26954esac
26955echo "$as_me:$LINENO: checking for $ac_header" >&5
26956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26957if eval "test \"\${$as_ac_Header+set}\" = set"; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26959else
26960 eval "$as_ac_Header=\$ac_header_preproc"
26961fi
26962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26964
26965fi
26966if test `eval echo '${'$as_ac_Header'}'` = yes; then
26967 cat >>confdefs.h <<_ACEOF
26968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26969_ACEOF
26970
26971fi
26972
26973done
26974
26975
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026976
Reid Spencer8085cff2005-01-16 02:58:39 +000026977for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26978do
26979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26980if eval "test \"\${$as_ac_Header+set}\" = set"; then
26981 echo "$as_me:$LINENO: checking for $ac_header" >&5
26982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26983if eval "test \"\${$as_ac_Header+set}\" = set"; then
26984 echo $ECHO_N "(cached) $ECHO_C" >&6
26985fi
26986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26988else
26989 # Is the header compilable?
26990echo "$as_me:$LINENO: checking $ac_header usability" >&5
26991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26992cat >conftest.$ac_ext <<_ACEOF
26993/* confdefs.h. */
26994_ACEOF
26995cat confdefs.h >>conftest.$ac_ext
26996cat >>conftest.$ac_ext <<_ACEOF
26997/* end confdefs.h. */
26998$ac_includes_default
26999#include <$ac_header>
27000_ACEOF
27001rm -f conftest.$ac_objext
27002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27003 (eval $ac_compile) 2>conftest.er1
27004 ac_status=$?
27005 grep -v '^ *+' conftest.er1 >conftest.err
27006 rm -f conftest.er1
27007 cat conftest.err >&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } &&
27010 { ac_try='test -z "$ac_c_werror_flag"
27011 || test ! -s conftest.err'
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; } &&
27017 { ac_try='test -s conftest.$ac_objext'
27018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019 (eval $ac_try) 2>&5
27020 ac_status=$?
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); }; }; then
27023 ac_header_compiler=yes
27024else
27025 echo "$as_me: failed program was:" >&5
27026sed 's/^/| /' conftest.$ac_ext >&5
27027
27028ac_header_compiler=no
27029fi
27030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27032echo "${ECHO_T}$ac_header_compiler" >&6
27033
27034# Is the header present?
27035echo "$as_me:$LINENO: checking $ac_header presence" >&5
27036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27037cat >conftest.$ac_ext <<_ACEOF
27038/* confdefs.h. */
27039_ACEOF
27040cat confdefs.h >>conftest.$ac_ext
27041cat >>conftest.$ac_ext <<_ACEOF
27042/* end confdefs.h. */
27043#include <$ac_header>
27044_ACEOF
27045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27047 ac_status=$?
27048 grep -v '^ *+' conftest.er1 >conftest.err
27049 rm -f conftest.er1
27050 cat conftest.err >&5
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); } >/dev/null; then
27053 if test -s conftest.err; then
27054 ac_cpp_err=$ac_c_preproc_warn_flag
27055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27056 else
27057 ac_cpp_err=
27058 fi
27059else
27060 ac_cpp_err=yes
27061fi
27062if test -z "$ac_cpp_err"; then
27063 ac_header_preproc=yes
27064else
27065 echo "$as_me: failed program was:" >&5
27066sed 's/^/| /' conftest.$ac_ext >&5
27067
27068 ac_header_preproc=no
27069fi
27070rm -f conftest.err conftest.$ac_ext
27071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27072echo "${ECHO_T}$ac_header_preproc" >&6
27073
27074# So? What about this header?
27075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27076 yes:no: )
27077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27081 ac_header_preproc=yes
27082 ;;
27083 no:yes:* )
27084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27096 (
27097 cat <<\_ASBOX
27098## ----------------------------------- ##
27099## Report this to llvmbugs@cs.uiuc.edu ##
27100## ----------------------------------- ##
27101_ASBOX
27102 ) |
27103 sed "s/^/$as_me: WARNING: /" >&2
27104 ;;
27105esac
27106echo "$as_me:$LINENO: checking for $ac_header" >&5
27107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27108if eval "test \"\${$as_ac_Header+set}\" = set"; then
27109 echo $ECHO_N "(cached) $ECHO_C" >&6
27110else
27111 eval "$as_ac_Header=\$ac_header_preproc"
27112fi
27113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27115
27116fi
27117if test `eval echo '${'$as_ac_Header'}'` = yes; then
27118 cat >>confdefs.h <<_ACEOF
27119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27120_ACEOF
27121
27122fi
27123
27124done
27125
Reid Spencer0a262ba2005-08-24 10:07:20 +000027126if test "$ENABLE_THREADS" -eq 1 ; then
27127
27128for ac_header in pthread.h
27129do
27130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27131if eval "test \"\${$as_ac_Header+set}\" = set"; then
27132 echo "$as_me:$LINENO: checking for $ac_header" >&5
27133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27134if eval "test \"\${$as_ac_Header+set}\" = set"; then
27135 echo $ECHO_N "(cached) $ECHO_C" >&6
27136fi
27137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27139else
27140 # Is the header compilable?
27141echo "$as_me:$LINENO: checking $ac_header usability" >&5
27142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27143cat >conftest.$ac_ext <<_ACEOF
27144/* confdefs.h. */
27145_ACEOF
27146cat confdefs.h >>conftest.$ac_ext
27147cat >>conftest.$ac_ext <<_ACEOF
27148/* end confdefs.h. */
27149$ac_includes_default
27150#include <$ac_header>
27151_ACEOF
27152rm -f conftest.$ac_objext
27153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27154 (eval $ac_compile) 2>conftest.er1
27155 ac_status=$?
27156 grep -v '^ *+' conftest.er1 >conftest.err
27157 rm -f conftest.er1
27158 cat conftest.err >&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } &&
27161 { ac_try='test -z "$ac_c_werror_flag"
27162 || test ! -s conftest.err'
27163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164 (eval $ac_try) 2>&5
27165 ac_status=$?
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); }; } &&
27168 { ac_try='test -s conftest.$ac_objext'
27169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170 (eval $ac_try) 2>&5
27171 ac_status=$?
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); }; }; then
27174 ac_header_compiler=yes
27175else
27176 echo "$as_me: failed program was:" >&5
27177sed 's/^/| /' conftest.$ac_ext >&5
27178
27179ac_header_compiler=no
27180fi
27181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27183echo "${ECHO_T}$ac_header_compiler" >&6
27184
27185# Is the header present?
27186echo "$as_me:$LINENO: checking $ac_header presence" >&5
27187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27188cat >conftest.$ac_ext <<_ACEOF
27189/* confdefs.h. */
27190_ACEOF
27191cat confdefs.h >>conftest.$ac_ext
27192cat >>conftest.$ac_ext <<_ACEOF
27193/* end confdefs.h. */
27194#include <$ac_header>
27195_ACEOF
27196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27198 ac_status=$?
27199 grep -v '^ *+' conftest.er1 >conftest.err
27200 rm -f conftest.er1
27201 cat conftest.err >&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); } >/dev/null; then
27204 if test -s conftest.err; then
27205 ac_cpp_err=$ac_c_preproc_warn_flag
27206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27207 else
27208 ac_cpp_err=
27209 fi
27210else
27211 ac_cpp_err=yes
27212fi
27213if test -z "$ac_cpp_err"; then
27214 ac_header_preproc=yes
27215else
27216 echo "$as_me: failed program was:" >&5
27217sed 's/^/| /' conftest.$ac_ext >&5
27218
27219 ac_header_preproc=no
27220fi
27221rm -f conftest.err conftest.$ac_ext
27222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27223echo "${ECHO_T}$ac_header_preproc" >&6
27224
27225# So? What about this header?
27226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27227 yes:no: )
27228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27232 ac_header_preproc=yes
27233 ;;
27234 no:yes:* )
27235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27247 (
27248 cat <<\_ASBOX
27249## ----------------------------------- ##
27250## Report this to llvmbugs@cs.uiuc.edu ##
27251## ----------------------------------- ##
27252_ASBOX
27253 ) |
27254 sed "s/^/$as_me: WARNING: /" >&2
27255 ;;
27256esac
27257echo "$as_me:$LINENO: checking for $ac_header" >&5
27258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27259if eval "test \"\${$as_ac_Header+set}\" = set"; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27261else
27262 eval "$as_ac_Header=\$ac_header_preproc"
27263fi
27264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27266
27267fi
27268if test `eval echo '${'$as_ac_Header'}'` = yes; then
27269 cat >>confdefs.h <<_ACEOF
27270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27271_ACEOF
27272
27273fi
27274
27275done
27276
27277fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027278
27279
John Criswell7a73b802003-06-30 21:59:07 +000027280echo "$as_me:$LINENO: checking for pid_t" >&5
27281echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27282if test "${ac_cv_type_pid_t+set}" = set; then
27283 echo $ECHO_N "(cached) $ECHO_C" >&6
27284else
27285 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027286/* confdefs.h. */
27287_ACEOF
27288cat confdefs.h >>conftest.$ac_ext
27289cat >>conftest.$ac_ext <<_ACEOF
27290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027291$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027292int
27293main ()
27294{
27295if ((pid_t *) 0)
27296 return 0;
27297if (sizeof (pid_t))
27298 return 0;
27299 ;
27300 return 0;
27301}
27302_ACEOF
27303rm -f conftest.$ac_objext
27304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027305 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027306 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027307 grep -v '^ *+' conftest.er1 >conftest.err
27308 rm -f conftest.er1
27309 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027312 { ac_try='test -z "$ac_c_werror_flag"
27313 || test ! -s conftest.err'
27314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; } &&
27319 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321 (eval $ac_try) 2>&5
27322 ac_status=$?
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); }; }; then
27325 ac_cv_type_pid_t=yes
27326else
27327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027328sed 's/^/| /' conftest.$ac_ext >&5
27329
John Criswell7a73b802003-06-30 21:59:07 +000027330ac_cv_type_pid_t=no
27331fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027333fi
27334echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27335echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27336if test $ac_cv_type_pid_t = yes; then
27337 :
27338else
27339
27340cat >>confdefs.h <<_ACEOF
27341#define pid_t int
27342_ACEOF
27343
27344fi
27345
27346echo "$as_me:$LINENO: checking for size_t" >&5
27347echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27348if test "${ac_cv_type_size_t+set}" = set; then
27349 echo $ECHO_N "(cached) $ECHO_C" >&6
27350else
27351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027352/* confdefs.h. */
27353_ACEOF
27354cat confdefs.h >>conftest.$ac_ext
27355cat >>conftest.$ac_ext <<_ACEOF
27356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027357$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027358int
27359main ()
27360{
27361if ((size_t *) 0)
27362 return 0;
27363if (sizeof (size_t))
27364 return 0;
27365 ;
27366 return 0;
27367}
27368_ACEOF
27369rm -f conftest.$ac_objext
27370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027371 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027373 grep -v '^ *+' conftest.er1 >conftest.err
27374 rm -f conftest.er1
27375 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027378 { ac_try='test -z "$ac_c_werror_flag"
27379 || test ! -s conftest.err'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27382 ac_status=$?
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; } &&
27385 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387 (eval $ac_try) 2>&5
27388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; }; then
27391 ac_cv_type_size_t=yes
27392else
27393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027394sed 's/^/| /' conftest.$ac_ext >&5
27395
John Criswell7a73b802003-06-30 21:59:07 +000027396ac_cv_type_size_t=no
27397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027399fi
27400echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27401echo "${ECHO_T}$ac_cv_type_size_t" >&6
27402if test $ac_cv_type_size_t = yes; then
27403 :
27404else
27405
27406cat >>confdefs.h <<_ACEOF
27407#define size_t unsigned
27408_ACEOF
27409
27410fi
27411
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027412echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27413echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27414if test "${ac_cv_type_signal+set}" = set; then
27415 echo $ECHO_N "(cached) $ECHO_C" >&6
27416else
27417 cat >conftest.$ac_ext <<_ACEOF
27418/* confdefs.h. */
27419_ACEOF
27420cat confdefs.h >>conftest.$ac_ext
27421cat >>conftest.$ac_ext <<_ACEOF
27422/* end confdefs.h. */
27423#include <sys/types.h>
27424#include <signal.h>
27425#ifdef signal
27426# undef signal
27427#endif
27428#ifdef __cplusplus
27429extern "C" void (*signal (int, void (*)(int)))(int);
27430#else
27431void (*signal ()) ();
27432#endif
27433
27434int
27435main ()
27436{
27437int i;
27438 ;
27439 return 0;
27440}
27441_ACEOF
27442rm -f conftest.$ac_objext
27443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27444 (eval $ac_compile) 2>conftest.er1
27445 ac_status=$?
27446 grep -v '^ *+' conftest.er1 >conftest.err
27447 rm -f conftest.er1
27448 cat conftest.err >&5
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); } &&
27451 { ac_try='test -z "$ac_c_werror_flag"
27452 || test ! -s conftest.err'
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); }; } &&
27458 { ac_try='test -s conftest.$ac_objext'
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27461 ac_status=$?
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; }; then
27464 ac_cv_type_signal=void
27465else
27466 echo "$as_me: failed program was:" >&5
27467sed 's/^/| /' conftest.$ac_ext >&5
27468
27469ac_cv_type_signal=int
27470fi
27471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27472fi
27473echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27474echo "${ECHO_T}$ac_cv_type_signal" >&6
27475
27476cat >>confdefs.h <<_ACEOF
27477#define RETSIGTYPE $ac_cv_type_signal
27478_ACEOF
27479
27480
27481echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27482echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27483if test "${ac_cv_struct_tm+set}" = set; then
27484 echo $ECHO_N "(cached) $ECHO_C" >&6
27485else
27486 cat >conftest.$ac_ext <<_ACEOF
27487/* confdefs.h. */
27488_ACEOF
27489cat confdefs.h >>conftest.$ac_ext
27490cat >>conftest.$ac_ext <<_ACEOF
27491/* end confdefs.h. */
27492#include <sys/types.h>
27493#include <time.h>
27494
27495int
27496main ()
27497{
27498struct tm *tp; tp->tm_sec;
27499 ;
27500 return 0;
27501}
27502_ACEOF
27503rm -f conftest.$ac_objext
27504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27505 (eval $ac_compile) 2>conftest.er1
27506 ac_status=$?
27507 grep -v '^ *+' conftest.er1 >conftest.err
27508 rm -f conftest.er1
27509 cat conftest.err >&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } &&
27512 { ac_try='test -z "$ac_c_werror_flag"
27513 || test ! -s conftest.err'
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27516 ac_status=$?
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; } &&
27519 { ac_try='test -s conftest.$ac_objext'
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
27525 ac_cv_struct_tm=time.h
27526else
27527 echo "$as_me: failed program was:" >&5
27528sed 's/^/| /' conftest.$ac_ext >&5
27529
27530ac_cv_struct_tm=sys/time.h
27531fi
27532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27533fi
27534echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27535echo "${ECHO_T}$ac_cv_struct_tm" >&6
27536if test $ac_cv_struct_tm = sys/time.h; then
27537
27538cat >>confdefs.h <<\_ACEOF
27539#define TM_IN_SYS_TIME 1
27540_ACEOF
27541
27542fi
27543
John Criswell7a73b802003-06-30 21:59:07 +000027544echo "$as_me:$LINENO: checking for int64_t" >&5
27545echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27546if test "${ac_cv_type_int64_t+set}" = set; then
27547 echo $ECHO_N "(cached) $ECHO_C" >&6
27548else
27549 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027550/* confdefs.h. */
27551_ACEOF
27552cat confdefs.h >>conftest.$ac_ext
27553cat >>conftest.$ac_ext <<_ACEOF
27554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027555$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027556int
27557main ()
27558{
27559if ((int64_t *) 0)
27560 return 0;
27561if (sizeof (int64_t))
27562 return 0;
27563 ;
27564 return 0;
27565}
27566_ACEOF
27567rm -f conftest.$ac_objext
27568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027569 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027570 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027571 grep -v '^ *+' conftest.er1 >conftest.err
27572 rm -f conftest.er1
27573 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027576 { ac_try='test -z "$ac_c_werror_flag"
27577 || test ! -s conftest.err'
27578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579 (eval $ac_try) 2>&5
27580 ac_status=$?
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; } &&
27583 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; }; then
27589 ac_cv_type_int64_t=yes
27590else
27591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027592sed 's/^/| /' conftest.$ac_ext >&5
27593
John Criswell7a73b802003-06-30 21:59:07 +000027594ac_cv_type_int64_t=no
27595fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027597fi
27598echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27599echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27600if test $ac_cv_type_int64_t = yes; then
27601
27602cat >>confdefs.h <<_ACEOF
27603#define HAVE_INT64_T 1
27604_ACEOF
27605
27606
27607else
27608 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27609echo "$as_me: error: Type int64_t required but not found" >&2;}
27610 { (exit 1); exit 1; }; }
27611fi
27612
27613echo "$as_me:$LINENO: checking for uint64_t" >&5
27614echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27615if test "${ac_cv_type_uint64_t+set}" = set; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617else
27618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027624$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027625int
27626main ()
27627{
27628if ((uint64_t *) 0)
27629 return 0;
27630if (sizeof (uint64_t))
27631 return 0;
27632 ;
27633 return 0;
27634}
27635_ACEOF
27636rm -f conftest.$ac_objext
27637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027638 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027639 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027640 grep -v '^ *+' conftest.er1 >conftest.err
27641 rm -f conftest.er1
27642 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027645 { ac_try='test -z "$ac_c_werror_flag"
27646 || test ! -s conftest.err'
27647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648 (eval $ac_try) 2>&5
27649 ac_status=$?
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; } &&
27652 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27655 ac_status=$?
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; }; then
27658 ac_cv_type_uint64_t=yes
27659else
27660 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027661sed 's/^/| /' conftest.$ac_ext >&5
27662
John Criswell7a73b802003-06-30 21:59:07 +000027663ac_cv_type_uint64_t=no
27664fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027666fi
27667echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27668echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27669if test $ac_cv_type_uint64_t = yes; then
27670
27671cat >>confdefs.h <<_ACEOF
27672#define HAVE_UINT64_T 1
27673_ACEOF
27674
27675
27676else
Misha Brukmanceca9042004-09-02 23:02:30 +000027677 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027678echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27679if test "${ac_cv_type_u_int64_t+set}" = set; then
27680 echo $ECHO_N "(cached) $ECHO_C" >&6
27681else
27682 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027683/* confdefs.h. */
27684_ACEOF
27685cat confdefs.h >>conftest.$ac_ext
27686cat >>conftest.$ac_ext <<_ACEOF
27687/* end confdefs.h. */
27688$ac_includes_default
27689int
27690main ()
27691{
27692if ((u_int64_t *) 0)
27693 return 0;
27694if (sizeof (u_int64_t))
27695 return 0;
27696 ;
27697 return 0;
27698}
27699_ACEOF
27700rm -f conftest.$ac_objext
27701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027702 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027704 grep -v '^ *+' conftest.er1 >conftest.err
27705 rm -f conftest.er1
27706 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027709 { ac_try='test -z "$ac_c_werror_flag"
27710 || test ! -s conftest.err'
27711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712 (eval $ac_try) 2>&5
27713 ac_status=$?
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); }; } &&
27716 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718 (eval $ac_try) 2>&5
27719 ac_status=$?
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; }; then
27722 ac_cv_type_u_int64_t=yes
27723else
27724 echo "$as_me: failed program was:" >&5
27725sed 's/^/| /' conftest.$ac_ext >&5
27726
27727ac_cv_type_u_int64_t=no
27728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027730fi
27731echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27732echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27733if test $ac_cv_type_u_int64_t = yes; then
27734
27735cat >>confdefs.h <<_ACEOF
27736#define HAVE_U_INT64_T 1
27737_ACEOF
27738
27739
Misha Brukmanceca9042004-09-02 23:02:30 +000027740else
27741 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27742echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27743 { (exit 1); exit 1; }; }
27744fi
27745
John Criswell679ff312004-09-02 18:44:44 +000027746fi
27747
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027748
27749
27750
27751
27752
27753
27754
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027755
27756
27757
27758for ac_func in backtrace ceil ceilf floor floorf getcwd getpagesize getrusage
Reid Spencerab5eaea2004-12-20 00:59:04 +000027759do
27760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27761echo "$as_me:$LINENO: checking for $ac_func" >&5
27762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27763if eval "test \"\${$as_ac_var+set}\" = set"; then
27764 echo $ECHO_N "(cached) $ECHO_C" >&6
27765else
27766 cat >conftest.$ac_ext <<_ACEOF
27767/* confdefs.h. */
27768_ACEOF
27769cat confdefs.h >>conftest.$ac_ext
27770cat >>conftest.$ac_ext <<_ACEOF
27771/* end confdefs.h. */
27772/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27774#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027775
Reid Spencerab5eaea2004-12-20 00:59:04 +000027776/* System header to define __stub macros and hopefully few prototypes,
27777 which can conflict with char $ac_func (); below.
27778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27779 <limits.h> exists even on freestanding compilers. */
27780
27781#ifdef __STDC__
27782# include <limits.h>
27783#else
27784# include <assert.h>
27785#endif
27786
27787#undef $ac_func
27788
27789/* Override any gcc2 internal prototype to avoid an error. */
27790#ifdef __cplusplus
27791extern "C"
27792{
27793#endif
27794/* We use char because int might match the return type of a gcc2
27795 builtin and then its argument prototype would still apply. */
27796char $ac_func ();
27797/* The GNU C library defines this for functions which it implements
27798 to always fail with ENOSYS. Some functions are actually named
27799 something starting with __ and the normal name is an alias. */
27800#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27801choke me
27802#else
27803char (*f) () = $ac_func;
27804#endif
27805#ifdef __cplusplus
27806}
27807#endif
27808
27809int
27810main ()
27811{
27812return f != $ac_func;
27813 ;
27814 return 0;
27815}
27816_ACEOF
27817rm -f conftest.$ac_objext conftest$ac_exeext
27818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27819 (eval $ac_link) 2>conftest.er1
27820 ac_status=$?
27821 grep -v '^ *+' conftest.er1 >conftest.err
27822 rm -f conftest.er1
27823 cat conftest.err >&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); } &&
27826 { ac_try='test -z "$ac_c_werror_flag"
27827 || test ! -s conftest.err'
27828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829 (eval $ac_try) 2>&5
27830 ac_status=$?
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; } &&
27833 { ac_try='test -s conftest$ac_exeext'
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27836 ac_status=$?
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
27839 eval "$as_ac_var=yes"
27840else
27841 echo "$as_me: failed program was:" >&5
27842sed 's/^/| /' conftest.$ac_ext >&5
27843
27844eval "$as_ac_var=no"
27845fi
27846rm -f conftest.err conftest.$ac_objext \
27847 conftest$ac_exeext conftest.$ac_ext
27848fi
27849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27850echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27851if test `eval echo '${'$as_ac_var'}'` = yes; then
27852 cat >>confdefs.h <<_ACEOF
27853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27854_ACEOF
27855
27856fi
27857done
27858
27859
27860
27861
Reid Spencerc29b13d2005-05-14 16:42:52 +000027862
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027863
27864for ac_func in gettimeofday isatty mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027865do
27866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27867echo "$as_me:$LINENO: checking for $ac_func" >&5
27868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27869if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027870 echo $ECHO_N "(cached) $ECHO_C" >&6
27871else
27872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027873/* confdefs.h. */
27874_ACEOF
27875cat confdefs.h >>conftest.$ac_ext
27876cat >>conftest.$ac_ext <<_ACEOF
27877/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27880#define $ac_func innocuous_$ac_func
27881
27882/* System header to define __stub macros and hopefully few prototypes,
27883 which can conflict with char $ac_func (); below.
27884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27885 <limits.h> exists even on freestanding compilers. */
27886
27887#ifdef __STDC__
27888# include <limits.h>
27889#else
27890# include <assert.h>
27891#endif
27892
27893#undef $ac_func
27894
27895/* Override any gcc2 internal prototype to avoid an error. */
27896#ifdef __cplusplus
27897extern "C"
27898{
27899#endif
27900/* We use char because int might match the return type of a gcc2
27901 builtin and then its argument prototype would still apply. */
27902char $ac_func ();
27903/* The GNU C library defines this for functions which it implements
27904 to always fail with ENOSYS. Some functions are actually named
27905 something starting with __ and the normal name is an alias. */
27906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27907choke me
27908#else
27909char (*f) () = $ac_func;
27910#endif
27911#ifdef __cplusplus
27912}
27913#endif
John Criswell7a73b802003-06-30 21:59:07 +000027914
John Criswell7a73b802003-06-30 21:59:07 +000027915int
27916main ()
27917{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027918return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027919 ;
27920 return 0;
27921}
27922_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027923rm -f conftest.$ac_objext conftest$ac_exeext
27924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27925 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027926 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027927 grep -v '^ *+' conftest.er1 >conftest.err
27928 rm -f conftest.er1
27929 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027932 { ac_try='test -z "$ac_c_werror_flag"
27933 || test ! -s conftest.err'
27934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27935 (eval $ac_try) 2>&5
27936 ac_status=$?
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027939 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27941 (eval $ac_try) 2>&5
27942 ac_status=$?
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027945 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027946else
27947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027948sed 's/^/| /' conftest.$ac_ext >&5
27949
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027950eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027951fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027952rm -f conftest.err conftest.$ac_objext \
27953 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027954fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27957if test `eval echo '${'$as_ac_var'}'` = yes; then
27958 cat >>confdefs.h <<_ACEOF
27959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027960_ACEOF
27961
27962fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027963done
John Criswell7a73b802003-06-30 21:59:07 +000027964
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027965
27966
27967
Reid Spencer6af3d262004-12-15 04:01:48 +000027968
27969
Reid Spencer59473af2004-12-25 07:31:29 +000027970
Reid Spencerba46ca32004-12-31 05:49:15 +000027971for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027972do
27973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27974echo "$as_me:$LINENO: checking for $ac_func" >&5
27975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27976if eval "test \"\${$as_ac_var+set}\" = set"; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27978else
27979 cat >conftest.$ac_ext <<_ACEOF
27980/* confdefs.h. */
27981_ACEOF
27982cat confdefs.h >>conftest.$ac_ext
27983cat >>conftest.$ac_ext <<_ACEOF
27984/* end confdefs.h. */
27985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27987#define $ac_func innocuous_$ac_func
27988
27989/* System header to define __stub macros and hopefully few prototypes,
27990 which can conflict with char $ac_func (); below.
27991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27992 <limits.h> exists even on freestanding compilers. */
27993
27994#ifdef __STDC__
27995# include <limits.h>
27996#else
27997# include <assert.h>
27998#endif
27999
28000#undef $ac_func
28001
28002/* Override any gcc2 internal prototype to avoid an error. */
28003#ifdef __cplusplus
28004extern "C"
28005{
28006#endif
28007/* We use char because int might match the return type of a gcc2
28008 builtin and then its argument prototype would still apply. */
28009char $ac_func ();
28010/* The GNU C library defines this for functions which it implements
28011 to always fail with ENOSYS. Some functions are actually named
28012 something starting with __ and the normal name is an alias. */
28013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28014choke me
28015#else
28016char (*f) () = $ac_func;
28017#endif
28018#ifdef __cplusplus
28019}
28020#endif
28021
28022int
28023main ()
28024{
28025return f != $ac_func;
28026 ;
28027 return 0;
28028}
28029_ACEOF
28030rm -f conftest.$ac_objext conftest$ac_exeext
28031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28032 (eval $ac_link) 2>conftest.er1
28033 ac_status=$?
28034 grep -v '^ *+' conftest.er1 >conftest.err
28035 rm -f conftest.er1
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } &&
28039 { ac_try='test -z "$ac_c_werror_flag"
28040 || test ! -s conftest.err'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28043 ac_status=$?
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; } &&
28046 { ac_try='test -s conftest$ac_exeext'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; }; then
28052 eval "$as_ac_var=yes"
28053else
28054 echo "$as_me: failed program was:" >&5
28055sed 's/^/| /' conftest.$ac_ext >&5
28056
28057eval "$as_ac_var=no"
28058fi
28059rm -f conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
28061fi
28062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28064if test `eval echo '${'$as_ac_var'}'` = yes; then
28065 cat >>confdefs.h <<_ACEOF
28066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28067_ACEOF
28068
28069fi
28070done
28071
28072
Reid Spencerba46ca32004-12-31 05:49:15 +000028073
28074
Chris Lattner0b142592005-11-14 06:57:34 +000028075
Chris Lattner511f11d2005-11-14 07:25:50 +000028076for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028077do
28078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28079echo "$as_me:$LINENO: checking for $ac_func" >&5
28080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28081if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028082 echo $ECHO_N "(cached) $ECHO_C" >&6
28083else
28084 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028085/* confdefs.h. */
28086_ACEOF
28087cat confdefs.h >>conftest.$ac_ext
28088cat >>conftest.$ac_ext <<_ACEOF
28089/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28092#define $ac_func innocuous_$ac_func
28093
28094/* System header to define __stub macros and hopefully few prototypes,
28095 which can conflict with char $ac_func (); below.
28096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28097 <limits.h> exists even on freestanding compilers. */
28098
28099#ifdef __STDC__
28100# include <limits.h>
28101#else
28102# include <assert.h>
28103#endif
28104
28105#undef $ac_func
28106
28107/* Override any gcc2 internal prototype to avoid an error. */
28108#ifdef __cplusplus
28109extern "C"
28110{
28111#endif
28112/* We use char because int might match the return type of a gcc2
28113 builtin and then its argument prototype would still apply. */
28114char $ac_func ();
28115/* The GNU C library defines this for functions which it implements
28116 to always fail with ENOSYS. Some functions are actually named
28117 something starting with __ and the normal name is an alias. */
28118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28119choke me
28120#else
28121char (*f) () = $ac_func;
28122#endif
28123#ifdef __cplusplus
28124}
28125#endif
John Criswell7a73b802003-06-30 21:59:07 +000028126
John Criswell7a73b802003-06-30 21:59:07 +000028127int
28128main ()
28129{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028130return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028131 ;
28132 return 0;
28133}
28134_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028135rm -f conftest.$ac_objext conftest$ac_exeext
28136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28137 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +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 Criswell7a73b802003-06-30 21:59:07 +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); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028151 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028157 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028158else
28159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028160sed 's/^/| /' conftest.$ac_ext >&5
28161
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028162eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028163fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028164rm -f conftest.err conftest.$ac_objext \
28165 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028166fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28168echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28169if test `eval echo '${'$as_ac_var'}'` = yes; then
28170 cat >>confdefs.h <<_ACEOF
28171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028172_ACEOF
28173
28174fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028175done
John Criswell7a73b802003-06-30 21:59:07 +000028176
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028177echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28178echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028179if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028180 echo $ECHO_N "(cached) $ECHO_C" >&6
28181else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028182 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028183ac_cpp='$CPP $CPPFLAGS'
28184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28186ac_compiler_gnu=$ac_cv_c_compiler_gnu
28187
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028188 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028189 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028190else
28191 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028192
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028193 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028194_ACEOF
28195cat confdefs.h >>conftest.$ac_ext
28196cat >>conftest.$ac_ext <<_ACEOF
28197/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028198
John Criswella0137d32003-10-13 16:22:01 +000028199#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028200#include <stdlib.h>
28201
John Criswella0137d32003-10-13 16:22:01 +000028202int
28203main ()
28204{
28205
Reid Spencer2706f8c2004-09-19 23:53:36 +000028206volatile double A, B;
28207char Buffer[100];
28208A = 1;
28209A /= 10.0;
28210sprintf(Buffer, "%a", A);
28211B = atof(Buffer);
28212if (A != B)
28213 return (1);
28214if (A != 0x1.999999999999ap-4)
28215 return (1);
28216return (0);
John Criswella0137d32003-10-13 16:22:01 +000028217 ;
28218 return 0;
28219}
28220_ACEOF
28221rm -f conftest$ac_exeext
28222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28223 (eval $ac_link) 2>&5
28224 ac_status=$?
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028232 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028233else
28234 echo "$as_me: program exited with status $ac_status" >&5
28235echo "$as_me: failed program was:" >&5
28236sed 's/^/| /' conftest.$ac_ext >&5
28237
28238( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028239llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028240fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028242fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028243 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028244ac_cpp='$CPP $CPPFLAGS'
28245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28247ac_compiler_gnu=$ac_cv_c_compiler_gnu
28248
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028249fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028250echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28251echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28252 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028253
28254cat >>confdefs.h <<\_ACEOF
28255#define HAVE_PRINTF_A 1
28256_ACEOF
28257
Reid Spencer2706f8c2004-09-19 23:53:36 +000028258 fi
John Criswella0137d32003-10-13 16:22:01 +000028259
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028260# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28261# for constant arguments. Useless!
28262echo "$as_me:$LINENO: checking for working alloca.h" >&5
28263echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28264if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028265 echo $ECHO_N "(cached) $ECHO_C" >&6
28266else
John Criswell0021c312004-02-13 21:57:29 +000028267 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028268/* confdefs.h. */
28269_ACEOF
28270cat confdefs.h >>conftest.$ac_ext
28271cat >>conftest.$ac_ext <<_ACEOF
28272/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028273#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028274int
28275main ()
28276{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028277char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028278 ;
28279 return 0;
28280}
28281_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028282rm -f conftest.$ac_objext conftest$ac_exeext
28283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28284 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028285 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028286 grep -v '^ *+' conftest.er1 >conftest.err
28287 rm -f conftest.er1
28288 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028291 { ac_try='test -z "$ac_c_werror_flag"
28292 || test ! -s conftest.err'
28293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28294 (eval $ac_try) 2>&5
28295 ac_status=$?
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028298 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28300 (eval $ac_try) 2>&5
28301 ac_status=$?
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028304 ac_cv_working_alloca_h=yes
28305else
28306 echo "$as_me: failed program was:" >&5
28307sed 's/^/| /' conftest.$ac_ext >&5
28308
28309ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028310fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028311rm -f conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext conftest.$ac_ext
28313fi
28314echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28315echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28316if test $ac_cv_working_alloca_h = yes; then
28317
28318cat >>confdefs.h <<\_ACEOF
28319#define HAVE_ALLOCA_H 1
28320_ACEOF
28321
28322fi
28323
28324echo "$as_me:$LINENO: checking for alloca" >&5
28325echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28326if test "${ac_cv_func_alloca_works+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28328else
28329 cat >conftest.$ac_ext <<_ACEOF
28330/* confdefs.h. */
28331_ACEOF
28332cat confdefs.h >>conftest.$ac_ext
28333cat >>conftest.$ac_ext <<_ACEOF
28334/* end confdefs.h. */
28335#ifdef __GNUC__
28336# define alloca __builtin_alloca
28337#else
28338# ifdef _MSC_VER
28339# include <malloc.h>
28340# define alloca _alloca
28341# else
28342# if HAVE_ALLOCA_H
28343# include <alloca.h>
28344# else
28345# ifdef _AIX
28346 #pragma alloca
28347# else
28348# ifndef alloca /* predefined by HP cc +Olibcalls */
28349char *alloca ();
28350# endif
28351# endif
28352# endif
28353# endif
28354#endif
28355
28356int
28357main ()
28358{
28359char *p = (char *) alloca (1);
28360 ;
28361 return 0;
28362}
28363_ACEOF
28364rm -f conftest.$ac_objext conftest$ac_exeext
28365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28366 (eval $ac_link) 2>conftest.er1
28367 ac_status=$?
28368 grep -v '^ *+' conftest.er1 >conftest.err
28369 rm -f conftest.er1
28370 cat conftest.err >&5
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); } &&
28373 { ac_try='test -z "$ac_c_werror_flag"
28374 || test ! -s conftest.err'
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); }; } &&
28380 { ac_try='test -s conftest$ac_exeext'
28381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; }; then
28386 ac_cv_func_alloca_works=yes
28387else
28388 echo "$as_me: failed program was:" >&5
28389sed 's/^/| /' conftest.$ac_ext >&5
28390
28391ac_cv_func_alloca_works=no
28392fi
28393rm -f conftest.err conftest.$ac_objext \
28394 conftest$ac_exeext conftest.$ac_ext
28395fi
28396echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28397echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28398
28399if test $ac_cv_func_alloca_works = yes; then
28400
28401cat >>confdefs.h <<\_ACEOF
28402#define HAVE_ALLOCA 1
28403_ACEOF
28404
28405else
28406 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28407# that cause trouble. Some versions do not even contain alloca or
28408# contain a buggy version. If you still want to use their alloca,
28409# use ar to extract alloca.o from them instead of compiling alloca.c.
28410
28411ALLOCA=alloca.$ac_objext
28412
28413cat >>confdefs.h <<\_ACEOF
28414#define C_ALLOCA 1
28415_ACEOF
28416
28417
28418echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28419echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28420if test "${ac_cv_os_cray+set}" = set; then
28421 echo $ECHO_N "(cached) $ECHO_C" >&6
28422else
28423 cat >conftest.$ac_ext <<_ACEOF
28424/* confdefs.h. */
28425_ACEOF
28426cat confdefs.h >>conftest.$ac_ext
28427cat >>conftest.$ac_ext <<_ACEOF
28428/* end confdefs.h. */
28429#if defined(CRAY) && ! defined(CRAY2)
28430webecray
28431#else
28432wenotbecray
28433#endif
28434
28435_ACEOF
28436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28437 $EGREP "webecray" >/dev/null 2>&1; then
28438 ac_cv_os_cray=yes
28439else
28440 ac_cv_os_cray=no
28441fi
28442rm -f conftest*
28443
28444fi
28445echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28446echo "${ECHO_T}$ac_cv_os_cray" >&6
28447if test $ac_cv_os_cray = yes; then
28448 for ac_func in _getb67 GETB67 getb67; do
28449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28450echo "$as_me:$LINENO: checking for $ac_func" >&5
28451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28452if eval "test \"\${$as_ac_var+set}\" = set"; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28454else
28455 cat >conftest.$ac_ext <<_ACEOF
28456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
28461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28463#define $ac_func innocuous_$ac_func
28464
28465/* System header to define __stub macros and hopefully few prototypes,
28466 which can conflict with char $ac_func (); below.
28467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28468 <limits.h> exists even on freestanding compilers. */
28469
28470#ifdef __STDC__
28471# include <limits.h>
28472#else
28473# include <assert.h>
28474#endif
28475
28476#undef $ac_func
28477
28478/* Override any gcc2 internal prototype to avoid an error. */
28479#ifdef __cplusplus
28480extern "C"
28481{
28482#endif
28483/* We use char because int might match the return type of a gcc2
28484 builtin and then its argument prototype would still apply. */
28485char $ac_func ();
28486/* The GNU C library defines this for functions which it implements
28487 to always fail with ENOSYS. Some functions are actually named
28488 something starting with __ and the normal name is an alias. */
28489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28490choke me
28491#else
28492char (*f) () = $ac_func;
28493#endif
28494#ifdef __cplusplus
28495}
28496#endif
28497
28498int
28499main ()
28500{
28501return f != $ac_func;
28502 ;
28503 return 0;
28504}
28505_ACEOF
28506rm -f conftest.$ac_objext conftest$ac_exeext
28507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28508 (eval $ac_link) 2>conftest.er1
28509 ac_status=$?
28510 grep -v '^ *+' conftest.er1 >conftest.err
28511 rm -f conftest.er1
28512 cat conftest.err >&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } &&
28515 { ac_try='test -z "$ac_c_werror_flag"
28516 || test ! -s conftest.err'
28517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28518 (eval $ac_try) 2>&5
28519 ac_status=$?
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; } &&
28522 { ac_try='test -s conftest$ac_exeext'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; }; then
28528 eval "$as_ac_var=yes"
28529else
28530 echo "$as_me: failed program was:" >&5
28531sed 's/^/| /' conftest.$ac_ext >&5
28532
28533eval "$as_ac_var=no"
28534fi
28535rm -f conftest.err conftest.$ac_objext \
28536 conftest$ac_exeext conftest.$ac_ext
28537fi
28538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28540if test `eval echo '${'$as_ac_var'}'` = yes; then
28541
28542cat >>confdefs.h <<_ACEOF
28543#define CRAY_STACKSEG_END $ac_func
28544_ACEOF
28545
28546 break
28547fi
28548
28549 done
28550fi
28551
28552echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28553echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28554if test "${ac_cv_c_stack_direction+set}" = set; then
28555 echo $ECHO_N "(cached) $ECHO_C" >&6
28556else
28557 if test "$cross_compiling" = yes; then
28558 ac_cv_c_stack_direction=0
28559else
28560 cat >conftest.$ac_ext <<_ACEOF
28561/* confdefs.h. */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h. */
28566int
28567find_stack_direction ()
28568{
28569 static char *addr = 0;
28570 auto char dummy;
28571 if (addr == 0)
28572 {
28573 addr = &dummy;
28574 return find_stack_direction ();
28575 }
John Criswell0021c312004-02-13 21:57:29 +000028576 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028577 return (&dummy > addr) ? 1 : -1;
28578}
John Criswell0021c312004-02-13 21:57:29 +000028579
John Criswell0021c312004-02-13 21:57:29 +000028580int
28581main ()
28582{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028583 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028584}
28585_ACEOF
28586rm -f conftest$ac_exeext
28587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28588 (eval $ac_link) 2>&5
28589 ac_status=$?
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 (eval $ac_try) 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028597 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028598else
28599 echo "$as_me: program exited with status $ac_status" >&5
28600echo "$as_me: failed program was:" >&5
28601sed 's/^/| /' conftest.$ac_ext >&5
28602
28603( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028604ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028605fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028607fi
28608fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028609echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28610echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28611
28612cat >>confdefs.h <<_ACEOF
28613#define STACK_DIRECTION $ac_cv_c_stack_direction
28614_ACEOF
28615
28616
John Criswell0021c312004-02-13 21:57:29 +000028617fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028618
28619
28620echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28621echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28622if test "${ac_cv_func_rand48+set}" = set; then
28623 echo $ECHO_N "(cached) $ECHO_C" >&6
28624else
28625 ac_ext=cc
28626ac_cpp='$CXXCPP $CPPFLAGS'
28627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28630
28631 cat >conftest.$ac_ext <<_ACEOF
28632/* confdefs.h. */
28633_ACEOF
28634cat confdefs.h >>conftest.$ac_ext
28635cat >>conftest.$ac_ext <<_ACEOF
28636/* end confdefs.h. */
28637#include <stdlib.h>
28638int
28639main ()
28640{
28641srand48(0);lrand48();drand48();
28642 ;
28643 return 0;
28644}
28645_ACEOF
28646rm -f conftest.$ac_objext
28647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28648 (eval $ac_compile) 2>conftest.er1
28649 ac_status=$?
28650 grep -v '^ *+' conftest.er1 >conftest.err
28651 rm -f conftest.er1
28652 cat conftest.err >&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } &&
28655 { ac_try='test -z "$ac_cxx_werror_flag"
28656 || test ! -s conftest.err'
28657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28658 (eval $ac_try) 2>&5
28659 ac_status=$?
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); }; } &&
28662 { ac_try='test -s conftest.$ac_objext'
28663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664 (eval $ac_try) 2>&5
28665 ac_status=$?
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); }; }; then
28668 ac_cv_func_rand48=yes
28669else
28670 echo "$as_me: failed program was:" >&5
28671sed 's/^/| /' conftest.$ac_ext >&5
28672
28673ac_cv_func_rand48=no
28674fi
28675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28676 ac_ext=c
28677ac_cpp='$CPP $CPPFLAGS'
28678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28680ac_compiler_gnu=$ac_cv_c_compiler_gnu
28681
28682fi
28683echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28684echo "${ECHO_T}$ac_cv_func_rand48" >&6
28685
28686if test "$ac_cv_func_rand48" = "yes" ; then
28687
28688cat >>confdefs.h <<\_ACEOF
28689#define HAVE_RAND48 1
28690_ACEOF
28691
28692fi
John Criswell0021c312004-02-13 21:57:29 +000028693
28694
John Criswell7a73b802003-06-30 21:59:07 +000028695echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28696echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28697if test "${ac_cv_cxx_namespaces+set}" = set; then
28698 echo $ECHO_N "(cached) $ECHO_C" >&6
28699else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028700 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028701ac_cpp='$CXXCPP $CPPFLAGS'
28702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28705
28706 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028707/* confdefs.h. */
28708_ACEOF
28709cat confdefs.h >>conftest.$ac_ext
28710cat >>conftest.$ac_ext <<_ACEOF
28711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028712namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028713int
28714main ()
28715{
28716using namespace Outer::Inner; return i;
28717 ;
28718 return 0;
28719}
28720_ACEOF
28721rm -f conftest.$ac_objext
28722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028723 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028725 grep -v '^ *+' conftest.er1 >conftest.err
28726 rm -f conftest.er1
28727 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028730 { ac_try='test -z "$ac_cxx_werror_flag"
28731 || test ! -s conftest.err'
28732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733 (eval $ac_try) 2>&5
28734 ac_status=$?
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; } &&
28737 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; }; then
28743 ac_cv_cxx_namespaces=yes
28744else
28745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028746sed 's/^/| /' conftest.$ac_ext >&5
28747
John Criswell7a73b802003-06-30 21:59:07 +000028748ac_cv_cxx_namespaces=no
28749fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028751 ac_ext=c
28752ac_cpp='$CPP $CPPFLAGS'
28753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28755ac_compiler_gnu=$ac_cv_c_compiler_gnu
28756
28757
28758fi
28759echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28760echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28761if test "$ac_cv_cxx_namespaces" = yes; then
28762
28763cat >>confdefs.h <<\_ACEOF
28764#define HAVE_NAMESPACES
28765_ACEOF
28766
28767fi
28768
Brian Gaeke90583492003-11-10 03:06:28 +000028769echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28770echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28771if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028772 echo $ECHO_N "(cached) $ECHO_C" >&6
28773else
28774
John Criswell7a73b802003-06-30 21:59:07 +000028775 ac_ext=cc
28776ac_cpp='$CXXCPP $CPPFLAGS'
28777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28780
28781 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028782/* confdefs.h. */
28783_ACEOF
28784cat confdefs.h >>conftest.$ac_ext
28785cat >>conftest.$ac_ext <<_ACEOF
28786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028787#include <ext/hash_map>
28788#ifdef HAVE_NAMESPACES
28789using namespace std;
28790#endif
John Criswell7a73b802003-06-30 21:59:07 +000028791int
28792main ()
28793{
Brian Gaeke90583492003-11-10 03:06:28 +000028794hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028795 ;
28796 return 0;
28797}
28798_ACEOF
28799rm -f conftest.$ac_objext
28800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028801 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028803 grep -v '^ *+' conftest.er1 >conftest.err
28804 rm -f conftest.er1
28805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028808 { ac_try='test -z "$ac_cxx_werror_flag"
28809 || test ! -s conftest.err'
28810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28812 ac_status=$?
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; } &&
28815 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28818 ac_status=$?
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028821 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028822else
28823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028824sed 's/^/| /' conftest.$ac_ext >&5
28825
Brian Gaeke90583492003-11-10 03:06:28 +000028826ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028829 ac_ext=c
28830ac_cpp='$CPP $CPPFLAGS'
28831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28833ac_compiler_gnu=$ac_cv_c_compiler_gnu
28834
John Criswell7a73b802003-06-30 21:59:07 +000028835fi
Brian Gaeke90583492003-11-10 03:06:28 +000028836echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28837echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028838 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28839 then
John Criswell9f011862004-09-24 18:28:00 +000028840
28841cat >>confdefs.h <<\_ACEOF
28842#define HAVE_STD_EXT_HASH_MAP 1
28843_ACEOF
28844
28845 else
28846
28847cat >>confdefs.h <<\_ACEOF
28848#define HAVE_STD_EXT_HASH_MAP 0
28849_ACEOF
28850
Brian Gaeke90583492003-11-10 03:06:28 +000028851 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028852
Brian Gaeke90583492003-11-10 03:06:28 +000028853 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28854echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28855if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28856 echo $ECHO_N "(cached) $ECHO_C" >&6
28857else
28858
Brian Gaeke90583492003-11-10 03:06:28 +000028859 ac_ext=cc
28860ac_cpp='$CXXCPP $CPPFLAGS'
28861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28864
28865 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028866/* confdefs.h. */
28867_ACEOF
28868cat confdefs.h >>conftest.$ac_ext
28869cat >>conftest.$ac_ext <<_ACEOF
28870/* end confdefs.h. */
28871#include <ext/hash_map>
28872#ifdef HAVE_NAMESPACES
28873using namespace __gnu_cxx;
28874#endif
28875int
28876main ()
28877{
28878hash_map<int,int> t;
28879 ;
28880 return 0;
28881}
28882_ACEOF
28883rm -f conftest.$ac_objext
28884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028885 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028887 grep -v '^ *+' conftest.er1 >conftest.err
28888 rm -f conftest.er1
28889 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028892 { ac_try='test -z "$ac_cxx_werror_flag"
28893 || test ! -s conftest.err'
28894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895 (eval $ac_try) 2>&5
28896 ac_status=$?
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; } &&
28899 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28901 (eval $ac_try) 2>&5
28902 ac_status=$?
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; }; then
28905 ac_cv_cxx_have_gnu_ext_hash_map=yes
28906else
28907 echo "$as_me: failed program was:" >&5
28908sed 's/^/| /' conftest.$ac_ext >&5
28909
28910ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028911fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028913 ac_ext=c
28914ac_cpp='$CPP $CPPFLAGS'
28915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28917ac_compiler_gnu=$ac_cv_c_compiler_gnu
28918
28919fi
28920echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28921echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028922 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28923 then
John Criswell9f011862004-09-24 18:28:00 +000028924
28925cat >>confdefs.h <<\_ACEOF
28926#define HAVE_GNU_EXT_HASH_MAP 1
28927_ACEOF
28928
28929 else
28930
28931cat >>confdefs.h <<\_ACEOF
28932#define HAVE_GNU_EXT_HASH_MAP 0
28933_ACEOF
28934
Brian Gaeke90583492003-11-10 03:06:28 +000028935 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028936
Brian Gaeke90583492003-11-10 03:06:28 +000028937 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28938echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28939if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28941else
John Criswell7a73b802003-06-30 21:59:07 +000028942
Brian Gaeke90583492003-11-10 03:06:28 +000028943 ac_ext=cc
28944ac_cpp='$CXXCPP $CPPFLAGS'
28945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28948
28949 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
28955#include <hash_map>
28956int
28957main ()
28958{
28959hash_map<int,int> t;
28960 ;
28961 return 0;
28962}
28963_ACEOF
28964rm -f conftest.$ac_objext
28965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028966 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028967 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028968 grep -v '^ *+' conftest.er1 >conftest.err
28969 rm -f conftest.er1
28970 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028973 { ac_try='test -z "$ac_cxx_werror_flag"
28974 || test ! -s conftest.err'
28975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28977 ac_status=$?
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; } &&
28980 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982 (eval $ac_try) 2>&5
28983 ac_status=$?
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; }; then
28986 ac_cv_cxx_have_global_hash_map=yes
28987else
28988 echo "$as_me: failed program was:" >&5
28989sed 's/^/| /' conftest.$ac_ext >&5
28990
28991ac_cv_cxx_have_global_hash_map=no
28992fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028994 ac_ext=c
28995ac_cpp='$CPP $CPPFLAGS'
28996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28998ac_compiler_gnu=$ac_cv_c_compiler_gnu
28999
29000fi
29001echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29002echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029003 if test "$ac_cv_cxx_have_global_hash_map" = yes
29004 then
John Criswell9f011862004-09-24 18:28:00 +000029005
29006cat >>confdefs.h <<\_ACEOF
29007#define HAVE_GLOBAL_HASH_MAP 1
29008_ACEOF
29009
29010 else
29011
29012cat >>confdefs.h <<\_ACEOF
29013#define HAVE_GLOBAL_HASH_MAP 0
29014_ACEOF
29015
Brian Gaeke90583492003-11-10 03:06:28 +000029016 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029017
Brian Gaeke90583492003-11-10 03:06:28 +000029018echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29019echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29020if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029021 echo $ECHO_N "(cached) $ECHO_C" >&6
29022else
29023
John Criswell7a73b802003-06-30 21:59:07 +000029024 ac_ext=cc
29025ac_cpp='$CXXCPP $CPPFLAGS'
29026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29029
29030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029031/* confdefs.h. */
29032_ACEOF
29033cat confdefs.h >>conftest.$ac_ext
29034cat >>conftest.$ac_ext <<_ACEOF
29035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029036#include <ext/hash_set>
29037#ifdef HAVE_NAMESPACES
29038using namespace std;
29039#endif
John Criswell7a73b802003-06-30 21:59:07 +000029040int
29041main ()
29042{
Brian Gaeke90583492003-11-10 03:06:28 +000029043hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029044 ;
29045 return 0;
29046}
29047_ACEOF
29048rm -f conftest.$ac_objext
29049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029050 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029052 grep -v '^ *+' conftest.er1 >conftest.err
29053 rm -f conftest.er1
29054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029057 { ac_try='test -z "$ac_cxx_werror_flag"
29058 || test ! -s conftest.err'
29059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060 (eval $ac_try) 2>&5
29061 ac_status=$?
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; } &&
29064 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29067 ac_status=$?
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029070 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029071else
29072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029073sed 's/^/| /' conftest.$ac_ext >&5
29074
Brian Gaeke90583492003-11-10 03:06:28 +000029075ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029076fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029078 ac_ext=c
29079ac_cpp='$CPP $CPPFLAGS'
29080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29082ac_compiler_gnu=$ac_cv_c_compiler_gnu
29083
29084fi
29085echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29086echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029087 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29088 then
John Criswell9f011862004-09-24 18:28:00 +000029089
29090cat >>confdefs.h <<\_ACEOF
29091#define HAVE_STD_EXT_HASH_SET 1
29092_ACEOF
29093
29094 else
29095
29096cat >>confdefs.h <<\_ACEOF
29097#define HAVE_STD_EXT_HASH_SET 0
29098_ACEOF
29099
Brian Gaeke90583492003-11-10 03:06:28 +000029100 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029101
Brian Gaeke90583492003-11-10 03:06:28 +000029102 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29103echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29104if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29106else
29107
Brian Gaeke90583492003-11-10 03:06:28 +000029108 ac_ext=cc
29109ac_cpp='$CXXCPP $CPPFLAGS'
29110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29113
John Criswell7a73b802003-06-30 21:59:07 +000029114 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029115/* confdefs.h. */
29116_ACEOF
29117cat confdefs.h >>conftest.$ac_ext
29118cat >>conftest.$ac_ext <<_ACEOF
29119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029120#include <ext/hash_set>
29121#ifdef HAVE_NAMESPACES
29122using namespace __gnu_cxx;
29123#endif
John Criswell7a73b802003-06-30 21:59:07 +000029124int
29125main ()
29126{
Brian Gaeke90583492003-11-10 03:06:28 +000029127hash_set<int> t;
29128 ;
29129 return 0;
29130}
29131_ACEOF
29132rm -f conftest.$ac_objext
29133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029134 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029135 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029136 grep -v '^ *+' conftest.er1 >conftest.err
29137 rm -f conftest.er1
29138 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029141 { ac_try='test -z "$ac_cxx_werror_flag"
29142 || test ! -s conftest.err'
29143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29144 (eval $ac_try) 2>&5
29145 ac_status=$?
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); }; } &&
29148 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29150 (eval $ac_try) 2>&5
29151 ac_status=$?
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); }; }; then
29154 ac_cv_cxx_have_gnu_ext_hash_set=yes
29155else
29156 echo "$as_me: failed program was:" >&5
29157sed 's/^/| /' conftest.$ac_ext >&5
29158
29159ac_cv_cxx_have_gnu_ext_hash_set=no
29160fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029162 ac_ext=c
29163ac_cpp='$CPP $CPPFLAGS'
29164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29166ac_compiler_gnu=$ac_cv_c_compiler_gnu
29167
29168fi
29169echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29170echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029171 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29172 then
John Criswell9f011862004-09-24 18:28:00 +000029173
29174cat >>confdefs.h <<\_ACEOF
29175#define HAVE_GNU_EXT_HASH_SET 1
29176_ACEOF
29177
29178 else
29179
29180cat >>confdefs.h <<\_ACEOF
29181#define HAVE_GNU_EXT_HASH_SET 0
29182_ACEOF
29183
Brian Gaeke90583492003-11-10 03:06:28 +000029184 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029185
Brian Gaeke90583492003-11-10 03:06:28 +000029186 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29187echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29188if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29189 echo $ECHO_N "(cached) $ECHO_C" >&6
29190else
29191
Brian Gaeke90583492003-11-10 03:06:28 +000029192 ac_ext=cc
29193ac_cpp='$CXXCPP $CPPFLAGS'
29194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29197
29198 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029199/* confdefs.h. */
29200_ACEOF
29201cat confdefs.h >>conftest.$ac_ext
29202cat >>conftest.$ac_ext <<_ACEOF
29203/* end confdefs.h. */
29204#include <hash_set>
29205int
29206main ()
29207{
John Criswell7a73b802003-06-30 21:59:07 +000029208hash_set<int> t; return 0;
29209 ;
29210 return 0;
29211}
29212_ACEOF
29213rm -f conftest.$ac_objext
29214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029215 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029217 grep -v '^ *+' conftest.er1 >conftest.err
29218 rm -f conftest.er1
29219 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029222 { ac_try='test -z "$ac_cxx_werror_flag"
29223 || test ! -s conftest.err'
29224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225 (eval $ac_try) 2>&5
29226 ac_status=$?
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; } &&
29229 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29232 ac_status=$?
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029235 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029236else
29237 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029238sed 's/^/| /' conftest.$ac_ext >&5
29239
Brian Gaeke90583492003-11-10 03:06:28 +000029240ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029241fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029243 ac_ext=c
29244ac_cpp='$CPP $CPPFLAGS'
29245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29247ac_compiler_gnu=$ac_cv_c_compiler_gnu
29248
John Criswell7a73b802003-06-30 21:59:07 +000029249fi
Brian Gaeke90583492003-11-10 03:06:28 +000029250echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29251echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029252 if test "$ac_cv_cxx_have_global_hash_set" = yes
29253 then
John Criswell9f011862004-09-24 18:28:00 +000029254
29255cat >>confdefs.h <<\_ACEOF
29256#define HAVE_GLOBAL_HASH_SET 1
29257_ACEOF
29258
29259 else
29260
29261cat >>confdefs.h <<\_ACEOF
29262#define HAVE_GLOBAL_HASH_SET 0
29263_ACEOF
29264
Brian Gaeke90583492003-11-10 03:06:28 +000029265 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029266
John Criswell7a73b802003-06-30 21:59:07 +000029267echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29268echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29269if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29270 echo $ECHO_N "(cached) $ECHO_C" >&6
29271else
29272
John Criswell7a73b802003-06-30 21:59:07 +000029273 ac_ext=cc
29274ac_cpp='$CXXCPP $CPPFLAGS'
29275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29278
29279 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029280/* confdefs.h. */
29281_ACEOF
29282cat confdefs.h >>conftest.$ac_ext
29283cat >>conftest.$ac_ext <<_ACEOF
29284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029285#include <iterator>
29286#ifdef HAVE_NAMESPACES
29287using namespace std;
29288#endif
John Criswell7a73b802003-06-30 21:59:07 +000029289int
29290main ()
29291{
29292iterator<int,int,int> t; return 0;
29293 ;
29294 return 0;
29295}
29296_ACEOF
29297rm -f conftest.$ac_objext
29298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029299 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029300 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029301 grep -v '^ *+' conftest.er1 >conftest.err
29302 rm -f conftest.er1
29303 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029306 { ac_try='test -z "$ac_cxx_werror_flag"
29307 || test ! -s conftest.err'
29308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309 (eval $ac_try) 2>&5
29310 ac_status=$?
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); }; } &&
29313 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29315 (eval $ac_try) 2>&5
29316 ac_status=$?
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; }; then
29319 ac_cv_cxx_have_std_iterator=yes
29320else
29321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029322sed 's/^/| /' conftest.$ac_ext >&5
29323
John Criswell7a73b802003-06-30 21:59:07 +000029324ac_cv_cxx_have_std_iterator=no
29325fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029327 ac_ext=c
29328ac_cpp='$CPP $CPPFLAGS'
29329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29331ac_compiler_gnu=$ac_cv_c_compiler_gnu
29332
29333
29334fi
29335echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29336echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029337if test "$ac_cv_cxx_have_std_iterator" = yes
29338then
John Criswell40468462004-09-24 21:19:06 +000029339
29340cat >>confdefs.h <<\_ACEOF
29341#define HAVE_STD_ITERATOR 1
29342_ACEOF
29343
29344else
29345
29346cat >>confdefs.h <<\_ACEOF
29347#define HAVE_STD_ITERATOR 0
29348_ACEOF
29349
John Criswell7a73b802003-06-30 21:59:07 +000029350fi
29351
29352echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29353echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29354if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29356else
29357
John Criswell7a73b802003-06-30 21:59:07 +000029358 ac_ext=cc
29359ac_cpp='$CXXCPP $CPPFLAGS'
29360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29363
29364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029365/* confdefs.h. */
29366_ACEOF
29367cat confdefs.h >>conftest.$ac_ext
29368cat >>conftest.$ac_ext <<_ACEOF
29369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029370#include <iterator>
29371#ifdef HAVE_NAMESPACES
29372using namespace std;
29373#endif
John Criswell7a73b802003-06-30 21:59:07 +000029374int
29375main ()
29376{
John Criswellc78022e2003-07-29 19:11:58 +000029377bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029378 ;
29379 return 0;
29380}
29381_ACEOF
29382rm -f conftest.$ac_objext
29383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029384 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029386 grep -v '^ *+' conftest.er1 >conftest.err
29387 rm -f conftest.er1
29388 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029391 { ac_try='test -z "$ac_cxx_werror_flag"
29392 || test ! -s conftest.err'
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; } &&
29398 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29401 ac_status=$?
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; }; then
29404 ac_cv_cxx_have_bi_iterator=yes
29405else
29406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029407sed 's/^/| /' conftest.$ac_ext >&5
29408
John Criswell7a73b802003-06-30 21:59:07 +000029409ac_cv_cxx_have_bi_iterator=no
29410fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029412 ac_ext=c
29413ac_cpp='$CPP $CPPFLAGS'
29414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29416ac_compiler_gnu=$ac_cv_c_compiler_gnu
29417
29418
29419fi
29420echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29421echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029422if test "$ac_cv_cxx_have_bi_iterator" = yes
29423then
John Criswell40468462004-09-24 21:19:06 +000029424
29425cat >>confdefs.h <<\_ACEOF
29426#define HAVE_BI_ITERATOR 1
29427_ACEOF
29428
29429else
29430
29431cat >>confdefs.h <<\_ACEOF
29432#define HAVE_BI_ITERATOR 0
29433_ACEOF
29434
John Criswell7a73b802003-06-30 21:59:07 +000029435fi
29436
29437echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29438echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29439if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29441else
29442
John Criswell7a73b802003-06-30 21:59:07 +000029443 ac_ext=cc
29444ac_cpp='$CXXCPP $CPPFLAGS'
29445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29448
29449 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029450/* confdefs.h. */
29451_ACEOF
29452cat confdefs.h >>conftest.$ac_ext
29453cat >>conftest.$ac_ext <<_ACEOF
29454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029455#include <iterator>
29456#ifdef HAVE_NAMESPACES
29457using namespace std;
29458#endif
John Criswell7a73b802003-06-30 21:59:07 +000029459int
29460main ()
29461{
John Criswellc78022e2003-07-29 19:11:58 +000029462forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029463 ;
29464 return 0;
29465}
29466_ACEOF
29467rm -f conftest.$ac_objext
29468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029469 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029471 grep -v '^ *+' conftest.er1 >conftest.err
29472 rm -f conftest.er1
29473 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029476 { ac_try='test -z "$ac_cxx_werror_flag"
29477 || test ! -s conftest.err'
29478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479 (eval $ac_try) 2>&5
29480 ac_status=$?
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); }; } &&
29483 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485 (eval $ac_try) 2>&5
29486 ac_status=$?
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; }; then
29489 ac_cv_cxx_have_fwd_iterator=yes
29490else
29491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029492sed 's/^/| /' conftest.$ac_ext >&5
29493
John Criswell7a73b802003-06-30 21:59:07 +000029494ac_cv_cxx_have_fwd_iterator=no
29495fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029497 ac_ext=c
29498ac_cpp='$CPP $CPPFLAGS'
29499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29501ac_compiler_gnu=$ac_cv_c_compiler_gnu
29502
29503
29504fi
29505echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29506echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029507if test "$ac_cv_cxx_have_fwd_iterator" = yes
29508then
John Criswell40468462004-09-24 21:19:06 +000029509
29510cat >>confdefs.h <<\_ACEOF
29511#define HAVE_FWD_ITERATOR 1
29512_ACEOF
29513
29514else
29515
29516cat >>confdefs.h <<\_ACEOF
29517#define HAVE_FWD_ITERATOR 0
29518_ACEOF
29519
John Criswell7a73b802003-06-30 21:59:07 +000029520fi
29521
29522
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029523echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29524echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29525if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29526 echo $ECHO_N "(cached) $ECHO_C" >&6
29527else
29528 ac_ext=cc
29529ac_cpp='$CXXCPP $CPPFLAGS'
29530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29533
Reid Spencerabec8f92004-10-27 23:03:44 +000029534 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029535/* confdefs.h. */
29536_ACEOF
29537cat confdefs.h >>conftest.$ac_ext
29538cat >>conftest.$ac_ext <<_ACEOF
29539/* end confdefs.h. */
29540#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029541int
29542main ()
29543{
29544float f; isnan(f);
29545 ;
29546 return 0;
29547}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029548_ACEOF
29549rm -f conftest.$ac_objext
29550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029551 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029552 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029553 grep -v '^ *+' conftest.er1 >conftest.err
29554 rm -f conftest.er1
29555 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029558 { ac_try='test -z "$ac_cxx_werror_flag"
29559 || test ! -s conftest.err'
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29562 ac_status=$?
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; } &&
29565 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29571 ac_cv_func_isnan_in_math_h=yes
29572else
29573 echo "$as_me: failed program was:" >&5
29574sed 's/^/| /' conftest.$ac_ext >&5
29575
29576ac_cv_func_isnan_in_math_h=no
29577fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029579 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029580ac_cpp='$CPP $CPPFLAGS'
29581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29583ac_compiler_gnu=$ac_cv_c_compiler_gnu
29584
29585fi
29586echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29587echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029588
29589
29590if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029591
29592cat >>confdefs.h <<\_ACEOF
29593#define HAVE_ISNAN_IN_MATH_H 1
29594_ACEOF
29595
Reid Spencerabec8f92004-10-27 23:03:44 +000029596fi
29597
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029598echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29599echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29600if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29602else
29603 ac_ext=cc
29604ac_cpp='$CXXCPP $CPPFLAGS'
29605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29608
Reid Spencerabec8f92004-10-27 23:03:44 +000029609 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029610/* confdefs.h. */
29611_ACEOF
29612cat confdefs.h >>conftest.$ac_ext
29613cat >>conftest.$ac_ext <<_ACEOF
29614/* end confdefs.h. */
29615#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029616int
29617main ()
29618{
29619float f; isnan(f);
29620 ;
29621 return 0;
29622}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029623_ACEOF
29624rm -f conftest.$ac_objext
29625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029626 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029627 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029628 grep -v '^ *+' conftest.er1 >conftest.err
29629 rm -f conftest.er1
29630 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029633 { ac_try='test -z "$ac_cxx_werror_flag"
29634 || test ! -s conftest.err'
29635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29636 (eval $ac_try) 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; } &&
29640 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29642 (eval $ac_try) 2>&5
29643 ac_status=$?
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; }; then
29646 ac_cv_func_isnan_in_cmath=yes
29647else
29648 echo "$as_me: failed program was:" >&5
29649sed 's/^/| /' conftest.$ac_ext >&5
29650
29651ac_cv_func_isnan_in_cmath=no
29652fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029654 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029655ac_cpp='$CPP $CPPFLAGS'
29656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29658ac_compiler_gnu=$ac_cv_c_compiler_gnu
29659
29660fi
29661echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29662echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029663
29664if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029665
29666cat >>confdefs.h <<\_ACEOF
29667#define HAVE_ISNAN_IN_CMATH 1
29668_ACEOF
29669
Reid Spencerabec8f92004-10-27 23:03:44 +000029670fi
29671
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029672echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29673echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29674if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29676else
29677 ac_ext=cc
29678ac_cpp='$CXXCPP $CPPFLAGS'
29679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29682
Reid Spencerabec8f92004-10-27 23:03:44 +000029683 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029684/* confdefs.h. */
29685_ACEOF
29686cat confdefs.h >>conftest.$ac_ext
29687cat >>conftest.$ac_ext <<_ACEOF
29688/* end confdefs.h. */
29689#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029690int
29691main ()
29692{
29693float f; std::isnan(f);
29694 ;
29695 return 0;
29696}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029697_ACEOF
29698rm -f conftest.$ac_objext
29699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029700 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029701 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029702 grep -v '^ *+' conftest.er1 >conftest.err
29703 rm -f conftest.er1
29704 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029707 { ac_try='test -z "$ac_cxx_werror_flag"
29708 || test ! -s conftest.err'
29709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29710 (eval $ac_try) 2>&5
29711 ac_status=$?
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); }; } &&
29714 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29716 (eval $ac_try) 2>&5
29717 ac_status=$?
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); }; }; then
29720 ac_cv_func_std_isnan_in_cmath=yes
29721else
29722 echo "$as_me: failed program was:" >&5
29723sed 's/^/| /' conftest.$ac_ext >&5
29724
29725ac_cv_func_std_isnan_in_cmath=no
29726fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029728 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029729ac_cpp='$CPP $CPPFLAGS'
29730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29732ac_compiler_gnu=$ac_cv_c_compiler_gnu
29733
29734fi
29735echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29736echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029737
29738if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029739
29740cat >>confdefs.h <<\_ACEOF
29741#define HAVE_STD_ISNAN_IN_CMATH 1
29742_ACEOF
29743
Reid Spencerabec8f92004-10-27 23:03:44 +000029744fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029745
29746
Brian Gaeke52a551d2004-07-21 03:14:12 +000029747echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29748echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29749if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29750 echo $ECHO_N "(cached) $ECHO_C" >&6
29751else
29752 ac_ext=cc
29753ac_cpp='$CXXCPP $CPPFLAGS'
29754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29757
Reid Spencerabec8f92004-10-27 23:03:44 +000029758 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029759/* confdefs.h. */
29760_ACEOF
29761cat confdefs.h >>conftest.$ac_ext
29762cat >>conftest.$ac_ext <<_ACEOF
29763/* end confdefs.h. */
29764#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029765int
29766main ()
29767{
29768float f; isinf(f);
29769 ;
29770 return 0;
29771}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029772_ACEOF
29773rm -f conftest.$ac_objext
29774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029775 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029776 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029777 grep -v '^ *+' conftest.er1 >conftest.err
29778 rm -f conftest.er1
29779 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029782 { ac_try='test -z "$ac_cxx_werror_flag"
29783 || test ! -s conftest.err'
29784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785 (eval $ac_try) 2>&5
29786 ac_status=$?
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; } &&
29789 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29792 ac_status=$?
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; }; then
29795 ac_cv_func_isinf_in_math_h=yes
29796else
29797 echo "$as_me: failed program was:" >&5
29798sed 's/^/| /' conftest.$ac_ext >&5
29799
29800ac_cv_func_isinf_in_math_h=no
29801fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029803 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029804ac_cpp='$CPP $CPPFLAGS'
29805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29807ac_compiler_gnu=$ac_cv_c_compiler_gnu
29808
29809fi
29810echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29811echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029812
29813if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029814
29815cat >>confdefs.h <<\_ACEOF
29816#define HAVE_ISINF_IN_MATH_H 1
29817_ACEOF
29818
Reid Spencerabec8f92004-10-27 23:03:44 +000029819fi
29820
Brian Gaeke52a551d2004-07-21 03:14:12 +000029821echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29822echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29823if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29825else
29826 ac_ext=cc
29827ac_cpp='$CXXCPP $CPPFLAGS'
29828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29831
Reid Spencerabec8f92004-10-27 23:03:44 +000029832 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029833/* confdefs.h. */
29834_ACEOF
29835cat confdefs.h >>conftest.$ac_ext
29836cat >>conftest.$ac_ext <<_ACEOF
29837/* end confdefs.h. */
29838#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029839int
29840main ()
29841{
29842float f; isinf(f);
29843 ;
29844 return 0;
29845}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029846_ACEOF
29847rm -f conftest.$ac_objext
29848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029849 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029850 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029851 grep -v '^ *+' conftest.er1 >conftest.err
29852 rm -f conftest.er1
29853 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029856 { ac_try='test -z "$ac_cxx_werror_flag"
29857 || test ! -s conftest.err'
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; } &&
29863 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865 (eval $ac_try) 2>&5
29866 ac_status=$?
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; }; then
29869 ac_cv_func_isinf_in_cmath=yes
29870else
29871 echo "$as_me: failed program was:" >&5
29872sed 's/^/| /' conftest.$ac_ext >&5
29873
29874ac_cv_func_isinf_in_cmath=no
29875fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029877 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029878ac_cpp='$CPP $CPPFLAGS'
29879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29881ac_compiler_gnu=$ac_cv_c_compiler_gnu
29882
29883fi
29884echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29885echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029886
29887if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029888
29889cat >>confdefs.h <<\_ACEOF
29890#define HAVE_ISINF_IN_CMATH 1
29891_ACEOF
29892
Reid Spencerabec8f92004-10-27 23:03:44 +000029893fi
29894
Brian Gaeke52a551d2004-07-21 03:14:12 +000029895echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29896echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29897if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900 ac_ext=cc
29901ac_cpp='$CXXCPP $CPPFLAGS'
29902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29905
Reid Spencerabec8f92004-10-27 23:03:44 +000029906 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029907/* confdefs.h. */
29908_ACEOF
29909cat confdefs.h >>conftest.$ac_ext
29910cat >>conftest.$ac_ext <<_ACEOF
29911/* end confdefs.h. */
29912#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029913int
29914main ()
29915{
29916float f; std::isinf(f)}
29917 ;
29918 return 0;
29919}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029920_ACEOF
29921rm -f conftest.$ac_objext
29922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029923 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029924 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029925 grep -v '^ *+' conftest.er1 >conftest.err
29926 rm -f conftest.er1
29927 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029930 { ac_try='test -z "$ac_cxx_werror_flag"
29931 || test ! -s conftest.err'
29932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29933 (eval $ac_try) 2>&5
29934 ac_status=$?
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); }; } &&
29937 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939 (eval $ac_try) 2>&5
29940 ac_status=$?
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); }; }; then
29943 ac_cv_func_std_isinf_in_cmath=yes
29944else
29945 echo "$as_me: failed program was:" >&5
29946sed 's/^/| /' conftest.$ac_ext >&5
29947
29948ac_cv_func_std_isinf_in_cmath=no
29949fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029951 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029952ac_cpp='$CPP $CPPFLAGS'
29953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29955ac_compiler_gnu=$ac_cv_c_compiler_gnu
29956
29957fi
29958echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29959echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029960
29961if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029962
29963cat >>confdefs.h <<\_ACEOF
29964#define HAVE_STD_ISINF_IN_CMATH 1
29965_ACEOF
29966
Reid Spencerabec8f92004-10-27 23:03:44 +000029967fi
29968
Brian Gaeked59a6472004-07-21 03:33:58 +000029969echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29970echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29971if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29972 echo $ECHO_N "(cached) $ECHO_C" >&6
29973else
29974 ac_ext=cc
29975ac_cpp='$CXXCPP $CPPFLAGS'
29976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29979
Reid Spencerabec8f92004-10-27 23:03:44 +000029980 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029981/* confdefs.h. */
29982_ACEOF
29983cat confdefs.h >>conftest.$ac_ext
29984cat >>conftest.$ac_ext <<_ACEOF
29985/* end confdefs.h. */
29986#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029987int
29988main ()
29989{
29990float f; finite(f);
29991 ;
29992 return 0;
29993}
Brian Gaeked59a6472004-07-21 03:33:58 +000029994_ACEOF
29995rm -f conftest.$ac_objext
29996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029997 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029998 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029999 grep -v '^ *+' conftest.er1 >conftest.err
30000 rm -f conftest.er1
30001 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030004 { ac_try='test -z "$ac_cxx_werror_flag"
30005 || test ! -s conftest.err'
30006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30007 (eval $ac_try) 2>&5
30008 ac_status=$?
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); }; } &&
30011 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013 (eval $ac_try) 2>&5
30014 ac_status=$?
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; }; then
30017 ac_cv_func_finite_in_ieeefp_h=yes
30018else
30019 echo "$as_me: failed program was:" >&5
30020sed 's/^/| /' conftest.$ac_ext >&5
30021
30022ac_cv_func_finite_in_ieeefp_h=no
30023fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030025 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030026ac_cpp='$CPP $CPPFLAGS'
30027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30029ac_compiler_gnu=$ac_cv_c_compiler_gnu
30030
30031fi
30032echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30033echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030034
Brian Gaeke6802b552004-10-28 05:06:45 +000030035if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030036
30037cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030038#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030039_ACEOF
30040
Reid Spencerabec8f92004-10-27 23:03:44 +000030041fi
30042
30043
30044
John Criswell7a73b802003-06-30 21:59:07 +000030045
30046
30047for ac_header in stdlib.h unistd.h
30048do
30049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30050if eval "test \"\${$as_ac_Header+set}\" = set"; then
30051 echo "$as_me:$LINENO: checking for $ac_header" >&5
30052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30053if eval "test \"\${$as_ac_Header+set}\" = set"; then
30054 echo $ECHO_N "(cached) $ECHO_C" >&6
30055fi
30056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30058else
30059 # Is the header compilable?
30060echo "$as_me:$LINENO: checking $ac_header usability" >&5
30061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30062cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030063/* confdefs.h. */
30064_ACEOF
30065cat confdefs.h >>conftest.$ac_ext
30066cat >>conftest.$ac_ext <<_ACEOF
30067/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030068$ac_includes_default
30069#include <$ac_header>
30070_ACEOF
30071rm -f conftest.$ac_objext
30072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030073 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030075 grep -v '^ *+' conftest.er1 >conftest.err
30076 rm -f conftest.er1
30077 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030080 { ac_try='test -z "$ac_c_werror_flag"
30081 || test ! -s conftest.err'
30082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30083 (eval $ac_try) 2>&5
30084 ac_status=$?
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; } &&
30087 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30089 (eval $ac_try) 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; }; then
30093 ac_header_compiler=yes
30094else
30095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030096sed 's/^/| /' conftest.$ac_ext >&5
30097
John Criswell7a73b802003-06-30 21:59:07 +000030098ac_header_compiler=no
30099fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30102echo "${ECHO_T}$ac_header_compiler" >&6
30103
30104# Is the header present?
30105echo "$as_me:$LINENO: checking $ac_header presence" >&5
30106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30107cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030108/* confdefs.h. */
30109_ACEOF
30110cat confdefs.h >>conftest.$ac_ext
30111cat >>conftest.$ac_ext <<_ACEOF
30112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030113#include <$ac_header>
30114_ACEOF
30115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30117 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030118 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030119 rm -f conftest.er1
30120 cat conftest.err >&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } >/dev/null; then
30123 if test -s conftest.err; then
30124 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030126 else
30127 ac_cpp_err=
30128 fi
30129else
30130 ac_cpp_err=yes
30131fi
30132if test -z "$ac_cpp_err"; then
30133 ac_header_preproc=yes
30134else
30135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030136sed 's/^/| /' conftest.$ac_ext >&5
30137
John Criswell7a73b802003-06-30 21:59:07 +000030138 ac_header_preproc=no
30139fi
30140rm -f conftest.err conftest.$ac_ext
30141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30142echo "${ECHO_T}$ac_header_preproc" >&6
30143
30144# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30146 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30151 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030152 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030153 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030166 (
30167 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030168## ----------------------------------- ##
30169## Report this to llvmbugs@cs.uiuc.edu ##
30170## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030171_ASBOX
30172 ) |
30173 sed "s/^/$as_me: WARNING: /" >&2
30174 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030175esac
30176echo "$as_me:$LINENO: checking for $ac_header" >&5
30177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30178if eval "test \"\${$as_ac_Header+set}\" = set"; then
30179 echo $ECHO_N "(cached) $ECHO_C" >&6
30180else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030181 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030182fi
30183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30185
30186fi
30187if test `eval echo '${'$as_ac_Header'}'` = yes; then
30188 cat >>confdefs.h <<_ACEOF
30189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30190_ACEOF
30191
30192fi
30193
30194done
30195
30196
30197for ac_func in getpagesize
30198do
30199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30200echo "$as_me:$LINENO: checking for $ac_func" >&5
30201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30202if eval "test \"\${$as_ac_var+set}\" = set"; then
30203 echo $ECHO_N "(cached) $ECHO_C" >&6
30204else
30205 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030206/* confdefs.h. */
30207_ACEOF
30208cat confdefs.h >>conftest.$ac_ext
30209cat >>conftest.$ac_ext <<_ACEOF
30210/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30213#define $ac_func innocuous_$ac_func
30214
John Criswell7a73b802003-06-30 21:59:07 +000030215/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030216 which can conflict with char $ac_func (); below.
30217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30218 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030219
John Criswell0c38eaf2003-09-10 15:17:25 +000030220#ifdef __STDC__
30221# include <limits.h>
30222#else
30223# include <assert.h>
30224#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030225
30226#undef $ac_func
30227
John Criswell7a73b802003-06-30 21:59:07 +000030228/* Override any gcc2 internal prototype to avoid an error. */
30229#ifdef __cplusplus
30230extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030231{
John Criswell7a73b802003-06-30 21:59:07 +000030232#endif
30233/* We use char because int might match the return type of a gcc2
30234 builtin and then its argument prototype would still apply. */
30235char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030236/* The GNU C library defines this for functions which it implements
30237 to always fail with ENOSYS. Some functions are actually named
30238 something starting with __ and the normal name is an alias. */
30239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30240choke me
30241#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030242char (*f) () = $ac_func;
30243#endif
30244#ifdef __cplusplus
30245}
John Criswell7a73b802003-06-30 21:59:07 +000030246#endif
30247
John Criswell0c38eaf2003-09-10 15:17:25 +000030248int
30249main ()
30250{
30251return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030252 ;
30253 return 0;
30254}
30255_ACEOF
30256rm -f conftest.$ac_objext conftest$ac_exeext
30257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030258 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030259 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030260 grep -v '^ *+' conftest.er1 >conftest.err
30261 rm -f conftest.er1
30262 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030265 { ac_try='test -z "$ac_c_werror_flag"
30266 || test ! -s conftest.err'
30267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268 (eval $ac_try) 2>&5
30269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
30272 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; }; then
30278 eval "$as_ac_var=yes"
30279else
30280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030281sed 's/^/| /' conftest.$ac_ext >&5
30282
John Criswell7a73b802003-06-30 21:59:07 +000030283eval "$as_ac_var=no"
30284fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030285rm -f conftest.err conftest.$ac_objext \
30286 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030287fi
30288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30290if test `eval echo '${'$as_ac_var'}'` = yes; then
30291 cat >>confdefs.h <<_ACEOF
30292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30293_ACEOF
30294
30295fi
30296done
30297
30298echo "$as_me:$LINENO: checking for working mmap" >&5
30299echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30300if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30302else
30303 if test "$cross_compiling" = yes; then
30304 ac_cv_func_mmap_fixed_mapped=no
30305else
30306 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030307/* confdefs.h. */
30308_ACEOF
30309cat confdefs.h >>conftest.$ac_ext
30310cat >>conftest.$ac_ext <<_ACEOF
30311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030312$ac_includes_default
30313/* malloc might have been renamed as rpl_malloc. */
30314#undef malloc
30315
30316/* Thanks to Mike Haertel and Jim Avera for this test.
30317 Here is a matrix of mmap possibilities:
30318 mmap private not fixed
30319 mmap private fixed at somewhere currently unmapped
30320 mmap private fixed at somewhere already mapped
30321 mmap shared not fixed
30322 mmap shared fixed at somewhere currently unmapped
30323 mmap shared fixed at somewhere already mapped
30324 For private mappings, we should verify that changes cannot be read()
30325 back from the file, nor mmap's back from the file at a different
30326 address. (There have been systems where private was not correctly
30327 implemented like the infamous i386 svr4.0, and systems where the
30328 VM page cache was not coherent with the file system buffer cache
30329 like early versions of FreeBSD and possibly contemporary NetBSD.)
30330 For shared mappings, we should conversely verify that changes get
30331 propagated back to all the places they're supposed to be.
30332
30333 Grep wants private fixed already mapped.
30334 The main things grep needs to know about mmap are:
30335 * does it exist and is it safe to write into the mmap'd area
30336 * how to use it (BSD variants) */
30337
30338#include <fcntl.h>
30339#include <sys/mman.h>
30340
30341#if !STDC_HEADERS && !HAVE_STDLIB_H
30342char *malloc ();
30343#endif
30344
30345/* This mess was copied from the GNU getpagesize.h. */
30346#if !HAVE_GETPAGESIZE
30347/* Assume that all systems that can run configure have sys/param.h. */
30348# if !HAVE_SYS_PARAM_H
30349# define HAVE_SYS_PARAM_H 1
30350# endif
30351
30352# ifdef _SC_PAGESIZE
30353# define getpagesize() sysconf(_SC_PAGESIZE)
30354# else /* no _SC_PAGESIZE */
30355# if HAVE_SYS_PARAM_H
30356# include <sys/param.h>
30357# ifdef EXEC_PAGESIZE
30358# define getpagesize() EXEC_PAGESIZE
30359# else /* no EXEC_PAGESIZE */
30360# ifdef NBPG
30361# define getpagesize() NBPG * CLSIZE
30362# ifndef CLSIZE
30363# define CLSIZE 1
30364# endif /* no CLSIZE */
30365# else /* no NBPG */
30366# ifdef NBPC
30367# define getpagesize() NBPC
30368# else /* no NBPC */
30369# ifdef PAGESIZE
30370# define getpagesize() PAGESIZE
30371# endif /* PAGESIZE */
30372# endif /* no NBPC */
30373# endif /* no NBPG */
30374# endif /* no EXEC_PAGESIZE */
30375# else /* no HAVE_SYS_PARAM_H */
30376# define getpagesize() 8192 /* punt totally */
30377# endif /* no HAVE_SYS_PARAM_H */
30378# endif /* no _SC_PAGESIZE */
30379
30380#endif /* no HAVE_GETPAGESIZE */
30381
30382int
30383main ()
30384{
30385 char *data, *data2, *data3;
30386 int i, pagesize;
30387 int fd;
30388
30389 pagesize = getpagesize ();
30390
30391 /* First, make a file with some known garbage in it. */
30392 data = (char *) malloc (pagesize);
30393 if (!data)
30394 exit (1);
30395 for (i = 0; i < pagesize; ++i)
30396 *(data + i) = rand ();
30397 umask (0);
30398 fd = creat ("conftest.mmap", 0600);
30399 if (fd < 0)
30400 exit (1);
30401 if (write (fd, data, pagesize) != pagesize)
30402 exit (1);
30403 close (fd);
30404
30405 /* Next, try to mmap the file at a fixed address which already has
30406 something else allocated at it. If we can, also make sure that
30407 we see the same garbage. */
30408 fd = open ("conftest.mmap", O_RDWR);
30409 if (fd < 0)
30410 exit (1);
30411 data2 = (char *) malloc (2 * pagesize);
30412 if (!data2)
30413 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030414 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030415 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030416 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030417 exit (1);
30418 for (i = 0; i < pagesize; ++i)
30419 if (*(data + i) != *(data2 + i))
30420 exit (1);
30421
30422 /* Finally, make sure that changes to the mapped area do not
30423 percolate back to the file as seen by read(). (This is a bug on
30424 some variants of i386 svr4.0.) */
30425 for (i = 0; i < pagesize; ++i)
30426 *(data2 + i) = *(data2 + i) + 1;
30427 data3 = (char *) malloc (pagesize);
30428 if (!data3)
30429 exit (1);
30430 if (read (fd, data3, pagesize) != pagesize)
30431 exit (1);
30432 for (i = 0; i < pagesize; ++i)
30433 if (*(data + i) != *(data3 + i))
30434 exit (1);
30435 close (fd);
30436 exit (0);
30437}
30438_ACEOF
30439rm -f conftest$ac_exeext
30440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30441 (eval $ac_link) 2>&5
30442 ac_status=$?
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30447 ac_status=$?
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; }; then
30450 ac_cv_func_mmap_fixed_mapped=yes
30451else
30452 echo "$as_me: program exited with status $ac_status" >&5
30453echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030454sed 's/^/| /' conftest.$ac_ext >&5
30455
John Criswell7a73b802003-06-30 21:59:07 +000030456( exit $ac_status )
30457ac_cv_func_mmap_fixed_mapped=no
30458fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030460fi
30461fi
30462echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30463echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30464if test $ac_cv_func_mmap_fixed_mapped = yes; then
30465
30466cat >>confdefs.h <<\_ACEOF
30467#define HAVE_MMAP 1
30468_ACEOF
30469
30470fi
30471rm -f conftest.mmap
30472
30473echo "$as_me:$LINENO: checking for mmap of files" >&5
30474echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30475if test "${ac_cv_func_mmap_file+set}" = set; then
30476 echo $ECHO_N "(cached) $ECHO_C" >&6
30477else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030478 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030479ac_cpp='$CPP $CPPFLAGS'
30480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30482ac_compiler_gnu=$ac_cv_c_compiler_gnu
30483
30484 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030485 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030486else
30487 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030488
Reid Spencer777ce172004-09-20 04:09:56 +000030489 /* confdefs.h. */
30490_ACEOF
30491cat confdefs.h >>conftest.$ac_ext
30492cat >>conftest.$ac_ext <<_ACEOF
30493/* end confdefs.h. */
30494
John Criswell7a73b802003-06-30 21:59:07 +000030495#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030496#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030497#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030498
30499int
30500main ()
30501{
John Criswell7a73b802003-06-30 21:59:07 +000030502
30503 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030504 fd = creat ("foo",0777);
30505 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30506 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030507 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030508 ;
30509 return 0;
30510}
John Criswell7a73b802003-06-30 21:59:07 +000030511_ACEOF
30512rm -f conftest$ac_exeext
30513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30514 (eval $ac_link) 2>&5
30515 ac_status=$?
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30519 (eval $ac_try) 2>&5
30520 ac_status=$?
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); }; }; then
30523 ac_cv_func_mmap_file=yes
30524else
30525 echo "$as_me: program exited with status $ac_status" >&5
30526echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030527sed 's/^/| /' conftest.$ac_ext >&5
30528
John Criswell7a73b802003-06-30 21:59:07 +000030529( exit $ac_status )
30530ac_cv_func_mmap_file=no
30531fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030533fi
30534 ac_ext=c
30535ac_cpp='$CPP $CPPFLAGS'
30536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30538ac_compiler_gnu=$ac_cv_c_compiler_gnu
30539
30540
30541fi
30542echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30543echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30544if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030545
30546cat >>confdefs.h <<\_ACEOF
30547#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030548_ACEOF
30549
30550 MMAP_FILE=yes
30551
30552fi
30553
Reid Spencer7931a782004-12-27 06:15:02 +000030554echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30555echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30556if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30557 echo $ECHO_N "(cached) $ECHO_C" >&6
30558else
Reid Spencer582a23c2004-12-29 07:07:57 +000030559 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030560 ac_cv_need_dev_zero_for_mmap=yes
30561 else
30562 ac_cv_need_dev_zero_for_mmap=no
30563 fi
30564
30565fi
30566echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30567echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30568if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30569
30570cat >>confdefs.h <<\_ACEOF
30571#define NEED_DEV_ZERO_FOR_MMAP 1
30572_ACEOF
30573
30574fi
John Criswell7a73b802003-06-30 21:59:07 +000030575echo "$as_me:$LINENO: checking for mprotect" >&5
30576echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30577if test "${ac_cv_func_mprotect+set}" = set; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30579else
30580 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030581/* confdefs.h. */
30582_ACEOF
30583cat confdefs.h >>conftest.$ac_ext
30584cat >>conftest.$ac_ext <<_ACEOF
30585/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030586/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30588#define mprotect innocuous_mprotect
30589
John Criswell7a73b802003-06-30 21:59:07 +000030590/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030591 which can conflict with char mprotect (); below.
30592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30593 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030594
John Criswell0c38eaf2003-09-10 15:17:25 +000030595#ifdef __STDC__
30596# include <limits.h>
30597#else
30598# include <assert.h>
30599#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030600
30601#undef mprotect
30602
John Criswell7a73b802003-06-30 21:59:07 +000030603/* Override any gcc2 internal prototype to avoid an error. */
30604#ifdef __cplusplus
30605extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030606{
John Criswell7a73b802003-06-30 21:59:07 +000030607#endif
30608/* We use char because int might match the return type of a gcc2
30609 builtin and then its argument prototype would still apply. */
30610char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030611/* The GNU C library defines this for functions which it implements
30612 to always fail with ENOSYS. Some functions are actually named
30613 something starting with __ and the normal name is an alias. */
30614#if defined (__stub_mprotect) || defined (__stub___mprotect)
30615choke me
30616#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030617char (*f) () = mprotect;
30618#endif
30619#ifdef __cplusplus
30620}
John Criswell7a73b802003-06-30 21:59:07 +000030621#endif
30622
John Criswell0c38eaf2003-09-10 15:17:25 +000030623int
30624main ()
30625{
30626return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030627 ;
30628 return 0;
30629}
30630_ACEOF
30631rm -f conftest.$ac_objext conftest$ac_exeext
30632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030633 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030634 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030635 grep -v '^ *+' conftest.er1 >conftest.err
30636 rm -f conftest.er1
30637 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030640 { ac_try='test -z "$ac_c_werror_flag"
30641 || test ! -s conftest.err'
30642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30643 (eval $ac_try) 2>&5
30644 ac_status=$?
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); }; } &&
30647 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649 (eval $ac_try) 2>&5
30650 ac_status=$?
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); }; }; then
30653 ac_cv_func_mprotect=yes
30654else
30655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030656sed 's/^/| /' conftest.$ac_ext >&5
30657
John Criswell7a73b802003-06-30 21:59:07 +000030658ac_cv_func_mprotect=no
30659fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030660rm -f conftest.err conftest.$ac_objext \
30661 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030662fi
30663echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30664echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30665if test $ac_cv_func_mprotect = yes; then
30666 :
30667else
30668 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30669echo "$as_me: error: Function mprotect() required but not found" >&2;}
30670 { (exit 1); exit 1; }; }
30671fi
30672
30673
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030674if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030675then
Reid Spencer582a23c2004-12-29 07:07:57 +000030676 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30677echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030678fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030679if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030680then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030681 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30682echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030683fi
John Criswell7a73b802003-06-30 21:59:07 +000030684
30685
Brian Gaekef3b24102003-11-16 18:38:14 +000030686echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30687echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030688if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30689 echo $ECHO_N "(cached) $ECHO_C" >&6
30690else
30691 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030692if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030693 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030694 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030695 if test $? -eq 0 ; then
30696 llvm_cv_llvmgcc_sanity="yes"
30697 fi
30698 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030699fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030700fi
30701echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30702echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30703
30704if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030705 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030706 LLVMCC1=$llvmcc1path
30707
Reid Spencer502935f2004-12-22 05:56:56 +000030708 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030709 LLVMCC1PLUS=$llvmcc1pluspath
30710
Reid Spencer502935f2004-12-22 05:56:56 +000030711 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30712 LLVMGCCDIR=$llvmgccdir
30713
Brian Gaekef3b24102003-11-16 18:38:14 +000030714fi
30715
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030716SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030717
30718
Reid Spencere9de0912004-08-20 09:03:57 +000030719# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030720# information into substitutions that will end up in Makefile.config.in
30721# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030722eval LLVM_PREFIX="${prefix}";
30723eval LLVM_BINDIR="${prefix}/bin";
30724eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030725eval LLVM_DATADIR="${prefix}/share/llvm";
30726eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30727eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030728eval LLVM_INCLUDEDIR="${prefix}/include";
30729eval LLVM_INFODIR="${prefix}/info";
30730eval LLVM_MANDIR="${prefix}/man";
30731LLVM_CONFIGTIME=`date`
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030743# Place the various directores into the config.h file as #defines so that we
30744# can know about the installation paths within LLVM.
30745
Reid Spencere9de0912004-08-20 09:03:57 +000030746cat >>confdefs.h <<_ACEOF
30747#define LLVM_PREFIX "$LLVM_PREFIX"
30748_ACEOF
30749
30750
30751cat >>confdefs.h <<_ACEOF
30752#define LLVM_BINDIR "$LLVM_BINDIR"
30753_ACEOF
30754
30755
30756cat >>confdefs.h <<_ACEOF
30757#define LLVM_LIBDIR "$LLVM_LIBDIR"
30758_ACEOF
30759
30760
30761cat >>confdefs.h <<_ACEOF
30762#define LLVM_DATADIR "$LLVM_DATADIR"
30763_ACEOF
30764
30765
30766cat >>confdefs.h <<_ACEOF
30767#define LLVM_DATADIR "$LLVM_DOCSDIR"
30768_ACEOF
30769
30770
30771cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030772#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030773_ACEOF
30774
30775
30776cat >>confdefs.h <<_ACEOF
30777#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30778_ACEOF
30779
30780
30781cat >>confdefs.h <<_ACEOF
30782#define LLVM_INFODIR "$LLVM_INFODIR"
30783_ACEOF
30784
30785
30786cat >>confdefs.h <<_ACEOF
30787#define LLVM_MANDIR "$LLVM_MANDIR"
30788_ACEOF
30789
30790
30791cat >>confdefs.h <<_ACEOF
30792#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30793_ACEOF
30794
30795
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030796
30797 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30798
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030799 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30800
30801 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30802
30803 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30804
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030805 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30806
30807
30808 ac_config_files="$ac_config_files Makefile.config"
30809
30810
Reid Spencer1f319422004-11-29 04:56:35 +000030811 ac_config_files="$ac_config_files docs/doxygen.cfg"
30812
30813
Reid Spencerc0682832005-02-24 19:05:19 +000030814 ac_config_commands="$ac_config_commands setup"
30815
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030816 ac_config_commands="$ac_config_commands Makefile"
30817
30818
30819 ac_config_commands="$ac_config_commands Makefile.common"
30820
30821
30822 ac_config_commands="$ac_config_commands examples/Makefile"
30823
30824
30825 ac_config_commands="$ac_config_commands lib/Makefile"
30826
30827
30828 ac_config_commands="$ac_config_commands runtime/Makefile"
30829
30830
30831 ac_config_commands="$ac_config_commands test/Makefile"
30832
30833
30834 ac_config_commands="$ac_config_commands test/Makefile.tests"
30835
30836
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030837 ac_config_commands="$ac_config_commands tools/Makefile"
30838
30839
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030840 ac_config_commands="$ac_config_commands utils/Makefile"
30841
30842
30843 ac_config_commands="$ac_config_commands projects/Makefile"
30844
30845
30846
John Criswell7a73b802003-06-30 21:59:07 +000030847cat >confcache <<\_ACEOF
30848# This file is a shell script that caches the results of configure
30849# tests run on this system so they can be shared between configure
30850# scripts and configure runs, see configure's option --config-cache.
30851# It is not useful on other systems. If it contains results you don't
30852# want to keep, you may remove or edit it.
30853#
30854# config.status only pays attention to the cache file if you give it
30855# the --recheck option to rerun configure.
30856#
John Criswell0c38eaf2003-09-10 15:17:25 +000030857# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030858# loading this file, other *unset* `ac_cv_foo' will be assigned the
30859# following values.
30860
30861_ACEOF
30862
30863# The following way of writing the cache mishandles newlines in values,
30864# but we know of no workaround that is simple, portable, and efficient.
30865# So, don't put newlines in cache variables' values.
30866# Ultrix sh set writes to stderr and can't be redirected directly,
30867# and sets the high bit in the cache file unless we assign to the vars.
30868{
30869 (set) 2>&1 |
30870 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30871 *ac_space=\ *)
30872 # `set' does not quote correctly, so add quotes (double-quote
30873 # substitution turns \\\\ into \\, and sed turns \\ into \).
30874 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030875 "s/'/'\\\\''/g;
30876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030877 ;;
30878 *)
30879 # `set' quotes correctly as required by POSIX, so do not add quotes.
30880 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030881 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030882 ;;
30883 esac;
30884} |
30885 sed '
30886 t clear
30887 : clear
30888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30889 t end
30890 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30891 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030892if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030893 if test -w $cache_file; then
30894 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30895 cat confcache >$cache_file
30896 else
30897 echo "not updating unwritable cache $cache_file"
30898 fi
30899fi
30900rm -f confcache
30901
30902test "x$prefix" = xNONE && prefix=$ac_default_prefix
30903# Let make expand exec_prefix.
30904test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30905
30906# VPATH may cause trouble with some makes, so we remove $(srcdir),
30907# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30908# trailing colons and then remove the whole line if VPATH becomes empty
30909# (actually we leave an empty line to preserve line numbers).
30910if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030911 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030912s/:*\$(srcdir):*/:/;
30913s/:*\${srcdir}:*/:/;
30914s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030915s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030916s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030917s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030918}'
30919fi
30920
30921DEFS=-DHAVE_CONFIG_H
30922
John Criswell0c38eaf2003-09-10 15:17:25 +000030923ac_libobjs=
30924ac_ltlibobjs=
30925for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30926 # 1. Remove the extension, and $U if already installed.
30927 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030928 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030929 # 2. Add them.
30930 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30931 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30932done
30933LIBOBJS=$ac_libobjs
30934
30935LTLIBOBJS=$ac_ltlibobjs
30936
30937
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030938if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30939 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30940Usually this means the macro was only invoked conditionally." >&5
30941echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30942Usually this means the macro was only invoked conditionally." >&2;}
30943 { (exit 1); exit 1; }; }
30944fi
30945if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30946 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30947Usually this means the macro was only invoked conditionally." >&5
30948echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30949Usually this means the macro was only invoked conditionally." >&2;}
30950 { (exit 1); exit 1; }; }
30951fi
John Criswell7a73b802003-06-30 21:59:07 +000030952
30953: ${CONFIG_STATUS=./config.status}
30954ac_clean_files_save=$ac_clean_files
30955ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30956{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30957echo "$as_me: creating $CONFIG_STATUS" >&6;}
30958cat >$CONFIG_STATUS <<_ACEOF
30959#! $SHELL
30960# Generated by $as_me.
30961# Run this file to recreate the current configuration.
30962# Compiler output produced by configure, useful for debugging
30963# configure, is in config.log if it exists.
30964
30965debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030966ac_cs_recheck=false
30967ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030968SHELL=\${CONFIG_SHELL-$SHELL}
30969_ACEOF
30970
30971cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030972## --------------------- ##
30973## M4sh Initialization. ##
30974## --------------------- ##
30975
30976# Be Bourne compatible
30977if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30978 emulate sh
30979 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030980 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30981 # is contrary to our usage. Disable this feature.
30982 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030983elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30984 set -o posix
30985fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030986DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030987
John Criswell7a73b802003-06-30 21:59:07 +000030988# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030989if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030990 as_unset=unset
30991else
30992 as_unset=false
30993fi
30994
John Criswell0c38eaf2003-09-10 15:17:25 +000030995
30996# Work around bugs in pre-3.0 UWIN ksh.
30997$as_unset ENV MAIL MAILPATH
30998PS1='$ '
30999PS2='> '
31000PS4='+ '
31001
31002# NLS nuisances.
31003for as_var in \
31004 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31005 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31006 LC_TELEPHONE LC_TIME
31007do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031008 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031009 eval $as_var=C; export $as_var
31010 else
31011 $as_unset $as_var
31012 fi
31013done
31014
31015# Required to use basename.
31016if expr a : '\(a\)' >/dev/null 2>&1; then
31017 as_expr=expr
31018else
31019 as_expr=false
31020fi
31021
31022if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31023 as_basename=basename
31024else
31025 as_basename=false
31026fi
John Criswell7a73b802003-06-30 21:59:07 +000031027
31028
31029# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031030as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031031$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31032 X"$0" : 'X\(//\)$' \| \
31033 X"$0" : 'X\(/\)$' \| \
31034 . : '\(.\)' 2>/dev/null ||
31035echo X/"$0" |
31036 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31037 /^X\/\(\/\/\)$/{ s//\1/; q; }
31038 /^X\/\(\/\).*/{ s//\1/; q; }
31039 s/.*/./; q'`
31040
John Criswell0c38eaf2003-09-10 15:17:25 +000031041
John Criswell7a73b802003-06-30 21:59:07 +000031042# PATH needs CR, and LINENO needs CR and PATH.
31043# Avoid depending upon Character Ranges.
31044as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31045as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31046as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31047as_cr_digits='0123456789'
31048as_cr_alnum=$as_cr_Letters$as_cr_digits
31049
31050# The user is always right.
31051if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031052 echo "#! /bin/sh" >conf$$.sh
31053 echo "exit 0" >>conf$$.sh
31054 chmod +x conf$$.sh
31055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031056 PATH_SEPARATOR=';'
31057 else
31058 PATH_SEPARATOR=:
31059 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031060 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031061fi
31062
31063
31064 as_lineno_1=$LINENO
31065 as_lineno_2=$LINENO
31066 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31067 test "x$as_lineno_1" != "x$as_lineno_2" &&
31068 test "x$as_lineno_3" = "x$as_lineno_2" || {
31069 # Find who we are. Look in the path if we contain no path at all
31070 # relative or not.
31071 case $0 in
31072 *[\\/]* ) as_myself=$0 ;;
31073 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31074for as_dir in $PATH
31075do
31076 IFS=$as_save_IFS
31077 test -z "$as_dir" && as_dir=.
31078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31079done
31080
31081 ;;
31082 esac
31083 # We did not find ourselves, most probably we were run as `sh COMMAND'
31084 # in which case we are not to be found in the path.
31085 if test "x$as_myself" = x; then
31086 as_myself=$0
31087 fi
31088 if test ! -f "$as_myself"; then
31089 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31090echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31091 { (exit 1); exit 1; }; }
31092 fi
31093 case $CONFIG_SHELL in
31094 '')
31095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31096for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31097do
31098 IFS=$as_save_IFS
31099 test -z "$as_dir" && as_dir=.
31100 for as_base in sh bash ksh sh5; do
31101 case $as_dir in
31102 /*)
31103 if ("$as_dir/$as_base" -c '
31104 as_lineno_1=$LINENO
31105 as_lineno_2=$LINENO
31106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31107 test "x$as_lineno_1" != "x$as_lineno_2" &&
31108 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031109 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31110 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031111 CONFIG_SHELL=$as_dir/$as_base
31112 export CONFIG_SHELL
31113 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31114 fi;;
31115 esac
31116 done
31117done
31118;;
31119 esac
31120
31121 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31122 # uniformly replaced by the line number. The first 'sed' inserts a
31123 # line-number line before each line; the second 'sed' does the real
31124 # work. The second script uses 'N' to pair each line-number line
31125 # with the numbered line, and appends trailing '-' during
31126 # substitution so that $LINENO is not a special case at line end.
31127 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31128 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31129 sed '=' <$as_myself |
31130 sed '
31131 N
31132 s,$,-,
31133 : loop
31134 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31135 t loop
31136 s,-$,,
31137 s,^['$as_cr_digits']*\n,,
31138 ' >$as_me.lineno &&
31139 chmod +x $as_me.lineno ||
31140 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31141echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31142 { (exit 1); exit 1; }; }
31143
31144 # Don't try to exec as it changes $[0], causing all sort of problems
31145 # (the dirname of $[0] is not the place where we might find the
31146 # original and so on. Autoconf is especially sensible to this).
31147 . ./$as_me.lineno
31148 # Exit status is that of the last command.
31149 exit
31150}
31151
31152
31153case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31154 *c*,-n*) ECHO_N= ECHO_C='
31155' ECHO_T=' ' ;;
31156 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31157 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31158esac
31159
31160if expr a : '\(a\)' >/dev/null 2>&1; then
31161 as_expr=expr
31162else
31163 as_expr=false
31164fi
31165
31166rm -f conf$$ conf$$.exe conf$$.file
31167echo >conf$$.file
31168if ln -s conf$$.file conf$$ 2>/dev/null; then
31169 # We could just check for DJGPP; but this test a) works b) is more generic
31170 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31171 if test -f conf$$.exe; then
31172 # Don't use ln at all; we don't have any links
31173 as_ln_s='cp -p'
31174 else
31175 as_ln_s='ln -s'
31176 fi
31177elif ln conf$$.file conf$$ 2>/dev/null; then
31178 as_ln_s=ln
31179else
31180 as_ln_s='cp -p'
31181fi
31182rm -f conf$$ conf$$.exe conf$$.file
31183
John Criswell0c38eaf2003-09-10 15:17:25 +000031184if mkdir -p . 2>/dev/null; then
31185 as_mkdir_p=:
31186else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031187 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031188 as_mkdir_p=false
31189fi
31190
John Criswell7a73b802003-06-30 21:59:07 +000031191as_executable_p="test -f"
31192
31193# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031194as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031195
31196# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031197as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031198
31199
31200# IFS
31201# We need space, tab and new line, in precisely that order.
31202as_nl='
31203'
31204IFS=" $as_nl"
31205
31206# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031207$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031208
31209exec 6>&1
31210
31211# Open the log real soon, to keep \$[0] and so on meaningful, and to
31212# report actual input values of CONFIG_FILES etc. instead of their
31213# values after options handling. Logging --version etc. is OK.
31214exec 5>>config.log
31215{
31216 echo
31217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31218## Running $as_me. ##
31219_ASBOX
31220} >&5
31221cat >&5 <<_CSEOF
31222
John Criswelle2503892005-11-08 21:13:01 +000031223This file was extended by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031224generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031225
31226 CONFIG_FILES = $CONFIG_FILES
31227 CONFIG_HEADERS = $CONFIG_HEADERS
31228 CONFIG_LINKS = $CONFIG_LINKS
31229 CONFIG_COMMANDS = $CONFIG_COMMANDS
31230 $ $0 $@
31231
31232_CSEOF
31233echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31234echo >&5
31235_ACEOF
31236
31237# Files that config.status was made for.
31238if test -n "$ac_config_files"; then
31239 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31240fi
31241
31242if test -n "$ac_config_headers"; then
31243 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31244fi
31245
31246if test -n "$ac_config_links"; then
31247 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31248fi
31249
31250if test -n "$ac_config_commands"; then
31251 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31252fi
31253
31254cat >>$CONFIG_STATUS <<\_ACEOF
31255
31256ac_cs_usage="\
31257\`$as_me' instantiates files from templates according to the
31258current configuration.
31259
31260Usage: $0 [OPTIONS] [FILE]...
31261
31262 -h, --help print this help, then exit
31263 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031264 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031265 -d, --debug don't remove temporary files
31266 --recheck update $as_me by reconfiguring in the same conditions
31267 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031268 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031269 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031270 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031271
31272Configuration files:
31273$config_files
31274
31275Configuration headers:
31276$config_headers
31277
John Criswellc764fbc2003-09-06 15:17:13 +000031278Configuration commands:
31279$config_commands
31280
John Criswell7a73b802003-06-30 21:59:07 +000031281Report bugs to <bug-autoconf@gnu.org>."
31282_ACEOF
31283
31284cat >>$CONFIG_STATUS <<_ACEOF
31285ac_cs_version="\\
John Criswelle2503892005-11-08 21:13:01 +000031286llvm config.status 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031287configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031288 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31289
Reid Spencer2706f8c2004-09-19 23:53:36 +000031290Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031291This config.status script is free software; the Free Software Foundation
31292gives unlimited permission to copy, distribute and modify it."
31293srcdir=$srcdir
31294INSTALL="$INSTALL"
31295_ACEOF
31296
31297cat >>$CONFIG_STATUS <<\_ACEOF
31298# If no file are specified by the user, then we need to provide default
31299# value. By we need to know if files were specified by the user.
31300ac_need_defaults=:
31301while test $# != 0
31302do
31303 case $1 in
31304 --*=*)
31305 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31306 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031307 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031308 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031309 -*)
31310 ac_option=$1
31311 ac_optarg=$2
31312 ac_shift=shift
31313 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031314 *) # This is not an option, so the user has probably given explicit
31315 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031316 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031317 ac_need_defaults=false;;
31318 esac
31319
John Criswell0c38eaf2003-09-10 15:17:25 +000031320 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031321 # Handling of the options.
31322_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031323cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31325 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031326 --version | --vers* | -V )
31327 echo "$ac_cs_version"; exit 0 ;;
31328 --he | --h)
31329 # Conflict between --help and --header
31330 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31331Try \`$0 --help' for more information." >&5
31332echo "$as_me: error: ambiguous option: $1
31333Try \`$0 --help' for more information." >&2;}
31334 { (exit 1); exit 1; }; };;
31335 --help | --hel | -h )
31336 echo "$ac_cs_usage"; exit 0 ;;
31337 --debug | --d* | -d )
31338 debug=: ;;
31339 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031340 $ac_shift
31341 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031342 ac_need_defaults=false;;
31343 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031344 $ac_shift
31345 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031346 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31348 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31349 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031350
31351 # This is an error.
31352 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31353Try \`$0 --help' for more information." >&5
31354echo "$as_me: error: unrecognized option: $1
31355Try \`$0 --help' for more information." >&2;}
31356 { (exit 1); exit 1; }; } ;;
31357
31358 *) ac_config_targets="$ac_config_targets $1" ;;
31359
31360 esac
31361 shift
31362done
31363
John Criswell0c38eaf2003-09-10 15:17:25 +000031364ac_configure_extra_args=
31365
31366if $ac_cs_silent; then
31367 exec 6>/dev/null
31368 ac_configure_extra_args="$ac_configure_extra_args --silent"
31369fi
31370
31371_ACEOF
31372cat >>$CONFIG_STATUS <<_ACEOF
31373if \$ac_cs_recheck; then
31374 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31375 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31376fi
31377
John Criswell7a73b802003-06-30 21:59:07 +000031378_ACEOF
31379
John Criswellc764fbc2003-09-06 15:17:13 +000031380cat >>$CONFIG_STATUS <<_ACEOF
31381#
31382# INIT-COMMANDS section.
31383#
John Criswell7a73b802003-06-30 21:59:07 +000031384
Reid Spencerc0682832005-02-24 19:05:19 +000031385llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031386
31387_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031388
31389
31390
31391cat >>$CONFIG_STATUS <<\_ACEOF
31392for ac_config_target in $ac_config_targets
31393do
31394 case "$ac_config_target" in
31395 # Handling of arguments.
31396 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031397 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031398 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031399 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31400 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031401 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031402 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031403 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031404 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31405 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031406 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031407 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031408 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031409 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031410 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031411 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31412 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031413 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031414 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31415echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31416 { (exit 1); exit 1; }; };;
31417 esac
31418done
31419
31420# If the user did not use the arguments to specify the items to instantiate,
31421# then the envvar interface is used. Set only those that are not.
31422# We use the long form for the default assignment because of an extremely
31423# bizarre bug on SunOS 4.1.3.
31424if $ac_need_defaults; then
31425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031428fi
31429
John Criswell0c38eaf2003-09-10 15:17:25 +000031430# Have a temporary directory for convenience. Make it in the build tree
31431# simply because there is no reason to put it here, and in addition,
31432# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031433# Create a temporary directory, and hook for its removal unless debugging.
31434$debug ||
31435{
31436 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31437 trap '{ (exit 1); exit 1; }' 1 2 13 15
31438}
31439
31440# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031441
John Criswell7a73b802003-06-30 21:59:07 +000031442{
John Criswell0c38eaf2003-09-10 15:17:25 +000031443 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031444 test -n "$tmp" && test -d "$tmp"
31445} ||
31446{
John Criswell0c38eaf2003-09-10 15:17:25 +000031447 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031448 (umask 077 && mkdir $tmp)
31449} ||
31450{
John Criswell0c38eaf2003-09-10 15:17:25 +000031451 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031452 { (exit 1); exit 1; }
31453}
31454
31455_ACEOF
31456
31457cat >>$CONFIG_STATUS <<_ACEOF
31458
31459#
31460# CONFIG_FILES section.
31461#
31462
31463# No need to generate the scripts if there are no CONFIG_FILES.
31464# This happens for instance when ./config.status config.h
31465if test -n "\$CONFIG_FILES"; then
31466 # Protect against being on the right side of a sed subst in config.status.
31467 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31468 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31469s,@SHELL@,$SHELL,;t t
31470s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31471s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31472s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31473s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31474s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31475s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31476s,@exec_prefix@,$exec_prefix,;t t
31477s,@prefix@,$prefix,;t t
31478s,@program_transform_name@,$program_transform_name,;t t
31479s,@bindir@,$bindir,;t t
31480s,@sbindir@,$sbindir,;t t
31481s,@libexecdir@,$libexecdir,;t t
31482s,@datadir@,$datadir,;t t
31483s,@sysconfdir@,$sysconfdir,;t t
31484s,@sharedstatedir@,$sharedstatedir,;t t
31485s,@localstatedir@,$localstatedir,;t t
31486s,@libdir@,$libdir,;t t
31487s,@includedir@,$includedir,;t t
31488s,@oldincludedir@,$oldincludedir,;t t
31489s,@infodir@,$infodir,;t t
31490s,@mandir@,$mandir,;t t
31491s,@build_alias@,$build_alias,;t t
31492s,@host_alias@,$host_alias,;t t
31493s,@target_alias@,$target_alias,;t t
31494s,@DEFS@,$DEFS,;t t
31495s,@ECHO_C@,$ECHO_C,;t t
31496s,@ECHO_N@,$ECHO_N,;t t
31497s,@ECHO_T@,$ECHO_T,;t t
31498s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031499s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031500s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031501s,@build@,$build,;t t
31502s,@build_cpu@,$build_cpu,;t t
31503s,@build_vendor@,$build_vendor,;t t
31504s,@build_os@,$build_os,;t t
31505s,@host@,$host,;t t
31506s,@host_cpu@,$host_cpu,;t t
31507s,@host_vendor@,$host_vendor,;t t
31508s,@host_os@,$host_os,;t t
31509s,@target@,$target,;t t
31510s,@target_cpu@,$target_cpu,;t t
31511s,@target_vendor@,$target_vendor,;t t
31512s,@target_os@,$target_os,;t t
31513s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031514s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31515s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031516s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031517s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031518s,@CC@,$CC,;t t
31519s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031520s,@LDFLAGS@,$LDFLAGS,;t t
31521s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031522s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031523s,@EXEEXT@,$EXEEXT,;t t
31524s,@OBJEXT@,$OBJEXT,;t t
31525s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031526s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031527s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031528s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031529s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031530s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031531s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031532s,@CXX@,$CXX,;t t
31533s,@CXXFLAGS@,$CXXFLAGS,;t t
31534s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031535s,@LEX@,$LEX,;t t
31536s,@LEXLIB@,$LEXLIB,;t t
31537s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031538s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031539s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031540s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031541s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031542s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031543s,@CMP@,$CMP,;t t
31544s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031545s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031546s,@FIND@,$FIND,;t t
31547s,@GREP@,$GREP,;t t
31548s,@MKDIR@,$MKDIR,;t t
31549s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031550s,@RANLIB@,$RANLIB,;t t
31551s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031552s,@RM@,$RM,;t t
31553s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031554s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031555s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031556s,@GV@,$GV,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031557s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31558s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31559s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031560s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031561s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031562s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031563s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031564s,@GROFF@,$GROFF,;t t
31565s,@GZIP@,$GZIP,;t t
31566s,@POD2HTML@,$POD2HTML,;t t
31567s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031568s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031569s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031570s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031571s,@EGREP@,$EGREP,;t t
31572s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31573s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31574s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31575s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31576s,@LIBADD_DL@,$LIBADD_DL,;t t
31577s,@ECHO@,$ECHO,;t t
31578s,@AR@,$AR,;t t
31579s,@ac_ct_AR@,$ac_ct_AR,;t t
31580s,@STRIP@,$STRIP,;t t
31581s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31582s,@CXXCPP@,$CXXCPP,;t t
31583s,@F77@,$F77,;t t
31584s,@FFLAGS@,$FFLAGS,;t t
31585s,@ac_ct_F77@,$ac_ct_F77,;t t
31586s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031587s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031588s,@LLVMGCC@,$LLVMGCC,;t t
31589s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031590s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031591s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031592s,@LLVMCC1@,$LLVMCC1,;t t
31593s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031594s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031595s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031596s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31597s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31598s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31599s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31600s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31601s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31602s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31603s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31604s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31605s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031606s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031607s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031608CEOF
31609
31610_ACEOF
31611
31612 cat >>$CONFIG_STATUS <<\_ACEOF
31613 # Split the substitutions into bite-sized pieces for seds with
31614 # small command number limits, like on Digital OSF/1 and HP-UX.
31615 ac_max_sed_lines=48
31616 ac_sed_frag=1 # Number of current file.
31617 ac_beg=1 # First line for current file.
31618 ac_end=$ac_max_sed_lines # Line after last line for current file.
31619 ac_more_lines=:
31620 ac_sed_cmds=
31621 while $ac_more_lines; do
31622 if test $ac_beg -gt 1; then
31623 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31624 else
31625 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31626 fi
31627 if test ! -s $tmp/subs.frag; then
31628 ac_more_lines=false
31629 else
31630 # The purpose of the label and of the branching condition is to
31631 # speed up the sed processing (if there are no `@' at all, there
31632 # is no need to browse any of the substitutions).
31633 # These are the two extra sed commands mentioned above.
31634 (echo ':t
31635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31636 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031637 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031638 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031639 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031640 fi
31641 ac_sed_frag=`expr $ac_sed_frag + 1`
31642 ac_beg=$ac_end
31643 ac_end=`expr $ac_end + $ac_max_sed_lines`
31644 fi
31645 done
31646 if test -z "$ac_sed_cmds"; then
31647 ac_sed_cmds=cat
31648 fi
31649fi # test -n "$CONFIG_FILES"
31650
31651_ACEOF
31652cat >>$CONFIG_STATUS <<\_ACEOF
31653for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31655 case $ac_file in
31656 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031657 cat >$tmp/stdin
31658 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031660 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031662 * ) ac_file_in=$ac_file.in ;;
31663 esac
31664
31665 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031668 X"$ac_file" : 'X\(//\)[^/]' \| \
31669 X"$ac_file" : 'X\(//\)$' \| \
31670 X"$ac_file" : 'X\(/\)' \| \
31671 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031672echo X"$ac_file" |
31673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31675 /^X\(\/\/\)$/{ s//\1/; q; }
31676 /^X\(\/\).*/{ s//\1/; q; }
31677 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031678 { if $as_mkdir_p; then
31679 mkdir -p "$ac_dir"
31680 else
31681 as_dir="$ac_dir"
31682 as_dirs=
31683 while test ! -d "$as_dir"; do
31684 as_dirs="$as_dir $as_dirs"
31685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031687 X"$as_dir" : 'X\(//\)[^/]' \| \
31688 X"$as_dir" : 'X\(//\)$' \| \
31689 X"$as_dir" : 'X\(/\)' \| \
31690 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031691echo X"$as_dir" |
31692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31694 /^X\(\/\/\)$/{ s//\1/; q; }
31695 /^X\(\/\).*/{ s//\1/; q; }
31696 s/.*/./; q'`
31697 done
31698 test ! -n "$as_dirs" || mkdir $as_dirs
31699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31700echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31701 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031702
31703 ac_builddir=.
31704
31705if test "$ac_dir" != .; then
31706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31707 # A "../" for each directory in $ac_dir_suffix.
31708 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31709else
31710 ac_dir_suffix= ac_top_builddir=
31711fi
31712
31713case $srcdir in
31714 .) # No --srcdir option. We are building in place.
31715 ac_srcdir=.
31716 if test -z "$ac_top_builddir"; then
31717 ac_top_srcdir=.
31718 else
31719 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31720 fi ;;
31721 [\\/]* | ?:[\\/]* ) # Absolute path.
31722 ac_srcdir=$srcdir$ac_dir_suffix;
31723 ac_top_srcdir=$srcdir ;;
31724 *) # Relative path.
31725 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31726 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31727esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031728
31729# Do not use `cd foo && pwd` to compute absolute paths, because
31730# the directories may not exist.
31731case `pwd` in
31732.) ac_abs_builddir="$ac_dir";;
31733*)
31734 case "$ac_dir" in
31735 .) ac_abs_builddir=`pwd`;;
31736 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31737 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31738 esac;;
31739esac
31740case $ac_abs_builddir in
31741.) ac_abs_top_builddir=${ac_top_builddir}.;;
31742*)
31743 case ${ac_top_builddir}. in
31744 .) ac_abs_top_builddir=$ac_abs_builddir;;
31745 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31746 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31747 esac;;
31748esac
31749case $ac_abs_builddir in
31750.) ac_abs_srcdir=$ac_srcdir;;
31751*)
31752 case $ac_srcdir in
31753 .) ac_abs_srcdir=$ac_abs_builddir;;
31754 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31755 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31756 esac;;
31757esac
31758case $ac_abs_builddir in
31759.) ac_abs_top_srcdir=$ac_top_srcdir;;
31760*)
31761 case $ac_top_srcdir in
31762 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31763 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31764 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31765 esac;;
31766esac
John Criswell7a73b802003-06-30 21:59:07 +000031767
31768
31769 case $INSTALL in
31770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31771 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31772 esac
31773
31774 if test x"$ac_file" != x-; then
31775 { echo "$as_me:$LINENO: creating $ac_file" >&5
31776echo "$as_me: creating $ac_file" >&6;}
31777 rm -f "$ac_file"
31778 fi
31779 # Let's still pretend it is `configure' which instantiates (i.e., don't
31780 # use $as_me), people would be surprised to read:
31781 # /* config.h. Generated by config.status. */
31782 if test x"$ac_file" = x-; then
31783 configure_input=
31784 else
31785 configure_input="$ac_file. "
31786 fi
31787 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031788 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031789
31790 # First look for the input files in the build tree, otherwise in the
31791 # src tree.
31792 ac_file_inputs=`IFS=:
31793 for f in $ac_file_in; do
31794 case $f in
31795 -) echo $tmp/stdin ;;
31796 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031797 # Absolute (can't be DOS-style, as IFS=:)
31798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031799echo "$as_me: error: cannot find input file: $f" >&2;}
31800 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031801 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031802 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031803 if test -f "$f"; then
31804 # Build tree
31805 echo "$f"
31806 elif test -f "$srcdir/$f"; then
31807 # Source tree
31808 echo "$srcdir/$f"
31809 else
31810 # /dev/null tree
31811 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031812echo "$as_me: error: cannot find input file: $f" >&2;}
31813 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031814 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031815 esac
31816 done` || { (exit 1); exit 1; }
31817_ACEOF
31818cat >>$CONFIG_STATUS <<_ACEOF
31819 sed "$ac_vpsub
31820$extrasub
31821_ACEOF
31822cat >>$CONFIG_STATUS <<\_ACEOF
31823:t
31824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31825s,@configure_input@,$configure_input,;t t
31826s,@srcdir@,$ac_srcdir,;t t
31827s,@abs_srcdir@,$ac_abs_srcdir,;t t
31828s,@top_srcdir@,$ac_top_srcdir,;t t
31829s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31830s,@builddir@,$ac_builddir,;t t
31831s,@abs_builddir@,$ac_abs_builddir,;t t
31832s,@top_builddir@,$ac_top_builddir,;t t
31833s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31834s,@INSTALL@,$ac_INSTALL,;t t
31835" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31836 rm -f $tmp/stdin
31837 if test x"$ac_file" != x-; then
31838 mv $tmp/out $ac_file
31839 else
31840 cat $tmp/out
31841 rm -f $tmp/out
31842 fi
31843
31844done
31845_ACEOF
31846cat >>$CONFIG_STATUS <<\_ACEOF
31847
31848#
31849# CONFIG_HEADER section.
31850#
31851
31852# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31853# NAME is the cpp macro being defined and VALUE is the value it is being given.
31854#
31855# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031856ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31857ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031858ac_dC=' '
31859ac_dD=',;t'
31860# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031861ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031862ac_uB='$,\1#\2define\3'
31863ac_uC=' '
31864ac_uD=',;t'
31865
31866for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31868 case $ac_file in
31869 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031870 cat >$tmp/stdin
31871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031875 * ) ac_file_in=$ac_file.in ;;
31876 esac
31877
31878 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31879echo "$as_me: creating $ac_file" >&6;}
31880
31881 # First look for the input files in the build tree, otherwise in the
31882 # src tree.
31883 ac_file_inputs=`IFS=:
31884 for f in $ac_file_in; do
31885 case $f in
31886 -) echo $tmp/stdin ;;
31887 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031888 # Absolute (can't be DOS-style, as IFS=:)
31889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031890echo "$as_me: error: cannot find input file: $f" >&2;}
31891 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031892 # Do quote $f, to prevent DOS paths from being IFS'd.
31893 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031894 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031895 if test -f "$f"; then
31896 # Build tree
31897 echo "$f"
31898 elif test -f "$srcdir/$f"; then
31899 # Source tree
31900 echo "$srcdir/$f"
31901 else
31902 # /dev/null tree
31903 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031904echo "$as_me: error: cannot find input file: $f" >&2;}
31905 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031906 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031907 esac
31908 done` || { (exit 1); exit 1; }
31909 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031910 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031911
31912_ACEOF
31913
31914# Transform confdefs.h into two sed scripts, `conftest.defines' and
31915# `conftest.undefs', that substitutes the proper values into
31916# config.h.in to produce config.h. The first handles `#define'
31917# templates, and the second `#undef' templates.
31918# And first: Protect against being on the right side of a sed subst in
31919# config.status. Protect against being in an unquoted here document
31920# in config.status.
31921rm -f conftest.defines conftest.undefs
31922# Using a here document instead of a string reduces the quoting nightmare.
31923# Putting comments in sed scripts is not portable.
31924#
31925# `end' is used to avoid that the second main sed command (meant for
31926# 0-ary CPP macros) applies to n-ary macro definitions.
31927# See the Autoconf documentation for `clear'.
31928cat >confdef2sed.sed <<\_ACEOF
31929s/[\\&,]/\\&/g
31930s,[\\$`],\\&,g
31931t clear
31932: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031933s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031934t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031935s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031936: end
31937_ACEOF
31938# If some macros were called several times there might be several times
31939# the same #defines, which is useless. Nevertheless, we may not want to
31940# sort them, since we want the *last* AC-DEFINE to be honored.
31941uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31942sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31943rm -f confdef2sed.sed
31944
31945# This sed command replaces #undef with comments. This is necessary, for
31946# example, in the case of _POSIX_SOURCE, which is predefined and required
31947# on some systems where configure will not decide to define it.
31948cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031949s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031950_ACEOF
31951
31952# Break up conftest.defines because some shells have a limit on the size
31953# of here documents, and old seds have small limits too (100 cmds).
31954echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031955echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031956echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31957echo ' :' >>$CONFIG_STATUS
31958rm -f conftest.tail
31959while grep . conftest.defines >/dev/null
31960do
31961 # Write a limited-size here document to $tmp/defines.sed.
31962 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31963 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031964 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031965 # Work around the forget-to-reset-the-flag bug.
31966 echo 't clr' >>$CONFIG_STATUS
31967 echo ': clr' >>$CONFIG_STATUS
31968 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31969 echo 'CEOF
31970 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31971 rm -f $tmp/in
31972 mv $tmp/out $tmp/in
31973' >>$CONFIG_STATUS
31974 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31975 rm -f conftest.defines
31976 mv conftest.tail conftest.defines
31977done
31978rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031979echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031980echo >>$CONFIG_STATUS
31981
31982# Break up conftest.undefs because some shells have a limit on the size
31983# of here documents, and old seds have small limits too (100 cmds).
31984echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31985rm -f conftest.tail
31986while grep . conftest.undefs >/dev/null
31987do
31988 # Write a limited-size here document to $tmp/undefs.sed.
31989 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31990 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031991 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031992 # Work around the forget-to-reset-the-flag bug.
31993 echo 't clr' >>$CONFIG_STATUS
31994 echo ': clr' >>$CONFIG_STATUS
31995 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31996 echo 'CEOF
31997 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31998 rm -f $tmp/in
31999 mv $tmp/out $tmp/in
32000' >>$CONFIG_STATUS
32001 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32002 rm -f conftest.undefs
32003 mv conftest.tail conftest.undefs
32004done
32005rm -f conftest.undefs
32006
32007cat >>$CONFIG_STATUS <<\_ACEOF
32008 # Let's still pretend it is `configure' which instantiates (i.e., don't
32009 # use $as_me), people would be surprised to read:
32010 # /* config.h. Generated by config.status. */
32011 if test x"$ac_file" = x-; then
32012 echo "/* Generated by configure. */" >$tmp/config.h
32013 else
32014 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32015 fi
32016 cat $tmp/in >>$tmp/config.h
32017 rm -f $tmp/in
32018 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032019 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32021echo "$as_me: $ac_file is unchanged" >&6;}
32022 else
32023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032025 X"$ac_file" : 'X\(//\)[^/]' \| \
32026 X"$ac_file" : 'X\(//\)$' \| \
32027 X"$ac_file" : 'X\(/\)' \| \
32028 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032029echo X"$ac_file" |
32030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32032 /^X\(\/\/\)$/{ s//\1/; q; }
32033 /^X\(\/\).*/{ s//\1/; q; }
32034 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032035 { if $as_mkdir_p; then
32036 mkdir -p "$ac_dir"
32037 else
32038 as_dir="$ac_dir"
32039 as_dirs=
32040 while test ! -d "$as_dir"; do
32041 as_dirs="$as_dir $as_dirs"
32042 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032044 X"$as_dir" : 'X\(//\)[^/]' \| \
32045 X"$as_dir" : 'X\(//\)$' \| \
32046 X"$as_dir" : 'X\(/\)' \| \
32047 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032048echo X"$as_dir" |
32049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32051 /^X\(\/\/\)$/{ s//\1/; q; }
32052 /^X\(\/\).*/{ s//\1/; q; }
32053 s/.*/./; q'`
32054 done
32055 test ! -n "$as_dirs" || mkdir $as_dirs
32056 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32057echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32058 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032059
32060 rm -f $ac_file
32061 mv $tmp/config.h $ac_file
32062 fi
32063 else
32064 cat $tmp/config.h
32065 rm -f $tmp/config.h
32066 fi
32067done
32068_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032069cat >>$CONFIG_STATUS <<\_ACEOF
32070
32071#
32072# CONFIG_COMMANDS section.
32073#
32074for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32075 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32076 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32077 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32078$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032079 X"$ac_dest" : 'X\(//\)[^/]' \| \
32080 X"$ac_dest" : 'X\(//\)$' \| \
32081 X"$ac_dest" : 'X\(/\)' \| \
32082 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032083echo X"$ac_dest" |
32084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32086 /^X\(\/\/\)$/{ s//\1/; q; }
32087 /^X\(\/\).*/{ s//\1/; q; }
32088 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032089 { if $as_mkdir_p; then
32090 mkdir -p "$ac_dir"
32091 else
32092 as_dir="$ac_dir"
32093 as_dirs=
32094 while test ! -d "$as_dir"; do
32095 as_dirs="$as_dir $as_dirs"
32096 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32097$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32098 X"$as_dir" : 'X\(//\)[^/]' \| \
32099 X"$as_dir" : 'X\(//\)$' \| \
32100 X"$as_dir" : 'X\(/\)' \| \
32101 . : '\(.\)' 2>/dev/null ||
32102echo X"$as_dir" |
32103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32105 /^X\(\/\/\)$/{ s//\1/; q; }
32106 /^X\(\/\).*/{ s//\1/; q; }
32107 s/.*/./; q'`
32108 done
32109 test ! -n "$as_dirs" || mkdir $as_dirs
32110 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32111echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32112 { (exit 1); exit 1; }; }; }
32113
John Criswellc764fbc2003-09-06 15:17:13 +000032114 ac_builddir=.
32115
32116if test "$ac_dir" != .; then
32117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32118 # A "../" for each directory in $ac_dir_suffix.
32119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32120else
32121 ac_dir_suffix= ac_top_builddir=
32122fi
32123
32124case $srcdir in
32125 .) # No --srcdir option. We are building in place.
32126 ac_srcdir=.
32127 if test -z "$ac_top_builddir"; then
32128 ac_top_srcdir=.
32129 else
32130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32131 fi ;;
32132 [\\/]* | ?:[\\/]* ) # Absolute path.
32133 ac_srcdir=$srcdir$ac_dir_suffix;
32134 ac_top_srcdir=$srcdir ;;
32135 *) # Relative path.
32136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32138esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032139
32140# Do not use `cd foo && pwd` to compute absolute paths, because
32141# the directories may not exist.
32142case `pwd` in
32143.) ac_abs_builddir="$ac_dir";;
32144*)
32145 case "$ac_dir" in
32146 .) ac_abs_builddir=`pwd`;;
32147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32149 esac;;
32150esac
32151case $ac_abs_builddir in
32152.) ac_abs_top_builddir=${ac_top_builddir}.;;
32153*)
32154 case ${ac_top_builddir}. in
32155 .) ac_abs_top_builddir=$ac_abs_builddir;;
32156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32158 esac;;
32159esac
32160case $ac_abs_builddir in
32161.) ac_abs_srcdir=$ac_srcdir;;
32162*)
32163 case $ac_srcdir in
32164 .) ac_abs_srcdir=$ac_abs_builddir;;
32165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32167 esac;;
32168esac
32169case $ac_abs_builddir in
32170.) ac_abs_top_srcdir=$ac_top_srcdir;;
32171*)
32172 case $ac_top_srcdir in
32173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32176 esac;;
32177esac
John Criswellc764fbc2003-09-06 15:17:13 +000032178
32179
32180 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32181echo "$as_me: executing $ac_dest commands" >&6;}
32182 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032183 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32184 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32185 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32186 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32187 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32188 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32189 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32190 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32191 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32192 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32193 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32194 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32195 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32196 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32197 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32198 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32199 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32200 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32201 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32202 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032203 esac
32204done
32205_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032206
32207cat >>$CONFIG_STATUS <<\_ACEOF
32208
32209{ (exit 0); exit 0; }
32210_ACEOF
32211chmod +x $CONFIG_STATUS
32212ac_clean_files=$ac_clean_files_save
32213
32214
32215# configure is writing to config.log, and then calls config.status.
32216# config.status does its own redirection, appending to config.log.
32217# Unfortunately, on DOS this fails, as config.log is still kept open
32218# by configure, so config.status won't be able to write to it; its
32219# output is simply discarded. So we exec the FD to /dev/null,
32220# effectively closing config.log, so it can be properly (re)opened and
32221# appended to by config.status. When coming back to configure, we
32222# need to make the FD available again.
32223if test "$no_create" != yes; then
32224 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032225 ac_config_status_args=
32226 test "$silent" = yes &&
32227 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032228 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032230 exec 5>>config.log
32231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32232 # would make configure fail if this is the last instruction.
32233 $ac_cs_success || { (exit 1); exit 1; }
32234fi
32235
John Criswell12399a12003-09-30 15:55:44 +000032236#
32237# CONFIG_SUBDIRS section.
32238#
32239if test "$no_recursion" != yes; then
32240
32241 # Remove --cache-file and --srcdir arguments so they do not pile up.
32242 ac_sub_configure_args=
32243 ac_prev=
32244 for ac_arg in $ac_configure_args; do
32245 if test -n "$ac_prev"; then
32246 ac_prev=
32247 continue
32248 fi
32249 case $ac_arg in
32250 -cache-file | --cache-file | --cache-fil | --cache-fi \
32251 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32252 ac_prev=cache_file ;;
32253 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32254 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32255 | --c=*)
32256 ;;
32257 --config-cache | -C)
32258 ;;
32259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32260 ac_prev=srcdir ;;
32261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32262 ;;
32263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32264 ac_prev=prefix ;;
32265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32266 ;;
32267 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32268 esac
32269 done
32270
32271 # Always prepend --prefix to ensure using the same prefix
32272 # in subdir configurations.
32273 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32274
32275 ac_popdir=`pwd`
32276 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32277
32278 # Do not complain, so a configure script can configure whichever
32279 # parts of a large source tree are present.
32280 test -d $srcdir/$ac_dir || continue
32281
32282 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32283echo "$as_me: configuring in $ac_dir" >&6;}
32284 { if $as_mkdir_p; then
32285 mkdir -p "$ac_dir"
32286 else
32287 as_dir="$ac_dir"
32288 as_dirs=
32289 while test ! -d "$as_dir"; do
32290 as_dirs="$as_dir $as_dirs"
32291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032293 X"$as_dir" : 'X\(//\)[^/]' \| \
32294 X"$as_dir" : 'X\(//\)$' \| \
32295 X"$as_dir" : 'X\(/\)' \| \
32296 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032297echo X"$as_dir" |
32298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32300 /^X\(\/\/\)$/{ s//\1/; q; }
32301 /^X\(\/\).*/{ s//\1/; q; }
32302 s/.*/./; q'`
32303 done
32304 test ! -n "$as_dirs" || mkdir $as_dirs
32305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32306echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32307 { (exit 1); exit 1; }; }; }
32308
32309 ac_builddir=.
32310
32311if test "$ac_dir" != .; then
32312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32313 # A "../" for each directory in $ac_dir_suffix.
32314 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32315else
32316 ac_dir_suffix= ac_top_builddir=
32317fi
32318
32319case $srcdir in
32320 .) # No --srcdir option. We are building in place.
32321 ac_srcdir=.
32322 if test -z "$ac_top_builddir"; then
32323 ac_top_srcdir=.
32324 else
32325 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32326 fi ;;
32327 [\\/]* | ?:[\\/]* ) # Absolute path.
32328 ac_srcdir=$srcdir$ac_dir_suffix;
32329 ac_top_srcdir=$srcdir ;;
32330 *) # Relative path.
32331 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32332 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32333esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032334
32335# Do not use `cd foo && pwd` to compute absolute paths, because
32336# the directories may not exist.
32337case `pwd` in
32338.) ac_abs_builddir="$ac_dir";;
32339*)
32340 case "$ac_dir" in
32341 .) ac_abs_builddir=`pwd`;;
32342 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32343 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32344 esac;;
32345esac
32346case $ac_abs_builddir in
32347.) ac_abs_top_builddir=${ac_top_builddir}.;;
32348*)
32349 case ${ac_top_builddir}. in
32350 .) ac_abs_top_builddir=$ac_abs_builddir;;
32351 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32352 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32353 esac;;
32354esac
32355case $ac_abs_builddir in
32356.) ac_abs_srcdir=$ac_srcdir;;
32357*)
32358 case $ac_srcdir in
32359 .) ac_abs_srcdir=$ac_abs_builddir;;
32360 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32361 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32362 esac;;
32363esac
32364case $ac_abs_builddir in
32365.) ac_abs_top_srcdir=$ac_top_srcdir;;
32366*)
32367 case $ac_top_srcdir in
32368 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32369 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32370 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32371 esac;;
32372esac
John Criswell12399a12003-09-30 15:55:44 +000032373
32374
32375 cd $ac_dir
32376
32377 # Check for guested configure; otherwise get Cygnus style configure.
32378 if test -f $ac_srcdir/configure.gnu; then
32379 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32380 elif test -f $ac_srcdir/configure; then
32381 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32382 elif test -f $ac_srcdir/configure.in; then
32383 ac_sub_configure=$ac_configure
32384 else
32385 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32386echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32387 ac_sub_configure=
32388 fi
32389
32390 # The recursion is here.
32391 if test -n "$ac_sub_configure"; then
32392 # Make the cache file name correct relative to the subdirectory.
32393 case $cache_file in
32394 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32395 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032396 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032397 esac
32398
32399 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32400echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32401 # The eval makes quoting arguments work.
32402 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032403 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32404 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032405echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32406 { (exit 1); exit 1; }; }
32407 fi
32408
32409 cd $ac_popdir
32410 done
32411fi
32412
Brian Gaekef3b24102003-11-16 18:38:14 +000032413
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032414if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032415 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32416echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032417 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32418echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32419 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32420echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32421 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32422echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32423 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32424echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032425fi