blob: e3e9f5044318bc8e628832583cf856aacd2d45d7 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer57d37252006-04-14 03:01:27 +00003# Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
John Criswellc0c186d2005-11-08 21:11:33 +000011# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencer57d37252006-04-14 03:01:27 +0000428PACKAGE_VERSION='1.8cvs'
429PACKAGE_STRING='llvm 1.8cvs'
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 Spencerc28ccd82006-04-09 20:42:14 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencer57d37252006-04-14 03:01:27 +0000968\`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencer57d37252006-04-14 03:01:27 +00001030 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001038 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001039 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001041 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001042 --enable-threads Use threads if available (default is YES)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001043 --enable-target Build specific host targets:
1044 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001045 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-static[=PKGS]
1049 build static libraries [default=yes]
1050 --enable-fast-install[=PKGS]
1051 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001052 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001057 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1058 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001059 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1062 both]
1063 --with-tags[=TAGS]
1064 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001065
1066Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001067 CC C compiler command
1068 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001073 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080Use these variables to override the choices made by `configure' or to help
1081it to find libraries and programs with nonstandard names/locations.
1082
1083Report bugs to <llvmbugs@cs.uiuc.edu>.
1084_ACEOF
1085fi
1086
1087if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1089 ac_popdir=`pwd`
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1092 ac_builddir=.
1093
1094if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098else
1099 ac_dir_suffix= ac_top_builddir=
1100fi
1101
1102case $srcdir in
1103 .) # No --srcdir option. We are building in place.
1104 ac_srcdir=.
1105 if test -z "$ac_top_builddir"; then
1106 ac_top_srcdir=.
1107 else
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109 fi ;;
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1113 *) # Relative path.
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001117
1118# Do not use `cd foo && pwd` to compute absolute paths, because
1119# the directories may not exist.
1120case `pwd` in
1121.) ac_abs_builddir="$ac_dir";;
1122*)
1123 case "$ac_dir" in
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127 esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_builddir=${ac_top_builddir}.;;
1131*)
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136 esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_srcdir=$ac_srcdir;;
1140*)
1141 case $ac_srcdir in
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145 esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_top_srcdir=$ac_top_srcdir;;
1149*)
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 esac;;
1155esac
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 cd $ac_dir
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1160 echo
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1163 echo
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001166 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001167 echo
1168 $ac_configure --help
1169 else
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 fi
1172 cd $ac_popdir
1173 done
1174fi
1175
1176test -n "$ac_init_help" && exit 0
1177if $ac_init_version; then
1178 cat <<\_ACEOF
Reid Spencer57d37252006-04-14 03:01:27 +00001179llvm configure 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001180generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001181
Reid Spencer2706f8c2004-09-19 23:53:36 +00001182Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001183This configure script is free software; the Free Software Foundation
1184gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001185
John Criswellc0c186d2005-11-08 21:11:33 +00001186Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001187_ACEOF
1188 exit 0
1189fi
1190exec 5>config.log
1191cat >&5 <<_ACEOF
1192This file contains any messages produced by compilers while
1193running configure, to aid debugging if configure makes a mistake.
1194
Reid Spencer57d37252006-04-14 03:01:27 +00001195It was created by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001196generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001197
1198 $ $0 $@
1199
1200_ACEOF
1201{
1202cat <<_ASUNAME
1203## --------- ##
1204## Platform. ##
1205## --------- ##
1206
1207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215
1216/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223
1224_ASUNAME
1225
1226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227for as_dir in $PATH
1228do
1229 IFS=$as_save_IFS
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1232done
1233
1234} >&5
1235
1236cat >&5 <<_ACEOF
1237
1238
1239## ----------- ##
1240## Core tests. ##
1241## ----------- ##
1242
1243_ACEOF
1244
1245
1246# Keep a trace of the command line.
1247# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001248# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001249# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001250# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001251ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001252ac_configure_args0=
1253ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001254ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001255ac_must_keep_next=false
1256for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001257do
John Criswell0c38eaf2003-09-10 15:17:25 +00001258 for ac_arg
1259 do
1260 case $ac_arg in
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 continue ;;
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 esac
1268 case $ac_pass in
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 2)
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001273 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001274 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001275 case $ac_arg in
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 esac
1283 ;;
1284 -* ) ac_must_keep_next=true ;;
1285 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001286 fi
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1289 ac_sep=" "
1290 ;;
1291 esac
1292 done
John Criswell7a73b802003-06-30 21:59:07 +00001293done
John Criswell0c38eaf2003-09-10 15:17:25 +00001294$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001296
1297# When interrupted or exit'd, cleanup temporary files, and complete
1298# config.log. We remove comments because anyway the quotes in there
1299# would cause problems or look ugly.
1300# WARNING: Be sure not to use single quotes in there, as some shells,
1301# such as our DU 5.0 friend, will then `close' the trap.
1302trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1304 {
1305 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001306
John Criswell7a73b802003-06-30 21:59:07 +00001307 cat <<\_ASBOX
1308## ---------------- ##
1309## Cache variables. ##
1310## ---------------- ##
1311_ASBOX
1312 echo
1313 # The following way of writing the cache mishandles newlines in values,
1314{
1315 (set) 2>&1 |
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 *ac_space=\ *)
1318 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001321 ;;
1322 *)
1323 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001325 ;;
1326 esac;
1327}
1328 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001329
1330 cat <<\_ASBOX
1331## ----------------- ##
1332## Output variables. ##
1333## ----------------- ##
1334_ASBOX
1335 echo
1336 for ac_var in $ac_subst_vars
1337 do
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1342
1343 if test -n "$ac_subst_files"; then
1344 cat <<\_ASBOX
1345## ------------- ##
1346## Output files. ##
1347## ------------- ##
1348_ASBOX
1349 echo
1350 for ac_var in $ac_subst_files
1351 do
1352 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001353 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001354 done | sort
1355 echo
1356 fi
1357
John Criswell7a73b802003-06-30 21:59:07 +00001358 if test -s confdefs.h; then
1359 cat <<\_ASBOX
1360## ----------- ##
1361## confdefs.h. ##
1362## ----------- ##
1363_ASBOX
1364 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001365 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001366 echo
1367 fi
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1371 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001372 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 exit $exit_status
1375 ' 0
1376for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378done
1379ac_signal=0
1380
1381# confdefs.h avoids OS command line length limits that DEFS can exceed.
1382rm -rf conftest* confdefs.h
1383# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384echo >confdefs.h
1385
1386# Predefined preprocessor variables.
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_NAME "$PACKAGE_NAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_VERSION "$PACKAGE_VERSION"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_STRING "$PACKAGE_STRING"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410_ACEOF
1411
1412
1413# Let the site file select an alternate cache file if it wants to.
1414# Prefer explicitly selected file to automatically selected ones.
1415if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 else
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 fi
1421fi
1422for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1427 . "$ac_site_file"
1428 fi
1429done
1430
1431if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436echo "$as_me: loading cache $cache_file" >&6;}
1437 case $cache_file in
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1440 esac
1441 fi
1442else
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444echo "$as_me: creating cache $cache_file" >&6;}
1445 >$cache_file
1446fi
1447
1448# Check that the precious variables saved in the cache have kept the same
1449# value.
1450ac_cache_corrupted=false
1451for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1458 set,)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,set)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,);;
1467 *)
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001470echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001472echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001474echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001476 fi;;
1477 esac
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1480 case $ac_new_val in
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1484 esac
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488 esac
1489 fi
1490done
1491if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1497fi
1498
1499ac_ext=c
1500ac_cpp='$CPP $CPPFLAGS'
1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
John Criswell0c38eaf2003-09-10 15:17:25 +00001531
Misha Brukman19098e52005-05-12 22:15:34 +00001532LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001533
1534
1535
1536
1537
1538
1539
John Criswell7a73b802003-06-30 21:59:07 +00001540ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001541for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555done
1556if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001559 { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
John Criswell392aaa32003-07-22 19:18:09 +00001565
Reid Spencer2706f8c2004-09-19 23:53:36 +00001566if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001569echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001571 fi
John Criswell93e1c722003-09-15 17:04:06 +00001572fi
1573
John Criswell33a911a2003-11-25 20:36:46 +00001574for i in `ls ${srcdir}/projects`
1575do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001576 if test -d ${srcdir}/projects/${i} ; then
1577 case ${i} in
1578 "CVS") ;;
1579 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001580
Reid Spencer4d68ba22004-09-07 16:35:45 +00001581subdirs="$subdirs projects/sample"
1582 ;;
1583 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001584
Reid Spencer4d68ba22004-09-07 16:35:45 +00001585subdirs="$subdirs projects/Stacker"
1586 ;;
1587 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001588
Reid Spencer4d68ba22004-09-07 16:35:45 +00001589subdirs="$subdirs projects/llvm-test"
1590 ;;
1591 "llvm-reopt")
1592
1593subdirs="$subdirs projects/llvm-reopt"
1594;;
1595 "llvm-gcc")
1596
1597subdirs="$subdirs projects/llvm-gcc"
1598 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001599 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001600
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001601subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001602 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001603 "llvm-tv")
1604
1605subdirs="$subdirs projects/llvm-tv"
1606 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001607 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001608
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001609subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001610 ;;
John Criswell241116f2005-12-19 20:27:24 +00001611 "llvm-kernel")
1612
1613subdirs="$subdirs projects/llvm-kernel"
1614 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001615 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001616 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001618 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001619 esac
John Criswell33a911a2003-11-25 20:36:46 +00001620 fi
1621done
John Criswell559a6c12003-09-30 16:31:48 +00001622
John Criswell7a73b802003-06-30 21:59:07 +00001623
1624# Make sure we can run config.sub.
1625$ac_config_sub sun4 >/dev/null 2>&1 ||
1626 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628 { (exit 1); exit 1; }; }
1629
1630echo "$as_me:$LINENO: checking build system type" >&5
1631echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632if test "${ac_cv_build+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_build_alias=$build_alias
1636test -z "$ac_cv_build_alias" &&
1637 ac_cv_build_alias=`$ac_config_guess`
1638test -z "$ac_cv_build_alias" &&
1639 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641 { (exit 1); exit 1; }; }
1642ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1646
1647fi
1648echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649echo "${ECHO_T}$ac_cv_build" >&6
1650build=$ac_cv_build
1651build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656echo "$as_me:$LINENO: checking host system type" >&5
1657echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658if test "${ac_cv_host+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661 ac_cv_host_alias=$host_alias
1662test -z "$ac_cv_host_alias" &&
1663 ac_cv_host_alias=$ac_cv_build_alias
1664ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667 { (exit 1); exit 1; }; }
1668
1669fi
1670echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671echo "${ECHO_T}$ac_cv_host" >&6
1672host=$ac_cv_host
1673host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678echo "$as_me:$LINENO: checking target system type" >&5
1679echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680if test "${ac_cv_target+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683 ac_cv_target_alias=$target_alias
1684test "x$ac_cv_target_alias" = "x" &&
1685 ac_cv_target_alias=$ac_cv_host_alias
1686ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689 { (exit 1); exit 1; }; }
1690
1691fi
1692echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693echo "${ECHO_T}$ac_cv_target" >&6
1694target=$ac_cv_target
1695target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700# The aliases save the names the user supplied, while $host etc.
1701# will get canonicalized.
1702test -n "$target_alias" &&
1703 test "$program_prefix$program_suffix$program_transform_name" = \
1704 NONENONEs,x,x, &&
1705 program_prefix=${target_alias}-
1706
Reid Spencer7b3e8512004-12-24 06:29:05 +00001707echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001713 *-*-aix*)
1714 llvm_cv_os_type="AIX"
1715 llvm_cv_platform_type="Unix" ;;
1716 *-*-cygwin*)
1717 llvm_cv_os_type="Cygwin"
1718 llvm_cv_platform_type="Unix" ;;
1719 *-*-darwin*)
1720 llvm_cv_os_type="Darwin"
1721 llvm_cv_platform_type="Unix" ;;
1722 *-*-freebsd*)
1723 llvm_cv_os_type="FreeBSD"
1724 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001725 *-*-hpux*)
1726 llvm_cv_os_type="HP-UX"
1727 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001728 *-*-interix*)
1729 llvm_cv_os_type="Interix"
1730 llvm_cv_platform_type="Unix" ;;
1731 *-*-linux*)
1732 llvm_cv_os_type="Linux"
1733 llvm_cv_platform_type="Unix" ;;
1734 *-*-solaris*)
1735 llvm_cv_os_type="SunOS"
1736 llvm_cv_platform_type="Unix" ;;
1737 *-*-win32*)
1738 llvm_cv_os_type="Win32"
1739 llvm_cv_platform_type="Win32" ;;
1740 *-*-mingw*)
1741 llvm_cv_os_type="MingW"
1742 llvm_cv_platform_type="Win32" ;;
1743 *)
1744 llvm_cv_os_type="Unknown"
1745 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001746esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001747fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001748echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1749echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001750
Reid Spencer7b3e8512004-12-24 06:29:05 +00001751if test "$llvm_cv_os_type" = "Unknown" ; then
1752 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1753echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001754 { (exit 1); exit 1; }; }
1755fi
1756
Reid Spencer7b3e8512004-12-24 06:29:05 +00001757OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001758
1759
Reid Spencer7b3e8512004-12-24 06:29:05 +00001760case $llvm_cv_platform_type in
1761 Unix)
1762
1763cat >>confdefs.h <<\_ACEOF
1764#define LLVM_ON_UNIX 1
1765_ACEOF
1766
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001767 LLVM_ON_UNIX=1
1768
1769 LLVM_ON_WIN32=0
1770
Reid Spencer7b3e8512004-12-24 06:29:05 +00001771 ;;
1772 Win32)
1773
1774cat >>confdefs.h <<\_ACEOF
1775#define LLVM_ON_WIN32 1
1776_ACEOF
1777
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001778 LLVM_ON_UNIX=0
1779
1780 LLVM_ON_WIN32=1
1781
Reid Spencer7b3e8512004-12-24 06:29:05 +00001782 ;;
1783esac
1784
Reid Spencer73fb5482004-08-31 14:20:36 +00001785echo "$as_me:$LINENO: checking target architecture" >&5
1786echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001787if test "${llvm_cv_target_arch+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001791 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001792 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001793 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1794 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001795 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001796 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001797 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001798esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001799fi
1800echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1801echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001802
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001803if test "$llvm_cv_target_arch" = "Unknown" ; then
1804 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1805echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1806fi
John Criswell76595452003-07-01 22:07:39 +00001807
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001808ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001809
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001810
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001811ac_ext=c
1812ac_cpp='$CPP $CPPFLAGS'
1813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001816if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818set dummy ${ac_tool_prefix}gcc; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826else
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838done
1839done
1840
1841fi
1842fi
1843CC=$ac_cv_prog_CC
1844if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846echo "${ECHO_T}$CC" >&6
1847else
1848 echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852fi
1853if test -z "$ac_cv_prog_CC"; then
1854 ac_ct_CC=$CC
1855 # Extract the first word of "gcc", so it can be a program name with args.
1856set dummy gcc; ac_word=$2
1857echo "$as_me:$LINENO: checking for $ac_word" >&5
1858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864else
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="gcc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876done
1877done
1878
1879fi
1880fi
1881ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884echo "${ECHO_T}$ac_ct_CC" >&6
1885else
1886 echo "$as_me:$LINENO: result: no" >&5
1887echo "${ECHO_T}no" >&6
1888fi
1889
1890 CC=$ac_ct_CC
1891else
1892 CC="$ac_cv_prog_CC"
1893fi
1894
1895if test -z "$CC"; then
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898set dummy ${ac_tool_prefix}cc; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC="${ac_tool_prefix}cc"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1917 fi
1918done
1919done
1920
1921fi
1922fi
1923CC=$ac_cv_prog_CC
1924if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926echo "${ECHO_T}$CC" >&6
1927else
1928 echo "$as_me:$LINENO: result: no" >&5
1929echo "${ECHO_T}no" >&6
1930fi
1931
1932fi
1933if test -z "$ac_cv_prog_CC"; then
1934 ac_ct_CC=$CC
1935 # Extract the first word of "cc", so it can be a program name with args.
1936set dummy cc; ac_word=$2
1937echo "$as_me:$LINENO: checking for $ac_word" >&5
1938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941else
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944else
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1955 fi
1956done
1957done
1958
1959fi
1960fi
1961ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964echo "${ECHO_T}$ac_ct_CC" >&6
1965else
1966 echo "$as_me:$LINENO: result: no" >&5
1967echo "${ECHO_T}no" >&6
1968fi
1969
1970 CC=$ac_ct_CC
1971else
1972 CC="$ac_cv_prog_CC"
1973fi
1974
1975fi
1976if test -z "$CC"; then
1977 # Extract the first word of "cc", so it can be a program name with args.
1978set dummy cc; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
1987 ac_prog_rejected=no
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996 ac_prog_rejected=yes
1997 continue
1998 fi
1999 ac_cv_prog_CC="cc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003done
2004done
2005
2006if test $ac_prog_rejected = yes; then
2007 # We found a bogon in the path, so make sure we never use it.
2008 set dummy $ac_cv_prog_CC
2009 shift
2010 if test $# != 0; then
2011 # We chose a different compiler from the bogus one.
2012 # However, it has the same basename, so the bogon will be chosen
2013 # first if we set CC to just the basename; use the full file name.
2014 shift
2015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016 fi
2017fi
2018fi
2019fi
2020CC=$ac_cv_prog_CC
2021if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023echo "${ECHO_T}$CC" >&6
2024else
2025 echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6
2027fi
2028
2029fi
2030if test -z "$CC"; then
2031 if test -n "$ac_tool_prefix"; then
2032 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002033 do
2034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055done
2056done
2057
2058fi
2059fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060CC=$ac_cv_prog_CC
2061if test -n "$CC"; then
2062 echo "$as_me:$LINENO: result: $CC" >&5
2063echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002064else
2065 echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002070 done
2071fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072if test -z "$CC"; then
2073 ac_ct_CC=$CC
2074 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002075do
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077set dummy $ac_prog; ac_word=$2
2078echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002093 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097done
2098done
2099
2100fi
2101fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
2104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002106else
2107 echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6
2109fi
2110
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002111 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002112done
John Criswell7a73b802003-06-30 21:59:07 +00002113
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002114 CC=$ac_ct_CC
2115fi
2116
John Criswell7a73b802003-06-30 21:59:07 +00002117fi
2118
2119
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2125
John Criswell7a73b802003-06-30 21:59:07 +00002126# Provide some information about the compiler.
2127echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002128 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002129ac_compiler=`set X $ac_compile; echo $2`
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131 (eval $ac_compiler --version </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136 (eval $ac_compiler -v </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141 (eval $ac_compiler -V </dev/null >&5) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145
2146cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002147/* confdefs.h. */
2148_ACEOF
2149cat confdefs.h >>conftest.$ac_ext
2150cat >>conftest.$ac_ext <<_ACEOF
2151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002152
John Criswell7a73b802003-06-30 21:59:07 +00002153int
2154main ()
2155{
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002162ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002163# Try to create an executable without -o first, disregard a.out.
2164# It will help us diagnose broken compilers, and finding out an intuition
2165# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002166echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002168ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170 (eval $ac_link_default) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # Find the output, starting from the most likely. This scheme is
2175# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176# resort.
2177
2178# Be careful to initialize this variable, since it used to be cached.
2179# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002181# b.out is created by i960 compilers.
2182for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183do
2184 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002185 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002188 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 # This is the source file.
2190 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 # We found the default executable, but exeext='' is most
2193 # certainly right.
2194 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002195 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 # FIXME: I believe we export ac_cv_exeext for Libtool,
2198 # but it would be cool to find out if it's true. Does anybody
2199 # maintain Libtool? --akim.
2200 export ac_cv_exeext
2201 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002202 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002203 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002204 esac
2205done
2206else
2207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002208sed 's/^/| /' conftest.$ac_ext >&5
2209
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002210{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002211See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002212echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002213See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002214 { (exit 77); exit 77; }; }
2215fi
2216
2217ac_exeext=$ac_cv_exeext
2218echo "$as_me:$LINENO: result: $ac_file" >&5
2219echo "${ECHO_T}$ac_file" >&6
2220
2221# Check the compiler produces executables we can run. If not, either
2222# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002223echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002225# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226# If not cross compiling, check that we can run a simple program.
2227if test "$cross_compiling" != yes; then
2228 if { ac_try='./$ac_file'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 cross_compiling=no
2235 else
2236 if test "$cross_compiling" = maybe; then
2237 cross_compiling=yes
2238 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002239 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002242echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002245 { (exit 1); exit 1; }; }
2246 fi
2247 fi
2248fi
2249echo "$as_me:$LINENO: result: yes" >&5
2250echo "${ECHO_T}yes" >&6
2251
John Criswell0c38eaf2003-09-10 15:17:25 +00002252rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002253ac_clean_files=$ac_clean_files_save
2254# Check the compiler produces executables we can run. If not, either
2255# the compiler is broken, or we cross compile.
2256echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259echo "${ECHO_T}$cross_compiling" >&6
2260
2261echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264 (eval $ac_link) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270# work properly (i.e., refer to `conftest.exe'), while it won't with
2271# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002272for ac_file in conftest.exe conftest conftest.*; do
2273 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002274 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002277 export ac_cv_exeext
2278 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002279 * ) break;;
2280 esac
2281done
2282else
John Criswell0c38eaf2003-09-10 15:17:25 +00002283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002287 { (exit 1); exit 1; }; }
2288fi
2289
2290rm -f conftest$ac_cv_exeext
2291echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292echo "${ECHO_T}$ac_cv_exeext" >&6
2293
2294rm -f conftest.$ac_ext
2295EXEEXT=$ac_cv_exeext
2296ac_exeext=$EXEEXT
2297echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002303/* confdefs.h. */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002308
John Criswell7a73b802003-06-30 21:59:07 +00002309int
2310main ()
2311{
2312
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317rm -f conftest.o conftest.obj
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 break;;
2328 esac
2329done
2330else
2331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002338 { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342fi
2343echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344echo "${ECHO_T}$ac_cv_objext" >&6
2345OBJEXT=$ac_cv_objext
2346ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002347echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002358
John Criswell7a73b802003-06-30 21:59:07 +00002359int
2360main ()
2361{
2362#ifndef __GNUC__
2363 choke me
2364#endif
2365
2366 ;
2367 return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_compiler_gnu=yes
2393else
2394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002395sed 's/^/| /' conftest.$ac_ext >&5
2396
John Criswell7a73b802003-06-30 21:59:07 +00002397ac_compiler_gnu=no
2398fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002401
2402fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405GCC=`test $ac_compiler_gnu = yes && echo yes`
2406ac_test_CFLAGS=${CFLAGS+set}
2407ac_save_CFLAGS=$CFLAGS
2408CFLAGS="-g"
2409echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002415/* confdefs.h. */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002420
John Criswell7a73b802003-06-30 21:59:07 +00002421int
2422main ()
2423{
2424
2425 ;
2426 return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002452else
2453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002454sed 's/^/| /' conftest.$ac_ext >&5
2455
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002459fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462if test "$ac_test_CFLAGS" = set; then
2463 CFLAGS=$ac_save_CFLAGS
2464elif test $ac_cv_prog_cc_g = yes; then
2465 if test "$GCC" = yes; then
2466 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002467 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002469 fi
2470else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 if test "$GCC" = yes; then
2472 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002473 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002475 fi
2476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482 ac_cv_prog_cc_stdc=no
2483ac_save_CC=$CC
2484cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490#include <stdarg.h>
2491#include <stdio.h>
2492#include <sys/types.h>
2493#include <sys/stat.h>
2494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2495struct buf { int x; };
2496FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497static char *e (p, i)
2498 char **p;
2499 int i;
2500{
2501 return p[i];
2502}
2503static char *f (char * (*g) (char **, int), char **p, ...)
2504{
2505 char *s;
2506 va_list v;
2507 va_start (v,p);
2508 s = g (p, va_arg (v,int));
2509 va_end (v);
2510 return s;
2511}
2512
2513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2514 function prototypes and stuff, but not '\xHH' hex character constants.
2515 These don't provoke an error unfortunately, instead are silently treated
2516 as 'x'. The following induces an error, until -std1 is added to get
2517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2518 array size at least. It's necessary to write '\x00'==0 to get something
2519 that's true only with -std1. */
2520int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521
2522int test (int i, double x);
2523struct s1 {int (*f) (int a);};
2524struct s2 {int (*f) (double a);};
2525int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526int argc;
2527char **argv;
2528int
2529main ()
2530{
2531return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536# Don't try gcc -ansi; that turns off useful extensions and
2537# breaks some systems' header files.
2538# AIX -qlanglvl=ansi
2539# Ultrix and OSF/1 -std1
2540# HP-UX 10.20 and later -Ae
2541# HP-UX older versions -Aa -D_HPUX_SOURCE
2542# SVR4 -Xc -D__EXTENSIONS__
2543for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544do
2545 CC="$ac_save_CC $ac_arg"
2546 rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_cv_prog_cc_stdc=$ac_arg
2569break
2570else
2571 echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574fi
2575rm -f conftest.err conftest.$ac_objext
2576done
2577rm -f conftest.$ac_ext conftest.$ac_objext
2578CC=$ac_save_CC
2579
2580fi
2581
2582case "x$ac_cv_prog_cc_stdc" in
2583 x|xno)
2584 echo "$as_me:$LINENO: result: none needed" >&5
2585echo "${ECHO_T}none needed" >&6 ;;
2586 *)
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590esac
2591
2592# Some people use a C++ compiler to compile C. Since we use `exit',
2593# in C++ we need to declare it. In case someone uses the same compiler
2594# for both compiling C and C++ we need to have the C++ compiler decide
2595# the declaration of exit, since it's the most demanding environment.
2596cat >conftest.$ac_ext <<_ACEOF
2597#ifndef __cplusplus
2598 choke me
2599#endif
2600_ACEOF
2601rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002624 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2629 'void exit (int);'
2630do
2631 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002632/* confdefs.h. */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002637$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002638#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002639int
2640main ()
2641{
2642exit (42);
2643 ;
2644 return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002649 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002650 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 :
2670else
2671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002672sed 's/^/| /' conftest.$ac_ext >&5
2673
John Criswell7a73b802003-06-30 21:59:07 +00002674continue
2675fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002678/* confdefs.h. */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002683$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002684int
2685main ()
2686{
2687exit (42);
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002694 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002701 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 break
2715else
2716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002717sed 's/^/| /' conftest.$ac_ext >&5
2718
John Criswell7a73b802003-06-30 21:59:07 +00002719fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002721done
2722rm -f conftest*
2723if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2727fi
2728
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729else
2730 echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733fi
2734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741
2742echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2743echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2744if test "${ac_cv_c_bigendian+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747 # See if sys/param.h defines the BYTE_ORDER macro.
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
2754#include <sys/types.h>
2755#include <sys/param.h>
2756
2757int
2758main ()
2759{
2760#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2761 bogus endian macros
2762#endif
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 # It does; now see whether it defined to BIG_ENDIAN or not.
2791cat >conftest.$ac_ext <<_ACEOF
2792/* confdefs.h. */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h. */
2797#include <sys/types.h>
2798#include <sys/param.h>
2799
2800int
2801main ()
2802{
2803#if BYTE_ORDER != BIG_ENDIAN
2804 not big endian
2805#endif
2806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>conftest.er1
2814 ac_status=$?
2815 grep -v '^ *+' conftest.er1 >conftest.err
2816 rm -f conftest.er1
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -z "$ac_c_werror_flag"
2821 || test ! -s conftest.err'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 (eval $ac_try) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 ac_cv_c_bigendian=yes
2834else
2835 echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838ac_cv_c_bigendian=no
2839fi
2840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841else
2842 echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845# It does not; compile a test program.
2846if test "$cross_compiling" = yes; then
2847 # try to guess the endianness by grepping values into an object file
2848 ac_cv_c_bigendian=unknown
2849 cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h. */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h. */
2855short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2856short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2857void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2858short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2859short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2860void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2861int
2862main ()
2863{
2864 _ascii (); _ebcdic ();
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext
2870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag"
2879 || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2892 ac_cv_c_bigendian=yes
2893fi
2894if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2895 if test "$ac_cv_c_bigendian" = unknown; then
2896 ac_cv_c_bigendian=no
2897 else
2898 # finding both strings is unlikely to happen, but who knows?
2899 ac_cv_c_bigendian=unknown
2900 fi
2901fi
2902else
2903 echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915int
2916main ()
2917{
2918 /* Are we little or big endian? From Harbison&Steele. */
2919 union
2920 {
2921 long l;
2922 char c[sizeof (long)];
2923 } u;
2924 u.l = 1;
2925 exit (u.c[sizeof (long) - 1] == 1);
2926}
2927_ACEOF
2928rm -f conftest$ac_exeext
2929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_c_bigendian=no
2940else
2941 echo "$as_me: program exited with status $ac_status" >&5
2942echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945( exit $ac_status )
2946ac_cv_c_bigendian=yes
2947fi
2948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949fi
2950fi
2951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952fi
2953echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2954echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2955case $ac_cv_c_bigendian in
2956 yes)
2957 ENDIAN=big
2958 ;;
2959 no)
2960 ENDIAN=little
2961 ;;
2962 *)
2963 { { echo "$as_me:$LINENO: error: unknown endianness
2964presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2965echo "$as_me: error: unknown endianness
2966presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2967 { (exit 1); exit 1; }; } ;;
2968esac
2969
2970
Reid Spencer4ebf3312006-04-08 01:41:26 +00002971if test -d "CVS" -o -d "${srcdir}/CVS"; then
Reid Spencer54d14482006-04-07 16:01:51 +00002972 cvsbuild="yes"
2973 optimize="no"
Reid Spencer54d14482006-04-07 16:01:51 +00002974 CVSBUILD=CVSBUILD=1
2975
2976else
2977 cvsbuild="no"
2978 optimize="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00002979fi
2980
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002981
2982# Check whether --enable-optimized or --disable-optimized was given.
2983if test "${enable_optimized+set}" = set; then
2984 enableval="$enable_optimized"
2985
2986else
Reid Spencer54d14482006-04-07 16:01:51 +00002987 enableval=$optimize
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002988fi;
2989if test ${enableval} = "no" ; then
2990 ENABLE_OPTIMIZED=
2991
2992else
2993 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2994
2995fi
2996
Reid Spencer54d14482006-04-07 16:01:51 +00002997# Check whether --enable-assertions or --disable-assertions was given.
2998if test "${enable_assertions+set}" = set; then
2999 enableval="$enable_assertions"
3000
3001else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003002 enableval="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00003003fi;
Reid Spencerc28ccd82006-04-09 20:42:14 +00003004if test ${enableval} = "yes" ; then
3005 DISABLE_ASSERTIONS=
Reid Spencer54d14482006-04-07 16:01:51 +00003006
3007else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003008 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
Reid Spencer54d14482006-04-07 16:01:51 +00003009
3010fi
3011
Reid Spencer6e96d812005-12-21 03:31:53 +00003012# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3013if test "${enable_debug_runtime+set}" = set; then
3014 enableval="$enable_debug_runtime"
3015
3016else
3017 enableval=no
3018fi;
3019if test ${enableval} = "no" ; then
3020 DEBUG_RUNTIME=
3021
3022else
3023 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3024
3025fi
3026
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003027# Check whether --enable-jit or --disable-jit was given.
3028if test "${enable_jit+set}" = set; then
3029 enableval="$enable_jit"
3030
3031else
3032 enableval=default
3033fi;
3034if test ${enableval} = "no"
3035then
3036 JIT=
3037
3038else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003039 case "$llvm_cv_target_arch" in
Reid Spencerb195d9d2006-03-23 23:21:29 +00003040 x86) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003041 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003042 Sparc) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003043 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003044 PowerPC) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003045 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003046 x86_64) TARGET_HAS_JIT=0
Reid Spencer95ed8432004-12-23 06:22:33 +00003047 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003048 Alpha) TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003049 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003050 IA64) TARGET_HAS_JIT=0
Reid Spencer945de9b2005-04-22 07:27:28 +00003051 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003052 *) TARGET_HAS_JIT=0
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003053 ;;
3054 esac
3055fi
3056
Reid Spencer1f319422004-11-29 04:56:35 +00003057# Check whether --enable-doxygen or --disable-doxygen was given.
3058if test "${enable_doxygen+set}" = set; then
3059 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003060
Reid Spencer1f319422004-11-29 04:56:35 +00003061else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003062 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003063fi;
3064case "$enableval" in
3065 yes) ENABLE_DOXYGEN=1
3066 ;;
3067 no) ENABLE_DOXYGEN=0
3068 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003069 default) ENABLE_DOXYGEN=0
3070 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003071 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3072echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3073 { (exit 1); exit 1; }; } ;;
3074esac
3075
Reid Spencer0a262ba2005-08-24 10:07:20 +00003076# Check whether --enable-threads or --disable-threads was given.
3077if test "${enable_threads+set}" = set; then
3078 enableval="$enable_threads"
3079
3080else
3081 enableval=yes
3082fi;
3083case "$enableval" in
3084 yes) ENABLE_THREADS=1
3085 ;;
3086 no) ENABLE_THREADS=0
3087 ;;
3088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3089echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3090 { (exit 1); exit 1; }; } ;;
3091esac
3092
3093cat >>confdefs.h <<_ACEOF
3094#define ENABLE_THREADS $ENABLE_THREADS
3095_ACEOF
3096
3097
Reid Spencer945de9b2005-04-22 07:27:28 +00003098TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003099# Check whether --enable-targets or --disable-targets was given.
3100if test "${enable_targets+set}" = set; then
3101 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003102
3103else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003104 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003105fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003106case "$enableval" in
Chris Lattner56b9e1c2006-02-16 21:12:54 +00003107 all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003108 host-only)
3109 case "$llvm_cv_target_arch" in
3110 x86) TARGETS_TO_BUILD="X86" ;;
3111 x86_64) TARGETS_TO_BUILD="X86" ;;
Chris Lattner35409222006-02-05 06:26:43 +00003112 Sparc) TARGETS_TO_BUILD="Sparc SparcV9" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003113 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3114 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3115 IA64) TARGETS_TO_BUILD="IA64" ;;
3116 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003117echo "$as_me: error: Can not set target to build" >&2;}
3118 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003119 esac
3120 ;;
3121 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3122 case "$a_target" in
3123 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3124 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Chris Lattner35409222006-02-05 06:26:43 +00003125 sparc) TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003126 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3127 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3128 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003129 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3130echo "$as_me: error: Unrecognized target $a_target" >&2;}
3131 { (exit 1); exit 1; }; } ;;
3132 esac
3133 done
3134 ;;
3135esac
Reid Spencer675f0922005-04-22 17:06:18 +00003136TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003137TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3138
3139
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003140
Reid Spencer59473af2004-12-25 07:31:29 +00003141# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3142if test "${with_llvmgccdir+set}" = set; then
3143 withval="$with_llvmgccdir"
3144
3145else
3146 withval=default
3147fi;
3148case "$withval" in
3149 default) WITH_LLVMGCCDIR=default ;;
3150 /*) WITH_LLVMGCCDIR=$withval ;;
3151 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3152echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3153 { (exit 1); exit 1; }; } ;;
3154esac
3155
3156
Reid Spencer945de9b2005-04-22 07:27:28 +00003157
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003158ac_ext=c
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3164echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3165# On Suns, sometimes $CPP names a directory.
3166if test -n "$CPP" && test -d "$CPP"; then
3167 CPP=
3168fi
3169if test -z "$CPP"; then
3170 if test "${ac_cv_prog_CPP+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 # Double quotes because CPP needs to be expanded
3174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3175 do
3176 ac_preproc_ok=false
3177for ac_c_preproc_warn_flag in '' yes
3178do
3179 # Use a header file that comes with gcc, so configuring glibc
3180 # with a fresh cross-compiler works.
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182 # <limits.h> exists even on freestanding compilers.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191#ifdef __STDC__
3192# include <limits.h>
3193#else
3194# include <assert.h>
3195#endif
3196 Syntax error
3197_ACEOF
3198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev/null; then
3206 if test -s conftest.err; then
3207 ac_cpp_err=$ac_c_preproc_warn_flag
3208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3209 else
3210 ac_cpp_err=
3211 fi
3212else
3213 ac_cpp_err=yes
3214fi
3215if test -z "$ac_cpp_err"; then
3216 :
3217else
3218 echo "$as_me: failed program was:" >&5
3219sed 's/^/| /' conftest.$ac_ext >&5
3220
3221 # Broken: fails on valid input.
3222continue
3223fi
3224rm -f conftest.err conftest.$ac_ext
3225
3226 # OK, works on sane cases. Now check whether non-existent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h. */
3234#include <ac_nonexistent.h>
3235_ACEOF
3236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 else
3248 ac_cpp_err=
3249 fi
3250else
3251 ac_cpp_err=yes
3252fi
3253if test -z "$ac_cpp_err"; then
3254 # Broken: success on invalid input.
3255continue
3256else
3257 echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 # Passes both tests.
3261ac_preproc_ok=:
3262break
3263fi
3264rm -f conftest.err conftest.$ac_ext
3265
3266done
3267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268rm -f conftest.err conftest.$ac_ext
3269if $ac_preproc_ok; then
3270 break
3271fi
3272
3273 done
3274 ac_cv_prog_CPP=$CPP
3275
3276fi
3277 CPP=$ac_cv_prog_CPP
3278else
3279 ac_cv_prog_CPP=$CPP
3280fi
3281echo "$as_me:$LINENO: result: $CPP" >&5
3282echo "${ECHO_T}$CPP" >&6
3283ac_preproc_ok=false
3284for ac_c_preproc_warn_flag in '' yes
3285do
3286 # Use a header file that comes with gcc, so configuring glibc
3287 # with a fresh cross-compiler works.
3288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289 # <limits.h> exists even on freestanding compilers.
3290 # On the NeXT, cc -E runs the code through the compiler's parser,
3291 # not just through cpp. "Syntax error" is here to catch this case.
3292 cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h. */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h. */
3298#ifdef __STDC__
3299# include <limits.h>
3300#else
3301# include <assert.h>
3302#endif
3303 Syntax error
3304_ACEOF
3305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } >/dev/null; then
3313 if test -s conftest.err; then
3314 ac_cpp_err=$ac_c_preproc_warn_flag
3315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316 else
3317 ac_cpp_err=
3318 fi
3319else
3320 ac_cpp_err=yes
3321fi
3322if test -z "$ac_cpp_err"; then
3323 :
3324else
3325 echo "$as_me: failed program was:" >&5
3326sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 # Broken: fails on valid input.
3329continue
3330fi
3331rm -f conftest.err conftest.$ac_ext
3332
3333 # OK, works on sane cases. Now check whether non-existent headers
3334 # can be detected and how.
3335 cat >conftest.$ac_ext <<_ACEOF
3336/* confdefs.h. */
3337_ACEOF
3338cat confdefs.h >>conftest.$ac_ext
3339cat >>conftest.$ac_ext <<_ACEOF
3340/* end confdefs.h. */
3341#include <ac_nonexistent.h>
3342_ACEOF
3343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null; then
3351 if test -s conftest.err; then
3352 ac_cpp_err=$ac_c_preproc_warn_flag
3353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3354 else
3355 ac_cpp_err=
3356 fi
3357else
3358 ac_cpp_err=yes
3359fi
3360if test -z "$ac_cpp_err"; then
3361 # Broken: success on invalid input.
3362continue
3363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 # Passes both tests.
3368ac_preproc_ok=:
3369break
3370fi
3371rm -f conftest.err conftest.$ac_ext
3372
3373done
3374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375rm -f conftest.err conftest.$ac_ext
3376if $ac_preproc_ok; then
3377 :
3378else
3379 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3380See \`config.log' for more details." >&5
3381echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3382See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3384fi
3385
John Criswell7a73b802003-06-30 21:59:07 +00003386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397if test -n "$ac_tool_prefix"; then
3398 for ac_prog in gcc
3399 do
3400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402echo "$as_me:$LINENO: checking for $ac_word" >&5
3403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404if test "${ac_cv_prog_CC+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3409else
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421done
3422done
3423
3424fi
3425fi
3426CC=$ac_cv_prog_CC
3427if test -n "$CC"; then
3428 echo "$as_me:$LINENO: result: $CC" >&5
3429echo "${ECHO_T}$CC" >&6
3430else
3431 echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
3433fi
3434
3435 test -n "$CC" && break
3436 done
3437fi
3438if test -z "$CC"; then
3439 ac_ct_CC=$CC
3440 for ac_prog in gcc
3441do
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443set dummy $ac_prog; ac_word=$2
3444echo "$as_me:$LINENO: checking for $ac_word" >&5
3445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 if test -n "$ac_ct_CC"; then
3450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3451else
3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453for as_dir in $PATH
3454do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_CC="$ac_prog"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463done
3464done
3465
3466fi
3467fi
3468ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469if test -n "$ac_ct_CC"; then
3470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3471echo "${ECHO_T}$ac_ct_CC" >&6
3472else
3473 echo "$as_me:$LINENO: result: no" >&5
3474echo "${ECHO_T}no" >&6
3475fi
3476
3477 test -n "$ac_ct_CC" && break
3478done
3479
3480 CC=$ac_ct_CC
3481fi
3482
3483
John Criswell0c38eaf2003-09-10 15:17:25 +00003484test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3485See \`config.log' for more details." >&5
3486echo "$as_me: error: no acceptable C compiler found in \$PATH
3487See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003488 { (exit 1); exit 1; }; }
3489
3490# Provide some information about the compiler.
3491echo "$as_me:$LINENO:" \
3492 "checking for C compiler version" >&5
3493ac_compiler=`set X $ac_compile; echo $2`
3494{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3495 (eval $ac_compiler --version </dev/null >&5) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }
3499{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3500 (eval $ac_compiler -v </dev/null >&5) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }
3504{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3505 (eval $ac_compiler -V </dev/null >&5) 2>&5
3506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }
3509
3510echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3511echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3512if test "${ac_cv_c_compiler_gnu+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003521
John Criswell7a73b802003-06-30 21:59:07 +00003522int
3523main ()
3524{
3525#ifndef __GNUC__
3526 choke me
3527#endif
3528
3529 ;
3530 return 0;
3531}
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003535 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003536 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_compiler_gnu=yes
3556else
3557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003558sed 's/^/| /' conftest.$ac_ext >&5
3559
John Criswell7a73b802003-06-30 21:59:07 +00003560ac_compiler_gnu=no
3561fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003563ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565fi
3566echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3568GCC=`test $ac_compiler_gnu = yes && echo yes`
3569ac_test_CFLAGS=${CFLAGS+set}
3570ac_save_CFLAGS=$CFLAGS
3571CFLAGS="-g"
3572echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3573echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3574if test "${ac_cv_prog_cc_g+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003578/* confdefs.h. */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003583
John Criswell7a73b802003-06-30 21:59:07 +00003584int
3585main ()
3586{
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003594 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003595 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_prog_cc_g=yes
3615else
3616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003617sed 's/^/| /' conftest.$ac_ext >&5
3618
John Criswell7a73b802003-06-30 21:59:07 +00003619ac_cv_prog_cc_g=no
3620fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003622fi
3623echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3625if test "$ac_test_CFLAGS" = set; then
3626 CFLAGS=$ac_save_CFLAGS
3627elif test $ac_cv_prog_cc_g = yes; then
3628 if test "$GCC" = yes; then
3629 CFLAGS="-g -O2"
3630 else
3631 CFLAGS="-g"
3632 fi
3633else
3634 if test "$GCC" = yes; then
3635 CFLAGS="-O2"
3636 else
3637 CFLAGS=
3638 fi
3639fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003640echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3641echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3642if test "${ac_cv_prog_cc_stdc+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 ac_cv_prog_cc_stdc=no
3646ac_save_CC=$CC
3647cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003648/* confdefs.h. */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h. */
3653#include <stdarg.h>
3654#include <stdio.h>
3655#include <sys/types.h>
3656#include <sys/stat.h>
3657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3658struct buf { int x; };
3659FILE * (*rcsopen) (struct buf *, struct stat *, int);
3660static char *e (p, i)
3661 char **p;
3662 int i;
3663{
3664 return p[i];
3665}
3666static char *f (char * (*g) (char **, int), char **p, ...)
3667{
3668 char *s;
3669 va_list v;
3670 va_start (v,p);
3671 s = g (p, va_arg (v,int));
3672 va_end (v);
3673 return s;
3674}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003675
3676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3677 function prototypes and stuff, but not '\xHH' hex character constants.
3678 These don't provoke an error unfortunately, instead are silently treated
3679 as 'x'. The following induces an error, until -std1 is added to get
3680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3681 array size at least. It's necessary to write '\x00'==0 to get something
3682 that's true only with -std1. */
3683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684
John Criswell0c38eaf2003-09-10 15:17:25 +00003685int test (int i, double x);
3686struct s1 {int (*f) (int a);};
3687struct s2 {int (*f) (double a);};
3688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3689int argc;
3690char **argv;
3691int
3692main ()
3693{
3694return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699# Don't try gcc -ansi; that turns off useful extensions and
3700# breaks some systems' header files.
3701# AIX -qlanglvl=ansi
3702# Ultrix and OSF/1 -std1
3703# HP-UX 10.20 and later -Ae
3704# HP-UX older versions -Aa -D_HPUX_SOURCE
3705# SVR4 -Xc -D__EXTENSIONS__
3706for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707do
3708 CC="$ac_save_CC $ac_arg"
3709 rm -f conftest.$ac_objext
3710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003711 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003718 { ac_try='test -z "$ac_c_werror_flag"
3719 || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_prog_cc_stdc=$ac_arg
3732break
3733else
3734 echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003738rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003739done
3740rm -f conftest.$ac_ext conftest.$ac_objext
3741CC=$ac_save_CC
3742
3743fi
3744
3745case "x$ac_cv_prog_cc_stdc" in
3746 x|xno)
3747 echo "$as_me:$LINENO: result: none needed" >&5
3748echo "${ECHO_T}none needed" >&6 ;;
3749 *)
3750 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3751echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3752 CC="$CC $ac_cv_prog_cc_stdc" ;;
3753esac
3754
John Criswell7a73b802003-06-30 21:59:07 +00003755# Some people use a C++ compiler to compile C. Since we use `exit',
3756# in C++ we need to declare it. In case someone uses the same compiler
3757# for both compiling C and C++ we need to have the C++ compiler decide
3758# the declaration of exit, since it's the most demanding environment.
3759cat >conftest.$ac_ext <<_ACEOF
3760#ifndef __cplusplus
3761 choke me
3762#endif
3763_ACEOF
3764rm -f conftest.$ac_objext
3765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003766 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003767 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003773 { ac_try='test -z "$ac_c_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003787 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003788 'extern "C" void std::exit (int) throw (); using std::exit;' \
3789 'extern "C" void std::exit (int); using std::exit;' \
3790 'extern "C" void exit (int) throw ();' \
3791 'extern "C" void exit (int);' \
3792 'void exit (int);'
3793do
3794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003800$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003801#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003802int
3803main ()
3804{
3805exit (42);
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext
3811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003812 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003813 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 :
3833else
3834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003835sed 's/^/| /' conftest.$ac_ext >&5
3836
John Criswell7a73b802003-06-30 21:59:07 +00003837continue
3838fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003840 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003846$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003847int
3848main ()
3849{
3850exit (42);
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext
3856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003857 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003858 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003864 { ac_try='test -z "$ac_c_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 break
3878else
3879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003880sed 's/^/| /' conftest.$ac_ext >&5
3881
John Criswell7a73b802003-06-30 21:59:07 +00003882fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003884done
3885rm -f conftest*
3886if test -n "$ac_declaration"; then
3887 echo '#ifdef __cplusplus' >>confdefs.h
3888 echo $ac_declaration >>confdefs.h
3889 echo '#endif' >>confdefs.h
3890fi
3891
3892else
3893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003894sed 's/^/| /' conftest.$ac_ext >&5
3895
John Criswell7a73b802003-06-30 21:59:07 +00003896fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003904ac_ext=cc
3905ac_cpp='$CXXCPP $CPPFLAGS'
3906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3909if test -n "$ac_tool_prefix"; then
3910 for ac_prog in $CCC g++
3911 do
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3914echo "$as_me:$LINENO: checking for $ac_word" >&5
3915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003919 if test -n "$CXX"; then
3920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3921else
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003924do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933done
3934done
3935
3936fi
3937fi
3938CXX=$ac_cv_prog_CXX
3939if test -n "$CXX"; then
3940 echo "$as_me:$LINENO: result: $CXX" >&5
3941echo "${ECHO_T}$CXX" >&6
3942else
3943 echo "$as_me:$LINENO: result: no" >&5
3944echo "${ECHO_T}no" >&6
3945fi
3946
3947 test -n "$CXX" && break
3948 done
3949fi
3950if test -z "$CXX"; then
3951 ac_ct_CXX=$CXX
3952 for ac_prog in $CCC g++
3953do
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955set dummy $ac_prog; ac_word=$2
3956echo "$as_me:$LINENO: checking for $ac_word" >&5
3957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 if test -n "$ac_ct_CXX"; then
3962 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_CXX="$ac_prog"
3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976done
3977
3978fi
3979fi
3980ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3981if test -n "$ac_ct_CXX"; then
3982 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3983echo "${ECHO_T}$ac_ct_CXX" >&6
3984else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987fi
3988
3989 test -n "$ac_ct_CXX" && break
3990done
3991test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3992
3993 CXX=$ac_ct_CXX
3994fi
3995
3996
3997# Provide some information about the compiler.
3998echo "$as_me:$LINENO:" \
3999 "checking for C++ compiler version" >&5
4000ac_compiler=`set X $ac_compile; echo $2`
4001{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4002 (eval $ac_compiler --version </dev/null >&5) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }
4006{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4007 (eval $ac_compiler -v </dev/null >&5) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }
4011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4012 (eval $ac_compiler -V </dev/null >&5) 2>&5
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }
4016
4017echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4018echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4019if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
John Criswell7a73b802003-06-30 21:59:07 +00004022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004023/* confdefs.h. */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004028
4029int
4030main ()
4031{
4032#ifndef __GNUC__
4033 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004034#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004035
4036 ;
4037 return 0;
4038}
John Criswell7a73b802003-06-30 21:59:07 +00004039_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004040rm -f conftest.$ac_objext
4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004043 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004044 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_compiler_gnu=yes
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067ac_compiler_gnu=no
4068fi
4069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4071
4072fi
4073echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4074echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4075GXX=`test $ac_compiler_gnu = yes && echo yes`
4076ac_test_CXXFLAGS=${CXXFLAGS+set}
4077ac_save_CXXFLAGS=$CXXFLAGS
4078CXXFLAGS="-g"
4079echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4080echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4081if test "${ac_cv_prog_cxx_g+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
4090
4091int
4092main ()
4093{
4094
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext
4100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_cxx_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_prog_cxx_g=yes
4122else
4123 echo "$as_me: failed program was:" >&5
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126ac_cv_prog_cxx_g=no
4127fi
4128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129fi
4130echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4131echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4132if test "$ac_test_CXXFLAGS" = set; then
4133 CXXFLAGS=$ac_save_CXXFLAGS
4134elif test $ac_cv_prog_cxx_g = yes; then
4135 if test "$GXX" = yes; then
4136 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004137 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004138 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004139 fi
4140else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004141 if test "$GXX" = yes; then
4142 CXXFLAGS="-O2"
4143 else
4144 CXXFLAGS=
4145 fi
John Criswell7a73b802003-06-30 21:59:07 +00004146fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004147for ac_declaration in \
4148 '' \
4149 'extern "C" void std::exit (int) throw (); using std::exit;' \
4150 'extern "C" void std::exit (int); using std::exit;' \
4151 'extern "C" void exit (int) throw ();' \
4152 'extern "C" void exit (int);' \
4153 'void exit (int);'
4154do
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161$ac_declaration
4162#include <stdlib.h>
4163int
4164main ()
4165{
4166exit (42);
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_cxx_werror_flag"
4181 || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004193 :
4194else
4195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004196sed 's/^/| /' conftest.$ac_ext >&5
4197
John Criswell7a73b802003-06-30 21:59:07 +00004198continue
4199fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004201 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004207$ac_declaration
4208int
4209main ()
4210{
4211exit (42);
4212 ;
4213 return 0;
4214}
John Criswell7a73b802003-06-30 21:59:07 +00004215_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004216rm -f conftest.$ac_objext
4217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004219 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004220 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_cxx_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004238 break
John Criswell7a73b802003-06-30 21:59:07 +00004239else
4240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004241sed 's/^/| /' conftest.$ac_ext >&5
4242
John Criswell7a73b802003-06-30 21:59:07 +00004243fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004245done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004246rm -f conftest*
4247if test -n "$ac_declaration"; then
4248 echo '#ifdef __cplusplus' >>confdefs.h
4249 echo $ac_declaration >>confdefs.h
4250 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004251fi
4252
4253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
John Criswell7a73b802003-06-30 21:59:07 +00004259echo "$as_me:$LINENO: checking " >&5
4260echo $ECHO_N "checking ... $ECHO_C" >&6
4261if test "${ac_cv_has_flex+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264 for ac_prog in flex lex
4265do
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267set dummy $ac_prog; ac_word=$2
4268echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270if test "${ac_cv_prog_LEX+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273 if test -n "$LEX"; then
4274 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_prog_LEX="$ac_prog"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287done
4288done
4289
4290fi
4291fi
4292LEX=$ac_cv_prog_LEX
4293if test -n "$LEX"; then
4294 echo "$as_me:$LINENO: result: $LEX" >&5
4295echo "${ECHO_T}$LEX" >&6
4296else
4297 echo "$as_me:$LINENO: result: no" >&5
4298echo "${ECHO_T}no" >&6
4299fi
4300
4301 test -n "$LEX" && break
4302done
4303test -n "$LEX" || LEX=":"
4304
4305if test -z "$LEXLIB"
4306then
4307 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4308echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4309if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312 ac_check_lib_save_LIBS=$LIBS
4313LIBS="-lfl $LIBS"
4314cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004320
4321/* Override any gcc2 internal prototype to avoid an error. */
4322#ifdef __cplusplus
4323extern "C"
4324#endif
4325/* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4327char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004328int
4329main ()
4330{
4331yywrap ();
4332 ;
4333 return 0;
4334}
4335_ACEOF
4336rm -f conftest.$ac_objext conftest$ac_exeext
4337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004338 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004339 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_lib_fl_yywrap=yes
4359else
4360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004361sed 's/^/| /' conftest.$ac_ext >&5
4362
John Criswell7a73b802003-06-30 21:59:07 +00004363ac_cv_lib_fl_yywrap=no
4364fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004365rm -f conftest.err conftest.$ac_objext \
4366 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004367LIBS=$ac_check_lib_save_LIBS
4368fi
4369echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4370echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4371if test $ac_cv_lib_fl_yywrap = yes; then
4372 LEXLIB="-lfl"
4373else
4374 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4375echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4376if test "${ac_cv_lib_l_yywrap+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379 ac_check_lib_save_LIBS=$LIBS
4380LIBS="-ll $LIBS"
4381cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004387
4388/* Override any gcc2 internal prototype to avoid an error. */
4389#ifdef __cplusplus
4390extern "C"
4391#endif
4392/* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4394char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004395int
4396main ()
4397{
4398yywrap ();
4399 ;
4400 return 0;
4401}
4402_ACEOF
4403rm -f conftest.$ac_objext conftest$ac_exeext
4404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004405 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004406 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004412 { ac_try='test -z "$ac_c_werror_flag"
4413 || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_lib_l_yywrap=yes
4426else
4427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004428sed 's/^/| /' conftest.$ac_ext >&5
4429
John Criswell7a73b802003-06-30 21:59:07 +00004430ac_cv_lib_l_yywrap=no
4431fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004432rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004434LIBS=$ac_check_lib_save_LIBS
4435fi
4436echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4437echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4438if test $ac_cv_lib_l_yywrap = yes; then
4439 LEXLIB="-ll"
4440fi
4441
4442fi
4443
4444fi
4445
4446if test "x$LEX" != "x:"; then
4447 echo "$as_me:$LINENO: checking lex output file root" >&5
4448echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4449if test "${ac_cv_prog_lex_root+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451else
4452 # The minimal lex program is just a single line: %%. But some broken lexes
4453# (Solaris, I think it was) want two %% lines, so accommodate them.
4454cat >conftest.l <<_ACEOF
4455%%
4456%%
4457_ACEOF
4458{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4459 (eval $LEX conftest.l) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }
4463if test -f lex.yy.c; then
4464 ac_cv_prog_lex_root=lex.yy
4465elif test -f lexyy.c; then
4466 ac_cv_prog_lex_root=lexyy
4467else
4468 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4469echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4470 { (exit 1); exit 1; }; }
4471fi
4472fi
4473echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4474echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4475rm -f conftest.l
4476LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4477
4478echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4479echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4480if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483 # POSIX says lex can declare yytext either as a pointer or an array; the
4484# default is implementation-dependent. Figure out which it is, since
4485# not all implementations provide the %pointer and %array declarations.
4486ac_cv_prog_lex_yytext_pointer=no
4487echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4488ac_save_LIBS=$LIBS
4489LIBS="$LIBS $LEXLIB"
4490cat >conftest.$ac_ext <<_ACEOF
4491`cat $LEX_OUTPUT_ROOT.c`
4492_ACEOF
4493rm -f conftest.$ac_objext conftest$ac_exeext
4494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004495 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004497 grep -v '^ *+' conftest.er1 >conftest.err
4498 rm -f conftest.er1
4499 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004502 { ac_try='test -z "$ac_c_werror_flag"
4503 || test ! -s conftest.err'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; } &&
4509 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_prog_lex_yytext_pointer=yes
4516else
4517 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004518sed 's/^/| /' conftest.$ac_ext >&5
4519
John Criswell7a73b802003-06-30 21:59:07 +00004520fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004521rm -f conftest.err conftest.$ac_objext \
4522 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004523LIBS=$ac_save_LIBS
4524rm -f "${LEX_OUTPUT_ROOT}.c"
4525
4526fi
4527echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4528echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4529if test $ac_cv_prog_lex_yytext_pointer = yes; then
4530
4531cat >>confdefs.h <<\_ACEOF
4532#define YYTEXT_POINTER 1
4533_ACEOF
4534
4535fi
4536
4537fi
4538
4539fi
4540echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4541echo "${ECHO_T}$ac_cv_has_flex" >&6
4542if test "$LEX" != "flex"; then
4543 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4544echo "$as_me: error: flex not found but required" >&2;}
4545 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004546else
4547 FLEX=flex
4548
John Criswell7a73b802003-06-30 21:59:07 +00004549fi
4550
4551echo "$as_me:$LINENO: checking " >&5
4552echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004553if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
4556 for ac_prog in 'bison -y' byacc
4557do
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559set dummy $ac_prog; ac_word=$2
4560echo "$as_me:$LINENO: checking for $ac_word" >&5
4561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562if test "${ac_cv_prog_YACC+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565 if test -n "$YACC"; then
4566 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_YACC="$ac_prog"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579done
4580done
4581
4582fi
4583fi
4584YACC=$ac_cv_prog_YACC
4585if test -n "$YACC"; then
4586 echo "$as_me:$LINENO: result: $YACC" >&5
4587echo "${ECHO_T}$YACC" >&6
4588else
4589 echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6
4591fi
4592
4593 test -n "$YACC" && break
4594done
4595test -n "$YACC" || YACC="yacc"
4596
John Criswell7a73b802003-06-30 21:59:07 +00004597fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004598echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4599echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004600if test "$YACC" != "bison -y"; then
4601 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4602echo "$as_me: error: bison not found but required" >&2;}
4603 { (exit 1); exit 1; }; }
4604else
Brian Gaeke12810632004-01-13 06:52:10 +00004605 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004606
4607fi
4608
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004609echo "$as_me:$LINENO: checking for GNU make" >&5
4610echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4611if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004614 llvm_cv_gnu_make_command=''
4615 for a in "$MAKE" make gmake gnumake ; do
4616 if test -z "$a" ; then continue ; fi ;
4617 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4618 then
4619 llvm_cv_gnu_make_command=$a ;
4620 break;
John Criswell47fdd832003-07-14 16:52:07 +00004621 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004622 done
John Criswell7a73b802003-06-30 21:59:07 +00004623fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004624echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4625echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4626 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4627 ifGNUmake='' ;
4628 else
4629 ifGNUmake='#' ;
4630 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4631echo "${ECHO_T}\"Not found\"" >&6;
4632 fi
John Criswell7a73b802003-06-30 21:59:07 +00004633
John Criswell7a73b802003-06-30 21:59:07 +00004634
4635echo "$as_me:$LINENO: checking whether ln -s works" >&5
4636echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4637LN_S=$as_ln_s
4638if test "$LN_S" = "ln -s"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640echo "${ECHO_T}yes" >&6
4641else
4642 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4643echo "${ECHO_T}no, using $LN_S" >&6
4644fi
4645
Reid Spencer8a2d4712004-12-16 17:48:14 +00004646# Extract the first word of "cmp", so it can be a program name with args.
4647set dummy cmp; ac_word=$2
4648echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650if test "${ac_cv_path_CMP+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 case $CMP in
4654 [\\/]* | ?:[\\/]*)
4655 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4656 ;;
4657 *)
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670done
4671
4672 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4673 ;;
4674esac
4675fi
4676CMP=$ac_cv_path_CMP
4677
4678if test -n "$CMP"; then
4679 echo "$as_me:$LINENO: result: $CMP" >&5
4680echo "${ECHO_T}$CMP" >&6
4681else
4682 echo "$as_me:$LINENO: result: no" >&5
4683echo "${ECHO_T}no" >&6
4684fi
4685
4686# Extract the first word of "cp", so it can be a program name with args.
4687set dummy cp; ac_word=$2
4688echo "$as_me:$LINENO: checking for $ac_word" >&5
4689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4690if test "${ac_cv_path_CP+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
4693 case $CP in
4694 [\\/]* | ?:[\\/]*)
4695 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4696 ;;
4697 *)
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
4711
4712 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4713 ;;
4714esac
4715fi
4716CP=$ac_cv_path_CP
4717
4718if test -n "$CP"; then
4719 echo "$as_me:$LINENO: result: $CP" >&5
4720echo "${ECHO_T}$CP" >&6
4721else
4722 echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6
4724fi
4725
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004726# Extract the first word of "date", so it can be a program name with args.
4727set dummy date; ac_word=$2
4728echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4730if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004733 case $DATE in
4734 [\\/]* | ?:[\\/]*)
4735 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004736 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004737 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004748 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004749done
4750done
John Criswell7a73b802003-06-30 21:59:07 +00004751
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004752 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004753 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004754esac
John Criswell7a73b802003-06-30 21:59:07 +00004755fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004756DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004757
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004758if test -n "$DATE"; then
4759 echo "$as_me:$LINENO: result: $DATE" >&5
4760echo "${ECHO_T}$DATE" >&6
4761else
4762 echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6
4764fi
John Criswell7a73b802003-06-30 21:59:07 +00004765
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004766# Extract the first word of "find", so it can be a program name with args.
4767set dummy find; ac_word=$2
4768echo "$as_me:$LINENO: checking for $ac_word" >&5
4769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004773 case $FIND in
4774 [\\/]* | ?:[\\/]*)
4775 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4776 ;;
4777 *)
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4788 fi
4789done
4790done
4791
4792 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4793 ;;
4794esac
4795fi
4796FIND=$ac_cv_path_FIND
4797
4798if test -n "$FIND"; then
4799 echo "$as_me:$LINENO: result: $FIND" >&5
4800echo "${ECHO_T}$FIND" >&6
4801else
4802 echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6
4804fi
4805
4806# Extract the first word of "grep", so it can be a program name with args.
4807set dummy grep; ac_word=$2
4808echo "$as_me:$LINENO: checking for $ac_word" >&5
4809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4810if test "${ac_cv_path_GREP+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813 case $GREP in
4814 [\\/]* | ?:[\\/]*)
4815 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4816 ;;
4817 *)
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830done
4831
4832 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4833 ;;
4834esac
4835fi
4836GREP=$ac_cv_path_GREP
4837
4838if test -n "$GREP"; then
4839 echo "$as_me:$LINENO: result: $GREP" >&5
4840echo "${ECHO_T}$GREP" >&6
4841else
4842 echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6
4844fi
4845
4846# Extract the first word of "mkdir", so it can be a program name with args.
4847set dummy mkdir; ac_word=$2
4848echo "$as_me:$LINENO: checking for $ac_word" >&5
4849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850if test "${ac_cv_path_MKDIR+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 case $MKDIR in
4854 [\\/]* | ?:[\\/]*)
4855 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4856 ;;
4857 *)
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869done
4870done
4871
4872 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4873 ;;
4874esac
4875fi
4876MKDIR=$ac_cv_path_MKDIR
4877
4878if test -n "$MKDIR"; then
4879 echo "$as_me:$LINENO: result: $MKDIR" >&5
4880echo "${ECHO_T}$MKDIR" >&6
4881else
4882 echo "$as_me:$LINENO: result: no" >&5
4883echo "${ECHO_T}no" >&6
4884fi
4885
4886# Extract the first word of "mv", so it can be a program name with args.
4887set dummy mv; ac_word=$2
4888echo "$as_me:$LINENO: checking for $ac_word" >&5
4889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4890if test "${ac_cv_path_MV+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893 case $MV in
4894 [\\/]* | ?:[\\/]*)
4895 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4896 ;;
4897 *)
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909done
4910done
4911
4912 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4913 ;;
4914esac
4915fi
4916MV=$ac_cv_path_MV
4917
4918if test -n "$MV"; then
4919 echo "$as_me:$LINENO: result: $MV" >&5
4920echo "${ECHO_T}$MV" >&6
4921else
4922 echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
4924fi
4925
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004926if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4928set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4929echo "$as_me:$LINENO: checking for $ac_word" >&5
4930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4931if test "${ac_cv_prog_RANLIB+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934 if test -n "$RANLIB"; then
4935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948done
4949done
4950
4951fi
4952fi
4953RANLIB=$ac_cv_prog_RANLIB
4954if test -n "$RANLIB"; then
4955 echo "$as_me:$LINENO: result: $RANLIB" >&5
4956echo "${ECHO_T}$RANLIB" >&6
4957else
4958 echo "$as_me:$LINENO: result: no" >&5
4959echo "${ECHO_T}no" >&6
4960fi
4961
4962fi
4963if test -z "$ac_cv_prog_RANLIB"; then
4964 ac_ct_RANLIB=$RANLIB
4965 # Extract the first word of "ranlib", so it can be a program name with args.
4966set dummy ranlib; ac_word=$2
4967echo "$as_me:$LINENO: checking for $ac_word" >&5
4968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972 if test -n "$ac_ct_RANLIB"; then
4973 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_ac_ct_RANLIB="ranlib"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986done
4987done
4988
4989 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4990fi
4991fi
4992ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4993if test -n "$ac_ct_RANLIB"; then
4994 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4995echo "${ECHO_T}$ac_ct_RANLIB" >&6
4996else
4997 echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6
4999fi
5000
5001 RANLIB=$ac_ct_RANLIB
5002else
5003 RANLIB="$ac_cv_prog_RANLIB"
5004fi
5005
5006# Extract the first word of "rm", so it can be a program name with args.
5007set dummy rm; ac_word=$2
5008echo "$as_me:$LINENO: checking for $ac_word" >&5
5009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5010if test "${ac_cv_path_RM+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013 case $RM in
5014 [\\/]* | ?:[\\/]*)
5015 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5016 ;;
5017 *)
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030done
5031
5032 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5033 ;;
5034esac
5035fi
5036RM=$ac_cv_path_RM
5037
5038if test -n "$RM"; then
5039 echo "$as_me:$LINENO: result: $RM" >&5
5040echo "${ECHO_T}$RM" >&6
5041else
5042 echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
5044fi
5045
5046# Extract the first word of "sed", so it can be a program name with args.
5047set dummy sed; ac_word=$2
5048echo "$as_me:$LINENO: checking for $ac_word" >&5
5049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5050if test "${ac_cv_path_SED+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053 case $SED in
5054 [\\/]* | ?:[\\/]*)
5055 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5056 ;;
5057 *)
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069done
5070done
5071
5072 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5073 ;;
5074esac
5075fi
5076SED=$ac_cv_path_SED
5077
5078if test -n "$SED"; then
5079 echo "$as_me:$LINENO: result: $SED" >&5
5080echo "${ECHO_T}$SED" >&6
5081else
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084fi
5085
5086# Extract the first word of "tar", so it can be a program name with args.
5087set dummy tar; ac_word=$2
5088echo "$as_me:$LINENO: checking for $ac_word" >&5
5089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5090if test "${ac_cv_path_TAR+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 case $TAR in
5094 [\\/]* | ?:[\\/]*)
5095 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5096 ;;
5097 *)
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099for as_dir in $PATH
5100do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109done
5110done
5111
5112 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5113 ;;
5114esac
5115fi
5116TAR=$ac_cv_path_TAR
5117
5118if test -n "$TAR"; then
5119 echo "$as_me:$LINENO: result: $TAR" >&5
5120echo "${ECHO_T}$TAR" >&6
5121else
5122 echo "$as_me:$LINENO: result: no" >&5
5123echo "${ECHO_T}no" >&6
5124fi
5125
Reid Spencer8a2246f2005-07-13 03:20:14 +00005126# Extract the first word of "Graphviz", so it can be a program name with args.
5127set dummy Graphviz; ac_word=$2
5128echo "$as_me:$LINENO: checking for $ac_word" >&5
5129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 case $GRAPHVIZ in
5134 [\\/]* | ?:[\\/]*)
5135 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5136 ;;
5137 *)
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149done
5150done
5151
Reid Spencerc232a652005-07-14 02:25:12 +00005152 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005153 ;;
5154esac
5155fi
5156GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5157
5158if test -n "$GRAPHVIZ"; then
5159 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5160echo "${ECHO_T}$GRAPHVIZ" >&6
5161else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164fi
5165
Reid Spencerc232a652005-07-14 02:25:12 +00005166if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005167
5168cat >>confdefs.h <<\_ACEOF
5169#define HAVE_GRAPHVIZ 1
5170_ACEOF
5171
Reid Spencerc232a652005-07-14 02:25:12 +00005172
Reid Spencerbe130282005-07-14 05:19:12 +00005173cat >>confdefs.h <<_ACEOF
Reid Spencerc232a652005-07-14 02:25:12 +00005174#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5175_ACEOF
5176
Reid Spencer8a2246f2005-07-13 03:20:14 +00005177fi
Reid Spencerbe130282005-07-14 05:19:12 +00005178# Extract the first word of "gv", so it can be a program name with args.
5179set dummy gv; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_path_GV+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185 case $GV in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5188 ;;
5189 *)
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202done
5203
5204 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5205 ;;
5206esac
5207fi
5208GV=$ac_cv_path_GV
5209
5210if test -n "$GV"; then
5211 echo "$as_me:$LINENO: result: $GV" >&5
5212echo "${ECHO_T}$GV" >&6
5213else
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
Misha Brukmanf83d4062005-11-01 21:00:49 +00005218if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005219
5220cat >>confdefs.h <<\_ACEOF
5221#define HAVE_GV 1
5222_ACEOF
5223
5224
5225cat >>confdefs.h <<_ACEOF
5226#define LLVM_PATH_GV "$GV"
5227_ACEOF
5228
5229fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005230
Reid Spencerb195d9d2006-03-23 23:21:29 +00005231
5232# Extract the first word of "perl", so it can be a program name with args.
5233set dummy perl; ac_word=$2
5234echo "$as_me:$LINENO: checking for $ac_word" >&5
5235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236if test "${ac_cv_path_PERL+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 case $PERL in
5240 [\\/]* | ?:[\\/]*)
5241 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5242 ;;
5243 *)
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256done
5257
5258 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5259 ;;
5260esac
5261fi
5262PERL=$ac_cv_path_PERL
5263
5264if test -n "$PERL"; then
5265 echo "$as_me:$LINENO: result: $PERL" >&5
5266echo "${ECHO_T}$PERL" >&6
5267else
5268 echo "$as_me:$LINENO: result: no" >&5
5269echo "${ECHO_T}no" >&6
5270fi
5271
5272if test "$PERL" != "none"; then
5273 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5274echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5275 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
5278 else
5279 PERL=none
5280 echo "$as_me:$LINENO: result: not found" >&5
5281echo "${ECHO_T}not found" >&6
5282 fi
5283fi
5284
5285
5286if test x"$PERL" = xnone; then
5287 HAVE_PERL=0
5288
5289else
5290 HAVE_PERL=1
5291
5292fi
5293
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005294# Find a good install program. We prefer a C program (faster),
5295# so one script is as good as another. But avoid the broken or
5296# incompatible versions:
5297# SysV /etc/install, /usr/sbin/install
5298# SunOS /usr/etc/install
5299# IRIX /sbin/install
5300# AIX /bin/install
5301# AmigaOS /C/install, which installs bootblocks on floppy discs
5302# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5303# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5304# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5305# OS/2's system install, which has a completely different semantic
5306# ./install, which can be erroneously created by make from ./install.sh.
5307echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5308echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5309if test -z "$INSTALL"; then
5310if test "${ac_cv_path_install+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 # Account for people who put trailing slashes in PATH elements.
5319case $as_dir/ in
5320 ./ | .// | /cC/* | \
5321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5322 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5323 /usr/ucb/* ) ;;
5324 *)
5325 # OSF1 and SCO ODT 3.0 have their own names for install.
5326 # Don't use installbsd from OSF since it installs stuff as root
5327 # by default.
5328 for ac_prog in ginstall scoinst install; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5331 if test $ac_prog = install &&
5332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5333 # AIX install. It has an incompatible calling convention.
5334 :
5335 elif test $ac_prog = install &&
5336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5337 # program-specific install script used by HP pwplus--don't use.
5338 :
5339 else
5340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5341 break 3
5342 fi
5343 fi
5344 done
5345 done
5346 ;;
5347esac
5348done
5349
5350
5351fi
5352 if test "${ac_cv_path_install+set}" = set; then
5353 INSTALL=$ac_cv_path_install
5354 else
5355 # As a last resort, use the slow shell script. We don't cache a
5356 # path for INSTALL within a source directory, because that will
5357 # break other packages using the cache if that directory is
5358 # removed, or if the path is relative.
5359 INSTALL=$ac_install_sh
5360 fi
5361fi
5362echo "$as_me:$LINENO: result: $INSTALL" >&5
5363echo "${ECHO_T}$INSTALL" >&6
5364
5365# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5366# It thinks the first close brace ends the variable substitution.
5367test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5368
5369test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5370
5371test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5372
5373
5374# Extract the first word of "bzip2", so it can be a program name with args.
5375set dummy bzip2; ac_word=$2
5376echo "$as_me:$LINENO: checking for $ac_word" >&5
5377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378if test "${ac_cv_path_BZIP2+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381 case $BZIP2 in
5382 [\\/]* | ?:[\\/]*)
5383 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5384 ;;
5385 *)
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397done
5398done
5399
5400 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5401 ;;
5402esac
5403fi
5404BZIP2=$ac_cv_path_BZIP2
5405
5406if test -n "$BZIP2"; then
5407 echo "$as_me:$LINENO: result: $BZIP2" >&5
5408echo "${ECHO_T}$BZIP2" >&6
5409else
5410 echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412fi
5413
5414# Extract the first word of "dot", so it can be a program name with args.
5415set dummy dot; ac_word=$2
5416echo "$as_me:$LINENO: checking for $ac_word" >&5
5417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418if test "${ac_cv_path_DOT+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421 case $DOT in
5422 [\\/]* | ?:[\\/]*)
5423 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5424 ;;
5425 *)
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437done
5438done
5439
5440 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5441 ;;
5442esac
5443fi
5444DOT=$ac_cv_path_DOT
5445
5446if test -n "$DOT"; then
5447 echo "$as_me:$LINENO: result: $DOT" >&5
5448echo "${ECHO_T}$DOT" >&6
5449else
5450 echo "$as_me:$LINENO: result: no" >&5
5451echo "${ECHO_T}no" >&6
5452fi
5453
5454# Extract the first word of "doxygen", so it can be a program name with args.
5455set dummy doxygen; ac_word=$2
5456echo "$as_me:$LINENO: checking for $ac_word" >&5
5457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458if test "${ac_cv_path_DOXYGEN+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461 case $DOXYGEN in
5462 [\\/]* | ?:[\\/]*)
5463 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5464 ;;
5465 *)
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477done
5478done
5479
5480 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5481 ;;
5482esac
5483fi
5484DOXYGEN=$ac_cv_path_DOXYGEN
5485
5486if test -n "$DOXYGEN"; then
5487 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5488echo "${ECHO_T}$DOXYGEN" >&6
5489else
5490 echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492fi
5493
5494# Extract the first word of "etags", so it can be a program name with args.
5495set dummy etags; ac_word=$2
5496echo "$as_me:$LINENO: checking for $ac_word" >&5
5497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5498if test "${ac_cv_path_ETAGS+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501 case $ETAGS in
5502 [\\/]* | ?:[\\/]*)
5503 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5504 ;;
5505 *)
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517done
5518done
5519
5520 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5521 ;;
5522esac
5523fi
5524ETAGS=$ac_cv_path_ETAGS
5525
5526if test -n "$ETAGS"; then
5527 echo "$as_me:$LINENO: result: $ETAGS" >&5
5528echo "${ECHO_T}$ETAGS" >&6
5529else
5530 echo "$as_me:$LINENO: result: no" >&5
5531echo "${ECHO_T}no" >&6
5532fi
5533
5534# Extract the first word of "groff", so it can be a program name with args.
5535set dummy groff; ac_word=$2
5536echo "$as_me:$LINENO: checking for $ac_word" >&5
5537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538if test "${ac_cv_path_GROFF+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541 case $GROFF in
5542 [\\/]* | ?:[\\/]*)
5543 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5544 ;;
5545 *)
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557done
5558done
5559
5560 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5561 ;;
5562esac
5563fi
5564GROFF=$ac_cv_path_GROFF
5565
5566if test -n "$GROFF"; then
5567 echo "$as_me:$LINENO: result: $GROFF" >&5
5568echo "${ECHO_T}$GROFF" >&6
5569else
5570 echo "$as_me:$LINENO: result: no" >&5
5571echo "${ECHO_T}no" >&6
5572fi
5573
5574# Extract the first word of "gzip", so it can be a program name with args.
5575set dummy gzip; ac_word=$2
5576echo "$as_me:$LINENO: checking for $ac_word" >&5
5577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5578if test "${ac_cv_path_GZIP+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581 case $GZIP in
5582 [\\/]* | ?:[\\/]*)
5583 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5584 ;;
5585 *)
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597done
5598done
5599
5600 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5601 ;;
5602esac
5603fi
5604GZIP=$ac_cv_path_GZIP
5605
5606if test -n "$GZIP"; then
5607 echo "$as_me:$LINENO: result: $GZIP" >&5
5608echo "${ECHO_T}$GZIP" >&6
5609else
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
5612fi
5613
5614# Extract the first word of "pod2html", so it can be a program name with args.
5615set dummy pod2html; ac_word=$2
5616echo "$as_me:$LINENO: checking for $ac_word" >&5
5617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5618if test "${ac_cv_path_POD2HTML+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 case $POD2HTML in
5622 [\\/]* | ?:[\\/]*)
5623 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5624 ;;
5625 *)
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637done
5638done
5639
5640 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5641 ;;
5642esac
5643fi
5644POD2HTML=$ac_cv_path_POD2HTML
5645
5646if test -n "$POD2HTML"; then
5647 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5648echo "${ECHO_T}$POD2HTML" >&6
5649else
5650 echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
5652fi
5653
5654# Extract the first word of "pod2man", so it can be a program name with args.
5655set dummy pod2man; ac_word=$2
5656echo "$as_me:$LINENO: checking for $ac_word" >&5
5657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658if test "${ac_cv_path_POD2MAN+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661 case $POD2MAN in
5662 [\\/]* | ?:[\\/]*)
5663 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5664 ;;
5665 *)
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677done
5678done
5679
5680 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5681 ;;
5682esac
5683fi
5684POD2MAN=$ac_cv_path_POD2MAN
5685
5686if test -n "$POD2MAN"; then
5687 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5688echo "${ECHO_T}$POD2MAN" >&6
5689else
5690 echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6
5692fi
5693
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005694# Extract the first word of "runtest", so it can be a program name with args.
5695set dummy runtest; ac_word=$2
5696echo "$as_me:$LINENO: checking for $ac_word" >&5
5697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698if test "${ac_cv_path_RUNTEST+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701 case $RUNTEST in
5702 [\\/]* | ?:[\\/]*)
5703 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5704 ;;
5705 *)
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717done
5718done
5719
5720 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5721 ;;
5722esac
5723fi
5724RUNTEST=$ac_cv_path_RUNTEST
5725
5726if test -n "$RUNTEST"; then
5727 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5728echo "${ECHO_T}$RUNTEST" >&6
5729else
5730 echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732fi
5733
Reid Spencer0fcb9412004-11-30 08:11:54 +00005734
Reid Spencer0fcb9412004-11-30 08:11:54 +00005735no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005736echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5737echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005738
5739# Check whether --with-tclinclude or --without-tclinclude was given.
5740if test "${with_tclinclude+set}" = set; then
5741 withval="$with_tclinclude"
5742 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005743else
5744 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005745fi;
5746if test "${ac_cv_path_tclsh+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749
5750if test x"${with_tclinclude}" != x ; then
5751 if test -f ${with_tclinclude}/tclsh ; then
5752 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5753 elif test -f ${with_tclinclude}/src/tclsh ; then
5754 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5755 else
5756 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5757echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5758 { (exit 1); exit 1; }; }
5759 fi
5760fi
5761
Reid Spencer0fcb9412004-11-30 08:11:54 +00005762if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005763 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005764echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005765 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 +00005766do
5767 # Extract the first word of "$ac_prog", so it can be a program name with args.
5768set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005769echo "$as_me:$LINENO: checking for $ac_word" >&5
5770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005771if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
Reid Spencercda35f82004-12-02 04:17:20 +00005774 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005775 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005776 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005777 ;;
5778 *)
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005786 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790done
5791done
5792
5793 ;;
5794esac
5795fi
Reid Spencercda35f82004-12-02 04:17:20 +00005796TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005797
Reid Spencercda35f82004-12-02 04:17:20 +00005798if test -n "$TCLSH"; then
5799 echo "$as_me:$LINENO: result: $TCLSH" >&5
5800echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005801else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804fi
5805
Reid Spencercda35f82004-12-02 04:17:20 +00005806 test -n "$TCLSH" && break
5807done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005808
Reid Spencercda35f82004-12-02 04:17:20 +00005809 if test x"${TCLSH}" = x ; then
5810 ac_cv_path_tclsh='';
5811 else
5812 ac_cv_path_tclsh="${TCLSH}";
5813 fi
5814else
5815 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5816echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5817 TCLSH="${ac_cv_path_tclsh}"
5818
5819fi
5820
5821fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005822
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005823# Extract the first word of "zip", so it can be a program name with args.
5824set dummy zip; ac_word=$2
5825echo "$as_me:$LINENO: checking for $ac_word" >&5
5826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827if test "${ac_cv_path_ZIP+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830 case $ZIP in
5831 [\\/]* | ?:[\\/]*)
5832 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5833 ;;
5834 *)
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846done
5847done
5848
5849 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5850 ;;
5851esac
5852fi
5853ZIP=$ac_cv_path_ZIP
5854
5855if test -n "$ZIP"; then
5856 echo "$as_me:$LINENO: result: $ZIP" >&5
5857echo "${ECHO_T}$ZIP" >&6
5858else
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861fi
5862
5863
5864echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5865echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5866if test "${llvm_cv_link_use_r+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005870ac_cpp='$CPP $CPPFLAGS'
5871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005875 oldcflags="$CFLAGS"
5876 CFLAGS="$CFLAGS -Wl,-R."
5877 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005878/* confdefs.h. */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005883
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005884int
5885main ()
5886{
5887int main() { return 0; }
5888 ;
5889 return 0;
5890}
John Criswell47fdd832003-07-14 16:52:07 +00005891_ACEOF
5892rm -f conftest.$ac_objext conftest$ac_exeext
5893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005894 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005900 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005901 { ac_try='test -z "$ac_c_werror_flag"
5902 || test ! -s conftest.err'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; } &&
5908 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005914 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005915else
John Criswell47fdd832003-07-14 16:52:07 +00005916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005917sed 's/^/| /' conftest.$ac_ext >&5
5918
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005919llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005920fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005921rm -f conftest.err conftest.$ac_objext \
5922 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005923 CFLAGS="$oldcflags"
5924 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005925ac_cpp='$CPP $CPPFLAGS'
5926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005930
John Criswell7a73b802003-06-30 21:59:07 +00005931fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005932echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5933echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5934if test "$llvm_cv_link_use_r" = yes ; then
5935
5936cat >>confdefs.h <<\_ACEOF
5937#define HAVE_LINK_R 1
5938_ACEOF
5939
John Criswell47fdd832003-07-14 16:52:07 +00005940 fi
John Criswell47fdd832003-07-14 16:52:07 +00005941
John Criswell47fdd832003-07-14 16:52:07 +00005942
John Criswell47fdd832003-07-14 16:52:07 +00005943
John Criswell7a73b802003-06-30 21:59:07 +00005944
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005945echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5946echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5947if test "${ac_cv_c_const+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 cat >conftest.$ac_ext <<_ACEOF
5951/* confdefs.h. */
5952_ACEOF
5953cat confdefs.h >>conftest.$ac_ext
5954cat >>conftest.$ac_ext <<_ACEOF
5955/* end confdefs.h. */
5956
5957int
5958main ()
5959{
5960/* FIXME: Include the comments suggested by Paul. */
5961#ifndef __cplusplus
5962 /* Ultrix mips cc rejects this. */
5963 typedef int charset[2];
5964 const charset x;
5965 /* SunOS 4.1.1 cc rejects this. */
5966 char const *const *ccp;
5967 char **p;
5968 /* NEC SVR4.0.2 mips cc rejects this. */
5969 struct point {int x, y;};
5970 static struct point const zero = {0,0};
5971 /* AIX XL C 1.02.0.0 rejects this.
5972 It does not let you subtract one const X* pointer from another in
5973 an arm of an if-expression whose if-part is not a constant
5974 expression */
5975 const char *g = "string";
5976 ccp = &g + (g ? g-g : 0);
5977 /* HPUX 7.0 cc rejects these. */
5978 ++ccp;
5979 p = (char**) ccp;
5980 ccp = (char const *const *) p;
5981 { /* SCO 3.2v4 cc rejects this. */
5982 char *t;
5983 char const *s = 0 ? (char *) 0 : (char const *) 0;
5984
5985 *t++ = 0;
5986 }
5987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5988 int x[] = {25, 17};
5989 const int *foo = &x[0];
5990 ++foo;
5991 }
5992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5993 typedef const int *iptr;
5994 iptr p = 0;
5995 ++p;
5996 }
5997 { /* AIX XL C 1.02.0.0 rejects this saying
5998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5999 struct s { int j; const int *ap[3]; };
6000 struct s *b; b->j = 5;
6001 }
6002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6003 const int foo = 10;
6004 }
6005#endif
6006
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011rm -f conftest.$ac_objext
6012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_c_const=yes
6034else
6035 echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038ac_cv_c_const=no
6039fi
6040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041fi
6042echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6043echo "${ECHO_T}$ac_cv_c_const" >&6
6044if test $ac_cv_c_const = no; then
6045
6046cat >>confdefs.h <<\_ACEOF
6047#define const
6048_ACEOF
6049
6050fi
6051
6052
6053echo "$as_me:$LINENO: checking for egrep" >&5
6054echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6055if test "${ac_cv_prog_egrep+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6059 then ac_cv_prog_egrep='grep -E'
6060 else ac_cv_prog_egrep='egrep'
6061 fi
6062fi
6063echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6064echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6065 EGREP=$ac_cv_prog_egrep
6066
John Criswell7a73b802003-06-30 21:59:07 +00006067
6068echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6069echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6070if test "${ac_cv_header_stdc+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006074/* confdefs.h. */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006079#include <stdlib.h>
6080#include <stdarg.h>
6081#include <string.h>
6082#include <float.h>
6083
John Criswell0c38eaf2003-09-10 15:17:25 +00006084int
6085main ()
6086{
6087
6088 ;
6089 return 0;
6090}
John Criswell7a73b802003-06-30 21:59:07 +00006091_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006092rm -f conftest.$ac_objext
6093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006094 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006095 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006100 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006101 { ac_try='test -z "$ac_c_werror_flag"
6102 || test ! -s conftest.err'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; } &&
6108 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006114 ac_cv_header_stdc=yes
6115else
6116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006117sed 's/^/| /' conftest.$ac_ext >&5
6118
6119ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006120fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006122
6123if test $ac_cv_header_stdc = yes; then
6124 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6125 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006126/* confdefs.h. */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006131#include <string.h>
6132
6133_ACEOF
6134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006135 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006136 :
6137else
6138 ac_cv_header_stdc=no
6139fi
6140rm -f conftest*
6141
6142fi
6143
6144if test $ac_cv_header_stdc = yes; then
6145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6146 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006147/* confdefs.h. */
6148_ACEOF
6149cat confdefs.h >>conftest.$ac_ext
6150cat >>conftest.$ac_ext <<_ACEOF
6151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006152#include <stdlib.h>
6153
6154_ACEOF
6155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006156 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006157 :
6158else
6159 ac_cv_header_stdc=no
6160fi
6161rm -f conftest*
6162
6163fi
6164
6165if test $ac_cv_header_stdc = yes; then
6166 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6167 if test "$cross_compiling" = yes; then
6168 :
6169else
6170 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006176#include <ctype.h>
6177#if ((' ' & 0x0FF) == 0x020)
6178# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6179# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6180#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006181# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006182 (('a' <= (c) && (c) <= 'i') \
6183 || ('j' <= (c) && (c) <= 'r') \
6184 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006185# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6186#endif
6187
6188#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6189int
6190main ()
6191{
6192 int i;
6193 for (i = 0; i < 256; i++)
6194 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006195 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006196 exit(2);
6197 exit (0);
6198}
6199_ACEOF
6200rm -f conftest$ac_exeext
6201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6202 (eval $ac_link) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 :
6212else
6213 echo "$as_me: program exited with status $ac_status" >&5
6214echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006215sed 's/^/| /' conftest.$ac_ext >&5
6216
John Criswell7a73b802003-06-30 21:59:07 +00006217( exit $ac_status )
6218ac_cv_header_stdc=no
6219fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006220rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006221fi
6222fi
6223fi
6224echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6225echo "${ECHO_T}$ac_cv_header_stdc" >&6
6226if test $ac_cv_header_stdc = yes; then
6227
6228cat >>confdefs.h <<\_ACEOF
6229#define STDC_HEADERS 1
6230_ACEOF
6231
6232fi
6233
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006234
6235
6236
6237
6238
6239ac_header_dirent=no
6240for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6241 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6242echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6243echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6244if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247 cat >conftest.$ac_ext <<_ACEOF
6248/* confdefs.h. */
6249_ACEOF
6250cat confdefs.h >>conftest.$ac_ext
6251cat >>conftest.$ac_ext <<_ACEOF
6252/* end confdefs.h. */
6253#include <sys/types.h>
6254#include <$ac_hdr>
6255
6256int
6257main ()
6258{
6259if ((DIR *) 0)
6260return 0;
6261 ;
6262 return 0;
6263}
6264_ACEOF
6265rm -f conftest.$ac_objext
6266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag"
6275 || test ! -s conftest.err'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest.$ac_objext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 eval "$as_ac_Header=yes"
6288else
6289 echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
6292eval "$as_ac_Header=no"
6293fi
6294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6295fi
6296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6298if test `eval echo '${'$as_ac_Header'}'` = yes; then
6299 cat >>confdefs.h <<_ACEOF
6300#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6301_ACEOF
6302
6303ac_header_dirent=$ac_hdr; break
6304fi
6305
6306done
6307# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6308if test $ac_header_dirent = dirent.h; then
6309 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6310echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6311if test "${ac_cv_search_opendir+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
6314 ac_func_search_save_LIBS=$LIBS
6315ac_cv_search_opendir=no
6316cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322
6323/* Override any gcc2 internal prototype to avoid an error. */
6324#ifdef __cplusplus
6325extern "C"
6326#endif
6327/* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6329char opendir ();
6330int
6331main ()
6332{
6333opendir ();
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338rm -f conftest.$ac_objext conftest$ac_exeext
6339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340 (eval $ac_link) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_cv_search_opendir="none required"
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365fi
6366rm -f conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6368if test "$ac_cv_search_opendir" = no; then
6369 for ac_lib in dir; do
6370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6371 cat >conftest.$ac_ext <<_ACEOF
6372/* confdefs.h. */
6373_ACEOF
6374cat confdefs.h >>conftest.$ac_ext
6375cat >>conftest.$ac_ext <<_ACEOF
6376/* end confdefs.h. */
6377
6378/* Override any gcc2 internal prototype to avoid an error. */
6379#ifdef __cplusplus
6380extern "C"
6381#endif
6382/* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6384char opendir ();
6385int
6386main ()
6387{
6388opendir ();
6389 ;
6390 return 0;
6391}
6392_ACEOF
6393rm -f conftest.$ac_objext conftest$ac_exeext
6394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_c_werror_flag"
6403 || test ! -s conftest.err'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; } &&
6409 { ac_try='test -s conftest$ac_exeext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
6415 ac_cv_search_opendir="-l$ac_lib"
6416break
6417else
6418 echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421fi
6422rm -f conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6424 done
6425fi
6426LIBS=$ac_func_search_save_LIBS
6427fi
6428echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6429echo "${ECHO_T}$ac_cv_search_opendir" >&6
6430if test "$ac_cv_search_opendir" != no; then
6431 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6432
6433fi
6434
6435else
6436 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6437echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6438if test "${ac_cv_search_opendir+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441 ac_func_search_save_LIBS=$LIBS
6442ac_cv_search_opendir=no
6443cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
6449
6450/* Override any gcc2 internal prototype to avoid an error. */
6451#ifdef __cplusplus
6452extern "C"
6453#endif
6454/* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6456char opendir ();
6457int
6458main ()
6459{
6460opendir ();
6461 ;
6462 return 0;
6463}
6464_ACEOF
6465rm -f conftest.$ac_objext conftest$ac_exeext
6466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } &&
6474 { ac_try='test -z "$ac_c_werror_flag"
6475 || test ! -s conftest.err'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; } &&
6481 { ac_try='test -s conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_search_opendir="none required"
6488else
6489 echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492fi
6493rm -f conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495if test "$ac_cv_search_opendir" = no; then
6496 for ac_lib in x; do
6497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h. */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h. */
6504
6505/* Override any gcc2 internal prototype to avoid an error. */
6506#ifdef __cplusplus
6507extern "C"
6508#endif
6509/* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511char opendir ();
6512int
6513main ()
6514{
6515opendir ();
6516 ;
6517 return 0;
6518}
6519_ACEOF
6520rm -f conftest.$ac_objext conftest$ac_exeext
6521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_search_opendir="-l$ac_lib"
6543break
6544else
6545 echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548fi
6549rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551 done
6552fi
6553LIBS=$ac_func_search_save_LIBS
6554fi
6555echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6556echo "${ECHO_T}$ac_cv_search_opendir" >&6
6557if test "$ac_cv_search_opendir" != no; then
6558 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6559
6560fi
6561
6562fi
6563
John Criswell7a73b802003-06-30 21:59:07 +00006564# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006575 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006576do
6577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6578echo "$as_me:$LINENO: checking for $ac_header" >&5
6579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6580if eval "test \"\${$as_ac_Header+set}\" = set"; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582else
6583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006584/* confdefs.h. */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006589$ac_includes_default
6590
6591#include <$ac_header>
6592_ACEOF
6593rm -f conftest.$ac_objext
6594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006595 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006596 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 eval "$as_ac_Header=yes"
6616else
6617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006618sed 's/^/| /' conftest.$ac_ext >&5
6619
John Criswell7a73b802003-06-30 21:59:07 +00006620eval "$as_ac_Header=no"
6621fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006623fi
6624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6626if test `eval echo '${'$as_ac_Header'}'` = yes; then
6627 cat >>confdefs.h <<_ACEOF
6628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6629_ACEOF
6630
6631fi
6632
6633done
6634
6635
6636
6637for ac_header in dlfcn.h
6638do
6639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006640if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6643if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006645fi
6646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006648else
Brian Gaeke0a621332004-09-08 20:38:05 +00006649 # Is the header compilable?
6650echo "$as_me:$LINENO: checking $ac_header usability" >&5
6651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6652cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006653/* confdefs.h. */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006658$ac_includes_default
6659#include <$ac_header>
6660_ACEOF
6661rm -f conftest.$ac_objext
6662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006663 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006670 { ac_try='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006683 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006684else
6685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006686sed 's/^/| /' conftest.$ac_ext >&5
6687
Brian Gaeke0a621332004-09-08 20:38:05 +00006688ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006689fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6692echo "${ECHO_T}$ac_header_compiler" >&6
6693
6694# Is the header present?
6695echo "$as_me:$LINENO: checking $ac_header presence" >&5
6696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6697cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006698/* confdefs.h. */
6699_ACEOF
6700cat confdefs.h >>conftest.$ac_ext
6701cat >>conftest.$ac_ext <<_ACEOF
6702/* end confdefs.h. */
6703#include <$ac_header>
6704_ACEOF
6705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null; then
6713 if test -s conftest.err; then
6714 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006716 else
6717 ac_cpp_err=
6718 fi
6719else
6720 ac_cpp_err=yes
6721fi
6722if test -z "$ac_cpp_err"; then
6723 ac_header_preproc=yes
6724else
6725 echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_header_preproc=no
6729fi
6730rm -f conftest.err conftest.$ac_ext
6731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6732echo "${ECHO_T}$ac_header_preproc" >&6
6733
6734# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6736 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6741 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006742 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006743 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006756 (
6757 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006758## ----------------------------------- ##
6759## Report this to llvmbugs@cs.uiuc.edu ##
6760## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006761_ASBOX
6762 ) |
6763 sed "s/^/$as_me: WARNING: /" >&2
6764 ;;
6765esac
6766echo "$as_me:$LINENO: checking for $ac_header" >&5
6767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6768if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006771 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006772fi
6773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006775
6776fi
John Criswell7a73b802003-06-30 21:59:07 +00006777if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778 cat >>confdefs.h <<_ACEOF
6779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6780_ACEOF
6781
6782fi
6783
6784done
6785
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006786# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6787if test "${enable_ltdl_install+set}" = set; then
6788 enableval="$enable_ltdl_install"
6789
6790fi;
6791
6792
6793
6794if test x"${enable_ltdl_install-no}" != xno; then
6795 INSTALL_LTDL_TRUE=
6796 INSTALL_LTDL_FALSE='#'
6797else
6798 INSTALL_LTDL_TRUE='#'
6799 INSTALL_LTDL_FALSE=
6800fi
6801
6802
6803
6804if test x"${enable_ltdl_convenience-no}" != xno; then
6805 CONVENIENCE_LTDL_TRUE=
6806 CONVENIENCE_LTDL_FALSE='#'
6807else
6808 CONVENIENCE_LTDL_TRUE='#'
6809 CONVENIENCE_LTDL_FALSE=
6810fi
6811
6812
6813echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6814echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6815library_names_spec=
6816libname_spec='lib$name'
6817soname_spec=
6818shrext_cmds=".so"
6819postinstall_cmds=
6820postuninstall_cmds=
6821finish_cmds=
6822finish_eval=
6823shlibpath_var=
6824shlibpath_overrides_runpath=unknown
6825version_type=none
6826dynamic_linker="$host_os ld.so"
6827sys_lib_dlsearch_path_spec="/lib /usr/lib"
6828if test "$GCC" = yes; then
6829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6830 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6831 # if the path contains ";" then we assume it to be the separator
6832 # otherwise default to the standard path separator (i.e. ":") - it is
6833 # assumed that no part of a normal pathname contains ";" but that should
6834 # okay in the real world where ";" in dirpaths is itself problematic.
6835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6836 else
6837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6838 fi
6839else
6840 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6841fi
6842need_lib_prefix=unknown
6843hardcode_into_libs=no
6844
6845# when you set need_version to no, make sure it does not cause -set_version
6846# flags to be left without arguments
6847need_version=unknown
6848
6849case $host_os in
6850aix3*)
6851 version_type=linux
6852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6853 shlibpath_var=LIBPATH
6854
6855 # AIX 3 has no versioning support, so we append a major version to the name.
6856 soname_spec='${libname}${release}${shared_ext}$major'
6857 ;;
6858
6859aix4* | aix5*)
6860 version_type=linux
6861 need_lib_prefix=no
6862 need_version=no
6863 hardcode_into_libs=yes
6864 if test "$host_cpu" = ia64; then
6865 # AIX 5 supports IA64
6866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 else
6869 # With GCC up to 2.95.x, collect2 would create an import file
6870 # for dependence libraries. The import file would start with
6871 # the line `#! .'. This would cause the generated library to
6872 # depend on `.', always an invalid library. This was fixed in
6873 # development snapshots of GCC prior to 3.0.
6874 case $host_os in
6875 aix4 | aix4.[01] | aix4.[01].*)
6876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6877 echo ' yes '
6878 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6879 :
6880 else
6881 can_build_shared=no
6882 fi
6883 ;;
6884 esac
6885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6886 # soname into executable. Probably we can add versioning support to
6887 # collect2, so additional links can be useful in future.
6888 if test "$aix_use_runtimelinking" = yes; then
6889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6890 # instead of lib<name>.a to let people know that these are not
6891 # typical AIX shared libraries.
6892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6893 else
6894 # We preserve .a as extension for shared libraries through AIX4.2
6895 # and later when we are not doing run time linking.
6896 library_names_spec='${libname}${release}.a $libname.a'
6897 soname_spec='${libname}${release}${shared_ext}$major'
6898 fi
6899 shlibpath_var=LIBPATH
6900 fi
6901 ;;
6902
6903amigaos*)
6904 library_names_spec='$libname.ixlibrary $libname.a'
6905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6906 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'
6907 ;;
6908
6909beos*)
6910 library_names_spec='${libname}${shared_ext}'
6911 dynamic_linker="$host_os ld.so"
6912 shlibpath_var=LIBRARY_PATH
6913 ;;
6914
6915bsdi[45]*)
6916 version_type=linux
6917 need_version=no
6918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6919 soname_spec='${libname}${release}${shared_ext}$major'
6920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6921 shlibpath_var=LD_LIBRARY_PATH
6922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6924 # the default ld.so.conf also contains /usr/contrib/lib and
6925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6926 # libtool to hard-code these into programs
6927 ;;
6928
6929cygwin* | mingw* | pw32*)
6930 version_type=windows
6931 shrext_cmds=".dll"
6932 need_version=no
6933 need_lib_prefix=no
6934
6935 case $GCC,$host_os in
6936 yes,cygwin* | yes,mingw* | yes,pw32*)
6937 library_names_spec='$libname.dll.a'
6938 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6939 postinstall_cmds='base_file=`basename \${file}`~
6940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6941 dldir=$destdir/`dirname \$dlpath`~
6942 test -d \$dldir || mkdir -p \$dldir~
6943 $install_prog $dir/$dlname \$dldir/$dlname'
6944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6945 dlpath=$dir/\$dldll~
6946 $rm \$dlpath'
6947 shlibpath_overrides_runpath=yes
6948
6949 case $host_os in
6950 cygwin*)
6951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6953 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6954 ;;
6955 mingw*)
6956 # MinGW DLLs use traditional 'lib' prefix
6957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6958 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6959 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6960 # It is most probably a Windows format PATH printed by
6961 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6962 # path with ; separators, and with drive letters. We can handle the
6963 # drive letters (cygwin fileutils understands them), so leave them,
6964 # especially as we might pass files found there to a mingw objdump,
6965 # which wouldn't understand a cygwinified path. Ahh.
6966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6967 else
6968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6969 fi
6970 ;;
6971 pw32*)
6972 # pw32 DLLs use 'pw' prefix rather than 'lib'
6973 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6974 ;;
6975 esac
6976 ;;
6977
6978 *)
6979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6980 ;;
6981 esac
6982 dynamic_linker='Win32 ld.exe'
6983 # FIXME: first we should search . and the directory the executable is in
6984 shlibpath_var=PATH
6985 ;;
6986
6987darwin* | rhapsody*)
6988 dynamic_linker="$host_os dyld"
6989 version_type=darwin
6990 need_lib_prefix=no
6991 need_version=no
6992 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6993 soname_spec='${libname}${release}${major}$shared_ext'
6994 shlibpath_overrides_runpath=yes
6995 shlibpath_var=DYLD_LIBRARY_PATH
6996 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6997 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6998 if test "$GCC" = yes; then
6999 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"`
7000 else
7001 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7002 fi
7003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7004 ;;
7005
7006dgux*)
7007 version_type=linux
7008 need_lib_prefix=no
7009 need_version=no
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7011 soname_spec='${libname}${release}${shared_ext}$major'
7012 shlibpath_var=LD_LIBRARY_PATH
7013 ;;
7014
7015freebsd1*)
7016 dynamic_linker=no
7017 ;;
7018
7019kfreebsd*-gnu)
7020 version_type=linux
7021 need_lib_prefix=no
7022 need_version=no
7023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7024 soname_spec='${libname}${release}${shared_ext}$major'
7025 shlibpath_var=LD_LIBRARY_PATH
7026 shlibpath_overrides_runpath=no
7027 hardcode_into_libs=yes
7028 dynamic_linker='GNU ld.so'
7029 ;;
7030
7031freebsd*)
7032 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7033 version_type=freebsd-$objformat
7034 case $version_type in
7035 freebsd-elf*)
7036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7037 need_version=no
7038 need_lib_prefix=no
7039 ;;
7040 freebsd-*)
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7042 need_version=yes
7043 ;;
7044 esac
7045 shlibpath_var=LD_LIBRARY_PATH
7046 case $host_os in
7047 freebsd2*)
7048 shlibpath_overrides_runpath=yes
7049 ;;
7050 freebsd3.01* | freebsdelf3.01*)
7051 shlibpath_overrides_runpath=yes
7052 hardcode_into_libs=yes
7053 ;;
7054 *) # from 3.2 on
7055 shlibpath_overrides_runpath=no
7056 hardcode_into_libs=yes
7057 ;;
7058 esac
7059 ;;
7060
7061gnu*)
7062 version_type=linux
7063 need_lib_prefix=no
7064 need_version=no
7065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7066 soname_spec='${libname}${release}${shared_ext}$major'
7067 shlibpath_var=LD_LIBRARY_PATH
7068 hardcode_into_libs=yes
7069 ;;
7070
7071hpux9* | hpux10* | hpux11*)
7072 # Give a soname corresponding to the major version so that dld.sl refuses to
7073 # link against other versions.
7074 version_type=sunos
7075 need_lib_prefix=no
7076 need_version=no
7077 case "$host_cpu" in
7078 ia64*)
7079 shrext_cmds='.so'
7080 hardcode_into_libs=yes
7081 dynamic_linker="$host_os dld.so"
7082 shlibpath_var=LD_LIBRARY_PATH
7083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7085 soname_spec='${libname}${release}${shared_ext}$major'
7086 if test "X$HPUX_IA64_MODE" = X32; then
7087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7088 else
7089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7090 fi
7091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7092 ;;
7093 hppa*64*)
7094 shrext_cmds='.sl'
7095 hardcode_into_libs=yes
7096 dynamic_linker="$host_os dld.sl"
7097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100 soname_spec='${libname}${release}${shared_ext}$major'
7101 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7103 ;;
7104 *)
7105 shrext_cmds='.sl'
7106 dynamic_linker="$host_os dld.sl"
7107 shlibpath_var=SHLIB_PATH
7108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7110 soname_spec='${libname}${release}${shared_ext}$major'
7111 ;;
7112 esac
7113 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7114 postinstall_cmds='chmod 555 $lib'
7115 ;;
7116
7117irix5* | irix6* | nonstopux*)
7118 case $host_os in
7119 nonstopux*) version_type=nonstopux ;;
7120 *)
7121 if test "$lt_cv_prog_gnu_ld" = yes; then
7122 version_type=linux
7123 else
7124 version_type=irix
7125 fi ;;
7126 esac
7127 need_lib_prefix=no
7128 need_version=no
7129 soname_spec='${libname}${release}${shared_ext}$major'
7130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7131 case $host_os in
7132 irix5* | nonstopux*)
7133 libsuff= shlibsuff=
7134 ;;
7135 *)
7136 case $LD in # libtool.m4 will add one of these switches to LD
7137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7138 libsuff= shlibsuff= libmagic=32-bit;;
7139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7140 libsuff=32 shlibsuff=N32 libmagic=N32;;
7141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7142 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7143 *) libsuff= shlibsuff= libmagic=never-match;;
7144 esac
7145 ;;
7146 esac
7147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7148 shlibpath_overrides_runpath=no
7149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7151 hardcode_into_libs=yes
7152 ;;
7153
7154# No shared lib support for Linux oldld, aout, or coff.
7155linux*oldld* | linux*aout* | linux*coff*)
7156 dynamic_linker=no
7157 ;;
7158
7159# This must be Linux ELF.
7160linux*)
7161 version_type=linux
7162 need_lib_prefix=no
7163 need_version=no
7164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7165 soname_spec='${libname}${release}${shared_ext}$major'
7166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7167 shlibpath_var=LD_LIBRARY_PATH
7168 shlibpath_overrides_runpath=no
7169 # This implies no fast_install, which is unacceptable.
7170 # Some rework will be needed to allow for fast_install
7171 # before this can be enabled.
7172 hardcode_into_libs=yes
7173
7174 # Append ld.so.conf contents to the search path
7175 if test -f /etc/ld.so.conf; then
7176 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7178 fi
7179
7180 # We used to test for /lib/ld.so.1 and disable shared libraries on
7181 # powerpc, because MkLinux only supported shared libraries with the
7182 # GNU dynamic linker. Since this was broken with cross compilers,
7183 # most powerpc-linux boxes support dynamic linking these days and
7184 # people can always --disable-shared, the test was removed, and we
7185 # assume the GNU/Linux dynamic linker is in use.
7186 dynamic_linker='GNU/Linux ld.so'
7187 ;;
7188
7189knetbsd*-gnu)
7190 version_type=linux
7191 need_lib_prefix=no
7192 need_version=no
7193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7194 soname_spec='${libname}${release}${shared_ext}$major'
7195 shlibpath_var=LD_LIBRARY_PATH
7196 shlibpath_overrides_runpath=no
7197 hardcode_into_libs=yes
7198 dynamic_linker='GNU ld.so'
7199 ;;
7200
7201netbsd*)
7202 version_type=sunos
7203 need_lib_prefix=no
7204 need_version=no
7205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7208 dynamic_linker='NetBSD (a.out) ld.so'
7209 else
7210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7211 soname_spec='${libname}${release}${shared_ext}$major'
7212 dynamic_linker='NetBSD ld.elf_so'
7213 fi
7214 shlibpath_var=LD_LIBRARY_PATH
7215 shlibpath_overrides_runpath=yes
7216 hardcode_into_libs=yes
7217 ;;
7218
7219newsos6)
7220 version_type=linux
7221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7222 shlibpath_var=LD_LIBRARY_PATH
7223 shlibpath_overrides_runpath=yes
7224 ;;
7225
7226nto-qnx*)
7227 version_type=linux
7228 need_lib_prefix=no
7229 need_version=no
7230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7231 soname_spec='${libname}${release}${shared_ext}$major'
7232 shlibpath_var=LD_LIBRARY_PATH
7233 shlibpath_overrides_runpath=yes
7234 ;;
7235
7236openbsd*)
7237 version_type=sunos
7238 need_lib_prefix=no
7239 need_version=no
7240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7242 shlibpath_var=LD_LIBRARY_PATH
7243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7244 case $host_os in
7245 openbsd2.[89] | openbsd2.[89].*)
7246 shlibpath_overrides_runpath=no
7247 ;;
7248 *)
7249 shlibpath_overrides_runpath=yes
7250 ;;
7251 esac
7252 else
7253 shlibpath_overrides_runpath=yes
7254 fi
7255 ;;
7256
7257os2*)
7258 libname_spec='$name'
7259 shrext_cmds=".dll"
7260 need_lib_prefix=no
7261 library_names_spec='$libname${shared_ext} $libname.a'
7262 dynamic_linker='OS/2 ld.exe'
7263 shlibpath_var=LIBPATH
7264 ;;
7265
7266osf3* | osf4* | osf5*)
7267 version_type=osf
7268 need_lib_prefix=no
7269 need_version=no
7270 soname_spec='${libname}${release}${shared_ext}$major'
7271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7272 shlibpath_var=LD_LIBRARY_PATH
7273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7274 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7275 ;;
7276
7277sco3.2v5*)
7278 version_type=osf
7279 soname_spec='${libname}${release}${shared_ext}$major'
7280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7281 shlibpath_var=LD_LIBRARY_PATH
7282 ;;
7283
7284solaris*)
7285 version_type=linux
7286 need_lib_prefix=no
7287 need_version=no
7288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7289 soname_spec='${libname}${release}${shared_ext}$major'
7290 shlibpath_var=LD_LIBRARY_PATH
7291 shlibpath_overrides_runpath=yes
7292 hardcode_into_libs=yes
7293 # ldd complains unless libraries are executable
7294 postinstall_cmds='chmod +x $lib'
7295 ;;
7296
7297sunos4*)
7298 version_type=sunos
7299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7301 shlibpath_var=LD_LIBRARY_PATH
7302 shlibpath_overrides_runpath=yes
7303 if test "$with_gnu_ld" = yes; then
7304 need_lib_prefix=no
7305 fi
7306 need_version=yes
7307 ;;
7308
7309sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7310 version_type=linux
7311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7312 soname_spec='${libname}${release}${shared_ext}$major'
7313 shlibpath_var=LD_LIBRARY_PATH
7314 case $host_vendor in
7315 sni)
7316 shlibpath_overrides_runpath=no
7317 need_lib_prefix=no
7318 export_dynamic_flag_spec='${wl}-Blargedynsym'
7319 runpath_var=LD_RUN_PATH
7320 ;;
7321 siemens)
7322 need_lib_prefix=no
7323 ;;
7324 motorola)
7325 need_lib_prefix=no
7326 need_version=no
7327 shlibpath_overrides_runpath=no
7328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7329 ;;
7330 esac
7331 ;;
7332
7333sysv4*MP*)
7334 if test -d /usr/nec ;then
7335 version_type=linux
7336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7337 soname_spec='$libname${shared_ext}.$major'
7338 shlibpath_var=LD_LIBRARY_PATH
7339 fi
7340 ;;
7341
7342uts4*)
7343 version_type=linux
7344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345 soname_spec='${libname}${release}${shared_ext}$major'
7346 shlibpath_var=LD_LIBRARY_PATH
7347 ;;
7348
7349*)
7350 dynamic_linker=no
7351 ;;
7352esac
7353echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7354echo "${ECHO_T}$dynamic_linker" >&6
7355test "$dynamic_linker" = no && can_build_shared=no
7356
7357
7358echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7359echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7360if test "${libltdl_cv_shlibext+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362else
7363
7364module=yes
7365eval libltdl_cv_shlibext=$shrext_cmds
7366
7367fi
7368echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7369echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7370if test -n "$libltdl_cv_shlibext"; then
7371
7372cat >>confdefs.h <<_ACEOF
7373#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7374_ACEOF
7375
7376fi
7377
7378
7379echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7380echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7381if test "${libltdl_cv_shlibpath_var+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383else
7384 libltdl_cv_shlibpath_var="$shlibpath_var"
7385fi
7386echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7387echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7388if test -n "$libltdl_cv_shlibpath_var"; then
7389
7390cat >>confdefs.h <<_ACEOF
7391#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7392_ACEOF
7393
7394fi
7395
7396
7397echo "$as_me:$LINENO: checking for the default library search path" >&5
7398echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7399if test "${libltdl_cv_sys_search_path+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401else
7402 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7403fi
7404echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7405echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7406if test -n "$libltdl_cv_sys_search_path"; then
7407 sys_search_path=
7408 for dir in $libltdl_cv_sys_search_path; do
7409 if test -z "$sys_search_path"; then
7410 sys_search_path="$dir"
7411 else
7412 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7413 fi
7414 done
7415
7416cat >>confdefs.h <<_ACEOF
7417#define LTDL_SYSSEARCHPATH "$sys_search_path"
7418_ACEOF
7419
7420fi
7421
7422echo "$as_me:$LINENO: checking for objdir" >&5
7423echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7424if test "${libltdl_cv_objdir+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 libltdl_cv_objdir="$objdir"
7428 if test -n "$objdir"; then
7429 :
7430 else
7431 rm -f .libs 2>/dev/null
7432 mkdir .libs 2>/dev/null
7433 if test -d .libs; then
7434 libltdl_cv_objdir=.libs
7435 else
7436 # MS-DOS does not allow filenames that begin with a dot.
7437 libltdl_cv_objdir=_libs
7438 fi
7439 rmdir .libs 2>/dev/null
7440 fi
7441
7442fi
7443echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7444echo "${ECHO_T}$libltdl_cv_objdir" >&6
7445
7446cat >>confdefs.h <<_ACEOF
7447#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7448_ACEOF
7449
7450
7451echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7452echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7453if test "${lt_cv_path_NM+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456 if test -n "$NM"; then
7457 # Let the user override the test.
7458 lt_cv_path_NM="$NM"
7459else
7460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7461 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7462 IFS="$lt_save_ifs"
7463 test -z "$ac_dir" && ac_dir=.
7464 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7465 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7466 # Check to see if the nm accepts a BSD-compat flag.
7467 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7468 # nm: unknown option "B" ignored
7469 # Tru64's nm complains that /dev/null is an invalid object file
7470 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7471 */dev/null* | *'Invalid file or object type'*)
7472 lt_cv_path_NM="$tmp_nm -B"
7473 break
7474 ;;
7475 *)
7476 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7477 */dev/null*)
7478 lt_cv_path_NM="$tmp_nm -p"
7479 break
7480 ;;
7481 *)
7482 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7483 continue # so that we can try to find one that supports BSD flags
7484 ;;
7485 esac
7486 esac
7487 fi
7488 done
7489 IFS="$lt_save_ifs"
7490 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7491fi
7492fi
7493echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7494echo "${ECHO_T}$lt_cv_path_NM" >&6
7495NM="$lt_cv_path_NM"
7496
7497
7498
7499
7500
7501# Check for command to grab the raw symbol name followed by C symbol from nm.
7502echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7503echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7504if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507
7508# These are sane defaults that work on at least a few old systems.
7509# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7510
7511# Character class describing NM global symbol codes.
7512symcode='[BCDEGRST]'
7513
7514# Regexp to match symbols that can be accessed directly from C.
7515sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7516
7517# Transform the above into a raw symbol and a C symbol.
7518symxfrm='\1 \2\3 \3'
7519
7520# Transform an extracted symbol line into a proper C declaration
7521lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7522
7523# Transform an extracted symbol line into symbol name and symbol address
7524lt_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'"
7525
7526# Define system-specific variables.
7527case $host_os in
7528aix*)
7529 symcode='[BCDT]'
7530 ;;
7531cygwin* | mingw* | pw32*)
7532 symcode='[ABCDGISTW]'
7533 ;;
7534hpux*) # Its linker distinguishes data from code symbols
7535 if test "$host_cpu" = ia64; then
7536 symcode='[ABCDEGRST]'
7537 fi
7538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7539 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'"
7540 ;;
7541linux*)
7542 if test "$host_cpu" = ia64; then
7543 symcode='[ABCDGIRSTW]'
7544 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7545 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'"
7546 fi
7547 ;;
7548irix* | nonstopux*)
7549 symcode='[BCDEGRST]'
7550 ;;
7551osf*)
7552 symcode='[BCDEGQRST]'
7553 ;;
7554solaris* | sysv5*)
7555 symcode='[BDRT]'
7556 ;;
7557sysv4)
7558 symcode='[DFNSTU]'
7559 ;;
7560esac
7561
7562# Handle CRLF in mingw tool chain
7563opt_cr=
7564case $build_os in
7565mingw*)
7566 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7567 ;;
7568esac
7569
7570# If we're using GNU nm, then use its standard symbol codes.
7571case `$NM -V 2>&1` in
7572*GNU* | *'with BFD'*)
7573 symcode='[ABCDGIRSTW]' ;;
7574esac
7575
7576# Try without a prefix undercore, then with it.
7577for ac_symprfx in "" "_"; do
7578
7579 # Write the raw and C identifiers.
7580 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7581
7582 # Check to see that the pipe works correctly.
7583 pipe_works=no
7584
7585 rm -f conftest*
7586 cat > conftest.$ac_ext <<EOF
7587#ifdef __cplusplus
7588extern "C" {
7589#endif
7590char nm_test_var;
7591void nm_test_func(){}
7592#ifdef __cplusplus
7593}
7594#endif
7595int main(){nm_test_var='a';nm_test_func();return(0);}
7596EOF
7597
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; then
7603 # Now try to grab the symbols.
7604 nlist=conftest.nm
7605 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7606 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } && test -s "$nlist"; then
7610 # Try sorting and uniquifying the output.
7611 if sort "$nlist" | uniq > "$nlist"T; then
7612 mv -f "$nlist"T "$nlist"
7613 else
7614 rm -f "$nlist"T
7615 fi
7616
7617 # Make sure that we snagged all the symbols we need.
7618 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7619 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7620 cat <<EOF > conftest.$ac_ext
7621#ifdef __cplusplus
7622extern "C" {
7623#endif
7624
7625EOF
7626 # Now generate the symbol file.
7627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7628
7629 cat <<EOF >> conftest.$ac_ext
7630#if defined (__STDC__) && __STDC__
7631# define lt_ptr_t void *
7632#else
7633# define lt_ptr_t char *
7634# define const
7635#endif
7636
7637/* The mapping between symbol names and symbols. */
7638const struct {
7639 const char *name;
7640 lt_ptr_t address;
7641}
7642lt_preloaded_symbols[] =
7643{
7644EOF
7645 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7646 cat <<\EOF >> conftest.$ac_ext
7647 {0, (lt_ptr_t) 0}
7648};
7649
7650#ifdef __cplusplus
7651}
7652#endif
7653EOF
7654 # Now try linking the two files.
7655 mv conftest.$ac_objext conftstm.$ac_objext
7656 lt_save_LIBS="$LIBS"
7657 lt_save_CFLAGS="$CFLAGS"
7658 LIBS="conftstm.$ac_objext"
7659 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7665 pipe_works=yes
7666 fi
7667 LIBS="$lt_save_LIBS"
7668 CFLAGS="$lt_save_CFLAGS"
7669 else
7670 echo "cannot find nm_test_func in $nlist" >&5
7671 fi
7672 else
7673 echo "cannot find nm_test_var in $nlist" >&5
7674 fi
7675 else
7676 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7677 fi
7678 else
7679 echo "$progname: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7681 fi
7682 rm -f conftest* conftst*
7683
7684 # Do not use the global_symbol_pipe unless it works.
7685 if test "$pipe_works" = yes; then
7686 break
7687 else
7688 lt_cv_sys_global_symbol_pipe=
7689 fi
7690done
7691
7692fi
7693
7694if test -z "$lt_cv_sys_global_symbol_pipe"; then
7695 lt_cv_sys_global_symbol_to_cdecl=
7696fi
7697if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7698 echo "$as_me:$LINENO: result: failed" >&5
7699echo "${ECHO_T}failed" >&6
7700else
7701 echo "$as_me:$LINENO: result: ok" >&5
7702echo "${ECHO_T}ok" >&6
7703fi
7704
7705
7706echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7707echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7708if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7712 libltdl_cv_preloaded_symbols=yes
7713 else
7714 libltdl_cv_preloaded_symbols=no
7715 fi
7716
7717fi
7718echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7719echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7720if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7721
7722cat >>confdefs.h <<\_ACEOF
7723#define HAVE_PRELOADED_SYMBOLS 1
7724_ACEOF
7725
7726fi
7727
7728LIBADD_DL=
7729
7730ac_ext=c
7731ac_cpp='$CPP $CPPFLAGS'
7732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735
7736
7737echo "$as_me:$LINENO: checking for shl_load" >&5
7738echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7739if test "${ac_cv_func_shl_load+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742 cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h. */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h. */
7748/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7750#define shl_load innocuous_shl_load
7751
7752/* System header to define __stub macros and hopefully few prototypes,
7753 which can conflict with char shl_load (); below.
7754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755 <limits.h> exists even on freestanding compilers. */
7756
7757#ifdef __STDC__
7758# include <limits.h>
7759#else
7760# include <assert.h>
7761#endif
7762
7763#undef shl_load
7764
7765/* Override any gcc2 internal prototype to avoid an error. */
7766#ifdef __cplusplus
7767extern "C"
7768{
7769#endif
7770/* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7772char shl_load ();
7773/* The GNU C library defines this for functions which it implements
7774 to always fail with ENOSYS. Some functions are actually named
7775 something starting with __ and the normal name is an alias. */
7776#if defined (__stub_shl_load) || defined (__stub___shl_load)
7777choke me
7778#else
7779char (*f) () = shl_load;
7780#endif
7781#ifdef __cplusplus
7782}
7783#endif
7784
7785int
7786main ()
7787{
7788return f != shl_load;
7789 ;
7790 return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext conftest$ac_exeext
7794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795 (eval $ac_link) 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_cv_func_shl_load=yes
7816else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820ac_cv_func_shl_load=no
7821fi
7822rm -f conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824fi
7825echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7826echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7827if test $ac_cv_func_shl_load = yes; then
7828
7829cat >>confdefs.h <<\_ACEOF
7830#define HAVE_SHL_LOAD 1
7831_ACEOF
7832
7833else
7834 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7835echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7836if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839 ac_check_lib_save_LIBS=$LIBS
7840LIBS="-ldld $LIBS"
7841cat >conftest.$ac_ext <<_ACEOF
7842/* confdefs.h. */
7843_ACEOF
7844cat confdefs.h >>conftest.$ac_ext
7845cat >>conftest.$ac_ext <<_ACEOF
7846/* end confdefs.h. */
7847
7848/* Override any gcc2 internal prototype to avoid an error. */
7849#ifdef __cplusplus
7850extern "C"
7851#endif
7852/* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7854char shl_load ();
7855int
7856main ()
7857{
7858shl_load ();
7859 ;
7860 return 0;
7861}
7862_ACEOF
7863rm -f conftest.$ac_objext conftest$ac_exeext
7864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7865 (eval $ac_link) 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_lib_dld_shl_load=yes
7886else
7887 echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890ac_cv_lib_dld_shl_load=no
7891fi
7892rm -f conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7894LIBS=$ac_check_lib_save_LIBS
7895fi
7896echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7897echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7898if test $ac_cv_lib_dld_shl_load = yes; then
7899
7900cat >>confdefs.h <<\_ACEOF
7901#define HAVE_SHL_LOAD 1
7902_ACEOF
7903
7904 LIBADD_DL="$LIBADD_DL -ldld"
7905else
7906 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7907echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7908if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 ac_check_lib_save_LIBS=$LIBS
7912LIBS="-ldl $LIBS"
7913cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h. */
7919
7920/* Override any gcc2 internal prototype to avoid an error. */
7921#ifdef __cplusplus
7922extern "C"
7923#endif
7924/* We use char because int might match the return type of a gcc2
7925 builtin and then its argument prototype would still apply. */
7926char dlopen ();
7927int
7928main ()
7929{
7930dlopen ();
7931 ;
7932 return 0;
7933}
7934_ACEOF
7935rm -f conftest.$ac_objext conftest$ac_exeext
7936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7937 (eval $ac_link) 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest$ac_exeext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_lib_dl_dlopen=yes
7958else
7959 echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
7962ac_cv_lib_dl_dlopen=no
7963fi
7964rm -f conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
7966LIBS=$ac_check_lib_save_LIBS
7967fi
7968echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7969echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7970if test $ac_cv_lib_dl_dlopen = yes; then
7971
7972cat >>confdefs.h <<\_ACEOF
7973#define HAVE_LIBDL 1
7974_ACEOF
7975
7976 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7977else
7978 cat >conftest.$ac_ext <<_ACEOF
7979/* confdefs.h. */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h. */
7984#if HAVE_DLFCN_H
7985# include <dlfcn.h>
7986#endif
7987
7988int
7989main ()
7990{
7991dlopen(0, 0);
7992 ;
7993 return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext conftest$ac_exeext
7997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>conftest.er1
7999 ac_status=$?
8000 grep -v '^ *+' conftest.er1 >conftest.err
8001 rm -f conftest.er1
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag"
8006 || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018
8019cat >>confdefs.h <<\_ACEOF
8020#define HAVE_LIBDL 1
8021_ACEOF
8022 libltdl_cv_func_dlopen="yes"
8023else
8024 echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8028echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8029if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 ac_check_lib_save_LIBS=$LIBS
8033LIBS="-lsvld $LIBS"
8034cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h. */
8040
8041/* Override any gcc2 internal prototype to avoid an error. */
8042#ifdef __cplusplus
8043extern "C"
8044#endif
8045/* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8047char dlopen ();
8048int
8049main ()
8050{
8051dlopen ();
8052 ;
8053 return 0;
8054}
8055_ACEOF
8056rm -f conftest.$ac_objext conftest$ac_exeext
8057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_lib_svld_dlopen=yes
8079else
8080 echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
8083ac_cv_lib_svld_dlopen=no
8084fi
8085rm -f conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087LIBS=$ac_check_lib_save_LIBS
8088fi
8089echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8090echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8091if test $ac_cv_lib_svld_dlopen = yes; then
8092
8093cat >>confdefs.h <<\_ACEOF
8094#define HAVE_LIBDL 1
8095_ACEOF
8096
8097 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8098else
8099 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8100echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8101if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104 ac_check_lib_save_LIBS=$LIBS
8105LIBS="-ldld $LIBS"
8106cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
8112
8113/* Override any gcc2 internal prototype to avoid an error. */
8114#ifdef __cplusplus
8115extern "C"
8116#endif
8117/* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8119char dld_link ();
8120int
8121main ()
8122{
8123dld_link ();
8124 ;
8125 return 0;
8126}
8127_ACEOF
8128rm -f conftest.$ac_objext conftest$ac_exeext
8129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>conftest.er1
8131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_lib_dld_dld_link=yes
8151else
8152 echo "$as_me: failed program was:" >&5
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
8155ac_cv_lib_dld_dld_link=no
8156fi
8157rm -f conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159LIBS=$ac_check_lib_save_LIBS
8160fi
8161echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8162echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8163if test $ac_cv_lib_dld_dld_link = yes; then
8164
8165cat >>confdefs.h <<\_ACEOF
8166#define HAVE_DLD 1
8167_ACEOF
8168
8169 LIBADD_DL="$LIBADD_DL -ldld"
8170else
8171 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8172echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8173if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h. */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h. */
8182/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8184#define _dyld_func_lookup innocuous__dyld_func_lookup
8185
8186/* System header to define __stub macros and hopefully few prototypes,
8187 which can conflict with char _dyld_func_lookup (); below.
8188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8189 <limits.h> exists even on freestanding compilers. */
8190
8191#ifdef __STDC__
8192# include <limits.h>
8193#else
8194# include <assert.h>
8195#endif
8196
8197#undef _dyld_func_lookup
8198
8199/* Override any gcc2 internal prototype to avoid an error. */
8200#ifdef __cplusplus
8201extern "C"
8202{
8203#endif
8204/* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8206char _dyld_func_lookup ();
8207/* The GNU C library defines this for functions which it implements
8208 to always fail with ENOSYS. Some functions are actually named
8209 something starting with __ and the normal name is an alias. */
8210#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8211choke me
8212#else
8213char (*f) () = _dyld_func_lookup;
8214#endif
8215#ifdef __cplusplus
8216}
8217#endif
8218
8219int
8220main ()
8221{
8222return f != _dyld_func_lookup;
8223 ;
8224 return 0;
8225}
8226_ACEOF
8227rm -f conftest.$ac_objext conftest$ac_exeext
8228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -z "$ac_c_werror_flag"
8237 || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } &&
8243 { ac_try='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_func__dyld_func_lookup=yes
8250else
8251 echo "$as_me: failed program was:" >&5
8252sed 's/^/| /' conftest.$ac_ext >&5
8253
8254ac_cv_func__dyld_func_lookup=no
8255fi
8256rm -f conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8258fi
8259echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8260echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8261if test $ac_cv_func__dyld_func_lookup = yes; then
8262
8263cat >>confdefs.h <<\_ACEOF
8264#define HAVE_DYLD 1
8265_ACEOF
8266
8267fi
8268
8269
8270fi
8271
8272
8273fi
8274
8275
8276fi
8277rm -f conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279
8280fi
8281
8282
8283fi
8284
8285
8286fi
8287
8288
8289if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8290then
8291 lt_save_LIBS="$LIBS"
8292 LIBS="$LIBS $LIBADD_DL"
8293
8294for ac_func in dlerror
8295do
8296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8297echo "$as_me:$LINENO: checking for $ac_func" >&5
8298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8299if eval "test \"\${$as_ac_var+set}\" = set"; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8301else
8302 cat >conftest.$ac_ext <<_ACEOF
8303/* confdefs.h. */
8304_ACEOF
8305cat confdefs.h >>conftest.$ac_ext
8306cat >>conftest.$ac_ext <<_ACEOF
8307/* end confdefs.h. */
8308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8310#define $ac_func innocuous_$ac_func
8311
8312/* System header to define __stub macros and hopefully few prototypes,
8313 which can conflict with char $ac_func (); below.
8314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8315 <limits.h> exists even on freestanding compilers. */
8316
8317#ifdef __STDC__
8318# include <limits.h>
8319#else
8320# include <assert.h>
8321#endif
8322
8323#undef $ac_func
8324
8325/* Override any gcc2 internal prototype to avoid an error. */
8326#ifdef __cplusplus
8327extern "C"
8328{
8329#endif
8330/* We use char because int might match the return type of a gcc2
8331 builtin and then its argument prototype would still apply. */
8332char $ac_func ();
8333/* The GNU C library defines this for functions which it implements
8334 to always fail with ENOSYS. Some functions are actually named
8335 something starting with __ and the normal name is an alias. */
8336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8337choke me
8338#else
8339char (*f) () = $ac_func;
8340#endif
8341#ifdef __cplusplus
8342}
8343#endif
8344
8345int
8346main ()
8347{
8348return f != $ac_func;
8349 ;
8350 return 0;
8351}
8352_ACEOF
8353rm -f conftest.$ac_objext conftest$ac_exeext
8354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag"
8363 || test ! -s conftest.err'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 (eval $ac_try) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 eval "$as_ac_var=yes"
8376else
8377 echo "$as_me: failed program was:" >&5
8378sed 's/^/| /' conftest.$ac_ext >&5
8379
8380eval "$as_ac_var=no"
8381fi
8382rm -f conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384fi
8385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8387if test `eval echo '${'$as_ac_var'}'` = yes; then
8388 cat >>confdefs.h <<_ACEOF
8389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8390_ACEOF
8391
8392fi
8393done
8394
8395 LIBS="$lt_save_LIBS"
8396fi
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8406echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8407if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409else
8410 ac_cv_sys_symbol_underscore=no
8411 cat > conftest.$ac_ext <<EOF
8412void nm_test_func(){}
8413int main(){nm_test_func;return 0;}
8414EOF
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; then
8420 # Now try to grab the symbols.
8421 ac_nlist=conftest.nm
8422 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8423 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && test -s "$ac_nlist"; then
8427 # See whether the symbols have a leading underscore.
8428 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8429 ac_cv_sys_symbol_underscore=yes
8430 else
8431 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8432 :
8433 else
8434 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8435 fi
8436 fi
8437 else
8438 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8439 fi
8440 else
8441 echo "configure: failed program was:" >&5
8442 cat conftest.c >&5
8443 fi
8444 rm -rf conftest*
8445
8446fi
8447echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8448echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8449
8450
8451if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8452 if test x"$libltdl_cv_func_dlopen" = xyes ||
8453 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8454 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8455echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8456if test "${libltdl_cv_need_uscore+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8458else
8459 libltdl_cv_need_uscore=unknown
8460 save_LIBS="$LIBS"
8461 LIBS="$LIBS $LIBADD_DL"
8462 if test "$cross_compiling" = yes; then :
8463 libltdl_cv_need_uscore=cross
8464else
8465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8466 lt_status=$lt_dlunknown
8467 cat > conftest.$ac_ext <<EOF
Reid Spencerc28ccd82006-04-09 20:42:14 +00008468#line 8468 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008469#include "confdefs.h"
8470
8471#if HAVE_DLFCN_H
8472#include <dlfcn.h>
8473#endif
8474
8475#include <stdio.h>
8476
8477#ifdef RTLD_GLOBAL
8478# define LT_DLGLOBAL RTLD_GLOBAL
8479#else
8480# ifdef DL_GLOBAL
8481# define LT_DLGLOBAL DL_GLOBAL
8482# else
8483# define LT_DLGLOBAL 0
8484# endif
8485#endif
8486
8487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8488 find out it does not work in some platform. */
8489#ifndef LT_DLLAZY_OR_NOW
8490# ifdef RTLD_LAZY
8491# define LT_DLLAZY_OR_NOW RTLD_LAZY
8492# else
8493# ifdef DL_LAZY
8494# define LT_DLLAZY_OR_NOW DL_LAZY
8495# else
8496# ifdef RTLD_NOW
8497# define LT_DLLAZY_OR_NOW RTLD_NOW
8498# else
8499# ifdef DL_NOW
8500# define LT_DLLAZY_OR_NOW DL_NOW
8501# else
8502# define LT_DLLAZY_OR_NOW 0
8503# endif
8504# endif
8505# endif
8506# endif
8507#endif
8508
8509#ifdef __cplusplus
8510extern "C" void exit (int);
8511#endif
8512
8513void fnord() { int i=42;}
8514int main ()
8515{
8516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8517 int status = $lt_dlunknown;
8518
8519 if (self)
8520 {
8521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8523 /* dlclose (self); */
8524 }
8525
8526 exit (status);
8527}
8528EOF
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8534 (./conftest; exit; ) 2>/dev/null
8535 lt_status=$?
8536 case x$lt_status in
8537 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8538 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8539 x$lt_unknown|x*) ;;
8540 esac
8541 else :
8542 # compilation failed
8543
8544 fi
8545fi
8546rm -fr conftest*
8547
8548 LIBS="$save_LIBS"
8549
8550fi
8551echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8552echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8553 fi
8554fi
8555
8556if test x"$libltdl_cv_need_uscore" = xyes; then
8557
8558cat >>confdefs.h <<\_ACEOF
8559#define NEED_USCORE 1
8560_ACEOF
8561
8562fi
8563
8564
8565echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8566echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8567if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569else
8570 # PORTME does your system automatically load deplibs for dlopen?
8571 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8572 # For now, we just catch OSes we know something about -- in the
8573 # future, we'll try test this programmatically.
8574 libltdl_cv_sys_dlopen_deplibs=unknown
8575 case "$host_os" in
8576 aix3*|aix4.1.*|aix4.2.*)
8577 # Unknown whether this is true for these versions of AIX, but
8578 # we want this `case' here to explicitly catch those versions.
8579 libltdl_cv_sys_dlopen_deplibs=unknown
8580 ;;
8581 aix[45]*)
8582 libltdl_cv_sys_dlopen_deplibs=yes
8583 ;;
8584 darwin*)
8585 # Assuming the user has installed a libdl from somewhere, this is true
8586 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8587 libltdl_cv_sys_dlopen_deplibs=yes
8588 ;;
8589 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8590 # GNU and its variants, using gnu ld.so (Glibc)
8591 libltdl_cv_sys_dlopen_deplibs=yes
8592 ;;
8593 hpux10*|hpux11*)
8594 libltdl_cv_sys_dlopen_deplibs=yes
8595 ;;
8596 irix[12345]*|irix6.[01]*)
8597 # Catch all versions of IRIX before 6.2, and indicate that we don't
8598 # know how it worked for any of those versions.
8599 libltdl_cv_sys_dlopen_deplibs=unknown
8600 ;;
8601 irix*)
8602 # The case above catches anything before 6.2, and it's known that
8603 # at 6.2 and later dlopen does load deplibs.
8604 libltdl_cv_sys_dlopen_deplibs=yes
8605 ;;
8606 netbsd*)
8607 libltdl_cv_sys_dlopen_deplibs=yes
8608 ;;
8609 openbsd*)
8610 libltdl_cv_sys_dlopen_deplibs=yes
8611 ;;
8612 osf[1234]*)
8613 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8614 # it did *not* use an RPATH in a shared library to find objects the
8615 # library depends on, so we explictly say `no'.
8616 libltdl_cv_sys_dlopen_deplibs=no
8617 ;;
8618 osf5.0|osf5.0a|osf5.1)
8619 # dlopen *does* load deplibs and with the right loader patch applied
8620 # it even uses RPATH in a shared library to search for shared objects
8621 # that the library depends on, but there's no easy way to know if that
8622 # patch is installed. Since this is the case, all we can really
8623 # say is unknown -- it depends on the patch being installed. If
8624 # it is, this changes to `yes'. Without it, it would be `no'.
8625 libltdl_cv_sys_dlopen_deplibs=unknown
8626 ;;
8627 osf*)
8628 # the two cases above should catch all versions of osf <= 5.1. Read
8629 # the comments above for what we know about them.
8630 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8631 # is used to find them so we can finally say `yes'.
8632 libltdl_cv_sys_dlopen_deplibs=yes
8633 ;;
8634 solaris*)
8635 libltdl_cv_sys_dlopen_deplibs=yes
8636 ;;
8637 esac
8638
8639fi
8640echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8641echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8642if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8643
8644cat >>confdefs.h <<\_ACEOF
8645#define LTDL_DLOPEN_DEPLIBS 1
8646_ACEOF
8647
8648fi
8649
8650
8651for ac_header in argz.h
8652do
8653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8654if eval "test \"\${$as_ac_Header+set}\" = set"; then
8655 echo "$as_me:$LINENO: checking for $ac_header" >&5
8656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8657if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659fi
8660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8662else
8663 # Is the header compilable?
8664echo "$as_me:$LINENO: checking $ac_header usability" >&5
8665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8666cat >conftest.$ac_ext <<_ACEOF
8667/* confdefs.h. */
8668_ACEOF
8669cat confdefs.h >>conftest.$ac_ext
8670cat >>conftest.$ac_ext <<_ACEOF
8671/* end confdefs.h. */
8672$ac_includes_default
8673#include <$ac_header>
8674_ACEOF
8675rm -f conftest.$ac_objext
8676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677 (eval $ac_compile) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest.$ac_objext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_header_compiler=yes
8698else
8699 echo "$as_me: failed program was:" >&5
8700sed 's/^/| /' conftest.$ac_ext >&5
8701
8702ac_header_compiler=no
8703fi
8704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8706echo "${ECHO_T}$ac_header_compiler" >&6
8707
8708# Is the header present?
8709echo "$as_me:$LINENO: checking $ac_header presence" >&5
8710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8711cat >conftest.$ac_ext <<_ACEOF
8712/* confdefs.h. */
8713_ACEOF
8714cat confdefs.h >>conftest.$ac_ext
8715cat >>conftest.$ac_ext <<_ACEOF
8716/* end confdefs.h. */
8717#include <$ac_header>
8718_ACEOF
8719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } >/dev/null; then
8727 if test -s conftest.err; then
8728 ac_cpp_err=$ac_c_preproc_warn_flag
8729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8730 else
8731 ac_cpp_err=
8732 fi
8733else
8734 ac_cpp_err=yes
8735fi
8736if test -z "$ac_cpp_err"; then
8737 ac_header_preproc=yes
8738else
8739 echo "$as_me: failed program was:" >&5
8740sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 ac_header_preproc=no
8743fi
8744rm -f conftest.err conftest.$ac_ext
8745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8746echo "${ECHO_T}$ac_header_preproc" >&6
8747
8748# So? What about this header?
8749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8750 yes:no: )
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8755 ac_header_preproc=yes
8756 ;;
8757 no:yes:* )
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8770 (
8771 cat <<\_ASBOX
8772## ----------------------------------- ##
8773## Report this to llvmbugs@cs.uiuc.edu ##
8774## ----------------------------------- ##
8775_ASBOX
8776 ) |
8777 sed "s/^/$as_me: WARNING: /" >&2
8778 ;;
8779esac
8780echo "$as_me:$LINENO: checking for $ac_header" >&5
8781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8782if eval "test \"\${$as_ac_Header+set}\" = set"; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785 eval "$as_ac_Header=\$ac_header_preproc"
8786fi
8787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8789
8790fi
8791if test `eval echo '${'$as_ac_Header'}'` = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8794_ACEOF
8795
8796fi
8797
8798done
8799
8800
8801echo "$as_me:$LINENO: checking for error_t" >&5
8802echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8803if test "${ac_cv_type_error_t+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 cat >conftest.$ac_ext <<_ACEOF
8807/* confdefs.h. */
8808_ACEOF
8809cat confdefs.h >>conftest.$ac_ext
8810cat >>conftest.$ac_ext <<_ACEOF
8811/* end confdefs.h. */
8812#if HAVE_ARGZ_H
8813# include <argz.h>
8814#endif
8815
8816int
8817main ()
8818{
8819if ((error_t *) 0)
8820 return 0;
8821if (sizeof (error_t))
8822 return 0;
8823 ;
8824 return 0;
8825}
8826_ACEOF
8827rm -f conftest.$ac_objext
8828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829 (eval $ac_compile) 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 (eval $ac_try) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_type_error_t=yes
8850else
8851 echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
8854ac_cv_type_error_t=no
8855fi
8856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8857fi
8858echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8859echo "${ECHO_T}$ac_cv_type_error_t" >&6
8860if test $ac_cv_type_error_t = yes; then
8861
8862cat >>confdefs.h <<_ACEOF
8863#define HAVE_ERROR_T 1
8864_ACEOF
8865
8866
8867else
8868
8869cat >>confdefs.h <<\_ACEOF
8870#define error_t int
8871_ACEOF
8872
8873fi
8874
8875
8876
8877
8878
8879
8880
8881for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8882do
8883as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8884echo "$as_me:$LINENO: checking for $ac_func" >&5
8885echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8886if eval "test \"\${$as_ac_var+set}\" = set"; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888else
8889 cat >conftest.$ac_ext <<_ACEOF
8890/* confdefs.h. */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
8894/* end confdefs.h. */
8895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8897#define $ac_func innocuous_$ac_func
8898
8899/* System header to define __stub macros and hopefully few prototypes,
8900 which can conflict with char $ac_func (); below.
8901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8902 <limits.h> exists even on freestanding compilers. */
8903
8904#ifdef __STDC__
8905# include <limits.h>
8906#else
8907# include <assert.h>
8908#endif
8909
8910#undef $ac_func
8911
8912/* Override any gcc2 internal prototype to avoid an error. */
8913#ifdef __cplusplus
8914extern "C"
8915{
8916#endif
8917/* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8919char $ac_func ();
8920/* The GNU C library defines this for functions which it implements
8921 to always fail with ENOSYS. Some functions are actually named
8922 something starting with __ and the normal name is an alias. */
8923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8924choke me
8925#else
8926char (*f) () = $ac_func;
8927#endif
8928#ifdef __cplusplus
8929}
8930#endif
8931
8932int
8933main ()
8934{
8935return f != $ac_func;
8936 ;
8937 return 0;
8938}
8939_ACEOF
8940rm -f conftest.$ac_objext conftest$ac_exeext
8941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8962 eval "$as_ac_var=yes"
8963else
8964 echo "$as_me: failed program was:" >&5
8965sed 's/^/| /' conftest.$ac_ext >&5
8966
8967eval "$as_ac_var=no"
8968fi
8969rm -f conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8971fi
8972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8973echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8974if test `eval echo '${'$as_ac_var'}'` = yes; then
8975 cat >>confdefs.h <<_ACEOF
8976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8977_ACEOF
8978
8979fi
8980done
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9010 stdio.h unistd.h
9011do
9012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9013if eval "test \"\${$as_ac_Header+set}\" = set"; then
9014 echo "$as_me:$LINENO: checking for $ac_header" >&5
9015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018fi
9019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9021else
9022 # Is the header compilable?
9023echo "$as_me:$LINENO: checking $ac_header usability" >&5
9024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9025cat >conftest.$ac_ext <<_ACEOF
9026/* confdefs.h. */
9027_ACEOF
9028cat confdefs.h >>conftest.$ac_ext
9029cat >>conftest.$ac_ext <<_ACEOF
9030/* end confdefs.h. */
9031$ac_includes_default
9032#include <$ac_header>
9033_ACEOF
9034rm -f conftest.$ac_objext
9035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036 (eval $ac_compile) 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -z "$ac_c_werror_flag"
9044 || test ! -s conftest.err'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_header_compiler=yes
9057else
9058 echo "$as_me: failed program was:" >&5
9059sed 's/^/| /' conftest.$ac_ext >&5
9060
9061ac_header_compiler=no
9062fi
9063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9065echo "${ECHO_T}$ac_header_compiler" >&6
9066
9067# Is the header present?
9068echo "$as_me:$LINENO: checking $ac_header presence" >&5
9069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9070cat >conftest.$ac_ext <<_ACEOF
9071/* confdefs.h. */
9072_ACEOF
9073cat confdefs.h >>conftest.$ac_ext
9074cat >>conftest.$ac_ext <<_ACEOF
9075/* end confdefs.h. */
9076#include <$ac_header>
9077_ACEOF
9078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } >/dev/null; then
9086 if test -s conftest.err; then
9087 ac_cpp_err=$ac_c_preproc_warn_flag
9088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9089 else
9090 ac_cpp_err=
9091 fi
9092else
9093 ac_cpp_err=yes
9094fi
9095if test -z "$ac_cpp_err"; then
9096 ac_header_preproc=yes
9097else
9098 echo "$as_me: failed program was:" >&5
9099sed 's/^/| /' conftest.$ac_ext >&5
9100
9101 ac_header_preproc=no
9102fi
9103rm -f conftest.err conftest.$ac_ext
9104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9105echo "${ECHO_T}$ac_header_preproc" >&6
9106
9107# So? What about this header?
9108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9109 yes:no: )
9110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9111echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9113echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9114 ac_header_preproc=yes
9115 ;;
9116 no:yes:* )
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9118echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9120echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9122echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9124echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9126echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9128echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9129 (
9130 cat <<\_ASBOX
9131## ----------------------------------- ##
9132## Report this to llvmbugs@cs.uiuc.edu ##
9133## ----------------------------------- ##
9134_ASBOX
9135 ) |
9136 sed "s/^/$as_me: WARNING: /" >&2
9137 ;;
9138esac
9139echo "$as_me:$LINENO: checking for $ac_header" >&5
9140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9141if eval "test \"\${$as_ac_Header+set}\" = set"; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143else
9144 eval "$as_ac_Header=\$ac_header_preproc"
9145fi
9146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9148
9149fi
9150if test `eval echo '${'$as_ac_Header'}'` = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9153_ACEOF
9154
9155fi
9156
9157done
9158
9159
9160
9161
9162
9163for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9164do
9165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9166if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171fi
9172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9174else
9175 # Is the header compilable?
9176echo "$as_me:$LINENO: checking $ac_header usability" >&5
9177echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9178cat >conftest.$ac_ext <<_ACEOF
9179/* confdefs.h. */
9180_ACEOF
9181cat confdefs.h >>conftest.$ac_ext
9182cat >>conftest.$ac_ext <<_ACEOF
9183/* end confdefs.h. */
9184$ac_includes_default
9185#include <$ac_header>
9186_ACEOF
9187rm -f conftest.$ac_objext
9188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>conftest.er1
9190 ac_status=$?
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -z "$ac_c_werror_flag"
9197 || test ! -s conftest.err'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try='test -s conftest.$ac_objext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_header_compiler=yes
9210else
9211 echo "$as_me: failed program was:" >&5
9212sed 's/^/| /' conftest.$ac_ext >&5
9213
9214ac_header_compiler=no
9215fi
9216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9218echo "${ECHO_T}$ac_header_compiler" >&6
9219
9220# Is the header present?
9221echo "$as_me:$LINENO: checking $ac_header presence" >&5
9222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9223cat >conftest.$ac_ext <<_ACEOF
9224/* confdefs.h. */
9225_ACEOF
9226cat confdefs.h >>conftest.$ac_ext
9227cat >>conftest.$ac_ext <<_ACEOF
9228/* end confdefs.h. */
9229#include <$ac_header>
9230_ACEOF
9231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9233 ac_status=$?
9234 grep -v '^ *+' conftest.er1 >conftest.err
9235 rm -f conftest.er1
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } >/dev/null; then
9239 if test -s conftest.err; then
9240 ac_cpp_err=$ac_c_preproc_warn_flag
9241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9242 else
9243 ac_cpp_err=
9244 fi
9245else
9246 ac_cpp_err=yes
9247fi
9248if test -z "$ac_cpp_err"; then
9249 ac_header_preproc=yes
9250else
9251 echo "$as_me: failed program was:" >&5
9252sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 ac_header_preproc=no
9255fi
9256rm -f conftest.err conftest.$ac_ext
9257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9258echo "${ECHO_T}$ac_header_preproc" >&6
9259
9260# So? What about this header?
9261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9262 yes:no: )
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9267 ac_header_preproc=yes
9268 ;;
9269 no:yes:* )
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9277echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9282 (
9283 cat <<\_ASBOX
9284## ----------------------------------- ##
9285## Report this to llvmbugs@cs.uiuc.edu ##
9286## ----------------------------------- ##
9287_ASBOX
9288 ) |
9289 sed "s/^/$as_me: WARNING: /" >&2
9290 ;;
9291esac
9292echo "$as_me:$LINENO: checking for $ac_header" >&5
9293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9294if eval "test \"\${$as_ac_Header+set}\" = set"; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9296else
9297 eval "$as_ac_Header=\$ac_header_preproc"
9298fi
9299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9301
9302fi
9303if test `eval echo '${'$as_ac_Header'}'` = yes; then
9304 cat >>confdefs.h <<_ACEOF
9305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9306_ACEOF
9307
9308fi
9309
9310done
9311
9312
9313
9314for ac_header in string.h strings.h
9315do
9316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9317if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318 echo "$as_me:$LINENO: checking for $ac_header" >&5
9319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9320if eval "test \"\${$as_ac_Header+set}\" = set"; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9322fi
9323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9325else
9326 # Is the header compilable?
9327echo "$as_me:$LINENO: checking $ac_header usability" >&5
9328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9329cat >conftest.$ac_ext <<_ACEOF
9330/* confdefs.h. */
9331_ACEOF
9332cat confdefs.h >>conftest.$ac_ext
9333cat >>conftest.$ac_ext <<_ACEOF
9334/* end confdefs.h. */
9335$ac_includes_default
9336#include <$ac_header>
9337_ACEOF
9338rm -f conftest.$ac_objext
9339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_header_compiler=yes
9361else
9362 echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365ac_header_compiler=no
9366fi
9367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9369echo "${ECHO_T}$ac_header_compiler" >&6
9370
9371# Is the header present?
9372echo "$as_me:$LINENO: checking $ac_header presence" >&5
9373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9374cat >conftest.$ac_ext <<_ACEOF
9375/* confdefs.h. */
9376_ACEOF
9377cat confdefs.h >>conftest.$ac_ext
9378cat >>conftest.$ac_ext <<_ACEOF
9379/* end confdefs.h. */
9380#include <$ac_header>
9381_ACEOF
9382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } >/dev/null; then
9390 if test -s conftest.err; then
9391 ac_cpp_err=$ac_c_preproc_warn_flag
9392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9393 else
9394 ac_cpp_err=
9395 fi
9396else
9397 ac_cpp_err=yes
9398fi
9399if test -z "$ac_cpp_err"; then
9400 ac_header_preproc=yes
9401else
9402 echo "$as_me: failed program was:" >&5
9403sed 's/^/| /' conftest.$ac_ext >&5
9404
9405 ac_header_preproc=no
9406fi
9407rm -f conftest.err conftest.$ac_ext
9408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9409echo "${ECHO_T}$ac_header_preproc" >&6
9410
9411# So? What about this header?
9412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9413 yes:no: )
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9418 ac_header_preproc=yes
9419 ;;
9420 no:yes:* )
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9433 (
9434 cat <<\_ASBOX
9435## ----------------------------------- ##
9436## Report this to llvmbugs@cs.uiuc.edu ##
9437## ----------------------------------- ##
9438_ASBOX
9439 ) |
9440 sed "s/^/$as_me: WARNING: /" >&2
9441 ;;
9442esac
9443echo "$as_me:$LINENO: checking for $ac_header" >&5
9444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9445if eval "test \"\${$as_ac_Header+set}\" = set"; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447else
9448 eval "$as_ac_Header=\$ac_header_preproc"
9449fi
9450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9452
9453fi
9454if test `eval echo '${'$as_ac_Header'}'` = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9457_ACEOF
9458 break
9459fi
9460
9461done
9462
9463
9464
9465
9466for ac_func in strchr index
9467do
9468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469echo "$as_me:$LINENO: checking for $ac_func" >&5
9470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471if eval "test \"\${$as_ac_var+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473else
9474 cat >conftest.$ac_ext <<_ACEOF
9475/* confdefs.h. */
9476_ACEOF
9477cat confdefs.h >>conftest.$ac_ext
9478cat >>conftest.$ac_ext <<_ACEOF
9479/* end confdefs.h. */
9480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9482#define $ac_func innocuous_$ac_func
9483
9484/* System header to define __stub macros and hopefully few prototypes,
9485 which can conflict with char $ac_func (); below.
9486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487 <limits.h> exists even on freestanding compilers. */
9488
9489#ifdef __STDC__
9490# include <limits.h>
9491#else
9492# include <assert.h>
9493#endif
9494
9495#undef $ac_func
9496
9497/* Override any gcc2 internal prototype to avoid an error. */
9498#ifdef __cplusplus
9499extern "C"
9500{
9501#endif
9502/* We use char because int might match the return type of a gcc2
9503 builtin and then its argument prototype would still apply. */
9504char $ac_func ();
9505/* The GNU C library defines this for functions which it implements
9506 to always fail with ENOSYS. Some functions are actually named
9507 something starting with __ and the normal name is an alias. */
9508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9509choke me
9510#else
9511char (*f) () = $ac_func;
9512#endif
9513#ifdef __cplusplus
9514}
9515#endif
9516
9517int
9518main ()
9519{
9520return f != $ac_func;
9521 ;
9522 return 0;
9523}
9524_ACEOF
9525rm -f conftest.$ac_objext conftest$ac_exeext
9526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527 (eval $ac_link) 2>conftest.er1
9528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } &&
9534 { ac_try='test -z "$ac_c_werror_flag"
9535 || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 eval "$as_ac_var=yes"
9548else
9549 echo "$as_me: failed program was:" >&5
9550sed 's/^/| /' conftest.$ac_ext >&5
9551
9552eval "$as_ac_var=no"
9553fi
9554rm -f conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556fi
9557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9559if test `eval echo '${'$as_ac_var'}'` = yes; then
9560 cat >>confdefs.h <<_ACEOF
9561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9562_ACEOF
9563 break
9564fi
9565done
9566
9567
9568
9569for ac_func in strrchr rindex
9570do
9571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9572echo "$as_me:$LINENO: checking for $ac_func" >&5
9573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9574if eval "test \"\${$as_ac_var+set}\" = set"; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576else
9577 cat >conftest.$ac_ext <<_ACEOF
9578/* confdefs.h. */
9579_ACEOF
9580cat confdefs.h >>conftest.$ac_ext
9581cat >>conftest.$ac_ext <<_ACEOF
9582/* end confdefs.h. */
9583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9585#define $ac_func innocuous_$ac_func
9586
9587/* System header to define __stub macros and hopefully few prototypes,
9588 which can conflict with char $ac_func (); below.
9589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590 <limits.h> exists even on freestanding compilers. */
9591
9592#ifdef __STDC__
9593# include <limits.h>
9594#else
9595# include <assert.h>
9596#endif
9597
9598#undef $ac_func
9599
9600/* Override any gcc2 internal prototype to avoid an error. */
9601#ifdef __cplusplus
9602extern "C"
9603{
9604#endif
9605/* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9607char $ac_func ();
9608/* The GNU C library defines this for functions which it implements
9609 to always fail with ENOSYS. Some functions are actually named
9610 something starting with __ and the normal name is an alias. */
9611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9612choke me
9613#else
9614char (*f) () = $ac_func;
9615#endif
9616#ifdef __cplusplus
9617}
9618#endif
9619
9620int
9621main ()
9622{
9623return f != $ac_func;
9624 ;
9625 return 0;
9626}
9627_ACEOF
9628rm -f conftest.$ac_objext conftest$ac_exeext
9629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -z "$ac_c_werror_flag"
9638 || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest$ac_exeext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 eval "$as_ac_var=yes"
9651else
9652 echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
9655eval "$as_ac_var=no"
9656fi
9657rm -f conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659fi
9660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9662if test `eval echo '${'$as_ac_var'}'` = yes; then
9663 cat >>confdefs.h <<_ACEOF
9664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9665_ACEOF
9666 break
9667fi
9668done
9669
9670
9671
9672for ac_func in memcpy bcopy
9673do
9674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9675echo "$as_me:$LINENO: checking for $ac_func" >&5
9676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9677if eval "test \"\${$as_ac_var+set}\" = set"; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679else
9680 cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
9686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9688#define $ac_func innocuous_$ac_func
9689
9690/* System header to define __stub macros and hopefully few prototypes,
9691 which can conflict with char $ac_func (); below.
9692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693 <limits.h> exists even on freestanding compilers. */
9694
9695#ifdef __STDC__
9696# include <limits.h>
9697#else
9698# include <assert.h>
9699#endif
9700
9701#undef $ac_func
9702
9703/* Override any gcc2 internal prototype to avoid an error. */
9704#ifdef __cplusplus
9705extern "C"
9706{
9707#endif
9708/* We use char because int might match the return type of a gcc2
9709 builtin and then its argument prototype would still apply. */
9710char $ac_func ();
9711/* The GNU C library defines this for functions which it implements
9712 to always fail with ENOSYS. Some functions are actually named
9713 something starting with __ and the normal name is an alias. */
9714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9715choke me
9716#else
9717char (*f) () = $ac_func;
9718#endif
9719#ifdef __cplusplus
9720}
9721#endif
9722
9723int
9724main ()
9725{
9726return f != $ac_func;
9727 ;
9728 return 0;
9729}
9730_ACEOF
9731rm -f conftest.$ac_objext conftest$ac_exeext
9732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 eval "$as_ac_var=yes"
9754else
9755 echo "$as_me: failed program was:" >&5
9756sed 's/^/| /' conftest.$ac_ext >&5
9757
9758eval "$as_ac_var=no"
9759fi
9760rm -f conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762fi
9763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9765if test `eval echo '${'$as_ac_var'}'` = yes; then
9766 cat >>confdefs.h <<_ACEOF
9767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9768_ACEOF
9769 break
9770fi
9771done
9772
9773
9774
9775for ac_func in memmove strcmp
9776do
9777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9778echo "$as_me:$LINENO: checking for $ac_func" >&5
9779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9780if eval "test \"\${$as_ac_var+set}\" = set"; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782else
9783 cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
9788/* end confdefs.h. */
9789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9791#define $ac_func innocuous_$ac_func
9792
9793/* System header to define __stub macros and hopefully few prototypes,
9794 which can conflict with char $ac_func (); below.
9795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9796 <limits.h> exists even on freestanding compilers. */
9797
9798#ifdef __STDC__
9799# include <limits.h>
9800#else
9801# include <assert.h>
9802#endif
9803
9804#undef $ac_func
9805
9806/* Override any gcc2 internal prototype to avoid an error. */
9807#ifdef __cplusplus
9808extern "C"
9809{
9810#endif
9811/* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9813char $ac_func ();
9814/* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
9817#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9818choke me
9819#else
9820char (*f) () = $ac_func;
9821#endif
9822#ifdef __cplusplus
9823}
9824#endif
9825
9826int
9827main ()
9828{
9829return f != $ac_func;
9830 ;
9831 return 0;
9832}
9833_ACEOF
9834rm -f conftest.$ac_objext conftest$ac_exeext
9835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 (eval $ac_try) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 eval "$as_ac_var=yes"
9857else
9858 echo "$as_me: failed program was:" >&5
9859sed 's/^/| /' conftest.$ac_ext >&5
9860
9861eval "$as_ac_var=no"
9862fi
9863rm -f conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865fi
9866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9867echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9868if test `eval echo '${'$as_ac_var'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9871_ACEOF
9872
9873fi
9874done
9875
9876
9877
9878
9879for ac_func in closedir opendir readdir
9880do
9881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9882echo "$as_me:$LINENO: checking for $ac_func" >&5
9883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9884if eval "test \"\${$as_ac_var+set}\" = set"; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886else
9887 cat >conftest.$ac_ext <<_ACEOF
9888/* confdefs.h. */
9889_ACEOF
9890cat confdefs.h >>conftest.$ac_ext
9891cat >>conftest.$ac_ext <<_ACEOF
9892/* end confdefs.h. */
9893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9895#define $ac_func innocuous_$ac_func
9896
9897/* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char $ac_func (); below.
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
9901
9902#ifdef __STDC__
9903# include <limits.h>
9904#else
9905# include <assert.h>
9906#endif
9907
9908#undef $ac_func
9909
9910/* Override any gcc2 internal prototype to avoid an error. */
9911#ifdef __cplusplus
9912extern "C"
9913{
9914#endif
9915/* We use char because int might match the return type of a gcc2
9916 builtin and then its argument prototype would still apply. */
9917char $ac_func ();
9918/* The GNU C library defines this for functions which it implements
9919 to always fail with ENOSYS. Some functions are actually named
9920 something starting with __ and the normal name is an alias. */
9921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9922choke me
9923#else
9924char (*f) () = $ac_func;
9925#endif
9926#ifdef __cplusplus
9927}
9928#endif
9929
9930int
9931main ()
9932{
9933return f != $ac_func;
9934 ;
9935 return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext conftest$ac_exeext
9939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -z "$ac_c_werror_flag"
9948 || test ! -s conftest.err'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 eval "$as_ac_var=yes"
9961else
9962 echo "$as_me: failed program was:" >&5
9963sed 's/^/| /' conftest.$ac_ext >&5
9964
9965eval "$as_ac_var=no"
9966fi
9967rm -f conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969fi
9970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9972if test `eval echo '${'$as_ac_var'}'` = yes; then
9973 cat >>confdefs.h <<_ACEOF
9974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9975_ACEOF
9976
9977fi
9978done
9979
9980
9981# Check whether --enable-shared or --disable-shared was given.
9982if test "${enable_shared+set}" = set; then
9983 enableval="$enable_shared"
9984 p=${PACKAGE-default}
9985 case $enableval in
9986 yes) enable_shared=yes ;;
9987 no) enable_shared=no ;;
9988 *)
9989 enable_shared=no
9990 # Look at the argument we got. We use all the common list separators.
9991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9992 for pkg in $enableval; do
9993 IFS="$lt_save_ifs"
9994 if test "X$pkg" = "X$p"; then
9995 enable_shared=yes
9996 fi
9997 done
9998 IFS="$lt_save_ifs"
9999 ;;
10000 esac
10001else
10002 enable_shared=yes
10003fi;
10004
10005# Check whether --enable-static or --disable-static was given.
10006if test "${enable_static+set}" = set; then
10007 enableval="$enable_static"
10008 p=${PACKAGE-default}
10009 case $enableval in
10010 yes) enable_static=yes ;;
10011 no) enable_static=no ;;
10012 *)
10013 enable_static=no
10014 # Look at the argument we got. We use all the common list separators.
10015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10016 for pkg in $enableval; do
10017 IFS="$lt_save_ifs"
10018 if test "X$pkg" = "X$p"; then
10019 enable_static=yes
10020 fi
10021 done
10022 IFS="$lt_save_ifs"
10023 ;;
10024 esac
10025else
10026 enable_static=yes
10027fi;
10028
10029# Check whether --enable-fast-install or --disable-fast-install was given.
10030if test "${enable_fast_install+set}" = set; then
10031 enableval="$enable_fast_install"
10032 p=${PACKAGE-default}
10033 case $enableval in
10034 yes) enable_fast_install=yes ;;
10035 no) enable_fast_install=no ;;
10036 *)
10037 enable_fast_install=no
10038 # Look at the argument we got. We use all the common list separators.
10039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10040 for pkg in $enableval; do
10041 IFS="$lt_save_ifs"
10042 if test "X$pkg" = "X$p"; then
10043 enable_fast_install=yes
10044 fi
10045 done
10046 IFS="$lt_save_ifs"
10047 ;;
10048 esac
10049else
10050 enable_fast_install=yes
10051fi;
10052
10053echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10054echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10055if test "${lt_cv_path_SED+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058 # Loop through the user's path and test for sed and gsed.
10059# Then use that list of sed's as ones to test for truncation.
10060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for lt_ac_prog in sed gsed; do
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10068 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10069 fi
10070 done
10071 done
10072done
10073lt_ac_max=0
10074lt_ac_count=0
10075# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10076# along with /bin/sed that truncates output.
10077for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10078 test ! -f $lt_ac_sed && break
10079 cat /dev/null > conftest.in
10080 lt_ac_count=0
10081 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10082 # Check for GNU sed and select it if it is found.
10083 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10084 lt_cv_path_SED=$lt_ac_sed
10085 break
10086 fi
10087 while true; do
10088 cat conftest.in conftest.in >conftest.tmp
10089 mv conftest.tmp conftest.in
10090 cp conftest.in conftest.nl
10091 echo >>conftest.nl
10092 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10093 cmp -s conftest.out conftest.nl || break
10094 # 10000 chars as input seems more than enough
10095 test $lt_ac_count -gt 10 && break
10096 lt_ac_count=`expr $lt_ac_count + 1`
10097 if test $lt_ac_count -gt $lt_ac_max; then
10098 lt_ac_max=$lt_ac_count
10099 lt_cv_path_SED=$lt_ac_sed
10100 fi
10101 done
10102done
10103
10104fi
10105
10106SED=$lt_cv_path_SED
10107echo "$as_me:$LINENO: result: $SED" >&5
10108echo "${ECHO_T}$SED" >&6
10109
10110
10111# Check whether --with-gnu-ld or --without-gnu-ld was given.
10112if test "${with_gnu_ld+set}" = set; then
10113 withval="$with_gnu_ld"
10114 test "$withval" = no || with_gnu_ld=yes
10115else
10116 with_gnu_ld=no
10117fi;
10118ac_prog=ld
10119if test "$GCC" = yes; then
10120 # Check if gcc -print-prog-name=ld gives a path.
10121 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10122echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10123 case $host in
10124 *-*-mingw*)
10125 # gcc leaves a trailing carriage return which upsets mingw
10126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10127 *)
10128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10129 esac
10130 case $ac_prog in
10131 # Accept absolute paths.
10132 [\\/]* | ?:[\\/]*)
10133 re_direlt='/[^/][^/]*/\.\./'
10134 # Canonicalize the pathname of ld
10135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10138 done
10139 test -z "$LD" && LD="$ac_prog"
10140 ;;
10141 "")
10142 # If it fails, then pretend we aren't using GCC.
10143 ac_prog=ld
10144 ;;
10145 *)
10146 # If it is relative, then search for the first ld in PATH.
10147 with_gnu_ld=unknown
10148 ;;
10149 esac
10150elif test "$with_gnu_ld" = yes; then
10151 echo "$as_me:$LINENO: checking for GNU ld" >&5
10152echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10153else
10154 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10155echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10156fi
10157if test "${lt_cv_path_LD+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10159else
10160 if test -z "$LD"; then
10161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10162 for ac_dir in $PATH; do
10163 IFS="$lt_save_ifs"
10164 test -z "$ac_dir" && ac_dir=.
10165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10166 lt_cv_path_LD="$ac_dir/$ac_prog"
10167 # Check to see if the program is GNU ld. I'd rather use --version,
10168 # but apparently some GNU ld's only accept -v.
10169 # Break only if it was the GNU/non-GNU ld that we prefer.
10170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10171 *GNU* | *'with BFD'*)
10172 test "$with_gnu_ld" != no && break
10173 ;;
10174 *)
10175 test "$with_gnu_ld" != yes && break
10176 ;;
10177 esac
10178 fi
10179 done
10180 IFS="$lt_save_ifs"
10181else
10182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10183fi
10184fi
10185
10186LD="$lt_cv_path_LD"
10187if test -n "$LD"; then
10188 echo "$as_me:$LINENO: result: $LD" >&5
10189echo "${ECHO_T}$LD" >&6
10190else
10191 echo "$as_me:$LINENO: result: no" >&5
10192echo "${ECHO_T}no" >&6
10193fi
10194test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10195echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10196 { (exit 1); exit 1; }; }
10197echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10198echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10199if test "${lt_cv_prog_gnu_ld+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201else
10202 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10203case `$LD -v 2>&1 </dev/null` in
10204*GNU* | *'with BFD'*)
10205 lt_cv_prog_gnu_ld=yes
10206 ;;
10207*)
10208 lt_cv_prog_gnu_ld=no
10209 ;;
10210esac
10211fi
10212echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10213echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10214with_gnu_ld=$lt_cv_prog_gnu_ld
10215
10216
10217echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10218echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10219if test "${lt_cv_ld_reload_flag+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221else
10222 lt_cv_ld_reload_flag='-r'
10223fi
10224echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10225echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10226reload_flag=$lt_cv_ld_reload_flag
10227case $reload_flag in
10228"" | " "*) ;;
10229*) reload_flag=" $reload_flag" ;;
10230esac
10231reload_cmds='$LD$reload_flag -o $output$reload_objs'
10232case $host_os in
10233 darwin*)
10234 if test "$GCC" = yes; then
Chris Lattnerb6f93412006-04-19 18:38:19 +000010235 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236 else
10237 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10238 fi
10239 ;;
10240esac
10241
10242echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10243echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10244if test "${lt_cv_deplibs_check_method+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246else
10247 lt_cv_file_magic_cmd='$MAGIC_CMD'
10248lt_cv_file_magic_test_file=
10249lt_cv_deplibs_check_method='unknown'
10250# Need to set the preceding variable on all platforms that support
10251# interlibrary dependencies.
10252# 'none' -- dependencies not supported.
10253# `unknown' -- same as none, but documents that we really don't know.
10254# 'pass_all' -- all dependencies passed with no checks.
10255# 'test_compile' -- check by making test program.
10256# 'file_magic [[regex]]' -- check by looking for files in library path
10257# which responds to the $file_magic_cmd with a given extended regex.
10258# If you have `file' or equivalent on your system and you're not sure
10259# whether `pass_all' will *always* work, you probably want this one.
10260
10261case $host_os in
10262aix4* | aix5*)
10263 lt_cv_deplibs_check_method=pass_all
10264 ;;
10265
10266beos*)
10267 lt_cv_deplibs_check_method=pass_all
10268 ;;
10269
10270bsdi[45]*)
10271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10272 lt_cv_file_magic_cmd='/usr/bin/file -L'
10273 lt_cv_file_magic_test_file=/shlib/libc.so
10274 ;;
10275
10276cygwin*)
10277 # func_win32_libid is a shell function defined in ltmain.sh
10278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10279 lt_cv_file_magic_cmd='func_win32_libid'
10280 ;;
10281
10282mingw* | pw32*)
10283 # Base MSYS/MinGW do not provide the 'file' command needed by
10284 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10285 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10286 lt_cv_file_magic_cmd='$OBJDUMP -f'
10287 ;;
10288
10289darwin* | rhapsody*)
10290 lt_cv_deplibs_check_method=pass_all
10291 ;;
10292
10293freebsd* | kfreebsd*-gnu)
10294 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10295 case $host_cpu in
10296 i*86 )
10297 # Not sure whether the presence of OpenBSD here was a mistake.
10298 # Let's accept both of them until this is cleared up.
10299 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10300 lt_cv_file_magic_cmd=/usr/bin/file
10301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10302 ;;
10303 esac
10304 else
10305 lt_cv_deplibs_check_method=pass_all
10306 fi
10307 ;;
10308
10309gnu*)
10310 lt_cv_deplibs_check_method=pass_all
10311 ;;
10312
10313hpux10.20* | hpux11*)
10314 lt_cv_file_magic_cmd=/usr/bin/file
10315 case "$host_cpu" in
10316 ia64*)
10317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10319 ;;
10320 hppa*64*)
10321 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]'
10322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10323 ;;
10324 *)
10325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10326 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10327 ;;
10328 esac
10329 ;;
10330
10331irix5* | irix6* | nonstopux*)
10332 case $LD in
10333 *-32|*"-32 ") libmagic=32-bit;;
10334 *-n32|*"-n32 ") libmagic=N32;;
10335 *-64|*"-64 ") libmagic=64-bit;;
10336 *) libmagic=never-match;;
10337 esac
10338 lt_cv_deplibs_check_method=pass_all
10339 ;;
10340
10341# This must be Linux ELF.
10342linux*)
10343 lt_cv_deplibs_check_method=pass_all
10344 ;;
10345
10346netbsd*)
10347 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10349 else
10350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10351 fi
10352 ;;
10353
10354newos6*)
10355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10356 lt_cv_file_magic_cmd=/usr/bin/file
10357 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10358 ;;
10359
10360nto-qnx*)
10361 lt_cv_deplibs_check_method=unknown
10362 ;;
10363
10364openbsd*)
10365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10367 else
10368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10369 fi
10370 ;;
10371
10372osf3* | osf4* | osf5*)
10373 lt_cv_deplibs_check_method=pass_all
10374 ;;
10375
10376sco3.2v5*)
10377 lt_cv_deplibs_check_method=pass_all
10378 ;;
10379
10380solaris*)
10381 lt_cv_deplibs_check_method=pass_all
10382 ;;
10383
10384sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10385 case $host_vendor in
10386 motorola)
10387 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]'
10388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10389 ;;
10390 ncr)
10391 lt_cv_deplibs_check_method=pass_all
10392 ;;
10393 sequent)
10394 lt_cv_file_magic_cmd='/bin/file'
10395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10396 ;;
10397 sni)
10398 lt_cv_file_magic_cmd='/bin/file'
10399 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10400 lt_cv_file_magic_test_file=/lib/libc.so
10401 ;;
10402 siemens)
10403 lt_cv_deplibs_check_method=pass_all
10404 ;;
10405 esac
10406 ;;
10407
10408sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10409 lt_cv_deplibs_check_method=pass_all
10410 ;;
10411esac
10412
10413fi
10414echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10415echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10416file_magic_cmd=$lt_cv_file_magic_cmd
10417deplibs_check_method=$lt_cv_deplibs_check_method
10418test -z "$deplibs_check_method" && deplibs_check_method=unknown
10419
10420
10421
10422# If no C compiler was specified, use CC.
10423LTCC=${LTCC-"$CC"}
10424
10425# Allow CC to be a program name with arguments.
10426compiler=$CC
10427
10428# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10429if test "${enable_libtool_lock+set}" = set; then
10430 enableval="$enable_libtool_lock"
10431
10432fi;
10433test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10434
10435# Some flags need to be propagated to the compiler or linker for good
10436# libtool support.
10437case $host in
10438ia64-*-hpux*)
10439 # Find out which ABI we are using.
10440 echo 'int i;' > conftest.$ac_ext
10441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442 (eval $ac_compile) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; then
10446 case `/usr/bin/file conftest.$ac_objext` in
10447 *ELF-32*)
10448 HPUX_IA64_MODE="32"
10449 ;;
10450 *ELF-64*)
10451 HPUX_IA64_MODE="64"
10452 ;;
10453 esac
10454 fi
10455 rm -rf conftest*
10456 ;;
10457*-*-irix6*)
10458 # Find out which ABI we are using.
Reid Spencerc28ccd82006-04-09 20:42:14 +000010459 echo '#line 10459 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; then
10465 if test "$lt_cv_prog_gnu_ld" = yes; then
10466 case `/usr/bin/file conftest.$ac_objext` in
10467 *32-bit*)
10468 LD="${LD-ld} -melf32bsmip"
10469 ;;
10470 *N32*)
10471 LD="${LD-ld} -melf32bmipn32"
10472 ;;
10473 *64-bit*)
10474 LD="${LD-ld} -melf64bmip"
10475 ;;
10476 esac
10477 else
10478 case `/usr/bin/file conftest.$ac_objext` in
10479 *32-bit*)
10480 LD="${LD-ld} -32"
10481 ;;
10482 *N32*)
10483 LD="${LD-ld} -n32"
10484 ;;
10485 *64-bit*)
10486 LD="${LD-ld} -64"
10487 ;;
10488 esac
10489 fi
10490 fi
10491 rm -rf conftest*
10492 ;;
10493
10494x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10495 # Find out which ABI we are using.
10496 echo 'int i;' > conftest.$ac_ext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; then
10502 case "`/usr/bin/file conftest.o`" in
10503 *32-bit*)
10504 case $host in
10505 x86_64-*linux*)
10506 LD="${LD-ld} -m elf_i386"
10507 ;;
10508 ppc64-*linux*|powerpc64-*linux*)
10509 LD="${LD-ld} -m elf32ppclinux"
10510 ;;
10511 s390x-*linux*)
10512 LD="${LD-ld} -m elf_s390"
10513 ;;
10514 sparc64-*linux*)
10515 LD="${LD-ld} -m elf32_sparc"
10516 ;;
10517 esac
10518 ;;
10519 *64-bit*)
10520 case $host in
10521 x86_64-*linux*)
10522 LD="${LD-ld} -m elf_x86_64"
10523 ;;
10524 ppc*-*linux*|powerpc*-*linux*)
10525 LD="${LD-ld} -m elf64ppc"
10526 ;;
10527 s390*-*linux*)
10528 LD="${LD-ld} -m elf64_s390"
10529 ;;
10530 sparc*-*linux*)
10531 LD="${LD-ld} -m elf64_sparc"
10532 ;;
10533 esac
10534 ;;
10535 esac
10536 fi
10537 rm -rf conftest*
10538 ;;
10539
10540*-*-sco3.2v5*)
10541 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10542 SAVE_CFLAGS="$CFLAGS"
10543 CFLAGS="$CFLAGS -belf"
10544 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10545echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10546if test "${lt_cv_cc_needs_belf+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549 ac_ext=c
10550ac_cpp='$CPP $CPPFLAGS'
10551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10553ac_compiler_gnu=$ac_cv_c_compiler_gnu
10554
10555 cat >conftest.$ac_ext <<_ACEOF
10556/* confdefs.h. */
10557_ACEOF
10558cat confdefs.h >>conftest.$ac_ext
10559cat >>conftest.$ac_ext <<_ACEOF
10560/* end confdefs.h. */
10561
10562_ACEOF
10563rm -f conftest.$ac_objext conftest$ac_exeext
10564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 lt_cv_cc_needs_belf=yes
10586else
10587 echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
10590lt_cv_cc_needs_belf=no
10591fi
10592rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594 ac_ext=c
10595ac_cpp='$CPP $CPPFLAGS'
10596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598ac_compiler_gnu=$ac_cv_c_compiler_gnu
10599
10600fi
10601echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10602echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10603 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10605 CFLAGS="$SAVE_CFLAGS"
10606 fi
10607 ;;
10608
10609esac
10610
10611need_locks="$enable_libtool_lock"
10612
10613
Reid Spencer2706f8c2004-09-19 23:53:36 +000010614
10615
10616if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10617 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10618 (test "X$CXX" != "Xg++"))) ; then
10619 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010620ac_cpp='$CXXCPP $CPPFLAGS'
10621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10624echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10625echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10626if test -z "$CXXCPP"; then
10627 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
John Criswell47fdd832003-07-14 16:52:07 +000010630 # Double quotes because CXXCPP needs to be expanded
10631 for CXXCPP in "$CXX -E" "/lib/cpp"
10632 do
10633 ac_preproc_ok=false
10634for ac_cxx_preproc_warn_flag in '' yes
10635do
10636 # Use a header file that comes with gcc, so configuring glibc
10637 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10639 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010640 # On the NeXT, cc -E runs the code through the compiler's parser,
10641 # not just through cpp. "Syntax error" is here to catch this case.
10642 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648#ifdef __STDC__
10649# include <limits.h>
10650#else
10651# include <assert.h>
10652#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010653 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010654_ACEOF
10655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10657 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010658 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010665 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010666 else
John Criswell47fdd832003-07-14 16:52:07 +000010667 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010668 fi
John Criswell47fdd832003-07-14 16:52:07 +000010669else
10670 ac_cpp_err=yes
10671fi
10672if test -z "$ac_cpp_err"; then
10673 :
10674else
10675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010676sed 's/^/| /' conftest.$ac_ext >&5
10677
John Criswell47fdd832003-07-14 16:52:07 +000010678 # Broken: fails on valid input.
10679continue
10680fi
10681rm -f conftest.err conftest.$ac_ext
10682
10683 # OK, works on sane cases. Now check whether non-existent headers
10684 # can be detected and how.
10685 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010686/* confdefs.h. */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010691#include <ac_nonexistent.h>
10692_ACEOF
10693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10695 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010696 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } >/dev/null; then
10701 if test -s conftest.err; then
10702 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010704 else
10705 ac_cpp_err=
10706 fi
10707else
10708 ac_cpp_err=yes
10709fi
10710if test -z "$ac_cpp_err"; then
10711 # Broken: success on invalid input.
10712continue
10713else
10714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010715sed 's/^/| /' conftest.$ac_ext >&5
10716
John Criswell47fdd832003-07-14 16:52:07 +000010717 # Passes both tests.
10718ac_preproc_ok=:
10719break
10720fi
10721rm -f conftest.err conftest.$ac_ext
10722
10723done
10724# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10725rm -f conftest.err conftest.$ac_ext
10726if $ac_preproc_ok; then
10727 break
John Criswell7a73b802003-06-30 21:59:07 +000010728fi
10729
John Criswell47fdd832003-07-14 16:52:07 +000010730 done
10731 ac_cv_prog_CXXCPP=$CXXCPP
10732
10733fi
10734 CXXCPP=$ac_cv_prog_CXXCPP
10735else
10736 ac_cv_prog_CXXCPP=$CXXCPP
10737fi
10738echo "$as_me:$LINENO: result: $CXXCPP" >&5
10739echo "${ECHO_T}$CXXCPP" >&6
10740ac_preproc_ok=false
10741for ac_cxx_preproc_warn_flag in '' yes
10742do
10743 # Use a header file that comes with gcc, so configuring glibc
10744 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010747 # On the NeXT, cc -E runs the code through the compiler's parser,
10748 # not just through cpp. "Syntax error" is here to catch this case.
10749 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010750/* confdefs.h. */
10751_ACEOF
10752cat confdefs.h >>conftest.$ac_ext
10753cat >>conftest.$ac_ext <<_ACEOF
10754/* end confdefs.h. */
10755#ifdef __STDC__
10756# include <limits.h>
10757#else
10758# include <assert.h>
10759#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010760 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010761_ACEOF
10762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10764 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010765 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } >/dev/null; then
10770 if test -s conftest.err; then
10771 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010772 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010773 else
10774 ac_cpp_err=
10775 fi
10776else
10777 ac_cpp_err=yes
10778fi
10779if test -z "$ac_cpp_err"; then
10780 :
10781else
10782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010783sed 's/^/| /' conftest.$ac_ext >&5
10784
John Criswell47fdd832003-07-14 16:52:07 +000010785 # Broken: fails on valid input.
10786continue
10787fi
10788rm -f conftest.err conftest.$ac_ext
10789
10790 # OK, works on sane cases. Now check whether non-existent headers
10791 # can be detected and how.
10792 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010798#include <ac_nonexistent.h>
10799_ACEOF
10800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10802 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010803 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } >/dev/null; then
10808 if test -s conftest.err; then
10809 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010810 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010811 else
10812 ac_cpp_err=
10813 fi
10814else
10815 ac_cpp_err=yes
10816fi
10817if test -z "$ac_cpp_err"; then
10818 # Broken: success on invalid input.
10819continue
10820else
10821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010822sed 's/^/| /' conftest.$ac_ext >&5
10823
John Criswell47fdd832003-07-14 16:52:07 +000010824 # Passes both tests.
10825ac_preproc_ok=:
10826break
10827fi
10828rm -f conftest.err conftest.$ac_ext
10829
10830done
10831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10832rm -f conftest.err conftest.$ac_ext
10833if $ac_preproc_ok; then
10834 :
10835else
John Criswell0c38eaf2003-09-10 15:17:25 +000010836 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10837See \`config.log' for more details." >&5
10838echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10839See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010840 { (exit 1); exit 1; }; }
10841fi
10842
10843ac_ext=cc
10844ac_cpp='$CXXCPP $CPPFLAGS'
10845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10848
Reid Spencer2706f8c2004-09-19 23:53:36 +000010849fi
10850
John Criswell47fdd832003-07-14 16:52:07 +000010851
10852ac_ext=f
10853ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10854ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10855ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10856if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010857 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 +000010858 do
10859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10860set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10861echo "$as_me:$LINENO: checking for $ac_word" >&5
10862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10863if test "${ac_cv_prog_F77+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865else
10866 if test -n "$F77"; then
10867 ac_cv_prog_F77="$F77" # Let the user override the test.
10868else
10869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870for as_dir in $PATH
10871do
10872 IFS=$as_save_IFS
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10878 break 2
10879 fi
10880done
10881done
10882
10883fi
10884fi
10885F77=$ac_cv_prog_F77
10886if test -n "$F77"; then
10887 echo "$as_me:$LINENO: result: $F77" >&5
10888echo "${ECHO_T}$F77" >&6
10889else
10890 echo "$as_me:$LINENO: result: no" >&5
10891echo "${ECHO_T}no" >&6
10892fi
10893
10894 test -n "$F77" && break
10895 done
10896fi
10897if test -z "$F77"; then
10898 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010899 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 +000010900do
10901 # Extract the first word of "$ac_prog", so it can be a program name with args.
10902set dummy $ac_prog; ac_word=$2
10903echo "$as_me:$LINENO: checking for $ac_word" >&5
10904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10905if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907else
10908 if test -n "$ac_ct_F77"; then
10909 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10910else
10911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918 ac_cv_prog_ac_ct_F77="$ac_prog"
10919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10921 fi
10922done
10923done
10924
10925fi
10926fi
10927ac_ct_F77=$ac_cv_prog_ac_ct_F77
10928if test -n "$ac_ct_F77"; then
10929 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10930echo "${ECHO_T}$ac_ct_F77" >&6
10931else
10932 echo "$as_me:$LINENO: result: no" >&5
10933echo "${ECHO_T}no" >&6
10934fi
10935
10936 test -n "$ac_ct_F77" && break
10937done
10938
10939 F77=$ac_ct_F77
10940fi
10941
10942
10943# Provide some information about the compiler.
Reid Spencerc28ccd82006-04-09 20:42:14 +000010944echo "$as_me:10944:" \
John Criswell47fdd832003-07-14 16:52:07 +000010945 "checking for Fortran 77 compiler version" >&5
10946ac_compiler=`set X $ac_compile; echo $2`
10947{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10948 (eval $ac_compiler --version </dev/null >&5) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }
10952{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10953 (eval $ac_compiler -v </dev/null >&5) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }
10957{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10958 (eval $ac_compiler -V </dev/null >&5) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010962rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010963
10964# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010965# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010966ac_save_ext=$ac_ext
10967ac_ext=F
10968echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10969echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10970if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 cat >conftest.$ac_ext <<_ACEOF
10974 program main
10975#ifndef __GNUC__
10976 choke me
10977#endif
10978
10979 end
10980_ACEOF
10981rm -f conftest.$ac_objext
10982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010983 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010990 { ac_try='test -z "$ac_f77_werror_flag"
10991 || test ! -s conftest.err'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_compiler_gnu=yes
11004else
11005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011006sed 's/^/| /' conftest.$ac_ext >&5
11007
John Criswell47fdd832003-07-14 16:52:07 +000011008ac_compiler_gnu=no
11009fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011011ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11012
11013fi
11014echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11015echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11016ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000011017ac_test_FFLAGS=${FFLAGS+set}
11018ac_save_FFLAGS=$FFLAGS
11019FFLAGS=
11020echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11021echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11022if test "${ac_cv_prog_f77_g+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024else
11025 FFLAGS=-g
11026cat >conftest.$ac_ext <<_ACEOF
11027 program main
11028
11029 end
11030_ACEOF
11031rm -f conftest.$ac_objext
11032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011033 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011034 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011040 { ac_try='test -z "$ac_f77_werror_flag"
11041 || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_prog_f77_g=yes
11054else
11055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011056sed 's/^/| /' conftest.$ac_ext >&5
11057
John Criswell47fdd832003-07-14 16:52:07 +000011058ac_cv_prog_f77_g=no
11059fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011061
11062fi
11063echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11064echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11065if test "$ac_test_FFLAGS" = set; then
11066 FFLAGS=$ac_save_FFLAGS
11067elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011068 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011069 FFLAGS="-g -O2"
11070 else
11071 FFLAGS="-g"
11072 fi
11073else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011074 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011075 FFLAGS="-O2"
11076 else
11077 FFLAGS=
11078 fi
11079fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011080
11081G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011082ac_ext=c
11083ac_cpp='$CPP $CPPFLAGS'
11084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11086ac_compiler_gnu=$ac_cv_c_compiler_gnu
11087
11088
11089
11090# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11091
11092# find the maximum length of command line arguments
11093echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11094echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11095if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097else
11098 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011099 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011100
11101 case $build_os in
11102 msdosdjgpp*)
11103 # On DJGPP, this test can blow up pretty badly due to problems in libc
11104 # (any single argument exceeding 2000 bytes causes a buffer overrun
11105 # during glob expansion). Even if it were fixed, the result of this
11106 # check would be larger than it should be.
11107 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11108 ;;
11109
11110 gnu*)
11111 # Under GNU Hurd, this test is not required because there is
11112 # no limit to the length of command line arguments.
11113 # Libtool will interpret -1 as no limit whatsoever
11114 lt_cv_sys_max_cmd_len=-1;
11115 ;;
11116
11117 cygwin* | mingw*)
11118 # On Win9x/ME, this test blows up -- it succeeds, but takes
11119 # about 5 minutes as the teststring grows exponentially.
11120 # Worse, since 9x/ME are not pre-emptively multitasking,
11121 # you end up with a "frozen" computer, even though with patience
11122 # the test eventually succeeds (with a max line length of 256k).
11123 # Instead, let's just punt: use the minimum linelength reported by
11124 # all of the supported platforms: 8192 (on NT/2K/XP).
11125 lt_cv_sys_max_cmd_len=8192;
11126 ;;
11127
Reid Spencer2706f8c2004-09-19 23:53:36 +000011128 amigaos*)
11129 # On AmigaOS with pdksh, this test takes hours, literally.
11130 # So we just punt and use a minimum line length of 8192.
11131 lt_cv_sys_max_cmd_len=8192;
11132 ;;
11133
11134 netbsd* | freebsd* | openbsd* | darwin* )
11135 # This has been around since 386BSD, at least. Likely further.
11136 if test -x /sbin/sysctl; then
11137 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11138 elif test -x /usr/sbin/sysctl; then
11139 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11140 else
11141 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11142 fi
11143 # And add a safety zone
11144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11145 ;;
11146
John Criswell47fdd832003-07-14 16:52:07 +000011147 *)
11148 # If test is not a shell built-in, we'll probably end up computing a
11149 # maximum length that is only half of the actual maximum length, but
11150 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011151 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11152 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11153 = "XX$teststring") >/dev/null 2>&1 &&
11154 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011155 lt_cv_sys_max_cmd_len=$new_result &&
11156 test $i != 17 # 1/2 MB should be enough
11157 do
11158 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011159 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011160 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011161 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011162 # Add a significant safety factor because C++ compilers can tack on massive
11163 # amounts of additional arguments before passing them to the linker.
11164 # It appears as though 1/2 is a usable value.
11165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11166 ;;
11167 esac
11168
11169fi
11170
11171if test -n $lt_cv_sys_max_cmd_len ; then
11172 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11173echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11174else
11175 echo "$as_me:$LINENO: result: none" >&5
11176echo "${ECHO_T}none" >&6
11177fi
11178
11179
11180
11181
11182# Check for command to grab the raw symbol name followed by C symbol from nm.
11183echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11184echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11185if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188
11189# These are sane defaults that work on at least a few old systems.
11190# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11191
11192# Character class describing NM global symbol codes.
11193symcode='[BCDEGRST]'
11194
11195# Regexp to match symbols that can be accessed directly from C.
11196sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11197
11198# Transform the above into a raw symbol and a C symbol.
11199symxfrm='\1 \2\3 \3'
11200
11201# Transform an extracted symbol line into a proper C declaration
11202lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11203
11204# Transform an extracted symbol line into symbol name and symbol address
11205lt_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'"
11206
11207# Define system-specific variables.
11208case $host_os in
11209aix*)
11210 symcode='[BCDT]'
11211 ;;
11212cygwin* | mingw* | pw32*)
11213 symcode='[ABCDGISTW]'
11214 ;;
11215hpux*) # Its linker distinguishes data from code symbols
11216 if test "$host_cpu" = ia64; then
11217 symcode='[ABCDEGRST]'
11218 fi
11219 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11220 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'"
11221 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011222linux*)
11223 if test "$host_cpu" = ia64; then
11224 symcode='[ABCDGIRSTW]'
11225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11226 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'"
11227 fi
11228 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011229irix* | nonstopux*)
11230 symcode='[BCDEGRST]'
11231 ;;
11232osf*)
11233 symcode='[BCDEGQRST]'
11234 ;;
11235solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011236 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011237 ;;
11238sysv4)
11239 symcode='[DFNSTU]'
11240 ;;
11241esac
11242
11243# Handle CRLF in mingw tool chain
11244opt_cr=
11245case $build_os in
11246mingw*)
11247 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11248 ;;
11249esac
11250
11251# If we're using GNU nm, then use its standard symbol codes.
11252case `$NM -V 2>&1` in
11253*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011254 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011255esac
11256
11257# Try without a prefix undercore, then with it.
11258for ac_symprfx in "" "_"; do
11259
11260 # Write the raw and C identifiers.
11261 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11262
11263 # Check to see that the pipe works correctly.
11264 pipe_works=no
11265
11266 rm -f conftest*
11267 cat > conftest.$ac_ext <<EOF
11268#ifdef __cplusplus
11269extern "C" {
11270#endif
11271char nm_test_var;
11272void nm_test_func(){}
11273#ifdef __cplusplus
11274}
11275#endif
11276int main(){nm_test_var='a';nm_test_func();return(0);}
11277EOF
11278
11279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280 (eval $ac_compile) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; then
11284 # Now try to grab the symbols.
11285 nlist=conftest.nm
11286 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11287 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s "$nlist"; then
11291 # Try sorting and uniquifying the output.
11292 if sort "$nlist" | uniq > "$nlist"T; then
11293 mv -f "$nlist"T "$nlist"
11294 else
11295 rm -f "$nlist"T
11296 fi
11297
11298 # Make sure that we snagged all the symbols we need.
11299 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11300 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11301 cat <<EOF > conftest.$ac_ext
11302#ifdef __cplusplus
11303extern "C" {
11304#endif
11305
11306EOF
11307 # Now generate the symbol file.
11308 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11309
11310 cat <<EOF >> conftest.$ac_ext
11311#if defined (__STDC__) && __STDC__
11312# define lt_ptr_t void *
11313#else
11314# define lt_ptr_t char *
11315# define const
11316#endif
11317
11318/* The mapping between symbol names and symbols. */
11319const struct {
11320 const char *name;
11321 lt_ptr_t address;
11322}
11323lt_preloaded_symbols[] =
11324{
11325EOF
11326 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11327 cat <<\EOF >> conftest.$ac_ext
11328 {0, (lt_ptr_t) 0}
11329};
11330
11331#ifdef __cplusplus
11332}
11333#endif
11334EOF
11335 # Now try linking the two files.
11336 mv conftest.$ac_objext conftstm.$ac_objext
11337 lt_save_LIBS="$LIBS"
11338 lt_save_CFLAGS="$CFLAGS"
11339 LIBS="conftstm.$ac_objext"
11340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11342 (eval $ac_link) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11346 pipe_works=yes
11347 fi
11348 LIBS="$lt_save_LIBS"
11349 CFLAGS="$lt_save_CFLAGS"
11350 else
11351 echo "cannot find nm_test_func in $nlist" >&5
11352 fi
11353 else
11354 echo "cannot find nm_test_var in $nlist" >&5
11355 fi
11356 else
11357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11358 fi
11359 else
11360 echo "$progname: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11362 fi
11363 rm -f conftest* conftst*
11364
11365 # Do not use the global_symbol_pipe unless it works.
11366 if test "$pipe_works" = yes; then
11367 break
11368 else
11369 lt_cv_sys_global_symbol_pipe=
11370 fi
11371done
11372
11373fi
11374
11375if test -z "$lt_cv_sys_global_symbol_pipe"; then
11376 lt_cv_sys_global_symbol_to_cdecl=
11377fi
11378if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11379 echo "$as_me:$LINENO: result: failed" >&5
11380echo "${ECHO_T}failed" >&6
11381else
11382 echo "$as_me:$LINENO: result: ok" >&5
11383echo "${ECHO_T}ok" >&6
11384fi
11385
11386echo "$as_me:$LINENO: checking for objdir" >&5
11387echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11388if test "${lt_cv_objdir+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390else
11391 rm -f .libs 2>/dev/null
11392mkdir .libs 2>/dev/null
11393if test -d .libs; then
11394 lt_cv_objdir=.libs
11395else
11396 # MS-DOS does not allow filenames that begin with a dot.
11397 lt_cv_objdir=_libs
11398fi
11399rmdir .libs 2>/dev/null
11400fi
11401echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11402echo "${ECHO_T}$lt_cv_objdir" >&6
11403objdir=$lt_cv_objdir
11404
11405
11406
11407
11408
11409case $host_os in
11410aix3*)
11411 # AIX sometimes has problems with the GCC collect2 program. For some
11412 # reason, if we set the COLLECT_NAMES environment variable, the problems
11413 # vanish in a puff of smoke.
11414 if test "X${COLLECT_NAMES+set}" != Xset; then
11415 COLLECT_NAMES=
11416 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011417 fi
11418 ;;
11419esac
11420
John Criswell47fdd832003-07-14 16:52:07 +000011421# Sed substitution that helps us do robust quoting. It backslashifies
11422# metacharacters that are still active within double-quoted strings.
11423Xsed='sed -e s/^X//'
11424sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11425
11426# Same as above, but do not quote variable references.
11427double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11428
11429# Sed substitution to delay expansion of an escaped shell variable in a
11430# double_quote_subst'ed string.
11431delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11432
11433# Sed substitution to avoid accidental globbing in evaled expressions
11434no_glob_subst='s/\*/\\\*/g'
11435
11436# Constants:
11437rm="rm -f"
11438
11439# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011440default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011441can_build_shared=yes
11442
11443# All known linkers require a `.a' archive for static linking (except M$VC,
11444# which needs '.lib').
11445libext=a
11446ltmain="$ac_aux_dir/ltmain.sh"
11447ofile="$default_ofile"
11448with_gnu_ld="$lt_cv_prog_gnu_ld"
11449
11450if test -n "$ac_tool_prefix"; then
11451 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11452set dummy ${ac_tool_prefix}ar; ac_word=$2
11453echo "$as_me:$LINENO: checking for $ac_word" >&5
11454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11455if test "${ac_cv_prog_AR+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 if test -n "$AR"; then
11459 ac_cv_prog_AR="$AR" # Let the user override the test.
11460else
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_prog_AR="${ac_tool_prefix}ar"
11469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11471 fi
11472done
11473done
11474
11475fi
11476fi
11477AR=$ac_cv_prog_AR
11478if test -n "$AR"; then
11479 echo "$as_me:$LINENO: result: $AR" >&5
11480echo "${ECHO_T}$AR" >&6
11481else
11482 echo "$as_me:$LINENO: result: no" >&5
11483echo "${ECHO_T}no" >&6
11484fi
11485
11486fi
11487if test -z "$ac_cv_prog_AR"; then
11488 ac_ct_AR=$AR
11489 # Extract the first word of "ar", so it can be a program name with args.
11490set dummy ar; ac_word=$2
11491echo "$as_me:$LINENO: checking for $ac_word" >&5
11492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11493if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495else
11496 if test -n "$ac_ct_AR"; then
11497 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11498else
11499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500for as_dir in $PATH
11501do
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506 ac_cv_prog_ac_ct_AR="ar"
11507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2
11509 fi
11510done
11511done
11512
11513 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11514fi
11515fi
11516ac_ct_AR=$ac_cv_prog_ac_ct_AR
11517if test -n "$ac_ct_AR"; then
11518 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11519echo "${ECHO_T}$ac_ct_AR" >&6
11520else
11521 echo "$as_me:$LINENO: result: no" >&5
11522echo "${ECHO_T}no" >&6
11523fi
11524
11525 AR=$ac_ct_AR
11526else
11527 AR="$ac_cv_prog_AR"
11528fi
11529
John Criswell7a73b802003-06-30 21:59:07 +000011530if test -n "$ac_tool_prefix"; then
11531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11532set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11533echo "$as_me:$LINENO: checking for $ac_word" >&5
11534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11535if test "${ac_cv_prog_RANLIB+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537else
11538 if test -n "$RANLIB"; then
11539 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11540else
11541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542for as_dir in $PATH
11543do
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 break 2
11551 fi
11552done
11553done
11554
11555fi
11556fi
11557RANLIB=$ac_cv_prog_RANLIB
11558if test -n "$RANLIB"; then
11559 echo "$as_me:$LINENO: result: $RANLIB" >&5
11560echo "${ECHO_T}$RANLIB" >&6
11561else
11562 echo "$as_me:$LINENO: result: no" >&5
11563echo "${ECHO_T}no" >&6
11564fi
11565
11566fi
11567if test -z "$ac_cv_prog_RANLIB"; then
11568 ac_ct_RANLIB=$RANLIB
11569 # Extract the first word of "ranlib", so it can be a program name with args.
11570set dummy ranlib; ac_word=$2
11571echo "$as_me:$LINENO: checking for $ac_word" >&5
11572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 if test -n "$ac_ct_RANLIB"; then
11577 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11578else
11579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_prog_ac_ct_RANLIB="ranlib"
11587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590done
11591done
11592
11593 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11594fi
11595fi
11596ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11597if test -n "$ac_ct_RANLIB"; then
11598 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11599echo "${ECHO_T}$ac_ct_RANLIB" >&6
11600else
11601 echo "$as_me:$LINENO: result: no" >&5
11602echo "${ECHO_T}no" >&6
11603fi
11604
11605 RANLIB=$ac_ct_RANLIB
11606else
11607 RANLIB="$ac_cv_prog_RANLIB"
11608fi
11609
11610if test -n "$ac_tool_prefix"; then
11611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11612set dummy ${ac_tool_prefix}strip; ac_word=$2
11613echo "$as_me:$LINENO: checking for $ac_word" >&5
11614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11615if test "${ac_cv_prog_STRIP+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617else
11618 if test -n "$STRIP"; then
11619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11620else
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11631 fi
11632done
11633done
11634
11635fi
11636fi
11637STRIP=$ac_cv_prog_STRIP
11638if test -n "$STRIP"; then
11639 echo "$as_me:$LINENO: result: $STRIP" >&5
11640echo "${ECHO_T}$STRIP" >&6
11641else
11642 echo "$as_me:$LINENO: result: no" >&5
11643echo "${ECHO_T}no" >&6
11644fi
11645
11646fi
11647if test -z "$ac_cv_prog_STRIP"; then
11648 ac_ct_STRIP=$STRIP
11649 # Extract the first word of "strip", so it can be a program name with args.
11650set dummy strip; ac_word=$2
11651echo "$as_me:$LINENO: checking for $ac_word" >&5
11652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656 if test -n "$ac_ct_STRIP"; then
11657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11658else
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_ac_ct_STRIP="strip"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670done
11671done
11672
11673 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11674fi
11675fi
11676ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11677if test -n "$ac_ct_STRIP"; then
11678 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11679echo "${ECHO_T}$ac_ct_STRIP" >&6
11680else
11681 echo "$as_me:$LINENO: result: no" >&5
11682echo "${ECHO_T}no" >&6
11683fi
11684
11685 STRIP=$ac_ct_STRIP
11686else
11687 STRIP="$ac_cv_prog_STRIP"
11688fi
11689
11690
John Criswell7a73b802003-06-30 21:59:07 +000011691old_CC="$CC"
11692old_CFLAGS="$CFLAGS"
11693
11694# Set sane defaults for various variables
11695test -z "$AR" && AR=ar
11696test -z "$AR_FLAGS" && AR_FLAGS=cru
11697test -z "$AS" && AS=as
11698test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011699test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011700test -z "$DLLTOOL" && DLLTOOL=dlltool
11701test -z "$LD" && LD=ld
11702test -z "$LN_S" && LN_S="ln -s"
11703test -z "$MAGIC_CMD" && MAGIC_CMD=file
11704test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011705test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011706test -z "$OBJDUMP" && OBJDUMP=objdump
11707test -z "$RANLIB" && RANLIB=:
11708test -z "$STRIP" && STRIP=:
11709test -z "$ac_objext" && ac_objext=o
11710
John Criswell7a73b802003-06-30 21:59:07 +000011711# Determine commands to create old-style static archives.
11712old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11713old_postinstall_cmds='chmod 644 $oldlib'
11714old_postuninstall_cmds=
11715
11716if test -n "$RANLIB"; then
11717 case $host_os in
11718 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011719 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011720 ;;
11721 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011722 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011723 ;;
11724 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011726fi
11727
Reid Spencer2706f8c2004-09-19 23:53:36 +000011728cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11729
John Criswell47fdd832003-07-14 16:52:07 +000011730# Only perform the check for file, if the check method requires it
11731case $deplibs_check_method in
11732file_magic*)
11733 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11734 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11735echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11736if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011738else
John Criswell47fdd832003-07-14 16:52:07 +000011739 case $MAGIC_CMD in
11740[\\/*] | ?:[\\/]*)
11741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11742 ;;
11743*)
11744 lt_save_MAGIC_CMD="$MAGIC_CMD"
11745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11747 for ac_dir in $ac_dummy; do
11748 IFS="$lt_save_ifs"
11749 test -z "$ac_dir" && ac_dir=.
11750 if test -f $ac_dir/${ac_tool_prefix}file; then
11751 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11752 if test -n "$file_magic_test_file"; then
11753 case $deplibs_check_method in
11754 "file_magic "*)
11755 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11758 $EGREP "$file_magic_regex" > /dev/null; then
11759 :
11760 else
11761 cat <<EOF 1>&2
11762
11763*** Warning: the command libtool uses to detect shared libraries,
11764*** $file_magic_cmd, produces output that libtool cannot recognize.
11765*** The result is that libtool may fail to recognize shared libraries
11766*** as such. This will affect the creation of libtool libraries that
11767*** depend on shared libraries, but programs linked with such libtool
11768*** libraries will work regardless of this problem. Nevertheless, you
11769*** may want to report the problem to your system manager and/or to
11770*** bug-libtool@gnu.org
11771
11772EOF
11773 fi ;;
11774 esac
11775 fi
11776 break
11777 fi
11778 done
11779 IFS="$lt_save_ifs"
11780 MAGIC_CMD="$lt_save_MAGIC_CMD"
11781 ;;
11782esac
John Criswell7a73b802003-06-30 21:59:07 +000011783fi
John Criswell7a73b802003-06-30 21:59:07 +000011784
John Criswell47fdd832003-07-14 16:52:07 +000011785MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11786if test -n "$MAGIC_CMD"; then
11787 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11788echo "${ECHO_T}$MAGIC_CMD" >&6
11789else
11790 echo "$as_me:$LINENO: result: no" >&5
11791echo "${ECHO_T}no" >&6
11792fi
John Criswell7a73b802003-06-30 21:59:07 +000011793
John Criswell47fdd832003-07-14 16:52:07 +000011794if test -z "$lt_cv_path_MAGIC_CMD"; then
11795 if test -n "$ac_tool_prefix"; then
11796 echo "$as_me:$LINENO: checking for file" >&5
11797echo $ECHO_N "checking for file... $ECHO_C" >&6
11798if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 case $MAGIC_CMD in
11802[\\/*] | ?:[\\/]*)
11803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11804 ;;
11805*)
11806 lt_save_MAGIC_CMD="$MAGIC_CMD"
11807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11809 for ac_dir in $ac_dummy; do
11810 IFS="$lt_save_ifs"
11811 test -z "$ac_dir" && ac_dir=.
11812 if test -f $ac_dir/file; then
11813 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11814 if test -n "$file_magic_test_file"; then
11815 case $deplibs_check_method in
11816 "file_magic "*)
11817 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11820 $EGREP "$file_magic_regex" > /dev/null; then
11821 :
11822 else
11823 cat <<EOF 1>&2
11824
11825*** Warning: the command libtool uses to detect shared libraries,
11826*** $file_magic_cmd, produces output that libtool cannot recognize.
11827*** The result is that libtool may fail to recognize shared libraries
11828*** as such. This will affect the creation of libtool libraries that
11829*** depend on shared libraries, but programs linked with such libtool
11830*** libraries will work regardless of this problem. Nevertheless, you
11831*** may want to report the problem to your system manager and/or to
11832*** bug-libtool@gnu.org
11833
11834EOF
11835 fi ;;
11836 esac
11837 fi
11838 break
11839 fi
11840 done
11841 IFS="$lt_save_ifs"
11842 MAGIC_CMD="$lt_save_MAGIC_CMD"
11843 ;;
11844esac
11845fi
11846
11847MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11848if test -n "$MAGIC_CMD"; then
11849 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11850echo "${ECHO_T}$MAGIC_CMD" >&6
11851else
11852 echo "$as_me:$LINENO: result: no" >&5
11853echo "${ECHO_T}no" >&6
11854fi
11855
11856 else
11857 MAGIC_CMD=:
11858 fi
11859fi
11860
11861 fi
11862 ;;
11863esac
11864
Reid Spencer17795972004-11-18 09:47:37 +000011865enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011866enable_win32_dll=no
11867
11868# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11869if test "${enable_libtool_lock+set}" = set; then
11870 enableval="$enable_libtool_lock"
11871
11872fi;
11873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11874
John Criswell7a73b802003-06-30 21:59:07 +000011875
11876# Check whether --with-pic or --without-pic was given.
11877if test "${with_pic+set}" = set; then
11878 withval="$with_pic"
11879 pic_mode="$withval"
11880else
11881 pic_mode=default
11882fi;
11883test -z "$pic_mode" && pic_mode=default
11884
John Criswell47fdd832003-07-14 16:52:07 +000011885# Use C for the default configuration in the libtool script
11886tagname=
11887lt_save_CC="$CC"
11888ac_ext=c
11889ac_cpp='$CPP $CPPFLAGS'
11890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892ac_compiler_gnu=$ac_cv_c_compiler_gnu
11893
11894
11895# Source file extension for C test sources.
11896ac_ext=c
11897
11898# Object file extension for compiled C test sources.
11899objext=o
11900objext=$objext
11901
11902# Code to be used in simple compile tests
11903lt_simple_compile_test_code="int some_variable = 0;\n"
11904
11905# Code to be used in simple link tests
11906lt_simple_link_test_code='int main(){return(0);}\n'
11907
11908
11909# If no C compiler was specified, use CC.
11910LTCC=${LTCC-"$CC"}
11911
11912# Allow CC to be a program name with arguments.
11913compiler=$CC
11914
11915
11916#
11917# Check for any special shared library compilation flags.
11918#
11919lt_prog_cc_shlib=
11920if test "$GCC" = no; then
11921 case $host_os in
11922 sco3.2v5*)
11923 lt_prog_cc_shlib='-belf'
11924 ;;
11925 esac
11926fi
11927if test -n "$lt_prog_cc_shlib"; then
11928 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11929echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11930 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11931 else
11932 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11933echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11934 lt_cv_prog_cc_can_build_shared=no
11935 fi
11936fi
11937
11938
11939#
11940# Check to make sure the static flag actually works.
11941#
11942echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11943echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11944if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
John Criswell47fdd832003-07-14 16:52:07 +000011947 lt_prog_compiler_static_works=no
11948 save_LDFLAGS="$LDFLAGS"
11949 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11950 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11952 # The compiler can only warn and ignore the option if not recognized
11953 # So say no if there are warnings
11954 if test -s conftest.err; then
11955 # Append any errors to the config.log.
11956 cat conftest.err 1>&5
11957 else
11958 lt_prog_compiler_static_works=yes
11959 fi
11960 fi
11961 $rm conftest*
11962 LDFLAGS="$save_LDFLAGS"
11963
11964fi
11965echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11966echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11967
11968if test x"$lt_prog_compiler_static_works" = xyes; then
11969 :
11970else
11971 lt_prog_compiler_static=
11972fi
11973
11974
11975
John Criswell47fdd832003-07-14 16:52:07 +000011976
11977lt_prog_compiler_no_builtin_flag=
11978
11979if test "$GCC" = yes; then
11980 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11981
Reid Spencer2706f8c2004-09-19 23:53:36 +000011982
11983echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011984echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11985if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987else
11988 lt_cv_prog_compiler_rtti_exceptions=no
11989 ac_outfile=conftest.$ac_objext
11990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11991 lt_compiler_flag="-fno-rtti -fno-exceptions"
11992 # Insert the option either (1) after the last *FLAGS variable, or
11993 # (2) before a word containing "conftest.", or (3) at the end.
11994 # Note that $ac_compile itself does not contain backslashes and begins
11995 # with a dollar sign (not a hyphen), so the echo should work correctly.
11996 # The option is referenced via a variable to avoid confusing sed.
11997 lt_compile=`echo "$ac_compile" | $SED \
11998 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12000 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000012001 (eval echo "\"\$as_me:12001: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012002 (eval "$lt_compile" 2>conftest.err)
12003 ac_status=$?
12004 cat conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000012005 echo "$as_me:12005: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012006 if (exit $ac_status) && test -s "$ac_outfile"; then
12007 # The compiler can only warn and ignore the option if not recognized
12008 # So say no if there are warnings
12009 if test ! -s conftest.err; then
12010 lt_cv_prog_compiler_rtti_exceptions=yes
12011 fi
12012 fi
12013 $rm conftest*
12014
12015fi
12016echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12017echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12018
12019if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12020 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12021else
12022 :
12023fi
12024
12025fi
12026
12027lt_prog_compiler_wl=
12028lt_prog_compiler_pic=
12029lt_prog_compiler_static=
12030
12031echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12032echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012033
12034 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012035 lt_prog_compiler_wl='-Wl,'
12036 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012037
12038 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012039 aix*)
12040 # All AIX code is PIC.
12041 if test "$host_cpu" = ia64; then
12042 # AIX 5 now supports IA64 processor
12043 lt_prog_compiler_static='-Bstatic'
12044 fi
John Criswell7a73b802003-06-30 21:59:07 +000012045 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012046
John Criswell7a73b802003-06-30 21:59:07 +000012047 amigaos*)
12048 # FIXME: we need at least 68020 code to build shared libraries, but
12049 # adding the `-m68020' flag to GCC prevents building anything better,
12050 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012052 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012053
12054 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012055 # PIC is the default for these OSes.
12056 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012057
12058 mingw* | pw32* | os2*)
12059 # This hack is so that the source file can tell whether it is being
12060 # built for inclusion in a dll (and should export symbols for example).
12061 lt_prog_compiler_pic='-DDLL_EXPORT'
12062 ;;
12063
John Criswell7a73b802003-06-30 21:59:07 +000012064 darwin* | rhapsody*)
12065 # PIC is the default on this platform
12066 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012067 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012068 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012069
12070 msdosdjgpp*)
12071 # Just because we use GCC doesn't mean we suddenly get shared libraries
12072 # on systems that don't support them.
12073 lt_prog_compiler_can_build_shared=no
12074 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012075 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012076
John Criswell7a73b802003-06-30 21:59:07 +000012077 sysv4*MP*)
12078 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012079 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012080 fi
12081 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012082
12083 hpux*)
12084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12085 # not for PA HP-UX.
12086 case "$host_cpu" in
12087 hppa*64*|ia64*)
12088 # +Z the default
12089 ;;
12090 *)
12091 lt_prog_compiler_pic='-fPIC'
12092 ;;
12093 esac
12094 ;;
12095
John Criswell7a73b802003-06-30 21:59:07 +000012096 *)
John Criswell47fdd832003-07-14 16:52:07 +000012097 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012098 ;;
12099 esac
12100 else
John Criswell47fdd832003-07-14 16:52:07 +000012101 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012102 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012103 aix*)
12104 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012105 if test "$host_cpu" = ia64; then
12106 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012107 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012108 else
John Criswell47fdd832003-07-14 16:52:07 +000012109 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012110 fi
12111 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012112 darwin*)
12113 # PIC is the default on this platform
12114 # Common symbols not allowed in MH_DYLIB files
12115 case "$cc_basename" in
12116 xlc*)
12117 lt_prog_compiler_pic='-qnocommon'
12118 lt_prog_compiler_wl='-Wl,'
12119 ;;
12120 esac
12121 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012122
John Criswell47fdd832003-07-14 16:52:07 +000012123 mingw* | pw32* | os2*)
12124 # This hack is so that the source file can tell whether it is being
12125 # built for inclusion in a dll (and should export symbols for example).
12126 lt_prog_compiler_pic='-DDLL_EXPORT'
12127 ;;
12128
John Criswell7a73b802003-06-30 21:59:07 +000012129 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012130 lt_prog_compiler_wl='-Wl,'
12131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12132 # not for PA HP-UX.
12133 case "$host_cpu" in
12134 hppa*64*|ia64*)
12135 # +Z the default
12136 ;;
12137 *)
12138 lt_prog_compiler_pic='+Z'
12139 ;;
12140 esac
12141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12142 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012143 ;;
12144
John Criswell47fdd832003-07-14 16:52:07 +000012145 irix5* | irix6* | nonstopux*)
12146 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012147 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012148 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012149 ;;
12150
12151 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012152 lt_prog_compiler_pic='-KPIC'
12153 lt_prog_compiler_static='-Bstatic'
12154 ;;
12155
12156 linux*)
12157 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012158 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012159 lt_prog_compiler_wl='-Wl,'
12160 lt_prog_compiler_pic='-KPIC'
12161 lt_prog_compiler_static='-static'
12162 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012163 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012164 lt_prog_compiler_wl='-Wl,'
12165 # All Alpha code is PIC.
12166 lt_prog_compiler_static='-non_shared'
12167 ;;
12168 esac
John Criswell7a73b802003-06-30 21:59:07 +000012169 ;;
12170
12171 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012172 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012173 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012174 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012175 ;;
12176
12177 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012178 lt_prog_compiler_pic='-Kpic'
12179 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012180 ;;
12181
12182 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012183 lt_prog_compiler_wl='-Wl,'
12184 lt_prog_compiler_pic='-KPIC'
12185 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012186 ;;
12187
12188 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012189 lt_prog_compiler_wl='-Qoption ld '
12190 lt_prog_compiler_pic='-PIC'
12191 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012192 ;;
12193
12194 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012195 lt_prog_compiler_wl='-Wl,'
12196 lt_prog_compiler_pic='-KPIC'
12197 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012198 ;;
12199
12200 sysv4*MP*)
12201 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012202 lt_prog_compiler_pic='-Kconform_pic'
12203 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012204 fi
12205 ;;
12206
John Criswell47fdd832003-07-14 16:52:07 +000012207 uts4*)
12208 lt_prog_compiler_pic='-pic'
12209 lt_prog_compiler_static='-Bstatic'
12210 ;;
12211
John Criswell7a73b802003-06-30 21:59:07 +000012212 *)
John Criswell47fdd832003-07-14 16:52:07 +000012213 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012214 ;;
12215 esac
12216 fi
12217
John Criswell47fdd832003-07-14 16:52:07 +000012218echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12219echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012220
John Criswell47fdd832003-07-14 16:52:07 +000012221#
12222# Check to make sure the PIC flag actually works.
12223#
12224if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012225
12226echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012227echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12228if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
John Criswell47fdd832003-07-14 16:52:07 +000012231 lt_prog_compiler_pic_works=no
12232 ac_outfile=conftest.$ac_objext
12233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12235 # Insert the option either (1) after the last *FLAGS variable, or
12236 # (2) before a word containing "conftest.", or (3) at the end.
12237 # Note that $ac_compile itself does not contain backslashes and begins
12238 # with a dollar sign (not a hyphen), so the echo should work correctly.
12239 # The option is referenced via a variable to avoid confusing sed.
12240 lt_compile=`echo "$ac_compile" | $SED \
12241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12243 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000012244 (eval echo "\"\$as_me:12244: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012245 (eval "$lt_compile" 2>conftest.err)
12246 ac_status=$?
12247 cat conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000012248 echo "$as_me:12248: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012249 if (exit $ac_status) && test -s "$ac_outfile"; then
12250 # The compiler can only warn and ignore the option if not recognized
12251 # So say no if there are warnings
12252 if test ! -s conftest.err; then
12253 lt_prog_compiler_pic_works=yes
12254 fi
12255 fi
12256 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012257
John Criswell47fdd832003-07-14 16:52:07 +000012258fi
12259echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12260echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012261
John Criswell47fdd832003-07-14 16:52:07 +000012262if test x"$lt_prog_compiler_pic_works" = xyes; then
12263 case $lt_prog_compiler_pic in
12264 "" | " "*) ;;
12265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12266 esac
John Criswell7a73b802003-06-30 21:59:07 +000012267else
John Criswell47fdd832003-07-14 16:52:07 +000012268 lt_prog_compiler_pic=
12269 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012270fi
12271
John Criswell7a73b802003-06-30 21:59:07 +000012272fi
John Criswell47fdd832003-07-14 16:52:07 +000012273case "$host_os" in
12274 # For platforms which do not support PIC, -DPIC is meaningless:
12275 *djgpp*)
12276 lt_prog_compiler_pic=
12277 ;;
12278 *)
12279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12280 ;;
12281esac
John Criswell7a73b802003-06-30 21:59:07 +000012282
John Criswell7a73b802003-06-30 21:59:07 +000012283echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12284echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012285if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287else
John Criswell47fdd832003-07-14 16:52:07 +000012288 lt_cv_prog_compiler_c_o=no
12289 $rm -r conftest 2>/dev/null
12290 mkdir conftest
12291 cd conftest
12292 mkdir out
12293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012294
John Criswell47fdd832003-07-14 16:52:07 +000012295 lt_compiler_flag="-o out/conftest2.$ac_objext"
12296 # Insert the option either (1) after the last *FLAGS variable, or
12297 # (2) before a word containing "conftest.", or (3) at the end.
12298 # Note that $ac_compile itself does not contain backslashes and begins
12299 # with a dollar sign (not a hyphen), so the echo should work correctly.
12300 lt_compile=`echo "$ac_compile" | $SED \
12301 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000012304 (eval echo "\"\$as_me:12304: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012305 (eval "$lt_compile" 2>out/conftest.err)
12306 ac_status=$?
12307 cat out/conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000012308 echo "$as_me:12308: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12310 then
12311 # The compiler can only warn and ignore the option if not recognized
12312 # So say no if there are warnings
12313 if test ! -s out/conftest.err; then
12314 lt_cv_prog_compiler_c_o=yes
12315 fi
12316 fi
12317 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012318 $rm conftest*
12319 # SGI C++ compiler will create directory out/ii_files/ for
12320 # template instantiation
12321 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12322 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012323 cd ..
12324 rmdir conftest
12325 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012326
12327fi
John Criswell47fdd832003-07-14 16:52:07 +000012328echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12329echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012330
John Criswell7a73b802003-06-30 21:59:07 +000012331
John Criswell7a73b802003-06-30 21:59:07 +000012332hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012333if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012334 # do not overwrite the value of need_locks provided by the user
12335 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12336echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12337 hard_links=yes
12338 $rm conftest*
12339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12340 touch conftest.a
12341 ln conftest.a conftest.b 2>&5 || hard_links=no
12342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12343 echo "$as_me:$LINENO: result: $hard_links" >&5
12344echo "${ECHO_T}$hard_links" >&6
12345 if test "$hard_links" = no; then
12346 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12347echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12348 need_locks=warn
12349 fi
12350else
12351 need_locks=no
12352fi
John Criswell7a73b802003-06-30 21:59:07 +000012353
John Criswell47fdd832003-07-14 16:52:07 +000012354echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12355echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12356
12357 runpath_var=
12358 allow_undefined_flag=
12359 enable_shared_with_static_runtimes=no
12360 archive_cmds=
12361 archive_expsym_cmds=
12362 old_archive_From_new_cmds=
12363 old_archive_from_expsyms_cmds=
12364 export_dynamic_flag_spec=
12365 whole_archive_flag_spec=
12366 thread_safe_flag_spec=
12367 hardcode_libdir_flag_spec=
12368 hardcode_libdir_flag_spec_ld=
12369 hardcode_libdir_separator=
12370 hardcode_direct=no
12371 hardcode_minus_L=no
12372 hardcode_shlibpath_var=unsupported
12373 link_all_deplibs=unknown
12374 hardcode_automatic=no
12375 module_cmds=
12376 module_expsym_cmds=
12377 always_export_symbols=no
12378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12379 # include_expsyms should be a list of space-separated symbols to be *always*
12380 # included in the symbol list
12381 include_expsyms=
12382 # exclude_expsyms can be an extended regexp of symbols to exclude
12383 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12384 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12385 # as well as any symbol that contains `d'.
12386 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12387 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12388 # platforms (ab)use it in PIC code, but their linkers get confused if
12389 # the symbol is explicitly referenced. Since portable code cannot
12390 # rely on this symbol name, it's probably fine to never include it in
12391 # preloaded symbol tables.
12392 extract_expsyms_cmds=
12393
12394 case $host_os in
12395 cygwin* | mingw* | pw32*)
12396 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12397 # When not using gcc, we currently assume that we are using
12398 # Microsoft Visual C++.
12399 if test "$GCC" != yes; then
12400 with_gnu_ld=no
12401 fi
12402 ;;
12403 openbsd*)
12404 with_gnu_ld=no
12405 ;;
12406 esac
12407
12408 ld_shlibs=yes
12409 if test "$with_gnu_ld" = yes; then
12410 # If archive_cmds runs LD, not CC, wlarc should be empty
12411 wlarc='${wl}'
12412
12413 # See if GNU ld supports shared libraries.
12414 case $host_os in
12415 aix3* | aix4* | aix5*)
12416 # On AIX/PPC, the GNU linker is very broken
12417 if test "$host_cpu" != ia64; then
12418 ld_shlibs=no
12419 cat <<EOF 1>&2
12420
12421*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12422*** to be unable to reliably create shared libraries on AIX.
12423*** Therefore, libtool is disabling shared libraries support. If you
12424*** really care for shared libraries, you may want to modify your PATH
12425*** so that a non-GNU linker is found, and then restart.
12426
12427EOF
12428 fi
12429 ;;
12430
12431 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012432 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 +000012433 hardcode_libdir_flag_spec='-L$libdir'
12434 hardcode_minus_L=yes
12435
12436 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12437 # that the semantics of dynamic libraries on AmigaOS, at least up
12438 # to version 4, is to share data among multiple programs linked
12439 # with the same dynamic library. Since this doesn't match the
12440 # behavior of shared libraries on other platforms, we can't use
12441 # them.
12442 ld_shlibs=no
12443 ;;
12444
12445 beos*)
12446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12447 allow_undefined_flag=unsupported
12448 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12449 # support --undefined. This deserves some investigation. FIXME
12450 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12451 else
12452 ld_shlibs=no
12453 fi
12454 ;;
12455
12456 cygwin* | mingw* | pw32*)
12457 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12458 # as there is no search path for DLLs.
12459 hardcode_libdir_flag_spec='-L$libdir'
12460 allow_undefined_flag=unsupported
12461 always_export_symbols=no
12462 enable_shared_with_static_runtimes=yes
12463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12464
12465 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12467 # If the export-symbols file already is a .def file (1st line
12468 # is EXPORTS), use it as is; otherwise, prepend...
12469 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12470 cp $export_symbols $output_objdir/$soname.def;
12471 else
12472 echo EXPORTS > $output_objdir/$soname.def;
12473 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012474 fi~
12475 $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 +000012476 else
12477 ld_shlibs=no
12478 fi
12479 ;;
12480
12481 netbsd*)
12482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12484 wlarc=
12485 else
12486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12488 fi
12489 ;;
12490
12491 solaris* | sysv5*)
12492 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12493 ld_shlibs=no
12494 cat <<EOF 1>&2
12495
12496*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12497*** create shared libraries on Solaris systems. Therefore, libtool
12498*** is disabling shared libraries support. We urge you to upgrade GNU
12499*** binutils to release 2.9.1 or newer. Another option is to modify
12500*** your PATH or compiler configuration so that the native linker is
12501*** used, and then restart.
12502
12503EOF
12504 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12507 else
12508 ld_shlibs=no
12509 fi
12510 ;;
12511
12512 sunos4*)
12513 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12514 wlarc=
12515 hardcode_direct=yes
12516 hardcode_shlibpath_var=no
12517 ;;
12518
Reid Spencer2706f8c2004-09-19 23:53:36 +000012519 linux*)
12520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12521 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12522 archive_cmds="$tmp_archive_cmds"
12523 supports_anon_versioning=no
12524 case `$LD -v 2>/dev/null` in
12525 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12528 *\ 2.11.*) ;; # other 2.11 versions
12529 *) supports_anon_versioning=yes ;;
12530 esac
12531 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012532 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12533cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12534$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012535 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12536 else
12537 archive_expsym_cmds="$tmp_archive_cmds"
12538 fi
12539 else
12540 ld_shlibs=no
12541 fi
12542 ;;
12543
John Criswell47fdd832003-07-14 16:52:07 +000012544 *)
12545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12548 else
12549 ld_shlibs=no
12550 fi
12551 ;;
12552 esac
12553
12554 if test "$ld_shlibs" = yes; then
12555 runpath_var=LD_RUN_PATH
12556 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12557 export_dynamic_flag_spec='${wl}--export-dynamic'
12558 # ancient GNU ld didn't support --whole-archive et. al.
12559 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12560 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12561 else
12562 whole_archive_flag_spec=
12563 fi
12564 fi
12565 else
12566 # PORTME fill in a description of your system's linker (not GNU ld)
12567 case $host_os in
12568 aix3*)
12569 allow_undefined_flag=unsupported
12570 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012571 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 +000012572 # Note: this linker hardcodes the directories in LIBPATH if there
12573 # are no directories specified by -L.
12574 hardcode_minus_L=yes
12575 if test "$GCC" = yes && test -z "$link_static_flag"; then
12576 # Neither direct hardcoding nor static linking is supported with a
12577 # broken collect2.
12578 hardcode_direct=unsupported
12579 fi
12580 ;;
12581
12582 aix4* | aix5*)
12583 if test "$host_cpu" = ia64; then
12584 # On IA64, the linker does run time linking by default, so we don't
12585 # have to do anything special.
12586 aix_use_runtimelinking=no
12587 exp_sym_flag='-Bexport'
12588 no_entry_flag=""
12589 else
12590 # If we're using GNU nm, then we don't want the "-C" option.
12591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12592 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12593 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'
12594 else
12595 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'
12596 fi
12597 aix_use_runtimelinking=no
12598
12599 # Test if we are trying to use run time linking or normal
12600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12601 # need to do runtime linking.
12602 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12603 for ld_flag in $LDFLAGS; do
12604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12605 aix_use_runtimelinking=yes
12606 break
12607 fi
12608 done
12609 esac
12610
12611 exp_sym_flag='-bexport'
12612 no_entry_flag='-bnoentry'
12613 fi
12614
12615 # When large executables or shared objects are built, AIX ld can
12616 # have problems creating the table of contents. If linking a library
12617 # or program results in "error TOC overflow" add -mminimal-toc to
12618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12620
12621 archive_cmds=''
12622 hardcode_direct=yes
12623 hardcode_libdir_separator=':'
12624 link_all_deplibs=yes
12625
12626 if test "$GCC" = yes; then
12627 case $host_os in aix4.012|aix4.012.*)
12628 # We only want to do this on AIX 4.2 and lower, the check
12629 # below for broken collect2 doesn't work under 4.3+
12630 collect2name=`${CC} -print-prog-name=collect2`
12631 if test -f "$collect2name" && \
12632 strings "$collect2name" | grep resolve_lib_name >/dev/null
12633 then
12634 # We have reworked collect2
12635 hardcode_direct=yes
12636 else
12637 # We have old collect2
12638 hardcode_direct=unsupported
12639 # It fails to find uninstalled libraries when the uninstalled
12640 # path is not listed in the libpath. Setting hardcode_minus_L
12641 # to unsupported forces relinking
12642 hardcode_minus_L=yes
12643 hardcode_libdir_flag_spec='-L$libdir'
12644 hardcode_libdir_separator=
12645 fi
12646 esac
12647 shared_flag='-shared'
12648 else
12649 # not using gcc
12650 if test "$host_cpu" = ia64; then
12651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12652 # chokes on -Wl,-G. The following line is correct:
12653 shared_flag='-G'
12654 else
12655 if test "$aix_use_runtimelinking" = yes; then
12656 shared_flag='${wl}-G'
12657 else
12658 shared_flag='${wl}-bM:SRE'
12659 fi
12660 fi
12661 fi
12662
12663 # It seems that -bexpall does not export symbols beginning with
12664 # underscore (_), so it is better to generate a list of symbols to export.
12665 always_export_symbols=yes
12666 if test "$aix_use_runtimelinking" = yes; then
12667 # Warning - without using the other runtime loading flags (-brtl),
12668 # -berok will link without error, but may produce a broken library.
12669 allow_undefined_flag='-berok'
12670 # Determine the default libpath from the value encoded in an empty executable.
12671 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012672/* confdefs.h. */
12673_ACEOF
12674cat confdefs.h >>conftest.$ac_ext
12675cat >>conftest.$ac_ext <<_ACEOF
12676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012677
John Criswell7a73b802003-06-30 21:59:07 +000012678int
12679main ()
12680{
John Criswell47fdd832003-07-14 16:52:07 +000012681
John Criswell7a73b802003-06-30 21:59:07 +000012682 ;
12683 return 0;
12684}
12685_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012686rm -f conftest.$ac_objext conftest$ac_exeext
12687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012688 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012689 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012695 { ac_try='test -z "$ac_c_werror_flag"
12696 || test ! -s conftest.err'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012708
John Criswell47fdd832003-07-14 16:52:07 +000012709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12710}'`
12711# Check for a 64-bit object if we didn't find anything.
12712if 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; }
12713}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012714else
12715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012716sed 's/^/| /' conftest.$ac_ext >&5
12717
John Criswell7a73b802003-06-30 21:59:07 +000012718fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012719rm -f conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012722
John Criswell47fdd832003-07-14 16:52:07 +000012723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12724 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"
12725 else
12726 if test "$host_cpu" = ia64; then
12727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12728 allow_undefined_flag="-z nodefs"
12729 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"
12730 else
12731 # Determine the default libpath from the value encoded in an empty executable.
12732 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012733/* confdefs.h. */
12734_ACEOF
12735cat confdefs.h >>conftest.$ac_ext
12736cat >>conftest.$ac_ext <<_ACEOF
12737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012738
John Criswell47fdd832003-07-14 16:52:07 +000012739int
12740main ()
12741{
John Criswell7a73b802003-06-30 21:59:07 +000012742
John Criswell47fdd832003-07-14 16:52:07 +000012743 ;
12744 return 0;
12745}
12746_ACEOF
12747rm -f conftest.$ac_objext conftest$ac_exeext
12748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012749 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012756 { ac_try='test -z "$ac_c_werror_flag"
12757 || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012769
John Criswell47fdd832003-07-14 16:52:07 +000012770aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12771}'`
12772# Check for a 64-bit object if we didn't find anything.
12773if 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; }
12774}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012775else
John Criswell47fdd832003-07-14 16:52:07 +000012776 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012777sed 's/^/| /' conftest.$ac_ext >&5
12778
John Criswell47fdd832003-07-14 16:52:07 +000012779fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012780rm -f conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012782if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012783
John Criswell47fdd832003-07-14 16:52:07 +000012784 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12785 # Warning - without using the other run time loading flags,
12786 # -berok will link without error, but may produce a broken library.
12787 no_undefined_flag=' ${wl}-bernotok'
12788 allow_undefined_flag=' ${wl}-berok'
12789 # -bexpall does not export symbols beginning with underscore (_)
12790 always_export_symbols=yes
12791 # Exported symbols can be pulled into shared objects from archives
12792 whole_archive_flag_spec=' '
12793 archive_cmds_need_lc=yes
12794 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012795 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 +000012796 fi
12797 fi
John Criswell7a73b802003-06-30 21:59:07 +000012798 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012799
12800 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012801 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 +000012802 hardcode_libdir_flag_spec='-L$libdir'
12803 hardcode_minus_L=yes
12804 # see comment about different semantics on the GNU ld section
12805 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012806 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012807
Reid Spencer2706f8c2004-09-19 23:53:36 +000012808 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012809 export_dynamic_flag_spec=-rdynamic
12810 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012811
John Criswell47fdd832003-07-14 16:52:07 +000012812 cygwin* | mingw* | pw32*)
12813 # When not using gcc, we currently assume that we are using
12814 # Microsoft Visual C++.
12815 # hardcode_libdir_flag_spec is actually meaningless, as there is
12816 # no search path for DLLs.
12817 hardcode_libdir_flag_spec=' '
12818 allow_undefined_flag=unsupported
12819 # Tell ltmain to make .lib files, not .a files.
12820 libext=lib
12821 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012822 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012823 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012824 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012825 # The linker will automatically build a .lib file if we build a DLL.
12826 old_archive_From_new_cmds='true'
12827 # FIXME: Should let the user specify the lib program.
12828 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12829 fix_srcfile_path='`cygpath -w "$srcfile"`'
12830 enable_shared_with_static_runtimes=yes
12831 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012832
John Criswell47fdd832003-07-14 16:52:07 +000012833 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012834 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012835 rhapsody* | darwin1.[012])
12836 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12837 ;;
12838 *) # Darwin 1.3 on
12839 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12840 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12841 else
12842 case ${MACOSX_DEPLOYMENT_TARGET} in
12843 10.[012])
12844 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12845 ;;
12846 10.*)
12847 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12848 ;;
12849 esac
12850 fi
12851 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012852 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012853 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012854 hardcode_direct=no
12855 hardcode_automatic=yes
12856 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012857 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012858 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012859 if test "$GCC" = yes ; then
12860 output_verbose_link_cmd='echo'
12861 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12862 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12863 # 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 +000012864 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}'
12865 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 +000012866 else
12867 case "$cc_basename" in
12868 xlc*)
12869 output_verbose_link_cmd='echo'
12870 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12871 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12872 # 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 +000012873 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}'
12874 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 +000012875 ;;
12876 *)
12877 ld_shlibs=no
12878 ;;
12879 esac
John Criswell7a73b802003-06-30 21:59:07 +000012880 fi
John Criswell47fdd832003-07-14 16:52:07 +000012881 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012882
John Criswell47fdd832003-07-14 16:52:07 +000012883 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012885 hardcode_libdir_flag_spec='-L$libdir'
12886 hardcode_shlibpath_var=no
12887 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012888
John Criswell47fdd832003-07-14 16:52:07 +000012889 freebsd1*)
12890 ld_shlibs=no
12891 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012892
John Criswell47fdd832003-07-14 16:52:07 +000012893 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12894 # support. Future versions do this automatically, but an explicit c++rt0.o
12895 # does not break anything, and helps significantly (at the cost of a little
12896 # extra space).
12897 freebsd2.2*)
12898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12899 hardcode_libdir_flag_spec='-R$libdir'
12900 hardcode_direct=yes
12901 hardcode_shlibpath_var=no
12902 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012903
John Criswell47fdd832003-07-14 16:52:07 +000012904 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12905 freebsd2*)
12906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12907 hardcode_direct=yes
12908 hardcode_minus_L=yes
12909 hardcode_shlibpath_var=no
12910 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012911
John Criswell47fdd832003-07-14 16:52:07 +000012912 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012913 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012914 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12915 hardcode_libdir_flag_spec='-R$libdir'
12916 hardcode_direct=yes
12917 hardcode_shlibpath_var=no
12918 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012919
John Criswell47fdd832003-07-14 16:52:07 +000012920 hpux9*)
12921 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012922 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 +000012923 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012924 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 +000012925 fi
12926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12927 hardcode_libdir_separator=:
12928 hardcode_direct=yes
12929
12930 # hardcode_minus_L: Not really in the search PATH,
12931 # but as the default location of the library.
12932 hardcode_minus_L=yes
12933 export_dynamic_flag_spec='${wl}-E'
12934 ;;
12935
12936 hpux10* | hpux11*)
12937 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12938 case "$host_cpu" in
12939 hppa*64*|ia64*)
12940 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12941 ;;
12942 *)
12943 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12944 ;;
12945 esac
12946 else
12947 case "$host_cpu" in
12948 hppa*64*|ia64*)
12949 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12950 ;;
12951 *)
12952 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12953 ;;
12954 esac
12955 fi
12956 if test "$with_gnu_ld" = no; then
12957 case "$host_cpu" in
12958 hppa*64*)
12959 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12960 hardcode_libdir_flag_spec_ld='+b $libdir'
12961 hardcode_libdir_separator=:
12962 hardcode_direct=no
12963 hardcode_shlibpath_var=no
12964 ;;
12965 ia64*)
12966 hardcode_libdir_flag_spec='-L$libdir'
12967 hardcode_direct=no
12968 hardcode_shlibpath_var=no
12969
12970 # hardcode_minus_L: Not really in the search PATH,
12971 # but as the default location of the library.
12972 hardcode_minus_L=yes
12973 ;;
12974 *)
12975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12976 hardcode_libdir_separator=:
12977 hardcode_direct=yes
12978 export_dynamic_flag_spec='${wl}-E'
12979
12980 # hardcode_minus_L: Not really in the search PATH,
12981 # but as the default location of the library.
12982 hardcode_minus_L=yes
12983 ;;
12984 esac
12985 fi
12986 ;;
12987
12988 irix5* | irix6* | nonstopux*)
12989 if test "$GCC" = yes; then
12990 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'
12991 else
12992 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'
12993 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12994 fi
12995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12996 hardcode_libdir_separator=:
12997 link_all_deplibs=yes
12998 ;;
12999
13000 netbsd*)
13001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13003 else
13004 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13005 fi
13006 hardcode_libdir_flag_spec='-R$libdir'
13007 hardcode_direct=yes
13008 hardcode_shlibpath_var=no
13009 ;;
13010
13011 newsos6)
13012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13013 hardcode_direct=yes
13014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13015 hardcode_libdir_separator=:
13016 hardcode_shlibpath_var=no
13017 ;;
13018
13019 openbsd*)
13020 hardcode_direct=yes
13021 hardcode_shlibpath_var=no
13022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013024 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 +000013025 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13026 export_dynamic_flag_spec='${wl}-E'
13027 else
13028 case $host_os in
13029 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13031 hardcode_libdir_flag_spec='-R$libdir'
13032 ;;
13033 *)
13034 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13035 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13036 ;;
13037 esac
13038 fi
13039 ;;
13040
13041 os2*)
13042 hardcode_libdir_flag_spec='-L$libdir'
13043 hardcode_minus_L=yes
13044 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013045 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 +000013046 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13047 ;;
13048
13049 osf3*)
13050 if test "$GCC" = yes; then
13051 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13052 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'
13053 else
13054 allow_undefined_flag=' -expect_unresolved \*'
13055 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'
13056 fi
13057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13058 hardcode_libdir_separator=:
13059 ;;
13060
13061 osf4* | osf5*) # as osf3* with the addition of -msym flag
13062 if test "$GCC" = yes; then
13063 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13064 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'
13065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13066 else
13067 allow_undefined_flag=' -expect_unresolved \*'
13068 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 +000013069 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13070 $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'
13071
John Criswell47fdd832003-07-14 16:52:07 +000013072 # Both c and cxx compiler support -rpath directly
13073 hardcode_libdir_flag_spec='-rpath $libdir'
13074 fi
13075 hardcode_libdir_separator=:
13076 ;;
13077
13078 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13080 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013081 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013082 runpath_var=LD_RUN_PATH
13083 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013084 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013085
John Criswell47fdd832003-07-14 16:52:07 +000013086 solaris*)
13087 no_undefined_flag=' -z text'
13088 if test "$GCC" = yes; then
13089 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013090 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13091 $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 +000013092 else
13093 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013094 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13095 $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 +000013096 fi
13097 hardcode_libdir_flag_spec='-R$libdir'
13098 hardcode_shlibpath_var=no
13099 case $host_os in
13100 solaris2.[0-5] | solaris2.[0-5].*) ;;
13101 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13102 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13103 esac
13104 link_all_deplibs=yes
13105 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013106
John Criswell47fdd832003-07-14 16:52:07 +000013107 sunos4*)
13108 if test "x$host_vendor" = xsequent; then
13109 # Use $CC to link under sequent, because it throws in some extra .o
13110 # files that make .init and .fini sections work.
13111 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13112 else
13113 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13114 fi
13115 hardcode_libdir_flag_spec='-L$libdir'
13116 hardcode_direct=yes
13117 hardcode_minus_L=yes
13118 hardcode_shlibpath_var=no
13119 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013120
John Criswell47fdd832003-07-14 16:52:07 +000013121 sysv4)
13122 case $host_vendor in
13123 sni)
13124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13125 hardcode_direct=yes # is this really true???
13126 ;;
13127 siemens)
13128 ## LD is ld it makes a PLAMLIB
13129 ## CC just makes a GrossModule.
13130 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13131 reload_cmds='$CC -r -o $output$reload_objs'
13132 hardcode_direct=no
13133 ;;
13134 motorola)
13135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13137 ;;
13138 esac
13139 runpath_var='LD_RUN_PATH'
13140 hardcode_shlibpath_var=no
13141 ;;
13142
13143 sysv4.3*)
13144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13145 hardcode_shlibpath_var=no
13146 export_dynamic_flag_spec='-Bexport'
13147 ;;
13148
13149 sysv4*MP*)
13150 if test -d /usr/nec; then
13151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13152 hardcode_shlibpath_var=no
13153 runpath_var=LD_RUN_PATH
13154 hardcode_runpath_var=yes
13155 ld_shlibs=yes
13156 fi
13157 ;;
13158
13159 sysv4.2uw2*)
13160 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13161 hardcode_direct=yes
13162 hardcode_minus_L=no
13163 hardcode_shlibpath_var=no
13164 hardcode_runpath_var=yes
13165 runpath_var=LD_RUN_PATH
13166 ;;
13167
13168 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13169 no_undefined_flag='${wl}-z ${wl}text'
13170 if test "$GCC" = yes; then
13171 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13172 else
13173 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13174 fi
13175 runpath_var='LD_RUN_PATH'
13176 hardcode_shlibpath_var=no
13177 ;;
13178
13179 sysv5*)
13180 no_undefined_flag=' -z text'
13181 # $CC -shared without GNU ld will not create a library from C++
13182 # object files and a static libstdc++, better avoid it by now
13183 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013184 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13185 $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 +000013186 hardcode_libdir_flag_spec=
13187 hardcode_shlibpath_var=no
13188 runpath_var='LD_RUN_PATH'
13189 ;;
13190
13191 uts4*)
13192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13193 hardcode_libdir_flag_spec='-L$libdir'
13194 hardcode_shlibpath_var=no
13195 ;;
13196
13197 *)
13198 ld_shlibs=no
13199 ;;
13200 esac
13201 fi
13202
John Criswell7a73b802003-06-30 21:59:07 +000013203echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13204echo "${ECHO_T}$ld_shlibs" >&6
13205test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013206
John Criswell47fdd832003-07-14 16:52:07 +000013207variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13208if test "$GCC" = yes; then
13209 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13210fi
13211
13212#
13213# Do we need to explicitly link libc?
13214#
13215case "x$archive_cmds_need_lc" in
13216x|xyes)
13217 # Assume -lc should be added
13218 archive_cmds_need_lc=yes
13219
13220 if test "$enable_shared" = yes && test "$GCC" = yes; then
13221 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013222 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013223 # FIXME: we may have to deal with multi-command sequences.
13224 ;;
13225 '$CC '*)
13226 # Test whether the compiler implicitly links with -lc since on some
13227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13228 # to ld, don't add -lc before -lgcc.
13229 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13230echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13231 $rm conftest*
13232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13233
13234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13235 (eval $ac_compile) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } 2>conftest.err; then
13239 soname=conftest
13240 lib=conftest
13241 libobjs=conftest.$ac_objext
13242 deplibs=
13243 wl=$lt_prog_compiler_wl
13244 compiler_flags=-v
13245 linker_flags=-v
13246 verstring=
13247 output_objdir=.
13248 libname=conftest
13249 lt_save_allow_undefined_flag=$allow_undefined_flag
13250 allow_undefined_flag=
13251 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13252 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }
13256 then
13257 archive_cmds_need_lc=no
13258 else
13259 archive_cmds_need_lc=yes
13260 fi
13261 allow_undefined_flag=$lt_save_allow_undefined_flag
13262 else
13263 cat conftest.err 1>&5
13264 fi
13265 $rm conftest*
13266 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13267echo "${ECHO_T}$archive_cmds_need_lc" >&6
13268 ;;
13269 esac
13270 fi
13271 ;;
13272esac
13273
John Criswell7a73b802003-06-30 21:59:07 +000013274echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13275echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13276library_names_spec=
13277libname_spec='lib$name'
13278soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013279shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013280postinstall_cmds=
13281postuninstall_cmds=
13282finish_cmds=
13283finish_eval=
13284shlibpath_var=
13285shlibpath_overrides_runpath=unknown
13286version_type=none
13287dynamic_linker="$host_os ld.so"
13288sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013289if test "$GCC" = yes; then
13290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13291 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13292 # if the path contains ";" then we assume it to be the separator
13293 # otherwise default to the standard path separator (i.e. ":") - it is
13294 # assumed that no part of a normal pathname contains ";" but that should
13295 # okay in the real world where ";" in dirpaths is itself problematic.
13296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13297 else
13298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13299 fi
13300else
13301 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13302fi
13303need_lib_prefix=unknown
13304hardcode_into_libs=no
13305
13306# when you set need_version to no, make sure it does not cause -set_version
13307# flags to be left without arguments
13308need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013309
13310case $host_os in
13311aix3*)
13312 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013314 shlibpath_var=LIBPATH
13315
John Criswell47fdd832003-07-14 16:52:07 +000013316 # AIX 3 has no versioning support, so we append a major version to the name.
13317 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013318 ;;
13319
13320aix4* | aix5*)
13321 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013322 need_lib_prefix=no
13323 need_version=no
13324 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013325 if test "$host_cpu" = ia64; then
13326 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013328 shlibpath_var=LD_LIBRARY_PATH
13329 else
13330 # With GCC up to 2.95.x, collect2 would create an import file
13331 # for dependence libraries. The import file would start with
13332 # the line `#! .'. This would cause the generated library to
13333 # depend on `.', always an invalid library. This was fixed in
13334 # development snapshots of GCC prior to 3.0.
13335 case $host_os in
13336 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13338 echo ' yes '
13339 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13340 :
13341 else
13342 can_build_shared=no
13343 fi
13344 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013345 esac
John Criswell47fdd832003-07-14 16:52:07 +000013346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13347 # soname into executable. Probably we can add versioning support to
13348 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013349 if test "$aix_use_runtimelinking" = yes; then
13350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13351 # instead of lib<name>.a to let people know that these are not
13352 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013354 else
13355 # We preserve .a as extension for shared libraries through AIX4.2
13356 # and later when we are not doing run time linking.
13357 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013358 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013359 fi
13360 shlibpath_var=LIBPATH
13361 fi
13362 ;;
13363
13364amigaos*)
13365 library_names_spec='$libname.ixlibrary $libname.a'
13366 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013367 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 +000013368 ;;
13369
13370beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013371 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013372 dynamic_linker="$host_os ld.so"
13373 shlibpath_var=LIBRARY_PATH
13374 ;;
13375
Reid Spencer2706f8c2004-09-19 23:53:36 +000013376bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013377 version_type=linux
13378 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013385 # the default ld.so.conf also contains /usr/contrib/lib and
13386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13387 # libtool to hard-code these into programs
13388 ;;
13389
13390cygwin* | mingw* | pw32*)
13391 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013392 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013393 need_version=no
13394 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013395
John Criswell7a73b802003-06-30 21:59:07 +000013396 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013397 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013398 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013400 postinstall_cmds='base_file=`basename \${file}`~
13401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13402 dldir=$destdir/`dirname \$dlpath`~
13403 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013404 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13406 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013407 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013408 shlibpath_overrides_runpath=yes
13409
13410 case $host_os in
13411 cygwin*)
13412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13413 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 +000013414 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013415 ;;
13416 mingw*)
13417 # MinGW DLLs use traditional 'lib' prefix
13418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13419 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13420 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13421 # It is most probably a Windows format PATH printed by
13422 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13423 # path with ; separators, and with drive letters. We can handle the
13424 # drive letters (cygwin fileutils understands them), so leave them,
13425 # especially as we might pass files found there to a mingw objdump,
13426 # which wouldn't understand a cygwinified path. Ahh.
13427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13428 else
13429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13430 fi
13431 ;;
13432 pw32*)
13433 # pw32 DLLs use 'pw' prefix rather than 'lib'
13434 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13435 ;;
13436 esac
John Criswell7a73b802003-06-30 21:59:07 +000013437 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013438
John Criswell7a73b802003-06-30 21:59:07 +000013439 *)
John Criswell47fdd832003-07-14 16:52:07 +000013440 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013441 ;;
13442 esac
13443 dynamic_linker='Win32 ld.exe'
13444 # FIXME: first we should search . and the directory the executable is in
13445 shlibpath_var=PATH
13446 ;;
13447
13448darwin* | rhapsody*)
13449 dynamic_linker="$host_os dyld"
13450 version_type=darwin
13451 need_lib_prefix=no
13452 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013453 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013454 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013455 shlibpath_overrides_runpath=yes
13456 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013457 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013458 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013459 if test "$GCC" = yes; then
13460 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"`
13461 else
13462 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013463 fi
13464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13465 ;;
13466
13467dgux*)
13468 version_type=linux
13469 need_lib_prefix=no
13470 need_version=no
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013474 ;;
13475
13476freebsd1*)
13477 dynamic_linker=no
13478 ;;
13479
Reid Spencer2706f8c2004-09-19 23:53:36 +000013480kfreebsd*-gnu)
13481 version_type=linux
13482 need_lib_prefix=no
13483 need_version=no
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13485 soname_spec='${libname}${release}${shared_ext}$major'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=no
13488 hardcode_into_libs=yes
13489 dynamic_linker='GNU ld.so'
13490 ;;
13491
John Criswell7a73b802003-06-30 21:59:07 +000013492freebsd*)
13493 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13494 version_type=freebsd-$objformat
13495 case $version_type in
13496 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013498 need_version=no
13499 need_lib_prefix=no
13500 ;;
13501 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013503 need_version=yes
13504 ;;
13505 esac
13506 shlibpath_var=LD_LIBRARY_PATH
13507 case $host_os in
13508 freebsd2*)
13509 shlibpath_overrides_runpath=yes
13510 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013511 freebsd3.01* | freebsdelf3.01*)
13512 shlibpath_overrides_runpath=yes
13513 hardcode_into_libs=yes
13514 ;;
13515 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013516 shlibpath_overrides_runpath=no
13517 hardcode_into_libs=yes
13518 ;;
13519 esac
13520 ;;
13521
13522gnu*)
13523 version_type=linux
13524 need_lib_prefix=no
13525 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13527 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013528 shlibpath_var=LD_LIBRARY_PATH
13529 hardcode_into_libs=yes
13530 ;;
13531
13532hpux9* | hpux10* | hpux11*)
13533 # Give a soname corresponding to the major version so that dld.sl refuses to
13534 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013535 version_type=sunos
13536 need_lib_prefix=no
13537 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013538 case "$host_cpu" in
13539 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013540 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013541 hardcode_into_libs=yes
13542 dynamic_linker="$host_os dld.so"
13543 shlibpath_var=LD_LIBRARY_PATH
13544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13546 soname_spec='${libname}${release}${shared_ext}$major'
13547 if test "X$HPUX_IA64_MODE" = X32; then
13548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13549 else
13550 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13551 fi
13552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13553 ;;
13554 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013555 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013556 hardcode_into_libs=yes
13557 dynamic_linker="$host_os dld.sl"
13558 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561 soname_spec='${libname}${release}${shared_ext}$major'
13562 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13564 ;;
13565 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013566 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013567 dynamic_linker="$host_os dld.sl"
13568 shlibpath_var=SHLIB_PATH
13569 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13571 soname_spec='${libname}${release}${shared_ext}$major'
13572 ;;
13573 esac
John Criswell7a73b802003-06-30 21:59:07 +000013574 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13575 postinstall_cmds='chmod 555 $lib'
13576 ;;
13577
John Criswell47fdd832003-07-14 16:52:07 +000013578irix5* | irix6* | nonstopux*)
13579 case $host_os in
13580 nonstopux*) version_type=nonstopux ;;
13581 *)
13582 if test "$lt_cv_prog_gnu_ld" = yes; then
13583 version_type=linux
13584 else
13585 version_type=irix
13586 fi ;;
13587 esac
John Criswell7a73b802003-06-30 21:59:07 +000013588 need_lib_prefix=no
13589 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013590 soname_spec='${libname}${release}${shared_ext}$major'
13591 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 +000013592 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013593 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013594 libsuff= shlibsuff=
13595 ;;
13596 *)
13597 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013598 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13599 libsuff= shlibsuff= libmagic=32-bit;;
13600 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13601 libsuff=32 shlibsuff=N32 libmagic=N32;;
13602 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13603 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013604 *) libsuff= shlibsuff= libmagic=never-match;;
13605 esac
13606 ;;
13607 esac
13608 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13609 shlibpath_overrides_runpath=no
13610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013612 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013613 ;;
13614
13615# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013616linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013617 dynamic_linker=no
13618 ;;
13619
13620# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013621linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013622 version_type=linux
13623 need_lib_prefix=no
13624 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13626 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13628 shlibpath_var=LD_LIBRARY_PATH
13629 shlibpath_overrides_runpath=no
13630 # This implies no fast_install, which is unacceptable.
13631 # Some rework will be needed to allow for fast_install
13632 # before this can be enabled.
13633 hardcode_into_libs=yes
13634
Reid Spencer2706f8c2004-09-19 23:53:36 +000013635 # Append ld.so.conf contents to the search path
13636 if test -f /etc/ld.so.conf; then
13637 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13639 fi
13640
John Criswell7a73b802003-06-30 21:59:07 +000013641 # We used to test for /lib/ld.so.1 and disable shared libraries on
13642 # powerpc, because MkLinux only supported shared libraries with the
13643 # GNU dynamic linker. Since this was broken with cross compilers,
13644 # most powerpc-linux boxes support dynamic linking these days and
13645 # people can always --disable-shared, the test was removed, and we
13646 # assume the GNU/Linux dynamic linker is in use.
13647 dynamic_linker='GNU/Linux ld.so'
13648 ;;
13649
Reid Spencer2706f8c2004-09-19 23:53:36 +000013650knetbsd*-gnu)
13651 version_type=linux
13652 need_lib_prefix=no
13653 need_version=no
13654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13655 soname_spec='${libname}${release}${shared_ext}$major'
13656 shlibpath_var=LD_LIBRARY_PATH
13657 shlibpath_overrides_runpath=no
13658 hardcode_into_libs=yes
13659 dynamic_linker='GNU ld.so'
13660 ;;
13661
John Criswell7a73b802003-06-30 21:59:07 +000013662netbsd*)
13663 version_type=sunos
13664 need_lib_prefix=no
13665 need_version=no
13666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13669 dynamic_linker='NetBSD (a.out) ld.so'
13670 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013672 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013673 dynamic_linker='NetBSD ld.elf_so'
13674 fi
13675 shlibpath_var=LD_LIBRARY_PATH
13676 shlibpath_overrides_runpath=yes
13677 hardcode_into_libs=yes
13678 ;;
13679
13680newsos6)
13681 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13683 shlibpath_var=LD_LIBRARY_PATH
13684 shlibpath_overrides_runpath=yes
13685 ;;
13686
Reid Spencer2706f8c2004-09-19 23:53:36 +000013687nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013688 version_type=linux
13689 need_lib_prefix=no
13690 need_version=no
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013693 shlibpath_var=LD_LIBRARY_PATH
13694 shlibpath_overrides_runpath=yes
13695 ;;
13696
13697openbsd*)
13698 version_type=sunos
13699 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013700 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13703 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013704 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 +000013705 case $host_os in
13706 openbsd2.[89] | openbsd2.[89].*)
13707 shlibpath_overrides_runpath=no
13708 ;;
13709 *)
13710 shlibpath_overrides_runpath=yes
13711 ;;
13712 esac
John Criswell7a73b802003-06-30 21:59:07 +000013713 else
13714 shlibpath_overrides_runpath=yes
13715 fi
John Criswell7a73b802003-06-30 21:59:07 +000013716 ;;
13717
13718os2*)
13719 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013720 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013721 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013722 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013723 dynamic_linker='OS/2 ld.exe'
13724 shlibpath_var=LIBPATH
13725 ;;
13726
13727osf3* | osf4* | osf5*)
13728 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013729 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013730 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013731 soname_spec='${libname}${release}${shared_ext}$major'
13732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013733 shlibpath_var=LD_LIBRARY_PATH
13734 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13735 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13736 ;;
13737
13738sco3.2v5*)
13739 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013740 soname_spec='${libname}${release}${shared_ext}$major'
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013742 shlibpath_var=LD_LIBRARY_PATH
13743 ;;
13744
13745solaris*)
13746 version_type=linux
13747 need_lib_prefix=no
13748 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013751 shlibpath_var=LD_LIBRARY_PATH
13752 shlibpath_overrides_runpath=yes
13753 hardcode_into_libs=yes
13754 # ldd complains unless libraries are executable
13755 postinstall_cmds='chmod +x $lib'
13756 ;;
13757
13758sunos4*)
13759 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13762 shlibpath_var=LD_LIBRARY_PATH
13763 shlibpath_overrides_runpath=yes
13764 if test "$with_gnu_ld" = yes; then
13765 need_lib_prefix=no
13766 fi
13767 need_version=yes
13768 ;;
13769
13770sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13771 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013774 shlibpath_var=LD_LIBRARY_PATH
13775 case $host_vendor in
13776 sni)
13777 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013778 need_lib_prefix=no
13779 export_dynamic_flag_spec='${wl}-Blargedynsym'
13780 runpath_var=LD_RUN_PATH
13781 ;;
13782 siemens)
13783 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013784 ;;
13785 motorola)
13786 need_lib_prefix=no
13787 need_version=no
13788 shlibpath_overrides_runpath=no
13789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13790 ;;
13791 esac
13792 ;;
13793
John Criswell7a73b802003-06-30 21:59:07 +000013794sysv4*MP*)
13795 if test -d /usr/nec ;then
13796 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13798 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013799 shlibpath_var=LD_LIBRARY_PATH
13800 fi
13801 ;;
13802
John Criswell47fdd832003-07-14 16:52:07 +000013803uts4*)
13804 version_type=linux
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806 soname_spec='${libname}${release}${shared_ext}$major'
13807 shlibpath_var=LD_LIBRARY_PATH
13808 ;;
13809
John Criswell7a73b802003-06-30 21:59:07 +000013810*)
13811 dynamic_linker=no
13812 ;;
13813esac
13814echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13815echo "${ECHO_T}$dynamic_linker" >&6
13816test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013817
Reid Spencer2706f8c2004-09-19 23:53:36 +000013818echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13819echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13820hardcode_action=
13821if test -n "$hardcode_libdir_flag_spec" || \
13822 test -n "$runpath_var" || \
13823 test "X$hardcode_automatic" = "Xyes" ; then
13824
13825 # We can hardcode non-existant directories.
13826 if test "$hardcode_direct" != no &&
13827 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13828 # have to relink, otherwise we might link with an installed library
13829 # when we should be linking with a yet-to-be-installed one
13830 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13831 test "$hardcode_minus_L" != no; then
13832 # Linking always hardcodes the temporary library directory.
13833 hardcode_action=relink
13834 else
13835 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13836 hardcode_action=immediate
13837 fi
13838else
13839 # We cannot hardcode anything, or else we can only hardcode existing
13840 # directories.
13841 hardcode_action=unsupported
13842fi
13843echo "$as_me:$LINENO: result: $hardcode_action" >&5
13844echo "${ECHO_T}$hardcode_action" >&6
13845
13846if test "$hardcode_action" = relink; then
13847 # Fast installation is not supported
13848 enable_fast_install=no
13849elif test "$shlibpath_overrides_runpath" = yes ||
13850 test "$enable_shared" = no; then
13851 # Fast installation is not necessary
13852 enable_fast_install=needless
13853fi
13854
13855striplib=
13856old_striplib=
13857echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13858echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13859if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13860 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13861 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13862 echo "$as_me:$LINENO: result: yes" >&5
13863echo "${ECHO_T}yes" >&6
13864else
13865# FIXME - insert some real tests, host_os isn't really good enough
13866 case $host_os in
13867 darwin*)
13868 if test -n "$STRIP" ; then
13869 striplib="$STRIP -x"
13870 echo "$as_me:$LINENO: result: yes" >&5
13871echo "${ECHO_T}yes" >&6
13872 else
13873 echo "$as_me:$LINENO: result: no" >&5
13874echo "${ECHO_T}no" >&6
13875fi
13876 ;;
13877 *)
13878 echo "$as_me:$LINENO: result: no" >&5
13879echo "${ECHO_T}no" >&6
13880 ;;
13881 esac
13882fi
13883
John Criswell7a73b802003-06-30 21:59:07 +000013884if test "x$enable_dlopen" != xyes; then
13885 enable_dlopen=unknown
13886 enable_dlopen_self=unknown
13887 enable_dlopen_self_static=unknown
13888else
13889 lt_cv_dlopen=no
13890 lt_cv_dlopen_libs=
13891
13892 case $host_os in
13893 beos*)
13894 lt_cv_dlopen="load_add_on"
13895 lt_cv_dlopen_libs=
13896 lt_cv_dlopen_self=yes
13897 ;;
13898
John Criswell47fdd832003-07-14 16:52:07 +000013899 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013900 lt_cv_dlopen="LoadLibrary"
13901 lt_cv_dlopen_libs=
13902 ;;
13903
John Criswell47fdd832003-07-14 16:52:07 +000013904 cygwin*)
13905 lt_cv_dlopen="dlopen"
13906 lt_cv_dlopen_libs=
13907 ;;
13908
13909 darwin*)
13910 # if libdl is installed we need to link against it
13911 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13912echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13913if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915else
13916 ac_check_lib_save_LIBS=$LIBS
13917LIBS="-ldl $LIBS"
13918cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013919/* confdefs.h. */
13920_ACEOF
13921cat confdefs.h >>conftest.$ac_ext
13922cat >>conftest.$ac_ext <<_ACEOF
13923/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013924
13925/* Override any gcc2 internal prototype to avoid an error. */
13926#ifdef __cplusplus
13927extern "C"
13928#endif
13929/* We use char because int might match the return type of a gcc2
13930 builtin and then its argument prototype would still apply. */
13931char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013932int
13933main ()
13934{
13935dlopen ();
13936 ;
13937 return 0;
13938}
13939_ACEOF
13940rm -f conftest.$ac_objext conftest$ac_exeext
13941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013942 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013943 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013949 { ac_try='test -z "$ac_c_werror_flag"
13950 || test ! -s conftest.err'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 ac_cv_lib_dl_dlopen=yes
13963else
13964 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013965sed 's/^/| /' conftest.$ac_ext >&5
13966
John Criswell47fdd832003-07-14 16:52:07 +000013967ac_cv_lib_dl_dlopen=no
13968fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013969rm -f conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013971LIBS=$ac_check_lib_save_LIBS
13972fi
13973echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13974echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13975if test $ac_cv_lib_dl_dlopen = yes; then
13976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13977else
13978
13979 lt_cv_dlopen="dyld"
13980 lt_cv_dlopen_libs=
13981 lt_cv_dlopen_self=yes
13982
13983fi
13984
13985 ;;
13986
John Criswell7a73b802003-06-30 21:59:07 +000013987 *)
13988 echo "$as_me:$LINENO: checking for shl_load" >&5
13989echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13990if test "${ac_cv_func_shl_load+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992else
13993 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013999/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14001#define shl_load innocuous_shl_load
14002
John Criswell7a73b802003-06-30 21:59:07 +000014003/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014004 which can conflict with char shl_load (); below.
14005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14006 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014007
John Criswell0c38eaf2003-09-10 15:17:25 +000014008#ifdef __STDC__
14009# include <limits.h>
14010#else
14011# include <assert.h>
14012#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014013
14014#undef shl_load
14015
John Criswell7a73b802003-06-30 21:59:07 +000014016/* Override any gcc2 internal prototype to avoid an error. */
14017#ifdef __cplusplus
14018extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014019{
John Criswell7a73b802003-06-30 21:59:07 +000014020#endif
14021/* We use char because int might match the return type of a gcc2
14022 builtin and then its argument prototype would still apply. */
14023char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014024/* The GNU C library defines this for functions which it implements
14025 to always fail with ENOSYS. Some functions are actually named
14026 something starting with __ and the normal name is an alias. */
14027#if defined (__stub_shl_load) || defined (__stub___shl_load)
14028choke me
14029#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014030char (*f) () = shl_load;
14031#endif
14032#ifdef __cplusplus
14033}
John Criswell7a73b802003-06-30 21:59:07 +000014034#endif
14035
John Criswell0c38eaf2003-09-10 15:17:25 +000014036int
14037main ()
14038{
14039return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014040 ;
14041 return 0;
14042}
14043_ACEOF
14044rm -f conftest.$ac_objext conftest$ac_exeext
14045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014046 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014048 grep -v '^ *+' conftest.er1 >conftest.err
14049 rm -f conftest.er1
14050 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014053 { ac_try='test -z "$ac_c_werror_flag"
14054 || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_func_shl_load=yes
14067else
14068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014069sed 's/^/| /' conftest.$ac_ext >&5
14070
John Criswell7a73b802003-06-30 21:59:07 +000014071ac_cv_func_shl_load=no
14072fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014073rm -f conftest.err conftest.$ac_objext \
14074 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014075fi
14076echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14077echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14078if test $ac_cv_func_shl_load = yes; then
14079 lt_cv_dlopen="shl_load"
14080else
14081 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14082echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14083if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085else
14086 ac_check_lib_save_LIBS=$LIBS
14087LIBS="-ldld $LIBS"
14088cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014089/* confdefs.h. */
14090_ACEOF
14091cat confdefs.h >>conftest.$ac_ext
14092cat >>conftest.$ac_ext <<_ACEOF
14093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014094
14095/* Override any gcc2 internal prototype to avoid an error. */
14096#ifdef __cplusplus
14097extern "C"
14098#endif
14099/* We use char because int might match the return type of a gcc2
14100 builtin and then its argument prototype would still apply. */
14101char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014102int
14103main ()
14104{
14105shl_load ();
14106 ;
14107 return 0;
14108}
14109_ACEOF
14110rm -f conftest.$ac_objext conftest$ac_exeext
14111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014112 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014114 grep -v '^ *+' conftest.er1 >conftest.err
14115 rm -f conftest.er1
14116 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014119 { ac_try='test -z "$ac_c_werror_flag"
14120 || test ! -s conftest.err'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014127 { (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); }; }; then
14132 ac_cv_lib_dld_shl_load=yes
14133else
14134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014135sed 's/^/| /' conftest.$ac_ext >&5
14136
John Criswell7a73b802003-06-30 21:59:07 +000014137ac_cv_lib_dld_shl_load=no
14138fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014139rm -f conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014141LIBS=$ac_check_lib_save_LIBS
14142fi
14143echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14144echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14145if test $ac_cv_lib_dld_shl_load = yes; then
14146 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14147else
14148 echo "$as_me:$LINENO: checking for dlopen" >&5
14149echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14150if test "${ac_cv_func_dlopen+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152else
14153 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014154/* confdefs.h. */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
14158/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014159/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14161#define dlopen innocuous_dlopen
14162
John Criswell7a73b802003-06-30 21:59:07 +000014163/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014164 which can conflict with char dlopen (); below.
14165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14166 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014167
John Criswell0c38eaf2003-09-10 15:17:25 +000014168#ifdef __STDC__
14169# include <limits.h>
14170#else
14171# include <assert.h>
14172#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014173
14174#undef dlopen
14175
John Criswell7a73b802003-06-30 21:59:07 +000014176/* Override any gcc2 internal prototype to avoid an error. */
14177#ifdef __cplusplus
14178extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014179{
John Criswell7a73b802003-06-30 21:59:07 +000014180#endif
14181/* We use char because int might match the return type of a gcc2
14182 builtin and then its argument prototype would still apply. */
14183char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014184/* The GNU C library defines this for functions which it implements
14185 to always fail with ENOSYS. Some functions are actually named
14186 something starting with __ and the normal name is an alias. */
14187#if defined (__stub_dlopen) || defined (__stub___dlopen)
14188choke me
14189#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014190char (*f) () = dlopen;
14191#endif
14192#ifdef __cplusplus
14193}
John Criswell7a73b802003-06-30 21:59:07 +000014194#endif
14195
John Criswell0c38eaf2003-09-10 15:17:25 +000014196int
14197main ()
14198{
14199return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014200 ;
14201 return 0;
14202}
14203_ACEOF
14204rm -f conftest.$ac_objext conftest$ac_exeext
14205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014206 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014207 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014208 grep -v '^ *+' conftest.er1 >conftest.err
14209 rm -f conftest.er1
14210 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014213 { ac_try='test -z "$ac_c_werror_flag"
14214 || test ! -s conftest.err'
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; } &&
14220 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_cv_func_dlopen=yes
14227else
14228 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014229sed 's/^/| /' conftest.$ac_ext >&5
14230
John Criswell7a73b802003-06-30 21:59:07 +000014231ac_cv_func_dlopen=no
14232fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014233rm -f conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014235fi
14236echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14237echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14238if test $ac_cv_func_dlopen = yes; then
14239 lt_cv_dlopen="dlopen"
14240else
14241 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14242echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14243if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14245else
14246 ac_check_lib_save_LIBS=$LIBS
14247LIBS="-ldl $LIBS"
14248cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014249/* confdefs.h. */
14250_ACEOF
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
14253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014254
14255/* Override any gcc2 internal prototype to avoid an error. */
14256#ifdef __cplusplus
14257extern "C"
14258#endif
14259/* We use char because int might match the return type of a gcc2
14260 builtin and then its argument prototype would still apply. */
14261char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014262int
14263main ()
14264{
14265dlopen ();
14266 ;
14267 return 0;
14268}
14269_ACEOF
14270rm -f conftest.$ac_objext conftest$ac_exeext
14271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014272 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014279 { ac_try='test -z "$ac_c_werror_flag"
14280 || test ! -s conftest.err'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_lib_dl_dlopen=yes
14293else
14294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014295sed 's/^/| /' conftest.$ac_ext >&5
14296
John Criswell7a73b802003-06-30 21:59:07 +000014297ac_cv_lib_dl_dlopen=no
14298fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014299rm -f conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014301LIBS=$ac_check_lib_save_LIBS
14302fi
14303echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14304echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14305if test $ac_cv_lib_dl_dlopen = yes; then
14306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14307else
14308 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14309echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14310if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14312else
14313 ac_check_lib_save_LIBS=$LIBS
14314LIBS="-lsvld $LIBS"
14315cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014316/* confdefs.h. */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
14320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014321
14322/* Override any gcc2 internal prototype to avoid an error. */
14323#ifdef __cplusplus
14324extern "C"
14325#endif
14326/* We use char because int might match the return type of a gcc2
14327 builtin and then its argument prototype would still apply. */
14328char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014329int
14330main ()
14331{
14332dlopen ();
14333 ;
14334 return 0;
14335}
14336_ACEOF
14337rm -f conftest.$ac_objext conftest$ac_exeext
14338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014339 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014346 { ac_try='test -z "$ac_c_werror_flag"
14347 || test ! -s conftest.err'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ac_cv_lib_svld_dlopen=yes
14360else
14361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014362sed 's/^/| /' conftest.$ac_ext >&5
14363
John Criswell7a73b802003-06-30 21:59:07 +000014364ac_cv_lib_svld_dlopen=no
14365fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014366rm -f conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014368LIBS=$ac_check_lib_save_LIBS
14369fi
14370echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14371echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14372if test $ac_cv_lib_svld_dlopen = yes; then
14373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14374else
14375 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14376echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14377if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379else
14380 ac_check_lib_save_LIBS=$LIBS
14381LIBS="-ldld $LIBS"
14382cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014383/* confdefs.h. */
14384_ACEOF
14385cat confdefs.h >>conftest.$ac_ext
14386cat >>conftest.$ac_ext <<_ACEOF
14387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014388
14389/* Override any gcc2 internal prototype to avoid an error. */
14390#ifdef __cplusplus
14391extern "C"
14392#endif
14393/* We use char because int might match the return type of a gcc2
14394 builtin and then its argument prototype would still apply. */
14395char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014396int
14397main ()
14398{
14399dld_link ();
14400 ;
14401 return 0;
14402}
14403_ACEOF
14404rm -f conftest.$ac_objext conftest$ac_exeext
14405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014406 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014407 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014413 { ac_try='test -z "$ac_c_werror_flag"
14414 || test ! -s conftest.err'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 ac_cv_lib_dld_dld_link=yes
14427else
14428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014429sed 's/^/| /' conftest.$ac_ext >&5
14430
John Criswell7a73b802003-06-30 21:59:07 +000014431ac_cv_lib_dld_dld_link=no
14432fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014433rm -f conftest.err conftest.$ac_objext \
14434 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014435LIBS=$ac_check_lib_save_LIBS
14436fi
14437echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14438echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14439if test $ac_cv_lib_dld_dld_link = yes; then
14440 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14441fi
14442
14443
14444fi
14445
14446
14447fi
14448
14449
14450fi
14451
14452
14453fi
14454
14455
14456fi
14457
14458 ;;
14459 esac
14460
14461 if test "x$lt_cv_dlopen" != xno; then
14462 enable_dlopen=yes
14463 else
14464 enable_dlopen=no
14465 fi
14466
14467 case $lt_cv_dlopen in
14468 dlopen)
14469 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014470 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014471
14472 save_LDFLAGS="$LDFLAGS"
14473 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14474
14475 save_LIBS="$LIBS"
14476 LIBS="$lt_cv_dlopen_libs $LIBS"
14477
14478 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14479echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14480if test "${lt_cv_dlopen_self+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14482else
14483 if test "$cross_compiling" = yes; then :
14484 lt_cv_dlopen_self=cross
14485else
John Criswell47fdd832003-07-14 16:52:07 +000014486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014487 lt_status=$lt_dlunknown
14488 cat > conftest.$ac_ext <<EOF
Reid Spencerc28ccd82006-04-09 20:42:14 +000014489#line 14489 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014490#include "confdefs.h"
14491
14492#if HAVE_DLFCN_H
14493#include <dlfcn.h>
14494#endif
14495
14496#include <stdio.h>
14497
14498#ifdef RTLD_GLOBAL
14499# define LT_DLGLOBAL RTLD_GLOBAL
14500#else
14501# ifdef DL_GLOBAL
14502# define LT_DLGLOBAL DL_GLOBAL
14503# else
14504# define LT_DLGLOBAL 0
14505# endif
14506#endif
14507
14508/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14509 find out it does not work in some platform. */
14510#ifndef LT_DLLAZY_OR_NOW
14511# ifdef RTLD_LAZY
14512# define LT_DLLAZY_OR_NOW RTLD_LAZY
14513# else
14514# ifdef DL_LAZY
14515# define LT_DLLAZY_OR_NOW DL_LAZY
14516# else
14517# ifdef RTLD_NOW
14518# define LT_DLLAZY_OR_NOW RTLD_NOW
14519# else
14520# ifdef DL_NOW
14521# define LT_DLLAZY_OR_NOW DL_NOW
14522# else
14523# define LT_DLLAZY_OR_NOW 0
14524# endif
14525# endif
14526# endif
14527# endif
14528#endif
14529
14530#ifdef __cplusplus
14531extern "C" void exit (int);
14532#endif
14533
14534void fnord() { int i=42;}
14535int main ()
14536{
14537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14538 int status = $lt_dlunknown;
14539
14540 if (self)
14541 {
14542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14544 /* dlclose (self); */
14545 }
14546
14547 exit (status);
14548}
14549EOF
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14555 (./conftest; exit; ) 2>/dev/null
14556 lt_status=$?
14557 case x$lt_status in
14558 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14559 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14560 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14561 esac
14562 else :
14563 # compilation failed
14564 lt_cv_dlopen_self=no
14565 fi
14566fi
14567rm -fr conftest*
14568
14569
14570fi
14571echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14572echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14573
14574 if test "x$lt_cv_dlopen_self" = xyes; then
14575 LDFLAGS="$LDFLAGS $link_static_flag"
14576 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14577echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14578if test "${lt_cv_dlopen_self_static+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580else
14581 if test "$cross_compiling" = yes; then :
14582 lt_cv_dlopen_self_static=cross
14583else
John Criswell47fdd832003-07-14 16:52:07 +000014584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014585 lt_status=$lt_dlunknown
14586 cat > conftest.$ac_ext <<EOF
Reid Spencerc28ccd82006-04-09 20:42:14 +000014587#line 14587 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014588#include "confdefs.h"
14589
14590#if HAVE_DLFCN_H
14591#include <dlfcn.h>
14592#endif
14593
14594#include <stdio.h>
14595
14596#ifdef RTLD_GLOBAL
14597# define LT_DLGLOBAL RTLD_GLOBAL
14598#else
14599# ifdef DL_GLOBAL
14600# define LT_DLGLOBAL DL_GLOBAL
14601# else
14602# define LT_DLGLOBAL 0
14603# endif
14604#endif
14605
14606/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14607 find out it does not work in some platform. */
14608#ifndef LT_DLLAZY_OR_NOW
14609# ifdef RTLD_LAZY
14610# define LT_DLLAZY_OR_NOW RTLD_LAZY
14611# else
14612# ifdef DL_LAZY
14613# define LT_DLLAZY_OR_NOW DL_LAZY
14614# else
14615# ifdef RTLD_NOW
14616# define LT_DLLAZY_OR_NOW RTLD_NOW
14617# else
14618# ifdef DL_NOW
14619# define LT_DLLAZY_OR_NOW DL_NOW
14620# else
14621# define LT_DLLAZY_OR_NOW 0
14622# endif
14623# endif
14624# endif
14625# endif
14626#endif
14627
14628#ifdef __cplusplus
14629extern "C" void exit (int);
14630#endif
14631
14632void fnord() { int i=42;}
14633int main ()
14634{
14635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14636 int status = $lt_dlunknown;
14637
14638 if (self)
14639 {
14640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14641 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14642 /* dlclose (self); */
14643 }
14644
14645 exit (status);
14646}
14647EOF
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14653 (./conftest; exit; ) 2>/dev/null
14654 lt_status=$?
14655 case x$lt_status in
14656 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14657 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14658 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14659 esac
14660 else :
14661 # compilation failed
14662 lt_cv_dlopen_self_static=no
14663 fi
14664fi
14665rm -fr conftest*
14666
14667
14668fi
14669echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14670echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14671 fi
14672
14673 CPPFLAGS="$save_CPPFLAGS"
14674 LDFLAGS="$save_LDFLAGS"
14675 LIBS="$save_LIBS"
14676 ;;
14677 esac
14678
14679 case $lt_cv_dlopen_self in
14680 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14681 *) enable_dlopen_self=unknown ;;
14682 esac
14683
14684 case $lt_cv_dlopen_self_static in
14685 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14686 *) enable_dlopen_self_static=unknown ;;
14687 esac
14688fi
14689
14690
John Criswell47fdd832003-07-14 16:52:07 +000014691# Report which librarie types wil actually be built
14692echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14693echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14694echo "$as_me:$LINENO: result: $can_build_shared" >&5
14695echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014696
John Criswell47fdd832003-07-14 16:52:07 +000014697echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14698echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14699test "$can_build_shared" = "no" && enable_shared=no
14700
14701# On AIX, shared libraries and static libraries use the same namespace, and
14702# are all built from PIC.
14703case "$host_os" in
14704aix3*)
14705 test "$enable_shared" = yes && enable_static=no
14706 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014708 postinstall_cmds='$RANLIB $lib'
14709 fi
14710 ;;
14711
Reid Spencer2706f8c2004-09-19 23:53:36 +000014712aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014713 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14714 test "$enable_shared" = yes && enable_static=no
14715 fi
John Criswell7a73b802003-06-30 21:59:07 +000014716 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014717esac
14718echo "$as_me:$LINENO: result: $enable_shared" >&5
14719echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014720
John Criswell47fdd832003-07-14 16:52:07 +000014721echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14722echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14723# Make sure either enable_shared or enable_static is yes.
14724test "$enable_shared" = yes || enable_static=yes
14725echo "$as_me:$LINENO: result: $enable_static" >&5
14726echo "${ECHO_T}$enable_static" >&6
14727
14728# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014729# libtool distribution, otherwise you forgot to ship ltmain.sh
14730# with your package, and you will get complaints that there are
14731# no rules to generate ltmain.sh.
14732if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014733 # See if we are running on zsh, and set the options which allow our commands through
14734 # without removal of \ escapes.
14735 if test -n "${ZSH_VERSION+set}" ; then
14736 setopt NO_GLOB_SUBST
14737 fi
John Criswell7a73b802003-06-30 21:59:07 +000014738 # Now quote all the things that may contain metacharacters while being
14739 # careful not to overquote the AC_SUBSTed values. We take copies of the
14740 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14742 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014743 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14744 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14745 deplibs_check_method reload_flag reload_cmds need_locks \
14746 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14747 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014748 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014749 old_postinstall_cmds old_postuninstall_cmds \
14750 compiler \
14751 CC \
14752 LD \
14753 lt_prog_compiler_wl \
14754 lt_prog_compiler_pic \
14755 lt_prog_compiler_static \
14756 lt_prog_compiler_no_builtin_flag \
14757 export_dynamic_flag_spec \
14758 thread_safe_flag_spec \
14759 whole_archive_flag_spec \
14760 enable_shared_with_static_runtimes \
14761 old_archive_cmds \
14762 old_archive_from_new_cmds \
14763 predep_objects \
14764 postdep_objects \
14765 predeps \
14766 postdeps \
14767 compiler_lib_search_path \
14768 archive_cmds \
14769 archive_expsym_cmds \
14770 postinstall_cmds \
14771 postuninstall_cmds \
14772 old_archive_from_expsyms_cmds \
14773 allow_undefined_flag \
14774 no_undefined_flag \
14775 export_symbols_cmds \
14776 hardcode_libdir_flag_spec \
14777 hardcode_libdir_flag_spec_ld \
14778 hardcode_libdir_separator \
14779 hardcode_automatic \
14780 module_cmds \
14781 module_expsym_cmds \
14782 lt_cv_prog_compiler_c_o \
14783 exclude_expsyms \
14784 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014785
14786 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014787 old_archive_cmds | \
14788 old_archive_from_new_cmds | \
14789 archive_cmds | \
14790 archive_expsym_cmds | \
14791 module_cmds | \
14792 module_expsym_cmds | \
14793 old_archive_from_expsyms_cmds | \
14794 export_symbols_cmds | \
14795 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014796 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014797 old_postinstall_cmds | old_postuninstall_cmds | \
14798 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014799 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014800 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 +000014801 ;;
14802 *)
14803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14804 ;;
14805 esac
14806 done
14807
John Criswell47fdd832003-07-14 16:52:07 +000014808 case $lt_echo in
14809 *'\$0 --fallback-echo"')
14810 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14811 ;;
14812 esac
14813
14814cfgfile="${ofile}T"
14815 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14816 $rm -f "$cfgfile"
14817 { echo "$as_me:$LINENO: creating $ofile" >&5
14818echo "$as_me: creating $ofile" >&6;}
14819
14820 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014821#! $SHELL
14822
John Criswell47fdd832003-07-14 16:52:07 +000014823# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014824# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14825# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14826#
John Criswell47fdd832003-07-14 16:52:07 +000014827# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14828# Free Software Foundation, Inc.
14829#
14830# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014831# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14832#
14833# This program is free software; you can redistribute it and/or modify
14834# it under the terms of the GNU General Public License as published by
14835# the Free Software Foundation; either version 2 of the License, or
14836# (at your option) any later version.
14837#
14838# This program is distributed in the hope that it will be useful, but
14839# WITHOUT ANY WARRANTY; without even the implied warranty of
14840# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14841# General Public License for more details.
14842#
14843# You should have received a copy of the GNU General Public License
14844# along with this program; if not, write to the Free Software
14845# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14846#
14847# As a special exception to the GNU General Public License, if you
14848# distribute this file as part of a program that contains a
14849# configuration script generated by Autoconf, you may include it under
14850# the same distribution terms that you use for the rest of that program.
14851
John Criswell47fdd832003-07-14 16:52:07 +000014852# A sed program that does not truncate output.
14853SED=$lt_SED
14854
John Criswell7a73b802003-06-30 21:59:07 +000014855# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014856Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014857
14858# The HP-UX ksh and POSIX shell print the target directory to stdout
14859# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014860(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014861
John Criswell47fdd832003-07-14 16:52:07 +000014862# The names of the tagged configurations supported by this script.
14863available_tags=
14864
John Criswell7a73b802003-06-30 21:59:07 +000014865# ### BEGIN LIBTOOL CONFIG
14866
14867# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14868
14869# Shell to use when invoking shell scripts.
14870SHELL=$lt_SHELL
14871
14872# Whether or not to build shared libraries.
14873build_libtool_libs=$enable_shared
14874
14875# Whether or not to build static libraries.
14876build_old_libs=$enable_static
14877
14878# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014879build_libtool_need_lc=$archive_cmds_need_lc
14880
14881# Whether or not to disallow shared libs when runtime libs are static
14882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014883
14884# Whether or not to optimize for fast installation.
14885fast_install=$enable_fast_install
14886
14887# The host system.
14888host_alias=$host_alias
14889host=$host
14890
14891# An echo program that does not interpret backslashes.
14892echo=$lt_echo
14893
14894# The archiver.
14895AR=$lt_AR
14896AR_FLAGS=$lt_AR_FLAGS
14897
John Criswell47fdd832003-07-14 16:52:07 +000014898# A C compiler.
14899LTCC=$lt_LTCC
14900
14901# A language-specific compiler.
14902CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014903
14904# Is the compiler the GNU C compiler?
14905with_gcc=$GCC
14906
John Criswell47fdd832003-07-14 16:52:07 +000014907# An ERE matcher.
14908EGREP=$lt_EGREP
14909
John Criswell7a73b802003-06-30 21:59:07 +000014910# The linker used to build libraries.
14911LD=$lt_LD
14912
14913# Whether we need hard or soft links.
14914LN_S=$lt_LN_S
14915
14916# A BSD-compatible nm program.
14917NM=$lt_NM
14918
14919# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014920STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014921
14922# Used to examine libraries when file_magic_cmd begins "file"
14923MAGIC_CMD=$MAGIC_CMD
14924
14925# Used on cygwin: DLL creation program.
14926DLLTOOL="$DLLTOOL"
14927
14928# Used on cygwin: object dumper.
14929OBJDUMP="$OBJDUMP"
14930
14931# Used on cygwin: assembler.
14932AS="$AS"
14933
14934# The name of the directory that contains temporary libtool files.
14935objdir=$objdir
14936
14937# How to create reloadable object files.
14938reload_flag=$lt_reload_flag
14939reload_cmds=$lt_reload_cmds
14940
14941# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014942wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014943
14944# Object file suffix (normally "o").
14945objext="$ac_objext"
14946
14947# Old archive suffix (normally "a").
14948libext="$libext"
14949
John Criswell47fdd832003-07-14 16:52:07 +000014950# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014951shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014952
John Criswell7a73b802003-06-30 21:59:07 +000014953# Executable file suffix (normally "").
14954exeext="$exeext"
14955
14956# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014957pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014958pic_mode=$pic_mode
14959
John Criswell47fdd832003-07-14 16:52:07 +000014960# What is the maximum length of a command?
14961max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014962
John Criswell47fdd832003-07-14 16:52:07 +000014963# Does compiler simultaneously support -c and -o options?
14964compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014965
14966# Must we lock files when doing compilation ?
14967need_locks=$lt_need_locks
14968
14969# Do we need the lib prefix for modules?
14970need_lib_prefix=$need_lib_prefix
14971
14972# Do we need a version for libraries?
14973need_version=$need_version
14974
14975# Whether dlopen is supported.
14976dlopen_support=$enable_dlopen
14977
14978# Whether dlopen of programs is supported.
14979dlopen_self=$enable_dlopen_self
14980
14981# Whether dlopen of statically linked programs is supported.
14982dlopen_self_static=$enable_dlopen_self_static
14983
14984# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014985link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014986
14987# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014988no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014989
14990# Compiler flag to allow reflexive dlopens.
14991export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14992
14993# Compiler flag to generate shared objects directly from archives.
14994whole_archive_flag_spec=$lt_whole_archive_flag_spec
14995
14996# Compiler flag to generate thread-safe objects.
14997thread_safe_flag_spec=$lt_thread_safe_flag_spec
14998
14999# Library versioning type.
15000version_type=$version_type
15001
15002# Format of library name prefix.
15003libname_spec=$lt_libname_spec
15004
15005# List of archive names. First name is the real one, the rest are links.
15006# The last name is the one that the linker finds with -lNAME.
15007library_names_spec=$lt_library_names_spec
15008
15009# The coded name of the library, if different from the real name.
15010soname_spec=$lt_soname_spec
15011
15012# Commands used to build and install an old-style archive.
15013RANLIB=$lt_RANLIB
15014old_archive_cmds=$lt_old_archive_cmds
15015old_postinstall_cmds=$lt_old_postinstall_cmds
15016old_postuninstall_cmds=$lt_old_postuninstall_cmds
15017
15018# Create an old-style archive from a shared archive.
15019old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15020
15021# Create a temporary old-style archive to link instead of a shared archive.
15022old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15023
15024# Commands used to build and install a shared archive.
15025archive_cmds=$lt_archive_cmds
15026archive_expsym_cmds=$lt_archive_expsym_cmds
15027postinstall_cmds=$lt_postinstall_cmds
15028postuninstall_cmds=$lt_postuninstall_cmds
15029
John Criswell47fdd832003-07-14 16:52:07 +000015030# Commands used to build a loadable module (assumed same as above if empty)
15031module_cmds=$lt_module_cmds
15032module_expsym_cmds=$lt_module_expsym_cmds
15033
John Criswell7a73b802003-06-30 21:59:07 +000015034# Commands to strip libraries.
15035old_striplib=$lt_old_striplib
15036striplib=$lt_striplib
15037
John Criswell47fdd832003-07-14 16:52:07 +000015038# Dependencies to place before the objects being linked to create a
15039# shared library.
15040predep_objects=$lt_predep_objects
15041
15042# Dependencies to place after the objects being linked to create a
15043# shared library.
15044postdep_objects=$lt_postdep_objects
15045
15046# Dependencies to place before the objects being linked to create a
15047# shared library.
15048predeps=$lt_predeps
15049
15050# Dependencies to place after the objects being linked to create a
15051# shared library.
15052postdeps=$lt_postdeps
15053
15054# The library search path used internally by the compiler when linking
15055# a shared library.
15056compiler_lib_search_path=$lt_compiler_lib_search_path
15057
John Criswell7a73b802003-06-30 21:59:07 +000015058# Method to check whether dependent libraries are shared objects.
15059deplibs_check_method=$lt_deplibs_check_method
15060
15061# Command to use when deplibs_check_method == file_magic.
15062file_magic_cmd=$lt_file_magic_cmd
15063
15064# Flag that allows shared libraries with undefined symbols to be built.
15065allow_undefined_flag=$lt_allow_undefined_flag
15066
15067# Flag that forces no undefined symbols.
15068no_undefined_flag=$lt_no_undefined_flag
15069
15070# Commands used to finish a libtool library installation in a directory.
15071finish_cmds=$lt_finish_cmds
15072
15073# Same as above, but a single script fragment to be evaled but not shown.
15074finish_eval=$lt_finish_eval
15075
15076# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015077global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015078
15079# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015080global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015081
15082# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015083global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015084
15085# This is the shared library runtime path variable.
15086runpath_var=$runpath_var
15087
15088# This is the shared library path variable.
15089shlibpath_var=$shlibpath_var
15090
15091# Is shlibpath searched before the hard-coded library search path?
15092shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15093
15094# How to hardcode a shared library path into an executable.
15095hardcode_action=$hardcode_action
15096
15097# Whether we should hardcode library paths into libraries.
15098hardcode_into_libs=$hardcode_into_libs
15099
15100# Flag to hardcode \$libdir into a binary during linking.
15101# This must work even if \$libdir does not exist.
15102hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15103
John Criswell47fdd832003-07-14 16:52:07 +000015104# If ld is used when linking, flag to hardcode \$libdir into
15105# a binary during linking. This must work even if \$libdir does
15106# not exist.
15107hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15108
John Criswell7a73b802003-06-30 21:59:07 +000015109# Whether we need a single -rpath flag with a separated argument.
15110hardcode_libdir_separator=$lt_hardcode_libdir_separator
15111
John Criswell47fdd832003-07-14 16:52:07 +000015112# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015113# resulting binary.
15114hardcode_direct=$hardcode_direct
15115
15116# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15117# resulting binary.
15118hardcode_minus_L=$hardcode_minus_L
15119
15120# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15121# the resulting binary.
15122hardcode_shlibpath_var=$hardcode_shlibpath_var
15123
John Criswell47fdd832003-07-14 16:52:07 +000015124# Set to yes if building a shared library automatically hardcodes DIR into the library
15125# and all subsequent libraries and executables linked against it.
15126hardcode_automatic=$hardcode_automatic
15127
John Criswell7a73b802003-06-30 21:59:07 +000015128# Variables whose values should be saved in libtool wrapper scripts and
15129# restored at relink time.
15130variables_saved_for_relink="$variables_saved_for_relink"
15131
15132# Whether libtool must link a program against all its dependency libraries.
15133link_all_deplibs=$link_all_deplibs
15134
15135# Compile-time system search path for libraries
15136sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15137
15138# Run-time system search path for libraries
15139sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15140
15141# Fix the shell variable \$srcfile for the compiler.
15142fix_srcfile_path="$fix_srcfile_path"
15143
15144# Set to yes if exported symbols are required.
15145always_export_symbols=$always_export_symbols
15146
15147# The commands to list exported symbols.
15148export_symbols_cmds=$lt_export_symbols_cmds
15149
15150# The commands to extract the exported symbol list from a shared archive.
15151extract_expsyms_cmds=$lt_extract_expsyms_cmds
15152
15153# Symbols that should not be listed in the preloaded symbols.
15154exclude_expsyms=$lt_exclude_expsyms
15155
15156# Symbols that must always be exported.
15157include_expsyms=$lt_include_expsyms
15158
15159# ### END LIBTOOL CONFIG
15160
15161__EOF__
15162
John Criswell47fdd832003-07-14 16:52:07 +000015163
John Criswell7a73b802003-06-30 21:59:07 +000015164 case $host_os in
15165 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015166 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015167
15168# AIX sometimes has problems with the GCC collect2 program. For some
15169# reason, if we set the COLLECT_NAMES environment variable, the problems
15170# vanish in a puff of smoke.
15171if test "X${COLLECT_NAMES+set}" != Xset; then
15172 COLLECT_NAMES=
15173 export COLLECT_NAMES
15174fi
15175EOF
15176 ;;
15177 esac
15178
John Criswell7a73b802003-06-30 21:59:07 +000015179 # We use sed instead of cat because bash on DJGPP gets confused if
15180 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15181 # text mode, it properly converts lines to CR/LF. This bash problem
15182 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015183 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015184
John Criswell47fdd832003-07-14 16:52:07 +000015185 mv -f "$cfgfile" "$ofile" || \
15186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015187 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015188
15189else
15190 # If there is no Makefile yet, we rely on a make rule to execute
15191 # `config.status --recheck' to rerun these tests and create the
15192 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15194 if test -f "$ltmain_in"; then
15195 test -f Makefile && make "$ltmain"
15196 fi
John Criswell7a73b802003-06-30 21:59:07 +000015197fi
John Criswell7a73b802003-06-30 21:59:07 +000015198
15199
John Criswell47fdd832003-07-14 16:52:07 +000015200ac_ext=c
15201ac_cpp='$CPP $CPPFLAGS'
15202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204ac_compiler_gnu=$ac_cv_c_compiler_gnu
15205
15206CC="$lt_save_CC"
15207
15208
15209# Check whether --with-tags or --without-tags was given.
15210if test "${with_tags+set}" = set; then
15211 withval="$with_tags"
15212 tagnames="$withval"
15213fi;
15214
15215if test -f "$ltmain" && test -n "$tagnames"; then
15216 if test ! -f "${ofile}"; then
15217 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15218echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15219 fi
15220
15221 if test -z "$LTCC"; then
15222 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15223 if test -z "$LTCC"; then
15224 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15225echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15226 else
15227 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15228echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15229 fi
15230 fi
15231
15232 # Extract list of available tagged configurations in $ofile.
15233 # Note that this assumes the entire list is on one line.
15234 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15235
15236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15237 for tagname in $tagnames; do
15238 IFS="$lt_save_ifs"
15239 # Check whether tagname contains only valid characters
15240 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15241 "") ;;
15242 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15243echo "$as_me: error: invalid tag name: $tagname" >&2;}
15244 { (exit 1); exit 1; }; }
15245 ;;
15246 esac
15247
15248 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15249 then
15250 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15251echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15252 { (exit 1); exit 1; }; }
15253 fi
15254
15255 # Update the list of available tags.
15256 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015257 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015258
15259 case $tagname in
15260 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015261 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15263 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015264 ac_ext=cc
15265ac_cpp='$CXXCPP $CPPFLAGS'
15266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15269
15270
15271
15272
15273archive_cmds_need_lc_CXX=no
15274allow_undefined_flag_CXX=
15275always_export_symbols_CXX=no
15276archive_expsym_cmds_CXX=
15277export_dynamic_flag_spec_CXX=
15278hardcode_direct_CXX=no
15279hardcode_libdir_flag_spec_CXX=
15280hardcode_libdir_flag_spec_ld_CXX=
15281hardcode_libdir_separator_CXX=
15282hardcode_minus_L_CXX=no
15283hardcode_automatic_CXX=no
15284module_cmds_CXX=
15285module_expsym_cmds_CXX=
15286link_all_deplibs_CXX=unknown
15287old_archive_cmds_CXX=$old_archive_cmds
15288no_undefined_flag_CXX=
15289whole_archive_flag_spec_CXX=
15290enable_shared_with_static_runtimes_CXX=no
15291
15292# Dependencies to place before and after the object being linked:
15293predep_objects_CXX=
15294postdep_objects_CXX=
15295predeps_CXX=
15296postdeps_CXX=
15297compiler_lib_search_path_CXX=
15298
15299# Source file extension for C++ test sources.
15300ac_ext=cc
15301
15302# Object file extension for compiled C++ test sources.
15303objext=o
15304objext_CXX=$objext
15305
15306# Code to be used in simple compile tests
15307lt_simple_compile_test_code="int some_variable = 0;\n"
15308
15309# Code to be used in simple link tests
15310lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15311
15312# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15313
15314# If no C compiler was specified, use CC.
15315LTCC=${LTCC-"$CC"}
15316
15317# Allow CC to be a program name with arguments.
15318compiler=$CC
15319
15320
15321# Allow CC to be a program name with arguments.
15322lt_save_CC=$CC
15323lt_save_LD=$LD
15324lt_save_GCC=$GCC
15325GCC=$GXX
15326lt_save_with_gnu_ld=$with_gnu_ld
15327lt_save_path_LD=$lt_cv_path_LD
15328if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15329 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15330else
15331 unset lt_cv_prog_gnu_ld
15332fi
15333if test -n "${lt_cv_path_LDCXX+set}"; then
15334 lt_cv_path_LD=$lt_cv_path_LDCXX
15335else
15336 unset lt_cv_path_LD
15337fi
15338test -z "${LDCXX+set}" || LD=$LDCXX
15339CC=${CXX-"c++"}
15340compiler=$CC
15341compiler_CXX=$CC
15342cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15343
15344# We don't want -fno-exception wen compiling C++ code, so set the
15345# no_builtin_flag separately
15346if test "$GXX" = yes; then
15347 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15348else
15349 lt_prog_compiler_no_builtin_flag_CXX=
15350fi
15351
15352if test "$GXX" = yes; then
15353 # Set up default GNU C++ configuration
15354
15355
15356# Check whether --with-gnu-ld or --without-gnu-ld was given.
15357if test "${with_gnu_ld+set}" = set; then
15358 withval="$with_gnu_ld"
15359 test "$withval" = no || with_gnu_ld=yes
15360else
15361 with_gnu_ld=no
15362fi;
15363ac_prog=ld
15364if test "$GCC" = yes; then
15365 # Check if gcc -print-prog-name=ld gives a path.
15366 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15367echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15368 case $host in
15369 *-*-mingw*)
15370 # gcc leaves a trailing carriage return which upsets mingw
15371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15372 *)
15373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15374 esac
15375 case $ac_prog in
15376 # Accept absolute paths.
15377 [\\/]* | ?:[\\/]*)
15378 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015379 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015380 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15381 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15382 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15383 done
15384 test -z "$LD" && LD="$ac_prog"
15385 ;;
15386 "")
15387 # If it fails, then pretend we aren't using GCC.
15388 ac_prog=ld
15389 ;;
15390 *)
15391 # If it is relative, then search for the first ld in PATH.
15392 with_gnu_ld=unknown
15393 ;;
15394 esac
15395elif test "$with_gnu_ld" = yes; then
15396 echo "$as_me:$LINENO: checking for GNU ld" >&5
15397echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15398else
15399 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15400echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15401fi
15402if test "${lt_cv_path_LD+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15404else
15405 if test -z "$LD"; then
15406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15407 for ac_dir in $PATH; do
15408 IFS="$lt_save_ifs"
15409 test -z "$ac_dir" && ac_dir=.
15410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15411 lt_cv_path_LD="$ac_dir/$ac_prog"
15412 # Check to see if the program is GNU ld. I'd rather use --version,
15413 # but apparently some GNU ld's only accept -v.
15414 # Break only if it was the GNU/non-GNU ld that we prefer.
15415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15416 *GNU* | *'with BFD'*)
15417 test "$with_gnu_ld" != no && break
15418 ;;
15419 *)
15420 test "$with_gnu_ld" != yes && break
15421 ;;
15422 esac
15423 fi
15424 done
15425 IFS="$lt_save_ifs"
15426else
15427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15428fi
15429fi
15430
15431LD="$lt_cv_path_LD"
15432if test -n "$LD"; then
15433 echo "$as_me:$LINENO: result: $LD" >&5
15434echo "${ECHO_T}$LD" >&6
15435else
15436 echo "$as_me:$LINENO: result: no" >&5
15437echo "${ECHO_T}no" >&6
15438fi
15439test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15440echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15441 { (exit 1); exit 1; }; }
15442echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15443echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15444if test "${lt_cv_prog_gnu_ld+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15446else
15447 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015448case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015449*GNU* | *'with BFD'*)
15450 lt_cv_prog_gnu_ld=yes
15451 ;;
15452*)
15453 lt_cv_prog_gnu_ld=no
15454 ;;
15455esac
15456fi
15457echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15458echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15459with_gnu_ld=$lt_cv_prog_gnu_ld
15460
15461
15462
15463 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15464 # archiving commands below assume that GNU ld is being used.
15465 if test "$with_gnu_ld" = yes; then
15466 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467 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'
15468
15469 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15470 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15471
15472 # If archive_cmds runs LD, not CC, wlarc should be empty
15473 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15474 # investigate it a little bit more. (MM)
15475 wlarc='${wl}'
15476
15477 # ancient GNU ld didn't support --whole-archive et. al.
15478 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15479 grep 'no-whole-archive' > /dev/null; then
15480 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15481 else
15482 whole_archive_flag_spec_CXX=
15483 fi
15484 else
15485 with_gnu_ld=no
15486 wlarc=
15487
15488 # A generic and very simple default shared library creation
15489 # command for GNU C++ for the case where it uses the native
15490 # linker, instead of GNU ld. If possible, this setting should
15491 # overridden to take advantage of the native linker features on
15492 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015493 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015494 fi
15495
15496 # Commands to make compiler produce verbose output that lists
15497 # what "hidden" libraries, object files and flags are used when
15498 # linking a shared library.
15499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15500
15501else
15502 GXX=no
15503 with_gnu_ld=no
15504 wlarc=
15505fi
15506
15507# PORTME: fill in a description of your system's C++ link characteristics
15508echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15509echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15510ld_shlibs_CXX=yes
15511case $host_os in
15512 aix3*)
15513 # FIXME: insert proper C++ library support
15514 ld_shlibs_CXX=no
15515 ;;
15516 aix4* | aix5*)
15517 if test "$host_cpu" = ia64; then
15518 # On IA64, the linker does run time linking by default, so we don't
15519 # have to do anything special.
15520 aix_use_runtimelinking=no
15521 exp_sym_flag='-Bexport'
15522 no_entry_flag=""
15523 else
15524 aix_use_runtimelinking=no
15525
15526 # Test if we are trying to use run time linking or normal
15527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15528 # need to do runtime linking.
15529 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15530 for ld_flag in $LDFLAGS; do
15531 case $ld_flag in
15532 *-brtl*)
15533 aix_use_runtimelinking=yes
15534 break
15535 ;;
15536 esac
15537 done
15538 esac
15539
15540 exp_sym_flag='-bexport'
15541 no_entry_flag='-bnoentry'
15542 fi
15543
15544 # When large executables or shared objects are built, AIX ld can
15545 # have problems creating the table of contents. If linking a library
15546 # or program results in "error TOC overflow" add -mminimal-toc to
15547 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15548 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15549
15550 archive_cmds_CXX=''
15551 hardcode_direct_CXX=yes
15552 hardcode_libdir_separator_CXX=':'
15553 link_all_deplibs_CXX=yes
15554
15555 if test "$GXX" = yes; then
15556 case $host_os in aix4.012|aix4.012.*)
15557 # We only want to do this on AIX 4.2 and lower, the check
15558 # below for broken collect2 doesn't work under 4.3+
15559 collect2name=`${CC} -print-prog-name=collect2`
15560 if test -f "$collect2name" && \
15561 strings "$collect2name" | grep resolve_lib_name >/dev/null
15562 then
15563 # We have reworked collect2
15564 hardcode_direct_CXX=yes
15565 else
15566 # We have old collect2
15567 hardcode_direct_CXX=unsupported
15568 # It fails to find uninstalled libraries when the uninstalled
15569 # path is not listed in the libpath. Setting hardcode_minus_L
15570 # to unsupported forces relinking
15571 hardcode_minus_L_CXX=yes
15572 hardcode_libdir_flag_spec_CXX='-L$libdir'
15573 hardcode_libdir_separator_CXX=
15574 fi
15575 esac
15576 shared_flag='-shared'
15577 else
15578 # not using gcc
15579 if test "$host_cpu" = ia64; then
15580 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15581 # chokes on -Wl,-G. The following line is correct:
15582 shared_flag='-G'
15583 else
15584 if test "$aix_use_runtimelinking" = yes; then
15585 shared_flag='${wl}-G'
15586 else
15587 shared_flag='${wl}-bM:SRE'
15588 fi
15589 fi
15590 fi
15591
15592 # It seems that -bexpall does not export symbols beginning with
15593 # underscore (_), so it is better to generate a list of symbols to export.
15594 always_export_symbols_CXX=yes
15595 if test "$aix_use_runtimelinking" = yes; then
15596 # Warning - without using the other runtime loading flags (-brtl),
15597 # -berok will link without error, but may produce a broken library.
15598 allow_undefined_flag_CXX='-berok'
15599 # Determine the default libpath from the value encoded in an empty executable.
15600 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015606
John Criswell47fdd832003-07-14 16:52:07 +000015607int
15608main ()
15609{
15610
15611 ;
15612 return 0;
15613}
15614_ACEOF
15615rm -f conftest.$ac_objext conftest$ac_exeext
15616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015617 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015624 { ac_try='test -z "$ac_cxx_werror_flag"
15625 || test ! -s conftest.err'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637
15638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15639}'`
15640# Check for a 64-bit object if we didn't find anything.
15641if 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; }
15642}'`; fi
15643else
15644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015645sed 's/^/| /' conftest.$ac_ext >&5
15646
John Criswell47fdd832003-07-14 16:52:07 +000015647fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015648rm -f conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15651
15652 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15653
15654 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"
15655 else
15656 if test "$host_cpu" = ia64; then
15657 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15658 allow_undefined_flag_CXX="-z nodefs"
15659 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"
15660 else
15661 # Determine the default libpath from the value encoded in an empty executable.
15662 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015663/* confdefs.h. */
15664_ACEOF
15665cat confdefs.h >>conftest.$ac_ext
15666cat >>conftest.$ac_ext <<_ACEOF
15667/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015668
John Criswell47fdd832003-07-14 16:52:07 +000015669int
15670main ()
15671{
15672
15673 ;
15674 return 0;
15675}
15676_ACEOF
15677rm -f conftest.$ac_objext conftest$ac_exeext
15678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015679 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015686 { ac_try='test -z "$ac_cxx_werror_flag"
15687 || test ! -s conftest.err'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15699
15700aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15701}'`
15702# Check for a 64-bit object if we didn't find anything.
15703if 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; }
15704}'`; fi
15705else
15706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015707sed 's/^/| /' conftest.$ac_ext >&5
15708
John Criswell47fdd832003-07-14 16:52:07 +000015709fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015710rm -f conftest.err conftest.$ac_objext \
15711 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015712if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15713
15714 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15715 # Warning - without using the other run time loading flags,
15716 # -berok will link without error, but may produce a broken library.
15717 no_undefined_flag_CXX=' ${wl}-bernotok'
15718 allow_undefined_flag_CXX=' ${wl}-berok'
15719 # -bexpall does not export symbols beginning with underscore (_)
15720 always_export_symbols_CXX=yes
15721 # Exported symbols can be pulled into shared objects from archives
15722 whole_archive_flag_spec_CXX=' '
15723 archive_cmds_need_lc_CXX=yes
15724 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015725 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 +000015726 fi
15727 fi
15728 ;;
15729 chorus*)
15730 case $cc_basename in
15731 *)
15732 # FIXME: insert proper C++ library support
15733 ld_shlibs_CXX=no
15734 ;;
15735 esac
15736 ;;
15737
Reid Spencer2706f8c2004-09-19 23:53:36 +000015738
John Criswell47fdd832003-07-14 16:52:07 +000015739 cygwin* | mingw* | pw32*)
15740 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15741 # as there is no search path for DLLs.
15742 hardcode_libdir_flag_spec_CXX='-L$libdir'
15743 allow_undefined_flag_CXX=unsupported
15744 always_export_symbols_CXX=no
15745 enable_shared_with_static_runtimes_CXX=yes
15746
15747 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15748 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'
15749 # If the export-symbols file already is a .def file (1st line
15750 # is EXPORTS), use it as is; otherwise, prepend...
15751 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15752 cp $export_symbols $output_objdir/$soname.def;
15753 else
15754 echo EXPORTS > $output_objdir/$soname.def;
15755 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015756 fi~
15757 $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 +000015758 else
15759 ld_shlibs_CXX=no
15760 fi
15761 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015762 darwin* | rhapsody*)
15763 case "$host_os" in
15764 rhapsody* | darwin1.[012])
15765 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15766 ;;
15767 *) # Darwin 1.3 on
15768 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15769 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15770 else
15771 case ${MACOSX_DEPLOYMENT_TARGET} in
15772 10.[012])
15773 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15774 ;;
15775 10.*)
15776 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15777 ;;
15778 esac
15779 fi
15780 ;;
15781 esac
15782 archive_cmds_need_lc_CXX=no
15783 hardcode_direct_CXX=no
15784 hardcode_automatic_CXX=yes
15785 hardcode_shlibpath_var_CXX=unsupported
15786 whole_archive_flag_spec_CXX=''
15787 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015788
Reid Spencer2706f8c2004-09-19 23:53:36 +000015789 if test "$GXX" = yes ; then
15790 lt_int_apple_cc_single_mod=no
15791 output_verbose_link_cmd='echo'
15792 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15793 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015794 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015795 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015796 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 +000015797 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015798 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 +000015799 fi
15800 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15802 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015803 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 +000015804 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015805 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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 +000015806 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015807 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 +000015808 else
15809 case "$cc_basename" in
15810 xlc*)
15811 output_verbose_link_cmd='echo'
15812 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'
15813 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15814 # 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 +000015815 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}'
15816 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 +000015817 ;;
15818 *)
15819 ld_shlibs_CXX=no
15820 ;;
15821 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015822 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015823 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015824
15825 dgux*)
15826 case $cc_basename in
15827 ec++)
15828 # FIXME: insert proper C++ library support
15829 ld_shlibs_CXX=no
15830 ;;
15831 ghcx)
15832 # Green Hills C++ Compiler
15833 # FIXME: insert proper C++ library support
15834 ld_shlibs_CXX=no
15835 ;;
15836 *)
15837 # FIXME: insert proper C++ library support
15838 ld_shlibs_CXX=no
15839 ;;
15840 esac
15841 ;;
15842 freebsd12*)
15843 # C++ shared libraries reported to be fairly broken before switch to ELF
15844 ld_shlibs_CXX=no
15845 ;;
15846 freebsd-elf*)
15847 archive_cmds_need_lc_CXX=no
15848 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015849 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015850 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15851 # conventions
15852 ld_shlibs_CXX=yes
15853 ;;
15854 gnu*)
15855 ;;
15856 hpux9*)
15857 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15858 hardcode_libdir_separator_CXX=:
15859 export_dynamic_flag_spec_CXX='${wl}-E'
15860 hardcode_direct_CXX=yes
15861 hardcode_minus_L_CXX=yes # Not in the search PATH,
15862 # but as the default
15863 # location of the library.
15864
15865 case $cc_basename in
15866 CC)
15867 # FIXME: insert proper C++ library support
15868 ld_shlibs_CXX=no
15869 ;;
15870 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015871 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 +000015872 # Commands to make compiler produce verbose output that lists
15873 # what "hidden" libraries, object files and flags are used when
15874 # linking a shared library.
15875 #
15876 # There doesn't appear to be a way to prevent this compiler from
15877 # explicitly linking system object files so we need to strip them
15878 # from the output so that they don't get included in the library
15879 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015880 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 +000015881 ;;
15882 *)
15883 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015884 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 +000015885 else
15886 # FIXME: insert proper C++ library support
15887 ld_shlibs_CXX=no
15888 fi
15889 ;;
15890 esac
15891 ;;
15892 hpux10*|hpux11*)
15893 if test $with_gnu_ld = no; then
15894 case "$host_cpu" in
15895 hppa*64*)
15896 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15897 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15898 hardcode_libdir_separator_CXX=:
15899 ;;
15900 ia64*)
15901 hardcode_libdir_flag_spec_CXX='-L$libdir'
15902 ;;
15903 *)
15904 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15905 hardcode_libdir_separator_CXX=:
15906 export_dynamic_flag_spec_CXX='${wl}-E'
15907 ;;
15908 esac
15909 fi
15910 case "$host_cpu" in
15911 hppa*64*)
15912 hardcode_direct_CXX=no
15913 hardcode_shlibpath_var_CXX=no
15914 ;;
15915 ia64*)
15916 hardcode_direct_CXX=no
15917 hardcode_shlibpath_var_CXX=no
15918 hardcode_minus_L_CXX=yes # Not in the search PATH,
15919 # but as the default
15920 # location of the library.
15921 ;;
15922 *)
15923 hardcode_direct_CXX=yes
15924 hardcode_minus_L_CXX=yes # Not in the search PATH,
15925 # but as the default
15926 # location of the library.
15927 ;;
15928 esac
15929
15930 case $cc_basename in
15931 CC)
15932 # FIXME: insert proper C++ library support
15933 ld_shlibs_CXX=no
15934 ;;
15935 aCC)
15936 case "$host_cpu" in
15937 hppa*64*|ia64*)
15938 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15939 ;;
15940 *)
15941 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15942 ;;
15943 esac
15944 # Commands to make compiler produce verbose output that lists
15945 # what "hidden" libraries, object files and flags are used when
15946 # linking a shared library.
15947 #
15948 # There doesn't appear to be a way to prevent this compiler from
15949 # explicitly linking system object files so we need to strip them
15950 # from the output so that they don't get included in the library
15951 # dependencies.
15952 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'
15953 ;;
15954 *)
15955 if test "$GXX" = yes; then
15956 if test $with_gnu_ld = no; then
15957 case "$host_cpu" in
15958 ia64*|hppa*64*)
15959 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15960 ;;
15961 *)
15962 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'
15963 ;;
15964 esac
15965 fi
15966 else
15967 # FIXME: insert proper C++ library support
15968 ld_shlibs_CXX=no
15969 fi
15970 ;;
15971 esac
15972 ;;
15973 irix5* | irix6*)
15974 case $cc_basename in
15975 CC)
15976 # SGI C++
15977 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'
15978
15979 # Archives containing C++ object files must be created using
15980 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15981 # necessary to make sure instantiated templates are included
15982 # in the archive.
15983 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15984 ;;
15985 *)
15986 if test "$GXX" = yes; then
15987 if test "$with_gnu_ld" = no; then
15988 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'
15989 else
15990 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
15991 fi
15992 fi
15993 link_all_deplibs_CXX=yes
15994 ;;
15995 esac
15996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15997 hardcode_libdir_separator_CXX=:
15998 ;;
15999 linux*)
16000 case $cc_basename in
16001 KCC)
16002 # Kuck and Associates, Inc. (KAI) C++ Compiler
16003
16004 # KCC will only create a shared library if the output file
16005 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16006 # to its proper name (with version) after linking.
16007 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'
16008 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'
16009 # Commands to make compiler produce verbose output that lists
16010 # what "hidden" libraries, object files and flags are used when
16011 # linking a shared library.
16012 #
16013 # There doesn't appear to be a way to prevent this compiler from
16014 # explicitly linking system object files so we need to strip them
16015 # from the output so that they don't get included in the library
16016 # dependencies.
16017 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'
16018
16019 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16021
16022 # Archives containing C++ object files must be created using
16023 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16024 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16025 ;;
16026 icpc)
16027 # Intel C++
16028 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016029 # version 8.0 and above of icpc choke on multiply defined symbols
16030 # if we add $predep_objects and $postdep_objects, however 7.1 and
16031 # earlier do not add the objects themselves.
16032 case `$CC -V 2>&1` in
16033 *"Version 7."*)
16034 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16035 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'
16036 ;;
16037 *) # Version 8.0 or newer
16038 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16040 ;;
16041 esac
John Criswell47fdd832003-07-14 16:52:07 +000016042 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16045 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16046 ;;
16047 cxx)
16048 # Compaq C++
16049 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16050 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'
16051
16052 runpath_var=LD_RUN_PATH
16053 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16054 hardcode_libdir_separator_CXX=:
16055
16056 # Commands to make compiler produce verbose output that lists
16057 # what "hidden" libraries, object files and flags are used when
16058 # linking a shared library.
16059 #
16060 # There doesn't appear to be a way to prevent this compiler from
16061 # explicitly linking system object files so we need to strip them
16062 # from the output so that they don't get included in the library
16063 # dependencies.
16064 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'
16065 ;;
16066 esac
16067 ;;
16068 lynxos*)
16069 # FIXME: insert proper C++ library support
16070 ld_shlibs_CXX=no
16071 ;;
16072 m88k*)
16073 # FIXME: insert proper C++ library support
16074 ld_shlibs_CXX=no
16075 ;;
16076 mvs*)
16077 case $cc_basename in
16078 cxx)
16079 # FIXME: insert proper C++ library support
16080 ld_shlibs_CXX=no
16081 ;;
16082 *)
16083 # FIXME: insert proper C++ library support
16084 ld_shlibs_CXX=no
16085 ;;
16086 esac
16087 ;;
16088 netbsd*)
16089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16090 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16091 wlarc=
16092 hardcode_libdir_flag_spec_CXX='-R$libdir'
16093 hardcode_direct_CXX=yes
16094 hardcode_shlibpath_var_CXX=no
16095 fi
16096 # Workaround some broken pre-1.5 toolchains
16097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16098 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016099 openbsd2*)
16100 # C++ shared libraries are fairly broken
16101 ld_shlibs_CXX=no
16102 ;;
16103 openbsd*)
16104 hardcode_direct_CXX=yes
16105 hardcode_shlibpath_var_CXX=no
16106 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16109 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16110 export_dynamic_flag_spec_CXX='${wl}-E'
16111 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16112 fi
16113 output_verbose_link_cmd='echo'
16114 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016115 osf3*)
16116 case $cc_basename in
16117 KCC)
16118 # Kuck and Associates, Inc. (KAI) C++ Compiler
16119
16120 # KCC will only create a shared library if the output file
16121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16122 # to its proper name (with version) after linking.
16123 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'
16124
16125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16126 hardcode_libdir_separator_CXX=:
16127
16128 # Archives containing C++ object files must be created using
16129 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16130 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16131
16132 ;;
16133 RCC)
16134 # Rational C++ 2.4.1
16135 # FIXME: insert proper C++ library support
16136 ld_shlibs_CXX=no
16137 ;;
16138 cxx)
16139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16140 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'
16141
16142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16143 hardcode_libdir_separator_CXX=:
16144
16145 # Commands to make compiler produce verbose output that lists
16146 # what "hidden" libraries, object files and flags are used when
16147 # linking a shared library.
16148 #
16149 # There doesn't appear to be a way to prevent this compiler from
16150 # explicitly linking system object files so we need to strip them
16151 # from the output so that they don't get included in the library
16152 # dependencies.
16153 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'
16154 ;;
16155 *)
16156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16158 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'
16159
16160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16161 hardcode_libdir_separator_CXX=:
16162
16163 # Commands to make compiler produce verbose output that lists
16164 # what "hidden" libraries, object files and flags are used when
16165 # linking a shared library.
16166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16167
16168 else
16169 # FIXME: insert proper C++ library support
16170 ld_shlibs_CXX=no
16171 fi
16172 ;;
16173 esac
16174 ;;
16175 osf4* | osf5*)
16176 case $cc_basename in
16177 KCC)
16178 # Kuck and Associates, Inc. (KAI) C++ Compiler
16179
16180 # KCC will only create a shared library if the output file
16181 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16182 # to its proper name (with version) after linking.
16183 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'
16184
16185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16186 hardcode_libdir_separator_CXX=:
16187
16188 # Archives containing C++ object files must be created using
16189 # the KAI C++ compiler.
16190 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16191 ;;
16192 RCC)
16193 # Rational C++ 2.4.1
16194 # FIXME: insert proper C++ library support
16195 ld_shlibs_CXX=no
16196 ;;
16197 cxx)
16198 allow_undefined_flag_CXX=' -expect_unresolved \*'
16199 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 +000016200 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16201 echo "-hidden">> $lib.exp~
16202 $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~
16203 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016204
16205 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16206 hardcode_libdir_separator_CXX=:
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 -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'
16217 ;;
16218 *)
16219 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16220 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16221 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'
16222
16223 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16224 hardcode_libdir_separator_CXX=:
16225
16226 # Commands to make compiler produce verbose output that lists
16227 # what "hidden" libraries, object files and flags are used when
16228 # linking a shared library.
16229 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16230
16231 else
16232 # FIXME: insert proper C++ library support
16233 ld_shlibs_CXX=no
16234 fi
16235 ;;
16236 esac
16237 ;;
16238 psos*)
16239 # FIXME: insert proper C++ library support
16240 ld_shlibs_CXX=no
16241 ;;
16242 sco*)
16243 archive_cmds_need_lc_CXX=no
16244 case $cc_basename in
16245 CC)
16246 # FIXME: insert proper C++ library support
16247 ld_shlibs_CXX=no
16248 ;;
16249 *)
16250 # FIXME: insert proper C++ library support
16251 ld_shlibs_CXX=no
16252 ;;
16253 esac
16254 ;;
16255 sunos4*)
16256 case $cc_basename in
16257 CC)
16258 # Sun C++ 4.x
16259 # FIXME: insert proper C++ library support
16260 ld_shlibs_CXX=no
16261 ;;
16262 lcc)
16263 # Lucid
16264 # FIXME: insert proper C++ library support
16265 ld_shlibs_CXX=no
16266 ;;
16267 *)
16268 # FIXME: insert proper C++ library support
16269 ld_shlibs_CXX=no
16270 ;;
16271 esac
16272 ;;
16273 solaris*)
16274 case $cc_basename in
16275 CC)
16276 # Sun C++ 4.2, 5.x and Centerline C++
16277 no_undefined_flag_CXX=' -zdefs'
16278 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 +000016279 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16280 $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 +000016281
16282 hardcode_libdir_flag_spec_CXX='-R$libdir'
16283 hardcode_shlibpath_var_CXX=no
16284 case $host_os in
16285 solaris2.0-5 | solaris2.0-5.*) ;;
16286 *)
16287 # The C++ compiler is used as linker so we must use $wl
16288 # flag to pass the commands to the underlying system
16289 # linker.
16290 # Supported since Solaris 2.6 (maybe 2.5.1?)
16291 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16292 ;;
16293 esac
16294 link_all_deplibs_CXX=yes
16295
16296 # Commands to make compiler produce verbose output that lists
16297 # what "hidden" libraries, object files and flags are used when
16298 # linking a shared library.
16299 #
16300 # There doesn't appear to be a way to prevent this compiler from
16301 # explicitly linking system object files so we need to strip them
16302 # from the output so that they don't get included in the library
16303 # dependencies.
16304 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'
16305
16306 # Archives containing C++ object files must be created using
16307 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16308 # necessary to make sure instantiated templates are included
16309 # in the archive.
16310 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16311 ;;
16312 gcx)
16313 # Green Hills C++ Compiler
16314 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16315
16316 # The C++ compiler must be used to create the archive.
16317 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16318 ;;
16319 *)
16320 # GNU C++ compiler with Solaris linker
16321 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16322 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16323 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016324 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 +000016325 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16326 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16327
John Criswell47fdd832003-07-14 16:52:07 +000016328 # Commands to make compiler produce verbose output that lists
16329 # what "hidden" libraries, object files and flags are used when
16330 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016331 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016332 else
16333 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16334 # platform.
16335 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 +000016336 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16337 $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 +000016338
16339 # Commands to make compiler produce verbose output that lists
16340 # what "hidden" libraries, object files and flags are used when
16341 # linking a shared library.
16342 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16343 fi
16344
16345 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16346 fi
16347 ;;
16348 esac
16349 ;;
16350 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16351 archive_cmds_need_lc_CXX=no
16352 ;;
16353 tandem*)
16354 case $cc_basename in
16355 NCC)
16356 # NonStop-UX NCC 3.20
16357 # FIXME: insert proper C++ library support
16358 ld_shlibs_CXX=no
16359 ;;
16360 *)
16361 # FIXME: insert proper C++ library support
16362 ld_shlibs_CXX=no
16363 ;;
16364 esac
16365 ;;
16366 vxworks*)
16367 # FIXME: insert proper C++ library support
16368 ld_shlibs_CXX=no
16369 ;;
16370 *)
16371 # FIXME: insert proper C++ library support
16372 ld_shlibs_CXX=no
16373 ;;
16374esac
16375echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16376echo "${ECHO_T}$ld_shlibs_CXX" >&6
16377test "$ld_shlibs_CXX" = no && can_build_shared=no
16378
16379GCC_CXX="$GXX"
16380LD_CXX="$LD"
16381
John Criswell47fdd832003-07-14 16:52:07 +000016382
16383cat > conftest.$ac_ext <<EOF
16384class Foo
16385{
16386public:
16387 Foo (void) { a = 0; }
16388private:
16389 int a;
16390};
16391EOF
16392
16393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16394 (eval $ac_compile) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; then
16398 # Parse the compiler output and extract the necessary
16399 # objects, libraries and library flags.
16400
16401 # Sentinel used to keep track of whether or not we are before
16402 # the conftest object file.
16403 pre_test_object_deps_done=no
16404
16405 # The `*' in the case matches for architectures that use `case' in
16406 # $output_verbose_cmd can trigger glob expansion during the loop
16407 # eval without this substitution.
16408 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16409
16410 for p in `eval $output_verbose_link_cmd`; do
16411 case $p in
16412
16413 -L* | -R* | -l*)
16414 # Some compilers place space between "-{L,R}" and the path.
16415 # Remove the space.
16416 if test $p = "-L" \
16417 || test $p = "-R"; then
16418 prev=$p
16419 continue
16420 else
16421 prev=
16422 fi
16423
16424 if test "$pre_test_object_deps_done" = no; then
16425 case $p in
16426 -L* | -R*)
16427 # Internal compiler library paths should come after those
16428 # provided the user. The postdeps already come after the
16429 # user supplied libs so there is no need to process them.
16430 if test -z "$compiler_lib_search_path_CXX"; then
16431 compiler_lib_search_path_CXX="${prev}${p}"
16432 else
16433 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16434 fi
16435 ;;
16436 # The "-l" case would never come before the object being
16437 # linked, so don't bother handling this case.
16438 esac
16439 else
16440 if test -z "$postdeps_CXX"; then
16441 postdeps_CXX="${prev}${p}"
16442 else
16443 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16444 fi
16445 fi
16446 ;;
16447
16448 *.$objext)
16449 # This assumes that the test object file only shows up
16450 # once in the compiler output.
16451 if test "$p" = "conftest.$objext"; then
16452 pre_test_object_deps_done=yes
16453 continue
16454 fi
16455
16456 if test "$pre_test_object_deps_done" = no; then
16457 if test -z "$predep_objects_CXX"; then
16458 predep_objects_CXX="$p"
16459 else
16460 predep_objects_CXX="$predep_objects_CXX $p"
16461 fi
16462 else
16463 if test -z "$postdep_objects_CXX"; then
16464 postdep_objects_CXX="$p"
16465 else
16466 postdep_objects_CXX="$postdep_objects_CXX $p"
16467 fi
16468 fi
16469 ;;
16470
16471 *) ;; # Ignore the rest.
16472
16473 esac
16474 done
16475
16476 # Clean up.
16477 rm -f a.out a.exe
16478else
16479 echo "libtool.m4: error: problem compiling CXX test program"
16480fi
16481
16482$rm -f confest.$objext
16483
16484case " $postdeps_CXX " in
16485*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16486esac
16487
16488lt_prog_compiler_wl_CXX=
16489lt_prog_compiler_pic_CXX=
16490lt_prog_compiler_static_CXX=
16491
16492echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16493echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16494
16495 # C++ specific cases for pic, static, wl, etc.
16496 if test "$GXX" = yes; then
16497 lt_prog_compiler_wl_CXX='-Wl,'
16498 lt_prog_compiler_static_CXX='-static'
16499
16500 case $host_os in
16501 aix*)
16502 # All AIX code is PIC.
16503 if test "$host_cpu" = ia64; then
16504 # AIX 5 now supports IA64 processor
16505 lt_prog_compiler_static_CXX='-Bstatic'
16506 fi
16507 ;;
16508 amigaos*)
16509 # FIXME: we need at least 68020 code to build shared libraries, but
16510 # adding the `-m68020' flag to GCC prevents building anything better,
16511 # like `-m68040'.
16512 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16513 ;;
16514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16515 # PIC is the default for these OSes.
16516 ;;
16517 mingw* | os2* | pw32*)
16518 # This hack is so that the source file can tell whether it is being
16519 # built for inclusion in a dll (and should export symbols for example).
16520 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16521 ;;
16522 darwin* | rhapsody*)
16523 # PIC is the default on this platform
16524 # Common symbols not allowed in MH_DYLIB files
16525 lt_prog_compiler_pic_CXX='-fno-common'
16526 ;;
16527 *djgpp*)
16528 # DJGPP does not support shared libraries at all
16529 lt_prog_compiler_pic_CXX=
16530 ;;
16531 sysv4*MP*)
16532 if test -d /usr/nec; then
16533 lt_prog_compiler_pic_CXX=-Kconform_pic
16534 fi
16535 ;;
16536 hpux*)
16537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16538 # not for PA HP-UX.
16539 case "$host_cpu" in
16540 hppa*64*|ia64*)
16541 ;;
16542 *)
16543 lt_prog_compiler_pic_CXX='-fPIC'
16544 ;;
16545 esac
16546 ;;
16547 *)
16548 lt_prog_compiler_pic_CXX='-fPIC'
16549 ;;
16550 esac
16551 else
16552 case $host_os in
16553 aix4* | aix5*)
16554 # All AIX code is PIC.
16555 if test "$host_cpu" = ia64; then
16556 # AIX 5 now supports IA64 processor
16557 lt_prog_compiler_static_CXX='-Bstatic'
16558 else
16559 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16560 fi
16561 ;;
16562 chorus*)
16563 case $cc_basename in
16564 cxch68)
16565 # Green Hills C++ Compiler
16566 # _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"
16567 ;;
16568 esac
16569 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016570 darwin*)
16571 # PIC is the default on this platform
16572 # Common symbols not allowed in MH_DYLIB files
16573 case "$cc_basename" in
16574 xlc*)
16575 lt_prog_compiler_pic_CXX='-qnocommon'
16576 lt_prog_compiler_wl_CXX='-Wl,'
16577 ;;
16578 esac
16579 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016580 dgux*)
16581 case $cc_basename in
16582 ec++)
16583 lt_prog_compiler_pic_CXX='-KPIC'
16584 ;;
16585 ghcx)
16586 # Green Hills C++ Compiler
16587 lt_prog_compiler_pic_CXX='-pic'
16588 ;;
16589 *)
16590 ;;
16591 esac
16592 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016593 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016594 # FreeBSD uses GNU C++
16595 ;;
16596 hpux9* | hpux10* | hpux11*)
16597 case $cc_basename in
16598 CC)
16599 lt_prog_compiler_wl_CXX='-Wl,'
16600 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16601 if test "$host_cpu" != ia64; then
16602 lt_prog_compiler_pic_CXX='+Z'
16603 fi
16604 ;;
16605 aCC)
16606 lt_prog_compiler_wl_CXX='-Wl,'
16607 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16608 case "$host_cpu" in
16609 hppa*64*|ia64*)
16610 # +Z the default
16611 ;;
16612 *)
16613 lt_prog_compiler_pic_CXX='+Z'
16614 ;;
16615 esac
16616 ;;
16617 *)
16618 ;;
16619 esac
16620 ;;
16621 irix5* | irix6* | nonstopux*)
16622 case $cc_basename in
16623 CC)
16624 lt_prog_compiler_wl_CXX='-Wl,'
16625 lt_prog_compiler_static_CXX='-non_shared'
16626 # CC pic flag -KPIC is the default.
16627 ;;
16628 *)
16629 ;;
16630 esac
16631 ;;
16632 linux*)
16633 case $cc_basename in
16634 KCC)
16635 # KAI C++ Compiler
16636 lt_prog_compiler_wl_CXX='--backend -Wl,'
16637 lt_prog_compiler_pic_CXX='-fPIC'
16638 ;;
16639 icpc)
16640 # Intel C++
16641 lt_prog_compiler_wl_CXX='-Wl,'
16642 lt_prog_compiler_pic_CXX='-KPIC'
16643 lt_prog_compiler_static_CXX='-static'
16644 ;;
16645 cxx)
16646 # Compaq C++
16647 # Make sure the PIC flag is empty. It appears that all Alpha
16648 # Linux and Compaq Tru64 Unix objects are PIC.
16649 lt_prog_compiler_pic_CXX=
16650 lt_prog_compiler_static_CXX='-non_shared'
16651 ;;
16652 *)
16653 ;;
16654 esac
16655 ;;
16656 lynxos*)
16657 ;;
16658 m88k*)
16659 ;;
16660 mvs*)
16661 case $cc_basename in
16662 cxx)
16663 lt_prog_compiler_pic_CXX='-W c,exportall'
16664 ;;
16665 *)
16666 ;;
16667 esac
16668 ;;
16669 netbsd*)
16670 ;;
16671 osf3* | osf4* | osf5*)
16672 case $cc_basename in
16673 KCC)
16674 lt_prog_compiler_wl_CXX='--backend -Wl,'
16675 ;;
16676 RCC)
16677 # Rational C++ 2.4.1
16678 lt_prog_compiler_pic_CXX='-pic'
16679 ;;
16680 cxx)
16681 # Digital/Compaq C++
16682 lt_prog_compiler_wl_CXX='-Wl,'
16683 # Make sure the PIC flag is empty. It appears that all Alpha
16684 # Linux and Compaq Tru64 Unix objects are PIC.
16685 lt_prog_compiler_pic_CXX=
16686 lt_prog_compiler_static_CXX='-non_shared'
16687 ;;
16688 *)
16689 ;;
16690 esac
16691 ;;
16692 psos*)
16693 ;;
16694 sco*)
16695 case $cc_basename in
16696 CC)
16697 lt_prog_compiler_pic_CXX='-fPIC'
16698 ;;
16699 *)
16700 ;;
16701 esac
16702 ;;
16703 solaris*)
16704 case $cc_basename in
16705 CC)
16706 # Sun C++ 4.2, 5.x and Centerline C++
16707 lt_prog_compiler_pic_CXX='-KPIC'
16708 lt_prog_compiler_static_CXX='-Bstatic'
16709 lt_prog_compiler_wl_CXX='-Qoption ld '
16710 ;;
16711 gcx)
16712 # Green Hills C++ Compiler
16713 lt_prog_compiler_pic_CXX='-PIC'
16714 ;;
16715 *)
16716 ;;
16717 esac
16718 ;;
16719 sunos4*)
16720 case $cc_basename in
16721 CC)
16722 # Sun C++ 4.x
16723 lt_prog_compiler_pic_CXX='-pic'
16724 lt_prog_compiler_static_CXX='-Bstatic'
16725 ;;
16726 lcc)
16727 # Lucid
16728 lt_prog_compiler_pic_CXX='-pic'
16729 ;;
16730 *)
16731 ;;
16732 esac
16733 ;;
16734 tandem*)
16735 case $cc_basename in
16736 NCC)
16737 # NonStop-UX NCC 3.20
16738 lt_prog_compiler_pic_CXX='-KPIC'
16739 ;;
16740 *)
16741 ;;
16742 esac
16743 ;;
16744 unixware*)
16745 ;;
16746 vxworks*)
16747 ;;
16748 *)
16749 lt_prog_compiler_can_build_shared_CXX=no
16750 ;;
16751 esac
16752 fi
16753
16754echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16755echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16756
16757#
16758# Check to make sure the PIC flag actually works.
16759#
16760if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016761
16762echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016763echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16764if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766else
16767 lt_prog_compiler_pic_works_CXX=no
16768 ac_outfile=conftest.$ac_objext
16769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16770 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16771 # Insert the option either (1) after the last *FLAGS variable, or
16772 # (2) before a word containing "conftest.", or (3) at the end.
16773 # Note that $ac_compile itself does not contain backslashes and begins
16774 # with a dollar sign (not a hyphen), so the echo should work correctly.
16775 # The option is referenced via a variable to avoid confusing sed.
16776 lt_compile=`echo "$ac_compile" | $SED \
16777 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16779 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000016780 (eval echo "\"\$as_me:16780: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016781 (eval "$lt_compile" 2>conftest.err)
16782 ac_status=$?
16783 cat conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000016784 echo "$as_me:16784: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016785 if (exit $ac_status) && test -s "$ac_outfile"; then
16786 # The compiler can only warn and ignore the option if not recognized
16787 # So say no if there are warnings
16788 if test ! -s conftest.err; then
16789 lt_prog_compiler_pic_works_CXX=yes
16790 fi
16791 fi
16792 $rm conftest*
16793
16794fi
16795echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16796echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16797
16798if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16799 case $lt_prog_compiler_pic_CXX in
16800 "" | " "*) ;;
16801 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16802 esac
16803else
16804 lt_prog_compiler_pic_CXX=
16805 lt_prog_compiler_can_build_shared_CXX=no
16806fi
16807
16808fi
16809case "$host_os" in
16810 # For platforms which do not support PIC, -DPIC is meaningless:
16811 *djgpp*)
16812 lt_prog_compiler_pic_CXX=
16813 ;;
16814 *)
16815 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16816 ;;
16817esac
16818
16819echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16820echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16821if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823else
16824 lt_cv_prog_compiler_c_o_CXX=no
16825 $rm -r conftest 2>/dev/null
16826 mkdir conftest
16827 cd conftest
16828 mkdir out
16829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16830
John Criswell47fdd832003-07-14 16:52:07 +000016831 lt_compiler_flag="-o out/conftest2.$ac_objext"
16832 # Insert the option either (1) after the last *FLAGS variable, or
16833 # (2) before a word containing "conftest.", or (3) at the end.
16834 # Note that $ac_compile itself does not contain backslashes and begins
16835 # with a dollar sign (not a hyphen), so the echo should work correctly.
16836 lt_compile=`echo "$ac_compile" | $SED \
16837 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16839 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000016840 (eval echo "\"\$as_me:16840: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016841 (eval "$lt_compile" 2>out/conftest.err)
16842 ac_status=$?
16843 cat out/conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000016844 echo "$as_me:16844: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16846 then
16847 # The compiler can only warn and ignore the option if not recognized
16848 # So say no if there are warnings
16849 if test ! -s out/conftest.err; then
16850 lt_cv_prog_compiler_c_o_CXX=yes
16851 fi
16852 fi
16853 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016854 $rm conftest*
16855 # SGI C++ compiler will create directory out/ii_files/ for
16856 # template instantiation
16857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16858 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016859 cd ..
16860 rmdir conftest
16861 $rm conftest*
16862
16863fi
16864echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16865echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16866
16867
16868hard_links="nottested"
16869if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16870 # do not overwrite the value of need_locks provided by the user
16871 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16872echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16873 hard_links=yes
16874 $rm conftest*
16875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16876 touch conftest.a
16877 ln conftest.a conftest.b 2>&5 || hard_links=no
16878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879 echo "$as_me:$LINENO: result: $hard_links" >&5
16880echo "${ECHO_T}$hard_links" >&6
16881 if test "$hard_links" = no; then
16882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16883echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16884 need_locks=warn
16885 fi
16886else
16887 need_locks=no
16888fi
16889
16890echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16891echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16892
16893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16894 case $host_os in
16895 aix4* | aix5*)
16896 # If we're using GNU nm, then we don't want the "-C" option.
16897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16899 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'
16900 else
16901 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'
16902 fi
16903 ;;
16904 pw32*)
16905 export_symbols_cmds_CXX="$ltdll_cmds"
16906 ;;
16907 cygwin* | mingw*)
16908 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16909 ;;
16910 *)
16911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16912 ;;
16913 esac
16914
16915echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16916echo "${ECHO_T}$ld_shlibs_CXX" >&6
16917test "$ld_shlibs_CXX" = no && can_build_shared=no
16918
16919variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16920if test "$GCC" = yes; then
16921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16922fi
16923
16924#
16925# Do we need to explicitly link libc?
16926#
16927case "x$archive_cmds_need_lc_CXX" in
16928x|xyes)
16929 # Assume -lc should be added
16930 archive_cmds_need_lc_CXX=yes
16931
16932 if test "$enable_shared" = yes && test "$GCC" = yes; then
16933 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016934 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016935 # FIXME: we may have to deal with multi-command sequences.
16936 ;;
16937 '$CC '*)
16938 # Test whether the compiler implicitly links with -lc since on some
16939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16940 # to ld, don't add -lc before -lgcc.
16941 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16942echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16943 $rm conftest*
16944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16945
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } 2>conftest.err; then
16951 soname=conftest
16952 lib=conftest
16953 libobjs=conftest.$ac_objext
16954 deplibs=
16955 wl=$lt_prog_compiler_wl_CXX
16956 compiler_flags=-v
16957 linker_flags=-v
16958 verstring=
16959 output_objdir=.
16960 libname=conftest
16961 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16962 allow_undefined_flag_CXX=
16963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16964 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }
16968 then
16969 archive_cmds_need_lc_CXX=no
16970 else
16971 archive_cmds_need_lc_CXX=yes
16972 fi
16973 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16974 else
16975 cat conftest.err 1>&5
16976 fi
16977 $rm conftest*
16978 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16979echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16980 ;;
16981 esac
16982 fi
16983 ;;
16984esac
16985
John Criswell47fdd832003-07-14 16:52:07 +000016986echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16987echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16988library_names_spec=
16989libname_spec='lib$name'
16990soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016991shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016992postinstall_cmds=
16993postuninstall_cmds=
16994finish_cmds=
16995finish_eval=
16996shlibpath_var=
16997shlibpath_overrides_runpath=unknown
16998version_type=none
16999dynamic_linker="$host_os ld.so"
17000sys_lib_dlsearch_path_spec="/lib /usr/lib"
17001if test "$GCC" = yes; then
17002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17003 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17004 # if the path contains ";" then we assume it to be the separator
17005 # otherwise default to the standard path separator (i.e. ":") - it is
17006 # assumed that no part of a normal pathname contains ";" but that should
17007 # okay in the real world where ";" in dirpaths is itself problematic.
17008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17009 else
17010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17011 fi
17012else
17013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17014fi
17015need_lib_prefix=unknown
17016hardcode_into_libs=no
17017
17018# when you set need_version to no, make sure it does not cause -set_version
17019# flags to be left without arguments
17020need_version=unknown
17021
17022case $host_os in
17023aix3*)
17024 version_type=linux
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17026 shlibpath_var=LIBPATH
17027
17028 # AIX 3 has no versioning support, so we append a major version to the name.
17029 soname_spec='${libname}${release}${shared_ext}$major'
17030 ;;
17031
17032aix4* | aix5*)
17033 version_type=linux
17034 need_lib_prefix=no
17035 need_version=no
17036 hardcode_into_libs=yes
17037 if test "$host_cpu" = ia64; then
17038 # AIX 5 supports IA64
17039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 else
17042 # With GCC up to 2.95.x, collect2 would create an import file
17043 # for dependence libraries. The import file would start with
17044 # the line `#! .'. This would cause the generated library to
17045 # depend on `.', always an invalid library. This was fixed in
17046 # development snapshots of GCC prior to 3.0.
17047 case $host_os in
17048 aix4 | aix4.[01] | aix4.[01].*)
17049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17050 echo ' yes '
17051 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17052 :
17053 else
17054 can_build_shared=no
17055 fi
17056 ;;
17057 esac
17058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17059 # soname into executable. Probably we can add versioning support to
17060 # collect2, so additional links can be useful in future.
17061 if test "$aix_use_runtimelinking" = yes; then
17062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17063 # instead of lib<name>.a to let people know that these are not
17064 # typical AIX shared libraries.
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066 else
17067 # We preserve .a as extension for shared libraries through AIX4.2
17068 # and later when we are not doing run time linking.
17069 library_names_spec='${libname}${release}.a $libname.a'
17070 soname_spec='${libname}${release}${shared_ext}$major'
17071 fi
17072 shlibpath_var=LIBPATH
17073 fi
17074 ;;
17075
17076amigaos*)
17077 library_names_spec='$libname.ixlibrary $libname.a'
17078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017079 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 +000017080 ;;
17081
17082beos*)
17083 library_names_spec='${libname}${shared_ext}'
17084 dynamic_linker="$host_os ld.so"
17085 shlibpath_var=LIBRARY_PATH
17086 ;;
17087
Reid Spencer2706f8c2004-09-19 23:53:36 +000017088bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017089 version_type=linux
17090 need_version=no
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17097 # the default ld.so.conf also contains /usr/contrib/lib and
17098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17099 # libtool to hard-code these into programs
17100 ;;
17101
17102cygwin* | mingw* | pw32*)
17103 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017104 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017105 need_version=no
17106 need_lib_prefix=no
17107
17108 case $GCC,$host_os in
17109 yes,cygwin* | yes,mingw* | yes,pw32*)
17110 library_names_spec='$libname.dll.a'
17111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017112 postinstall_cmds='base_file=`basename \${file}`~
17113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17114 dldir=$destdir/`dirname \$dlpath`~
17115 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017116 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17118 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017119 $rm \$dlpath'
17120 shlibpath_overrides_runpath=yes
17121
17122 case $host_os in
17123 cygwin*)
17124 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17125 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 +000017126 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017127 ;;
17128 mingw*)
17129 # MinGW DLLs use traditional 'lib' prefix
17130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17131 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17132 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17133 # It is most probably a Windows format PATH printed by
17134 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17135 # path with ; separators, and with drive letters. We can handle the
17136 # drive letters (cygwin fileutils understands them), so leave them,
17137 # especially as we might pass files found there to a mingw objdump,
17138 # which wouldn't understand a cygwinified path. Ahh.
17139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17140 else
17141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17142 fi
17143 ;;
17144 pw32*)
17145 # pw32 DLLs use 'pw' prefix rather than 'lib'
17146 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17147 ;;
17148 esac
17149 ;;
17150
17151 *)
17152 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17153 ;;
17154 esac
17155 dynamic_linker='Win32 ld.exe'
17156 # FIXME: first we should search . and the directory the executable is in
17157 shlibpath_var=PATH
17158 ;;
17159
17160darwin* | rhapsody*)
17161 dynamic_linker="$host_os dyld"
17162 version_type=darwin
17163 need_lib_prefix=no
17164 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017165 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017166 soname_spec='${libname}${release}${major}$shared_ext'
17167 shlibpath_overrides_runpath=yes
17168 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017169 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017170 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017171 if test "$GCC" = yes; then
17172 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"`
17173 else
17174 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017175 fi
17176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17177 ;;
17178
17179dgux*)
17180 version_type=linux
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 ;;
17187
17188freebsd1*)
17189 dynamic_linker=no
17190 ;;
17191
Reid Spencer2706f8c2004-09-19 23:53:36 +000017192kfreebsd*-gnu)
17193 version_type=linux
17194 need_lib_prefix=no
17195 need_version=no
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17197 soname_spec='${libname}${release}${shared_ext}$major'
17198 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=no
17200 hardcode_into_libs=yes
17201 dynamic_linker='GNU ld.so'
17202 ;;
17203
John Criswell47fdd832003-07-14 16:52:07 +000017204freebsd*)
17205 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17206 version_type=freebsd-$objformat
17207 case $version_type in
17208 freebsd-elf*)
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17210 need_version=no
17211 need_lib_prefix=no
17212 ;;
17213 freebsd-*)
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17215 need_version=yes
17216 ;;
17217 esac
17218 shlibpath_var=LD_LIBRARY_PATH
17219 case $host_os in
17220 freebsd2*)
17221 shlibpath_overrides_runpath=yes
17222 ;;
17223 freebsd3.01* | freebsdelf3.01*)
17224 shlibpath_overrides_runpath=yes
17225 hardcode_into_libs=yes
17226 ;;
17227 *) # from 3.2 on
17228 shlibpath_overrides_runpath=no
17229 hardcode_into_libs=yes
17230 ;;
17231 esac
17232 ;;
17233
17234gnu*)
17235 version_type=linux
17236 need_lib_prefix=no
17237 need_version=no
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 hardcode_into_libs=yes
17242 ;;
17243
17244hpux9* | hpux10* | hpux11*)
17245 # Give a soname corresponding to the major version so that dld.sl refuses to
17246 # link against other versions.
17247 version_type=sunos
17248 need_lib_prefix=no
17249 need_version=no
17250 case "$host_cpu" in
17251 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017252 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017253 hardcode_into_libs=yes
17254 dynamic_linker="$host_os dld.so"
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17258 soname_spec='${libname}${release}${shared_ext}$major'
17259 if test "X$HPUX_IA64_MODE" = X32; then
17260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17261 else
17262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17263 fi
17264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17265 ;;
17266 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017267 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017268 hardcode_into_libs=yes
17269 dynamic_linker="$host_os dld.sl"
17270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17276 ;;
17277 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017278 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017279 dynamic_linker="$host_os dld.sl"
17280 shlibpath_var=SHLIB_PATH
17281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17284 ;;
17285 esac
17286 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17287 postinstall_cmds='chmod 555 $lib'
17288 ;;
17289
17290irix5* | irix6* | nonstopux*)
17291 case $host_os in
17292 nonstopux*) version_type=nonstopux ;;
17293 *)
17294 if test "$lt_cv_prog_gnu_ld" = yes; then
17295 version_type=linux
17296 else
17297 version_type=irix
17298 fi ;;
17299 esac
17300 need_lib_prefix=no
17301 need_version=no
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17304 case $host_os in
17305 irix5* | nonstopux*)
17306 libsuff= shlibsuff=
17307 ;;
17308 *)
17309 case $LD in # libtool.m4 will add one of these switches to LD
17310 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17311 libsuff= shlibsuff= libmagic=32-bit;;
17312 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17313 libsuff=32 shlibsuff=N32 libmagic=N32;;
17314 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17315 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17316 *) libsuff= shlibsuff= libmagic=never-match;;
17317 esac
17318 ;;
17319 esac
17320 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17321 shlibpath_overrides_runpath=no
17322 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17323 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17324 hardcode_into_libs=yes
17325 ;;
17326
17327# No shared lib support for Linux oldld, aout, or coff.
17328linux*oldld* | linux*aout* | linux*coff*)
17329 dynamic_linker=no
17330 ;;
17331
17332# This must be Linux ELF.
17333linux*)
17334 version_type=linux
17335 need_lib_prefix=no
17336 need_version=no
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17340 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=no
17342 # This implies no fast_install, which is unacceptable.
17343 # Some rework will be needed to allow for fast_install
17344 # before this can be enabled.
17345 hardcode_into_libs=yes
17346
Reid Spencer2706f8c2004-09-19 23:53:36 +000017347 # Append ld.so.conf contents to the search path
17348 if test -f /etc/ld.so.conf; then
17349 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17350 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17351 fi
17352
John Criswell47fdd832003-07-14 16:52:07 +000017353 # We used to test for /lib/ld.so.1 and disable shared libraries on
17354 # powerpc, because MkLinux only supported shared libraries with the
17355 # GNU dynamic linker. Since this was broken with cross compilers,
17356 # most powerpc-linux boxes support dynamic linking these days and
17357 # people can always --disable-shared, the test was removed, and we
17358 # assume the GNU/Linux dynamic linker is in use.
17359 dynamic_linker='GNU/Linux ld.so'
17360 ;;
17361
Reid Spencer2706f8c2004-09-19 23:53:36 +000017362knetbsd*-gnu)
17363 version_type=linux
17364 need_lib_prefix=no
17365 need_version=no
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17367 soname_spec='${libname}${release}${shared_ext}$major'
17368 shlibpath_var=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath=no
17370 hardcode_into_libs=yes
17371 dynamic_linker='GNU ld.so'
17372 ;;
17373
John Criswell47fdd832003-07-14 16:52:07 +000017374netbsd*)
17375 version_type=sunos
17376 need_lib_prefix=no
17377 need_version=no
17378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17381 dynamic_linker='NetBSD (a.out) ld.so'
17382 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017384 soname_spec='${libname}${release}${shared_ext}$major'
17385 dynamic_linker='NetBSD ld.elf_so'
17386 fi
17387 shlibpath_var=LD_LIBRARY_PATH
17388 shlibpath_overrides_runpath=yes
17389 hardcode_into_libs=yes
17390 ;;
17391
17392newsos6)
17393 version_type=linux
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath=yes
17397 ;;
17398
Reid Spencer2706f8c2004-09-19 23:53:36 +000017399nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017400 version_type=linux
17401 need_lib_prefix=no
17402 need_version=no
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404 soname_spec='${libname}${release}${shared_ext}$major'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 shlibpath_overrides_runpath=yes
17407 ;;
17408
17409openbsd*)
17410 version_type=sunos
17411 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017412 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17417 case $host_os in
17418 openbsd2.[89] | openbsd2.[89].*)
17419 shlibpath_overrides_runpath=no
17420 ;;
17421 *)
17422 shlibpath_overrides_runpath=yes
17423 ;;
17424 esac
17425 else
17426 shlibpath_overrides_runpath=yes
17427 fi
17428 ;;
17429
17430os2*)
17431 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017432 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017433 need_lib_prefix=no
17434 library_names_spec='$libname${shared_ext} $libname.a'
17435 dynamic_linker='OS/2 ld.exe'
17436 shlibpath_var=LIBPATH
17437 ;;
17438
17439osf3* | osf4* | osf5*)
17440 version_type=osf
17441 need_lib_prefix=no
17442 need_version=no
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17448 ;;
17449
17450sco3.2v5*)
17451 version_type=osf
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 ;;
17456
17457solaris*)
17458 version_type=linux
17459 need_lib_prefix=no
17460 need_version=no
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath=yes
17465 hardcode_into_libs=yes
17466 # ldd complains unless libraries are executable
17467 postinstall_cmds='chmod +x $lib'
17468 ;;
17469
17470sunos4*)
17471 version_type=sunos
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=yes
17476 if test "$with_gnu_ld" = yes; then
17477 need_lib_prefix=no
17478 fi
17479 need_version=yes
17480 ;;
17481
17482sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17483 version_type=linux
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 soname_spec='${libname}${release}${shared_ext}$major'
17486 shlibpath_var=LD_LIBRARY_PATH
17487 case $host_vendor in
17488 sni)
17489 shlibpath_overrides_runpath=no
17490 need_lib_prefix=no
17491 export_dynamic_flag_spec='${wl}-Blargedynsym'
17492 runpath_var=LD_RUN_PATH
17493 ;;
17494 siemens)
17495 need_lib_prefix=no
17496 ;;
17497 motorola)
17498 need_lib_prefix=no
17499 need_version=no
17500 shlibpath_overrides_runpath=no
17501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17502 ;;
17503 esac
17504 ;;
17505
17506sysv4*MP*)
17507 if test -d /usr/nec ;then
17508 version_type=linux
17509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17510 soname_spec='$libname${shared_ext}.$major'
17511 shlibpath_var=LD_LIBRARY_PATH
17512 fi
17513 ;;
17514
17515uts4*)
17516 version_type=linux
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 ;;
17521
17522*)
17523 dynamic_linker=no
17524 ;;
17525esac
17526echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17527echo "${ECHO_T}$dynamic_linker" >&6
17528test "$dynamic_linker" = no && can_build_shared=no
17529
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17531echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17532hardcode_action_CXX=
17533if test -n "$hardcode_libdir_flag_spec_CXX" || \
17534 test -n "$runpath_var_CXX" || \
17535 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17536
17537 # We can hardcode non-existant directories.
17538 if test "$hardcode_direct_CXX" != no &&
17539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17540 # have to relink, otherwise we might link with an installed library
17541 # when we should be linking with a yet-to-be-installed one
17542 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17543 test "$hardcode_minus_L_CXX" != no; then
17544 # Linking always hardcodes the temporary library directory.
17545 hardcode_action_CXX=relink
17546 else
17547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17548 hardcode_action_CXX=immediate
17549 fi
17550else
17551 # We cannot hardcode anything, or else we can only hardcode existing
17552 # directories.
17553 hardcode_action_CXX=unsupported
17554fi
17555echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17556echo "${ECHO_T}$hardcode_action_CXX" >&6
17557
17558if test "$hardcode_action_CXX" = relink; then
17559 # Fast installation is not supported
17560 enable_fast_install=no
17561elif test "$shlibpath_overrides_runpath" = yes ||
17562 test "$enable_shared" = no; then
17563 # Fast installation is not necessary
17564 enable_fast_install=needless
17565fi
17566
17567striplib=
17568old_striplib=
17569echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17570echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17571if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17572 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17573 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17574 echo "$as_me:$LINENO: result: yes" >&5
17575echo "${ECHO_T}yes" >&6
17576else
17577# FIXME - insert some real tests, host_os isn't really good enough
17578 case $host_os in
17579 darwin*)
17580 if test -n "$STRIP" ; then
17581 striplib="$STRIP -x"
17582 echo "$as_me:$LINENO: result: yes" >&5
17583echo "${ECHO_T}yes" >&6
17584 else
17585 echo "$as_me:$LINENO: result: no" >&5
17586echo "${ECHO_T}no" >&6
17587fi
17588 ;;
17589 *)
17590 echo "$as_me:$LINENO: result: no" >&5
17591echo "${ECHO_T}no" >&6
17592 ;;
17593 esac
17594fi
17595
John Criswell47fdd832003-07-14 16:52:07 +000017596if test "x$enable_dlopen" != xyes; then
17597 enable_dlopen=unknown
17598 enable_dlopen_self=unknown
17599 enable_dlopen_self_static=unknown
17600else
17601 lt_cv_dlopen=no
17602 lt_cv_dlopen_libs=
17603
17604 case $host_os in
17605 beos*)
17606 lt_cv_dlopen="load_add_on"
17607 lt_cv_dlopen_libs=
17608 lt_cv_dlopen_self=yes
17609 ;;
17610
17611 mingw* | pw32*)
17612 lt_cv_dlopen="LoadLibrary"
17613 lt_cv_dlopen_libs=
17614 ;;
17615
17616 cygwin*)
17617 lt_cv_dlopen="dlopen"
17618 lt_cv_dlopen_libs=
17619 ;;
17620
17621 darwin*)
17622 # if libdl is installed we need to link against it
17623 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17624echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17625if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627else
17628 ac_check_lib_save_LIBS=$LIBS
17629LIBS="-ldl $LIBS"
17630cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017631/* confdefs.h. */
17632_ACEOF
17633cat confdefs.h >>conftest.$ac_ext
17634cat >>conftest.$ac_ext <<_ACEOF
17635/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017636
17637/* Override any gcc2 internal prototype to avoid an error. */
17638#ifdef __cplusplus
17639extern "C"
17640#endif
17641/* We use char because int might match the return type of a gcc2
17642 builtin and then its argument prototype would still apply. */
17643char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017644int
17645main ()
17646{
17647dlopen ();
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest.$ac_objext conftest$ac_exeext
17653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017654 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017661 { ac_try='test -z "$ac_cxx_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_lib_dl_dlopen=yes
17675else
17676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017677sed 's/^/| /' conftest.$ac_ext >&5
17678
John Criswell47fdd832003-07-14 16:52:07 +000017679ac_cv_lib_dl_dlopen=no
17680fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017681rm -f conftest.err conftest.$ac_objext \
17682 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017683LIBS=$ac_check_lib_save_LIBS
17684fi
17685echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17686echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17687if test $ac_cv_lib_dl_dlopen = yes; then
17688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17689else
17690
17691 lt_cv_dlopen="dyld"
17692 lt_cv_dlopen_libs=
17693 lt_cv_dlopen_self=yes
17694
17695fi
17696
17697 ;;
17698
17699 *)
17700 echo "$as_me:$LINENO: checking for shl_load" >&5
17701echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17702if test "${ac_cv_func_shl_load+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704else
17705 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017706/* confdefs.h. */
17707_ACEOF
17708cat confdefs.h >>conftest.$ac_ext
17709cat >>conftest.$ac_ext <<_ACEOF
17710/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017711/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17713#define shl_load innocuous_shl_load
17714
John Criswell47fdd832003-07-14 16:52:07 +000017715/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017716 which can conflict with char shl_load (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017719
John Criswell0c38eaf2003-09-10 15:17:25 +000017720#ifdef __STDC__
17721# include <limits.h>
17722#else
17723# include <assert.h>
17724#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017725
17726#undef shl_load
17727
John Criswell47fdd832003-07-14 16:52:07 +000017728/* Override any gcc2 internal prototype to avoid an error. */
17729#ifdef __cplusplus
17730extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017731{
John Criswell47fdd832003-07-14 16:52:07 +000017732#endif
17733/* We use char because int might match the return type of a gcc2
17734 builtin and then its argument prototype would still apply. */
17735char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017736/* The GNU C library defines this for functions which it implements
17737 to always fail with ENOSYS. Some functions are actually named
17738 something starting with __ and the normal name is an alias. */
17739#if defined (__stub_shl_load) || defined (__stub___shl_load)
17740choke me
17741#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017742char (*f) () = shl_load;
17743#endif
17744#ifdef __cplusplus
17745}
John Criswell47fdd832003-07-14 16:52:07 +000017746#endif
17747
John Criswell0c38eaf2003-09-10 15:17:25 +000017748int
17749main ()
17750{
17751return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017752 ;
17753 return 0;
17754}
17755_ACEOF
17756rm -f conftest.$ac_objext conftest$ac_exeext
17757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017758 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017765 { ac_try='test -z "$ac_cxx_werror_flag"
17766 || test ! -s conftest.err'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_cv_func_shl_load=yes
17779else
17780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017781sed 's/^/| /' conftest.$ac_ext >&5
17782
John Criswell47fdd832003-07-14 16:52:07 +000017783ac_cv_func_shl_load=no
17784fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017785rm -f conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017787fi
17788echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17789echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17790if test $ac_cv_func_shl_load = yes; then
17791 lt_cv_dlopen="shl_load"
17792else
17793 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17794echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17795if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797else
17798 ac_check_lib_save_LIBS=$LIBS
17799LIBS="-ldld $LIBS"
17800cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017801/* confdefs.h. */
17802_ACEOF
17803cat confdefs.h >>conftest.$ac_ext
17804cat >>conftest.$ac_ext <<_ACEOF
17805/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017806
17807/* Override any gcc2 internal prototype to avoid an error. */
17808#ifdef __cplusplus
17809extern "C"
17810#endif
17811/* We use char because int might match the return type of a gcc2
17812 builtin and then its argument prototype would still apply. */
17813char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017814int
17815main ()
17816{
17817shl_load ();
17818 ;
17819 return 0;
17820}
17821_ACEOF
17822rm -f conftest.$ac_objext conftest$ac_exeext
17823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017824 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017825 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017826 grep -v '^ *+' conftest.er1 >conftest.err
17827 rm -f conftest.er1
17828 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017831 { ac_try='test -z "$ac_cxx_werror_flag"
17832 || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017839 { (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); }; }; then
17844 ac_cv_lib_dld_shl_load=yes
17845else
17846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017847sed 's/^/| /' conftest.$ac_ext >&5
17848
John Criswell47fdd832003-07-14 16:52:07 +000017849ac_cv_lib_dld_shl_load=no
17850fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017851rm -f conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017853LIBS=$ac_check_lib_save_LIBS
17854fi
17855echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17856echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17857if test $ac_cv_lib_dld_shl_load = yes; then
17858 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17859else
17860 echo "$as_me:$LINENO: checking for dlopen" >&5
17861echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17862if test "${ac_cv_func_dlopen+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17864else
17865 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017866/* confdefs.h. */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017871/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17873#define dlopen innocuous_dlopen
17874
John Criswell47fdd832003-07-14 16:52:07 +000017875/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017876 which can conflict with char dlopen (); below.
17877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17878 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017879
John Criswell0c38eaf2003-09-10 15:17:25 +000017880#ifdef __STDC__
17881# include <limits.h>
17882#else
17883# include <assert.h>
17884#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017885
17886#undef dlopen
17887
John Criswell47fdd832003-07-14 16:52:07 +000017888/* Override any gcc2 internal prototype to avoid an error. */
17889#ifdef __cplusplus
17890extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017891{
John Criswell47fdd832003-07-14 16:52:07 +000017892#endif
17893/* We use char because int might match the return type of a gcc2
17894 builtin and then its argument prototype would still apply. */
17895char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017896/* The GNU C library defines this for functions which it implements
17897 to always fail with ENOSYS. Some functions are actually named
17898 something starting with __ and the normal name is an alias. */
17899#if defined (__stub_dlopen) || defined (__stub___dlopen)
17900choke me
17901#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017902char (*f) () = dlopen;
17903#endif
17904#ifdef __cplusplus
17905}
John Criswell47fdd832003-07-14 16:52:07 +000017906#endif
17907
John Criswell0c38eaf2003-09-10 15:17:25 +000017908int
17909main ()
17910{
17911return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017912 ;
17913 return 0;
17914}
17915_ACEOF
17916rm -f conftest.$ac_objext conftest$ac_exeext
17917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017918 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017919 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017925 { ac_try='test -z "$ac_cxx_werror_flag"
17926 || test ! -s conftest.err'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; } &&
17932 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; }; then
17938 ac_cv_func_dlopen=yes
17939else
17940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017941sed 's/^/| /' conftest.$ac_ext >&5
17942
John Criswell47fdd832003-07-14 16:52:07 +000017943ac_cv_func_dlopen=no
17944fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017945rm -f conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017947fi
17948echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17949echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17950if test $ac_cv_func_dlopen = yes; then
17951 lt_cv_dlopen="dlopen"
17952else
17953 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17954echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17955if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957else
17958 ac_check_lib_save_LIBS=$LIBS
17959LIBS="-ldl $LIBS"
17960cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017961/* confdefs.h. */
17962_ACEOF
17963cat confdefs.h >>conftest.$ac_ext
17964cat >>conftest.$ac_ext <<_ACEOF
17965/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017966
17967/* Override any gcc2 internal prototype to avoid an error. */
17968#ifdef __cplusplus
17969extern "C"
17970#endif
17971/* We use char because int might match the return type of a gcc2
17972 builtin and then its argument prototype would still apply. */
17973char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017974int
17975main ()
17976{
17977dlopen ();
17978 ;
17979 return 0;
17980}
17981_ACEOF
17982rm -f conftest.$ac_objext conftest$ac_exeext
17983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017984 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017991 { ac_try='test -z "$ac_cxx_werror_flag"
17992 || test ! -s conftest.err'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_cv_lib_dl_dlopen=yes
18005else
18006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018007sed 's/^/| /' conftest.$ac_ext >&5
18008
John Criswell47fdd832003-07-14 16:52:07 +000018009ac_cv_lib_dl_dlopen=no
18010fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018011rm -f conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018013LIBS=$ac_check_lib_save_LIBS
18014fi
18015echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18016echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18017if test $ac_cv_lib_dl_dlopen = yes; then
18018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18019else
18020 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18021echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18022if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18024else
18025 ac_check_lib_save_LIBS=$LIBS
18026LIBS="-lsvld $LIBS"
18027cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018028/* confdefs.h. */
18029_ACEOF
18030cat confdefs.h >>conftest.$ac_ext
18031cat >>conftest.$ac_ext <<_ACEOF
18032/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018033
18034/* Override any gcc2 internal prototype to avoid an error. */
18035#ifdef __cplusplus
18036extern "C"
18037#endif
18038/* We use char because int might match the return type of a gcc2
18039 builtin and then its argument prototype would still apply. */
18040char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018041int
18042main ()
18043{
18044dlopen ();
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049rm -f conftest.$ac_objext conftest$ac_exeext
18050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018051 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018058 { ac_try='test -z "$ac_cxx_werror_flag"
18059 || test ! -s conftest.err'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; } &&
18065 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_cv_lib_svld_dlopen=yes
18072else
18073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018074sed 's/^/| /' conftest.$ac_ext >&5
18075
John Criswell47fdd832003-07-14 16:52:07 +000018076ac_cv_lib_svld_dlopen=no
18077fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018078rm -f conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018080LIBS=$ac_check_lib_save_LIBS
18081fi
18082echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18083echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18084if test $ac_cv_lib_svld_dlopen = yes; then
18085 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18086else
18087 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18088echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18089if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091else
18092 ac_check_lib_save_LIBS=$LIBS
18093LIBS="-ldld $LIBS"
18094cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018095/* confdefs.h. */
18096_ACEOF
18097cat confdefs.h >>conftest.$ac_ext
18098cat >>conftest.$ac_ext <<_ACEOF
18099/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018100
18101/* Override any gcc2 internal prototype to avoid an error. */
18102#ifdef __cplusplus
18103extern "C"
18104#endif
18105/* We use char because int might match the return type of a gcc2
18106 builtin and then its argument prototype would still apply. */
18107char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018108int
18109main ()
18110{
18111dld_link ();
18112 ;
18113 return 0;
18114}
18115_ACEOF
18116rm -f conftest.$ac_objext conftest$ac_exeext
18117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018118 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018119 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018125 { ac_try='test -z "$ac_cxx_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_lib_dld_dld_link=yes
18139else
18140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018141sed 's/^/| /' conftest.$ac_ext >&5
18142
John Criswell47fdd832003-07-14 16:52:07 +000018143ac_cv_lib_dld_dld_link=no
18144fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018145rm -f conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018147LIBS=$ac_check_lib_save_LIBS
18148fi
18149echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18150echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18151if test $ac_cv_lib_dld_dld_link = yes; then
18152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18153fi
18154
18155
18156fi
18157
18158
18159fi
18160
18161
18162fi
18163
18164
18165fi
18166
18167
18168fi
18169
18170 ;;
18171 esac
18172
18173 if test "x$lt_cv_dlopen" != xno; then
18174 enable_dlopen=yes
18175 else
18176 enable_dlopen=no
18177 fi
18178
18179 case $lt_cv_dlopen in
18180 dlopen)
18181 save_CPPFLAGS="$CPPFLAGS"
18182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18183
18184 save_LDFLAGS="$LDFLAGS"
18185 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18186
18187 save_LIBS="$LIBS"
18188 LIBS="$lt_cv_dlopen_libs $LIBS"
18189
18190 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18191echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18192if test "${lt_cv_dlopen_self+set}" = set; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18194else
18195 if test "$cross_compiling" = yes; then :
18196 lt_cv_dlopen_self=cross
18197else
18198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18199 lt_status=$lt_dlunknown
18200 cat > conftest.$ac_ext <<EOF
Reid Spencerc28ccd82006-04-09 20:42:14 +000018201#line 18201 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018202#include "confdefs.h"
18203
18204#if HAVE_DLFCN_H
18205#include <dlfcn.h>
18206#endif
18207
18208#include <stdio.h>
18209
18210#ifdef RTLD_GLOBAL
18211# define LT_DLGLOBAL RTLD_GLOBAL
18212#else
18213# ifdef DL_GLOBAL
18214# define LT_DLGLOBAL DL_GLOBAL
18215# else
18216# define LT_DLGLOBAL 0
18217# endif
18218#endif
18219
18220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18221 find out it does not work in some platform. */
18222#ifndef LT_DLLAZY_OR_NOW
18223# ifdef RTLD_LAZY
18224# define LT_DLLAZY_OR_NOW RTLD_LAZY
18225# else
18226# ifdef DL_LAZY
18227# define LT_DLLAZY_OR_NOW DL_LAZY
18228# else
18229# ifdef RTLD_NOW
18230# define LT_DLLAZY_OR_NOW RTLD_NOW
18231# else
18232# ifdef DL_NOW
18233# define LT_DLLAZY_OR_NOW DL_NOW
18234# else
18235# define LT_DLLAZY_OR_NOW 0
18236# endif
18237# endif
18238# endif
18239# endif
18240#endif
18241
18242#ifdef __cplusplus
18243extern "C" void exit (int);
18244#endif
18245
18246void fnord() { int i=42;}
18247int main ()
18248{
18249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18250 int status = $lt_dlunknown;
18251
18252 if (self)
18253 {
18254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18256 /* dlclose (self); */
18257 }
18258
18259 exit (status);
18260}
18261EOF
18262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263 (eval $ac_link) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18267 (./conftest; exit; ) 2>/dev/null
18268 lt_status=$?
18269 case x$lt_status in
18270 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18271 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18272 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18273 esac
18274 else :
18275 # compilation failed
18276 lt_cv_dlopen_self=no
18277 fi
18278fi
18279rm -fr conftest*
18280
18281
18282fi
18283echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18284echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18285
18286 if test "x$lt_cv_dlopen_self" = xyes; then
18287 LDFLAGS="$LDFLAGS $link_static_flag"
18288 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18289echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18290if test "${lt_cv_dlopen_self_static+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18292else
18293 if test "$cross_compiling" = yes; then :
18294 lt_cv_dlopen_self_static=cross
18295else
18296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18297 lt_status=$lt_dlunknown
18298 cat > conftest.$ac_ext <<EOF
Reid Spencerc28ccd82006-04-09 20:42:14 +000018299#line 18299 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018300#include "confdefs.h"
18301
18302#if HAVE_DLFCN_H
18303#include <dlfcn.h>
18304#endif
18305
18306#include <stdio.h>
18307
18308#ifdef RTLD_GLOBAL
18309# define LT_DLGLOBAL RTLD_GLOBAL
18310#else
18311# ifdef DL_GLOBAL
18312# define LT_DLGLOBAL DL_GLOBAL
18313# else
18314# define LT_DLGLOBAL 0
18315# endif
18316#endif
18317
18318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18319 find out it does not work in some platform. */
18320#ifndef LT_DLLAZY_OR_NOW
18321# ifdef RTLD_LAZY
18322# define LT_DLLAZY_OR_NOW RTLD_LAZY
18323# else
18324# ifdef DL_LAZY
18325# define LT_DLLAZY_OR_NOW DL_LAZY
18326# else
18327# ifdef RTLD_NOW
18328# define LT_DLLAZY_OR_NOW RTLD_NOW
18329# else
18330# ifdef DL_NOW
18331# define LT_DLLAZY_OR_NOW DL_NOW
18332# else
18333# define LT_DLLAZY_OR_NOW 0
18334# endif
18335# endif
18336# endif
18337# endif
18338#endif
18339
18340#ifdef __cplusplus
18341extern "C" void exit (int);
18342#endif
18343
18344void fnord() { int i=42;}
18345int main ()
18346{
18347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18348 int status = $lt_dlunknown;
18349
18350 if (self)
18351 {
18352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18354 /* dlclose (self); */
18355 }
18356
18357 exit (status);
18358}
18359EOF
18360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361 (eval $ac_link) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18365 (./conftest; exit; ) 2>/dev/null
18366 lt_status=$?
18367 case x$lt_status in
18368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18370 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18371 esac
18372 else :
18373 # compilation failed
18374 lt_cv_dlopen_self_static=no
18375 fi
18376fi
18377rm -fr conftest*
18378
18379
18380fi
18381echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18382echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18383 fi
18384
18385 CPPFLAGS="$save_CPPFLAGS"
18386 LDFLAGS="$save_LDFLAGS"
18387 LIBS="$save_LIBS"
18388 ;;
18389 esac
18390
18391 case $lt_cv_dlopen_self in
18392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18393 *) enable_dlopen_self=unknown ;;
18394 esac
18395
18396 case $lt_cv_dlopen_self_static in
18397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18398 *) enable_dlopen_self_static=unknown ;;
18399 esac
18400fi
18401
18402
18403# The else clause should only fire when bootstrapping the
18404# libtool distribution, otherwise you forgot to ship ltmain.sh
18405# with your package, and you will get complaints that there are
18406# no rules to generate ltmain.sh.
18407if test -f "$ltmain"; then
18408 # See if we are running on zsh, and set the options which allow our commands through
18409 # without removal of \ escapes.
18410 if test -n "${ZSH_VERSION+set}" ; then
18411 setopt NO_GLOB_SUBST
18412 fi
18413 # Now quote all the things that may contain metacharacters while being
18414 # careful not to overquote the AC_SUBSTed values. We take copies of the
18415 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18417 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18420 deplibs_check_method reload_flag reload_cmds need_locks \
18421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18422 lt_cv_sys_global_symbol_to_c_name_address \
18423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18424 old_postinstall_cmds old_postuninstall_cmds \
18425 compiler_CXX \
18426 CC_CXX \
18427 LD_CXX \
18428 lt_prog_compiler_wl_CXX \
18429 lt_prog_compiler_pic_CXX \
18430 lt_prog_compiler_static_CXX \
18431 lt_prog_compiler_no_builtin_flag_CXX \
18432 export_dynamic_flag_spec_CXX \
18433 thread_safe_flag_spec_CXX \
18434 whole_archive_flag_spec_CXX \
18435 enable_shared_with_static_runtimes_CXX \
18436 old_archive_cmds_CXX \
18437 old_archive_from_new_cmds_CXX \
18438 predep_objects_CXX \
18439 postdep_objects_CXX \
18440 predeps_CXX \
18441 postdeps_CXX \
18442 compiler_lib_search_path_CXX \
18443 archive_cmds_CXX \
18444 archive_expsym_cmds_CXX \
18445 postinstall_cmds_CXX \
18446 postuninstall_cmds_CXX \
18447 old_archive_from_expsyms_cmds_CXX \
18448 allow_undefined_flag_CXX \
18449 no_undefined_flag_CXX \
18450 export_symbols_cmds_CXX \
18451 hardcode_libdir_flag_spec_CXX \
18452 hardcode_libdir_flag_spec_ld_CXX \
18453 hardcode_libdir_separator_CXX \
18454 hardcode_automatic_CXX \
18455 module_cmds_CXX \
18456 module_expsym_cmds_CXX \
18457 lt_cv_prog_compiler_c_o_CXX \
18458 exclude_expsyms_CXX \
18459 include_expsyms_CXX; do
18460
18461 case $var in
18462 old_archive_cmds_CXX | \
18463 old_archive_from_new_cmds_CXX | \
18464 archive_cmds_CXX | \
18465 archive_expsym_cmds_CXX | \
18466 module_cmds_CXX | \
18467 module_expsym_cmds_CXX | \
18468 old_archive_from_expsyms_cmds_CXX | \
18469 export_symbols_cmds_CXX | \
18470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18471 postinstall_cmds | postuninstall_cmds | \
18472 old_postinstall_cmds | old_postuninstall_cmds | \
18473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18474 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018475 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 +000018476 ;;
18477 *)
18478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18479 ;;
18480 esac
18481 done
18482
18483 case $lt_echo in
18484 *'\$0 --fallback-echo"')
18485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18486 ;;
18487 esac
18488
18489cfgfile="$ofile"
18490
18491 cat <<__EOF__ >> "$cfgfile"
18492# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18493
18494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18495
18496# Shell to use when invoking shell scripts.
18497SHELL=$lt_SHELL
18498
18499# Whether or not to build shared libraries.
18500build_libtool_libs=$enable_shared
18501
18502# Whether or not to build static libraries.
18503build_old_libs=$enable_static
18504
18505# Whether or not to add -lc for building shared libraries.
18506build_libtool_need_lc=$archive_cmds_need_lc_CXX
18507
18508# Whether or not to disallow shared libs when runtime libs are static
18509allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18510
18511# Whether or not to optimize for fast installation.
18512fast_install=$enable_fast_install
18513
18514# The host system.
18515host_alias=$host_alias
18516host=$host
18517
18518# An echo program that does not interpret backslashes.
18519echo=$lt_echo
18520
18521# The archiver.
18522AR=$lt_AR
18523AR_FLAGS=$lt_AR_FLAGS
18524
18525# A C compiler.
18526LTCC=$lt_LTCC
18527
18528# A language-specific compiler.
18529CC=$lt_compiler_CXX
18530
18531# Is the compiler the GNU C compiler?
18532with_gcc=$GCC_CXX
18533
18534# An ERE matcher.
18535EGREP=$lt_EGREP
18536
18537# The linker used to build libraries.
18538LD=$lt_LD_CXX
18539
18540# Whether we need hard or soft links.
18541LN_S=$lt_LN_S
18542
18543# A BSD-compatible nm program.
18544NM=$lt_NM
18545
18546# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018547STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018548
18549# Used to examine libraries when file_magic_cmd begins "file"
18550MAGIC_CMD=$MAGIC_CMD
18551
18552# Used on cygwin: DLL creation program.
18553DLLTOOL="$DLLTOOL"
18554
18555# Used on cygwin: object dumper.
18556OBJDUMP="$OBJDUMP"
18557
18558# Used on cygwin: assembler.
18559AS="$AS"
18560
18561# The name of the directory that contains temporary libtool files.
18562objdir=$objdir
18563
18564# How to create reloadable object files.
18565reload_flag=$lt_reload_flag
18566reload_cmds=$lt_reload_cmds
18567
18568# How to pass a linker flag through the compiler.
18569wl=$lt_lt_prog_compiler_wl_CXX
18570
18571# Object file suffix (normally "o").
18572objext="$ac_objext"
18573
18574# Old archive suffix (normally "a").
18575libext="$libext"
18576
18577# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018578shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018579
18580# Executable file suffix (normally "").
18581exeext="$exeext"
18582
18583# Additional compiler flags for building library objects.
18584pic_flag=$lt_lt_prog_compiler_pic_CXX
18585pic_mode=$pic_mode
18586
18587# What is the maximum length of a command?
18588max_cmd_len=$lt_cv_sys_max_cmd_len
18589
18590# Does compiler simultaneously support -c and -o options?
18591compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18592
18593# Must we lock files when doing compilation ?
18594need_locks=$lt_need_locks
18595
18596# Do we need the lib prefix for modules?
18597need_lib_prefix=$need_lib_prefix
18598
18599# Do we need a version for libraries?
18600need_version=$need_version
18601
18602# Whether dlopen is supported.
18603dlopen_support=$enable_dlopen
18604
18605# Whether dlopen of programs is supported.
18606dlopen_self=$enable_dlopen_self
18607
18608# Whether dlopen of statically linked programs is supported.
18609dlopen_self_static=$enable_dlopen_self_static
18610
18611# Compiler flag to prevent dynamic linking.
18612link_static_flag=$lt_lt_prog_compiler_static_CXX
18613
18614# Compiler flag to turn off builtin functions.
18615no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18616
18617# Compiler flag to allow reflexive dlopens.
18618export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18619
18620# Compiler flag to generate shared objects directly from archives.
18621whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18622
18623# Compiler flag to generate thread-safe objects.
18624thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18625
18626# Library versioning type.
18627version_type=$version_type
18628
18629# Format of library name prefix.
18630libname_spec=$lt_libname_spec
18631
18632# List of archive names. First name is the real one, the rest are links.
18633# The last name is the one that the linker finds with -lNAME.
18634library_names_spec=$lt_library_names_spec
18635
18636# The coded name of the library, if different from the real name.
18637soname_spec=$lt_soname_spec
18638
18639# Commands used to build and install an old-style archive.
18640RANLIB=$lt_RANLIB
18641old_archive_cmds=$lt_old_archive_cmds_CXX
18642old_postinstall_cmds=$lt_old_postinstall_cmds
18643old_postuninstall_cmds=$lt_old_postuninstall_cmds
18644
18645# Create an old-style archive from a shared archive.
18646old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18647
18648# Create a temporary old-style archive to link instead of a shared archive.
18649old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18650
18651# Commands used to build and install a shared archive.
18652archive_cmds=$lt_archive_cmds_CXX
18653archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18654postinstall_cmds=$lt_postinstall_cmds
18655postuninstall_cmds=$lt_postuninstall_cmds
18656
18657# Commands used to build a loadable module (assumed same as above if empty)
18658module_cmds=$lt_module_cmds_CXX
18659module_expsym_cmds=$lt_module_expsym_cmds_CXX
18660
18661# Commands to strip libraries.
18662old_striplib=$lt_old_striplib
18663striplib=$lt_striplib
18664
18665# Dependencies to place before the objects being linked to create a
18666# shared library.
18667predep_objects=$lt_predep_objects_CXX
18668
18669# Dependencies to place after the objects being linked to create a
18670# shared library.
18671postdep_objects=$lt_postdep_objects_CXX
18672
18673# Dependencies to place before the objects being linked to create a
18674# shared library.
18675predeps=$lt_predeps_CXX
18676
18677# Dependencies to place after the objects being linked to create a
18678# shared library.
18679postdeps=$lt_postdeps_CXX
18680
18681# The library search path used internally by the compiler when linking
18682# a shared library.
18683compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18684
18685# Method to check whether dependent libraries are shared objects.
18686deplibs_check_method=$lt_deplibs_check_method
18687
18688# Command to use when deplibs_check_method == file_magic.
18689file_magic_cmd=$lt_file_magic_cmd
18690
18691# Flag that allows shared libraries with undefined symbols to be built.
18692allow_undefined_flag=$lt_allow_undefined_flag_CXX
18693
18694# Flag that forces no undefined symbols.
18695no_undefined_flag=$lt_no_undefined_flag_CXX
18696
18697# Commands used to finish a libtool library installation in a directory.
18698finish_cmds=$lt_finish_cmds
18699
18700# Same as above, but a single script fragment to be evaled but not shown.
18701finish_eval=$lt_finish_eval
18702
18703# Take the output of nm and produce a listing of raw symbols and C names.
18704global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18705
18706# Transform the output of nm in a proper C declaration
18707global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18708
18709# Transform the output of nm in a C name address pair
18710global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18711
18712# This is the shared library runtime path variable.
18713runpath_var=$runpath_var
18714
18715# This is the shared library path variable.
18716shlibpath_var=$shlibpath_var
18717
18718# Is shlibpath searched before the hard-coded library search path?
18719shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18720
18721# How to hardcode a shared library path into an executable.
18722hardcode_action=$hardcode_action_CXX
18723
18724# Whether we should hardcode library paths into libraries.
18725hardcode_into_libs=$hardcode_into_libs
18726
18727# Flag to hardcode \$libdir into a binary during linking.
18728# This must work even if \$libdir does not exist.
18729hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18730
18731# If ld is used when linking, flag to hardcode \$libdir into
18732# a binary during linking. This must work even if \$libdir does
18733# not exist.
18734hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18735
18736# Whether we need a single -rpath flag with a separated argument.
18737hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18738
18739# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18740# resulting binary.
18741hardcode_direct=$hardcode_direct_CXX
18742
18743# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18744# resulting binary.
18745hardcode_minus_L=$hardcode_minus_L_CXX
18746
18747# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18748# the resulting binary.
18749hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18750
18751# Set to yes if building a shared library automatically hardcodes DIR into the library
18752# and all subsequent libraries and executables linked against it.
18753hardcode_automatic=$hardcode_automatic_CXX
18754
18755# Variables whose values should be saved in libtool wrapper scripts and
18756# restored at relink time.
18757variables_saved_for_relink="$variables_saved_for_relink"
18758
18759# Whether libtool must link a program against all its dependency libraries.
18760link_all_deplibs=$link_all_deplibs_CXX
18761
18762# Compile-time system search path for libraries
18763sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18764
18765# Run-time system search path for libraries
18766sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18767
18768# Fix the shell variable \$srcfile for the compiler.
18769fix_srcfile_path="$fix_srcfile_path_CXX"
18770
18771# Set to yes if exported symbols are required.
18772always_export_symbols=$always_export_symbols_CXX
18773
18774# The commands to list exported symbols.
18775export_symbols_cmds=$lt_export_symbols_cmds_CXX
18776
18777# The commands to extract the exported symbol list from a shared archive.
18778extract_expsyms_cmds=$lt_extract_expsyms_cmds
18779
18780# Symbols that should not be listed in the preloaded symbols.
18781exclude_expsyms=$lt_exclude_expsyms_CXX
18782
18783# Symbols that must always be exported.
18784include_expsyms=$lt_include_expsyms_CXX
18785
18786# ### END LIBTOOL TAG CONFIG: $tagname
18787
18788__EOF__
18789
18790
18791else
18792 # If there is no Makefile yet, we rely on a make rule to execute
18793 # `config.status --recheck' to rerun these tests and create the
18794 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018795 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18796 if test -f "$ltmain_in"; then
18797 test -f Makefile && make "$ltmain"
18798 fi
John Criswell47fdd832003-07-14 16:52:07 +000018799fi
18800
18801
18802ac_ext=c
18803ac_cpp='$CPP $CPPFLAGS'
18804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18806ac_compiler_gnu=$ac_cv_c_compiler_gnu
18807
18808CC=$lt_save_CC
18809LDCXX=$LD
18810LD=$lt_save_LD
18811GCC=$lt_save_GCC
18812with_gnu_ldcxx=$with_gnu_ld
18813with_gnu_ld=$lt_save_with_gnu_ld
18814lt_cv_path_LDCXX=$lt_cv_path_LD
18815lt_cv_path_LD=$lt_save_path_LD
18816lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18817lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18818
18819 else
18820 tagname=""
18821 fi
18822 ;;
18823
18824 F77)
18825 if test -n "$F77" && test "X$F77" != "Xno"; then
18826
18827ac_ext=f
18828ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18829ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18831
18832
18833archive_cmds_need_lc_F77=no
18834allow_undefined_flag_F77=
18835always_export_symbols_F77=no
18836archive_expsym_cmds_F77=
18837export_dynamic_flag_spec_F77=
18838hardcode_direct_F77=no
18839hardcode_libdir_flag_spec_F77=
18840hardcode_libdir_flag_spec_ld_F77=
18841hardcode_libdir_separator_F77=
18842hardcode_minus_L_F77=no
18843hardcode_automatic_F77=no
18844module_cmds_F77=
18845module_expsym_cmds_F77=
18846link_all_deplibs_F77=unknown
18847old_archive_cmds_F77=$old_archive_cmds
18848no_undefined_flag_F77=
18849whole_archive_flag_spec_F77=
18850enable_shared_with_static_runtimes_F77=no
18851
18852# Source file extension for f77 test sources.
18853ac_ext=f
18854
18855# Object file extension for compiled f77 test sources.
18856objext=o
18857objext_F77=$objext
18858
18859# Code to be used in simple compile tests
18860lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18861
18862# Code to be used in simple link tests
18863lt_simple_link_test_code=" program t\n end\n"
18864
18865# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18866
18867# If no C compiler was specified, use CC.
18868LTCC=${LTCC-"$CC"}
18869
18870# Allow CC to be a program name with arguments.
18871compiler=$CC
18872
18873
18874# Allow CC to be a program name with arguments.
18875lt_save_CC="$CC"
18876CC=${F77-"f77"}
18877compiler=$CC
18878compiler_F77=$CC
18879cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18880
18881echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18882echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18883echo "$as_me:$LINENO: result: $can_build_shared" >&5
18884echo "${ECHO_T}$can_build_shared" >&6
18885
18886echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18887echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18888test "$can_build_shared" = "no" && enable_shared=no
18889
18890# On AIX, shared libraries and static libraries use the same namespace, and
18891# are all built from PIC.
18892case "$host_os" in
18893aix3*)
18894 test "$enable_shared" = yes && enable_static=no
18895 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018896 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018897 postinstall_cmds='$RANLIB $lib'
18898 fi
18899 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018900aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018901 test "$enable_shared" = yes && enable_static=no
18902 ;;
18903esac
18904echo "$as_me:$LINENO: result: $enable_shared" >&5
18905echo "${ECHO_T}$enable_shared" >&6
18906
18907echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18908echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18909# Make sure either enable_shared or enable_static is yes.
18910test "$enable_shared" = yes || enable_static=yes
18911echo "$as_me:$LINENO: result: $enable_static" >&5
18912echo "${ECHO_T}$enable_static" >&6
18913
18914test "$ld_shlibs_F77" = no && can_build_shared=no
18915
18916GCC_F77="$G77"
18917LD_F77="$LD"
18918
18919lt_prog_compiler_wl_F77=
18920lt_prog_compiler_pic_F77=
18921lt_prog_compiler_static_F77=
18922
18923echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18924echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18925
18926 if test "$GCC" = yes; then
18927 lt_prog_compiler_wl_F77='-Wl,'
18928 lt_prog_compiler_static_F77='-static'
18929
18930 case $host_os in
18931 aix*)
18932 # All AIX code is PIC.
18933 if test "$host_cpu" = ia64; then
18934 # AIX 5 now supports IA64 processor
18935 lt_prog_compiler_static_F77='-Bstatic'
18936 fi
18937 ;;
18938
18939 amigaos*)
18940 # FIXME: we need at least 68020 code to build shared libraries, but
18941 # adding the `-m68020' flag to GCC prevents building anything better,
18942 # like `-m68040'.
18943 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18944 ;;
18945
18946 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18947 # PIC is the default for these OSes.
18948 ;;
18949
18950 mingw* | pw32* | os2*)
18951 # This hack is so that the source file can tell whether it is being
18952 # built for inclusion in a dll (and should export symbols for example).
18953 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18954 ;;
18955
18956 darwin* | rhapsody*)
18957 # PIC is the default on this platform
18958 # Common symbols not allowed in MH_DYLIB files
18959 lt_prog_compiler_pic_F77='-fno-common'
18960 ;;
18961
18962 msdosdjgpp*)
18963 # Just because we use GCC doesn't mean we suddenly get shared libraries
18964 # on systems that don't support them.
18965 lt_prog_compiler_can_build_shared_F77=no
18966 enable_shared=no
18967 ;;
18968
18969 sysv4*MP*)
18970 if test -d /usr/nec; then
18971 lt_prog_compiler_pic_F77=-Kconform_pic
18972 fi
18973 ;;
18974
18975 hpux*)
18976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18977 # not for PA HP-UX.
18978 case "$host_cpu" in
18979 hppa*64*|ia64*)
18980 # +Z the default
18981 ;;
18982 *)
18983 lt_prog_compiler_pic_F77='-fPIC'
18984 ;;
18985 esac
18986 ;;
18987
18988 *)
18989 lt_prog_compiler_pic_F77='-fPIC'
18990 ;;
18991 esac
18992 else
18993 # PORTME Check for flag to pass linker flags through the system compiler.
18994 case $host_os in
18995 aix*)
18996 lt_prog_compiler_wl_F77='-Wl,'
18997 if test "$host_cpu" = ia64; then
18998 # AIX 5 now supports IA64 processor
18999 lt_prog_compiler_static_F77='-Bstatic'
19000 else
19001 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19002 fi
19003 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019004 darwin*)
19005 # PIC is the default on this platform
19006 # Common symbols not allowed in MH_DYLIB files
19007 case "$cc_basename" in
19008 xlc*)
19009 lt_prog_compiler_pic_F77='-qnocommon'
19010 lt_prog_compiler_wl_F77='-Wl,'
19011 ;;
19012 esac
19013 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019014
19015 mingw* | pw32* | os2*)
19016 # This hack is so that the source file can tell whether it is being
19017 # built for inclusion in a dll (and should export symbols for example).
19018 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19019 ;;
19020
19021 hpux9* | hpux10* | hpux11*)
19022 lt_prog_compiler_wl_F77='-Wl,'
19023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19024 # not for PA HP-UX.
19025 case "$host_cpu" in
19026 hppa*64*|ia64*)
19027 # +Z the default
19028 ;;
19029 *)
19030 lt_prog_compiler_pic_F77='+Z'
19031 ;;
19032 esac
19033 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19034 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19035 ;;
19036
19037 irix5* | irix6* | nonstopux*)
19038 lt_prog_compiler_wl_F77='-Wl,'
19039 # PIC (with -KPIC) is the default.
19040 lt_prog_compiler_static_F77='-non_shared'
19041 ;;
19042
19043 newsos6)
19044 lt_prog_compiler_pic_F77='-KPIC'
19045 lt_prog_compiler_static_F77='-Bstatic'
19046 ;;
19047
19048 linux*)
19049 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019050 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019051 lt_prog_compiler_wl_F77='-Wl,'
19052 lt_prog_compiler_pic_F77='-KPIC'
19053 lt_prog_compiler_static_F77='-static'
19054 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019055 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019056 lt_prog_compiler_wl_F77='-Wl,'
19057 # All Alpha code is PIC.
19058 lt_prog_compiler_static_F77='-non_shared'
19059 ;;
19060 esac
19061 ;;
19062
19063 osf3* | osf4* | osf5*)
19064 lt_prog_compiler_wl_F77='-Wl,'
19065 # All OSF/1 code is PIC.
19066 lt_prog_compiler_static_F77='-non_shared'
19067 ;;
19068
19069 sco3.2v5*)
19070 lt_prog_compiler_pic_F77='-Kpic'
19071 lt_prog_compiler_static_F77='-dn'
19072 ;;
19073
19074 solaris*)
19075 lt_prog_compiler_wl_F77='-Wl,'
19076 lt_prog_compiler_pic_F77='-KPIC'
19077 lt_prog_compiler_static_F77='-Bstatic'
19078 ;;
19079
19080 sunos4*)
19081 lt_prog_compiler_wl_F77='-Qoption ld '
19082 lt_prog_compiler_pic_F77='-PIC'
19083 lt_prog_compiler_static_F77='-Bstatic'
19084 ;;
19085
19086 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19087 lt_prog_compiler_wl_F77='-Wl,'
19088 lt_prog_compiler_pic_F77='-KPIC'
19089 lt_prog_compiler_static_F77='-Bstatic'
19090 ;;
19091
19092 sysv4*MP*)
19093 if test -d /usr/nec ;then
19094 lt_prog_compiler_pic_F77='-Kconform_pic'
19095 lt_prog_compiler_static_F77='-Bstatic'
19096 fi
19097 ;;
19098
19099 uts4*)
19100 lt_prog_compiler_pic_F77='-pic'
19101 lt_prog_compiler_static_F77='-Bstatic'
19102 ;;
19103
19104 *)
19105 lt_prog_compiler_can_build_shared_F77=no
19106 ;;
19107 esac
19108 fi
19109
19110echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19111echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19112
19113#
19114# Check to make sure the PIC flag actually works.
19115#
19116if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019117
19118echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019119echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19120if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19122else
19123 lt_prog_compiler_pic_works_F77=no
19124 ac_outfile=conftest.$ac_objext
19125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19126 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19127 # Insert the option either (1) after the last *FLAGS variable, or
19128 # (2) before a word containing "conftest.", or (3) at the end.
19129 # Note that $ac_compile itself does not contain backslashes and begins
19130 # with a dollar sign (not a hyphen), so the echo should work correctly.
19131 # The option is referenced via a variable to avoid confusing sed.
19132 lt_compile=`echo "$ac_compile" | $SED \
19133 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19135 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000019136 (eval echo "\"\$as_me:19136: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019137 (eval "$lt_compile" 2>conftest.err)
19138 ac_status=$?
19139 cat conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000019140 echo "$as_me:19140: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019141 if (exit $ac_status) && test -s "$ac_outfile"; then
19142 # The compiler can only warn and ignore the option if not recognized
19143 # So say no if there are warnings
19144 if test ! -s conftest.err; then
19145 lt_prog_compiler_pic_works_F77=yes
19146 fi
19147 fi
19148 $rm conftest*
19149
19150fi
19151echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19152echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19153
19154if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19155 case $lt_prog_compiler_pic_F77 in
19156 "" | " "*) ;;
19157 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19158 esac
19159else
19160 lt_prog_compiler_pic_F77=
19161 lt_prog_compiler_can_build_shared_F77=no
19162fi
19163
19164fi
19165case "$host_os" in
19166 # For platforms which do not support PIC, -DPIC is meaningless:
19167 *djgpp*)
19168 lt_prog_compiler_pic_F77=
19169 ;;
19170 *)
19171 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19172 ;;
19173esac
19174
19175echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19176echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19177if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19179else
19180 lt_cv_prog_compiler_c_o_F77=no
19181 $rm -r conftest 2>/dev/null
19182 mkdir conftest
19183 cd conftest
19184 mkdir out
19185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19186
John Criswell47fdd832003-07-14 16:52:07 +000019187 lt_compiler_flag="-o out/conftest2.$ac_objext"
19188 # Insert the option either (1) after the last *FLAGS variable, or
19189 # (2) before a word containing "conftest.", or (3) at the end.
19190 # Note that $ac_compile itself does not contain backslashes and begins
19191 # with a dollar sign (not a hyphen), so the echo should work correctly.
19192 lt_compile=`echo "$ac_compile" | $SED \
19193 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19195 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000019196 (eval echo "\"\$as_me:19196: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019197 (eval "$lt_compile" 2>out/conftest.err)
19198 ac_status=$?
19199 cat out/conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000019200 echo "$as_me:19200: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19202 then
19203 # The compiler can only warn and ignore the option if not recognized
19204 # So say no if there are warnings
19205 if test ! -s out/conftest.err; then
19206 lt_cv_prog_compiler_c_o_F77=yes
19207 fi
19208 fi
19209 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019210 $rm conftest*
19211 # SGI C++ compiler will create directory out/ii_files/ for
19212 # template instantiation
19213 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19214 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019215 cd ..
19216 rmdir conftest
19217 $rm conftest*
19218
19219fi
19220echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19221echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19222
19223
19224hard_links="nottested"
19225if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19226 # do not overwrite the value of need_locks provided by the user
19227 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19228echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19229 hard_links=yes
19230 $rm conftest*
19231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19232 touch conftest.a
19233 ln conftest.a conftest.b 2>&5 || hard_links=no
19234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19235 echo "$as_me:$LINENO: result: $hard_links" >&5
19236echo "${ECHO_T}$hard_links" >&6
19237 if test "$hard_links" = no; then
19238 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19239echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19240 need_locks=warn
19241 fi
19242else
19243 need_locks=no
19244fi
19245
19246echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19247echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19248
19249 runpath_var=
19250 allow_undefined_flag_F77=
19251 enable_shared_with_static_runtimes_F77=no
19252 archive_cmds_F77=
19253 archive_expsym_cmds_F77=
19254 old_archive_From_new_cmds_F77=
19255 old_archive_from_expsyms_cmds_F77=
19256 export_dynamic_flag_spec_F77=
19257 whole_archive_flag_spec_F77=
19258 thread_safe_flag_spec_F77=
19259 hardcode_libdir_flag_spec_F77=
19260 hardcode_libdir_flag_spec_ld_F77=
19261 hardcode_libdir_separator_F77=
19262 hardcode_direct_F77=no
19263 hardcode_minus_L_F77=no
19264 hardcode_shlibpath_var_F77=unsupported
19265 link_all_deplibs_F77=unknown
19266 hardcode_automatic_F77=no
19267 module_cmds_F77=
19268 module_expsym_cmds_F77=
19269 always_export_symbols_F77=no
19270 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19271 # include_expsyms should be a list of space-separated symbols to be *always*
19272 # included in the symbol list
19273 include_expsyms_F77=
19274 # exclude_expsyms can be an extended regexp of symbols to exclude
19275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19277 # as well as any symbol that contains `d'.
19278 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19280 # platforms (ab)use it in PIC code, but their linkers get confused if
19281 # the symbol is explicitly referenced. Since portable code cannot
19282 # rely on this symbol name, it's probably fine to never include it in
19283 # preloaded symbol tables.
19284 extract_expsyms_cmds=
19285
19286 case $host_os in
19287 cygwin* | mingw* | pw32*)
19288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19289 # When not using gcc, we currently assume that we are using
19290 # Microsoft Visual C++.
19291 if test "$GCC" != yes; then
19292 with_gnu_ld=no
19293 fi
19294 ;;
19295 openbsd*)
19296 with_gnu_ld=no
19297 ;;
19298 esac
19299
19300 ld_shlibs_F77=yes
19301 if test "$with_gnu_ld" = yes; then
19302 # If archive_cmds runs LD, not CC, wlarc should be empty
19303 wlarc='${wl}'
19304
19305 # See if GNU ld supports shared libraries.
19306 case $host_os in
19307 aix3* | aix4* | aix5*)
19308 # On AIX/PPC, the GNU linker is very broken
19309 if test "$host_cpu" != ia64; then
19310 ld_shlibs_F77=no
19311 cat <<EOF 1>&2
19312
19313*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19314*** to be unable to reliably create shared libraries on AIX.
19315*** Therefore, libtool is disabling shared libraries support. If you
19316*** really care for shared libraries, you may want to modify your PATH
19317*** so that a non-GNU linker is found, and then restart.
19318
19319EOF
19320 fi
19321 ;;
19322
19323 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019324 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 +000019325 hardcode_libdir_flag_spec_F77='-L$libdir'
19326 hardcode_minus_L_F77=yes
19327
19328 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19329 # that the semantics of dynamic libraries on AmigaOS, at least up
19330 # to version 4, is to share data among multiple programs linked
19331 # with the same dynamic library. Since this doesn't match the
19332 # behavior of shared libraries on other platforms, we can't use
19333 # them.
19334 ld_shlibs_F77=no
19335 ;;
19336
19337 beos*)
19338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19339 allow_undefined_flag_F77=unsupported
19340 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19341 # support --undefined. This deserves some investigation. FIXME
19342 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19343 else
19344 ld_shlibs_F77=no
19345 fi
19346 ;;
19347
19348 cygwin* | mingw* | pw32*)
19349 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19350 # as there is no search path for DLLs.
19351 hardcode_libdir_flag_spec_F77='-L$libdir'
19352 allow_undefined_flag_F77=unsupported
19353 always_export_symbols_F77=no
19354 enable_shared_with_static_runtimes_F77=yes
19355 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19356
19357 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19359 # If the export-symbols file already is a .def file (1st line
19360 # is EXPORTS), use it as is; otherwise, prepend...
19361 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19362 cp $export_symbols $output_objdir/$soname.def;
19363 else
19364 echo EXPORTS > $output_objdir/$soname.def;
19365 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019366 fi~
19367 $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 +000019368 else
19369 ld_shlibs=no
19370 fi
19371 ;;
19372
19373 netbsd*)
19374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19375 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19376 wlarc=
19377 else
19378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19380 fi
19381 ;;
19382
19383 solaris* | sysv5*)
19384 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19385 ld_shlibs_F77=no
19386 cat <<EOF 1>&2
19387
19388*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19389*** create shared libraries on Solaris systems. Therefore, libtool
19390*** is disabling shared libraries support. We urge you to upgrade GNU
19391*** binutils to release 2.9.1 or newer. Another option is to modify
19392*** your PATH or compiler configuration so that the native linker is
19393*** used, and then restart.
19394
19395EOF
19396 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19397 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19398 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19399 else
19400 ld_shlibs_F77=no
19401 fi
19402 ;;
19403
19404 sunos4*)
19405 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19406 wlarc=
19407 hardcode_direct_F77=yes
19408 hardcode_shlibpath_var_F77=no
19409 ;;
19410
Reid Spencer2706f8c2004-09-19 23:53:36 +000019411 linux*)
19412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19413 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19414 archive_cmds_F77="$tmp_archive_cmds"
19415 supports_anon_versioning=no
19416 case `$LD -v 2>/dev/null` in
19417 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19420 *\ 2.11.*) ;; # other 2.11 versions
19421 *) supports_anon_versioning=yes ;;
19422 esac
19423 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019424 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19425cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19426$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019427 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19428 else
19429 archive_expsym_cmds_F77="$tmp_archive_cmds"
19430 fi
19431 else
19432 ld_shlibs_F77=no
19433 fi
19434 ;;
19435
John Criswell47fdd832003-07-14 16:52:07 +000019436 *)
19437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19438 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19440 else
19441 ld_shlibs_F77=no
19442 fi
19443 ;;
19444 esac
19445
19446 if test "$ld_shlibs_F77" = yes; then
19447 runpath_var=LD_RUN_PATH
19448 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19449 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19450 # ancient GNU ld didn't support --whole-archive et. al.
19451 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19452 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19453 else
19454 whole_archive_flag_spec_F77=
19455 fi
19456 fi
19457 else
19458 # PORTME fill in a description of your system's linker (not GNU ld)
19459 case $host_os in
19460 aix3*)
19461 allow_undefined_flag_F77=unsupported
19462 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019463 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 +000019464 # Note: this linker hardcodes the directories in LIBPATH if there
19465 # are no directories specified by -L.
19466 hardcode_minus_L_F77=yes
19467 if test "$GCC" = yes && test -z "$link_static_flag"; then
19468 # Neither direct hardcoding nor static linking is supported with a
19469 # broken collect2.
19470 hardcode_direct_F77=unsupported
19471 fi
19472 ;;
19473
19474 aix4* | aix5*)
19475 if test "$host_cpu" = ia64; then
19476 # On IA64, the linker does run time linking by default, so we don't
19477 # have to do anything special.
19478 aix_use_runtimelinking=no
19479 exp_sym_flag='-Bexport'
19480 no_entry_flag=""
19481 else
19482 # If we're using GNU nm, then we don't want the "-C" option.
19483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19484 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19485 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'
19486 else
19487 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'
19488 fi
19489 aix_use_runtimelinking=no
19490
19491 # Test if we are trying to use run time linking or normal
19492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19493 # need to do runtime linking.
19494 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19495 for ld_flag in $LDFLAGS; do
19496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19497 aix_use_runtimelinking=yes
19498 break
19499 fi
19500 done
19501 esac
19502
19503 exp_sym_flag='-bexport'
19504 no_entry_flag='-bnoentry'
19505 fi
19506
19507 # When large executables or shared objects are built, AIX ld can
19508 # have problems creating the table of contents. If linking a library
19509 # or program results in "error TOC overflow" add -mminimal-toc to
19510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19512
19513 archive_cmds_F77=''
19514 hardcode_direct_F77=yes
19515 hardcode_libdir_separator_F77=':'
19516 link_all_deplibs_F77=yes
19517
19518 if test "$GCC" = yes; then
19519 case $host_os in aix4.012|aix4.012.*)
19520 # We only want to do this on AIX 4.2 and lower, the check
19521 # below for broken collect2 doesn't work under 4.3+
19522 collect2name=`${CC} -print-prog-name=collect2`
19523 if test -f "$collect2name" && \
19524 strings "$collect2name" | grep resolve_lib_name >/dev/null
19525 then
19526 # We have reworked collect2
19527 hardcode_direct_F77=yes
19528 else
19529 # We have old collect2
19530 hardcode_direct_F77=unsupported
19531 # It fails to find uninstalled libraries when the uninstalled
19532 # path is not listed in the libpath. Setting hardcode_minus_L
19533 # to unsupported forces relinking
19534 hardcode_minus_L_F77=yes
19535 hardcode_libdir_flag_spec_F77='-L$libdir'
19536 hardcode_libdir_separator_F77=
19537 fi
19538 esac
19539 shared_flag='-shared'
19540 else
19541 # not using gcc
19542 if test "$host_cpu" = ia64; then
19543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19544 # chokes on -Wl,-G. The following line is correct:
19545 shared_flag='-G'
19546 else
19547 if test "$aix_use_runtimelinking" = yes; then
19548 shared_flag='${wl}-G'
19549 else
19550 shared_flag='${wl}-bM:SRE'
19551 fi
19552 fi
19553 fi
19554
19555 # It seems that -bexpall does not export symbols beginning with
19556 # underscore (_), so it is better to generate a list of symbols to export.
19557 always_export_symbols_F77=yes
19558 if test "$aix_use_runtimelinking" = yes; then
19559 # Warning - without using the other runtime loading flags (-brtl),
19560 # -berok will link without error, but may produce a broken library.
19561 allow_undefined_flag_F77='-berok'
19562 # Determine the default libpath from the value encoded in an empty executable.
19563 cat >conftest.$ac_ext <<_ACEOF
19564 program main
19565
19566 end
19567_ACEOF
19568rm -f conftest.$ac_objext conftest$ac_exeext
19569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019570 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019571 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019572 grep -v '^ *+' conftest.er1 >conftest.err
19573 rm -f conftest.er1
19574 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019577 { ac_try='test -z "$ac_f77_werror_flag"
19578 || test ! -s conftest.err'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590
19591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19592}'`
19593# Check for a 64-bit object if we didn't find anything.
19594if 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; }
19595}'`; fi
19596else
19597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019598sed 's/^/| /' conftest.$ac_ext >&5
19599
John Criswell47fdd832003-07-14 16:52:07 +000019600fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019601rm -f conftest.err conftest.$ac_objext \
19602 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19604
19605 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19606 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"
19607 else
19608 if test "$host_cpu" = ia64; then
19609 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19610 allow_undefined_flag_F77="-z nodefs"
19611 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"
19612 else
19613 # Determine the default libpath from the value encoded in an empty executable.
19614 cat >conftest.$ac_ext <<_ACEOF
19615 program main
19616
19617 end
19618_ACEOF
19619rm -f conftest.$ac_objext conftest$ac_exeext
19620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019621 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019622 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019628 { ac_try='test -z "$ac_f77_werror_flag"
19629 || test ! -s conftest.err'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; } &&
19635 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641
19642aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19643}'`
19644# Check for a 64-bit object if we didn't find anything.
19645if 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; }
19646}'`; fi
19647else
19648 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019649sed 's/^/| /' conftest.$ac_ext >&5
19650
John Criswell47fdd832003-07-14 16:52:07 +000019651fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019652rm -f conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019654if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19655
19656 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19657 # Warning - without using the other run time loading flags,
19658 # -berok will link without error, but may produce a broken library.
19659 no_undefined_flag_F77=' ${wl}-bernotok'
19660 allow_undefined_flag_F77=' ${wl}-berok'
19661 # -bexpall does not export symbols beginning with underscore (_)
19662 always_export_symbols_F77=yes
19663 # Exported symbols can be pulled into shared objects from archives
19664 whole_archive_flag_spec_F77=' '
19665 archive_cmds_need_lc_F77=yes
19666 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019667 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 +000019668 fi
19669 fi
19670 ;;
19671
19672 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019673 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 +000019674 hardcode_libdir_flag_spec_F77='-L$libdir'
19675 hardcode_minus_L_F77=yes
19676 # see comment about different semantics on the GNU ld section
19677 ld_shlibs_F77=no
19678 ;;
19679
Reid Spencer2706f8c2004-09-19 23:53:36 +000019680 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019681 export_dynamic_flag_spec_F77=-rdynamic
19682 ;;
19683
19684 cygwin* | mingw* | pw32*)
19685 # When not using gcc, we currently assume that we are using
19686 # Microsoft Visual C++.
19687 # hardcode_libdir_flag_spec is actually meaningless, as there is
19688 # no search path for DLLs.
19689 hardcode_libdir_flag_spec_F77=' '
19690 allow_undefined_flag_F77=unsupported
19691 # Tell ltmain to make .lib files, not .a files.
19692 libext=lib
19693 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019694 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019695 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019696 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 +000019697 # The linker will automatically build a .lib file if we build a DLL.
19698 old_archive_From_new_cmds_F77='true'
19699 # FIXME: Should let the user specify the lib program.
19700 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19701 fix_srcfile_path='`cygpath -w "$srcfile"`'
19702 enable_shared_with_static_runtimes_F77=yes
19703 ;;
19704
19705 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019706 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019707 rhapsody* | darwin1.[012])
19708 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19709 ;;
19710 *) # Darwin 1.3 on
19711 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19712 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19713 else
19714 case ${MACOSX_DEPLOYMENT_TARGET} in
19715 10.[012])
19716 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19717 ;;
19718 10.*)
19719 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19720 ;;
19721 esac
19722 fi
19723 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019724 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019725 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019726 hardcode_direct_F77=no
19727 hardcode_automatic_F77=yes
19728 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019729 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019730 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019731 if test "$GCC" = yes ; then
19732 output_verbose_link_cmd='echo'
19733 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19734 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19735 # 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 +000019736 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}'
19737 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 +000019738 else
19739 case "$cc_basename" in
19740 xlc*)
19741 output_verbose_link_cmd='echo'
19742 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19743 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19744 # 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 +000019745 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}'
19746 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 +000019747 ;;
19748 *)
19749 ld_shlibs_F77=no
19750 ;;
19751 esac
John Criswell47fdd832003-07-14 16:52:07 +000019752 fi
19753 ;;
19754
19755 dgux*)
19756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_libdir_flag_spec_F77='-L$libdir'
19758 hardcode_shlibpath_var_F77=no
19759 ;;
19760
19761 freebsd1*)
19762 ld_shlibs_F77=no
19763 ;;
19764
19765 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19766 # support. Future versions do this automatically, but an explicit c++rt0.o
19767 # does not break anything, and helps significantly (at the cost of a little
19768 # extra space).
19769 freebsd2.2*)
19770 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19771 hardcode_libdir_flag_spec_F77='-R$libdir'
19772 hardcode_direct_F77=yes
19773 hardcode_shlibpath_var_F77=no
19774 ;;
19775
19776 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19777 freebsd2*)
19778 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19779 hardcode_direct_F77=yes
19780 hardcode_minus_L_F77=yes
19781 hardcode_shlibpath_var_F77=no
19782 ;;
19783
19784 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019785 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019786 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19787 hardcode_libdir_flag_spec_F77='-R$libdir'
19788 hardcode_direct_F77=yes
19789 hardcode_shlibpath_var_F77=no
19790 ;;
19791
19792 hpux9*)
19793 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019794 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 +000019795 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019796 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 +000019797 fi
19798 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19799 hardcode_libdir_separator_F77=:
19800 hardcode_direct_F77=yes
19801
19802 # hardcode_minus_L: Not really in the search PATH,
19803 # but as the default location of the library.
19804 hardcode_minus_L_F77=yes
19805 export_dynamic_flag_spec_F77='${wl}-E'
19806 ;;
19807
19808 hpux10* | hpux11*)
19809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19810 case "$host_cpu" in
19811 hppa*64*|ia64*)
19812 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19813 ;;
19814 *)
19815 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19816 ;;
19817 esac
19818 else
19819 case "$host_cpu" in
19820 hppa*64*|ia64*)
19821 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19822 ;;
19823 *)
19824 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19825 ;;
19826 esac
19827 fi
19828 if test "$with_gnu_ld" = no; then
19829 case "$host_cpu" in
19830 hppa*64*)
19831 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19832 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19833 hardcode_libdir_separator_F77=:
19834 hardcode_direct_F77=no
19835 hardcode_shlibpath_var_F77=no
19836 ;;
19837 ia64*)
19838 hardcode_libdir_flag_spec_F77='-L$libdir'
19839 hardcode_direct_F77=no
19840 hardcode_shlibpath_var_F77=no
19841
19842 # hardcode_minus_L: Not really in the search PATH,
19843 # but as the default location of the library.
19844 hardcode_minus_L_F77=yes
19845 ;;
19846 *)
19847 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19848 hardcode_libdir_separator_F77=:
19849 hardcode_direct_F77=yes
19850 export_dynamic_flag_spec_F77='${wl}-E'
19851
19852 # hardcode_minus_L: Not really in the search PATH,
19853 # but as the default location of the library.
19854 hardcode_minus_L_F77=yes
19855 ;;
19856 esac
19857 fi
19858 ;;
19859
19860 irix5* | irix6* | nonstopux*)
19861 if test "$GCC" = yes; then
19862 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'
19863 else
19864 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'
19865 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19866 fi
19867 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19868 hardcode_libdir_separator_F77=:
19869 link_all_deplibs_F77=yes
19870 ;;
19871
19872 netbsd*)
19873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19874 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19875 else
19876 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19877 fi
19878 hardcode_libdir_flag_spec_F77='-R$libdir'
19879 hardcode_direct_F77=yes
19880 hardcode_shlibpath_var_F77=no
19881 ;;
19882
19883 newsos6)
19884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19885 hardcode_direct_F77=yes
19886 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19887 hardcode_libdir_separator_F77=:
19888 hardcode_shlibpath_var_F77=no
19889 ;;
19890
19891 openbsd*)
19892 hardcode_direct_F77=yes
19893 hardcode_shlibpath_var_F77=no
19894 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19895 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019896 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 +000019897 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19898 export_dynamic_flag_spec_F77='${wl}-E'
19899 else
19900 case $host_os in
19901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19902 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19903 hardcode_libdir_flag_spec_F77='-R$libdir'
19904 ;;
19905 *)
19906 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19907 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19908 ;;
19909 esac
19910 fi
19911 ;;
19912
19913 os2*)
19914 hardcode_libdir_flag_spec_F77='-L$libdir'
19915 hardcode_minus_L_F77=yes
19916 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019917 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 +000019918 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19919 ;;
19920
19921 osf3*)
19922 if test "$GCC" = yes; then
19923 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19924 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'
19925 else
19926 allow_undefined_flag_F77=' -expect_unresolved \*'
19927 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'
19928 fi
19929 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19930 hardcode_libdir_separator_F77=:
19931 ;;
19932
19933 osf4* | osf5*) # as osf3* with the addition of -msym flag
19934 if test "$GCC" = yes; then
19935 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19936 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'
19937 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19938 else
19939 allow_undefined_flag_F77=' -expect_unresolved \*'
19940 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 +000019941 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~
19942 $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'
19943
John Criswell47fdd832003-07-14 16:52:07 +000019944 # Both c and cxx compiler support -rpath directly
19945 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19946 fi
19947 hardcode_libdir_separator_F77=:
19948 ;;
19949
19950 sco3.2v5*)
19951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19952 hardcode_shlibpath_var_F77=no
19953 export_dynamic_flag_spec_F77='${wl}-Bexport'
19954 runpath_var=LD_RUN_PATH
19955 hardcode_runpath_var=yes
19956 ;;
19957
19958 solaris*)
19959 no_undefined_flag_F77=' -z text'
19960 if test "$GCC" = yes; then
19961 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019962 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19963 $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 +000019964 else
19965 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019966 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19967 $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 +000019968 fi
19969 hardcode_libdir_flag_spec_F77='-R$libdir'
19970 hardcode_shlibpath_var_F77=no
19971 case $host_os in
19972 solaris2.[0-5] | solaris2.[0-5].*) ;;
19973 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19974 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19975 esac
19976 link_all_deplibs_F77=yes
19977 ;;
19978
19979 sunos4*)
19980 if test "x$host_vendor" = xsequent; then
19981 # Use $CC to link under sequent, because it throws in some extra .o
19982 # files that make .init and .fini sections work.
19983 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19984 else
19985 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19986 fi
19987 hardcode_libdir_flag_spec_F77='-L$libdir'
19988 hardcode_direct_F77=yes
19989 hardcode_minus_L_F77=yes
19990 hardcode_shlibpath_var_F77=no
19991 ;;
19992
19993 sysv4)
19994 case $host_vendor in
19995 sni)
19996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19997 hardcode_direct_F77=yes # is this really true???
19998 ;;
19999 siemens)
20000 ## LD is ld it makes a PLAMLIB
20001 ## CC just makes a GrossModule.
20002 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20003 reload_cmds_F77='$CC -r -o $output$reload_objs'
20004 hardcode_direct_F77=no
20005 ;;
20006 motorola)
20007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20008 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20009 ;;
20010 esac
20011 runpath_var='LD_RUN_PATH'
20012 hardcode_shlibpath_var_F77=no
20013 ;;
20014
20015 sysv4.3*)
20016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20017 hardcode_shlibpath_var_F77=no
20018 export_dynamic_flag_spec_F77='-Bexport'
20019 ;;
20020
20021 sysv4*MP*)
20022 if test -d /usr/nec; then
20023 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20024 hardcode_shlibpath_var_F77=no
20025 runpath_var=LD_RUN_PATH
20026 hardcode_runpath_var=yes
20027 ld_shlibs_F77=yes
20028 fi
20029 ;;
20030
20031 sysv4.2uw2*)
20032 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20033 hardcode_direct_F77=yes
20034 hardcode_minus_L_F77=no
20035 hardcode_shlibpath_var_F77=no
20036 hardcode_runpath_var=yes
20037 runpath_var=LD_RUN_PATH
20038 ;;
20039
20040 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20041 no_undefined_flag_F77='${wl}-z ${wl}text'
20042 if test "$GCC" = yes; then
20043 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20044 else
20045 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20046 fi
20047 runpath_var='LD_RUN_PATH'
20048 hardcode_shlibpath_var_F77=no
20049 ;;
20050
20051 sysv5*)
20052 no_undefined_flag_F77=' -z text'
20053 # $CC -shared without GNU ld will not create a library from C++
20054 # object files and a static libstdc++, better avoid it by now
20055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20057 $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 +000020058 hardcode_libdir_flag_spec_F77=
20059 hardcode_shlibpath_var_F77=no
20060 runpath_var='LD_RUN_PATH'
20061 ;;
20062
20063 uts4*)
20064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20065 hardcode_libdir_flag_spec_F77='-L$libdir'
20066 hardcode_shlibpath_var_F77=no
20067 ;;
20068
20069 *)
20070 ld_shlibs_F77=no
20071 ;;
20072 esac
20073 fi
20074
20075echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20076echo "${ECHO_T}$ld_shlibs_F77" >&6
20077test "$ld_shlibs_F77" = no && can_build_shared=no
20078
20079variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20080if test "$GCC" = yes; then
20081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20082fi
20083
20084#
20085# Do we need to explicitly link libc?
20086#
20087case "x$archive_cmds_need_lc_F77" in
20088x|xyes)
20089 # Assume -lc should be added
20090 archive_cmds_need_lc_F77=yes
20091
20092 if test "$enable_shared" = yes && test "$GCC" = yes; then
20093 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020094 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020095 # FIXME: we may have to deal with multi-command sequences.
20096 ;;
20097 '$CC '*)
20098 # Test whether the compiler implicitly links with -lc since on some
20099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20100 # to ld, don't add -lc before -lgcc.
20101 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20102echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20103 $rm conftest*
20104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20105
20106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20107 (eval $ac_compile) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } 2>conftest.err; then
20111 soname=conftest
20112 lib=conftest
20113 libobjs=conftest.$ac_objext
20114 deplibs=
20115 wl=$lt_prog_compiler_wl_F77
20116 compiler_flags=-v
20117 linker_flags=-v
20118 verstring=
20119 output_objdir=.
20120 libname=conftest
20121 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20122 allow_undefined_flag_F77=
20123 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20124 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }
20128 then
20129 archive_cmds_need_lc_F77=no
20130 else
20131 archive_cmds_need_lc_F77=yes
20132 fi
20133 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20134 else
20135 cat conftest.err 1>&5
20136 fi
20137 $rm conftest*
20138 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20139echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20140 ;;
20141 esac
20142 fi
20143 ;;
20144esac
20145
John Criswell47fdd832003-07-14 16:52:07 +000020146echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20147echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20148library_names_spec=
20149libname_spec='lib$name'
20150soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020152postinstall_cmds=
20153postuninstall_cmds=
20154finish_cmds=
20155finish_eval=
20156shlibpath_var=
20157shlibpath_overrides_runpath=unknown
20158version_type=none
20159dynamic_linker="$host_os ld.so"
20160sys_lib_dlsearch_path_spec="/lib /usr/lib"
20161if test "$GCC" = yes; then
20162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20163 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20164 # if the path contains ";" then we assume it to be the separator
20165 # otherwise default to the standard path separator (i.e. ":") - it is
20166 # assumed that no part of a normal pathname contains ";" but that should
20167 # okay in the real world where ";" in dirpaths is itself problematic.
20168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20169 else
20170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20171 fi
20172else
20173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20174fi
20175need_lib_prefix=unknown
20176hardcode_into_libs=no
20177
20178# when you set need_version to no, make sure it does not cause -set_version
20179# flags to be left without arguments
20180need_version=unknown
20181
20182case $host_os in
20183aix3*)
20184 version_type=linux
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20186 shlibpath_var=LIBPATH
20187
20188 # AIX 3 has no versioning support, so we append a major version to the name.
20189 soname_spec='${libname}${release}${shared_ext}$major'
20190 ;;
20191
20192aix4* | aix5*)
20193 version_type=linux
20194 need_lib_prefix=no
20195 need_version=no
20196 hardcode_into_libs=yes
20197 if test "$host_cpu" = ia64; then
20198 # AIX 5 supports IA64
20199 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 else
20202 # With GCC up to 2.95.x, collect2 would create an import file
20203 # for dependence libraries. The import file would start with
20204 # the line `#! .'. This would cause the generated library to
20205 # depend on `.', always an invalid library. This was fixed in
20206 # development snapshots of GCC prior to 3.0.
20207 case $host_os in
20208 aix4 | aix4.[01] | aix4.[01].*)
20209 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20210 echo ' yes '
20211 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20212 :
20213 else
20214 can_build_shared=no
20215 fi
20216 ;;
20217 esac
20218 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20219 # soname into executable. Probably we can add versioning support to
20220 # collect2, so additional links can be useful in future.
20221 if test "$aix_use_runtimelinking" = yes; then
20222 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20223 # instead of lib<name>.a to let people know that these are not
20224 # typical AIX shared libraries.
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226 else
20227 # We preserve .a as extension for shared libraries through AIX4.2
20228 # and later when we are not doing run time linking.
20229 library_names_spec='${libname}${release}.a $libname.a'
20230 soname_spec='${libname}${release}${shared_ext}$major'
20231 fi
20232 shlibpath_var=LIBPATH
20233 fi
20234 ;;
20235
20236amigaos*)
20237 library_names_spec='$libname.ixlibrary $libname.a'
20238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020239 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 +000020240 ;;
20241
20242beos*)
20243 library_names_spec='${libname}${shared_ext}'
20244 dynamic_linker="$host_os ld.so"
20245 shlibpath_var=LIBRARY_PATH
20246 ;;
20247
Reid Spencer2706f8c2004-09-19 23:53:36 +000020248bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020249 version_type=linux
20250 need_version=no
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20257 # the default ld.so.conf also contains /usr/contrib/lib and
20258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20259 # libtool to hard-code these into programs
20260 ;;
20261
20262cygwin* | mingw* | pw32*)
20263 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020264 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020265 need_version=no
20266 need_lib_prefix=no
20267
20268 case $GCC,$host_os in
20269 yes,cygwin* | yes,mingw* | yes,pw32*)
20270 library_names_spec='$libname.dll.a'
20271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020272 postinstall_cmds='base_file=`basename \${file}`~
20273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20274 dldir=$destdir/`dirname \$dlpath`~
20275 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020276 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20278 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020279 $rm \$dlpath'
20280 shlibpath_overrides_runpath=yes
20281
20282 case $host_os in
20283 cygwin*)
20284 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20285 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 +000020286 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020287 ;;
20288 mingw*)
20289 # MinGW DLLs use traditional 'lib' prefix
20290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20292 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20293 # It is most probably a Windows format PATH printed by
20294 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20295 # path with ; separators, and with drive letters. We can handle the
20296 # drive letters (cygwin fileutils understands them), so leave them,
20297 # especially as we might pass files found there to a mingw objdump,
20298 # which wouldn't understand a cygwinified path. Ahh.
20299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20300 else
20301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20302 fi
20303 ;;
20304 pw32*)
20305 # pw32 DLLs use 'pw' prefix rather than 'lib'
20306 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20307 ;;
20308 esac
20309 ;;
20310
20311 *)
20312 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20313 ;;
20314 esac
20315 dynamic_linker='Win32 ld.exe'
20316 # FIXME: first we should search . and the directory the executable is in
20317 shlibpath_var=PATH
20318 ;;
20319
20320darwin* | rhapsody*)
20321 dynamic_linker="$host_os dyld"
20322 version_type=darwin
20323 need_lib_prefix=no
20324 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020325 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020326 soname_spec='${libname}${release}${major}$shared_ext'
20327 shlibpath_overrides_runpath=yes
20328 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020329 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020330 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020331 if test "$GCC" = yes; then
20332 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"`
20333 else
20334 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020335 fi
20336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20337 ;;
20338
20339dgux*)
20340 version_type=linux
20341 need_lib_prefix=no
20342 need_version=no
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 ;;
20347
20348freebsd1*)
20349 dynamic_linker=no
20350 ;;
20351
Reid Spencer2706f8c2004-09-19 23:53:36 +000020352kfreebsd*-gnu)
20353 version_type=linux
20354 need_lib_prefix=no
20355 need_version=no
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=no
20360 hardcode_into_libs=yes
20361 dynamic_linker='GNU ld.so'
20362 ;;
20363
John Criswell47fdd832003-07-14 16:52:07 +000020364freebsd*)
20365 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20366 version_type=freebsd-$objformat
20367 case $version_type in
20368 freebsd-elf*)
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20370 need_version=no
20371 need_lib_prefix=no
20372 ;;
20373 freebsd-*)
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20375 need_version=yes
20376 ;;
20377 esac
20378 shlibpath_var=LD_LIBRARY_PATH
20379 case $host_os in
20380 freebsd2*)
20381 shlibpath_overrides_runpath=yes
20382 ;;
20383 freebsd3.01* | freebsdelf3.01*)
20384 shlibpath_overrides_runpath=yes
20385 hardcode_into_libs=yes
20386 ;;
20387 *) # from 3.2 on
20388 shlibpath_overrides_runpath=no
20389 hardcode_into_libs=yes
20390 ;;
20391 esac
20392 ;;
20393
20394gnu*)
20395 version_type=linux
20396 need_lib_prefix=no
20397 need_version=no
20398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20399 soname_spec='${libname}${release}${shared_ext}$major'
20400 shlibpath_var=LD_LIBRARY_PATH
20401 hardcode_into_libs=yes
20402 ;;
20403
20404hpux9* | hpux10* | hpux11*)
20405 # Give a soname corresponding to the major version so that dld.sl refuses to
20406 # link against other versions.
20407 version_type=sunos
20408 need_lib_prefix=no
20409 need_version=no
20410 case "$host_cpu" in
20411 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020412 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020413 hardcode_into_libs=yes
20414 dynamic_linker="$host_os dld.so"
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418 soname_spec='${libname}${release}${shared_ext}$major'
20419 if test "X$HPUX_IA64_MODE" = X32; then
20420 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20421 else
20422 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20423 fi
20424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20425 ;;
20426 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020427 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020428 hardcode_into_libs=yes
20429 dynamic_linker="$host_os dld.sl"
20430 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20436 ;;
20437 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020438 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020439 dynamic_linker="$host_os dld.sl"
20440 shlibpath_var=SHLIB_PATH
20441 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20443 soname_spec='${libname}${release}${shared_ext}$major'
20444 ;;
20445 esac
20446 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20447 postinstall_cmds='chmod 555 $lib'
20448 ;;
20449
20450irix5* | irix6* | nonstopux*)
20451 case $host_os in
20452 nonstopux*) version_type=nonstopux ;;
20453 *)
20454 if test "$lt_cv_prog_gnu_ld" = yes; then
20455 version_type=linux
20456 else
20457 version_type=irix
20458 fi ;;
20459 esac
20460 need_lib_prefix=no
20461 need_version=no
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20464 case $host_os in
20465 irix5* | nonstopux*)
20466 libsuff= shlibsuff=
20467 ;;
20468 *)
20469 case $LD in # libtool.m4 will add one of these switches to LD
20470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20471 libsuff= shlibsuff= libmagic=32-bit;;
20472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20473 libsuff=32 shlibsuff=N32 libmagic=N32;;
20474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20476 *) libsuff= shlibsuff= libmagic=never-match;;
20477 esac
20478 ;;
20479 esac
20480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20481 shlibpath_overrides_runpath=no
20482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20484 hardcode_into_libs=yes
20485 ;;
20486
20487# No shared lib support for Linux oldld, aout, or coff.
20488linux*oldld* | linux*aout* | linux*coff*)
20489 dynamic_linker=no
20490 ;;
20491
20492# This must be Linux ELF.
20493linux*)
20494 version_type=linux
20495 need_lib_prefix=no
20496 need_version=no
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20500 shlibpath_var=LD_LIBRARY_PATH
20501 shlibpath_overrides_runpath=no
20502 # This implies no fast_install, which is unacceptable.
20503 # Some rework will be needed to allow for fast_install
20504 # before this can be enabled.
20505 hardcode_into_libs=yes
20506
Reid Spencer2706f8c2004-09-19 23:53:36 +000020507 # Append ld.so.conf contents to the search path
20508 if test -f /etc/ld.so.conf; then
20509 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20511 fi
20512
John Criswell47fdd832003-07-14 16:52:07 +000020513 # We used to test for /lib/ld.so.1 and disable shared libraries on
20514 # powerpc, because MkLinux only supported shared libraries with the
20515 # GNU dynamic linker. Since this was broken with cross compilers,
20516 # most powerpc-linux boxes support dynamic linking these days and
20517 # people can always --disable-shared, the test was removed, and we
20518 # assume the GNU/Linux dynamic linker is in use.
20519 dynamic_linker='GNU/Linux ld.so'
20520 ;;
20521
Reid Spencer2706f8c2004-09-19 23:53:36 +000020522knetbsd*-gnu)
20523 version_type=linux
20524 need_lib_prefix=no
20525 need_version=no
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20527 soname_spec='${libname}${release}${shared_ext}$major'
20528 shlibpath_var=LD_LIBRARY_PATH
20529 shlibpath_overrides_runpath=no
20530 hardcode_into_libs=yes
20531 dynamic_linker='GNU ld.so'
20532 ;;
20533
John Criswell47fdd832003-07-14 16:52:07 +000020534netbsd*)
20535 version_type=sunos
20536 need_lib_prefix=no
20537 need_version=no
20538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20541 dynamic_linker='NetBSD (a.out) ld.so'
20542 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020544 soname_spec='${libname}${release}${shared_ext}$major'
20545 dynamic_linker='NetBSD ld.elf_so'
20546 fi
20547 shlibpath_var=LD_LIBRARY_PATH
20548 shlibpath_overrides_runpath=yes
20549 hardcode_into_libs=yes
20550 ;;
20551
20552newsos6)
20553 version_type=linux
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20555 shlibpath_var=LD_LIBRARY_PATH
20556 shlibpath_overrides_runpath=yes
20557 ;;
20558
Reid Spencer2706f8c2004-09-19 23:53:36 +000020559nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020560 version_type=linux
20561 need_lib_prefix=no
20562 need_version=no
20563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20564 soname_spec='${libname}${release}${shared_ext}$major'
20565 shlibpath_var=LD_LIBRARY_PATH
20566 shlibpath_overrides_runpath=yes
20567 ;;
20568
20569openbsd*)
20570 version_type=sunos
20571 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020572 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20575 shlibpath_var=LD_LIBRARY_PATH
20576 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20577 case $host_os in
20578 openbsd2.[89] | openbsd2.[89].*)
20579 shlibpath_overrides_runpath=no
20580 ;;
20581 *)
20582 shlibpath_overrides_runpath=yes
20583 ;;
20584 esac
20585 else
20586 shlibpath_overrides_runpath=yes
20587 fi
20588 ;;
20589
20590os2*)
20591 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020592 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020593 need_lib_prefix=no
20594 library_names_spec='$libname${shared_ext} $libname.a'
20595 dynamic_linker='OS/2 ld.exe'
20596 shlibpath_var=LIBPATH
20597 ;;
20598
20599osf3* | osf4* | osf5*)
20600 version_type=osf
20601 need_lib_prefix=no
20602 need_version=no
20603 soname_spec='${libname}${release}${shared_ext}$major'
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605 shlibpath_var=LD_LIBRARY_PATH
20606 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20607 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20608 ;;
20609
20610sco3.2v5*)
20611 version_type=osf
20612 soname_spec='${libname}${release}${shared_ext}$major'
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 shlibpath_var=LD_LIBRARY_PATH
20615 ;;
20616
20617solaris*)
20618 version_type=linux
20619 need_lib_prefix=no
20620 need_version=no
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622 soname_spec='${libname}${release}${shared_ext}$major'
20623 shlibpath_var=LD_LIBRARY_PATH
20624 shlibpath_overrides_runpath=yes
20625 hardcode_into_libs=yes
20626 # ldd complains unless libraries are executable
20627 postinstall_cmds='chmod +x $lib'
20628 ;;
20629
20630sunos4*)
20631 version_type=sunos
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20634 shlibpath_var=LD_LIBRARY_PATH
20635 shlibpath_overrides_runpath=yes
20636 if test "$with_gnu_ld" = yes; then
20637 need_lib_prefix=no
20638 fi
20639 need_version=yes
20640 ;;
20641
20642sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20643 version_type=linux
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 case $host_vendor in
20648 sni)
20649 shlibpath_overrides_runpath=no
20650 need_lib_prefix=no
20651 export_dynamic_flag_spec='${wl}-Blargedynsym'
20652 runpath_var=LD_RUN_PATH
20653 ;;
20654 siemens)
20655 need_lib_prefix=no
20656 ;;
20657 motorola)
20658 need_lib_prefix=no
20659 need_version=no
20660 shlibpath_overrides_runpath=no
20661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20662 ;;
20663 esac
20664 ;;
20665
20666sysv4*MP*)
20667 if test -d /usr/nec ;then
20668 version_type=linux
20669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20670 soname_spec='$libname${shared_ext}.$major'
20671 shlibpath_var=LD_LIBRARY_PATH
20672 fi
20673 ;;
20674
20675uts4*)
20676 version_type=linux
20677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678 soname_spec='${libname}${release}${shared_ext}$major'
20679 shlibpath_var=LD_LIBRARY_PATH
20680 ;;
20681
20682*)
20683 dynamic_linker=no
20684 ;;
20685esac
20686echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20687echo "${ECHO_T}$dynamic_linker" >&6
20688test "$dynamic_linker" = no && can_build_shared=no
20689
Reid Spencer2706f8c2004-09-19 23:53:36 +000020690echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20691echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20692hardcode_action_F77=
20693if test -n "$hardcode_libdir_flag_spec_F77" || \
20694 test -n "$runpath_var_F77" || \
20695 test "X$hardcode_automatic_F77" = "Xyes" ; then
20696
20697 # We can hardcode non-existant directories.
20698 if test "$hardcode_direct_F77" != no &&
20699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20700 # have to relink, otherwise we might link with an installed library
20701 # when we should be linking with a yet-to-be-installed one
20702 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20703 test "$hardcode_minus_L_F77" != no; then
20704 # Linking always hardcodes the temporary library directory.
20705 hardcode_action_F77=relink
20706 else
20707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20708 hardcode_action_F77=immediate
20709 fi
20710else
20711 # We cannot hardcode anything, or else we can only hardcode existing
20712 # directories.
20713 hardcode_action_F77=unsupported
20714fi
20715echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20716echo "${ECHO_T}$hardcode_action_F77" >&6
20717
20718if test "$hardcode_action_F77" = relink; then
20719 # Fast installation is not supported
20720 enable_fast_install=no
20721elif test "$shlibpath_overrides_runpath" = yes ||
20722 test "$enable_shared" = no; then
20723 # Fast installation is not necessary
20724 enable_fast_install=needless
20725fi
20726
20727striplib=
20728old_striplib=
20729echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20730echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20731if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20733 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20734 echo "$as_me:$LINENO: result: yes" >&5
20735echo "${ECHO_T}yes" >&6
20736else
20737# FIXME - insert some real tests, host_os isn't really good enough
20738 case $host_os in
20739 darwin*)
20740 if test -n "$STRIP" ; then
20741 striplib="$STRIP -x"
20742 echo "$as_me:$LINENO: result: yes" >&5
20743echo "${ECHO_T}yes" >&6
20744 else
20745 echo "$as_me:$LINENO: result: no" >&5
20746echo "${ECHO_T}no" >&6
20747fi
20748 ;;
20749 *)
20750 echo "$as_me:$LINENO: result: no" >&5
20751echo "${ECHO_T}no" >&6
20752 ;;
20753 esac
20754fi
20755
20756
John Criswell47fdd832003-07-14 16:52:07 +000020757
20758# The else clause should only fire when bootstrapping the
20759# libtool distribution, otherwise you forgot to ship ltmain.sh
20760# with your package, and you will get complaints that there are
20761# no rules to generate ltmain.sh.
20762if test -f "$ltmain"; then
20763 # See if we are running on zsh, and set the options which allow our commands through
20764 # without removal of \ escapes.
20765 if test -n "${ZSH_VERSION+set}" ; then
20766 setopt NO_GLOB_SUBST
20767 fi
20768 # Now quote all the things that may contain metacharacters while being
20769 # careful not to overquote the AC_SUBSTed values. We take copies of the
20770 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020771 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20772 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020773 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20774 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20775 deplibs_check_method reload_flag reload_cmds need_locks \
20776 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20777 lt_cv_sys_global_symbol_to_c_name_address \
20778 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20779 old_postinstall_cmds old_postuninstall_cmds \
20780 compiler_F77 \
20781 CC_F77 \
20782 LD_F77 \
20783 lt_prog_compiler_wl_F77 \
20784 lt_prog_compiler_pic_F77 \
20785 lt_prog_compiler_static_F77 \
20786 lt_prog_compiler_no_builtin_flag_F77 \
20787 export_dynamic_flag_spec_F77 \
20788 thread_safe_flag_spec_F77 \
20789 whole_archive_flag_spec_F77 \
20790 enable_shared_with_static_runtimes_F77 \
20791 old_archive_cmds_F77 \
20792 old_archive_from_new_cmds_F77 \
20793 predep_objects_F77 \
20794 postdep_objects_F77 \
20795 predeps_F77 \
20796 postdeps_F77 \
20797 compiler_lib_search_path_F77 \
20798 archive_cmds_F77 \
20799 archive_expsym_cmds_F77 \
20800 postinstall_cmds_F77 \
20801 postuninstall_cmds_F77 \
20802 old_archive_from_expsyms_cmds_F77 \
20803 allow_undefined_flag_F77 \
20804 no_undefined_flag_F77 \
20805 export_symbols_cmds_F77 \
20806 hardcode_libdir_flag_spec_F77 \
20807 hardcode_libdir_flag_spec_ld_F77 \
20808 hardcode_libdir_separator_F77 \
20809 hardcode_automatic_F77 \
20810 module_cmds_F77 \
20811 module_expsym_cmds_F77 \
20812 lt_cv_prog_compiler_c_o_F77 \
20813 exclude_expsyms_F77 \
20814 include_expsyms_F77; do
20815
20816 case $var in
20817 old_archive_cmds_F77 | \
20818 old_archive_from_new_cmds_F77 | \
20819 archive_cmds_F77 | \
20820 archive_expsym_cmds_F77 | \
20821 module_cmds_F77 | \
20822 module_expsym_cmds_F77 | \
20823 old_archive_from_expsyms_cmds_F77 | \
20824 export_symbols_cmds_F77 | \
20825 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20826 postinstall_cmds | postuninstall_cmds | \
20827 old_postinstall_cmds | old_postuninstall_cmds | \
20828 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20829 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020830 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 +000020831 ;;
20832 *)
20833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20834 ;;
20835 esac
20836 done
20837
20838 case $lt_echo in
20839 *'\$0 --fallback-echo"')
20840 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20841 ;;
20842 esac
20843
20844cfgfile="$ofile"
20845
20846 cat <<__EOF__ >> "$cfgfile"
20847# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20848
20849# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20850
20851# Shell to use when invoking shell scripts.
20852SHELL=$lt_SHELL
20853
20854# Whether or not to build shared libraries.
20855build_libtool_libs=$enable_shared
20856
20857# Whether or not to build static libraries.
20858build_old_libs=$enable_static
20859
20860# Whether or not to add -lc for building shared libraries.
20861build_libtool_need_lc=$archive_cmds_need_lc_F77
20862
20863# Whether or not to disallow shared libs when runtime libs are static
20864allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20865
20866# Whether or not to optimize for fast installation.
20867fast_install=$enable_fast_install
20868
20869# The host system.
20870host_alias=$host_alias
20871host=$host
20872
20873# An echo program that does not interpret backslashes.
20874echo=$lt_echo
20875
20876# The archiver.
20877AR=$lt_AR
20878AR_FLAGS=$lt_AR_FLAGS
20879
20880# A C compiler.
20881LTCC=$lt_LTCC
20882
20883# A language-specific compiler.
20884CC=$lt_compiler_F77
20885
20886# Is the compiler the GNU C compiler?
20887with_gcc=$GCC_F77
20888
20889# An ERE matcher.
20890EGREP=$lt_EGREP
20891
20892# The linker used to build libraries.
20893LD=$lt_LD_F77
20894
20895# Whether we need hard or soft links.
20896LN_S=$lt_LN_S
20897
20898# A BSD-compatible nm program.
20899NM=$lt_NM
20900
20901# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020902STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020903
20904# Used to examine libraries when file_magic_cmd begins "file"
20905MAGIC_CMD=$MAGIC_CMD
20906
20907# Used on cygwin: DLL creation program.
20908DLLTOOL="$DLLTOOL"
20909
20910# Used on cygwin: object dumper.
20911OBJDUMP="$OBJDUMP"
20912
20913# Used on cygwin: assembler.
20914AS="$AS"
20915
20916# The name of the directory that contains temporary libtool files.
20917objdir=$objdir
20918
20919# How to create reloadable object files.
20920reload_flag=$lt_reload_flag
20921reload_cmds=$lt_reload_cmds
20922
20923# How to pass a linker flag through the compiler.
20924wl=$lt_lt_prog_compiler_wl_F77
20925
20926# Object file suffix (normally "o").
20927objext="$ac_objext"
20928
20929# Old archive suffix (normally "a").
20930libext="$libext"
20931
20932# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020933shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020934
20935# Executable file suffix (normally "").
20936exeext="$exeext"
20937
20938# Additional compiler flags for building library objects.
20939pic_flag=$lt_lt_prog_compiler_pic_F77
20940pic_mode=$pic_mode
20941
20942# What is the maximum length of a command?
20943max_cmd_len=$lt_cv_sys_max_cmd_len
20944
20945# Does compiler simultaneously support -c and -o options?
20946compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20947
20948# Must we lock files when doing compilation ?
20949need_locks=$lt_need_locks
20950
20951# Do we need the lib prefix for modules?
20952need_lib_prefix=$need_lib_prefix
20953
20954# Do we need a version for libraries?
20955need_version=$need_version
20956
20957# Whether dlopen is supported.
20958dlopen_support=$enable_dlopen
20959
20960# Whether dlopen of programs is supported.
20961dlopen_self=$enable_dlopen_self
20962
20963# Whether dlopen of statically linked programs is supported.
20964dlopen_self_static=$enable_dlopen_self_static
20965
20966# Compiler flag to prevent dynamic linking.
20967link_static_flag=$lt_lt_prog_compiler_static_F77
20968
20969# Compiler flag to turn off builtin functions.
20970no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20971
20972# Compiler flag to allow reflexive dlopens.
20973export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20974
20975# Compiler flag to generate shared objects directly from archives.
20976whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20977
20978# Compiler flag to generate thread-safe objects.
20979thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20980
20981# Library versioning type.
20982version_type=$version_type
20983
20984# Format of library name prefix.
20985libname_spec=$lt_libname_spec
20986
20987# List of archive names. First name is the real one, the rest are links.
20988# The last name is the one that the linker finds with -lNAME.
20989library_names_spec=$lt_library_names_spec
20990
20991# The coded name of the library, if different from the real name.
20992soname_spec=$lt_soname_spec
20993
20994# Commands used to build and install an old-style archive.
20995RANLIB=$lt_RANLIB
20996old_archive_cmds=$lt_old_archive_cmds_F77
20997old_postinstall_cmds=$lt_old_postinstall_cmds
20998old_postuninstall_cmds=$lt_old_postuninstall_cmds
20999
21000# Create an old-style archive from a shared archive.
21001old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21002
21003# Create a temporary old-style archive to link instead of a shared archive.
21004old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21005
21006# Commands used to build and install a shared archive.
21007archive_cmds=$lt_archive_cmds_F77
21008archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21009postinstall_cmds=$lt_postinstall_cmds
21010postuninstall_cmds=$lt_postuninstall_cmds
21011
21012# Commands used to build a loadable module (assumed same as above if empty)
21013module_cmds=$lt_module_cmds_F77
21014module_expsym_cmds=$lt_module_expsym_cmds_F77
21015
21016# Commands to strip libraries.
21017old_striplib=$lt_old_striplib
21018striplib=$lt_striplib
21019
21020# Dependencies to place before the objects being linked to create a
21021# shared library.
21022predep_objects=$lt_predep_objects_F77
21023
21024# Dependencies to place after the objects being linked to create a
21025# shared library.
21026postdep_objects=$lt_postdep_objects_F77
21027
21028# Dependencies to place before the objects being linked to create a
21029# shared library.
21030predeps=$lt_predeps_F77
21031
21032# Dependencies to place after the objects being linked to create a
21033# shared library.
21034postdeps=$lt_postdeps_F77
21035
21036# The library search path used internally by the compiler when linking
21037# a shared library.
21038compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21039
21040# Method to check whether dependent libraries are shared objects.
21041deplibs_check_method=$lt_deplibs_check_method
21042
21043# Command to use when deplibs_check_method == file_magic.
21044file_magic_cmd=$lt_file_magic_cmd
21045
21046# Flag that allows shared libraries with undefined symbols to be built.
21047allow_undefined_flag=$lt_allow_undefined_flag_F77
21048
21049# Flag that forces no undefined symbols.
21050no_undefined_flag=$lt_no_undefined_flag_F77
21051
21052# Commands used to finish a libtool library installation in a directory.
21053finish_cmds=$lt_finish_cmds
21054
21055# Same as above, but a single script fragment to be evaled but not shown.
21056finish_eval=$lt_finish_eval
21057
21058# Take the output of nm and produce a listing of raw symbols and C names.
21059global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21060
21061# Transform the output of nm in a proper C declaration
21062global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21063
21064# Transform the output of nm in a C name address pair
21065global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21066
21067# This is the shared library runtime path variable.
21068runpath_var=$runpath_var
21069
21070# This is the shared library path variable.
21071shlibpath_var=$shlibpath_var
21072
21073# Is shlibpath searched before the hard-coded library search path?
21074shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21075
21076# How to hardcode a shared library path into an executable.
21077hardcode_action=$hardcode_action_F77
21078
21079# Whether we should hardcode library paths into libraries.
21080hardcode_into_libs=$hardcode_into_libs
21081
21082# Flag to hardcode \$libdir into a binary during linking.
21083# This must work even if \$libdir does not exist.
21084hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21085
21086# If ld is used when linking, flag to hardcode \$libdir into
21087# a binary during linking. This must work even if \$libdir does
21088# not exist.
21089hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21090
21091# Whether we need a single -rpath flag with a separated argument.
21092hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21093
21094# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21095# resulting binary.
21096hardcode_direct=$hardcode_direct_F77
21097
21098# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21099# resulting binary.
21100hardcode_minus_L=$hardcode_minus_L_F77
21101
21102# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21103# the resulting binary.
21104hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21105
21106# Set to yes if building a shared library automatically hardcodes DIR into the library
21107# and all subsequent libraries and executables linked against it.
21108hardcode_automatic=$hardcode_automatic_F77
21109
21110# Variables whose values should be saved in libtool wrapper scripts and
21111# restored at relink time.
21112variables_saved_for_relink="$variables_saved_for_relink"
21113
21114# Whether libtool must link a program against all its dependency libraries.
21115link_all_deplibs=$link_all_deplibs_F77
21116
21117# Compile-time system search path for libraries
21118sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21119
21120# Run-time system search path for libraries
21121sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21122
21123# Fix the shell variable \$srcfile for the compiler.
21124fix_srcfile_path="$fix_srcfile_path_F77"
21125
21126# Set to yes if exported symbols are required.
21127always_export_symbols=$always_export_symbols_F77
21128
21129# The commands to list exported symbols.
21130export_symbols_cmds=$lt_export_symbols_cmds_F77
21131
21132# The commands to extract the exported symbol list from a shared archive.
21133extract_expsyms_cmds=$lt_extract_expsyms_cmds
21134
21135# Symbols that should not be listed in the preloaded symbols.
21136exclude_expsyms=$lt_exclude_expsyms_F77
21137
21138# Symbols that must always be exported.
21139include_expsyms=$lt_include_expsyms_F77
21140
21141# ### END LIBTOOL TAG CONFIG: $tagname
21142
21143__EOF__
21144
21145
21146else
21147 # If there is no Makefile yet, we rely on a make rule to execute
21148 # `config.status --recheck' to rerun these tests and create the
21149 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021150 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21151 if test -f "$ltmain_in"; then
21152 test -f Makefile && make "$ltmain"
21153 fi
John Criswell47fdd832003-07-14 16:52:07 +000021154fi
21155
21156
21157ac_ext=c
21158ac_cpp='$CPP $CPPFLAGS'
21159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21161ac_compiler_gnu=$ac_cv_c_compiler_gnu
21162
21163CC="$lt_save_CC"
21164
21165 else
21166 tagname=""
21167 fi
21168 ;;
21169
21170 GCJ)
21171 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021172 ac_ext=c
21173ac_cpp='$CPP $CPPFLAGS'
21174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021177
21178
21179# Source file extension for Java test sources.
21180ac_ext=java
21181
21182# Object file extension for compiled Java test sources.
21183objext=o
21184objext_GCJ=$objext
21185
21186# Code to be used in simple compile tests
21187lt_simple_compile_test_code="class foo {}\n"
21188
21189# Code to be used in simple link tests
21190lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21191
21192# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21193
21194# If no C compiler was specified, use CC.
21195LTCC=${LTCC-"$CC"}
21196
21197# Allow CC to be a program name with arguments.
21198compiler=$CC
21199
21200
21201# Allow CC to be a program name with arguments.
21202lt_save_CC="$CC"
21203CC=${GCJ-"gcj"}
21204compiler=$CC
21205compiler_GCJ=$CC
21206
21207# GCJ did not exist at the time GCC didn't implicitly link libc in.
21208archive_cmds_need_lc_GCJ=no
21209
John Criswell47fdd832003-07-14 16:52:07 +000021210
21211lt_prog_compiler_no_builtin_flag_GCJ=
21212
21213if test "$GCC" = yes; then
21214 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21215
Reid Spencer2706f8c2004-09-19 23:53:36 +000021216
21217echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021218echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21219if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221else
21222 lt_cv_prog_compiler_rtti_exceptions=no
21223 ac_outfile=conftest.$ac_objext
21224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21225 lt_compiler_flag="-fno-rtti -fno-exceptions"
21226 # Insert the option either (1) after the last *FLAGS variable, or
21227 # (2) before a word containing "conftest.", or (3) at the end.
21228 # Note that $ac_compile itself does not contain backslashes and begins
21229 # with a dollar sign (not a hyphen), so the echo should work correctly.
21230 # The option is referenced via a variable to avoid confusing sed.
21231 lt_compile=`echo "$ac_compile" | $SED \
21232 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21234 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000021235 (eval echo "\"\$as_me:21235: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021236 (eval "$lt_compile" 2>conftest.err)
21237 ac_status=$?
21238 cat conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000021239 echo "$as_me:21239: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021240 if (exit $ac_status) && test -s "$ac_outfile"; then
21241 # The compiler can only warn and ignore the option if not recognized
21242 # So say no if there are warnings
21243 if test ! -s conftest.err; then
21244 lt_cv_prog_compiler_rtti_exceptions=yes
21245 fi
21246 fi
21247 $rm conftest*
21248
21249fi
21250echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21251echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21252
21253if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21254 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21255else
21256 :
21257fi
21258
21259fi
21260
21261lt_prog_compiler_wl_GCJ=
21262lt_prog_compiler_pic_GCJ=
21263lt_prog_compiler_static_GCJ=
21264
21265echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21266echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21267
21268 if test "$GCC" = yes; then
21269 lt_prog_compiler_wl_GCJ='-Wl,'
21270 lt_prog_compiler_static_GCJ='-static'
21271
21272 case $host_os in
21273 aix*)
21274 # All AIX code is PIC.
21275 if test "$host_cpu" = ia64; then
21276 # AIX 5 now supports IA64 processor
21277 lt_prog_compiler_static_GCJ='-Bstatic'
21278 fi
21279 ;;
21280
21281 amigaos*)
21282 # FIXME: we need at least 68020 code to build shared libraries, but
21283 # adding the `-m68020' flag to GCC prevents building anything better,
21284 # like `-m68040'.
21285 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21286 ;;
21287
21288 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21289 # PIC is the default for these OSes.
21290 ;;
21291
21292 mingw* | pw32* | os2*)
21293 # This hack is so that the source file can tell whether it is being
21294 # built for inclusion in a dll (and should export symbols for example).
21295 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21296 ;;
21297
21298 darwin* | rhapsody*)
21299 # PIC is the default on this platform
21300 # Common symbols not allowed in MH_DYLIB files
21301 lt_prog_compiler_pic_GCJ='-fno-common'
21302 ;;
21303
21304 msdosdjgpp*)
21305 # Just because we use GCC doesn't mean we suddenly get shared libraries
21306 # on systems that don't support them.
21307 lt_prog_compiler_can_build_shared_GCJ=no
21308 enable_shared=no
21309 ;;
21310
21311 sysv4*MP*)
21312 if test -d /usr/nec; then
21313 lt_prog_compiler_pic_GCJ=-Kconform_pic
21314 fi
21315 ;;
21316
21317 hpux*)
21318 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21319 # not for PA HP-UX.
21320 case "$host_cpu" in
21321 hppa*64*|ia64*)
21322 # +Z the default
21323 ;;
21324 *)
21325 lt_prog_compiler_pic_GCJ='-fPIC'
21326 ;;
21327 esac
21328 ;;
21329
21330 *)
21331 lt_prog_compiler_pic_GCJ='-fPIC'
21332 ;;
21333 esac
21334 else
21335 # PORTME Check for flag to pass linker flags through the system compiler.
21336 case $host_os in
21337 aix*)
21338 lt_prog_compiler_wl_GCJ='-Wl,'
21339 if test "$host_cpu" = ia64; then
21340 # AIX 5 now supports IA64 processor
21341 lt_prog_compiler_static_GCJ='-Bstatic'
21342 else
21343 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21344 fi
21345 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021346 darwin*)
21347 # PIC is the default on this platform
21348 # Common symbols not allowed in MH_DYLIB files
21349 case "$cc_basename" in
21350 xlc*)
21351 lt_prog_compiler_pic_GCJ='-qnocommon'
21352 lt_prog_compiler_wl_GCJ='-Wl,'
21353 ;;
21354 esac
21355 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021356
21357 mingw* | pw32* | os2*)
21358 # This hack is so that the source file can tell whether it is being
21359 # built for inclusion in a dll (and should export symbols for example).
21360 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21361 ;;
21362
21363 hpux9* | hpux10* | hpux11*)
21364 lt_prog_compiler_wl_GCJ='-Wl,'
21365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21366 # not for PA HP-UX.
21367 case "$host_cpu" in
21368 hppa*64*|ia64*)
21369 # +Z the default
21370 ;;
21371 *)
21372 lt_prog_compiler_pic_GCJ='+Z'
21373 ;;
21374 esac
21375 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21376 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21377 ;;
21378
21379 irix5* | irix6* | nonstopux*)
21380 lt_prog_compiler_wl_GCJ='-Wl,'
21381 # PIC (with -KPIC) is the default.
21382 lt_prog_compiler_static_GCJ='-non_shared'
21383 ;;
21384
21385 newsos6)
21386 lt_prog_compiler_pic_GCJ='-KPIC'
21387 lt_prog_compiler_static_GCJ='-Bstatic'
21388 ;;
21389
21390 linux*)
21391 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021392 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021393 lt_prog_compiler_wl_GCJ='-Wl,'
21394 lt_prog_compiler_pic_GCJ='-KPIC'
21395 lt_prog_compiler_static_GCJ='-static'
21396 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021397 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021398 lt_prog_compiler_wl_GCJ='-Wl,'
21399 # All Alpha code is PIC.
21400 lt_prog_compiler_static_GCJ='-non_shared'
21401 ;;
21402 esac
21403 ;;
21404
21405 osf3* | osf4* | osf5*)
21406 lt_prog_compiler_wl_GCJ='-Wl,'
21407 # All OSF/1 code is PIC.
21408 lt_prog_compiler_static_GCJ='-non_shared'
21409 ;;
21410
21411 sco3.2v5*)
21412 lt_prog_compiler_pic_GCJ='-Kpic'
21413 lt_prog_compiler_static_GCJ='-dn'
21414 ;;
21415
21416 solaris*)
21417 lt_prog_compiler_wl_GCJ='-Wl,'
21418 lt_prog_compiler_pic_GCJ='-KPIC'
21419 lt_prog_compiler_static_GCJ='-Bstatic'
21420 ;;
21421
21422 sunos4*)
21423 lt_prog_compiler_wl_GCJ='-Qoption ld '
21424 lt_prog_compiler_pic_GCJ='-PIC'
21425 lt_prog_compiler_static_GCJ='-Bstatic'
21426 ;;
21427
21428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21429 lt_prog_compiler_wl_GCJ='-Wl,'
21430 lt_prog_compiler_pic_GCJ='-KPIC'
21431 lt_prog_compiler_static_GCJ='-Bstatic'
21432 ;;
21433
21434 sysv4*MP*)
21435 if test -d /usr/nec ;then
21436 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21437 lt_prog_compiler_static_GCJ='-Bstatic'
21438 fi
21439 ;;
21440
21441 uts4*)
21442 lt_prog_compiler_pic_GCJ='-pic'
21443 lt_prog_compiler_static_GCJ='-Bstatic'
21444 ;;
21445
21446 *)
21447 lt_prog_compiler_can_build_shared_GCJ=no
21448 ;;
21449 esac
21450 fi
21451
21452echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21453echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21454
21455#
21456# Check to make sure the PIC flag actually works.
21457#
21458if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021459
21460echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021461echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21462if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464else
21465 lt_prog_compiler_pic_works_GCJ=no
21466 ac_outfile=conftest.$ac_objext
21467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21468 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21469 # Insert the option either (1) after the last *FLAGS variable, or
21470 # (2) before a word containing "conftest.", or (3) at the end.
21471 # Note that $ac_compile itself does not contain backslashes and begins
21472 # with a dollar sign (not a hyphen), so the echo should work correctly.
21473 # The option is referenced via a variable to avoid confusing sed.
21474 lt_compile=`echo "$ac_compile" | $SED \
21475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000021478 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021479 (eval "$lt_compile" 2>conftest.err)
21480 ac_status=$?
21481 cat conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000021482 echo "$as_me:21482: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021483 if (exit $ac_status) && test -s "$ac_outfile"; then
21484 # The compiler can only warn and ignore the option if not recognized
21485 # So say no if there are warnings
21486 if test ! -s conftest.err; then
21487 lt_prog_compiler_pic_works_GCJ=yes
21488 fi
21489 fi
21490 $rm conftest*
21491
21492fi
21493echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21494echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21495
21496if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21497 case $lt_prog_compiler_pic_GCJ in
21498 "" | " "*) ;;
21499 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21500 esac
21501else
21502 lt_prog_compiler_pic_GCJ=
21503 lt_prog_compiler_can_build_shared_GCJ=no
21504fi
21505
21506fi
21507case "$host_os" in
21508 # For platforms which do not support PIC, -DPIC is meaningless:
21509 *djgpp*)
21510 lt_prog_compiler_pic_GCJ=
21511 ;;
21512 *)
21513 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21514 ;;
21515esac
21516
21517echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21518echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21519if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521else
21522 lt_cv_prog_compiler_c_o_GCJ=no
21523 $rm -r conftest 2>/dev/null
21524 mkdir conftest
21525 cd conftest
21526 mkdir out
21527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21528
John Criswell47fdd832003-07-14 16:52:07 +000021529 lt_compiler_flag="-o out/conftest2.$ac_objext"
21530 # Insert the option either (1) after the last *FLAGS variable, or
21531 # (2) before a word containing "conftest.", or (3) at the end.
21532 # Note that $ac_compile itself does not contain backslashes and begins
21533 # with a dollar sign (not a hyphen), so the echo should work correctly.
21534 lt_compile=`echo "$ac_compile" | $SED \
21535 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21537 -e 's:$: $lt_compiler_flag:'`
Reid Spencerc28ccd82006-04-09 20:42:14 +000021538 (eval echo "\"\$as_me:21538: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021539 (eval "$lt_compile" 2>out/conftest.err)
21540 ac_status=$?
21541 cat out/conftest.err >&5
Reid Spencerc28ccd82006-04-09 20:42:14 +000021542 echo "$as_me:21542: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21544 then
21545 # The compiler can only warn and ignore the option if not recognized
21546 # So say no if there are warnings
21547 if test ! -s out/conftest.err; then
21548 lt_cv_prog_compiler_c_o_GCJ=yes
21549 fi
21550 fi
21551 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021552 $rm conftest*
21553 # SGI C++ compiler will create directory out/ii_files/ for
21554 # template instantiation
21555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21556 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021557 cd ..
21558 rmdir conftest
21559 $rm conftest*
21560
21561fi
21562echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21563echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21564
21565
21566hard_links="nottested"
21567if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21568 # do not overwrite the value of need_locks provided by the user
21569 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21570echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21571 hard_links=yes
21572 $rm conftest*
21573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21574 touch conftest.a
21575 ln conftest.a conftest.b 2>&5 || hard_links=no
21576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21577 echo "$as_me:$LINENO: result: $hard_links" >&5
21578echo "${ECHO_T}$hard_links" >&6
21579 if test "$hard_links" = no; then
21580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21581echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21582 need_locks=warn
21583 fi
21584else
21585 need_locks=no
21586fi
21587
21588echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21590
21591 runpath_var=
21592 allow_undefined_flag_GCJ=
21593 enable_shared_with_static_runtimes_GCJ=no
21594 archive_cmds_GCJ=
21595 archive_expsym_cmds_GCJ=
21596 old_archive_From_new_cmds_GCJ=
21597 old_archive_from_expsyms_cmds_GCJ=
21598 export_dynamic_flag_spec_GCJ=
21599 whole_archive_flag_spec_GCJ=
21600 thread_safe_flag_spec_GCJ=
21601 hardcode_libdir_flag_spec_GCJ=
21602 hardcode_libdir_flag_spec_ld_GCJ=
21603 hardcode_libdir_separator_GCJ=
21604 hardcode_direct_GCJ=no
21605 hardcode_minus_L_GCJ=no
21606 hardcode_shlibpath_var_GCJ=unsupported
21607 link_all_deplibs_GCJ=unknown
21608 hardcode_automatic_GCJ=no
21609 module_cmds_GCJ=
21610 module_expsym_cmds_GCJ=
21611 always_export_symbols_GCJ=no
21612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21613 # include_expsyms should be a list of space-separated symbols to be *always*
21614 # included in the symbol list
21615 include_expsyms_GCJ=
21616 # exclude_expsyms can be an extended regexp of symbols to exclude
21617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21619 # as well as any symbol that contains `d'.
21620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21622 # platforms (ab)use it in PIC code, but their linkers get confused if
21623 # the symbol is explicitly referenced. Since portable code cannot
21624 # rely on this symbol name, it's probably fine to never include it in
21625 # preloaded symbol tables.
21626 extract_expsyms_cmds=
21627
21628 case $host_os in
21629 cygwin* | mingw* | pw32*)
21630 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21631 # When not using gcc, we currently assume that we are using
21632 # Microsoft Visual C++.
21633 if test "$GCC" != yes; then
21634 with_gnu_ld=no
21635 fi
21636 ;;
21637 openbsd*)
21638 with_gnu_ld=no
21639 ;;
21640 esac
21641
21642 ld_shlibs_GCJ=yes
21643 if test "$with_gnu_ld" = yes; then
21644 # If archive_cmds runs LD, not CC, wlarc should be empty
21645 wlarc='${wl}'
21646
21647 # See if GNU ld supports shared libraries.
21648 case $host_os in
21649 aix3* | aix4* | aix5*)
21650 # On AIX/PPC, the GNU linker is very broken
21651 if test "$host_cpu" != ia64; then
21652 ld_shlibs_GCJ=no
21653 cat <<EOF 1>&2
21654
21655*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21656*** to be unable to reliably create shared libraries on AIX.
21657*** Therefore, libtool is disabling shared libraries support. If you
21658*** really care for shared libraries, you may want to modify your PATH
21659*** so that a non-GNU linker is found, and then restart.
21660
21661EOF
21662 fi
21663 ;;
21664
21665 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021666 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 +000021667 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21668 hardcode_minus_L_GCJ=yes
21669
21670 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21671 # that the semantics of dynamic libraries on AmigaOS, at least up
21672 # to version 4, is to share data among multiple programs linked
21673 # with the same dynamic library. Since this doesn't match the
21674 # behavior of shared libraries on other platforms, we can't use
21675 # them.
21676 ld_shlibs_GCJ=no
21677 ;;
21678
21679 beos*)
21680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21681 allow_undefined_flag_GCJ=unsupported
21682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21683 # support --undefined. This deserves some investigation. FIXME
21684 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21685 else
21686 ld_shlibs_GCJ=no
21687 fi
21688 ;;
21689
21690 cygwin* | mingw* | pw32*)
21691 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21692 # as there is no search path for DLLs.
21693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21694 allow_undefined_flag_GCJ=unsupported
21695 always_export_symbols_GCJ=no
21696 enable_shared_with_static_runtimes_GCJ=yes
21697 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21698
21699 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21700 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21701 # If the export-symbols file already is a .def file (1st line
21702 # is EXPORTS), use it as is; otherwise, prepend...
21703 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21704 cp $export_symbols $output_objdir/$soname.def;
21705 else
21706 echo EXPORTS > $output_objdir/$soname.def;
21707 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021708 fi~
21709 $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 +000021710 else
21711 ld_shlibs=no
21712 fi
21713 ;;
21714
21715 netbsd*)
21716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21717 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21718 wlarc=
21719 else
21720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21721 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21722 fi
21723 ;;
21724
21725 solaris* | sysv5*)
21726 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21727 ld_shlibs_GCJ=no
21728 cat <<EOF 1>&2
21729
21730*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21731*** create shared libraries on Solaris systems. Therefore, libtool
21732*** is disabling shared libraries support. We urge you to upgrade GNU
21733*** binutils to release 2.9.1 or newer. Another option is to modify
21734*** your PATH or compiler configuration so that the native linker is
21735*** used, and then restart.
21736
21737EOF
21738 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21739 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21740 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21741 else
21742 ld_shlibs_GCJ=no
21743 fi
21744 ;;
21745
21746 sunos4*)
21747 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21748 wlarc=
21749 hardcode_direct_GCJ=yes
21750 hardcode_shlibpath_var_GCJ=no
21751 ;;
21752
Reid Spencer2706f8c2004-09-19 23:53:36 +000021753 linux*)
21754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21755 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21756 archive_cmds_GCJ="$tmp_archive_cmds"
21757 supports_anon_versioning=no
21758 case `$LD -v 2>/dev/null` in
21759 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21762 *\ 2.11.*) ;; # other 2.11 versions
21763 *) supports_anon_versioning=yes ;;
21764 esac
21765 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021766 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21767cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21768$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021769 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21770 else
21771 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21772 fi
21773 else
21774 ld_shlibs_GCJ=no
21775 fi
21776 ;;
21777
John Criswell47fdd832003-07-14 16:52:07 +000021778 *)
21779 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21780 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21781 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21782 else
21783 ld_shlibs_GCJ=no
21784 fi
21785 ;;
21786 esac
21787
21788 if test "$ld_shlibs_GCJ" = yes; then
21789 runpath_var=LD_RUN_PATH
21790 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21791 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21792 # ancient GNU ld didn't support --whole-archive et. al.
21793 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21794 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21795 else
21796 whole_archive_flag_spec_GCJ=
21797 fi
21798 fi
21799 else
21800 # PORTME fill in a description of your system's linker (not GNU ld)
21801 case $host_os in
21802 aix3*)
21803 allow_undefined_flag_GCJ=unsupported
21804 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021805 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 +000021806 # Note: this linker hardcodes the directories in LIBPATH if there
21807 # are no directories specified by -L.
21808 hardcode_minus_L_GCJ=yes
21809 if test "$GCC" = yes && test -z "$link_static_flag"; then
21810 # Neither direct hardcoding nor static linking is supported with a
21811 # broken collect2.
21812 hardcode_direct_GCJ=unsupported
21813 fi
21814 ;;
21815
21816 aix4* | aix5*)
21817 if test "$host_cpu" = ia64; then
21818 # On IA64, the linker does run time linking by default, so we don't
21819 # have to do anything special.
21820 aix_use_runtimelinking=no
21821 exp_sym_flag='-Bexport'
21822 no_entry_flag=""
21823 else
21824 # If we're using GNU nm, then we don't want the "-C" option.
21825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21826 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21827 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'
21828 else
21829 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'
21830 fi
21831 aix_use_runtimelinking=no
21832
21833 # Test if we are trying to use run time linking or normal
21834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21835 # need to do runtime linking.
21836 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21837 for ld_flag in $LDFLAGS; do
21838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21839 aix_use_runtimelinking=yes
21840 break
21841 fi
21842 done
21843 esac
21844
21845 exp_sym_flag='-bexport'
21846 no_entry_flag='-bnoentry'
21847 fi
21848
21849 # When large executables or shared objects are built, AIX ld can
21850 # have problems creating the table of contents. If linking a library
21851 # or program results in "error TOC overflow" add -mminimal-toc to
21852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21854
21855 archive_cmds_GCJ=''
21856 hardcode_direct_GCJ=yes
21857 hardcode_libdir_separator_GCJ=':'
21858 link_all_deplibs_GCJ=yes
21859
21860 if test "$GCC" = yes; then
21861 case $host_os in aix4.012|aix4.012.*)
21862 # We only want to do this on AIX 4.2 and lower, the check
21863 # below for broken collect2 doesn't work under 4.3+
21864 collect2name=`${CC} -print-prog-name=collect2`
21865 if test -f "$collect2name" && \
21866 strings "$collect2name" | grep resolve_lib_name >/dev/null
21867 then
21868 # We have reworked collect2
21869 hardcode_direct_GCJ=yes
21870 else
21871 # We have old collect2
21872 hardcode_direct_GCJ=unsupported
21873 # It fails to find uninstalled libraries when the uninstalled
21874 # path is not listed in the libpath. Setting hardcode_minus_L
21875 # to unsupported forces relinking
21876 hardcode_minus_L_GCJ=yes
21877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21878 hardcode_libdir_separator_GCJ=
21879 fi
21880 esac
21881 shared_flag='-shared'
21882 else
21883 # not using gcc
21884 if test "$host_cpu" = ia64; then
21885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21886 # chokes on -Wl,-G. The following line is correct:
21887 shared_flag='-G'
21888 else
21889 if test "$aix_use_runtimelinking" = yes; then
21890 shared_flag='${wl}-G'
21891 else
21892 shared_flag='${wl}-bM:SRE'
21893 fi
21894 fi
21895 fi
21896
21897 # It seems that -bexpall does not export symbols beginning with
21898 # underscore (_), so it is better to generate a list of symbols to export.
21899 always_export_symbols_GCJ=yes
21900 if test "$aix_use_runtimelinking" = yes; then
21901 # Warning - without using the other runtime loading flags (-brtl),
21902 # -berok will link without error, but may produce a broken library.
21903 allow_undefined_flag_GCJ='-berok'
21904 # Determine the default libpath from the value encoded in an empty executable.
21905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021906/* confdefs.h. */
21907_ACEOF
21908cat confdefs.h >>conftest.$ac_ext
21909cat >>conftest.$ac_ext <<_ACEOF
21910/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021911
John Criswell47fdd832003-07-14 16:52:07 +000021912int
21913main ()
21914{
21915
21916 ;
21917 return 0;
21918}
21919_ACEOF
21920rm -f conftest.$ac_objext conftest$ac_exeext
21921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021922 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021923 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021924 grep -v '^ *+' conftest.er1 >conftest.err
21925 rm -f conftest.er1
21926 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021929 { ac_try='test -z "$ac_c_werror_flag"
21930 || test ! -s conftest.err'
21931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21933 ac_status=$?
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; } &&
21936 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }; then
21942
21943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21944}'`
21945# Check for a 64-bit object if we didn't find anything.
21946if 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; }
21947}'`; fi
21948else
21949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021950sed 's/^/| /' conftest.$ac_ext >&5
21951
John Criswell47fdd832003-07-14 16:52:07 +000021952fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021953rm -f conftest.err conftest.$ac_objext \
21954 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021955if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21956
21957 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21958 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"
21959 else
21960 if test "$host_cpu" = ia64; then
21961 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21962 allow_undefined_flag_GCJ="-z nodefs"
21963 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"
21964 else
21965 # Determine the default libpath from the value encoded in an empty executable.
21966 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021967/* confdefs.h. */
21968_ACEOF
21969cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF
21971/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021972
John Criswell47fdd832003-07-14 16:52:07 +000021973int
21974main ()
21975{
21976
21977 ;
21978 return 0;
21979}
21980_ACEOF
21981rm -f conftest.$ac_objext conftest$ac_exeext
21982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021983 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021990 { ac_try='test -z "$ac_c_werror_flag"
21991 || test ! -s conftest.err'
21992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993 (eval $ac_try) 2>&5
21994 ac_status=$?
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; } &&
21997 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22000 ac_status=$?
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; }; then
22003
22004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22005}'`
22006# Check for a 64-bit object if we didn't find anything.
22007if 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; }
22008}'`; fi
22009else
22010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022011sed 's/^/| /' conftest.$ac_ext >&5
22012
John Criswell47fdd832003-07-14 16:52:07 +000022013fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022014rm -f conftest.err conftest.$ac_objext \
22015 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022016if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22017
22018 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22019 # Warning - without using the other run time loading flags,
22020 # -berok will link without error, but may produce a broken library.
22021 no_undefined_flag_GCJ=' ${wl}-bernotok'
22022 allow_undefined_flag_GCJ=' ${wl}-berok'
22023 # -bexpall does not export symbols beginning with underscore (_)
22024 always_export_symbols_GCJ=yes
22025 # Exported symbols can be pulled into shared objects from archives
22026 whole_archive_flag_spec_GCJ=' '
22027 archive_cmds_need_lc_GCJ=yes
22028 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022029 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 +000022030 fi
22031 fi
22032 ;;
22033
22034 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022035 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 +000022036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22037 hardcode_minus_L_GCJ=yes
22038 # see comment about different semantics on the GNU ld section
22039 ld_shlibs_GCJ=no
22040 ;;
22041
Reid Spencer2706f8c2004-09-19 23:53:36 +000022042 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022043 export_dynamic_flag_spec_GCJ=-rdynamic
22044 ;;
22045
22046 cygwin* | mingw* | pw32*)
22047 # When not using gcc, we currently assume that we are using
22048 # Microsoft Visual C++.
22049 # hardcode_libdir_flag_spec is actually meaningless, as there is
22050 # no search path for DLLs.
22051 hardcode_libdir_flag_spec_GCJ=' '
22052 allow_undefined_flag_GCJ=unsupported
22053 # Tell ltmain to make .lib files, not .a files.
22054 libext=lib
22055 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022056 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022057 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022058 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 +000022059 # The linker will automatically build a .lib file if we build a DLL.
22060 old_archive_From_new_cmds_GCJ='true'
22061 # FIXME: Should let the user specify the lib program.
22062 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22063 fix_srcfile_path='`cygpath -w "$srcfile"`'
22064 enable_shared_with_static_runtimes_GCJ=yes
22065 ;;
22066
22067 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022068 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022069 rhapsody* | darwin1.[012])
22070 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22071 ;;
22072 *) # Darwin 1.3 on
22073 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22074 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22075 else
22076 case ${MACOSX_DEPLOYMENT_TARGET} in
22077 10.[012])
22078 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22079 ;;
22080 10.*)
22081 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22082 ;;
22083 esac
22084 fi
22085 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022086 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022087 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022088 hardcode_direct_GCJ=no
22089 hardcode_automatic_GCJ=yes
22090 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022091 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022092 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022093 if test "$GCC" = yes ; then
22094 output_verbose_link_cmd='echo'
22095 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22096 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22097 # 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 +000022098 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}'
22099 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 +000022100 else
22101 case "$cc_basename" in
22102 xlc*)
22103 output_verbose_link_cmd='echo'
22104 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22105 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22106 # 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 +000022107 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}'
22108 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 +000022109 ;;
22110 *)
22111 ld_shlibs_GCJ=no
22112 ;;
22113 esac
John Criswell47fdd832003-07-14 16:52:07 +000022114 fi
22115 ;;
22116
22117 dgux*)
22118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22120 hardcode_shlibpath_var_GCJ=no
22121 ;;
22122
22123 freebsd1*)
22124 ld_shlibs_GCJ=no
22125 ;;
22126
22127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22128 # support. Future versions do this automatically, but an explicit c++rt0.o
22129 # does not break anything, and helps significantly (at the cost of a little
22130 # extra space).
22131 freebsd2.2*)
22132 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22133 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22134 hardcode_direct_GCJ=yes
22135 hardcode_shlibpath_var_GCJ=no
22136 ;;
22137
22138 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22139 freebsd2*)
22140 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22141 hardcode_direct_GCJ=yes
22142 hardcode_minus_L_GCJ=yes
22143 hardcode_shlibpath_var_GCJ=no
22144 ;;
22145
22146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022147 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022148 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22149 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22150 hardcode_direct_GCJ=yes
22151 hardcode_shlibpath_var_GCJ=no
22152 ;;
22153
22154 hpux9*)
22155 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022156 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 +000022157 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022158 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 +000022159 fi
22160 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22161 hardcode_libdir_separator_GCJ=:
22162 hardcode_direct_GCJ=yes
22163
22164 # hardcode_minus_L: Not really in the search PATH,
22165 # but as the default location of the library.
22166 hardcode_minus_L_GCJ=yes
22167 export_dynamic_flag_spec_GCJ='${wl}-E'
22168 ;;
22169
22170 hpux10* | hpux11*)
22171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22172 case "$host_cpu" in
22173 hppa*64*|ia64*)
22174 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22175 ;;
22176 *)
22177 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22178 ;;
22179 esac
22180 else
22181 case "$host_cpu" in
22182 hppa*64*|ia64*)
22183 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22184 ;;
22185 *)
22186 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22187 ;;
22188 esac
22189 fi
22190 if test "$with_gnu_ld" = no; then
22191 case "$host_cpu" in
22192 hppa*64*)
22193 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22194 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22195 hardcode_libdir_separator_GCJ=:
22196 hardcode_direct_GCJ=no
22197 hardcode_shlibpath_var_GCJ=no
22198 ;;
22199 ia64*)
22200 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22201 hardcode_direct_GCJ=no
22202 hardcode_shlibpath_var_GCJ=no
22203
22204 # hardcode_minus_L: Not really in the search PATH,
22205 # but as the default location of the library.
22206 hardcode_minus_L_GCJ=yes
22207 ;;
22208 *)
22209 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22210 hardcode_libdir_separator_GCJ=:
22211 hardcode_direct_GCJ=yes
22212 export_dynamic_flag_spec_GCJ='${wl}-E'
22213
22214 # hardcode_minus_L: Not really in the search PATH,
22215 # but as the default location of the library.
22216 hardcode_minus_L_GCJ=yes
22217 ;;
22218 esac
22219 fi
22220 ;;
22221
22222 irix5* | irix6* | nonstopux*)
22223 if test "$GCC" = yes; then
22224 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'
22225 else
22226 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'
22227 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22228 fi
22229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22230 hardcode_libdir_separator_GCJ=:
22231 link_all_deplibs_GCJ=yes
22232 ;;
22233
22234 netbsd*)
22235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22236 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22237 else
22238 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22239 fi
22240 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22241 hardcode_direct_GCJ=yes
22242 hardcode_shlibpath_var_GCJ=no
22243 ;;
22244
22245 newsos6)
22246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22247 hardcode_direct_GCJ=yes
22248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22249 hardcode_libdir_separator_GCJ=:
22250 hardcode_shlibpath_var_GCJ=no
22251 ;;
22252
22253 openbsd*)
22254 hardcode_direct_GCJ=yes
22255 hardcode_shlibpath_var_GCJ=no
22256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22257 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022258 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 +000022259 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22260 export_dynamic_flag_spec_GCJ='${wl}-E'
22261 else
22262 case $host_os in
22263 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22264 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22266 ;;
22267 *)
22268 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22269 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22270 ;;
22271 esac
22272 fi
22273 ;;
22274
22275 os2*)
22276 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22277 hardcode_minus_L_GCJ=yes
22278 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022279 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 +000022280 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22281 ;;
22282
22283 osf3*)
22284 if test "$GCC" = yes; then
22285 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22286 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'
22287 else
22288 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22289 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'
22290 fi
22291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22292 hardcode_libdir_separator_GCJ=:
22293 ;;
22294
22295 osf4* | osf5*) # as osf3* with the addition of -msym flag
22296 if test "$GCC" = yes; then
22297 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22298 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'
22299 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22300 else
22301 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22302 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 +000022303 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~
22304 $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'
22305
John Criswell47fdd832003-07-14 16:52:07 +000022306 # Both c and cxx compiler support -rpath directly
22307 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22308 fi
22309 hardcode_libdir_separator_GCJ=:
22310 ;;
22311
22312 sco3.2v5*)
22313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22314 hardcode_shlibpath_var_GCJ=no
22315 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22316 runpath_var=LD_RUN_PATH
22317 hardcode_runpath_var=yes
22318 ;;
22319
22320 solaris*)
22321 no_undefined_flag_GCJ=' -z text'
22322 if test "$GCC" = yes; then
22323 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022324 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22325 $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 +000022326 else
22327 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022328 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22329 $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 +000022330 fi
22331 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22332 hardcode_shlibpath_var_GCJ=no
22333 case $host_os in
22334 solaris2.[0-5] | solaris2.[0-5].*) ;;
22335 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22336 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22337 esac
22338 link_all_deplibs_GCJ=yes
22339 ;;
22340
22341 sunos4*)
22342 if test "x$host_vendor" = xsequent; then
22343 # Use $CC to link under sequent, because it throws in some extra .o
22344 # files that make .init and .fini sections work.
22345 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22346 else
22347 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22348 fi
22349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22350 hardcode_direct_GCJ=yes
22351 hardcode_minus_L_GCJ=yes
22352 hardcode_shlibpath_var_GCJ=no
22353 ;;
22354
22355 sysv4)
22356 case $host_vendor in
22357 sni)
22358 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22359 hardcode_direct_GCJ=yes # is this really true???
22360 ;;
22361 siemens)
22362 ## LD is ld it makes a PLAMLIB
22363 ## CC just makes a GrossModule.
22364 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22365 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22366 hardcode_direct_GCJ=no
22367 ;;
22368 motorola)
22369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22370 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22371 ;;
22372 esac
22373 runpath_var='LD_RUN_PATH'
22374 hardcode_shlibpath_var_GCJ=no
22375 ;;
22376
22377 sysv4.3*)
22378 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22379 hardcode_shlibpath_var_GCJ=no
22380 export_dynamic_flag_spec_GCJ='-Bexport'
22381 ;;
22382
22383 sysv4*MP*)
22384 if test -d /usr/nec; then
22385 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386 hardcode_shlibpath_var_GCJ=no
22387 runpath_var=LD_RUN_PATH
22388 hardcode_runpath_var=yes
22389 ld_shlibs_GCJ=yes
22390 fi
22391 ;;
22392
22393 sysv4.2uw2*)
22394 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22395 hardcode_direct_GCJ=yes
22396 hardcode_minus_L_GCJ=no
22397 hardcode_shlibpath_var_GCJ=no
22398 hardcode_runpath_var=yes
22399 runpath_var=LD_RUN_PATH
22400 ;;
22401
22402 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22403 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22404 if test "$GCC" = yes; then
22405 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22406 else
22407 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22408 fi
22409 runpath_var='LD_RUN_PATH'
22410 hardcode_shlibpath_var_GCJ=no
22411 ;;
22412
22413 sysv5*)
22414 no_undefined_flag_GCJ=' -z text'
22415 # $CC -shared without GNU ld will not create a library from C++
22416 # object files and a static libstdc++, better avoid it by now
22417 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022418 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22419 $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 +000022420 hardcode_libdir_flag_spec_GCJ=
22421 hardcode_shlibpath_var_GCJ=no
22422 runpath_var='LD_RUN_PATH'
22423 ;;
22424
22425 uts4*)
22426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22428 hardcode_shlibpath_var_GCJ=no
22429 ;;
22430
22431 *)
22432 ld_shlibs_GCJ=no
22433 ;;
22434 esac
22435 fi
22436
22437echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22438echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22439test "$ld_shlibs_GCJ" = no && can_build_shared=no
22440
22441variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22442if test "$GCC" = yes; then
22443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22444fi
22445
22446#
22447# Do we need to explicitly link libc?
22448#
22449case "x$archive_cmds_need_lc_GCJ" in
22450x|xyes)
22451 # Assume -lc should be added
22452 archive_cmds_need_lc_GCJ=yes
22453
22454 if test "$enable_shared" = yes && test "$GCC" = yes; then
22455 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022456 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022457 # FIXME: we may have to deal with multi-command sequences.
22458 ;;
22459 '$CC '*)
22460 # Test whether the compiler implicitly links with -lc since on some
22461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22462 # to ld, don't add -lc before -lgcc.
22463 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22464echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22465 $rm conftest*
22466 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22467
22468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22469 (eval $ac_compile) 2>&5
22470 ac_status=$?
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } 2>conftest.err; then
22473 soname=conftest
22474 lib=conftest
22475 libobjs=conftest.$ac_objext
22476 deplibs=
22477 wl=$lt_prog_compiler_wl_GCJ
22478 compiler_flags=-v
22479 linker_flags=-v
22480 verstring=
22481 output_objdir=.
22482 libname=conftest
22483 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22484 allow_undefined_flag_GCJ=
22485 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22486 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22487 ac_status=$?
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }
22490 then
22491 archive_cmds_need_lc_GCJ=no
22492 else
22493 archive_cmds_need_lc_GCJ=yes
22494 fi
22495 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22496 else
22497 cat conftest.err 1>&5
22498 fi
22499 $rm conftest*
22500 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22501echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22502 ;;
22503 esac
22504 fi
22505 ;;
22506esac
22507
John Criswell47fdd832003-07-14 16:52:07 +000022508echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22509echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22510library_names_spec=
22511libname_spec='lib$name'
22512soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022513shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022514postinstall_cmds=
22515postuninstall_cmds=
22516finish_cmds=
22517finish_eval=
22518shlibpath_var=
22519shlibpath_overrides_runpath=unknown
22520version_type=none
22521dynamic_linker="$host_os ld.so"
22522sys_lib_dlsearch_path_spec="/lib /usr/lib"
22523if test "$GCC" = yes; then
22524 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22525 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22526 # if the path contains ";" then we assume it to be the separator
22527 # otherwise default to the standard path separator (i.e. ":") - it is
22528 # assumed that no part of a normal pathname contains ";" but that should
22529 # okay in the real world where ";" in dirpaths is itself problematic.
22530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22531 else
22532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22533 fi
22534else
22535 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22536fi
22537need_lib_prefix=unknown
22538hardcode_into_libs=no
22539
22540# when you set need_version to no, make sure it does not cause -set_version
22541# flags to be left without arguments
22542need_version=unknown
22543
22544case $host_os in
22545aix3*)
22546 version_type=linux
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22548 shlibpath_var=LIBPATH
22549
22550 # AIX 3 has no versioning support, so we append a major version to the name.
22551 soname_spec='${libname}${release}${shared_ext}$major'
22552 ;;
22553
22554aix4* | aix5*)
22555 version_type=linux
22556 need_lib_prefix=no
22557 need_version=no
22558 hardcode_into_libs=yes
22559 if test "$host_cpu" = ia64; then
22560 # AIX 5 supports IA64
22561 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22562 shlibpath_var=LD_LIBRARY_PATH
22563 else
22564 # With GCC up to 2.95.x, collect2 would create an import file
22565 # for dependence libraries. The import file would start with
22566 # the line `#! .'. This would cause the generated library to
22567 # depend on `.', always an invalid library. This was fixed in
22568 # development snapshots of GCC prior to 3.0.
22569 case $host_os in
22570 aix4 | aix4.[01] | aix4.[01].*)
22571 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22572 echo ' yes '
22573 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22574 :
22575 else
22576 can_build_shared=no
22577 fi
22578 ;;
22579 esac
22580 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22581 # soname into executable. Probably we can add versioning support to
22582 # collect2, so additional links can be useful in future.
22583 if test "$aix_use_runtimelinking" = yes; then
22584 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22585 # instead of lib<name>.a to let people know that these are not
22586 # typical AIX shared libraries.
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588 else
22589 # We preserve .a as extension for shared libraries through AIX4.2
22590 # and later when we are not doing run time linking.
22591 library_names_spec='${libname}${release}.a $libname.a'
22592 soname_spec='${libname}${release}${shared_ext}$major'
22593 fi
22594 shlibpath_var=LIBPATH
22595 fi
22596 ;;
22597
22598amigaos*)
22599 library_names_spec='$libname.ixlibrary $libname.a'
22600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022601 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 +000022602 ;;
22603
22604beos*)
22605 library_names_spec='${libname}${shared_ext}'
22606 dynamic_linker="$host_os ld.so"
22607 shlibpath_var=LIBRARY_PATH
22608 ;;
22609
Reid Spencer2706f8c2004-09-19 23:53:36 +000022610bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022611 version_type=linux
22612 need_version=no
22613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22616 shlibpath_var=LD_LIBRARY_PATH
22617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22619 # the default ld.so.conf also contains /usr/contrib/lib and
22620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22621 # libtool to hard-code these into programs
22622 ;;
22623
22624cygwin* | mingw* | pw32*)
22625 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022626 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022627 need_version=no
22628 need_lib_prefix=no
22629
22630 case $GCC,$host_os in
22631 yes,cygwin* | yes,mingw* | yes,pw32*)
22632 library_names_spec='$libname.dll.a'
22633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022634 postinstall_cmds='base_file=`basename \${file}`~
22635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22636 dldir=$destdir/`dirname \$dlpath`~
22637 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022638 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22640 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022641 $rm \$dlpath'
22642 shlibpath_overrides_runpath=yes
22643
22644 case $host_os in
22645 cygwin*)
22646 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22647 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 +000022648 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022649 ;;
22650 mingw*)
22651 # MinGW DLLs use traditional 'lib' prefix
22652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22653 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22654 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22655 # It is most probably a Windows format PATH printed by
22656 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22657 # path with ; separators, and with drive letters. We can handle the
22658 # drive letters (cygwin fileutils understands them), so leave them,
22659 # especially as we might pass files found there to a mingw objdump,
22660 # which wouldn't understand a cygwinified path. Ahh.
22661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22662 else
22663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22664 fi
22665 ;;
22666 pw32*)
22667 # pw32 DLLs use 'pw' prefix rather than 'lib'
22668 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22669 ;;
22670 esac
22671 ;;
22672
22673 *)
22674 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22675 ;;
22676 esac
22677 dynamic_linker='Win32 ld.exe'
22678 # FIXME: first we should search . and the directory the executable is in
22679 shlibpath_var=PATH
22680 ;;
22681
22682darwin* | rhapsody*)
22683 dynamic_linker="$host_os dyld"
22684 version_type=darwin
22685 need_lib_prefix=no
22686 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022687 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022688 soname_spec='${libname}${release}${major}$shared_ext'
22689 shlibpath_overrides_runpath=yes
22690 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022691 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022692 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022693 if test "$GCC" = yes; then
22694 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"`
22695 else
22696 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022697 fi
22698 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22699 ;;
22700
22701dgux*)
22702 version_type=linux
22703 need_lib_prefix=no
22704 need_version=no
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 ;;
22709
22710freebsd1*)
22711 dynamic_linker=no
22712 ;;
22713
Reid Spencer2706f8c2004-09-19 23:53:36 +000022714kfreebsd*-gnu)
22715 version_type=linux
22716 need_lib_prefix=no
22717 need_version=no
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22719 soname_spec='${libname}${release}${shared_ext}$major'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=no
22722 hardcode_into_libs=yes
22723 dynamic_linker='GNU ld.so'
22724 ;;
22725
John Criswell47fdd832003-07-14 16:52:07 +000022726freebsd*)
22727 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22728 version_type=freebsd-$objformat
22729 case $version_type in
22730 freebsd-elf*)
22731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22732 need_version=no
22733 need_lib_prefix=no
22734 ;;
22735 freebsd-*)
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22737 need_version=yes
22738 ;;
22739 esac
22740 shlibpath_var=LD_LIBRARY_PATH
22741 case $host_os in
22742 freebsd2*)
22743 shlibpath_overrides_runpath=yes
22744 ;;
22745 freebsd3.01* | freebsdelf3.01*)
22746 shlibpath_overrides_runpath=yes
22747 hardcode_into_libs=yes
22748 ;;
22749 *) # from 3.2 on
22750 shlibpath_overrides_runpath=no
22751 hardcode_into_libs=yes
22752 ;;
22753 esac
22754 ;;
22755
22756gnu*)
22757 version_type=linux
22758 need_lib_prefix=no
22759 need_version=no
22760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22761 soname_spec='${libname}${release}${shared_ext}$major'
22762 shlibpath_var=LD_LIBRARY_PATH
22763 hardcode_into_libs=yes
22764 ;;
22765
22766hpux9* | hpux10* | hpux11*)
22767 # Give a soname corresponding to the major version so that dld.sl refuses to
22768 # link against other versions.
22769 version_type=sunos
22770 need_lib_prefix=no
22771 need_version=no
22772 case "$host_cpu" in
22773 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022774 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022775 hardcode_into_libs=yes
22776 dynamic_linker="$host_os dld.so"
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22780 soname_spec='${libname}${release}${shared_ext}$major'
22781 if test "X$HPUX_IA64_MODE" = X32; then
22782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22783 else
22784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22785 fi
22786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22787 ;;
22788 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022789 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022790 hardcode_into_libs=yes
22791 dynamic_linker="$host_os dld.sl"
22792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795 soname_spec='${libname}${release}${shared_ext}$major'
22796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22798 ;;
22799 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022800 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022801 dynamic_linker="$host_os dld.sl"
22802 shlibpath_var=SHLIB_PATH
22803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22805 soname_spec='${libname}${release}${shared_ext}$major'
22806 ;;
22807 esac
22808 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22809 postinstall_cmds='chmod 555 $lib'
22810 ;;
22811
22812irix5* | irix6* | nonstopux*)
22813 case $host_os in
22814 nonstopux*) version_type=nonstopux ;;
22815 *)
22816 if test "$lt_cv_prog_gnu_ld" = yes; then
22817 version_type=linux
22818 else
22819 version_type=irix
22820 fi ;;
22821 esac
22822 need_lib_prefix=no
22823 need_version=no
22824 soname_spec='${libname}${release}${shared_ext}$major'
22825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22826 case $host_os in
22827 irix5* | nonstopux*)
22828 libsuff= shlibsuff=
22829 ;;
22830 *)
22831 case $LD in # libtool.m4 will add one of these switches to LD
22832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22833 libsuff= shlibsuff= libmagic=32-bit;;
22834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22835 libsuff=32 shlibsuff=N32 libmagic=N32;;
22836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22838 *) libsuff= shlibsuff= libmagic=never-match;;
22839 esac
22840 ;;
22841 esac
22842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22843 shlibpath_overrides_runpath=no
22844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22846 hardcode_into_libs=yes
22847 ;;
22848
22849# No shared lib support for Linux oldld, aout, or coff.
22850linux*oldld* | linux*aout* | linux*coff*)
22851 dynamic_linker=no
22852 ;;
22853
22854# This must be Linux ELF.
22855linux*)
22856 version_type=linux
22857 need_lib_prefix=no
22858 need_version=no
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=no
22864 # This implies no fast_install, which is unacceptable.
22865 # Some rework will be needed to allow for fast_install
22866 # before this can be enabled.
22867 hardcode_into_libs=yes
22868
Reid Spencer2706f8c2004-09-19 23:53:36 +000022869 # Append ld.so.conf contents to the search path
22870 if test -f /etc/ld.so.conf; then
22871 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22873 fi
22874
John Criswell47fdd832003-07-14 16:52:07 +000022875 # We used to test for /lib/ld.so.1 and disable shared libraries on
22876 # powerpc, because MkLinux only supported shared libraries with the
22877 # GNU dynamic linker. Since this was broken with cross compilers,
22878 # most powerpc-linux boxes support dynamic linking these days and
22879 # people can always --disable-shared, the test was removed, and we
22880 # assume the GNU/Linux dynamic linker is in use.
22881 dynamic_linker='GNU/Linux ld.so'
22882 ;;
22883
Reid Spencer2706f8c2004-09-19 23:53:36 +000022884knetbsd*-gnu)
22885 version_type=linux
22886 need_lib_prefix=no
22887 need_version=no
22888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22889 soname_spec='${libname}${release}${shared_ext}$major'
22890 shlibpath_var=LD_LIBRARY_PATH
22891 shlibpath_overrides_runpath=no
22892 hardcode_into_libs=yes
22893 dynamic_linker='GNU ld.so'
22894 ;;
22895
John Criswell47fdd832003-07-14 16:52:07 +000022896netbsd*)
22897 version_type=sunos
22898 need_lib_prefix=no
22899 need_version=no
22900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22903 dynamic_linker='NetBSD (a.out) ld.so'
22904 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022906 soname_spec='${libname}${release}${shared_ext}$major'
22907 dynamic_linker='NetBSD ld.elf_so'
22908 fi
22909 shlibpath_var=LD_LIBRARY_PATH
22910 shlibpath_overrides_runpath=yes
22911 hardcode_into_libs=yes
22912 ;;
22913
22914newsos6)
22915 version_type=linux
22916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22917 shlibpath_var=LD_LIBRARY_PATH
22918 shlibpath_overrides_runpath=yes
22919 ;;
22920
Reid Spencer2706f8c2004-09-19 23:53:36 +000022921nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022922 version_type=linux
22923 need_lib_prefix=no
22924 need_version=no
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926 soname_spec='${libname}${release}${shared_ext}$major'
22927 shlibpath_var=LD_LIBRARY_PATH
22928 shlibpath_overrides_runpath=yes
22929 ;;
22930
22931openbsd*)
22932 version_type=sunos
22933 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022934 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22937 shlibpath_var=LD_LIBRARY_PATH
22938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22939 case $host_os in
22940 openbsd2.[89] | openbsd2.[89].*)
22941 shlibpath_overrides_runpath=no
22942 ;;
22943 *)
22944 shlibpath_overrides_runpath=yes
22945 ;;
22946 esac
22947 else
22948 shlibpath_overrides_runpath=yes
22949 fi
22950 ;;
22951
22952os2*)
22953 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022954 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022955 need_lib_prefix=no
22956 library_names_spec='$libname${shared_ext} $libname.a'
22957 dynamic_linker='OS/2 ld.exe'
22958 shlibpath_var=LIBPATH
22959 ;;
22960
22961osf3* | osf4* | osf5*)
22962 version_type=osf
22963 need_lib_prefix=no
22964 need_version=no
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22967 shlibpath_var=LD_LIBRARY_PATH
22968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22970 ;;
22971
22972sco3.2v5*)
22973 version_type=osf
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22976 shlibpath_var=LD_LIBRARY_PATH
22977 ;;
22978
22979solaris*)
22980 version_type=linux
22981 need_lib_prefix=no
22982 need_version=no
22983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22984 soname_spec='${libname}${release}${shared_ext}$major'
22985 shlibpath_var=LD_LIBRARY_PATH
22986 shlibpath_overrides_runpath=yes
22987 hardcode_into_libs=yes
22988 # ldd complains unless libraries are executable
22989 postinstall_cmds='chmod +x $lib'
22990 ;;
22991
22992sunos4*)
22993 version_type=sunos
22994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22995 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22996 shlibpath_var=LD_LIBRARY_PATH
22997 shlibpath_overrides_runpath=yes
22998 if test "$with_gnu_ld" = yes; then
22999 need_lib_prefix=no
23000 fi
23001 need_version=yes
23002 ;;
23003
23004sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23005 version_type=linux
23006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007 soname_spec='${libname}${release}${shared_ext}$major'
23008 shlibpath_var=LD_LIBRARY_PATH
23009 case $host_vendor in
23010 sni)
23011 shlibpath_overrides_runpath=no
23012 need_lib_prefix=no
23013 export_dynamic_flag_spec='${wl}-Blargedynsym'
23014 runpath_var=LD_RUN_PATH
23015 ;;
23016 siemens)
23017 need_lib_prefix=no
23018 ;;
23019 motorola)
23020 need_lib_prefix=no
23021 need_version=no
23022 shlibpath_overrides_runpath=no
23023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23024 ;;
23025 esac
23026 ;;
23027
23028sysv4*MP*)
23029 if test -d /usr/nec ;then
23030 version_type=linux
23031 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23032 soname_spec='$libname${shared_ext}.$major'
23033 shlibpath_var=LD_LIBRARY_PATH
23034 fi
23035 ;;
23036
23037uts4*)
23038 version_type=linux
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 soname_spec='${libname}${release}${shared_ext}$major'
23041 shlibpath_var=LD_LIBRARY_PATH
23042 ;;
23043
23044*)
23045 dynamic_linker=no
23046 ;;
23047esac
23048echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23049echo "${ECHO_T}$dynamic_linker" >&6
23050test "$dynamic_linker" = no && can_build_shared=no
23051
Reid Spencer2706f8c2004-09-19 23:53:36 +000023052echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23053echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23054hardcode_action_GCJ=
23055if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23056 test -n "$runpath_var_GCJ" || \
23057 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23058
23059 # We can hardcode non-existant directories.
23060 if test "$hardcode_direct_GCJ" != no &&
23061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23062 # have to relink, otherwise we might link with an installed library
23063 # when we should be linking with a yet-to-be-installed one
23064 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23065 test "$hardcode_minus_L_GCJ" != no; then
23066 # Linking always hardcodes the temporary library directory.
23067 hardcode_action_GCJ=relink
23068 else
23069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23070 hardcode_action_GCJ=immediate
23071 fi
23072else
23073 # We cannot hardcode anything, or else we can only hardcode existing
23074 # directories.
23075 hardcode_action_GCJ=unsupported
23076fi
23077echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23078echo "${ECHO_T}$hardcode_action_GCJ" >&6
23079
23080if test "$hardcode_action_GCJ" = relink; then
23081 # Fast installation is not supported
23082 enable_fast_install=no
23083elif test "$shlibpath_overrides_runpath" = yes ||
23084 test "$enable_shared" = no; then
23085 # Fast installation is not necessary
23086 enable_fast_install=needless
23087fi
23088
23089striplib=
23090old_striplib=
23091echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23092echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23093if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23094 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23095 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23096 echo "$as_me:$LINENO: result: yes" >&5
23097echo "${ECHO_T}yes" >&6
23098else
23099# FIXME - insert some real tests, host_os isn't really good enough
23100 case $host_os in
23101 darwin*)
23102 if test -n "$STRIP" ; then
23103 striplib="$STRIP -x"
23104 echo "$as_me:$LINENO: result: yes" >&5
23105echo "${ECHO_T}yes" >&6
23106 else
23107 echo "$as_me:$LINENO: result: no" >&5
23108echo "${ECHO_T}no" >&6
23109fi
23110 ;;
23111 *)
23112 echo "$as_me:$LINENO: result: no" >&5
23113echo "${ECHO_T}no" >&6
23114 ;;
23115 esac
23116fi
23117
John Criswell47fdd832003-07-14 16:52:07 +000023118if test "x$enable_dlopen" != xyes; then
23119 enable_dlopen=unknown
23120 enable_dlopen_self=unknown
23121 enable_dlopen_self_static=unknown
23122else
23123 lt_cv_dlopen=no
23124 lt_cv_dlopen_libs=
23125
23126 case $host_os in
23127 beos*)
23128 lt_cv_dlopen="load_add_on"
23129 lt_cv_dlopen_libs=
23130 lt_cv_dlopen_self=yes
23131 ;;
23132
23133 mingw* | pw32*)
23134 lt_cv_dlopen="LoadLibrary"
23135 lt_cv_dlopen_libs=
23136 ;;
23137
23138 cygwin*)
23139 lt_cv_dlopen="dlopen"
23140 lt_cv_dlopen_libs=
23141 ;;
23142
23143 darwin*)
23144 # if libdl is installed we need to link against it
23145 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23146echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23147if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23148 echo $ECHO_N "(cached) $ECHO_C" >&6
23149else
23150 ac_check_lib_save_LIBS=$LIBS
23151LIBS="-ldl $LIBS"
23152cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023153/* confdefs.h. */
23154_ACEOF
23155cat confdefs.h >>conftest.$ac_ext
23156cat >>conftest.$ac_ext <<_ACEOF
23157/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023158
23159/* Override any gcc2 internal prototype to avoid an error. */
23160#ifdef __cplusplus
23161extern "C"
23162#endif
23163/* We use char because int might match the return type of a gcc2
23164 builtin and then its argument prototype would still apply. */
23165char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023166int
23167main ()
23168{
23169dlopen ();
23170 ;
23171 return 0;
23172}
23173_ACEOF
23174rm -f conftest.$ac_objext conftest$ac_exeext
23175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023176 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023178 grep -v '^ *+' conftest.er1 >conftest.err
23179 rm -f conftest.er1
23180 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023183 { ac_try='test -z "$ac_c_werror_flag"
23184 || test ! -s conftest.err'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; } &&
23190 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23193 ac_status=$?
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; }; then
23196 ac_cv_lib_dl_dlopen=yes
23197else
23198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023199sed 's/^/| /' conftest.$ac_ext >&5
23200
John Criswell47fdd832003-07-14 16:52:07 +000023201ac_cv_lib_dl_dlopen=no
23202fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023203rm -f conftest.err conftest.$ac_objext \
23204 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023205LIBS=$ac_check_lib_save_LIBS
23206fi
23207echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23208echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23209if test $ac_cv_lib_dl_dlopen = yes; then
23210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23211else
23212
23213 lt_cv_dlopen="dyld"
23214 lt_cv_dlopen_libs=
23215 lt_cv_dlopen_self=yes
23216
23217fi
23218
23219 ;;
23220
23221 *)
23222 echo "$as_me:$LINENO: checking for shl_load" >&5
23223echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23224if test "${ac_cv_func_shl_load+set}" = set; then
23225 echo $ECHO_N "(cached) $ECHO_C" >&6
23226else
23227 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023228/* confdefs.h. */
23229_ACEOF
23230cat confdefs.h >>conftest.$ac_ext
23231cat >>conftest.$ac_ext <<_ACEOF
23232/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023233/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23235#define shl_load innocuous_shl_load
23236
John Criswell47fdd832003-07-14 16:52:07 +000023237/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023238 which can conflict with char shl_load (); below.
23239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23240 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023241
John Criswell0c38eaf2003-09-10 15:17:25 +000023242#ifdef __STDC__
23243# include <limits.h>
23244#else
23245# include <assert.h>
23246#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023247
23248#undef shl_load
23249
John Criswell47fdd832003-07-14 16:52:07 +000023250/* Override any gcc2 internal prototype to avoid an error. */
23251#ifdef __cplusplus
23252extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023253{
John Criswell47fdd832003-07-14 16:52:07 +000023254#endif
23255/* We use char because int might match the return type of a gcc2
23256 builtin and then its argument prototype would still apply. */
23257char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023258/* The GNU C library defines this for functions which it implements
23259 to always fail with ENOSYS. Some functions are actually named
23260 something starting with __ and the normal name is an alias. */
23261#if defined (__stub_shl_load) || defined (__stub___shl_load)
23262choke me
23263#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023264char (*f) () = shl_load;
23265#endif
23266#ifdef __cplusplus
23267}
John Criswell47fdd832003-07-14 16:52:07 +000023268#endif
23269
John Criswell0c38eaf2003-09-10 15:17:25 +000023270int
23271main ()
23272{
23273return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023274 ;
23275 return 0;
23276}
23277_ACEOF
23278rm -f conftest.$ac_objext conftest$ac_exeext
23279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023280 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023287 { ac_try='test -z "$ac_c_werror_flag"
23288 || test ! -s conftest.err'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 ac_cv_func_shl_load=yes
23301else
23302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023303sed 's/^/| /' conftest.$ac_ext >&5
23304
John Criswell47fdd832003-07-14 16:52:07 +000023305ac_cv_func_shl_load=no
23306fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023307rm -f conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023309fi
23310echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23311echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23312if test $ac_cv_func_shl_load = yes; then
23313 lt_cv_dlopen="shl_load"
23314else
23315 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23316echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23317if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23319else
23320 ac_check_lib_save_LIBS=$LIBS
23321LIBS="-ldld $LIBS"
23322cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023323/* confdefs.h. */
23324_ACEOF
23325cat confdefs.h >>conftest.$ac_ext
23326cat >>conftest.$ac_ext <<_ACEOF
23327/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023328
23329/* Override any gcc2 internal prototype to avoid an error. */
23330#ifdef __cplusplus
23331extern "C"
23332#endif
23333/* We use char because int might match the return type of a gcc2
23334 builtin and then its argument prototype would still apply. */
23335char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023336int
23337main ()
23338{
23339shl_load ();
23340 ;
23341 return 0;
23342}
23343_ACEOF
23344rm -f conftest.$ac_objext conftest$ac_exeext
23345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023346 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023348 grep -v '^ *+' conftest.er1 >conftest.err
23349 rm -f conftest.er1
23350 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023353 { ac_try='test -z "$ac_c_werror_flag"
23354 || test ! -s conftest.err'
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23357 ac_status=$?
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; } &&
23360 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023361 { (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); }; }; then
23366 ac_cv_lib_dld_shl_load=yes
23367else
23368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023369sed 's/^/| /' conftest.$ac_ext >&5
23370
John Criswell47fdd832003-07-14 16:52:07 +000023371ac_cv_lib_dld_shl_load=no
23372fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023373rm -f conftest.err conftest.$ac_objext \
23374 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023375LIBS=$ac_check_lib_save_LIBS
23376fi
23377echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23378echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23379if test $ac_cv_lib_dld_shl_load = yes; then
23380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23381else
23382 echo "$as_me:$LINENO: checking for dlopen" >&5
23383echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23384if test "${ac_cv_func_dlopen+set}" = set; then
23385 echo $ECHO_N "(cached) $ECHO_C" >&6
23386else
23387 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023388/* confdefs.h. */
23389_ACEOF
23390cat confdefs.h >>conftest.$ac_ext
23391cat >>conftest.$ac_ext <<_ACEOF
23392/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023393/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23395#define dlopen innocuous_dlopen
23396
John Criswell47fdd832003-07-14 16:52:07 +000023397/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023398 which can conflict with char dlopen (); below.
23399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23400 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023401
John Criswell0c38eaf2003-09-10 15:17:25 +000023402#ifdef __STDC__
23403# include <limits.h>
23404#else
23405# include <assert.h>
23406#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023407
23408#undef dlopen
23409
John Criswell47fdd832003-07-14 16:52:07 +000023410/* Override any gcc2 internal prototype to avoid an error. */
23411#ifdef __cplusplus
23412extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023413{
John Criswell47fdd832003-07-14 16:52:07 +000023414#endif
23415/* We use char because int might match the return type of a gcc2
23416 builtin and then its argument prototype would still apply. */
23417char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023418/* The GNU C library defines this for functions which it implements
23419 to always fail with ENOSYS. Some functions are actually named
23420 something starting with __ and the normal name is an alias. */
23421#if defined (__stub_dlopen) || defined (__stub___dlopen)
23422choke me
23423#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023424char (*f) () = dlopen;
23425#endif
23426#ifdef __cplusplus
23427}
John Criswell47fdd832003-07-14 16:52:07 +000023428#endif
23429
John Criswell0c38eaf2003-09-10 15:17:25 +000023430int
23431main ()
23432{
23433return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023434 ;
23435 return 0;
23436}
23437_ACEOF
23438rm -f conftest.$ac_objext conftest$ac_exeext
23439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023440 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023442 grep -v '^ *+' conftest.er1 >conftest.err
23443 rm -f conftest.er1
23444 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023447 { ac_try='test -z "$ac_c_werror_flag"
23448 || test ! -s conftest.err'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23451 ac_status=$?
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; } &&
23454 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23457 ac_status=$?
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; }; then
23460 ac_cv_func_dlopen=yes
23461else
23462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023463sed 's/^/| /' conftest.$ac_ext >&5
23464
John Criswell47fdd832003-07-14 16:52:07 +000023465ac_cv_func_dlopen=no
23466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023467rm -f conftest.err conftest.$ac_objext \
23468 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023469fi
23470echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23471echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23472if test $ac_cv_func_dlopen = yes; then
23473 lt_cv_dlopen="dlopen"
23474else
23475 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23476echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23477if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23479else
23480 ac_check_lib_save_LIBS=$LIBS
23481LIBS="-ldl $LIBS"
23482cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023483/* confdefs.h. */
23484_ACEOF
23485cat confdefs.h >>conftest.$ac_ext
23486cat >>conftest.$ac_ext <<_ACEOF
23487/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023488
23489/* Override any gcc2 internal prototype to avoid an error. */
23490#ifdef __cplusplus
23491extern "C"
23492#endif
23493/* We use char because int might match the return type of a gcc2
23494 builtin and then its argument prototype would still apply. */
23495char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023496int
23497main ()
23498{
23499dlopen ();
23500 ;
23501 return 0;
23502}
23503_ACEOF
23504rm -f conftest.$ac_objext conftest$ac_exeext
23505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023506 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023508 grep -v '^ *+' conftest.er1 >conftest.err
23509 rm -f conftest.er1
23510 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023513 { ac_try='test -z "$ac_c_werror_flag"
23514 || test ! -s conftest.err'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; } &&
23520 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23523 ac_status=$?
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 ac_cv_lib_dl_dlopen=yes
23527else
23528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023529sed 's/^/| /' conftest.$ac_ext >&5
23530
John Criswell47fdd832003-07-14 16:52:07 +000023531ac_cv_lib_dl_dlopen=no
23532fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023533rm -f conftest.err conftest.$ac_objext \
23534 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023535LIBS=$ac_check_lib_save_LIBS
23536fi
23537echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23538echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23539if test $ac_cv_lib_dl_dlopen = yes; then
23540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23541else
23542 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23543echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23544if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23545 echo $ECHO_N "(cached) $ECHO_C" >&6
23546else
23547 ac_check_lib_save_LIBS=$LIBS
23548LIBS="-lsvld $LIBS"
23549cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023550/* confdefs.h. */
23551_ACEOF
23552cat confdefs.h >>conftest.$ac_ext
23553cat >>conftest.$ac_ext <<_ACEOF
23554/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023555
23556/* Override any gcc2 internal prototype to avoid an error. */
23557#ifdef __cplusplus
23558extern "C"
23559#endif
23560/* We use char because int might match the return type of a gcc2
23561 builtin and then its argument prototype would still apply. */
23562char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023563int
23564main ()
23565{
23566dlopen ();
23567 ;
23568 return 0;
23569}
23570_ACEOF
23571rm -f conftest.$ac_objext conftest$ac_exeext
23572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023573 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023574 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023575 grep -v '^ *+' conftest.er1 >conftest.err
23576 rm -f conftest.er1
23577 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023580 { ac_try='test -z "$ac_c_werror_flag"
23581 || test ! -s conftest.err'
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; } &&
23587 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589 (eval $ac_try) 2>&5
23590 ac_status=$?
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); }; }; then
23593 ac_cv_lib_svld_dlopen=yes
23594else
23595 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023596sed 's/^/| /' conftest.$ac_ext >&5
23597
John Criswell47fdd832003-07-14 16:52:07 +000023598ac_cv_lib_svld_dlopen=no
23599fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023600rm -f conftest.err conftest.$ac_objext \
23601 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023602LIBS=$ac_check_lib_save_LIBS
23603fi
23604echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23605echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23606if test $ac_cv_lib_svld_dlopen = yes; then
23607 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23608else
23609 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23610echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23611if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23613else
23614 ac_check_lib_save_LIBS=$LIBS
23615LIBS="-ldld $LIBS"
23616cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023617/* confdefs.h. */
23618_ACEOF
23619cat confdefs.h >>conftest.$ac_ext
23620cat >>conftest.$ac_ext <<_ACEOF
23621/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023622
23623/* Override any gcc2 internal prototype to avoid an error. */
23624#ifdef __cplusplus
23625extern "C"
23626#endif
23627/* We use char because int might match the return type of a gcc2
23628 builtin and then its argument prototype would still apply. */
23629char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023630int
23631main ()
23632{
23633dld_link ();
23634 ;
23635 return 0;
23636}
23637_ACEOF
23638rm -f conftest.$ac_objext conftest$ac_exeext
23639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023640 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023642 grep -v '^ *+' conftest.er1 >conftest.err
23643 rm -f conftest.er1
23644 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; } &&
23654 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23660 ac_cv_lib_dld_dld_link=yes
23661else
23662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023663sed 's/^/| /' conftest.$ac_ext >&5
23664
John Criswell47fdd832003-07-14 16:52:07 +000023665ac_cv_lib_dld_dld_link=no
23666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023667rm -f conftest.err conftest.$ac_objext \
23668 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023669LIBS=$ac_check_lib_save_LIBS
23670fi
23671echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23672echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23673if test $ac_cv_lib_dld_dld_link = yes; then
23674 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23675fi
23676
23677
23678fi
23679
23680
23681fi
23682
23683
23684fi
23685
23686
23687fi
23688
23689
23690fi
23691
23692 ;;
23693 esac
23694
23695 if test "x$lt_cv_dlopen" != xno; then
23696 enable_dlopen=yes
23697 else
23698 enable_dlopen=no
23699 fi
23700
23701 case $lt_cv_dlopen in
23702 dlopen)
23703 save_CPPFLAGS="$CPPFLAGS"
23704 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23705
23706 save_LDFLAGS="$LDFLAGS"
23707 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23708
23709 save_LIBS="$LIBS"
23710 LIBS="$lt_cv_dlopen_libs $LIBS"
23711
23712 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23713echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23714if test "${lt_cv_dlopen_self+set}" = set; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23716else
23717 if test "$cross_compiling" = yes; then :
23718 lt_cv_dlopen_self=cross
23719else
23720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23721 lt_status=$lt_dlunknown
23722 cat > conftest.$ac_ext <<EOF
Reid Spencerc28ccd82006-04-09 20:42:14 +000023723#line 23723 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023724#include "confdefs.h"
23725
23726#if HAVE_DLFCN_H
23727#include <dlfcn.h>
23728#endif
23729
23730#include <stdio.h>
23731
23732#ifdef RTLD_GLOBAL
23733# define LT_DLGLOBAL RTLD_GLOBAL
23734#else
23735# ifdef DL_GLOBAL
23736# define LT_DLGLOBAL DL_GLOBAL
23737# else
23738# define LT_DLGLOBAL 0
23739# endif
23740#endif
23741
23742/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23743 find out it does not work in some platform. */
23744#ifndef LT_DLLAZY_OR_NOW
23745# ifdef RTLD_LAZY
23746# define LT_DLLAZY_OR_NOW RTLD_LAZY
23747# else
23748# ifdef DL_LAZY
23749# define LT_DLLAZY_OR_NOW DL_LAZY
23750# else
23751# ifdef RTLD_NOW
23752# define LT_DLLAZY_OR_NOW RTLD_NOW
23753# else
23754# ifdef DL_NOW
23755# define LT_DLLAZY_OR_NOW DL_NOW
23756# else
23757# define LT_DLLAZY_OR_NOW 0
23758# endif
23759# endif
23760# endif
23761# endif
23762#endif
23763
23764#ifdef __cplusplus
23765extern "C" void exit (int);
23766#endif
23767
23768void fnord() { int i=42;}
23769int main ()
23770{
23771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23772 int status = $lt_dlunknown;
23773
23774 if (self)
23775 {
23776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23778 /* dlclose (self); */
23779 }
23780
23781 exit (status);
23782}
23783EOF
23784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23785 (eval $ac_link) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23789 (./conftest; exit; ) 2>/dev/null
23790 lt_status=$?
23791 case x$lt_status in
23792 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23793 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23794 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23795 esac
23796 else :
23797 # compilation failed
23798 lt_cv_dlopen_self=no
23799 fi
23800fi
23801rm -fr conftest*
23802
23803
23804fi
23805echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23806echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23807
23808 if test "x$lt_cv_dlopen_self" = xyes; then
23809 LDFLAGS="$LDFLAGS $link_static_flag"
23810 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23811echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23812if test "${lt_cv_dlopen_self_static+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23814else
23815 if test "$cross_compiling" = yes; then :
23816 lt_cv_dlopen_self_static=cross
23817else
23818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23819 lt_status=$lt_dlunknown
23820 cat > conftest.$ac_ext <<EOF
Reid Spencerc28ccd82006-04-09 20:42:14 +000023821#line 23821 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023822#include "confdefs.h"
23823
23824#if HAVE_DLFCN_H
23825#include <dlfcn.h>
23826#endif
23827
23828#include <stdio.h>
23829
23830#ifdef RTLD_GLOBAL
23831# define LT_DLGLOBAL RTLD_GLOBAL
23832#else
23833# ifdef DL_GLOBAL
23834# define LT_DLGLOBAL DL_GLOBAL
23835# else
23836# define LT_DLGLOBAL 0
23837# endif
23838#endif
23839
23840/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23841 find out it does not work in some platform. */
23842#ifndef LT_DLLAZY_OR_NOW
23843# ifdef RTLD_LAZY
23844# define LT_DLLAZY_OR_NOW RTLD_LAZY
23845# else
23846# ifdef DL_LAZY
23847# define LT_DLLAZY_OR_NOW DL_LAZY
23848# else
23849# ifdef RTLD_NOW
23850# define LT_DLLAZY_OR_NOW RTLD_NOW
23851# else
23852# ifdef DL_NOW
23853# define LT_DLLAZY_OR_NOW DL_NOW
23854# else
23855# define LT_DLLAZY_OR_NOW 0
23856# endif
23857# endif
23858# endif
23859# endif
23860#endif
23861
23862#ifdef __cplusplus
23863extern "C" void exit (int);
23864#endif
23865
23866void fnord() { int i=42;}
23867int main ()
23868{
23869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23870 int status = $lt_dlunknown;
23871
23872 if (self)
23873 {
23874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23875 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23876 /* dlclose (self); */
23877 }
23878
23879 exit (status);
23880}
23881EOF
23882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883 (eval $ac_link) 2>&5
23884 ac_status=$?
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23887 (./conftest; exit; ) 2>/dev/null
23888 lt_status=$?
23889 case x$lt_status in
23890 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23891 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23892 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23893 esac
23894 else :
23895 # compilation failed
23896 lt_cv_dlopen_self_static=no
23897 fi
23898fi
23899rm -fr conftest*
23900
23901
23902fi
23903echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23904echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23905 fi
23906
23907 CPPFLAGS="$save_CPPFLAGS"
23908 LDFLAGS="$save_LDFLAGS"
23909 LIBS="$save_LIBS"
23910 ;;
23911 esac
23912
23913 case $lt_cv_dlopen_self in
23914 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23915 *) enable_dlopen_self=unknown ;;
23916 esac
23917
23918 case $lt_cv_dlopen_self_static in
23919 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23920 *) enable_dlopen_self_static=unknown ;;
23921 esac
23922fi
23923
23924
23925# The else clause should only fire when bootstrapping the
23926# libtool distribution, otherwise you forgot to ship ltmain.sh
23927# with your package, and you will get complaints that there are
23928# no rules to generate ltmain.sh.
23929if test -f "$ltmain"; then
23930 # See if we are running on zsh, and set the options which allow our commands through
23931 # without removal of \ escapes.
23932 if test -n "${ZSH_VERSION+set}" ; then
23933 setopt NO_GLOB_SUBST
23934 fi
23935 # Now quote all the things that may contain metacharacters while being
23936 # careful not to overquote the AC_SUBSTed values. We take copies of the
23937 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023938 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23939 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023940 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23941 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23942 deplibs_check_method reload_flag reload_cmds need_locks \
23943 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23944 lt_cv_sys_global_symbol_to_c_name_address \
23945 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23946 old_postinstall_cmds old_postuninstall_cmds \
23947 compiler_GCJ \
23948 CC_GCJ \
23949 LD_GCJ \
23950 lt_prog_compiler_wl_GCJ \
23951 lt_prog_compiler_pic_GCJ \
23952 lt_prog_compiler_static_GCJ \
23953 lt_prog_compiler_no_builtin_flag_GCJ \
23954 export_dynamic_flag_spec_GCJ \
23955 thread_safe_flag_spec_GCJ \
23956 whole_archive_flag_spec_GCJ \
23957 enable_shared_with_static_runtimes_GCJ \
23958 old_archive_cmds_GCJ \
23959 old_archive_from_new_cmds_GCJ \
23960 predep_objects_GCJ \
23961 postdep_objects_GCJ \
23962 predeps_GCJ \
23963 postdeps_GCJ \
23964 compiler_lib_search_path_GCJ \
23965 archive_cmds_GCJ \
23966 archive_expsym_cmds_GCJ \
23967 postinstall_cmds_GCJ \
23968 postuninstall_cmds_GCJ \
23969 old_archive_from_expsyms_cmds_GCJ \
23970 allow_undefined_flag_GCJ \
23971 no_undefined_flag_GCJ \
23972 export_symbols_cmds_GCJ \
23973 hardcode_libdir_flag_spec_GCJ \
23974 hardcode_libdir_flag_spec_ld_GCJ \
23975 hardcode_libdir_separator_GCJ \
23976 hardcode_automatic_GCJ \
23977 module_cmds_GCJ \
23978 module_expsym_cmds_GCJ \
23979 lt_cv_prog_compiler_c_o_GCJ \
23980 exclude_expsyms_GCJ \
23981 include_expsyms_GCJ; do
23982
23983 case $var in
23984 old_archive_cmds_GCJ | \
23985 old_archive_from_new_cmds_GCJ | \
23986 archive_cmds_GCJ | \
23987 archive_expsym_cmds_GCJ | \
23988 module_cmds_GCJ | \
23989 module_expsym_cmds_GCJ | \
23990 old_archive_from_expsyms_cmds_GCJ | \
23991 export_symbols_cmds_GCJ | \
23992 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23993 postinstall_cmds | postuninstall_cmds | \
23994 old_postinstall_cmds | old_postuninstall_cmds | \
23995 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23996 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023997 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 +000023998 ;;
23999 *)
24000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24001 ;;
24002 esac
24003 done
24004
24005 case $lt_echo in
24006 *'\$0 --fallback-echo"')
24007 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24008 ;;
24009 esac
24010
24011cfgfile="$ofile"
24012
24013 cat <<__EOF__ >> "$cfgfile"
24014# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24015
24016# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24017
24018# Shell to use when invoking shell scripts.
24019SHELL=$lt_SHELL
24020
24021# Whether or not to build shared libraries.
24022build_libtool_libs=$enable_shared
24023
24024# Whether or not to build static libraries.
24025build_old_libs=$enable_static
24026
24027# Whether or not to add -lc for building shared libraries.
24028build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24029
24030# Whether or not to disallow shared libs when runtime libs are static
24031allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24032
24033# Whether or not to optimize for fast installation.
24034fast_install=$enable_fast_install
24035
24036# The host system.
24037host_alias=$host_alias
24038host=$host
24039
24040# An echo program that does not interpret backslashes.
24041echo=$lt_echo
24042
24043# The archiver.
24044AR=$lt_AR
24045AR_FLAGS=$lt_AR_FLAGS
24046
24047# A C compiler.
24048LTCC=$lt_LTCC
24049
24050# A language-specific compiler.
24051CC=$lt_compiler_GCJ
24052
24053# Is the compiler the GNU C compiler?
24054with_gcc=$GCC_GCJ
24055
24056# An ERE matcher.
24057EGREP=$lt_EGREP
24058
24059# The linker used to build libraries.
24060LD=$lt_LD_GCJ
24061
24062# Whether we need hard or soft links.
24063LN_S=$lt_LN_S
24064
24065# A BSD-compatible nm program.
24066NM=$lt_NM
24067
24068# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024069STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024070
24071# Used to examine libraries when file_magic_cmd begins "file"
24072MAGIC_CMD=$MAGIC_CMD
24073
24074# Used on cygwin: DLL creation program.
24075DLLTOOL="$DLLTOOL"
24076
24077# Used on cygwin: object dumper.
24078OBJDUMP="$OBJDUMP"
24079
24080# Used on cygwin: assembler.
24081AS="$AS"
24082
24083# The name of the directory that contains temporary libtool files.
24084objdir=$objdir
24085
24086# How to create reloadable object files.
24087reload_flag=$lt_reload_flag
24088reload_cmds=$lt_reload_cmds
24089
24090# How to pass a linker flag through the compiler.
24091wl=$lt_lt_prog_compiler_wl_GCJ
24092
24093# Object file suffix (normally "o").
24094objext="$ac_objext"
24095
24096# Old archive suffix (normally "a").
24097libext="$libext"
24098
24099# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024100shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024101
24102# Executable file suffix (normally "").
24103exeext="$exeext"
24104
24105# Additional compiler flags for building library objects.
24106pic_flag=$lt_lt_prog_compiler_pic_GCJ
24107pic_mode=$pic_mode
24108
24109# What is the maximum length of a command?
24110max_cmd_len=$lt_cv_sys_max_cmd_len
24111
24112# Does compiler simultaneously support -c and -o options?
24113compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24114
24115# Must we lock files when doing compilation ?
24116need_locks=$lt_need_locks
24117
24118# Do we need the lib prefix for modules?
24119need_lib_prefix=$need_lib_prefix
24120
24121# Do we need a version for libraries?
24122need_version=$need_version
24123
24124# Whether dlopen is supported.
24125dlopen_support=$enable_dlopen
24126
24127# Whether dlopen of programs is supported.
24128dlopen_self=$enable_dlopen_self
24129
24130# Whether dlopen of statically linked programs is supported.
24131dlopen_self_static=$enable_dlopen_self_static
24132
24133# Compiler flag to prevent dynamic linking.
24134link_static_flag=$lt_lt_prog_compiler_static_GCJ
24135
24136# Compiler flag to turn off builtin functions.
24137no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24138
24139# Compiler flag to allow reflexive dlopens.
24140export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24141
24142# Compiler flag to generate shared objects directly from archives.
24143whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24144
24145# Compiler flag to generate thread-safe objects.
24146thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24147
24148# Library versioning type.
24149version_type=$version_type
24150
24151# Format of library name prefix.
24152libname_spec=$lt_libname_spec
24153
24154# List of archive names. First name is the real one, the rest are links.
24155# The last name is the one that the linker finds with -lNAME.
24156library_names_spec=$lt_library_names_spec
24157
24158# The coded name of the library, if different from the real name.
24159soname_spec=$lt_soname_spec
24160
24161# Commands used to build and install an old-style archive.
24162RANLIB=$lt_RANLIB
24163old_archive_cmds=$lt_old_archive_cmds_GCJ
24164old_postinstall_cmds=$lt_old_postinstall_cmds
24165old_postuninstall_cmds=$lt_old_postuninstall_cmds
24166
24167# Create an old-style archive from a shared archive.
24168old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24169
24170# Create a temporary old-style archive to link instead of a shared archive.
24171old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24172
24173# Commands used to build and install a shared archive.
24174archive_cmds=$lt_archive_cmds_GCJ
24175archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24176postinstall_cmds=$lt_postinstall_cmds
24177postuninstall_cmds=$lt_postuninstall_cmds
24178
24179# Commands used to build a loadable module (assumed same as above if empty)
24180module_cmds=$lt_module_cmds_GCJ
24181module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24182
24183# Commands to strip libraries.
24184old_striplib=$lt_old_striplib
24185striplib=$lt_striplib
24186
24187# Dependencies to place before the objects being linked to create a
24188# shared library.
24189predep_objects=$lt_predep_objects_GCJ
24190
24191# Dependencies to place after the objects being linked to create a
24192# shared library.
24193postdep_objects=$lt_postdep_objects_GCJ
24194
24195# Dependencies to place before the objects being linked to create a
24196# shared library.
24197predeps=$lt_predeps_GCJ
24198
24199# Dependencies to place after the objects being linked to create a
24200# shared library.
24201postdeps=$lt_postdeps_GCJ
24202
24203# The library search path used internally by the compiler when linking
24204# a shared library.
24205compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24206
24207# Method to check whether dependent libraries are shared objects.
24208deplibs_check_method=$lt_deplibs_check_method
24209
24210# Command to use when deplibs_check_method == file_magic.
24211file_magic_cmd=$lt_file_magic_cmd
24212
24213# Flag that allows shared libraries with undefined symbols to be built.
24214allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24215
24216# Flag that forces no undefined symbols.
24217no_undefined_flag=$lt_no_undefined_flag_GCJ
24218
24219# Commands used to finish a libtool library installation in a directory.
24220finish_cmds=$lt_finish_cmds
24221
24222# Same as above, but a single script fragment to be evaled but not shown.
24223finish_eval=$lt_finish_eval
24224
24225# Take the output of nm and produce a listing of raw symbols and C names.
24226global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24227
24228# Transform the output of nm in a proper C declaration
24229global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24230
24231# Transform the output of nm in a C name address pair
24232global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24233
24234# This is the shared library runtime path variable.
24235runpath_var=$runpath_var
24236
24237# This is the shared library path variable.
24238shlibpath_var=$shlibpath_var
24239
24240# Is shlibpath searched before the hard-coded library search path?
24241shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24242
24243# How to hardcode a shared library path into an executable.
24244hardcode_action=$hardcode_action_GCJ
24245
24246# Whether we should hardcode library paths into libraries.
24247hardcode_into_libs=$hardcode_into_libs
24248
24249# Flag to hardcode \$libdir into a binary during linking.
24250# This must work even if \$libdir does not exist.
24251hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24252
24253# If ld is used when linking, flag to hardcode \$libdir into
24254# a binary during linking. This must work even if \$libdir does
24255# not exist.
24256hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24257
24258# Whether we need a single -rpath flag with a separated argument.
24259hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24260
24261# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24262# resulting binary.
24263hardcode_direct=$hardcode_direct_GCJ
24264
24265# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24266# resulting binary.
24267hardcode_minus_L=$hardcode_minus_L_GCJ
24268
24269# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24270# the resulting binary.
24271hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24272
24273# Set to yes if building a shared library automatically hardcodes DIR into the library
24274# and all subsequent libraries and executables linked against it.
24275hardcode_automatic=$hardcode_automatic_GCJ
24276
24277# Variables whose values should be saved in libtool wrapper scripts and
24278# restored at relink time.
24279variables_saved_for_relink="$variables_saved_for_relink"
24280
24281# Whether libtool must link a program against all its dependency libraries.
24282link_all_deplibs=$link_all_deplibs_GCJ
24283
24284# Compile-time system search path for libraries
24285sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24286
24287# Run-time system search path for libraries
24288sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24289
24290# Fix the shell variable \$srcfile for the compiler.
24291fix_srcfile_path="$fix_srcfile_path_GCJ"
24292
24293# Set to yes if exported symbols are required.
24294always_export_symbols=$always_export_symbols_GCJ
24295
24296# The commands to list exported symbols.
24297export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24298
24299# The commands to extract the exported symbol list from a shared archive.
24300extract_expsyms_cmds=$lt_extract_expsyms_cmds
24301
24302# Symbols that should not be listed in the preloaded symbols.
24303exclude_expsyms=$lt_exclude_expsyms_GCJ
24304
24305# Symbols that must always be exported.
24306include_expsyms=$lt_include_expsyms_GCJ
24307
24308# ### END LIBTOOL TAG CONFIG: $tagname
24309
24310__EOF__
24311
24312
24313else
24314 # If there is no Makefile yet, we rely on a make rule to execute
24315 # `config.status --recheck' to rerun these tests and create the
24316 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024317 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24318 if test -f "$ltmain_in"; then
24319 test -f Makefile && make "$ltmain"
24320 fi
John Criswell47fdd832003-07-14 16:52:07 +000024321fi
24322
24323
24324ac_ext=c
24325ac_cpp='$CPP $CPPFLAGS'
24326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24328ac_compiler_gnu=$ac_cv_c_compiler_gnu
24329
24330CC="$lt_save_CC"
24331
24332 else
24333 tagname=""
24334 fi
24335 ;;
24336
24337 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024338 ac_ext=c
24339ac_cpp='$CPP $CPPFLAGS'
24340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24342ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024343
24344
24345# Source file extension for RC test sources.
24346ac_ext=rc
24347
24348# Object file extension for compiled RC test sources.
24349objext=o
24350objext_RC=$objext
24351
24352# Code to be used in simple compile tests
24353lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24354
24355# Code to be used in simple link tests
24356lt_simple_link_test_code="$lt_simple_compile_test_code"
24357
24358# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24359
24360# If no C compiler was specified, use CC.
24361LTCC=${LTCC-"$CC"}
24362
24363# Allow CC to be a program name with arguments.
24364compiler=$CC
24365
24366
24367# Allow CC to be a program name with arguments.
24368lt_save_CC="$CC"
24369CC=${RC-"windres"}
24370compiler=$CC
24371compiler_RC=$CC
24372lt_cv_prog_compiler_c_o_RC=yes
24373
24374# The else clause should only fire when bootstrapping the
24375# libtool distribution, otherwise you forgot to ship ltmain.sh
24376# with your package, and you will get complaints that there are
24377# no rules to generate ltmain.sh.
24378if test -f "$ltmain"; then
24379 # See if we are running on zsh, and set the options which allow our commands through
24380 # without removal of \ escapes.
24381 if test -n "${ZSH_VERSION+set}" ; then
24382 setopt NO_GLOB_SUBST
24383 fi
24384 # Now quote all the things that may contain metacharacters while being
24385 # careful not to overquote the AC_SUBSTed values. We take copies of the
24386 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024387 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24388 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024389 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24390 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24391 deplibs_check_method reload_flag reload_cmds need_locks \
24392 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24393 lt_cv_sys_global_symbol_to_c_name_address \
24394 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24395 old_postinstall_cmds old_postuninstall_cmds \
24396 compiler_RC \
24397 CC_RC \
24398 LD_RC \
24399 lt_prog_compiler_wl_RC \
24400 lt_prog_compiler_pic_RC \
24401 lt_prog_compiler_static_RC \
24402 lt_prog_compiler_no_builtin_flag_RC \
24403 export_dynamic_flag_spec_RC \
24404 thread_safe_flag_spec_RC \
24405 whole_archive_flag_spec_RC \
24406 enable_shared_with_static_runtimes_RC \
24407 old_archive_cmds_RC \
24408 old_archive_from_new_cmds_RC \
24409 predep_objects_RC \
24410 postdep_objects_RC \
24411 predeps_RC \
24412 postdeps_RC \
24413 compiler_lib_search_path_RC \
24414 archive_cmds_RC \
24415 archive_expsym_cmds_RC \
24416 postinstall_cmds_RC \
24417 postuninstall_cmds_RC \
24418 old_archive_from_expsyms_cmds_RC \
24419 allow_undefined_flag_RC \
24420 no_undefined_flag_RC \
24421 export_symbols_cmds_RC \
24422 hardcode_libdir_flag_spec_RC \
24423 hardcode_libdir_flag_spec_ld_RC \
24424 hardcode_libdir_separator_RC \
24425 hardcode_automatic_RC \
24426 module_cmds_RC \
24427 module_expsym_cmds_RC \
24428 lt_cv_prog_compiler_c_o_RC \
24429 exclude_expsyms_RC \
24430 include_expsyms_RC; do
24431
24432 case $var in
24433 old_archive_cmds_RC | \
24434 old_archive_from_new_cmds_RC | \
24435 archive_cmds_RC | \
24436 archive_expsym_cmds_RC | \
24437 module_cmds_RC | \
24438 module_expsym_cmds_RC | \
24439 old_archive_from_expsyms_cmds_RC | \
24440 export_symbols_cmds_RC | \
24441 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24442 postinstall_cmds | postuninstall_cmds | \
24443 old_postinstall_cmds | old_postuninstall_cmds | \
24444 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24445 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024446 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 +000024447 ;;
24448 *)
24449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24450 ;;
24451 esac
24452 done
24453
24454 case $lt_echo in
24455 *'\$0 --fallback-echo"')
24456 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24457 ;;
24458 esac
24459
24460cfgfile="$ofile"
24461
24462 cat <<__EOF__ >> "$cfgfile"
24463# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24464
24465# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24466
24467# Shell to use when invoking shell scripts.
24468SHELL=$lt_SHELL
24469
24470# Whether or not to build shared libraries.
24471build_libtool_libs=$enable_shared
24472
24473# Whether or not to build static libraries.
24474build_old_libs=$enable_static
24475
24476# Whether or not to add -lc for building shared libraries.
24477build_libtool_need_lc=$archive_cmds_need_lc_RC
24478
24479# Whether or not to disallow shared libs when runtime libs are static
24480allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24481
24482# Whether or not to optimize for fast installation.
24483fast_install=$enable_fast_install
24484
24485# The host system.
24486host_alias=$host_alias
24487host=$host
24488
24489# An echo program that does not interpret backslashes.
24490echo=$lt_echo
24491
24492# The archiver.
24493AR=$lt_AR
24494AR_FLAGS=$lt_AR_FLAGS
24495
24496# A C compiler.
24497LTCC=$lt_LTCC
24498
24499# A language-specific compiler.
24500CC=$lt_compiler_RC
24501
24502# Is the compiler the GNU C compiler?
24503with_gcc=$GCC_RC
24504
24505# An ERE matcher.
24506EGREP=$lt_EGREP
24507
24508# The linker used to build libraries.
24509LD=$lt_LD_RC
24510
24511# Whether we need hard or soft links.
24512LN_S=$lt_LN_S
24513
24514# A BSD-compatible nm program.
24515NM=$lt_NM
24516
24517# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024518STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024519
24520# Used to examine libraries when file_magic_cmd begins "file"
24521MAGIC_CMD=$MAGIC_CMD
24522
24523# Used on cygwin: DLL creation program.
24524DLLTOOL="$DLLTOOL"
24525
24526# Used on cygwin: object dumper.
24527OBJDUMP="$OBJDUMP"
24528
24529# Used on cygwin: assembler.
24530AS="$AS"
24531
24532# The name of the directory that contains temporary libtool files.
24533objdir=$objdir
24534
24535# How to create reloadable object files.
24536reload_flag=$lt_reload_flag
24537reload_cmds=$lt_reload_cmds
24538
24539# How to pass a linker flag through the compiler.
24540wl=$lt_lt_prog_compiler_wl_RC
24541
24542# Object file suffix (normally "o").
24543objext="$ac_objext"
24544
24545# Old archive suffix (normally "a").
24546libext="$libext"
24547
24548# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024549shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024550
24551# Executable file suffix (normally "").
24552exeext="$exeext"
24553
24554# Additional compiler flags for building library objects.
24555pic_flag=$lt_lt_prog_compiler_pic_RC
24556pic_mode=$pic_mode
24557
24558# What is the maximum length of a command?
24559max_cmd_len=$lt_cv_sys_max_cmd_len
24560
24561# Does compiler simultaneously support -c and -o options?
24562compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24563
24564# Must we lock files when doing compilation ?
24565need_locks=$lt_need_locks
24566
24567# Do we need the lib prefix for modules?
24568need_lib_prefix=$need_lib_prefix
24569
24570# Do we need a version for libraries?
24571need_version=$need_version
24572
24573# Whether dlopen is supported.
24574dlopen_support=$enable_dlopen
24575
24576# Whether dlopen of programs is supported.
24577dlopen_self=$enable_dlopen_self
24578
24579# Whether dlopen of statically linked programs is supported.
24580dlopen_self_static=$enable_dlopen_self_static
24581
24582# Compiler flag to prevent dynamic linking.
24583link_static_flag=$lt_lt_prog_compiler_static_RC
24584
24585# Compiler flag to turn off builtin functions.
24586no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24587
24588# Compiler flag to allow reflexive dlopens.
24589export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24590
24591# Compiler flag to generate shared objects directly from archives.
24592whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24593
24594# Compiler flag to generate thread-safe objects.
24595thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24596
24597# Library versioning type.
24598version_type=$version_type
24599
24600# Format of library name prefix.
24601libname_spec=$lt_libname_spec
24602
24603# List of archive names. First name is the real one, the rest are links.
24604# The last name is the one that the linker finds with -lNAME.
24605library_names_spec=$lt_library_names_spec
24606
24607# The coded name of the library, if different from the real name.
24608soname_spec=$lt_soname_spec
24609
24610# Commands used to build and install an old-style archive.
24611RANLIB=$lt_RANLIB
24612old_archive_cmds=$lt_old_archive_cmds_RC
24613old_postinstall_cmds=$lt_old_postinstall_cmds
24614old_postuninstall_cmds=$lt_old_postuninstall_cmds
24615
24616# Create an old-style archive from a shared archive.
24617old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24618
24619# Create a temporary old-style archive to link instead of a shared archive.
24620old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24621
24622# Commands used to build and install a shared archive.
24623archive_cmds=$lt_archive_cmds_RC
24624archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24625postinstall_cmds=$lt_postinstall_cmds
24626postuninstall_cmds=$lt_postuninstall_cmds
24627
24628# Commands used to build a loadable module (assumed same as above if empty)
24629module_cmds=$lt_module_cmds_RC
24630module_expsym_cmds=$lt_module_expsym_cmds_RC
24631
24632# Commands to strip libraries.
24633old_striplib=$lt_old_striplib
24634striplib=$lt_striplib
24635
24636# Dependencies to place before the objects being linked to create a
24637# shared library.
24638predep_objects=$lt_predep_objects_RC
24639
24640# Dependencies to place after the objects being linked to create a
24641# shared library.
24642postdep_objects=$lt_postdep_objects_RC
24643
24644# Dependencies to place before the objects being linked to create a
24645# shared library.
24646predeps=$lt_predeps_RC
24647
24648# Dependencies to place after the objects being linked to create a
24649# shared library.
24650postdeps=$lt_postdeps_RC
24651
24652# The library search path used internally by the compiler when linking
24653# a shared library.
24654compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24655
24656# Method to check whether dependent libraries are shared objects.
24657deplibs_check_method=$lt_deplibs_check_method
24658
24659# Command to use when deplibs_check_method == file_magic.
24660file_magic_cmd=$lt_file_magic_cmd
24661
24662# Flag that allows shared libraries with undefined symbols to be built.
24663allow_undefined_flag=$lt_allow_undefined_flag_RC
24664
24665# Flag that forces no undefined symbols.
24666no_undefined_flag=$lt_no_undefined_flag_RC
24667
24668# Commands used to finish a libtool library installation in a directory.
24669finish_cmds=$lt_finish_cmds
24670
24671# Same as above, but a single script fragment to be evaled but not shown.
24672finish_eval=$lt_finish_eval
24673
24674# Take the output of nm and produce a listing of raw symbols and C names.
24675global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24676
24677# Transform the output of nm in a proper C declaration
24678global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24679
24680# Transform the output of nm in a C name address pair
24681global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24682
24683# This is the shared library runtime path variable.
24684runpath_var=$runpath_var
24685
24686# This is the shared library path variable.
24687shlibpath_var=$shlibpath_var
24688
24689# Is shlibpath searched before the hard-coded library search path?
24690shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24691
24692# How to hardcode a shared library path into an executable.
24693hardcode_action=$hardcode_action_RC
24694
24695# Whether we should hardcode library paths into libraries.
24696hardcode_into_libs=$hardcode_into_libs
24697
24698# Flag to hardcode \$libdir into a binary during linking.
24699# This must work even if \$libdir does not exist.
24700hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24701
24702# If ld is used when linking, flag to hardcode \$libdir into
24703# a binary during linking. This must work even if \$libdir does
24704# not exist.
24705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24706
24707# Whether we need a single -rpath flag with a separated argument.
24708hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24709
24710# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24711# resulting binary.
24712hardcode_direct=$hardcode_direct_RC
24713
24714# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24715# resulting binary.
24716hardcode_minus_L=$hardcode_minus_L_RC
24717
24718# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24719# the resulting binary.
24720hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24721
24722# Set to yes if building a shared library automatically hardcodes DIR into the library
24723# and all subsequent libraries and executables linked against it.
24724hardcode_automatic=$hardcode_automatic_RC
24725
24726# Variables whose values should be saved in libtool wrapper scripts and
24727# restored at relink time.
24728variables_saved_for_relink="$variables_saved_for_relink"
24729
24730# Whether libtool must link a program against all its dependency libraries.
24731link_all_deplibs=$link_all_deplibs_RC
24732
24733# Compile-time system search path for libraries
24734sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24735
24736# Run-time system search path for libraries
24737sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24738
24739# Fix the shell variable \$srcfile for the compiler.
24740fix_srcfile_path="$fix_srcfile_path_RC"
24741
24742# Set to yes if exported symbols are required.
24743always_export_symbols=$always_export_symbols_RC
24744
24745# The commands to list exported symbols.
24746export_symbols_cmds=$lt_export_symbols_cmds_RC
24747
24748# The commands to extract the exported symbol list from a shared archive.
24749extract_expsyms_cmds=$lt_extract_expsyms_cmds
24750
24751# Symbols that should not be listed in the preloaded symbols.
24752exclude_expsyms=$lt_exclude_expsyms_RC
24753
24754# Symbols that must always be exported.
24755include_expsyms=$lt_include_expsyms_RC
24756
24757# ### END LIBTOOL TAG CONFIG: $tagname
24758
24759__EOF__
24760
24761
24762else
24763 # If there is no Makefile yet, we rely on a make rule to execute
24764 # `config.status --recheck' to rerun these tests and create the
24765 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24767 if test -f "$ltmain_in"; then
24768 test -f Makefile && make "$ltmain"
24769 fi
John Criswell47fdd832003-07-14 16:52:07 +000024770fi
24771
24772
24773ac_ext=c
24774ac_cpp='$CPP $CPPFLAGS'
24775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24777ac_compiler_gnu=$ac_cv_c_compiler_gnu
24778
24779CC="$lt_save_CC"
24780
24781 ;;
24782
24783 *)
24784 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24785echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24786 { (exit 1); exit 1; }; }
24787 ;;
24788 esac
24789
24790 # Append the new tag name to the list of available tags.
24791 if test -n "$tagname" ; then
24792 available_tags="$available_tags $tagname"
24793 fi
24794 fi
24795 done
24796 IFS="$lt_save_ifs"
24797
24798 # Now substitute the updated list of available tags.
24799 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24800 mv "${ofile}T" "$ofile"
24801 chmod +x "$ofile"
24802 else
24803 rm -f "${ofile}T"
24804 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24805echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24806 { (exit 1); exit 1; }; }
24807 fi
24808fi
John Criswell7a73b802003-06-30 21:59:07 +000024809
24810
24811
24812# This can be used to rebuild libtool when needed
24813LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24814
24815# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024816LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024817
24818# Prevent multiple expansion
24819
24820
24821
John Criswell47fdd832003-07-14 16:52:07 +000024822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024839
Reid Spencer582a23c2004-12-29 07:07:57 +000024840if test "$lt_cv_dlopen_self" = "yes" ; then
24841
24842cat >>confdefs.h <<\_ACEOF
24843#define CAN_DLOPEN_SELF 1
24844_ACEOF
24845
24846fi
24847
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024848etags_version=`$ETAGS --version 2>&1`
24849case "$etags_version" in
24850 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24851 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24852 *) ETAGSFLAGS="" ;;
24853esac
24854ETAGSFLAGS=$ETAGSFLAGS
24855
24856
Reid Spencer7931a782004-12-27 06:15:02 +000024857if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024858 LLVMGCC="llvm-gcc${EXEEXT}"
24859 LLVMGXX="llvm-g++${EXEEXT}"
24860 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24861set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024862echo "$as_me:$LINENO: checking for $ac_word" >&5
24863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24864if test "${ac_cv_path_LLVMGCC+set}" = set; then
24865 echo $ECHO_N "(cached) $ECHO_C" >&6
24866else
24867 case $LLVMGCC in
24868 [\\/]* | ?:[\\/]*)
24869 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24870 ;;
24871 *)
24872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24873for as_dir in $PATH
24874do
24875 IFS=$as_save_IFS
24876 test -z "$as_dir" && as_dir=.
24877 for ac_exec_ext in '' $ac_executable_extensions; do
24878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24879 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24881 break 2
24882 fi
24883done
24884done
24885
Reid Spencer59473af2004-12-25 07:31:29 +000024886 ;;
24887esac
24888fi
24889LLVMGCC=$ac_cv_path_LLVMGCC
24890
24891if test -n "$LLVMGCC"; then
24892 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24893echo "${ECHO_T}$LLVMGCC" >&6
24894else
24895 echo "$as_me:$LINENO: result: no" >&5
24896echo "${ECHO_T}no" >&6
24897fi
24898
Reid Spencerc84492c2005-06-02 22:34:49 +000024899 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24900set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024901echo "$as_me:$LINENO: checking for $ac_word" >&5
24902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24903if test "${ac_cv_path_LLVMGXX+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24905else
24906 case $LLVMGXX in
24907 [\\/]* | ?:[\\/]*)
24908 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24909 ;;
24910 *)
24911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24912for as_dir in $PATH
24913do
24914 IFS=$as_save_IFS
24915 test -z "$as_dir" && as_dir=.
24916 for ac_exec_ext in '' $ac_executable_extensions; do
24917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24918 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24920 break 2
24921 fi
24922done
24923done
24924
Reid Spencer59473af2004-12-25 07:31:29 +000024925 ;;
24926esac
24927fi
24928LLVMGXX=$ac_cv_path_LLVMGXX
24929
24930if test -n "$LLVMGXX"; then
24931 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24932echo "${ECHO_T}$LLVMGXX" >&6
24933else
24934 echo "$as_me:$LINENO: result: no" >&5
24935echo "${ECHO_T}no" >&6
24936fi
24937
24938else
Reid Spencerc84492c2005-06-02 22:34:49 +000024939 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24940 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024941 LLVMGCC=$LLVMGCC
24942
24943 LLVMGXX=$LLVMGXX
24944
24945fi
24946
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024947echo "$as_me:$LINENO: checking tool compatibility" >&5
24948echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24949
Reid Spencer86901802004-12-08 23:07:27 +000024950ICC=no
24951IXX=no
24952case $CC in
24953 icc*|icpc*)
24954 ICC=yes
24955 IXX=yes
24956 ;;
24957 *)
24958 ;;
24959esac
24960
Duraid Madina937c60a2006-02-15 07:57:42 +000024961if test "$GCC" != "yes" && test "$ICC" != "yes"
24962then
24963 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24964echo "$as_me: error: gcc|icc required but not found" >&2;}
24965 { (exit 1); exit 1; }; }
24966fi
24967
24968if test "$GXX" != "yes" && test "$IXX" != "yes"
24969then
24970 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24971echo "$as_me: error: g++|icc required but not found" >&2;}
24972 { (exit 1); exit 1; }; }
24973fi
24974
Reid Spencer86901802004-12-08 23:07:27 +000024975if test "$GCC" = "yes"
24976then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000024977 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000024978 if test "$gccmajor" -lt "3"
24979 then
24980 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024981echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24982 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024983 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024984fi
24985
24986if test -z "$llvm_cv_gnu_make_command"
24987then
24988 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24989echo "$as_me: error: GNU Make required but not found" >&2;}
24990 { (exit 1); exit 1; }; }
24991fi
24992
24993echo "$as_me:$LINENO: result: ok" >&5
24994echo "${ECHO_T}ok" >&6
24995
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024996
John Criswell7a73b802003-06-30 21:59:07 +000024997
John Criswell7a73b802003-06-30 21:59:07 +000024998echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24999echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25000if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25001 echo $ECHO_N "(cached) $ECHO_C" >&6
25002else
25003 ac_check_lib_save_LIBS=$LIBS
25004LIBS="-lelf $LIBS"
25005cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025006/* confdefs.h. */
25007_ACEOF
25008cat confdefs.h >>conftest.$ac_ext
25009cat >>conftest.$ac_ext <<_ACEOF
25010/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025011
25012/* Override any gcc2 internal prototype to avoid an error. */
25013#ifdef __cplusplus
25014extern "C"
25015#endif
25016/* We use char because int might match the return type of a gcc2
25017 builtin and then its argument prototype would still apply. */
25018char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025019int
25020main ()
25021{
25022elf_begin ();
25023 ;
25024 return 0;
25025}
25026_ACEOF
25027rm -f conftest.$ac_objext conftest$ac_exeext
25028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025029 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025030 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025031 grep -v '^ *+' conftest.er1 >conftest.err
25032 rm -f conftest.er1
25033 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025036 { ac_try='test -z "$ac_c_werror_flag"
25037 || test ! -s conftest.err'
25038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; } &&
25043 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; }; then
25049 ac_cv_lib_elf_elf_begin=yes
25050else
25051 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025052sed 's/^/| /' conftest.$ac_ext >&5
25053
John Criswell7a73b802003-06-30 21:59:07 +000025054ac_cv_lib_elf_elf_begin=no
25055fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025056rm -f conftest.err conftest.$ac_objext \
25057 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025058LIBS=$ac_check_lib_save_LIBS
25059fi
25060echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25061echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25062if test $ac_cv_lib_elf_elf_begin = yes; then
25063 cat >>confdefs.h <<_ACEOF
25064#define HAVE_LIBELF 1
25065_ACEOF
25066
25067 LIBS="-lelf $LIBS"
25068
25069fi
25070
25071
Reid Spencer3484a992006-01-19 08:31:08 +000025072echo "$as_me:$LINENO: checking for sin in -lm" >&5
25073echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25074if test "${ac_cv_lib_m_sin+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25076else
25077 ac_check_lib_save_LIBS=$LIBS
25078LIBS="-lm $LIBS"
25079cat >conftest.$ac_ext <<_ACEOF
25080/* confdefs.h. */
25081_ACEOF
25082cat confdefs.h >>conftest.$ac_ext
25083cat >>conftest.$ac_ext <<_ACEOF
25084/* end confdefs.h. */
25085
25086/* Override any gcc2 internal prototype to avoid an error. */
25087#ifdef __cplusplus
25088extern "C"
25089#endif
25090/* We use char because int might match the return type of a gcc2
25091 builtin and then its argument prototype would still apply. */
25092char sin ();
25093int
25094main ()
25095{
25096sin ();
25097 ;
25098 return 0;
25099}
25100_ACEOF
25101rm -f conftest.$ac_objext conftest$ac_exeext
25102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25103 (eval $ac_link) 2>conftest.er1
25104 ac_status=$?
25105 grep -v '^ *+' conftest.er1 >conftest.err
25106 rm -f conftest.er1
25107 cat conftest.err >&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } &&
25110 { ac_try='test -z "$ac_c_werror_flag"
25111 || test ! -s conftest.err'
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; } &&
25117 { ac_try='test -s conftest$ac_exeext'
25118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; }; then
25123 ac_cv_lib_m_sin=yes
25124else
25125 echo "$as_me: failed program was:" >&5
25126sed 's/^/| /' conftest.$ac_ext >&5
25127
25128ac_cv_lib_m_sin=no
25129fi
25130rm -f conftest.err conftest.$ac_objext \
25131 conftest$ac_exeext conftest.$ac_ext
25132LIBS=$ac_check_lib_save_LIBS
25133fi
25134echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25135echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25136if test $ac_cv_lib_m_sin = yes; then
25137 cat >>confdefs.h <<_ACEOF
25138#define HAVE_LIBM 1
25139_ACEOF
25140
25141 LIBS="-lm $LIBS"
25142
25143fi
25144
Reid Spencer22177fe2005-07-12 15:24:20 +000025145
Reid Spencer17795972004-11-18 09:47:37 +000025146echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25147echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25148if test "${ac_cv_search_lt_dlopen+set}" = set; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25150else
25151 ac_func_search_save_LIBS=$LIBS
25152ac_cv_search_lt_dlopen=no
25153cat >conftest.$ac_ext <<_ACEOF
25154/* confdefs.h. */
25155_ACEOF
25156cat confdefs.h >>conftest.$ac_ext
25157cat >>conftest.$ac_ext <<_ACEOF
25158/* end confdefs.h. */
25159
25160/* Override any gcc2 internal prototype to avoid an error. */
25161#ifdef __cplusplus
25162extern "C"
25163#endif
25164/* We use char because int might match the return type of a gcc2
25165 builtin and then its argument prototype would still apply. */
25166char lt_dlopen ();
25167int
25168main ()
25169{
25170lt_dlopen ();
25171 ;
25172 return 0;
25173}
25174_ACEOF
25175rm -f conftest.$ac_objext conftest$ac_exeext
25176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25177 (eval $ac_link) 2>conftest.er1
25178 ac_status=$?
25179 grep -v '^ *+' conftest.er1 >conftest.err
25180 rm -f conftest.er1
25181 cat conftest.err >&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
25184 { ac_try='test -z "$ac_c_werror_flag"
25185 || test ! -s conftest.err'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest$ac_exeext'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_cv_search_lt_dlopen="none required"
25198else
25199 echo "$as_me: failed program was:" >&5
25200sed 's/^/| /' conftest.$ac_ext >&5
25201
25202fi
25203rm -f conftest.err conftest.$ac_objext \
25204 conftest$ac_exeext conftest.$ac_ext
25205if test "$ac_cv_search_lt_dlopen" = no; then
25206 for ac_lib in ltdl; do
25207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25208 cat >conftest.$ac_ext <<_ACEOF
25209/* confdefs.h. */
25210_ACEOF
25211cat confdefs.h >>conftest.$ac_ext
25212cat >>conftest.$ac_ext <<_ACEOF
25213/* end confdefs.h. */
25214
25215/* Override any gcc2 internal prototype to avoid an error. */
25216#ifdef __cplusplus
25217extern "C"
25218#endif
25219/* We use char because int might match the return type of a gcc2
25220 builtin and then its argument prototype would still apply. */
25221char lt_dlopen ();
25222int
25223main ()
25224{
25225lt_dlopen ();
25226 ;
25227 return 0;
25228}
25229_ACEOF
25230rm -f conftest.$ac_objext conftest$ac_exeext
25231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25232 (eval $ac_link) 2>conftest.er1
25233 ac_status=$?
25234 grep -v '^ *+' conftest.er1 >conftest.err
25235 rm -f conftest.er1
25236 cat conftest.err >&5
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } &&
25239 { ac_try='test -z "$ac_c_werror_flag"
25240 || test ! -s conftest.err'
25241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242 (eval $ac_try) 2>&5
25243 ac_status=$?
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); }; } &&
25246 { ac_try='test -s conftest$ac_exeext'
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25249 ac_status=$?
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; }; then
25252 ac_cv_search_lt_dlopen="-l$ac_lib"
25253break
25254else
25255 echo "$as_me: failed program was:" >&5
25256sed 's/^/| /' conftest.$ac_ext >&5
25257
25258fi
25259rm -f conftest.err conftest.$ac_objext \
25260 conftest$ac_exeext conftest.$ac_ext
25261 done
25262fi
25263LIBS=$ac_func_search_save_LIBS
25264fi
25265echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25266echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25267if test "$ac_cv_search_lt_dlopen" != no; then
25268 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25269
25270cat >>confdefs.h <<\_ACEOF
25271#define HAVE_LT_DLOPEN 1
25272_ACEOF
25273
25274else
25275 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25276 not be available" >&5
25277echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25278 not be available" >&2;}
25279fi
25280
25281
John Criswell7a73b802003-06-30 21:59:07 +000025282echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25283echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25284if test "${ac_cv_search_dlopen+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25286else
25287 ac_func_search_save_LIBS=$LIBS
25288ac_cv_search_dlopen=no
25289cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025290/* confdefs.h. */
25291_ACEOF
25292cat confdefs.h >>conftest.$ac_ext
25293cat >>conftest.$ac_ext <<_ACEOF
25294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025295
25296/* Override any gcc2 internal prototype to avoid an error. */
25297#ifdef __cplusplus
25298extern "C"
25299#endif
25300/* We use char because int might match the return type of a gcc2
25301 builtin and then its argument prototype would still apply. */
25302char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025303int
25304main ()
25305{
25306dlopen ();
25307 ;
25308 return 0;
25309}
25310_ACEOF
25311rm -f conftest.$ac_objext conftest$ac_exeext
25312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025313 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025314 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025315 grep -v '^ *+' conftest.er1 >conftest.err
25316 rm -f conftest.er1
25317 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025320 { ac_try='test -z "$ac_c_werror_flag"
25321 || test ! -s conftest.err'
25322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323 (eval $ac_try) 2>&5
25324 ac_status=$?
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); }; } &&
25327 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25330 ac_status=$?
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; }; then
25333 ac_cv_search_dlopen="none required"
25334else
25335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025336sed 's/^/| /' conftest.$ac_ext >&5
25337
John Criswell7a73b802003-06-30 21:59:07 +000025338fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025339rm -f conftest.err conftest.$ac_objext \
25340 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025341if test "$ac_cv_search_dlopen" = no; then
25342 for ac_lib in dl; do
25343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025345/* confdefs.h. */
25346_ACEOF
25347cat confdefs.h >>conftest.$ac_ext
25348cat >>conftest.$ac_ext <<_ACEOF
25349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025350
25351/* Override any gcc2 internal prototype to avoid an error. */
25352#ifdef __cplusplus
25353extern "C"
25354#endif
25355/* We use char because int might match the return type of a gcc2
25356 builtin and then its argument prototype would still apply. */
25357char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025358int
25359main ()
25360{
25361dlopen ();
25362 ;
25363 return 0;
25364}
25365_ACEOF
25366rm -f conftest.$ac_objext conftest$ac_exeext
25367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025368 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025375 { ac_try='test -z "$ac_c_werror_flag"
25376 || test ! -s conftest.err'
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25379 ac_status=$?
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; } &&
25382 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_cv_search_dlopen="-l$ac_lib"
25389break
25390else
25391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025392sed 's/^/| /' conftest.$ac_ext >&5
25393
John Criswell7a73b802003-06-30 21:59:07 +000025394fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025395rm -f conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025397 done
25398fi
25399LIBS=$ac_func_search_save_LIBS
25400fi
25401echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25402echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25403if test "$ac_cv_search_dlopen" != no; then
25404 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025405
25406cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025407#define HAVE_DLOPEN 1
25408_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025409
25410else
Brian Gaekec45be042003-10-07 06:01:34 +000025411 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25412echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025413fi
25414
25415
25416echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25417echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25418if test "${ac_cv_search_mallinfo+set}" = set; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
25420else
25421 ac_func_search_save_LIBS=$LIBS
25422ac_cv_search_mallinfo=no
25423cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025424/* confdefs.h. */
25425_ACEOF
25426cat confdefs.h >>conftest.$ac_ext
25427cat >>conftest.$ac_ext <<_ACEOF
25428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025429
25430/* Override any gcc2 internal prototype to avoid an error. */
25431#ifdef __cplusplus
25432extern "C"
25433#endif
25434/* We use char because int might match the return type of a gcc2
25435 builtin and then its argument prototype would still apply. */
25436char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025437int
25438main ()
25439{
25440mallinfo ();
25441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest.$ac_objext conftest$ac_exeext
25446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025447 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025449 grep -v '^ *+' conftest.er1 >conftest.err
25450 rm -f conftest.er1
25451 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 ac_cv_search_mallinfo="none required"
25468else
25469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025470sed 's/^/| /' conftest.$ac_ext >&5
25471
John Criswell7a73b802003-06-30 21:59:07 +000025472fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025473rm -f conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025475if test "$ac_cv_search_mallinfo" = no; then
25476 for ac_lib in malloc; do
25477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25478 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025479/* confdefs.h. */
25480_ACEOF
25481cat confdefs.h >>conftest.$ac_ext
25482cat >>conftest.$ac_ext <<_ACEOF
25483/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025484
25485/* Override any gcc2 internal prototype to avoid an error. */
25486#ifdef __cplusplus
25487extern "C"
25488#endif
25489/* We use char because int might match the return type of a gcc2
25490 builtin and then its argument prototype would still apply. */
25491char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025492int
25493main ()
25494{
25495mallinfo ();
25496 ;
25497 return 0;
25498}
25499_ACEOF
25500rm -f conftest.$ac_objext conftest$ac_exeext
25501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025502 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025503 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025504 grep -v '^ *+' conftest.er1 >conftest.err
25505 rm -f conftest.er1
25506 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025509 { ac_try='test -z "$ac_c_werror_flag"
25510 || test ! -s conftest.err'
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25513 ac_status=$?
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; } &&
25516 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_search_mallinfo="-l$ac_lib"
25523break
25524else
25525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025526sed 's/^/| /' conftest.$ac_ext >&5
25527
John Criswell7a73b802003-06-30 21:59:07 +000025528fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025529rm -f conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025531 done
25532fi
25533LIBS=$ac_func_search_save_LIBS
25534fi
25535echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25536echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25537if test "$ac_cv_search_mallinfo" != no; then
25538 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025539
25540cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025541#define HAVE_MALLINFO 1
25542_ACEOF
25543
25544fi
25545
25546
Reid Spencer0a262ba2005-08-24 10:07:20 +000025547if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025548
25549echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25550echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25551if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25552 echo $ECHO_N "(cached) $ECHO_C" >&6
25553else
25554 ac_check_lib_save_LIBS=$LIBS
25555LIBS="-lpthread $LIBS"
25556cat >conftest.$ac_ext <<_ACEOF
25557/* confdefs.h. */
25558_ACEOF
25559cat confdefs.h >>conftest.$ac_ext
25560cat >>conftest.$ac_ext <<_ACEOF
25561/* end confdefs.h. */
25562
25563/* Override any gcc2 internal prototype to avoid an error. */
25564#ifdef __cplusplus
25565extern "C"
25566#endif
25567/* We use char because int might match the return type of a gcc2
25568 builtin and then its argument prototype would still apply. */
25569char pthread_mutex_init ();
25570int
25571main ()
25572{
25573pthread_mutex_init ();
25574 ;
25575 return 0;
25576}
25577_ACEOF
25578rm -f conftest.$ac_objext conftest$ac_exeext
25579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25580 (eval $ac_link) 2>conftest.er1
25581 ac_status=$?
25582 grep -v '^ *+' conftest.er1 >conftest.err
25583 rm -f conftest.er1
25584 cat conftest.err >&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } &&
25587 { ac_try='test -z "$ac_c_werror_flag"
25588 || test ! -s conftest.err'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; } &&
25594 { ac_try='test -s conftest$ac_exeext'
25595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25597 ac_status=$?
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_cv_lib_pthread_pthread_mutex_init=yes
25601else
25602 echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605ac_cv_lib_pthread_pthread_mutex_init=no
25606fi
25607rm -f conftest.err conftest.$ac_objext \
25608 conftest$ac_exeext conftest.$ac_ext
25609LIBS=$ac_check_lib_save_LIBS
25610fi
25611echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25612echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25613if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25614 cat >>confdefs.h <<_ACEOF
25615#define HAVE_LIBPTHREAD 1
25616_ACEOF
25617
25618 LIBS="-lpthread $LIBS"
25619
25620fi
25621
Reid Spencer0a262ba2005-08-24 10:07:20 +000025622 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025623echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25624if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25626else
25627 ac_func_search_save_LIBS=$LIBS
25628ac_cv_search_pthread_mutex_lock=no
25629cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025630/* confdefs.h. */
25631_ACEOF
25632cat confdefs.h >>conftest.$ac_ext
25633cat >>conftest.$ac_ext <<_ACEOF
25634/* end confdefs.h. */
25635
25636/* Override any gcc2 internal prototype to avoid an error. */
25637#ifdef __cplusplus
25638extern "C"
25639#endif
25640/* We use char because int might match the return type of a gcc2
25641 builtin and then its argument prototype would still apply. */
25642char pthread_mutex_lock ();
25643int
25644main ()
25645{
25646pthread_mutex_lock ();
25647 ;
25648 return 0;
25649}
25650_ACEOF
25651rm -f conftest.$ac_objext conftest$ac_exeext
25652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025653 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025654 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025655 grep -v '^ *+' conftest.er1 >conftest.err
25656 rm -f conftest.er1
25657 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025660 { ac_try='test -z "$ac_c_werror_flag"
25661 || test ! -s conftest.err'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } &&
25667 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; }; then
25673 ac_cv_search_pthread_mutex_lock="none required"
25674else
25675 echo "$as_me: failed program was:" >&5
25676sed 's/^/| /' conftest.$ac_ext >&5
25677
25678fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025679rm -f conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025681if test "$ac_cv_search_pthread_mutex_lock" = no; then
25682 for ac_lib in pthread; do
25683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25684 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025685/* confdefs.h. */
25686_ACEOF
25687cat confdefs.h >>conftest.$ac_ext
25688cat >>conftest.$ac_ext <<_ACEOF
25689/* end confdefs.h. */
25690
25691/* Override any gcc2 internal prototype to avoid an error. */
25692#ifdef __cplusplus
25693extern "C"
25694#endif
25695/* We use char because int might match the return type of a gcc2
25696 builtin and then its argument prototype would still apply. */
25697char pthread_mutex_lock ();
25698int
25699main ()
25700{
25701pthread_mutex_lock ();
25702 ;
25703 return 0;
25704}
25705_ACEOF
25706rm -f conftest.$ac_objext conftest$ac_exeext
25707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025708 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025710 grep -v '^ *+' conftest.er1 >conftest.err
25711 rm -f conftest.er1
25712 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025715 { ac_try='test -z "$ac_c_werror_flag"
25716 || test ! -s conftest.err'
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25719 ac_status=$?
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; } &&
25722 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25725 ac_status=$?
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; }; then
25728 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25729break
25730else
25731 echo "$as_me: failed program was:" >&5
25732sed 's/^/| /' conftest.$ac_ext >&5
25733
25734fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025735rm -f conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025737 done
25738fi
25739LIBS=$ac_func_search_save_LIBS
25740fi
25741echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25742echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25743if test "$ac_cv_search_pthread_mutex_lock" != no; then
25744 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025745
John Criswell40468462004-09-24 21:19:06 +000025746cat >>confdefs.h <<\_ACEOF
25747#define HAVE_PTHREAD_MUTEX_LOCK 1
25748_ACEOF
25749
25750fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025751
Reid Spencer0a262ba2005-08-24 10:07:20 +000025752fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025753
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025754
Reid Spencer59473af2004-12-25 07:31:29 +000025755
25756
25757
25758
25759
25760ac_header_dirent=no
25761for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25762 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25763echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25764echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25765if eval "test \"\${$as_ac_Header+set}\" = set"; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
25767else
25768 cat >conftest.$ac_ext <<_ACEOF
25769/* confdefs.h. */
25770_ACEOF
25771cat confdefs.h >>conftest.$ac_ext
25772cat >>conftest.$ac_ext <<_ACEOF
25773/* end confdefs.h. */
25774#include <sys/types.h>
25775#include <$ac_hdr>
25776
25777int
25778main ()
25779{
25780if ((DIR *) 0)
25781return 0;
25782 ;
25783 return 0;
25784}
25785_ACEOF
25786rm -f conftest.$ac_objext
25787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25788 (eval $ac_compile) 2>conftest.er1
25789 ac_status=$?
25790 grep -v '^ *+' conftest.er1 >conftest.err
25791 rm -f conftest.er1
25792 cat conftest.err >&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); } &&
25795 { ac_try='test -z "$ac_c_werror_flag"
25796 || test ! -s conftest.err'
25797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798 (eval $ac_try) 2>&5
25799 ac_status=$?
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; } &&
25802 { ac_try='test -s conftest.$ac_objext'
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; }; then
25808 eval "$as_ac_Header=yes"
25809else
25810 echo "$as_me: failed program was:" >&5
25811sed 's/^/| /' conftest.$ac_ext >&5
25812
25813eval "$as_ac_Header=no"
25814fi
25815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25816fi
25817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25819if test `eval echo '${'$as_ac_Header'}'` = yes; then
25820 cat >>confdefs.h <<_ACEOF
25821#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25822_ACEOF
25823
25824ac_header_dirent=$ac_hdr; break
25825fi
25826
25827done
25828# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25829if test $ac_header_dirent = dirent.h; then
25830 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25831echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25832if test "${ac_cv_search_opendir+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25834else
25835 ac_func_search_save_LIBS=$LIBS
25836ac_cv_search_opendir=no
25837cat >conftest.$ac_ext <<_ACEOF
25838/* confdefs.h. */
25839_ACEOF
25840cat confdefs.h >>conftest.$ac_ext
25841cat >>conftest.$ac_ext <<_ACEOF
25842/* end confdefs.h. */
25843
25844/* Override any gcc2 internal prototype to avoid an error. */
25845#ifdef __cplusplus
25846extern "C"
25847#endif
25848/* We use char because int might match the return type of a gcc2
25849 builtin and then its argument prototype would still apply. */
25850char opendir ();
25851int
25852main ()
25853{
25854opendir ();
25855 ;
25856 return 0;
25857}
25858_ACEOF
25859rm -f conftest.$ac_objext conftest$ac_exeext
25860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25861 (eval $ac_link) 2>conftest.er1
25862 ac_status=$?
25863 grep -v '^ *+' conftest.er1 >conftest.err
25864 rm -f conftest.er1
25865 cat conftest.err >&5
25866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); } &&
25868 { ac_try='test -z "$ac_c_werror_flag"
25869 || test ! -s conftest.err'
25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; } &&
25875 { ac_try='test -s conftest$ac_exeext'
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25878 ac_status=$?
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; }; then
25881 ac_cv_search_opendir="none required"
25882else
25883 echo "$as_me: failed program was:" >&5
25884sed 's/^/| /' conftest.$ac_ext >&5
25885
25886fi
25887rm -f conftest.err conftest.$ac_objext \
25888 conftest$ac_exeext conftest.$ac_ext
25889if test "$ac_cv_search_opendir" = no; then
25890 for ac_lib in dir; do
25891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25892 cat >conftest.$ac_ext <<_ACEOF
25893/* confdefs.h. */
25894_ACEOF
25895cat confdefs.h >>conftest.$ac_ext
25896cat >>conftest.$ac_ext <<_ACEOF
25897/* end confdefs.h. */
25898
25899/* Override any gcc2 internal prototype to avoid an error. */
25900#ifdef __cplusplus
25901extern "C"
25902#endif
25903/* We use char because int might match the return type of a gcc2
25904 builtin and then its argument prototype would still apply. */
25905char opendir ();
25906int
25907main ()
25908{
25909opendir ();
25910 ;
25911 return 0;
25912}
25913_ACEOF
25914rm -f conftest.$ac_objext conftest$ac_exeext
25915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25916 (eval $ac_link) 2>conftest.er1
25917 ac_status=$?
25918 grep -v '^ *+' conftest.er1 >conftest.err
25919 rm -f conftest.er1
25920 cat conftest.err >&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } &&
25923 { ac_try='test -z "$ac_c_werror_flag"
25924 || test ! -s conftest.err'
25925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926 (eval $ac_try) 2>&5
25927 ac_status=$?
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); }; } &&
25930 { ac_try='test -s conftest$ac_exeext'
25931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932 (eval $ac_try) 2>&5
25933 ac_status=$?
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); }; }; then
25936 ac_cv_search_opendir="-l$ac_lib"
25937break
25938else
25939 echo "$as_me: failed program was:" >&5
25940sed 's/^/| /' conftest.$ac_ext >&5
25941
25942fi
25943rm -f conftest.err conftest.$ac_objext \
25944 conftest$ac_exeext conftest.$ac_ext
25945 done
25946fi
25947LIBS=$ac_func_search_save_LIBS
25948fi
25949echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25950echo "${ECHO_T}$ac_cv_search_opendir" >&6
25951if test "$ac_cv_search_opendir" != no; then
25952 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25953
25954fi
25955
25956else
25957 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25958echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25959if test "${ac_cv_search_opendir+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25961else
25962 ac_func_search_save_LIBS=$LIBS
25963ac_cv_search_opendir=no
25964cat >conftest.$ac_ext <<_ACEOF
25965/* confdefs.h. */
25966_ACEOF
25967cat confdefs.h >>conftest.$ac_ext
25968cat >>conftest.$ac_ext <<_ACEOF
25969/* end confdefs.h. */
25970
25971/* Override any gcc2 internal prototype to avoid an error. */
25972#ifdef __cplusplus
25973extern "C"
25974#endif
25975/* We use char because int might match the return type of a gcc2
25976 builtin and then its argument prototype would still apply. */
25977char opendir ();
25978int
25979main ()
25980{
25981opendir ();
25982 ;
25983 return 0;
25984}
25985_ACEOF
25986rm -f conftest.$ac_objext conftest$ac_exeext
25987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25988 (eval $ac_link) 2>conftest.er1
25989 ac_status=$?
25990 grep -v '^ *+' conftest.er1 >conftest.err
25991 rm -f conftest.er1
25992 cat conftest.err >&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
25995 { ac_try='test -z "$ac_c_werror_flag"
25996 || test ! -s conftest.err'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; } &&
26002 { ac_try='test -s conftest$ac_exeext'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; }; then
26008 ac_cv_search_opendir="none required"
26009else
26010 echo "$as_me: failed program was:" >&5
26011sed 's/^/| /' conftest.$ac_ext >&5
26012
26013fi
26014rm -f conftest.err conftest.$ac_objext \
26015 conftest$ac_exeext conftest.$ac_ext
26016if test "$ac_cv_search_opendir" = no; then
26017 for ac_lib in x; do
26018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26019 cat >conftest.$ac_ext <<_ACEOF
26020/* confdefs.h. */
26021_ACEOF
26022cat confdefs.h >>conftest.$ac_ext
26023cat >>conftest.$ac_ext <<_ACEOF
26024/* end confdefs.h. */
26025
26026/* Override any gcc2 internal prototype to avoid an error. */
26027#ifdef __cplusplus
26028extern "C"
26029#endif
26030/* We use char because int might match the return type of a gcc2
26031 builtin and then its argument prototype would still apply. */
26032char opendir ();
26033int
26034main ()
26035{
26036opendir ();
26037 ;
26038 return 0;
26039}
26040_ACEOF
26041rm -f conftest.$ac_objext conftest$ac_exeext
26042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26043 (eval $ac_link) 2>conftest.er1
26044 ac_status=$?
26045 grep -v '^ *+' conftest.er1 >conftest.err
26046 rm -f conftest.er1
26047 cat conftest.err >&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); } &&
26050 { ac_try='test -z "$ac_c_werror_flag"
26051 || test ! -s conftest.err'
26052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; } &&
26057 { ac_try='test -s conftest$ac_exeext'
26058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26059 (eval $ac_try) 2>&5
26060 ac_status=$?
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); }; }; then
26063 ac_cv_search_opendir="-l$ac_lib"
26064break
26065else
26066 echo "$as_me: failed program was:" >&5
26067sed 's/^/| /' conftest.$ac_ext >&5
26068
26069fi
26070rm -f conftest.err conftest.$ac_objext \
26071 conftest$ac_exeext conftest.$ac_ext
26072 done
26073fi
26074LIBS=$ac_func_search_save_LIBS
26075fi
26076echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26077echo "${ECHO_T}$ac_cv_search_opendir" >&6
26078if test "$ac_cv_search_opendir" != no; then
26079 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26080
26081fi
26082
26083fi
26084
26085echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26086echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26087if test "${ac_cv_header_mmap_anon+set}" = set; then
26088 echo $ECHO_N "(cached) $ECHO_C" >&6
26089else
26090 ac_ext=c
26091ac_cpp='$CPP $CPPFLAGS'
26092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26094ac_compiler_gnu=$ac_cv_c_compiler_gnu
26095
26096 cat >conftest.$ac_ext <<_ACEOF
26097/* confdefs.h. */
26098_ACEOF
26099cat confdefs.h >>conftest.$ac_ext
26100cat >>conftest.$ac_ext <<_ACEOF
26101/* end confdefs.h. */
26102#include <sys/mman.h>
26103#include <unistd.h>
26104#include <fcntl.h>
26105int
26106main ()
26107{
26108mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26109 ;
26110 return 0;
26111}
26112_ACEOF
26113rm -f conftest.$ac_objext
26114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26115 (eval $ac_compile) 2>conftest.er1
26116 ac_status=$?
26117 grep -v '^ *+' conftest.er1 >conftest.err
26118 rm -f conftest.er1
26119 cat conftest.err >&5
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } &&
26122 { ac_try='test -z "$ac_c_werror_flag"
26123 || test ! -s conftest.err'
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26126 ac_status=$?
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; } &&
26129 { ac_try='test -s conftest.$ac_objext'
26130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
26135 ac_cv_header_mmap_anon=yes
26136else
26137 echo "$as_me: failed program was:" >&5
26138sed 's/^/| /' conftest.$ac_ext >&5
26139
26140ac_cv_header_mmap_anon=no
26141fi
26142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26143 ac_ext=c
26144ac_cpp='$CPP $CPPFLAGS'
26145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26147ac_compiler_gnu=$ac_cv_c_compiler_gnu
26148
26149
26150fi
26151echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26152echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26153if test "$ac_cv_header_mmap_anon" = yes; then
26154
26155cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026156#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026157_ACEOF
26158
26159fi
26160
26161echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26162echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26163if test "${ac_cv_header_stat_broken+set}" = set; then
26164 echo $ECHO_N "(cached) $ECHO_C" >&6
26165else
26166 cat >conftest.$ac_ext <<_ACEOF
26167/* confdefs.h. */
26168_ACEOF
26169cat confdefs.h >>conftest.$ac_ext
26170cat >>conftest.$ac_ext <<_ACEOF
26171/* end confdefs.h. */
26172#include <sys/types.h>
26173#include <sys/stat.h>
26174
26175#if defined(S_ISBLK) && defined(S_IFDIR)
26176# if S_ISBLK (S_IFDIR)
26177You lose.
26178# endif
26179#endif
26180
26181#if defined(S_ISBLK) && defined(S_IFCHR)
26182# if S_ISBLK (S_IFCHR)
26183You lose.
26184# endif
26185#endif
26186
26187#if defined(S_ISLNK) && defined(S_IFREG)
26188# if S_ISLNK (S_IFREG)
26189You lose.
26190# endif
26191#endif
26192
26193#if defined(S_ISSOCK) && defined(S_IFREG)
26194# if S_ISSOCK (S_IFREG)
26195You lose.
26196# endif
26197#endif
26198
26199_ACEOF
26200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26201 $EGREP "You lose" >/dev/null 2>&1; then
26202 ac_cv_header_stat_broken=yes
26203else
26204 ac_cv_header_stat_broken=no
26205fi
26206rm -f conftest*
26207
26208fi
26209echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26210echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26211if test $ac_cv_header_stat_broken = yes; then
26212
26213cat >>confdefs.h <<\_ACEOF
26214#define STAT_MACROS_BROKEN 1
26215_ACEOF
26216
26217fi
26218
John Criswell7a73b802003-06-30 21:59:07 +000026219echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26220echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26221if test "${ac_cv_header_stdc+set}" = set; then
26222 echo $ECHO_N "(cached) $ECHO_C" >&6
26223else
26224 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026225/* confdefs.h. */
26226_ACEOF
26227cat confdefs.h >>conftest.$ac_ext
26228cat >>conftest.$ac_ext <<_ACEOF
26229/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026230#include <stdlib.h>
26231#include <stdarg.h>
26232#include <string.h>
26233#include <float.h>
26234
John Criswell0c38eaf2003-09-10 15:17:25 +000026235int
26236main ()
26237{
26238
26239 ;
26240 return 0;
26241}
John Criswell7a73b802003-06-30 21:59:07 +000026242_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026243rm -f conftest.$ac_objext
26244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026245 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247 grep -v '^ *+' conftest.er1 >conftest.err
26248 rm -f conftest.er1
26249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026251 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026252 { ac_try='test -z "$ac_c_werror_flag"
26253 || test ! -s conftest.err'
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26256 ac_status=$?
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; } &&
26259 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026265 ac_cv_header_stdc=yes
26266else
26267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026268sed 's/^/| /' conftest.$ac_ext >&5
26269
26270ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026271fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026273
26274if test $ac_cv_header_stdc = yes; then
26275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26276 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026277/* confdefs.h. */
26278_ACEOF
26279cat confdefs.h >>conftest.$ac_ext
26280cat >>conftest.$ac_ext <<_ACEOF
26281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026282#include <string.h>
26283
26284_ACEOF
26285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026286 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026287 :
26288else
26289 ac_cv_header_stdc=no
26290fi
26291rm -f conftest*
26292
26293fi
26294
26295if test $ac_cv_header_stdc = yes; then
26296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26297 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026298/* confdefs.h. */
26299_ACEOF
26300cat confdefs.h >>conftest.$ac_ext
26301cat >>conftest.$ac_ext <<_ACEOF
26302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026303#include <stdlib.h>
26304
26305_ACEOF
26306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026307 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026308 :
26309else
26310 ac_cv_header_stdc=no
26311fi
26312rm -f conftest*
26313
26314fi
26315
26316if test $ac_cv_header_stdc = yes; then
26317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26318 if test "$cross_compiling" = yes; then
26319 :
26320else
26321 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026322/* confdefs.h. */
26323_ACEOF
26324cat confdefs.h >>conftest.$ac_ext
26325cat >>conftest.$ac_ext <<_ACEOF
26326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026327#include <ctype.h>
26328#if ((' ' & 0x0FF) == 0x020)
26329# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26330# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26331#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026332# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026333 (('a' <= (c) && (c) <= 'i') \
26334 || ('j' <= (c) && (c) <= 'r') \
26335 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026336# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26337#endif
26338
26339#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26340int
26341main ()
26342{
26343 int i;
26344 for (i = 0; i < 256; i++)
26345 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026346 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026347 exit(2);
26348 exit (0);
26349}
26350_ACEOF
26351rm -f conftest$ac_exeext
26352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26353 (eval $ac_link) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26362 :
26363else
26364 echo "$as_me: program exited with status $ac_status" >&5
26365echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026366sed 's/^/| /' conftest.$ac_ext >&5
26367
John Criswell7a73b802003-06-30 21:59:07 +000026368( exit $ac_status )
26369ac_cv_header_stdc=no
26370fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026371rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026372fi
26373fi
26374fi
26375echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26376echo "${ECHO_T}$ac_cv_header_stdc" >&6
26377if test $ac_cv_header_stdc = yes; then
26378
26379cat >>confdefs.h <<\_ACEOF
26380#define STDC_HEADERS 1
26381_ACEOF
26382
26383fi
26384
26385echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26386echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26387if test "${ac_cv_header_sys_wait_h+set}" = set; then
26388 echo $ECHO_N "(cached) $ECHO_C" >&6
26389else
26390 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026391/* confdefs.h. */
26392_ACEOF
26393cat confdefs.h >>conftest.$ac_ext
26394cat >>conftest.$ac_ext <<_ACEOF
26395/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026396#include <sys/types.h>
26397#include <sys/wait.h>
26398#ifndef WEXITSTATUS
26399# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26400#endif
26401#ifndef WIFEXITED
26402# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26403#endif
26404
John Criswell7a73b802003-06-30 21:59:07 +000026405int
26406main ()
26407{
26408 int s;
26409 wait (&s);
26410 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26411 ;
26412 return 0;
26413}
26414_ACEOF
26415rm -f conftest.$ac_objext
26416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026417 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026419 grep -v '^ *+' conftest.er1 >conftest.err
26420 rm -f conftest.er1
26421 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026424 { ac_try='test -z "$ac_c_werror_flag"
26425 || test ! -s conftest.err'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; } &&
26431 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26434 ac_status=$?
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; }; then
26437 ac_cv_header_sys_wait_h=yes
26438else
26439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026440sed 's/^/| /' conftest.$ac_ext >&5
26441
John Criswell7a73b802003-06-30 21:59:07 +000026442ac_cv_header_sys_wait_h=no
26443fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026445fi
26446echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26447echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26448if test $ac_cv_header_sys_wait_h = yes; then
26449
26450cat >>confdefs.h <<\_ACEOF
26451#define HAVE_SYS_WAIT_H 1
26452_ACEOF
26453
26454fi
26455
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026456echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26457echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26458if test "${ac_cv_header_time+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26460else
26461 cat >conftest.$ac_ext <<_ACEOF
26462/* confdefs.h. */
26463_ACEOF
26464cat confdefs.h >>conftest.$ac_ext
26465cat >>conftest.$ac_ext <<_ACEOF
26466/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026467#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026468#include <sys/time.h>
26469#include <time.h>
26470
26471int
26472main ()
26473{
26474if ((struct tm *) 0)
26475return 0;
26476 ;
26477 return 0;
26478}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026479_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026480rm -f conftest.$ac_objext
26481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26482 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026483 ac_status=$?
26484 grep -v '^ *+' conftest.er1 >conftest.err
26485 rm -f conftest.er1
26486 cat conftest.err >&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026488 (exit $ac_status); } &&
26489 { ac_try='test -z "$ac_c_werror_flag"
26490 || test ! -s conftest.err'
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; } &&
26496 { ac_try='test -s conftest.$ac_objext'
26497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); }; }; then
26502 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026503else
26504 echo "$as_me: failed program was:" >&5
26505sed 's/^/| /' conftest.$ac_ext >&5
26506
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026507ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026508fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26510fi
26511echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26512echo "${ECHO_T}$ac_cv_header_time" >&6
26513if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026514
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026515cat >>confdefs.h <<\_ACEOF
26516#define TIME_WITH_SYS_TIME 1
26517_ACEOF
26518
26519fi
26520
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026521
Reid Spencer59473af2004-12-25 07:31:29 +000026522
26523
26524
26525
26526
26527
26528for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26529do
26530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26531if eval "test \"\${$as_ac_Header+set}\" = set"; then
26532 echo "$as_me:$LINENO: checking for $ac_header" >&5
26533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26534if eval "test \"\${$as_ac_Header+set}\" = set"; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26536fi
26537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26539else
26540 # Is the header compilable?
26541echo "$as_me:$LINENO: checking $ac_header usability" >&5
26542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26543cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026544/* confdefs.h. */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026549$ac_includes_default
26550#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026551_ACEOF
26552rm -f conftest.$ac_objext
26553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26554 (eval $ac_compile) 2>conftest.er1
26555 ac_status=$?
26556 grep -v '^ *+' conftest.er1 >conftest.err
26557 rm -f conftest.er1
26558 cat conftest.err >&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); } &&
26561 { ac_try='test -z "$ac_c_werror_flag"
26562 || test ! -s conftest.err'
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); }; } &&
26568 { ac_try='test -s conftest.$ac_objext'
26569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570 (eval $ac_try) 2>&5
26571 ac_status=$?
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026574 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026575else
26576 echo "$as_me: failed program was:" >&5
26577sed 's/^/| /' conftest.$ac_ext >&5
26578
Reid Spencer59473af2004-12-25 07:31:29 +000026579ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026580fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026582echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26583echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026584
Reid Spencer59473af2004-12-25 07:31:29 +000026585# Is the header present?
26586echo "$as_me:$LINENO: checking $ac_header presence" >&5
26587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26588cat >conftest.$ac_ext <<_ACEOF
26589/* confdefs.h. */
26590_ACEOF
26591cat confdefs.h >>conftest.$ac_ext
26592cat >>conftest.$ac_ext <<_ACEOF
26593/* end confdefs.h. */
26594#include <$ac_header>
26595_ACEOF
26596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26598 ac_status=$?
26599 grep -v '^ *+' conftest.er1 >conftest.err
26600 rm -f conftest.er1
26601 cat conftest.err >&5
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); } >/dev/null; then
26604 if test -s conftest.err; then
26605 ac_cpp_err=$ac_c_preproc_warn_flag
26606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26607 else
26608 ac_cpp_err=
26609 fi
26610else
26611 ac_cpp_err=yes
26612fi
26613if test -z "$ac_cpp_err"; then
26614 ac_header_preproc=yes
26615else
26616 echo "$as_me: failed program was:" >&5
26617sed 's/^/| /' conftest.$ac_ext >&5
26618
26619 ac_header_preproc=no
26620fi
26621rm -f conftest.err conftest.$ac_ext
26622echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26623echo "${ECHO_T}$ac_header_preproc" >&6
26624
26625# So? What about this header?
26626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26627 yes:no: )
26628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26632 ac_header_preproc=yes
26633 ;;
26634 no:yes:* )
26635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26638echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26642echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26647 (
26648 cat <<\_ASBOX
26649## ----------------------------------- ##
26650## Report this to llvmbugs@cs.uiuc.edu ##
26651## ----------------------------------- ##
26652_ASBOX
26653 ) |
26654 sed "s/^/$as_me: WARNING: /" >&2
26655 ;;
26656esac
26657echo "$as_me:$LINENO: checking for $ac_header" >&5
26658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26659if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660 echo $ECHO_N "(cached) $ECHO_C" >&6
26661else
26662 eval "$as_ac_Header=\$ac_header_preproc"
26663fi
26664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026666
26667fi
Reid Spencer59473af2004-12-25 07:31:29 +000026668if test `eval echo '${'$as_ac_Header'}'` = yes; then
26669 cat >>confdefs.h <<_ACEOF
26670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026671_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026672
26673fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026674
Reid Spencer59473af2004-12-25 07:31:29 +000026675done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026676
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026677
26678
Reid Spencer59473af2004-12-25 07:31:29 +000026679
26680
26681
26682
Reid Spencer0a262ba2005-08-24 10:07:20 +000026683for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026684do
26685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26686if eval "test \"\${$as_ac_Header+set}\" = set"; then
26687 echo "$as_me:$LINENO: checking for $ac_header" >&5
26688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26689if eval "test \"\${$as_ac_Header+set}\" = set"; then
26690 echo $ECHO_N "(cached) $ECHO_C" >&6
26691fi
26692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26694else
26695 # Is the header compilable?
26696echo "$as_me:$LINENO: checking $ac_header usability" >&5
26697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26698cat >conftest.$ac_ext <<_ACEOF
26699/* confdefs.h. */
26700_ACEOF
26701cat confdefs.h >>conftest.$ac_ext
26702cat >>conftest.$ac_ext <<_ACEOF
26703/* end confdefs.h. */
26704$ac_includes_default
26705#include <$ac_header>
26706_ACEOF
26707rm -f conftest.$ac_objext
26708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26709 (eval $ac_compile) 2>conftest.er1
26710 ac_status=$?
26711 grep -v '^ *+' conftest.er1 >conftest.err
26712 rm -f conftest.er1
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } &&
26716 { ac_try='test -z "$ac_c_werror_flag"
26717 || test ! -s conftest.err'
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest.$ac_objext'
26724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725 (eval $ac_try) 2>&5
26726 ac_status=$?
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); }; }; then
26729 ac_header_compiler=yes
26730else
26731 echo "$as_me: failed program was:" >&5
26732sed 's/^/| /' conftest.$ac_ext >&5
26733
26734ac_header_compiler=no
26735fi
26736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26738echo "${ECHO_T}$ac_header_compiler" >&6
26739
26740# Is the header present?
26741echo "$as_me:$LINENO: checking $ac_header presence" >&5
26742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26743cat >conftest.$ac_ext <<_ACEOF
26744/* confdefs.h. */
26745_ACEOF
26746cat confdefs.h >>conftest.$ac_ext
26747cat >>conftest.$ac_ext <<_ACEOF
26748/* end confdefs.h. */
26749#include <$ac_header>
26750_ACEOF
26751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26753 ac_status=$?
26754 grep -v '^ *+' conftest.er1 >conftest.err
26755 rm -f conftest.er1
26756 cat conftest.err >&5
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); } >/dev/null; then
26759 if test -s conftest.err; then
26760 ac_cpp_err=$ac_c_preproc_warn_flag
26761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26762 else
26763 ac_cpp_err=
26764 fi
26765else
26766 ac_cpp_err=yes
26767fi
26768if test -z "$ac_cpp_err"; then
26769 ac_header_preproc=yes
26770else
26771 echo "$as_me: failed program was:" >&5
26772sed 's/^/| /' conftest.$ac_ext >&5
26773
26774 ac_header_preproc=no
26775fi
26776rm -f conftest.err conftest.$ac_ext
26777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26778echo "${ECHO_T}$ac_header_preproc" >&6
26779
26780# So? What about this header?
26781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26782 yes:no: )
26783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26784echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26786echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26787 ac_header_preproc=yes
26788 ;;
26789 no:yes:* )
26790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26793echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26795echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26797echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26801echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26802 (
26803 cat <<\_ASBOX
26804## ----------------------------------- ##
26805## Report this to llvmbugs@cs.uiuc.edu ##
26806## ----------------------------------- ##
26807_ASBOX
26808 ) |
26809 sed "s/^/$as_me: WARNING: /" >&2
26810 ;;
26811esac
26812echo "$as_me:$LINENO: checking for $ac_header" >&5
26813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26814if eval "test \"\${$as_ac_Header+set}\" = set"; then
26815 echo $ECHO_N "(cached) $ECHO_C" >&6
26816else
26817 eval "$as_ac_Header=\$ac_header_preproc"
26818fi
26819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26821
26822fi
26823if test `eval echo '${'$as_ac_Header'}'` = yes; then
26824 cat >>confdefs.h <<_ACEOF
26825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26826_ACEOF
26827
26828fi
26829
26830done
26831
26832
26833
26834
26835
26836
26837for 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 +000026838do
26839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26840if eval "test \"\${$as_ac_Header+set}\" = set"; then
26841 echo "$as_me:$LINENO: checking for $ac_header" >&5
26842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26843if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026844 echo $ECHO_N "(cached) $ECHO_C" >&6
26845fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026848else
26849 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026850echo "$as_me:$LINENO: checking $ac_header usability" >&5
26851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026852cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026853/* confdefs.h. */
26854_ACEOF
26855cat confdefs.h >>conftest.$ac_ext
26856cat >>conftest.$ac_ext <<_ACEOF
26857/* end confdefs.h. */
26858$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026859#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026860_ACEOF
26861rm -f conftest.$ac_objext
26862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026863 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026865 grep -v '^ *+' conftest.er1 >conftest.err
26866 rm -f conftest.er1
26867 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026870 { ac_try='test -z "$ac_c_werror_flag"
26871 || test ! -s conftest.err'
26872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26873 (eval $ac_try) 2>&5
26874 ac_status=$?
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); }; } &&
26877 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; }; then
26883 ac_header_compiler=yes
26884else
26885 echo "$as_me: failed program was:" >&5
26886sed 's/^/| /' conftest.$ac_ext >&5
26887
26888ac_header_compiler=no
26889fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26892echo "${ECHO_T}$ac_header_compiler" >&6
26893
26894# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026895echo "$as_me:$LINENO: checking $ac_header presence" >&5
26896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026897cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026898/* confdefs.h. */
26899_ACEOF
26900cat confdefs.h >>conftest.$ac_ext
26901cat >>conftest.$ac_ext <<_ACEOF
26902/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026903#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026904_ACEOF
26905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26907 ac_status=$?
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } >/dev/null; then
26913 if test -s conftest.err; then
26914 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026916 else
26917 ac_cpp_err=
26918 fi
26919else
26920 ac_cpp_err=yes
26921fi
26922if test -z "$ac_cpp_err"; then
26923 ac_header_preproc=yes
26924else
26925 echo "$as_me: failed program was:" >&5
26926sed 's/^/| /' conftest.$ac_ext >&5
26927
26928 ac_header_preproc=no
26929fi
26930rm -f conftest.err conftest.$ac_ext
26931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26932echo "${ECHO_T}$ac_header_preproc" >&6
26933
26934# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26936 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026941 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026942 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026943 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026956 (
26957 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026958## ----------------------------------- ##
26959## Report this to llvmbugs@cs.uiuc.edu ##
26960## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026961_ASBOX
26962 ) |
26963 sed "s/^/$as_me: WARNING: /" >&2
26964 ;;
26965esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026966echo "$as_me:$LINENO: checking for $ac_header" >&5
26967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26968if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026969 echo $ECHO_N "(cached) $ECHO_C" >&6
26970else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026971 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026972fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026975
26976fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026977if test `eval echo '${'$as_ac_Header'}'` = yes; then
26978 cat >>confdefs.h <<_ACEOF
26979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026980_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026981
26982fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026983
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026984done
26985
John Criswell7ed43ad2004-07-19 16:12:29 +000026986
Chris Lattner0b142592005-11-14 06:57:34 +000026987for ac_header in malloc/malloc.h
26988do
26989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26990if eval "test \"\${$as_ac_Header+set}\" = set"; then
26991 echo "$as_me:$LINENO: checking for $ac_header" >&5
26992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26993if eval "test \"\${$as_ac_Header+set}\" = set"; then
26994 echo $ECHO_N "(cached) $ECHO_C" >&6
26995fi
26996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26998else
26999 # Is the header compilable?
27000echo "$as_me:$LINENO: checking $ac_header usability" >&5
27001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27002cat >conftest.$ac_ext <<_ACEOF
27003/* confdefs.h. */
27004_ACEOF
27005cat confdefs.h >>conftest.$ac_ext
27006cat >>conftest.$ac_ext <<_ACEOF
27007/* end confdefs.h. */
27008$ac_includes_default
27009#include <$ac_header>
27010_ACEOF
27011rm -f conftest.$ac_objext
27012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27013 (eval $ac_compile) 2>conftest.er1
27014 ac_status=$?
27015 grep -v '^ *+' conftest.er1 >conftest.err
27016 rm -f conftest.er1
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } &&
27020 { ac_try='test -z "$ac_c_werror_flag"
27021 || test ! -s conftest.err'
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; } &&
27027 { ac_try='test -s conftest.$ac_objext'
27028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029 (eval $ac_try) 2>&5
27030 ac_status=$?
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); }; }; then
27033 ac_header_compiler=yes
27034else
27035 echo "$as_me: failed program was:" >&5
27036sed 's/^/| /' conftest.$ac_ext >&5
27037
27038ac_header_compiler=no
27039fi
27040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27042echo "${ECHO_T}$ac_header_compiler" >&6
27043
27044# Is the header present?
27045echo "$as_me:$LINENO: checking $ac_header presence" >&5
27046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27047cat >conftest.$ac_ext <<_ACEOF
27048/* confdefs.h. */
27049_ACEOF
27050cat confdefs.h >>conftest.$ac_ext
27051cat >>conftest.$ac_ext <<_ACEOF
27052/* end confdefs.h. */
27053#include <$ac_header>
27054_ACEOF
27055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27057 ac_status=$?
27058 grep -v '^ *+' conftest.er1 >conftest.err
27059 rm -f conftest.er1
27060 cat conftest.err >&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } >/dev/null; then
27063 if test -s conftest.err; then
27064 ac_cpp_err=$ac_c_preproc_warn_flag
27065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27066 else
27067 ac_cpp_err=
27068 fi
27069else
27070 ac_cpp_err=yes
27071fi
27072if test -z "$ac_cpp_err"; then
27073 ac_header_preproc=yes
27074else
27075 echo "$as_me: failed program was:" >&5
27076sed 's/^/| /' conftest.$ac_ext >&5
27077
27078 ac_header_preproc=no
27079fi
27080rm -f conftest.err conftest.$ac_ext
27081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27082echo "${ECHO_T}$ac_header_preproc" >&6
27083
27084# So? What about this header?
27085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27086 yes:no: )
27087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27091 ac_header_preproc=yes
27092 ;;
27093 no:yes:* )
27094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27106 (
27107 cat <<\_ASBOX
27108## ----------------------------------- ##
27109## Report this to llvmbugs@cs.uiuc.edu ##
27110## ----------------------------------- ##
27111_ASBOX
27112 ) |
27113 sed "s/^/$as_me: WARNING: /" >&2
27114 ;;
27115esac
27116echo "$as_me:$LINENO: checking for $ac_header" >&5
27117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27118if eval "test \"\${$as_ac_Header+set}\" = set"; then
27119 echo $ECHO_N "(cached) $ECHO_C" >&6
27120else
27121 eval "$as_ac_Header=\$ac_header_preproc"
27122fi
27123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27125
27126fi
27127if test `eval echo '${'$as_ac_Header'}'` = yes; then
27128 cat >>confdefs.h <<_ACEOF
27129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27130_ACEOF
27131
27132fi
27133
27134done
27135
Reid Spencer0a262ba2005-08-24 10:07:20 +000027136if test "$ENABLE_THREADS" -eq 1 ; then
27137
27138for ac_header in pthread.h
27139do
27140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27141if eval "test \"\${$as_ac_Header+set}\" = set"; then
27142 echo "$as_me:$LINENO: checking for $ac_header" >&5
27143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27144if eval "test \"\${$as_ac_Header+set}\" = set"; then
27145 echo $ECHO_N "(cached) $ECHO_C" >&6
27146fi
27147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27149else
27150 # Is the header compilable?
27151echo "$as_me:$LINENO: checking $ac_header usability" >&5
27152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27153cat >conftest.$ac_ext <<_ACEOF
27154/* confdefs.h. */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h. */
27159$ac_includes_default
27160#include <$ac_header>
27161_ACEOF
27162rm -f conftest.$ac_objext
27163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27164 (eval $ac_compile) 2>conftest.er1
27165 ac_status=$?
27166 grep -v '^ *+' conftest.er1 >conftest.err
27167 rm -f conftest.er1
27168 cat conftest.err >&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } &&
27171 { ac_try='test -z "$ac_c_werror_flag"
27172 || test ! -s conftest.err'
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27175 ac_status=$?
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; } &&
27178 { ac_try='test -s conftest.$ac_objext'
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
27184 ac_header_compiler=yes
27185else
27186 echo "$as_me: failed program was:" >&5
27187sed 's/^/| /' conftest.$ac_ext >&5
27188
27189ac_header_compiler=no
27190fi
27191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27192echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27193echo "${ECHO_T}$ac_header_compiler" >&6
27194
27195# Is the header present?
27196echo "$as_me:$LINENO: checking $ac_header presence" >&5
27197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27198cat >conftest.$ac_ext <<_ACEOF
27199/* confdefs.h. */
27200_ACEOF
27201cat confdefs.h >>conftest.$ac_ext
27202cat >>conftest.$ac_ext <<_ACEOF
27203/* end confdefs.h. */
27204#include <$ac_header>
27205_ACEOF
27206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27208 ac_status=$?
27209 grep -v '^ *+' conftest.er1 >conftest.err
27210 rm -f conftest.er1
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } >/dev/null; then
27214 if test -s conftest.err; then
27215 ac_cpp_err=$ac_c_preproc_warn_flag
27216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27217 else
27218 ac_cpp_err=
27219 fi
27220else
27221 ac_cpp_err=yes
27222fi
27223if test -z "$ac_cpp_err"; then
27224 ac_header_preproc=yes
27225else
27226 echo "$as_me: failed program was:" >&5
27227sed 's/^/| /' conftest.$ac_ext >&5
27228
27229 ac_header_preproc=no
27230fi
27231rm -f conftest.err conftest.$ac_ext
27232echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27233echo "${ECHO_T}$ac_header_preproc" >&6
27234
27235# So? What about this header?
27236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27237 yes:no: )
27238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27242 ac_header_preproc=yes
27243 ;;
27244 no:yes:* )
27245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27252echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27257 (
27258 cat <<\_ASBOX
27259## ----------------------------------- ##
27260## Report this to llvmbugs@cs.uiuc.edu ##
27261## ----------------------------------- ##
27262_ASBOX
27263 ) |
27264 sed "s/^/$as_me: WARNING: /" >&2
27265 ;;
27266esac
27267echo "$as_me:$LINENO: checking for $ac_header" >&5
27268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27269if eval "test \"\${$as_ac_Header+set}\" = set"; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27271else
27272 eval "$as_ac_Header=\$ac_header_preproc"
27273fi
27274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27276
27277fi
27278if test `eval echo '${'$as_ac_Header'}'` = yes; then
27279 cat >>confdefs.h <<_ACEOF
27280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27281_ACEOF
27282
27283fi
27284
27285done
27286
27287fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027288
27289
John Criswell7a73b802003-06-30 21:59:07 +000027290echo "$as_me:$LINENO: checking for pid_t" >&5
27291echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27292if test "${ac_cv_type_pid_t+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27294else
27295 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027296/* confdefs.h. */
27297_ACEOF
27298cat confdefs.h >>conftest.$ac_ext
27299cat >>conftest.$ac_ext <<_ACEOF
27300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027301$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027302int
27303main ()
27304{
27305if ((pid_t *) 0)
27306 return 0;
27307if (sizeof (pid_t))
27308 return 0;
27309 ;
27310 return 0;
27311}
27312_ACEOF
27313rm -f conftest.$ac_objext
27314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027315 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027317 grep -v '^ *+' conftest.er1 >conftest.err
27318 rm -f conftest.er1
27319 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027322 { ac_try='test -z "$ac_c_werror_flag"
27323 || test ! -s conftest.err'
27324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27325 (eval $ac_try) 2>&5
27326 ac_status=$?
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331 (eval $ac_try) 2>&5
27332 ac_status=$?
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; }; then
27335 ac_cv_type_pid_t=yes
27336else
27337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027338sed 's/^/| /' conftest.$ac_ext >&5
27339
John Criswell7a73b802003-06-30 21:59:07 +000027340ac_cv_type_pid_t=no
27341fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027343fi
27344echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27345echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27346if test $ac_cv_type_pid_t = yes; then
27347 :
27348else
27349
27350cat >>confdefs.h <<_ACEOF
27351#define pid_t int
27352_ACEOF
27353
27354fi
27355
27356echo "$as_me:$LINENO: checking for size_t" >&5
27357echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27358if test "${ac_cv_type_size_t+set}" = set; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27360else
27361 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027362/* confdefs.h. */
27363_ACEOF
27364cat confdefs.h >>conftest.$ac_ext
27365cat >>conftest.$ac_ext <<_ACEOF
27366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027367$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027368int
27369main ()
27370{
27371if ((size_t *) 0)
27372 return 0;
27373if (sizeof (size_t))
27374 return 0;
27375 ;
27376 return 0;
27377}
27378_ACEOF
27379rm -f conftest.$ac_objext
27380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027381 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027383 grep -v '^ *+' conftest.er1 >conftest.err
27384 rm -f conftest.er1
27385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027388 { ac_try='test -z "$ac_c_werror_flag"
27389 || test ! -s conftest.err'
27390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391 (eval $ac_try) 2>&5
27392 ac_status=$?
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; } &&
27395 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27398 ac_status=$?
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 ac_cv_type_size_t=yes
27402else
27403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027404sed 's/^/| /' conftest.$ac_ext >&5
27405
John Criswell7a73b802003-06-30 21:59:07 +000027406ac_cv_type_size_t=no
27407fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027409fi
27410echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27411echo "${ECHO_T}$ac_cv_type_size_t" >&6
27412if test $ac_cv_type_size_t = yes; then
27413 :
27414else
27415
27416cat >>confdefs.h <<_ACEOF
27417#define size_t unsigned
27418_ACEOF
27419
27420fi
27421
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027422echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27423echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27424if test "${ac_cv_type_signal+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27426else
27427 cat >conftest.$ac_ext <<_ACEOF
27428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
27433#include <sys/types.h>
27434#include <signal.h>
27435#ifdef signal
27436# undef signal
27437#endif
27438#ifdef __cplusplus
27439extern "C" void (*signal (int, void (*)(int)))(int);
27440#else
27441void (*signal ()) ();
27442#endif
27443
27444int
27445main ()
27446{
27447int i;
27448 ;
27449 return 0;
27450}
27451_ACEOF
27452rm -f conftest.$ac_objext
27453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27454 (eval $ac_compile) 2>conftest.er1
27455 ac_status=$?
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } &&
27461 { ac_try='test -z "$ac_c_werror_flag"
27462 || test ! -s conftest.err'
27463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464 (eval $ac_try) 2>&5
27465 ac_status=$?
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; } &&
27468 { ac_try='test -s conftest.$ac_objext'
27469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27470 (eval $ac_try) 2>&5
27471 ac_status=$?
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); }; }; then
27474 ac_cv_type_signal=void
27475else
27476 echo "$as_me: failed program was:" >&5
27477sed 's/^/| /' conftest.$ac_ext >&5
27478
27479ac_cv_type_signal=int
27480fi
27481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27482fi
27483echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27484echo "${ECHO_T}$ac_cv_type_signal" >&6
27485
27486cat >>confdefs.h <<_ACEOF
27487#define RETSIGTYPE $ac_cv_type_signal
27488_ACEOF
27489
27490
27491echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27492echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27493if test "${ac_cv_struct_tm+set}" = set; then
27494 echo $ECHO_N "(cached) $ECHO_C" >&6
27495else
27496 cat >conftest.$ac_ext <<_ACEOF
27497/* confdefs.h. */
27498_ACEOF
27499cat confdefs.h >>conftest.$ac_ext
27500cat >>conftest.$ac_ext <<_ACEOF
27501/* end confdefs.h. */
27502#include <sys/types.h>
27503#include <time.h>
27504
27505int
27506main ()
27507{
27508struct tm *tp; tp->tm_sec;
27509 ;
27510 return 0;
27511}
27512_ACEOF
27513rm -f conftest.$ac_objext
27514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27515 (eval $ac_compile) 2>conftest.er1
27516 ac_status=$?
27517 grep -v '^ *+' conftest.er1 >conftest.err
27518 rm -f conftest.er1
27519 cat conftest.err >&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); } &&
27522 { ac_try='test -z "$ac_c_werror_flag"
27523 || test ! -s conftest.err'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; } &&
27529 { ac_try='test -s conftest.$ac_objext'
27530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531 (eval $ac_try) 2>&5
27532 ac_status=$?
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; }; then
27535 ac_cv_struct_tm=time.h
27536else
27537 echo "$as_me: failed program was:" >&5
27538sed 's/^/| /' conftest.$ac_ext >&5
27539
27540ac_cv_struct_tm=sys/time.h
27541fi
27542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27543fi
27544echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27545echo "${ECHO_T}$ac_cv_struct_tm" >&6
27546if test $ac_cv_struct_tm = sys/time.h; then
27547
27548cat >>confdefs.h <<\_ACEOF
27549#define TM_IN_SYS_TIME 1
27550_ACEOF
27551
27552fi
27553
John Criswell7a73b802003-06-30 21:59:07 +000027554echo "$as_me:$LINENO: checking for int64_t" >&5
27555echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27556if test "${ac_cv_type_int64_t+set}" = set; then
27557 echo $ECHO_N "(cached) $ECHO_C" >&6
27558else
27559 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027560/* confdefs.h. */
27561_ACEOF
27562cat confdefs.h >>conftest.$ac_ext
27563cat >>conftest.$ac_ext <<_ACEOF
27564/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027565$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027566int
27567main ()
27568{
27569if ((int64_t *) 0)
27570 return 0;
27571if (sizeof (int64_t))
27572 return 0;
27573 ;
27574 return 0;
27575}
27576_ACEOF
27577rm -f conftest.$ac_objext
27578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027579 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027580 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027581 grep -v '^ *+' conftest.er1 >conftest.err
27582 rm -f conftest.er1
27583 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027586 { ac_try='test -z "$ac_c_werror_flag"
27587 || test ! -s conftest.err'
27588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27589 (eval $ac_try) 2>&5
27590 ac_status=$?
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); }; } &&
27593 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27595 (eval $ac_try) 2>&5
27596 ac_status=$?
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; }; then
27599 ac_cv_type_int64_t=yes
27600else
27601 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027602sed 's/^/| /' conftest.$ac_ext >&5
27603
John Criswell7a73b802003-06-30 21:59:07 +000027604ac_cv_type_int64_t=no
27605fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027607fi
27608echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27609echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27610if test $ac_cv_type_int64_t = yes; then
27611
27612cat >>confdefs.h <<_ACEOF
27613#define HAVE_INT64_T 1
27614_ACEOF
27615
27616
27617else
27618 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27619echo "$as_me: error: Type int64_t required but not found" >&2;}
27620 { (exit 1); exit 1; }; }
27621fi
27622
27623echo "$as_me:$LINENO: checking for uint64_t" >&5
27624echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27625if test "${ac_cv_type_uint64_t+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27627else
27628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027629/* confdefs.h. */
27630_ACEOF
27631cat confdefs.h >>conftest.$ac_ext
27632cat >>conftest.$ac_ext <<_ACEOF
27633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027634$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027635int
27636main ()
27637{
27638if ((uint64_t *) 0)
27639 return 0;
27640if (sizeof (uint64_t))
27641 return 0;
27642 ;
27643 return 0;
27644}
27645_ACEOF
27646rm -f conftest.$ac_objext
27647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027648 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027650 grep -v '^ *+' conftest.er1 >conftest.err
27651 rm -f conftest.er1
27652 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027655 { ac_try='test -z "$ac_c_werror_flag"
27656 || test ! -s conftest.err'
27657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658 (eval $ac_try) 2>&5
27659 ac_status=$?
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); }; } &&
27662 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27665 ac_status=$?
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
27668 ac_cv_type_uint64_t=yes
27669else
27670 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027671sed 's/^/| /' conftest.$ac_ext >&5
27672
John Criswell7a73b802003-06-30 21:59:07 +000027673ac_cv_type_uint64_t=no
27674fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027676fi
27677echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27678echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27679if test $ac_cv_type_uint64_t = yes; then
27680
27681cat >>confdefs.h <<_ACEOF
27682#define HAVE_UINT64_T 1
27683_ACEOF
27684
27685
27686else
Misha Brukmanceca9042004-09-02 23:02:30 +000027687 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027688echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27689if test "${ac_cv_type_u_int64_t+set}" = set; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27691else
27692 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027693/* confdefs.h. */
27694_ACEOF
27695cat confdefs.h >>conftest.$ac_ext
27696cat >>conftest.$ac_ext <<_ACEOF
27697/* end confdefs.h. */
27698$ac_includes_default
27699int
27700main ()
27701{
27702if ((u_int64_t *) 0)
27703 return 0;
27704if (sizeof (u_int64_t))
27705 return 0;
27706 ;
27707 return 0;
27708}
27709_ACEOF
27710rm -f conftest.$ac_objext
27711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027712 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027713 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027719 { ac_try='test -z "$ac_c_werror_flag"
27720 || test ! -s conftest.err'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27723 ac_status=$?
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27732 ac_cv_type_u_int64_t=yes
27733else
27734 echo "$as_me: failed program was:" >&5
27735sed 's/^/| /' conftest.$ac_ext >&5
27736
27737ac_cv_type_u_int64_t=no
27738fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027740fi
27741echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27742echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27743if test $ac_cv_type_u_int64_t = yes; then
27744
27745cat >>confdefs.h <<_ACEOF
27746#define HAVE_U_INT64_T 1
27747_ACEOF
27748
27749
Misha Brukmanceca9042004-09-02 23:02:30 +000027750else
27751 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27752echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27753 { (exit 1); exit 1; }; }
27754fi
27755
John Criswell679ff312004-09-02 18:44:44 +000027756fi
27757
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027758
27759
27760
27761
27762
27763
27764
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027765
27766
Reid Spencerdf3be822006-01-23 08:15:53 +000027767for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027768do
27769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27770echo "$as_me:$LINENO: checking for $ac_func" >&5
27771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27772if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027773 echo $ECHO_N "(cached) $ECHO_C" >&6
27774else
27775 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027776/* confdefs.h. */
27777_ACEOF
27778cat confdefs.h >>conftest.$ac_ext
27779cat >>conftest.$ac_ext <<_ACEOF
27780/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27783#define $ac_func innocuous_$ac_func
27784
27785/* System header to define __stub macros and hopefully few prototypes,
27786 which can conflict with char $ac_func (); below.
27787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27788 <limits.h> exists even on freestanding compilers. */
27789
27790#ifdef __STDC__
27791# include <limits.h>
27792#else
27793# include <assert.h>
27794#endif
27795
27796#undef $ac_func
27797
27798/* Override any gcc2 internal prototype to avoid an error. */
27799#ifdef __cplusplus
27800extern "C"
27801{
27802#endif
27803/* We use char because int might match the return type of a gcc2
27804 builtin and then its argument prototype would still apply. */
27805char $ac_func ();
27806/* The GNU C library defines this for functions which it implements
27807 to always fail with ENOSYS. Some functions are actually named
27808 something starting with __ and the normal name is an alias. */
27809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27810choke me
27811#else
27812char (*f) () = $ac_func;
27813#endif
27814#ifdef __cplusplus
27815}
27816#endif
John Criswell7a73b802003-06-30 21:59:07 +000027817
John Criswell7a73b802003-06-30 21:59:07 +000027818int
27819main ()
27820{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027821return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027822 ;
27823 return 0;
27824}
27825_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027826rm -f conftest.$ac_objext conftest$ac_exeext
27827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27828 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027829 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027830 grep -v '^ *+' conftest.er1 >conftest.err
27831 rm -f conftest.er1
27832 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027835 { ac_try='test -z "$ac_c_werror_flag"
27836 || test ! -s conftest.err'
27837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27838 (eval $ac_try) 2>&5
27839 ac_status=$?
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027842 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844 (eval $ac_try) 2>&5
27845 ac_status=$?
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027848 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027849else
27850 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027851sed 's/^/| /' conftest.$ac_ext >&5
27852
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027853eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027854fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027855rm -f conftest.err conftest.$ac_objext \
27856 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027857fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27859echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27860if test `eval echo '${'$as_ac_var'}'` = yes; then
27861 cat >>confdefs.h <<_ACEOF
27862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027863_ACEOF
27864
27865fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027866done
John Criswell7a73b802003-06-30 21:59:07 +000027867
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027868
27869
27870
Reid Spencer6af3d262004-12-15 04:01:48 +000027871
27872
Reid Spencer59473af2004-12-25 07:31:29 +000027873
Reid Spencerdf3be822006-01-23 08:15:53 +000027874for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27875do
27876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27877echo "$as_me:$LINENO: checking for $ac_func" >&5
27878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27879if eval "test \"\${$as_ac_var+set}\" = set"; then
27880 echo $ECHO_N "(cached) $ECHO_C" >&6
27881else
27882 cat >conftest.$ac_ext <<_ACEOF
27883/* confdefs.h. */
27884_ACEOF
27885cat confdefs.h >>conftest.$ac_ext
27886cat >>conftest.$ac_ext <<_ACEOF
27887/* end confdefs.h. */
27888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27890#define $ac_func innocuous_$ac_func
27891
27892/* System header to define __stub macros and hopefully few prototypes,
27893 which can conflict with char $ac_func (); below.
27894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27895 <limits.h> exists even on freestanding compilers. */
27896
27897#ifdef __STDC__
27898# include <limits.h>
27899#else
27900# include <assert.h>
27901#endif
27902
27903#undef $ac_func
27904
27905/* Override any gcc2 internal prototype to avoid an error. */
27906#ifdef __cplusplus
27907extern "C"
27908{
27909#endif
27910/* We use char because int might match the return type of a gcc2
27911 builtin and then its argument prototype would still apply. */
27912char $ac_func ();
27913/* The GNU C library defines this for functions which it implements
27914 to always fail with ENOSYS. Some functions are actually named
27915 something starting with __ and the normal name is an alias. */
27916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27917choke me
27918#else
27919char (*f) () = $ac_func;
27920#endif
27921#ifdef __cplusplus
27922}
27923#endif
27924
27925int
27926main ()
27927{
27928return f != $ac_func;
27929 ;
27930 return 0;
27931}
27932_ACEOF
27933rm -f conftest.$ac_objext conftest$ac_exeext
27934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27935 (eval $ac_link) 2>conftest.er1
27936 ac_status=$?
27937 grep -v '^ *+' conftest.er1 >conftest.err
27938 rm -f conftest.er1
27939 cat conftest.err >&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } &&
27942 { ac_try='test -z "$ac_c_werror_flag"
27943 || test ! -s conftest.err'
27944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945 (eval $ac_try) 2>&5
27946 ac_status=$?
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; } &&
27949 { ac_try='test -s conftest$ac_exeext'
27950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951 (eval $ac_try) 2>&5
27952 ac_status=$?
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; }; then
27955 eval "$as_ac_var=yes"
27956else
27957 echo "$as_me: failed program was:" >&5
27958sed 's/^/| /' conftest.$ac_ext >&5
27959
27960eval "$as_ac_var=no"
27961fi
27962rm -f conftest.err conftest.$ac_objext \
27963 conftest$ac_exeext conftest.$ac_ext
27964fi
27965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27967if test `eval echo '${'$as_ac_var'}'` = yes; then
27968 cat >>confdefs.h <<_ACEOF
27969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27970_ACEOF
27971
27972fi
27973done
27974
27975
27976
27977
27978
27979
27980
27981
27982for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027983do
27984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27985echo "$as_me:$LINENO: checking for $ac_func" >&5
27986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27987if eval "test \"\${$as_ac_var+set}\" = set"; then
27988 echo $ECHO_N "(cached) $ECHO_C" >&6
27989else
27990 cat >conftest.$ac_ext <<_ACEOF
27991/* confdefs.h. */
27992_ACEOF
27993cat confdefs.h >>conftest.$ac_ext
27994cat >>conftest.$ac_ext <<_ACEOF
27995/* end confdefs.h. */
27996/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27998#define $ac_func innocuous_$ac_func
27999
28000/* System header to define __stub macros and hopefully few prototypes,
28001 which can conflict with char $ac_func (); below.
28002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28003 <limits.h> exists even on freestanding compilers. */
28004
28005#ifdef __STDC__
28006# include <limits.h>
28007#else
28008# include <assert.h>
28009#endif
28010
28011#undef $ac_func
28012
28013/* Override any gcc2 internal prototype to avoid an error. */
28014#ifdef __cplusplus
28015extern "C"
28016{
28017#endif
28018/* We use char because int might match the return type of a gcc2
28019 builtin and then its argument prototype would still apply. */
28020char $ac_func ();
28021/* The GNU C library defines this for functions which it implements
28022 to always fail with ENOSYS. Some functions are actually named
28023 something starting with __ and the normal name is an alias. */
28024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28025choke me
28026#else
28027char (*f) () = $ac_func;
28028#endif
28029#ifdef __cplusplus
28030}
28031#endif
28032
28033int
28034main ()
28035{
28036return f != $ac_func;
28037 ;
28038 return 0;
28039}
28040_ACEOF
28041rm -f conftest.$ac_objext conftest$ac_exeext
28042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28043 (eval $ac_link) 2>conftest.er1
28044 ac_status=$?
28045 grep -v '^ *+' conftest.er1 >conftest.err
28046 rm -f conftest.er1
28047 cat conftest.err >&5
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); } &&
28050 { ac_try='test -z "$ac_c_werror_flag"
28051 || test ! -s conftest.err'
28052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053 (eval $ac_try) 2>&5
28054 ac_status=$?
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); }; } &&
28057 { ac_try='test -s conftest$ac_exeext'
28058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059 (eval $ac_try) 2>&5
28060 ac_status=$?
28061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); }; }; then
28063 eval "$as_ac_var=yes"
28064else
28065 echo "$as_me: failed program was:" >&5
28066sed 's/^/| /' conftest.$ac_ext >&5
28067
28068eval "$as_ac_var=no"
28069fi
28070rm -f conftest.err conftest.$ac_objext \
28071 conftest$ac_exeext conftest.$ac_ext
28072fi
28073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28074echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28075if test `eval echo '${'$as_ac_var'}'` = yes; then
28076 cat >>confdefs.h <<_ACEOF
28077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28078_ACEOF
28079
28080fi
28081done
28082
28083
Reid Spencerba46ca32004-12-31 05:49:15 +000028084
28085
Chris Lattner0b142592005-11-14 06:57:34 +000028086
Chris Lattner511f11d2005-11-14 07:25:50 +000028087for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028088do
28089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28090echo "$as_me:$LINENO: checking for $ac_func" >&5
28091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28092if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094else
28095 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028096/* confdefs.h. */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28103#define $ac_func innocuous_$ac_func
28104
28105/* System header to define __stub macros and hopefully few prototypes,
28106 which can conflict with char $ac_func (); below.
28107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28108 <limits.h> exists even on freestanding compilers. */
28109
28110#ifdef __STDC__
28111# include <limits.h>
28112#else
28113# include <assert.h>
28114#endif
28115
28116#undef $ac_func
28117
28118/* Override any gcc2 internal prototype to avoid an error. */
28119#ifdef __cplusplus
28120extern "C"
28121{
28122#endif
28123/* We use char because int might match the return type of a gcc2
28124 builtin and then its argument prototype would still apply. */
28125char $ac_func ();
28126/* The GNU C library defines this for functions which it implements
28127 to always fail with ENOSYS. Some functions are actually named
28128 something starting with __ and the normal name is an alias. */
28129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28130choke me
28131#else
28132char (*f) () = $ac_func;
28133#endif
28134#ifdef __cplusplus
28135}
28136#endif
John Criswell7a73b802003-06-30 21:59:07 +000028137
John Criswell7a73b802003-06-30 21:59:07 +000028138int
28139main ()
28140{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028141return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028142 ;
28143 return 0;
28144}
28145_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028146rm -f conftest.$ac_objext conftest$ac_exeext
28147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28148 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028150 grep -v '^ *+' conftest.er1 >conftest.err
28151 rm -f conftest.er1
28152 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028155 { ac_try='test -z "$ac_c_werror_flag"
28156 || test ! -s conftest.err'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028162 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028168 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028169else
28170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028171sed 's/^/| /' conftest.$ac_ext >&5
28172
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028173eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028174fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028175rm -f conftest.err conftest.$ac_objext \
28176 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028177fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28180if test `eval echo '${'$as_ac_var'}'` = yes; then
28181 cat >>confdefs.h <<_ACEOF
28182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028183_ACEOF
28184
28185fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028186done
John Criswell7a73b802003-06-30 21:59:07 +000028187
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028188echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28189echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028190if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028191 echo $ECHO_N "(cached) $ECHO_C" >&6
28192else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028193 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028194ac_cpp='$CPP $CPPFLAGS'
28195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28197ac_compiler_gnu=$ac_cv_c_compiler_gnu
28198
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028199 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028200 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028201else
28202 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028203
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028204 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028205_ACEOF
28206cat confdefs.h >>conftest.$ac_ext
28207cat >>conftest.$ac_ext <<_ACEOF
28208/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028209
John Criswella0137d32003-10-13 16:22:01 +000028210#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028211#include <stdlib.h>
28212
John Criswella0137d32003-10-13 16:22:01 +000028213int
28214main ()
28215{
28216
Reid Spencer2706f8c2004-09-19 23:53:36 +000028217volatile double A, B;
28218char Buffer[100];
28219A = 1;
28220A /= 10.0;
28221sprintf(Buffer, "%a", A);
28222B = atof(Buffer);
28223if (A != B)
28224 return (1);
28225if (A != 0x1.999999999999ap-4)
28226 return (1);
28227return (0);
John Criswella0137d32003-10-13 16:22:01 +000028228 ;
28229 return 0;
28230}
28231_ACEOF
28232rm -f conftest$ac_exeext
28233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28234 (eval $ac_link) 2>&5
28235 ac_status=$?
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239 (eval $ac_try) 2>&5
28240 ac_status=$?
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028243 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028244else
28245 echo "$as_me: program exited with status $ac_status" >&5
28246echo "$as_me: failed program was:" >&5
28247sed 's/^/| /' conftest.$ac_ext >&5
28248
28249( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028250llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028251fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028252rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028253fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028254 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028255ac_cpp='$CPP $CPPFLAGS'
28256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258ac_compiler_gnu=$ac_cv_c_compiler_gnu
28259
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028260fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028261echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28262echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28263 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028264
28265cat >>confdefs.h <<\_ACEOF
28266#define HAVE_PRINTF_A 1
28267_ACEOF
28268
Reid Spencer2706f8c2004-09-19 23:53:36 +000028269 fi
John Criswella0137d32003-10-13 16:22:01 +000028270
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028271# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28272# for constant arguments. Useless!
28273echo "$as_me:$LINENO: checking for working alloca.h" >&5
28274echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28275if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028276 echo $ECHO_N "(cached) $ECHO_C" >&6
28277else
John Criswell0021c312004-02-13 21:57:29 +000028278 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028279/* confdefs.h. */
28280_ACEOF
28281cat confdefs.h >>conftest.$ac_ext
28282cat >>conftest.$ac_ext <<_ACEOF
28283/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028284#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028285int
28286main ()
28287{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028288char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028289 ;
28290 return 0;
28291}
28292_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028293rm -f conftest.$ac_objext conftest$ac_exeext
28294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28295 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028302 { ac_try='test -z "$ac_c_werror_flag"
28303 || test ! -s conftest.err'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028309 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28312 ac_status=$?
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028315 ac_cv_working_alloca_h=yes
28316else
28317 echo "$as_me: failed program was:" >&5
28318sed 's/^/| /' conftest.$ac_ext >&5
28319
28320ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028321fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028322rm -f conftest.err conftest.$ac_objext \
28323 conftest$ac_exeext conftest.$ac_ext
28324fi
28325echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28326echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28327if test $ac_cv_working_alloca_h = yes; then
28328
28329cat >>confdefs.h <<\_ACEOF
28330#define HAVE_ALLOCA_H 1
28331_ACEOF
28332
28333fi
28334
28335echo "$as_me:$LINENO: checking for alloca" >&5
28336echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28337if test "${ac_cv_func_alloca_works+set}" = set; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28339else
28340 cat >conftest.$ac_ext <<_ACEOF
28341/* confdefs.h. */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h. */
28346#ifdef __GNUC__
28347# define alloca __builtin_alloca
28348#else
28349# ifdef _MSC_VER
28350# include <malloc.h>
28351# define alloca _alloca
28352# else
28353# if HAVE_ALLOCA_H
28354# include <alloca.h>
28355# else
28356# ifdef _AIX
28357 #pragma alloca
28358# else
28359# ifndef alloca /* predefined by HP cc +Olibcalls */
28360char *alloca ();
28361# endif
28362# endif
28363# endif
28364# endif
28365#endif
28366
28367int
28368main ()
28369{
28370char *p = (char *) alloca (1);
28371 ;
28372 return 0;
28373}
28374_ACEOF
28375rm -f conftest.$ac_objext conftest$ac_exeext
28376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28377 (eval $ac_link) 2>conftest.er1
28378 ac_status=$?
28379 grep -v '^ *+' conftest.er1 >conftest.err
28380 rm -f conftest.er1
28381 cat conftest.err >&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } &&
28384 { ac_try='test -z "$ac_c_werror_flag"
28385 || test ! -s conftest.err'
28386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387 (eval $ac_try) 2>&5
28388 ac_status=$?
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; } &&
28391 { ac_try='test -s conftest$ac_exeext'
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28394 ac_status=$?
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; }; then
28397 ac_cv_func_alloca_works=yes
28398else
28399 echo "$as_me: failed program was:" >&5
28400sed 's/^/| /' conftest.$ac_ext >&5
28401
28402ac_cv_func_alloca_works=no
28403fi
28404rm -f conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
28406fi
28407echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28408echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28409
28410if test $ac_cv_func_alloca_works = yes; then
28411
28412cat >>confdefs.h <<\_ACEOF
28413#define HAVE_ALLOCA 1
28414_ACEOF
28415
28416else
28417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28418# that cause trouble. Some versions do not even contain alloca or
28419# contain a buggy version. If you still want to use their alloca,
28420# use ar to extract alloca.o from them instead of compiling alloca.c.
28421
28422ALLOCA=alloca.$ac_objext
28423
28424cat >>confdefs.h <<\_ACEOF
28425#define C_ALLOCA 1
28426_ACEOF
28427
28428
28429echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28430echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28431if test "${ac_cv_os_cray+set}" = set; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28433else
28434 cat >conftest.$ac_ext <<_ACEOF
28435/* confdefs.h. */
28436_ACEOF
28437cat confdefs.h >>conftest.$ac_ext
28438cat >>conftest.$ac_ext <<_ACEOF
28439/* end confdefs.h. */
28440#if defined(CRAY) && ! defined(CRAY2)
28441webecray
28442#else
28443wenotbecray
28444#endif
28445
28446_ACEOF
28447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28448 $EGREP "webecray" >/dev/null 2>&1; then
28449 ac_cv_os_cray=yes
28450else
28451 ac_cv_os_cray=no
28452fi
28453rm -f conftest*
28454
28455fi
28456echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28457echo "${ECHO_T}$ac_cv_os_cray" >&6
28458if test $ac_cv_os_cray = yes; then
28459 for ac_func in _getb67 GETB67 getb67; do
28460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461echo "$as_me:$LINENO: checking for $ac_func" >&5
28462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28463if eval "test \"\${$as_ac_var+set}\" = set"; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28465else
28466 cat >conftest.$ac_ext <<_ACEOF
28467/* confdefs.h. */
28468_ACEOF
28469cat confdefs.h >>conftest.$ac_ext
28470cat >>conftest.$ac_ext <<_ACEOF
28471/* end confdefs.h. */
28472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28474#define $ac_func innocuous_$ac_func
28475
28476/* System header to define __stub macros and hopefully few prototypes,
28477 which can conflict with char $ac_func (); below.
28478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28479 <limits.h> exists even on freestanding compilers. */
28480
28481#ifdef __STDC__
28482# include <limits.h>
28483#else
28484# include <assert.h>
28485#endif
28486
28487#undef $ac_func
28488
28489/* Override any gcc2 internal prototype to avoid an error. */
28490#ifdef __cplusplus
28491extern "C"
28492{
28493#endif
28494/* We use char because int might match the return type of a gcc2
28495 builtin and then its argument prototype would still apply. */
28496char $ac_func ();
28497/* The GNU C library defines this for functions which it implements
28498 to always fail with ENOSYS. Some functions are actually named
28499 something starting with __ and the normal name is an alias. */
28500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28501choke me
28502#else
28503char (*f) () = $ac_func;
28504#endif
28505#ifdef __cplusplus
28506}
28507#endif
28508
28509int
28510main ()
28511{
28512return f != $ac_func;
28513 ;
28514 return 0;
28515}
28516_ACEOF
28517rm -f conftest.$ac_objext conftest$ac_exeext
28518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28519 (eval $ac_link) 2>conftest.er1
28520 ac_status=$?
28521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
28526 { ac_try='test -z "$ac_c_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest$ac_exeext'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
28539 eval "$as_ac_var=yes"
28540else
28541 echo "$as_me: failed program was:" >&5
28542sed 's/^/| /' conftest.$ac_ext >&5
28543
28544eval "$as_ac_var=no"
28545fi
28546rm -f conftest.err conftest.$ac_objext \
28547 conftest$ac_exeext conftest.$ac_ext
28548fi
28549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28550echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28551if test `eval echo '${'$as_ac_var'}'` = yes; then
28552
28553cat >>confdefs.h <<_ACEOF
28554#define CRAY_STACKSEG_END $ac_func
28555_ACEOF
28556
28557 break
28558fi
28559
28560 done
28561fi
28562
28563echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28564echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28565if test "${ac_cv_c_stack_direction+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28567else
28568 if test "$cross_compiling" = yes; then
28569 ac_cv_c_stack_direction=0
28570else
28571 cat >conftest.$ac_ext <<_ACEOF
28572/* confdefs.h. */
28573_ACEOF
28574cat confdefs.h >>conftest.$ac_ext
28575cat >>conftest.$ac_ext <<_ACEOF
28576/* end confdefs.h. */
28577int
28578find_stack_direction ()
28579{
28580 static char *addr = 0;
28581 auto char dummy;
28582 if (addr == 0)
28583 {
28584 addr = &dummy;
28585 return find_stack_direction ();
28586 }
John Criswell0021c312004-02-13 21:57:29 +000028587 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028588 return (&dummy > addr) ? 1 : -1;
28589}
John Criswell0021c312004-02-13 21:57:29 +000028590
John Criswell0021c312004-02-13 21:57:29 +000028591int
28592main ()
28593{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028594 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028595}
28596_ACEOF
28597rm -f conftest$ac_exeext
28598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599 (eval $ac_link) 2>&5
28600 ac_status=$?
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604 (eval $ac_try) 2>&5
28605 ac_status=$?
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028608 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028609else
28610 echo "$as_me: program exited with status $ac_status" >&5
28611echo "$as_me: failed program was:" >&5
28612sed 's/^/| /' conftest.$ac_ext >&5
28613
28614( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028615ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028616fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028618fi
28619fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028620echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28621echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28622
28623cat >>confdefs.h <<_ACEOF
28624#define STACK_DIRECTION $ac_cv_c_stack_direction
28625_ACEOF
28626
28627
John Criswell0021c312004-02-13 21:57:29 +000028628fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028629
28630
28631echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28632echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28633if test "${ac_cv_func_rand48+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28635else
28636 ac_ext=cc
28637ac_cpp='$CXXCPP $CPPFLAGS'
28638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28641
28642 cat >conftest.$ac_ext <<_ACEOF
28643/* confdefs.h. */
28644_ACEOF
28645cat confdefs.h >>conftest.$ac_ext
28646cat >>conftest.$ac_ext <<_ACEOF
28647/* end confdefs.h. */
28648#include <stdlib.h>
28649int
28650main ()
28651{
28652srand48(0);lrand48();drand48();
28653 ;
28654 return 0;
28655}
28656_ACEOF
28657rm -f conftest.$ac_objext
28658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28659 (eval $ac_compile) 2>conftest.er1
28660 ac_status=$?
28661 grep -v '^ *+' conftest.er1 >conftest.err
28662 rm -f conftest.er1
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_cxx_werror_flag"
28667 || test ! -s conftest.err'
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28670 ac_status=$?
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest.$ac_objext'
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28676 ac_status=$?
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; }; then
28679 ac_cv_func_rand48=yes
28680else
28681 echo "$as_me: failed program was:" >&5
28682sed 's/^/| /' conftest.$ac_ext >&5
28683
28684ac_cv_func_rand48=no
28685fi
28686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28687 ac_ext=c
28688ac_cpp='$CPP $CPPFLAGS'
28689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28691ac_compiler_gnu=$ac_cv_c_compiler_gnu
28692
28693fi
28694echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28695echo "${ECHO_T}$ac_cv_func_rand48" >&6
28696
28697if test "$ac_cv_func_rand48" = "yes" ; then
28698
28699cat >>confdefs.h <<\_ACEOF
28700#define HAVE_RAND48 1
28701_ACEOF
28702
28703fi
John Criswell0021c312004-02-13 21:57:29 +000028704
28705
John Criswell7a73b802003-06-30 21:59:07 +000028706echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28707echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28708if test "${ac_cv_cxx_namespaces+set}" = set; then
28709 echo $ECHO_N "(cached) $ECHO_C" >&6
28710else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028711 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028712ac_cpp='$CXXCPP $CPPFLAGS'
28713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28716
28717 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028718/* confdefs.h. */
28719_ACEOF
28720cat confdefs.h >>conftest.$ac_ext
28721cat >>conftest.$ac_ext <<_ACEOF
28722/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028723namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028724int
28725main ()
28726{
28727using namespace Outer::Inner; return i;
28728 ;
28729 return 0;
28730}
28731_ACEOF
28732rm -f conftest.$ac_objext
28733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028734 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028735 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028736 grep -v '^ *+' conftest.er1 >conftest.err
28737 rm -f conftest.er1
28738 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028741 { ac_try='test -z "$ac_cxx_werror_flag"
28742 || test ! -s conftest.err'
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; } &&
28748 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28754 ac_cv_cxx_namespaces=yes
28755else
28756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028757sed 's/^/| /' conftest.$ac_ext >&5
28758
John Criswell7a73b802003-06-30 21:59:07 +000028759ac_cv_cxx_namespaces=no
28760fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028762 ac_ext=c
28763ac_cpp='$CPP $CPPFLAGS'
28764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28766ac_compiler_gnu=$ac_cv_c_compiler_gnu
28767
28768
28769fi
28770echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28771echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28772if test "$ac_cv_cxx_namespaces" = yes; then
28773
28774cat >>confdefs.h <<\_ACEOF
28775#define HAVE_NAMESPACES
28776_ACEOF
28777
28778fi
28779
Brian Gaeke90583492003-11-10 03:06:28 +000028780echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28781echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28782if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028783 echo $ECHO_N "(cached) $ECHO_C" >&6
28784else
28785
John Criswell7a73b802003-06-30 21:59:07 +000028786 ac_ext=cc
28787ac_cpp='$CXXCPP $CPPFLAGS'
28788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28791
28792 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028793/* confdefs.h. */
28794_ACEOF
28795cat confdefs.h >>conftest.$ac_ext
28796cat >>conftest.$ac_ext <<_ACEOF
28797/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028798#include <ext/hash_map>
28799#ifdef HAVE_NAMESPACES
28800using namespace std;
28801#endif
John Criswell7a73b802003-06-30 21:59:07 +000028802int
28803main ()
28804{
Brian Gaeke90583492003-11-10 03:06:28 +000028805hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028806 ;
28807 return 0;
28808}
28809_ACEOF
28810rm -f conftest.$ac_objext
28811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028812 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028813 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028814 grep -v '^ *+' conftest.er1 >conftest.err
28815 rm -f conftest.er1
28816 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028819 { ac_try='test -z "$ac_cxx_werror_flag"
28820 || test ! -s conftest.err'
28821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822 (eval $ac_try) 2>&5
28823 ac_status=$?
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; } &&
28826 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28828 (eval $ac_try) 2>&5
28829 ac_status=$?
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028832 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028833else
28834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028835sed 's/^/| /' conftest.$ac_ext >&5
28836
Brian Gaeke90583492003-11-10 03:06:28 +000028837ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028838fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028840 ac_ext=c
28841ac_cpp='$CPP $CPPFLAGS'
28842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28844ac_compiler_gnu=$ac_cv_c_compiler_gnu
28845
John Criswell7a73b802003-06-30 21:59:07 +000028846fi
Brian Gaeke90583492003-11-10 03:06:28 +000028847echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28848echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028849 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28850 then
John Criswell9f011862004-09-24 18:28:00 +000028851
28852cat >>confdefs.h <<\_ACEOF
28853#define HAVE_STD_EXT_HASH_MAP 1
28854_ACEOF
28855
28856 else
28857
28858cat >>confdefs.h <<\_ACEOF
28859#define HAVE_STD_EXT_HASH_MAP 0
28860_ACEOF
28861
Brian Gaeke90583492003-11-10 03:06:28 +000028862 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028863
Brian Gaeke90583492003-11-10 03:06:28 +000028864 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28865echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28866if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28867 echo $ECHO_N "(cached) $ECHO_C" >&6
28868else
28869
Brian Gaeke90583492003-11-10 03:06:28 +000028870 ac_ext=cc
28871ac_cpp='$CXXCPP $CPPFLAGS'
28872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28875
28876 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028877/* confdefs.h. */
28878_ACEOF
28879cat confdefs.h >>conftest.$ac_ext
28880cat >>conftest.$ac_ext <<_ACEOF
28881/* end confdefs.h. */
28882#include <ext/hash_map>
28883#ifdef HAVE_NAMESPACES
28884using namespace __gnu_cxx;
28885#endif
28886int
28887main ()
28888{
28889hash_map<int,int> t;
28890 ;
28891 return 0;
28892}
28893_ACEOF
28894rm -f conftest.$ac_objext
28895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028896 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028898 grep -v '^ *+' conftest.er1 >conftest.err
28899 rm -f conftest.er1
28900 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028903 { ac_try='test -z "$ac_cxx_werror_flag"
28904 || test ! -s conftest.err'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28907 ac_status=$?
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; } &&
28910 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28913 ac_status=$?
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; }; then
28916 ac_cv_cxx_have_gnu_ext_hash_map=yes
28917else
28918 echo "$as_me: failed program was:" >&5
28919sed 's/^/| /' conftest.$ac_ext >&5
28920
28921ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028922fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028924 ac_ext=c
28925ac_cpp='$CPP $CPPFLAGS'
28926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28928ac_compiler_gnu=$ac_cv_c_compiler_gnu
28929
28930fi
28931echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28932echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028933 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28934 then
John Criswell9f011862004-09-24 18:28:00 +000028935
28936cat >>confdefs.h <<\_ACEOF
28937#define HAVE_GNU_EXT_HASH_MAP 1
28938_ACEOF
28939
28940 else
28941
28942cat >>confdefs.h <<\_ACEOF
28943#define HAVE_GNU_EXT_HASH_MAP 0
28944_ACEOF
28945
Brian Gaeke90583492003-11-10 03:06:28 +000028946 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028947
Brian Gaeke90583492003-11-10 03:06:28 +000028948 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28949echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28950if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28952else
John Criswell7a73b802003-06-30 21:59:07 +000028953
Brian Gaeke90583492003-11-10 03:06:28 +000028954 ac_ext=cc
28955ac_cpp='$CXXCPP $CPPFLAGS'
28956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28959
28960 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028961/* confdefs.h. */
28962_ACEOF
28963cat confdefs.h >>conftest.$ac_ext
28964cat >>conftest.$ac_ext <<_ACEOF
28965/* end confdefs.h. */
28966#include <hash_map>
28967int
28968main ()
28969{
28970hash_map<int,int> t;
28971 ;
28972 return 0;
28973}
28974_ACEOF
28975rm -f conftest.$ac_objext
28976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028977 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028978 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028979 grep -v '^ *+' conftest.er1 >conftest.err
28980 rm -f conftest.er1
28981 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028984 { ac_try='test -z "$ac_cxx_werror_flag"
28985 || test ! -s conftest.err'
28986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; } &&
28991 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 ac_cv_cxx_have_global_hash_map=yes
28998else
28999 echo "$as_me: failed program was:" >&5
29000sed 's/^/| /' conftest.$ac_ext >&5
29001
29002ac_cv_cxx_have_global_hash_map=no
29003fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029005 ac_ext=c
29006ac_cpp='$CPP $CPPFLAGS'
29007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29009ac_compiler_gnu=$ac_cv_c_compiler_gnu
29010
29011fi
29012echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29013echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029014 if test "$ac_cv_cxx_have_global_hash_map" = yes
29015 then
John Criswell9f011862004-09-24 18:28:00 +000029016
29017cat >>confdefs.h <<\_ACEOF
29018#define HAVE_GLOBAL_HASH_MAP 1
29019_ACEOF
29020
29021 else
29022
29023cat >>confdefs.h <<\_ACEOF
29024#define HAVE_GLOBAL_HASH_MAP 0
29025_ACEOF
29026
Brian Gaeke90583492003-11-10 03:06:28 +000029027 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029028
Brian Gaeke90583492003-11-10 03:06:28 +000029029echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29030echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29031if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029032 echo $ECHO_N "(cached) $ECHO_C" >&6
29033else
29034
John Criswell7a73b802003-06-30 21:59:07 +000029035 ac_ext=cc
29036ac_cpp='$CXXCPP $CPPFLAGS'
29037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29040
29041 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029042/* confdefs.h. */
29043_ACEOF
29044cat confdefs.h >>conftest.$ac_ext
29045cat >>conftest.$ac_ext <<_ACEOF
29046/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029047#include <ext/hash_set>
29048#ifdef HAVE_NAMESPACES
29049using namespace std;
29050#endif
John Criswell7a73b802003-06-30 21:59:07 +000029051int
29052main ()
29053{
Brian Gaeke90583492003-11-10 03:06:28 +000029054hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029055 ;
29056 return 0;
29057}
29058_ACEOF
29059rm -f conftest.$ac_objext
29060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029061 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029062 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029063 grep -v '^ *+' conftest.er1 >conftest.err
29064 rm -f conftest.er1
29065 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029068 { ac_try='test -z "$ac_cxx_werror_flag"
29069 || test ! -s conftest.err'
29070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29071 (eval $ac_try) 2>&5
29072 ac_status=$?
29073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074 (exit $ac_status); }; } &&
29075 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029081 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029082else
29083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029084sed 's/^/| /' conftest.$ac_ext >&5
29085
Brian Gaeke90583492003-11-10 03:06:28 +000029086ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029087fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029089 ac_ext=c
29090ac_cpp='$CPP $CPPFLAGS'
29091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29093ac_compiler_gnu=$ac_cv_c_compiler_gnu
29094
29095fi
29096echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29097echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029098 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29099 then
John Criswell9f011862004-09-24 18:28:00 +000029100
29101cat >>confdefs.h <<\_ACEOF
29102#define HAVE_STD_EXT_HASH_SET 1
29103_ACEOF
29104
29105 else
29106
29107cat >>confdefs.h <<\_ACEOF
29108#define HAVE_STD_EXT_HASH_SET 0
29109_ACEOF
29110
Brian Gaeke90583492003-11-10 03:06:28 +000029111 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029112
Brian Gaeke90583492003-11-10 03:06:28 +000029113 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29114echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29115if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29117else
29118
Brian Gaeke90583492003-11-10 03:06:28 +000029119 ac_ext=cc
29120ac_cpp='$CXXCPP $CPPFLAGS'
29121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29124
John Criswell7a73b802003-06-30 21:59:07 +000029125 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029126/* confdefs.h. */
29127_ACEOF
29128cat confdefs.h >>conftest.$ac_ext
29129cat >>conftest.$ac_ext <<_ACEOF
29130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029131#include <ext/hash_set>
29132#ifdef HAVE_NAMESPACES
29133using namespace __gnu_cxx;
29134#endif
John Criswell7a73b802003-06-30 21:59:07 +000029135int
29136main ()
29137{
Brian Gaeke90583492003-11-10 03:06:28 +000029138hash_set<int> t;
29139 ;
29140 return 0;
29141}
29142_ACEOF
29143rm -f conftest.$ac_objext
29144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029145 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029146 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029147 grep -v '^ *+' conftest.er1 >conftest.err
29148 rm -f conftest.er1
29149 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029152 { ac_try='test -z "$ac_cxx_werror_flag"
29153 || test ! -s conftest.err'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29156 ac_status=$?
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; } &&
29159 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161 (eval $ac_try) 2>&5
29162 ac_status=$?
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; }; then
29165 ac_cv_cxx_have_gnu_ext_hash_set=yes
29166else
29167 echo "$as_me: failed program was:" >&5
29168sed 's/^/| /' conftest.$ac_ext >&5
29169
29170ac_cv_cxx_have_gnu_ext_hash_set=no
29171fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029173 ac_ext=c
29174ac_cpp='$CPP $CPPFLAGS'
29175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29177ac_compiler_gnu=$ac_cv_c_compiler_gnu
29178
29179fi
29180echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29181echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029182 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29183 then
John Criswell9f011862004-09-24 18:28:00 +000029184
29185cat >>confdefs.h <<\_ACEOF
29186#define HAVE_GNU_EXT_HASH_SET 1
29187_ACEOF
29188
29189 else
29190
29191cat >>confdefs.h <<\_ACEOF
29192#define HAVE_GNU_EXT_HASH_SET 0
29193_ACEOF
29194
Brian Gaeke90583492003-11-10 03:06:28 +000029195 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029196
Brian Gaeke90583492003-11-10 03:06:28 +000029197 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29198echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29199if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29200 echo $ECHO_N "(cached) $ECHO_C" >&6
29201else
29202
Brian Gaeke90583492003-11-10 03:06:28 +000029203 ac_ext=cc
29204ac_cpp='$CXXCPP $CPPFLAGS'
29205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29208
29209 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029210/* confdefs.h. */
29211_ACEOF
29212cat confdefs.h >>conftest.$ac_ext
29213cat >>conftest.$ac_ext <<_ACEOF
29214/* end confdefs.h. */
29215#include <hash_set>
29216int
29217main ()
29218{
John Criswell7a73b802003-06-30 21:59:07 +000029219hash_set<int> t; return 0;
29220 ;
29221 return 0;
29222}
29223_ACEOF
29224rm -f conftest.$ac_objext
29225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029226 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029228 grep -v '^ *+' conftest.er1 >conftest.err
29229 rm -f conftest.er1
29230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029233 { ac_try='test -z "$ac_cxx_werror_flag"
29234 || test ! -s conftest.err'
29235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236 (eval $ac_try) 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029246 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029247else
29248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029249sed 's/^/| /' conftest.$ac_ext >&5
29250
Brian Gaeke90583492003-11-10 03:06:28 +000029251ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029254 ac_ext=c
29255ac_cpp='$CPP $CPPFLAGS'
29256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29258ac_compiler_gnu=$ac_cv_c_compiler_gnu
29259
John Criswell7a73b802003-06-30 21:59:07 +000029260fi
Brian Gaeke90583492003-11-10 03:06:28 +000029261echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29262echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029263 if test "$ac_cv_cxx_have_global_hash_set" = yes
29264 then
John Criswell9f011862004-09-24 18:28:00 +000029265
29266cat >>confdefs.h <<\_ACEOF
29267#define HAVE_GLOBAL_HASH_SET 1
29268_ACEOF
29269
29270 else
29271
29272cat >>confdefs.h <<\_ACEOF
29273#define HAVE_GLOBAL_HASH_SET 0
29274_ACEOF
29275
Brian Gaeke90583492003-11-10 03:06:28 +000029276 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029277
John Criswell7a73b802003-06-30 21:59:07 +000029278echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29279echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29280if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29282else
29283
John Criswell7a73b802003-06-30 21:59:07 +000029284 ac_ext=cc
29285ac_cpp='$CXXCPP $CPPFLAGS'
29286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29289
29290 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029291/* confdefs.h. */
29292_ACEOF
29293cat confdefs.h >>conftest.$ac_ext
29294cat >>conftest.$ac_ext <<_ACEOF
29295/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029296#include <iterator>
29297#ifdef HAVE_NAMESPACES
29298using namespace std;
29299#endif
John Criswell7a73b802003-06-30 21:59:07 +000029300int
29301main ()
29302{
29303iterator<int,int,int> t; return 0;
29304 ;
29305 return 0;
29306}
29307_ACEOF
29308rm -f conftest.$ac_objext
29309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029310 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029312 grep -v '^ *+' conftest.er1 >conftest.err
29313 rm -f conftest.er1
29314 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029317 { ac_try='test -z "$ac_cxx_werror_flag"
29318 || test ! -s conftest.err'
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; }; then
29330 ac_cv_cxx_have_std_iterator=yes
29331else
29332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029333sed 's/^/| /' conftest.$ac_ext >&5
29334
John Criswell7a73b802003-06-30 21:59:07 +000029335ac_cv_cxx_have_std_iterator=no
29336fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029338 ac_ext=c
29339ac_cpp='$CPP $CPPFLAGS'
29340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29342ac_compiler_gnu=$ac_cv_c_compiler_gnu
29343
29344
29345fi
29346echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29347echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029348if test "$ac_cv_cxx_have_std_iterator" = yes
29349then
John Criswell40468462004-09-24 21:19:06 +000029350
29351cat >>confdefs.h <<\_ACEOF
29352#define HAVE_STD_ITERATOR 1
29353_ACEOF
29354
29355else
29356
29357cat >>confdefs.h <<\_ACEOF
29358#define HAVE_STD_ITERATOR 0
29359_ACEOF
29360
John Criswell7a73b802003-06-30 21:59:07 +000029361fi
29362
29363echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29364echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29365if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367else
29368
John Criswell7a73b802003-06-30 21:59:07 +000029369 ac_ext=cc
29370ac_cpp='$CXXCPP $CPPFLAGS'
29371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29374
29375 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029376/* confdefs.h. */
29377_ACEOF
29378cat confdefs.h >>conftest.$ac_ext
29379cat >>conftest.$ac_ext <<_ACEOF
29380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029381#include <iterator>
29382#ifdef HAVE_NAMESPACES
29383using namespace std;
29384#endif
John Criswell7a73b802003-06-30 21:59:07 +000029385int
29386main ()
29387{
John Criswellc78022e2003-07-29 19:11:58 +000029388bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029389 ;
29390 return 0;
29391}
29392_ACEOF
29393rm -f conftest.$ac_objext
29394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029395 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029402 { ac_try='test -z "$ac_cxx_werror_flag"
29403 || test ! -s conftest.err'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29406 ac_status=$?
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; } &&
29409 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
29415 ac_cv_cxx_have_bi_iterator=yes
29416else
29417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029418sed 's/^/| /' conftest.$ac_ext >&5
29419
John Criswell7a73b802003-06-30 21:59:07 +000029420ac_cv_cxx_have_bi_iterator=no
29421fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029423 ac_ext=c
29424ac_cpp='$CPP $CPPFLAGS'
29425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427ac_compiler_gnu=$ac_cv_c_compiler_gnu
29428
29429
29430fi
29431echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29432echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029433if test "$ac_cv_cxx_have_bi_iterator" = yes
29434then
John Criswell40468462004-09-24 21:19:06 +000029435
29436cat >>confdefs.h <<\_ACEOF
29437#define HAVE_BI_ITERATOR 1
29438_ACEOF
29439
29440else
29441
29442cat >>confdefs.h <<\_ACEOF
29443#define HAVE_BI_ITERATOR 0
29444_ACEOF
29445
John Criswell7a73b802003-06-30 21:59:07 +000029446fi
29447
29448echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29449echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29450if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29451 echo $ECHO_N "(cached) $ECHO_C" >&6
29452else
29453
John Criswell7a73b802003-06-30 21:59:07 +000029454 ac_ext=cc
29455ac_cpp='$CXXCPP $CPPFLAGS'
29456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29459
29460 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029461/* confdefs.h. */
29462_ACEOF
29463cat confdefs.h >>conftest.$ac_ext
29464cat >>conftest.$ac_ext <<_ACEOF
29465/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029466#include <iterator>
29467#ifdef HAVE_NAMESPACES
29468using namespace std;
29469#endif
John Criswell7a73b802003-06-30 21:59:07 +000029470int
29471main ()
29472{
John Criswellc78022e2003-07-29 19:11:58 +000029473forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029474 ;
29475 return 0;
29476}
29477_ACEOF
29478rm -f conftest.$ac_objext
29479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029480 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029482 grep -v '^ *+' conftest.er1 >conftest.err
29483 rm -f conftest.er1
29484 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029487 { ac_try='test -z "$ac_cxx_werror_flag"
29488 || test ! -s conftest.err'
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
29500 ac_cv_cxx_have_fwd_iterator=yes
29501else
29502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029503sed 's/^/| /' conftest.$ac_ext >&5
29504
John Criswell7a73b802003-06-30 21:59:07 +000029505ac_cv_cxx_have_fwd_iterator=no
29506fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029508 ac_ext=c
29509ac_cpp='$CPP $CPPFLAGS'
29510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29512ac_compiler_gnu=$ac_cv_c_compiler_gnu
29513
29514
29515fi
29516echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29517echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029518if test "$ac_cv_cxx_have_fwd_iterator" = yes
29519then
John Criswell40468462004-09-24 21:19:06 +000029520
29521cat >>confdefs.h <<\_ACEOF
29522#define HAVE_FWD_ITERATOR 1
29523_ACEOF
29524
29525else
29526
29527cat >>confdefs.h <<\_ACEOF
29528#define HAVE_FWD_ITERATOR 0
29529_ACEOF
29530
John Criswell7a73b802003-06-30 21:59:07 +000029531fi
29532
29533
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029534echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29535echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29536if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29537 echo $ECHO_N "(cached) $ECHO_C" >&6
29538else
29539 ac_ext=cc
29540ac_cpp='$CXXCPP $CPPFLAGS'
29541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29544
Reid Spencerabec8f92004-10-27 23:03:44 +000029545 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029546/* confdefs.h. */
29547_ACEOF
29548cat confdefs.h >>conftest.$ac_ext
29549cat >>conftest.$ac_ext <<_ACEOF
29550/* end confdefs.h. */
29551#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029552int
29553main ()
29554{
29555float f; isnan(f);
29556 ;
29557 return 0;
29558}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029559_ACEOF
29560rm -f conftest.$ac_objext
29561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029562 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029569 { ac_try='test -z "$ac_cxx_werror_flag"
29570 || test ! -s conftest.err'
29571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572 (eval $ac_try) 2>&5
29573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; } &&
29576 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29579 ac_status=$?
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29582 ac_cv_func_isnan_in_math_h=yes
29583else
29584 echo "$as_me: failed program was:" >&5
29585sed 's/^/| /' conftest.$ac_ext >&5
29586
29587ac_cv_func_isnan_in_math_h=no
29588fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029590 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029591ac_cpp='$CPP $CPPFLAGS'
29592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594ac_compiler_gnu=$ac_cv_c_compiler_gnu
29595
29596fi
29597echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29598echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029599
29600
29601if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029602
29603cat >>confdefs.h <<\_ACEOF
29604#define HAVE_ISNAN_IN_MATH_H 1
29605_ACEOF
29606
Reid Spencerabec8f92004-10-27 23:03:44 +000029607fi
29608
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029609echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29610echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29611if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29612 echo $ECHO_N "(cached) $ECHO_C" >&6
29613else
29614 ac_ext=cc
29615ac_cpp='$CXXCPP $CPPFLAGS'
29616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29619
Reid Spencerabec8f92004-10-27 23:03:44 +000029620 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029621/* confdefs.h. */
29622_ACEOF
29623cat confdefs.h >>conftest.$ac_ext
29624cat >>conftest.$ac_ext <<_ACEOF
29625/* end confdefs.h. */
29626#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029627int
29628main ()
29629{
29630float f; isnan(f);
29631 ;
29632 return 0;
29633}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029634_ACEOF
29635rm -f conftest.$ac_objext
29636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029637 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029638 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029639 grep -v '^ *+' conftest.er1 >conftest.err
29640 rm -f conftest.er1
29641 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029644 { ac_try='test -z "$ac_cxx_werror_flag"
29645 || test ! -s conftest.err'
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29648 ac_status=$?
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; } &&
29651 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; }; then
29657 ac_cv_func_isnan_in_cmath=yes
29658else
29659 echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
29662ac_cv_func_isnan_in_cmath=no
29663fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029665 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029666ac_cpp='$CPP $CPPFLAGS'
29667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29669ac_compiler_gnu=$ac_cv_c_compiler_gnu
29670
29671fi
29672echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29673echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029674
29675if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029676
29677cat >>confdefs.h <<\_ACEOF
29678#define HAVE_ISNAN_IN_CMATH 1
29679_ACEOF
29680
Reid Spencerabec8f92004-10-27 23:03:44 +000029681fi
29682
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029683echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29684echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29685if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29686 echo $ECHO_N "(cached) $ECHO_C" >&6
29687else
29688 ac_ext=cc
29689ac_cpp='$CXXCPP $CPPFLAGS'
29690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29693
Reid Spencerabec8f92004-10-27 23:03:44 +000029694 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029695/* confdefs.h. */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h. */
29700#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029701int
29702main ()
29703{
29704float f; std::isnan(f);
29705 ;
29706 return 0;
29707}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029708_ACEOF
29709rm -f conftest.$ac_objext
29710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029711 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029713 grep -v '^ *+' conftest.er1 >conftest.err
29714 rm -f conftest.er1
29715 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029718 { ac_try='test -z "$ac_cxx_werror_flag"
29719 || test ! -s conftest.err'
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727 (eval $ac_try) 2>&5
29728 ac_status=$?
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); }; }; then
29731 ac_cv_func_std_isnan_in_cmath=yes
29732else
29733 echo "$as_me: failed program was:" >&5
29734sed 's/^/| /' conftest.$ac_ext >&5
29735
29736ac_cv_func_std_isnan_in_cmath=no
29737fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029739 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029740ac_cpp='$CPP $CPPFLAGS'
29741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29743ac_compiler_gnu=$ac_cv_c_compiler_gnu
29744
29745fi
29746echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29747echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029748
29749if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029750
29751cat >>confdefs.h <<\_ACEOF
29752#define HAVE_STD_ISNAN_IN_CMATH 1
29753_ACEOF
29754
Reid Spencerabec8f92004-10-27 23:03:44 +000029755fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029756
29757
Brian Gaeke52a551d2004-07-21 03:14:12 +000029758echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29759echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29760if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29761 echo $ECHO_N "(cached) $ECHO_C" >&6
29762else
29763 ac_ext=cc
29764ac_cpp='$CXXCPP $CPPFLAGS'
29765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29768
Reid Spencerabec8f92004-10-27 23:03:44 +000029769 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029770/* confdefs.h. */
29771_ACEOF
29772cat confdefs.h >>conftest.$ac_ext
29773cat >>conftest.$ac_ext <<_ACEOF
29774/* end confdefs.h. */
29775#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029776int
29777main ()
29778{
29779float f; isinf(f);
29780 ;
29781 return 0;
29782}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029783_ACEOF
29784rm -f conftest.$ac_objext
29785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029786 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029788 grep -v '^ *+' conftest.er1 >conftest.err
29789 rm -f conftest.er1
29790 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029793 { ac_try='test -z "$ac_cxx_werror_flag"
29794 || test ! -s conftest.err'
29795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796 (eval $ac_try) 2>&5
29797 ac_status=$?
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; } &&
29800 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29802 (eval $ac_try) 2>&5
29803 ac_status=$?
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); }; }; then
29806 ac_cv_func_isinf_in_math_h=yes
29807else
29808 echo "$as_me: failed program was:" >&5
29809sed 's/^/| /' conftest.$ac_ext >&5
29810
29811ac_cv_func_isinf_in_math_h=no
29812fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029814 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029815ac_cpp='$CPP $CPPFLAGS'
29816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29818ac_compiler_gnu=$ac_cv_c_compiler_gnu
29819
29820fi
29821echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29822echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029823
29824if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029825
29826cat >>confdefs.h <<\_ACEOF
29827#define HAVE_ISINF_IN_MATH_H 1
29828_ACEOF
29829
Reid Spencerabec8f92004-10-27 23:03:44 +000029830fi
29831
Brian Gaeke52a551d2004-07-21 03:14:12 +000029832echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29833echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29834if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29836else
29837 ac_ext=cc
29838ac_cpp='$CXXCPP $CPPFLAGS'
29839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29842
Reid Spencerabec8f92004-10-27 23:03:44 +000029843 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029844/* confdefs.h. */
29845_ACEOF
29846cat confdefs.h >>conftest.$ac_ext
29847cat >>conftest.$ac_ext <<_ACEOF
29848/* end confdefs.h. */
29849#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029850int
29851main ()
29852{
29853float f; isinf(f);
29854 ;
29855 return 0;
29856}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029857_ACEOF
29858rm -f conftest.$ac_objext
29859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029860 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029861 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029862 grep -v '^ *+' conftest.er1 >conftest.err
29863 rm -f conftest.er1
29864 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029867 { ac_try='test -z "$ac_cxx_werror_flag"
29868 || test ! -s conftest.err'
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29871 ac_status=$?
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29877 ac_status=$?
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29880 ac_cv_func_isinf_in_cmath=yes
29881else
29882 echo "$as_me: failed program was:" >&5
29883sed 's/^/| /' conftest.$ac_ext >&5
29884
29885ac_cv_func_isinf_in_cmath=no
29886fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029888 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029889ac_cpp='$CPP $CPPFLAGS'
29890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29892ac_compiler_gnu=$ac_cv_c_compiler_gnu
29893
29894fi
29895echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29896echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029897
29898if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029899
29900cat >>confdefs.h <<\_ACEOF
29901#define HAVE_ISINF_IN_CMATH 1
29902_ACEOF
29903
Reid Spencerabec8f92004-10-27 23:03:44 +000029904fi
29905
Brian Gaeke52a551d2004-07-21 03:14:12 +000029906echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29907echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29908if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29909 echo $ECHO_N "(cached) $ECHO_C" >&6
29910else
29911 ac_ext=cc
29912ac_cpp='$CXXCPP $CPPFLAGS'
29913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29916
Reid Spencerabec8f92004-10-27 23:03:44 +000029917 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029918/* confdefs.h. */
29919_ACEOF
29920cat confdefs.h >>conftest.$ac_ext
29921cat >>conftest.$ac_ext <<_ACEOF
29922/* end confdefs.h. */
29923#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029924int
29925main ()
29926{
29927float f; std::isinf(f)}
29928 ;
29929 return 0;
29930}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029931_ACEOF
29932rm -f conftest.$ac_objext
29933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029934 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029935 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029936 grep -v '^ *+' conftest.er1 >conftest.err
29937 rm -f conftest.er1
29938 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029941 { ac_try='test -z "$ac_cxx_werror_flag"
29942 || test ! -s conftest.err'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29945 ac_status=$?
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; } &&
29948 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950 (eval $ac_try) 2>&5
29951 ac_status=$?
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
29954 ac_cv_func_std_isinf_in_cmath=yes
29955else
29956 echo "$as_me: failed program was:" >&5
29957sed 's/^/| /' conftest.$ac_ext >&5
29958
29959ac_cv_func_std_isinf_in_cmath=no
29960fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029962 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029963ac_cpp='$CPP $CPPFLAGS'
29964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29966ac_compiler_gnu=$ac_cv_c_compiler_gnu
29967
29968fi
29969echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29970echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029971
29972if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029973
29974cat >>confdefs.h <<\_ACEOF
29975#define HAVE_STD_ISINF_IN_CMATH 1
29976_ACEOF
29977
Reid Spencerabec8f92004-10-27 23:03:44 +000029978fi
29979
Brian Gaeked59a6472004-07-21 03:33:58 +000029980echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29981echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29982if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29983 echo $ECHO_N "(cached) $ECHO_C" >&6
29984else
29985 ac_ext=cc
29986ac_cpp='$CXXCPP $CPPFLAGS'
29987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29990
Reid Spencerabec8f92004-10-27 23:03:44 +000029991 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029992/* confdefs.h. */
29993_ACEOF
29994cat confdefs.h >>conftest.$ac_ext
29995cat >>conftest.$ac_ext <<_ACEOF
29996/* end confdefs.h. */
29997#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029998int
29999main ()
30000{
30001float f; finite(f);
30002 ;
30003 return 0;
30004}
Brian Gaeked59a6472004-07-21 03:33:58 +000030005_ACEOF
30006rm -f conftest.$ac_objext
30007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030008 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000030009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030010 grep -v '^ *+' conftest.er1 >conftest.err
30011 rm -f conftest.er1
30012 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030015 { ac_try='test -z "$ac_cxx_werror_flag"
30016 || test ! -s conftest.err'
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30019 ac_status=$?
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; } &&
30022 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024 (eval $ac_try) 2>&5
30025 ac_status=$?
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; }; then
30028 ac_cv_func_finite_in_ieeefp_h=yes
30029else
30030 echo "$as_me: failed program was:" >&5
30031sed 's/^/| /' conftest.$ac_ext >&5
30032
30033ac_cv_func_finite_in_ieeefp_h=no
30034fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030036 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030037ac_cpp='$CPP $CPPFLAGS'
30038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30040ac_compiler_gnu=$ac_cv_c_compiler_gnu
30041
30042fi
30043echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30044echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030045
Brian Gaeke6802b552004-10-28 05:06:45 +000030046if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030047
30048cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030049#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030050_ACEOF
30051
Reid Spencerabec8f92004-10-27 23:03:44 +000030052fi
30053
30054
30055
John Criswell7a73b802003-06-30 21:59:07 +000030056
30057
30058for ac_header in stdlib.h unistd.h
30059do
30060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30061if eval "test \"\${$as_ac_Header+set}\" = set"; then
30062 echo "$as_me:$LINENO: checking for $ac_header" >&5
30063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30064if eval "test \"\${$as_ac_Header+set}\" = set"; then
30065 echo $ECHO_N "(cached) $ECHO_C" >&6
30066fi
30067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30069else
30070 # Is the header compilable?
30071echo "$as_me:$LINENO: checking $ac_header usability" >&5
30072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30073cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030074/* confdefs.h. */
30075_ACEOF
30076cat confdefs.h >>conftest.$ac_ext
30077cat >>conftest.$ac_ext <<_ACEOF
30078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030079$ac_includes_default
30080#include <$ac_header>
30081_ACEOF
30082rm -f conftest.$ac_objext
30083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030084 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030085 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030086 grep -v '^ *+' conftest.er1 >conftest.err
30087 rm -f conftest.er1
30088 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030091 { ac_try='test -z "$ac_c_werror_flag"
30092 || test ! -s conftest.err'
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30095 ac_status=$?
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; } &&
30098 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100 (eval $ac_try) 2>&5
30101 ac_status=$?
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; }; then
30104 ac_header_compiler=yes
30105else
30106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030107sed 's/^/| /' conftest.$ac_ext >&5
30108
John Criswell7a73b802003-06-30 21:59:07 +000030109ac_header_compiler=no
30110fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30113echo "${ECHO_T}$ac_header_compiler" >&6
30114
30115# Is the header present?
30116echo "$as_me:$LINENO: checking $ac_header presence" >&5
30117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30118cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030119/* confdefs.h. */
30120_ACEOF
30121cat confdefs.h >>conftest.$ac_ext
30122cat >>conftest.$ac_ext <<_ACEOF
30123/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030124#include <$ac_header>
30125_ACEOF
30126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30128 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030129 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030130 rm -f conftest.er1
30131 cat conftest.err >&5
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } >/dev/null; then
30134 if test -s conftest.err; then
30135 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030137 else
30138 ac_cpp_err=
30139 fi
30140else
30141 ac_cpp_err=yes
30142fi
30143if test -z "$ac_cpp_err"; then
30144 ac_header_preproc=yes
30145else
30146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030147sed 's/^/| /' conftest.$ac_ext >&5
30148
John Criswell7a73b802003-06-30 21:59:07 +000030149 ac_header_preproc=no
30150fi
30151rm -f conftest.err conftest.$ac_ext
30152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30153echo "${ECHO_T}$ac_header_preproc" >&6
30154
30155# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30157 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30162 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030163 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030164 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030177 (
30178 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030179## ----------------------------------- ##
30180## Report this to llvmbugs@cs.uiuc.edu ##
30181## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030182_ASBOX
30183 ) |
30184 sed "s/^/$as_me: WARNING: /" >&2
30185 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030186esac
30187echo "$as_me:$LINENO: checking for $ac_header" >&5
30188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30189if eval "test \"\${$as_ac_Header+set}\" = set"; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30191else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030192 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030193fi
30194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30196
30197fi
30198if test `eval echo '${'$as_ac_Header'}'` = yes; then
30199 cat >>confdefs.h <<_ACEOF
30200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30201_ACEOF
30202
30203fi
30204
30205done
30206
30207
30208for ac_func in getpagesize
30209do
30210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30211echo "$as_me:$LINENO: checking for $ac_func" >&5
30212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30213if eval "test \"\${$as_ac_var+set}\" = set"; then
30214 echo $ECHO_N "(cached) $ECHO_C" >&6
30215else
30216 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030217/* confdefs.h. */
30218_ACEOF
30219cat confdefs.h >>conftest.$ac_ext
30220cat >>conftest.$ac_ext <<_ACEOF
30221/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030222/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30224#define $ac_func innocuous_$ac_func
30225
John Criswell7a73b802003-06-30 21:59:07 +000030226/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030227 which can conflict with char $ac_func (); below.
30228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30229 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030230
John Criswell0c38eaf2003-09-10 15:17:25 +000030231#ifdef __STDC__
30232# include <limits.h>
30233#else
30234# include <assert.h>
30235#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030236
30237#undef $ac_func
30238
John Criswell7a73b802003-06-30 21:59:07 +000030239/* Override any gcc2 internal prototype to avoid an error. */
30240#ifdef __cplusplus
30241extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030242{
John Criswell7a73b802003-06-30 21:59:07 +000030243#endif
30244/* We use char because int might match the return type of a gcc2
30245 builtin and then its argument prototype would still apply. */
30246char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030247/* The GNU C library defines this for functions which it implements
30248 to always fail with ENOSYS. Some functions are actually named
30249 something starting with __ and the normal name is an alias. */
30250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30251choke me
30252#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030253char (*f) () = $ac_func;
30254#endif
30255#ifdef __cplusplus
30256}
John Criswell7a73b802003-06-30 21:59:07 +000030257#endif
30258
John Criswell0c38eaf2003-09-10 15:17:25 +000030259int
30260main ()
30261{
30262return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030263 ;
30264 return 0;
30265}
30266_ACEOF
30267rm -f conftest.$ac_objext conftest$ac_exeext
30268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030269 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030271 grep -v '^ *+' conftest.er1 >conftest.err
30272 rm -f conftest.er1
30273 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030276 { ac_try='test -z "$ac_c_werror_flag"
30277 || test ! -s conftest.err'
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30280 ac_status=$?
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30286 ac_status=$?
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
30289 eval "$as_ac_var=yes"
30290else
30291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030292sed 's/^/| /' conftest.$ac_ext >&5
30293
John Criswell7a73b802003-06-30 21:59:07 +000030294eval "$as_ac_var=no"
30295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030296rm -f conftest.err conftest.$ac_objext \
30297 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030298fi
30299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30300echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30301if test `eval echo '${'$as_ac_var'}'` = yes; then
30302 cat >>confdefs.h <<_ACEOF
30303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30304_ACEOF
30305
30306fi
30307done
30308
30309echo "$as_me:$LINENO: checking for working mmap" >&5
30310echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30311if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30313else
30314 if test "$cross_compiling" = yes; then
30315 ac_cv_func_mmap_fixed_mapped=no
30316else
30317 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030318/* confdefs.h. */
30319_ACEOF
30320cat confdefs.h >>conftest.$ac_ext
30321cat >>conftest.$ac_ext <<_ACEOF
30322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030323$ac_includes_default
30324/* malloc might have been renamed as rpl_malloc. */
30325#undef malloc
30326
30327/* Thanks to Mike Haertel and Jim Avera for this test.
30328 Here is a matrix of mmap possibilities:
30329 mmap private not fixed
30330 mmap private fixed at somewhere currently unmapped
30331 mmap private fixed at somewhere already mapped
30332 mmap shared not fixed
30333 mmap shared fixed at somewhere currently unmapped
30334 mmap shared fixed at somewhere already mapped
30335 For private mappings, we should verify that changes cannot be read()
30336 back from the file, nor mmap's back from the file at a different
30337 address. (There have been systems where private was not correctly
30338 implemented like the infamous i386 svr4.0, and systems where the
30339 VM page cache was not coherent with the file system buffer cache
30340 like early versions of FreeBSD and possibly contemporary NetBSD.)
30341 For shared mappings, we should conversely verify that changes get
30342 propagated back to all the places they're supposed to be.
30343
30344 Grep wants private fixed already mapped.
30345 The main things grep needs to know about mmap are:
30346 * does it exist and is it safe to write into the mmap'd area
30347 * how to use it (BSD variants) */
30348
30349#include <fcntl.h>
30350#include <sys/mman.h>
30351
30352#if !STDC_HEADERS && !HAVE_STDLIB_H
30353char *malloc ();
30354#endif
30355
30356/* This mess was copied from the GNU getpagesize.h. */
30357#if !HAVE_GETPAGESIZE
30358/* Assume that all systems that can run configure have sys/param.h. */
30359# if !HAVE_SYS_PARAM_H
30360# define HAVE_SYS_PARAM_H 1
30361# endif
30362
30363# ifdef _SC_PAGESIZE
30364# define getpagesize() sysconf(_SC_PAGESIZE)
30365# else /* no _SC_PAGESIZE */
30366# if HAVE_SYS_PARAM_H
30367# include <sys/param.h>
30368# ifdef EXEC_PAGESIZE
30369# define getpagesize() EXEC_PAGESIZE
30370# else /* no EXEC_PAGESIZE */
30371# ifdef NBPG
30372# define getpagesize() NBPG * CLSIZE
30373# ifndef CLSIZE
30374# define CLSIZE 1
30375# endif /* no CLSIZE */
30376# else /* no NBPG */
30377# ifdef NBPC
30378# define getpagesize() NBPC
30379# else /* no NBPC */
30380# ifdef PAGESIZE
30381# define getpagesize() PAGESIZE
30382# endif /* PAGESIZE */
30383# endif /* no NBPC */
30384# endif /* no NBPG */
30385# endif /* no EXEC_PAGESIZE */
30386# else /* no HAVE_SYS_PARAM_H */
30387# define getpagesize() 8192 /* punt totally */
30388# endif /* no HAVE_SYS_PARAM_H */
30389# endif /* no _SC_PAGESIZE */
30390
30391#endif /* no HAVE_GETPAGESIZE */
30392
30393int
30394main ()
30395{
30396 char *data, *data2, *data3;
30397 int i, pagesize;
30398 int fd;
30399
30400 pagesize = getpagesize ();
30401
30402 /* First, make a file with some known garbage in it. */
30403 data = (char *) malloc (pagesize);
30404 if (!data)
30405 exit (1);
30406 for (i = 0; i < pagesize; ++i)
30407 *(data + i) = rand ();
30408 umask (0);
30409 fd = creat ("conftest.mmap", 0600);
30410 if (fd < 0)
30411 exit (1);
30412 if (write (fd, data, pagesize) != pagesize)
30413 exit (1);
30414 close (fd);
30415
30416 /* Next, try to mmap the file at a fixed address which already has
30417 something else allocated at it. If we can, also make sure that
30418 we see the same garbage. */
30419 fd = open ("conftest.mmap", O_RDWR);
30420 if (fd < 0)
30421 exit (1);
30422 data2 = (char *) malloc (2 * pagesize);
30423 if (!data2)
30424 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030425 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030426 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030427 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030428 exit (1);
30429 for (i = 0; i < pagesize; ++i)
30430 if (*(data + i) != *(data2 + i))
30431 exit (1);
30432
30433 /* Finally, make sure that changes to the mapped area do not
30434 percolate back to the file as seen by read(). (This is a bug on
30435 some variants of i386 svr4.0.) */
30436 for (i = 0; i < pagesize; ++i)
30437 *(data2 + i) = *(data2 + i) + 1;
30438 data3 = (char *) malloc (pagesize);
30439 if (!data3)
30440 exit (1);
30441 if (read (fd, data3, pagesize) != pagesize)
30442 exit (1);
30443 for (i = 0; i < pagesize; ++i)
30444 if (*(data + i) != *(data3 + i))
30445 exit (1);
30446 close (fd);
30447 exit (0);
30448}
30449_ACEOF
30450rm -f conftest$ac_exeext
30451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30452 (eval $ac_link) 2>&5
30453 ac_status=$?
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457 (eval $ac_try) 2>&5
30458 ac_status=$?
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
30461 ac_cv_func_mmap_fixed_mapped=yes
30462else
30463 echo "$as_me: program exited with status $ac_status" >&5
30464echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030465sed 's/^/| /' conftest.$ac_ext >&5
30466
John Criswell7a73b802003-06-30 21:59:07 +000030467( exit $ac_status )
30468ac_cv_func_mmap_fixed_mapped=no
30469fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030470rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030471fi
30472fi
30473echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30474echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30475if test $ac_cv_func_mmap_fixed_mapped = yes; then
30476
30477cat >>confdefs.h <<\_ACEOF
30478#define HAVE_MMAP 1
30479_ACEOF
30480
30481fi
30482rm -f conftest.mmap
30483
30484echo "$as_me:$LINENO: checking for mmap of files" >&5
30485echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30486if test "${ac_cv_func_mmap_file+set}" = set; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30488else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030489 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030490ac_cpp='$CPP $CPPFLAGS'
30491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30493ac_compiler_gnu=$ac_cv_c_compiler_gnu
30494
30495 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030496 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030497else
30498 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030499
Reid Spencer777ce172004-09-20 04:09:56 +000030500 /* confdefs.h. */
30501_ACEOF
30502cat confdefs.h >>conftest.$ac_ext
30503cat >>conftest.$ac_ext <<_ACEOF
30504/* end confdefs.h. */
30505
John Criswell7a73b802003-06-30 21:59:07 +000030506#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030507#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030508#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030509
30510int
30511main ()
30512{
John Criswell7a73b802003-06-30 21:59:07 +000030513
30514 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030515 fd = creat ("foo",0777);
30516 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30517 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030518 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030519 ;
30520 return 0;
30521}
John Criswell7a73b802003-06-30 21:59:07 +000030522_ACEOF
30523rm -f conftest$ac_exeext
30524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30525 (eval $ac_link) 2>&5
30526 ac_status=$?
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530 (eval $ac_try) 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; }; then
30534 ac_cv_func_mmap_file=yes
30535else
30536 echo "$as_me: program exited with status $ac_status" >&5
30537echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030538sed 's/^/| /' conftest.$ac_ext >&5
30539
John Criswell7a73b802003-06-30 21:59:07 +000030540( exit $ac_status )
30541ac_cv_func_mmap_file=no
30542fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030543rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030544fi
30545 ac_ext=c
30546ac_cpp='$CPP $CPPFLAGS'
30547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30549ac_compiler_gnu=$ac_cv_c_compiler_gnu
30550
30551
30552fi
30553echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30554echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30555if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030556
30557cat >>confdefs.h <<\_ACEOF
30558#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030559_ACEOF
30560
30561 MMAP_FILE=yes
30562
30563fi
30564
Reid Spencer7931a782004-12-27 06:15:02 +000030565echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30566echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30567if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30568 echo $ECHO_N "(cached) $ECHO_C" >&6
30569else
Reid Spencer582a23c2004-12-29 07:07:57 +000030570 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030571 ac_cv_need_dev_zero_for_mmap=yes
30572 else
30573 ac_cv_need_dev_zero_for_mmap=no
30574 fi
30575
30576fi
30577echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30578echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30579if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30580
30581cat >>confdefs.h <<\_ACEOF
30582#define NEED_DEV_ZERO_FOR_MMAP 1
30583_ACEOF
30584
30585fi
John Criswell7a73b802003-06-30 21:59:07 +000030586echo "$as_me:$LINENO: checking for mprotect" >&5
30587echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30588if test "${ac_cv_func_mprotect+set}" = set; then
30589 echo $ECHO_N "(cached) $ECHO_C" >&6
30590else
30591 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030592/* confdefs.h. */
30593_ACEOF
30594cat confdefs.h >>conftest.$ac_ext
30595cat >>conftest.$ac_ext <<_ACEOF
30596/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030597/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30599#define mprotect innocuous_mprotect
30600
John Criswell7a73b802003-06-30 21:59:07 +000030601/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030602 which can conflict with char mprotect (); below.
30603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30604 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030605
John Criswell0c38eaf2003-09-10 15:17:25 +000030606#ifdef __STDC__
30607# include <limits.h>
30608#else
30609# include <assert.h>
30610#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030611
30612#undef mprotect
30613
John Criswell7a73b802003-06-30 21:59:07 +000030614/* Override any gcc2 internal prototype to avoid an error. */
30615#ifdef __cplusplus
30616extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030617{
John Criswell7a73b802003-06-30 21:59:07 +000030618#endif
30619/* We use char because int might match the return type of a gcc2
30620 builtin and then its argument prototype would still apply. */
30621char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030622/* The GNU C library defines this for functions which it implements
30623 to always fail with ENOSYS. Some functions are actually named
30624 something starting with __ and the normal name is an alias. */
30625#if defined (__stub_mprotect) || defined (__stub___mprotect)
30626choke me
30627#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030628char (*f) () = mprotect;
30629#endif
30630#ifdef __cplusplus
30631}
John Criswell7a73b802003-06-30 21:59:07 +000030632#endif
30633
John Criswell0c38eaf2003-09-10 15:17:25 +000030634int
30635main ()
30636{
30637return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030638 ;
30639 return 0;
30640}
30641_ACEOF
30642rm -f conftest.$ac_objext conftest$ac_exeext
30643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030644 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030645 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030646 grep -v '^ *+' conftest.er1 >conftest.err
30647 rm -f conftest.er1
30648 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030651 { ac_try='test -z "$ac_c_werror_flag"
30652 || test ! -s conftest.err'
30653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654 (eval $ac_try) 2>&5
30655 ac_status=$?
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; } &&
30658 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30660 (eval $ac_try) 2>&5
30661 ac_status=$?
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); }; }; then
30664 ac_cv_func_mprotect=yes
30665else
30666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030667sed 's/^/| /' conftest.$ac_ext >&5
30668
John Criswell7a73b802003-06-30 21:59:07 +000030669ac_cv_func_mprotect=no
30670fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030671rm -f conftest.err conftest.$ac_objext \
30672 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030673fi
30674echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30675echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30676if test $ac_cv_func_mprotect = yes; then
30677 :
30678else
30679 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30680echo "$as_me: error: Function mprotect() required but not found" >&2;}
30681 { (exit 1); exit 1; }; }
30682fi
30683
30684
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030685if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030686then
Reid Spencer582a23c2004-12-29 07:07:57 +000030687 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30688echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030689fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030690if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030691then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030692 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30693echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030694fi
John Criswell7a73b802003-06-30 21:59:07 +000030695
30696
Brian Gaekef3b24102003-11-16 18:38:14 +000030697echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30698echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030699if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30700 echo $ECHO_N "(cached) $ECHO_C" >&6
30701else
30702 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030703if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030704 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000030705 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030706 if test $? -eq 0 ; then
30707 llvm_cv_llvmgcc_sanity="yes"
30708 fi
30709 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030710fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030711fi
30712echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30713echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30714
30715if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030716 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030717 LLVMCC1=$llvmcc1path
30718
Reid Spencer502935f2004-12-22 05:56:56 +000030719 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030720 LLVMCC1PLUS=$llvmcc1pluspath
30721
Reid Spencer502935f2004-12-22 05:56:56 +000030722 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30723 LLVMGCCDIR=$llvmgccdir
30724
Reid Spencer7917d3a2006-04-06 22:00:36 +000030725 llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`
30726 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30727 LLVMGCC_VERSION=$llvmgccversion
30728
30729 LLVMGCC_MAJVERS=$llvmgccmajvers
30730
Brian Gaekef3b24102003-11-16 18:38:14 +000030731fi
30732
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030733SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030734
30735
Reid Spencere9de0912004-08-20 09:03:57 +000030736# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030737# information into substitutions that will end up in Makefile.config.in
30738# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030739eval LLVM_PREFIX="${prefix}";
30740eval LLVM_BINDIR="${prefix}/bin";
30741eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030742eval LLVM_DATADIR="${prefix}/share/llvm";
30743eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30744eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030745eval LLVM_INCLUDEDIR="${prefix}/include";
30746eval LLVM_INFODIR="${prefix}/info";
30747eval LLVM_MANDIR="${prefix}/man";
30748LLVM_CONFIGTIME=`date`
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030760# Place the various directores into the config.h file as #defines so that we
30761# can know about the installation paths within LLVM.
30762
Reid Spencere9de0912004-08-20 09:03:57 +000030763cat >>confdefs.h <<_ACEOF
30764#define LLVM_PREFIX "$LLVM_PREFIX"
30765_ACEOF
30766
30767
30768cat >>confdefs.h <<_ACEOF
30769#define LLVM_BINDIR "$LLVM_BINDIR"
30770_ACEOF
30771
30772
30773cat >>confdefs.h <<_ACEOF
30774#define LLVM_LIBDIR "$LLVM_LIBDIR"
30775_ACEOF
30776
30777
30778cat >>confdefs.h <<_ACEOF
30779#define LLVM_DATADIR "$LLVM_DATADIR"
30780_ACEOF
30781
30782
30783cat >>confdefs.h <<_ACEOF
30784#define LLVM_DATADIR "$LLVM_DOCSDIR"
30785_ACEOF
30786
30787
30788cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030789#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030790_ACEOF
30791
30792
30793cat >>confdefs.h <<_ACEOF
30794#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30795_ACEOF
30796
30797
30798cat >>confdefs.h <<_ACEOF
30799#define LLVM_INFODIR "$LLVM_INFODIR"
30800_ACEOF
30801
30802
30803cat >>confdefs.h <<_ACEOF
30804#define LLVM_MANDIR "$LLVM_MANDIR"
30805_ACEOF
30806
30807
30808cat >>confdefs.h <<_ACEOF
30809#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30810_ACEOF
30811
30812
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030813
30814 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30815
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030816 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30817
30818 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30819
30820 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30821
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030822 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30823
30824
30825 ac_config_files="$ac_config_files Makefile.config"
30826
30827
Reid Spencer1f319422004-11-29 04:56:35 +000030828 ac_config_files="$ac_config_files docs/doxygen.cfg"
30829
30830
Reid Spencerf2722ca2006-03-22 15:59:55 +000030831 ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30832
30833
Reid Spencerc0682832005-02-24 19:05:19 +000030834 ac_config_commands="$ac_config_commands setup"
30835
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030836 ac_config_commands="$ac_config_commands Makefile"
30837
30838
30839 ac_config_commands="$ac_config_commands Makefile.common"
30840
30841
30842 ac_config_commands="$ac_config_commands examples/Makefile"
30843
30844
30845 ac_config_commands="$ac_config_commands lib/Makefile"
30846
30847
30848 ac_config_commands="$ac_config_commands runtime/Makefile"
30849
30850
30851 ac_config_commands="$ac_config_commands test/Makefile"
30852
30853
30854 ac_config_commands="$ac_config_commands test/Makefile.tests"
30855
30856
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030857 ac_config_commands="$ac_config_commands tools/Makefile"
30858
30859
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030860 ac_config_commands="$ac_config_commands utils/Makefile"
30861
30862
30863 ac_config_commands="$ac_config_commands projects/Makefile"
30864
30865
30866
John Criswell7a73b802003-06-30 21:59:07 +000030867cat >confcache <<\_ACEOF
30868# This file is a shell script that caches the results of configure
30869# tests run on this system so they can be shared between configure
30870# scripts and configure runs, see configure's option --config-cache.
30871# It is not useful on other systems. If it contains results you don't
30872# want to keep, you may remove or edit it.
30873#
30874# config.status only pays attention to the cache file if you give it
30875# the --recheck option to rerun configure.
30876#
John Criswell0c38eaf2003-09-10 15:17:25 +000030877# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030878# loading this file, other *unset* `ac_cv_foo' will be assigned the
30879# following values.
30880
30881_ACEOF
30882
30883# The following way of writing the cache mishandles newlines in values,
30884# but we know of no workaround that is simple, portable, and efficient.
30885# So, don't put newlines in cache variables' values.
30886# Ultrix sh set writes to stderr and can't be redirected directly,
30887# and sets the high bit in the cache file unless we assign to the vars.
30888{
30889 (set) 2>&1 |
30890 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30891 *ac_space=\ *)
30892 # `set' does not quote correctly, so add quotes (double-quote
30893 # substitution turns \\\\ into \\, and sed turns \\ into \).
30894 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030895 "s/'/'\\\\''/g;
30896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030897 ;;
30898 *)
30899 # `set' quotes correctly as required by POSIX, so do not add quotes.
30900 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030901 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030902 ;;
30903 esac;
30904} |
30905 sed '
30906 t clear
30907 : clear
30908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30909 t end
30910 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30911 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030912if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030913 if test -w $cache_file; then
30914 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30915 cat confcache >$cache_file
30916 else
30917 echo "not updating unwritable cache $cache_file"
30918 fi
30919fi
30920rm -f confcache
30921
30922test "x$prefix" = xNONE && prefix=$ac_default_prefix
30923# Let make expand exec_prefix.
30924test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30925
30926# VPATH may cause trouble with some makes, so we remove $(srcdir),
30927# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30928# trailing colons and then remove the whole line if VPATH becomes empty
30929# (actually we leave an empty line to preserve line numbers).
30930if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030932s/:*\$(srcdir):*/:/;
30933s/:*\${srcdir}:*/:/;
30934s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030935s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030936s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030937s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030938}'
30939fi
30940
30941DEFS=-DHAVE_CONFIG_H
30942
John Criswell0c38eaf2003-09-10 15:17:25 +000030943ac_libobjs=
30944ac_ltlibobjs=
30945for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30946 # 1. Remove the extension, and $U if already installed.
30947 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030948 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030949 # 2. Add them.
30950 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30951 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30952done
30953LIBOBJS=$ac_libobjs
30954
30955LTLIBOBJS=$ac_ltlibobjs
30956
30957
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030958if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30959 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30960Usually this means the macro was only invoked conditionally." >&5
30961echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30962Usually this means the macro was only invoked conditionally." >&2;}
30963 { (exit 1); exit 1; }; }
30964fi
30965if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30966 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30967Usually this means the macro was only invoked conditionally." >&5
30968echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30969Usually this means the macro was only invoked conditionally." >&2;}
30970 { (exit 1); exit 1; }; }
30971fi
John Criswell7a73b802003-06-30 21:59:07 +000030972
30973: ${CONFIG_STATUS=./config.status}
30974ac_clean_files_save=$ac_clean_files
30975ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30976{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30977echo "$as_me: creating $CONFIG_STATUS" >&6;}
30978cat >$CONFIG_STATUS <<_ACEOF
30979#! $SHELL
30980# Generated by $as_me.
30981# Run this file to recreate the current configuration.
30982# Compiler output produced by configure, useful for debugging
30983# configure, is in config.log if it exists.
30984
30985debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030986ac_cs_recheck=false
30987ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030988SHELL=\${CONFIG_SHELL-$SHELL}
30989_ACEOF
30990
30991cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030992## --------------------- ##
30993## M4sh Initialization. ##
30994## --------------------- ##
30995
30996# Be Bourne compatible
30997if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30998 emulate sh
30999 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031000 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31001 # is contrary to our usage. Disable this feature.
31002 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000031003elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31004 set -o posix
31005fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031006DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000031007
John Criswell7a73b802003-06-30 21:59:07 +000031008# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031010 as_unset=unset
31011else
31012 as_unset=false
31013fi
31014
John Criswell0c38eaf2003-09-10 15:17:25 +000031015
31016# Work around bugs in pre-3.0 UWIN ksh.
31017$as_unset ENV MAIL MAILPATH
31018PS1='$ '
31019PS2='> '
31020PS4='+ '
31021
31022# NLS nuisances.
31023for as_var in \
31024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31026 LC_TELEPHONE LC_TIME
31027do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031028 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031029 eval $as_var=C; export $as_var
31030 else
31031 $as_unset $as_var
31032 fi
31033done
31034
31035# Required to use basename.
31036if expr a : '\(a\)' >/dev/null 2>&1; then
31037 as_expr=expr
31038else
31039 as_expr=false
31040fi
31041
31042if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31043 as_basename=basename
31044else
31045 as_basename=false
31046fi
John Criswell7a73b802003-06-30 21:59:07 +000031047
31048
31049# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031050as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031051$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31052 X"$0" : 'X\(//\)$' \| \
31053 X"$0" : 'X\(/\)$' \| \
31054 . : '\(.\)' 2>/dev/null ||
31055echo X/"$0" |
31056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31057 /^X\/\(\/\/\)$/{ s//\1/; q; }
31058 /^X\/\(\/\).*/{ s//\1/; q; }
31059 s/.*/./; q'`
31060
John Criswell0c38eaf2003-09-10 15:17:25 +000031061
John Criswell7a73b802003-06-30 21:59:07 +000031062# PATH needs CR, and LINENO needs CR and PATH.
31063# Avoid depending upon Character Ranges.
31064as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31065as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31066as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31067as_cr_digits='0123456789'
31068as_cr_alnum=$as_cr_Letters$as_cr_digits
31069
31070# The user is always right.
31071if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031072 echo "#! /bin/sh" >conf$$.sh
31073 echo "exit 0" >>conf$$.sh
31074 chmod +x conf$$.sh
31075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031076 PATH_SEPARATOR=';'
31077 else
31078 PATH_SEPARATOR=:
31079 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031080 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031081fi
31082
31083
31084 as_lineno_1=$LINENO
31085 as_lineno_2=$LINENO
31086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31087 test "x$as_lineno_1" != "x$as_lineno_2" &&
31088 test "x$as_lineno_3" = "x$as_lineno_2" || {
31089 # Find who we are. Look in the path if we contain no path at all
31090 # relative or not.
31091 case $0 in
31092 *[\\/]* ) as_myself=$0 ;;
31093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31094for as_dir in $PATH
31095do
31096 IFS=$as_save_IFS
31097 test -z "$as_dir" && as_dir=.
31098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31099done
31100
31101 ;;
31102 esac
31103 # We did not find ourselves, most probably we were run as `sh COMMAND'
31104 # in which case we are not to be found in the path.
31105 if test "x$as_myself" = x; then
31106 as_myself=$0
31107 fi
31108 if test ! -f "$as_myself"; then
31109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31110echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31111 { (exit 1); exit 1; }; }
31112 fi
31113 case $CONFIG_SHELL in
31114 '')
31115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31116for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31117do
31118 IFS=$as_save_IFS
31119 test -z "$as_dir" && as_dir=.
31120 for as_base in sh bash ksh sh5; do
31121 case $as_dir in
31122 /*)
31123 if ("$as_dir/$as_base" -c '
31124 as_lineno_1=$LINENO
31125 as_lineno_2=$LINENO
31126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31127 test "x$as_lineno_1" != "x$as_lineno_2" &&
31128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031129 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31130 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031131 CONFIG_SHELL=$as_dir/$as_base
31132 export CONFIG_SHELL
31133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31134 fi;;
31135 esac
31136 done
31137done
31138;;
31139 esac
31140
31141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31142 # uniformly replaced by the line number. The first 'sed' inserts a
31143 # line-number line before each line; the second 'sed' does the real
31144 # work. The second script uses 'N' to pair each line-number line
31145 # with the numbered line, and appends trailing '-' during
31146 # substitution so that $LINENO is not a special case at line end.
31147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31149 sed '=' <$as_myself |
31150 sed '
31151 N
31152 s,$,-,
31153 : loop
31154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31155 t loop
31156 s,-$,,
31157 s,^['$as_cr_digits']*\n,,
31158 ' >$as_me.lineno &&
31159 chmod +x $as_me.lineno ||
31160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31161echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31162 { (exit 1); exit 1; }; }
31163
31164 # Don't try to exec as it changes $[0], causing all sort of problems
31165 # (the dirname of $[0] is not the place where we might find the
31166 # original and so on. Autoconf is especially sensible to this).
31167 . ./$as_me.lineno
31168 # Exit status is that of the last command.
31169 exit
31170}
31171
31172
31173case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31174 *c*,-n*) ECHO_N= ECHO_C='
31175' ECHO_T=' ' ;;
31176 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31177 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31178esac
31179
31180if expr a : '\(a\)' >/dev/null 2>&1; then
31181 as_expr=expr
31182else
31183 as_expr=false
31184fi
31185
31186rm -f conf$$ conf$$.exe conf$$.file
31187echo >conf$$.file
31188if ln -s conf$$.file conf$$ 2>/dev/null; then
31189 # We could just check for DJGPP; but this test a) works b) is more generic
31190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31191 if test -f conf$$.exe; then
31192 # Don't use ln at all; we don't have any links
31193 as_ln_s='cp -p'
31194 else
31195 as_ln_s='ln -s'
31196 fi
31197elif ln conf$$.file conf$$ 2>/dev/null; then
31198 as_ln_s=ln
31199else
31200 as_ln_s='cp -p'
31201fi
31202rm -f conf$$ conf$$.exe conf$$.file
31203
John Criswell0c38eaf2003-09-10 15:17:25 +000031204if mkdir -p . 2>/dev/null; then
31205 as_mkdir_p=:
31206else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031207 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031208 as_mkdir_p=false
31209fi
31210
John Criswell7a73b802003-06-30 21:59:07 +000031211as_executable_p="test -f"
31212
31213# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031214as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031215
31216# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031217as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031218
31219
31220# IFS
31221# We need space, tab and new line, in precisely that order.
31222as_nl='
31223'
31224IFS=" $as_nl"
31225
31226# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031227$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031228
31229exec 6>&1
31230
31231# Open the log real soon, to keep \$[0] and so on meaningful, and to
31232# report actual input values of CONFIG_FILES etc. instead of their
31233# values after options handling. Logging --version etc. is OK.
31234exec 5>>config.log
31235{
31236 echo
31237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31238## Running $as_me. ##
31239_ASBOX
31240} >&5
31241cat >&5 <<_CSEOF
31242
Reid Spencer57d37252006-04-14 03:01:27 +000031243This file was extended by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031244generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031245
31246 CONFIG_FILES = $CONFIG_FILES
31247 CONFIG_HEADERS = $CONFIG_HEADERS
31248 CONFIG_LINKS = $CONFIG_LINKS
31249 CONFIG_COMMANDS = $CONFIG_COMMANDS
31250 $ $0 $@
31251
31252_CSEOF
31253echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31254echo >&5
31255_ACEOF
31256
31257# Files that config.status was made for.
31258if test -n "$ac_config_files"; then
31259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31260fi
31261
31262if test -n "$ac_config_headers"; then
31263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31264fi
31265
31266if test -n "$ac_config_links"; then
31267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31268fi
31269
31270if test -n "$ac_config_commands"; then
31271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31272fi
31273
31274cat >>$CONFIG_STATUS <<\_ACEOF
31275
31276ac_cs_usage="\
31277\`$as_me' instantiates files from templates according to the
31278current configuration.
31279
31280Usage: $0 [OPTIONS] [FILE]...
31281
31282 -h, --help print this help, then exit
31283 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031284 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031285 -d, --debug don't remove temporary files
31286 --recheck update $as_me by reconfiguring in the same conditions
31287 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031288 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031289 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031290 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031291
31292Configuration files:
31293$config_files
31294
31295Configuration headers:
31296$config_headers
31297
John Criswellc764fbc2003-09-06 15:17:13 +000031298Configuration commands:
31299$config_commands
31300
John Criswell7a73b802003-06-30 21:59:07 +000031301Report bugs to <bug-autoconf@gnu.org>."
31302_ACEOF
31303
31304cat >>$CONFIG_STATUS <<_ACEOF
31305ac_cs_version="\\
Reid Spencer57d37252006-04-14 03:01:27 +000031306llvm config.status 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031307configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031308 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31309
Reid Spencer2706f8c2004-09-19 23:53:36 +000031310Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031311This config.status script is free software; the Free Software Foundation
31312gives unlimited permission to copy, distribute and modify it."
31313srcdir=$srcdir
31314INSTALL="$INSTALL"
31315_ACEOF
31316
31317cat >>$CONFIG_STATUS <<\_ACEOF
31318# If no file are specified by the user, then we need to provide default
31319# value. By we need to know if files were specified by the user.
31320ac_need_defaults=:
31321while test $# != 0
31322do
31323 case $1 in
31324 --*=*)
31325 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31326 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031327 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031328 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031329 -*)
31330 ac_option=$1
31331 ac_optarg=$2
31332 ac_shift=shift
31333 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031334 *) # This is not an option, so the user has probably given explicit
31335 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031336 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031337 ac_need_defaults=false;;
31338 esac
31339
John Criswell0c38eaf2003-09-10 15:17:25 +000031340 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031341 # Handling of the options.
31342_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031343cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31345 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031346 --version | --vers* | -V )
31347 echo "$ac_cs_version"; exit 0 ;;
31348 --he | --h)
31349 # Conflict between --help and --header
31350 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31351Try \`$0 --help' for more information." >&5
31352echo "$as_me: error: ambiguous option: $1
31353Try \`$0 --help' for more information." >&2;}
31354 { (exit 1); exit 1; }; };;
31355 --help | --hel | -h )
31356 echo "$ac_cs_usage"; exit 0 ;;
31357 --debug | --d* | -d )
31358 debug=: ;;
31359 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031360 $ac_shift
31361 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031362 ac_need_defaults=false;;
31363 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031364 $ac_shift
31365 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031366 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31369 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031370
31371 # This is an error.
31372 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31373Try \`$0 --help' for more information." >&5
31374echo "$as_me: error: unrecognized option: $1
31375Try \`$0 --help' for more information." >&2;}
31376 { (exit 1); exit 1; }; } ;;
31377
31378 *) ac_config_targets="$ac_config_targets $1" ;;
31379
31380 esac
31381 shift
31382done
31383
John Criswell0c38eaf2003-09-10 15:17:25 +000031384ac_configure_extra_args=
31385
31386if $ac_cs_silent; then
31387 exec 6>/dev/null
31388 ac_configure_extra_args="$ac_configure_extra_args --silent"
31389fi
31390
31391_ACEOF
31392cat >>$CONFIG_STATUS <<_ACEOF
31393if \$ac_cs_recheck; then
31394 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31395 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31396fi
31397
John Criswell7a73b802003-06-30 21:59:07 +000031398_ACEOF
31399
John Criswellc764fbc2003-09-06 15:17:13 +000031400cat >>$CONFIG_STATUS <<_ACEOF
31401#
31402# INIT-COMMANDS section.
31403#
John Criswell7a73b802003-06-30 21:59:07 +000031404
Reid Spencerc0682832005-02-24 19:05:19 +000031405llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031406
31407_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031408
31409
31410
31411cat >>$CONFIG_STATUS <<\_ACEOF
31412for ac_config_target in $ac_config_targets
31413do
31414 case "$ac_config_target" in
31415 # Handling of arguments.
31416 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031417 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerf2722ca2006-03-22 15:59:55 +000031418 "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031419 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031420 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31421 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031422 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031423 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031424 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031425 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31426 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031427 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031428 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031429 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031430 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031431 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031432 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31433 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031434 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031435 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31436echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31437 { (exit 1); exit 1; }; };;
31438 esac
31439done
31440
31441# If the user did not use the arguments to specify the items to instantiate,
31442# then the envvar interface is used. Set only those that are not.
31443# We use the long form for the default assignment because of an extremely
31444# bizarre bug on SunOS 4.1.3.
31445if $ac_need_defaults; then
31446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031449fi
31450
John Criswell0c38eaf2003-09-10 15:17:25 +000031451# Have a temporary directory for convenience. Make it in the build tree
31452# simply because there is no reason to put it here, and in addition,
31453# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031454# Create a temporary directory, and hook for its removal unless debugging.
31455$debug ||
31456{
31457 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31458 trap '{ (exit 1); exit 1; }' 1 2 13 15
31459}
31460
31461# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031462
John Criswell7a73b802003-06-30 21:59:07 +000031463{
John Criswell0c38eaf2003-09-10 15:17:25 +000031464 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031465 test -n "$tmp" && test -d "$tmp"
31466} ||
31467{
John Criswell0c38eaf2003-09-10 15:17:25 +000031468 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031469 (umask 077 && mkdir $tmp)
31470} ||
31471{
John Criswell0c38eaf2003-09-10 15:17:25 +000031472 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031473 { (exit 1); exit 1; }
31474}
31475
31476_ACEOF
31477
31478cat >>$CONFIG_STATUS <<_ACEOF
31479
31480#
31481# CONFIG_FILES section.
31482#
31483
31484# No need to generate the scripts if there are no CONFIG_FILES.
31485# This happens for instance when ./config.status config.h
31486if test -n "\$CONFIG_FILES"; then
31487 # Protect against being on the right side of a sed subst in config.status.
31488 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31489 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31490s,@SHELL@,$SHELL,;t t
31491s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31492s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31493s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31494s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31495s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31496s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31497s,@exec_prefix@,$exec_prefix,;t t
31498s,@prefix@,$prefix,;t t
31499s,@program_transform_name@,$program_transform_name,;t t
31500s,@bindir@,$bindir,;t t
31501s,@sbindir@,$sbindir,;t t
31502s,@libexecdir@,$libexecdir,;t t
31503s,@datadir@,$datadir,;t t
31504s,@sysconfdir@,$sysconfdir,;t t
31505s,@sharedstatedir@,$sharedstatedir,;t t
31506s,@localstatedir@,$localstatedir,;t t
31507s,@libdir@,$libdir,;t t
31508s,@includedir@,$includedir,;t t
31509s,@oldincludedir@,$oldincludedir,;t t
31510s,@infodir@,$infodir,;t t
31511s,@mandir@,$mandir,;t t
31512s,@build_alias@,$build_alias,;t t
31513s,@host_alias@,$host_alias,;t t
31514s,@target_alias@,$target_alias,;t t
31515s,@DEFS@,$DEFS,;t t
31516s,@ECHO_C@,$ECHO_C,;t t
31517s,@ECHO_N@,$ECHO_N,;t t
31518s,@ECHO_T@,$ECHO_T,;t t
31519s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031520s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031521s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031522s,@build@,$build,;t t
31523s,@build_cpu@,$build_cpu,;t t
31524s,@build_vendor@,$build_vendor,;t t
31525s,@build_os@,$build_os,;t t
31526s,@host@,$host,;t t
31527s,@host_cpu@,$host_cpu,;t t
31528s,@host_vendor@,$host_vendor,;t t
31529s,@host_os@,$host_os,;t t
31530s,@target@,$target,;t t
31531s,@target_cpu@,$target_cpu,;t t
31532s,@target_vendor@,$target_vendor,;t t
31533s,@target_os@,$target_os,;t t
31534s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031535s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31536s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031537s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031538s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031539s,@CC@,$CC,;t t
31540s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031541s,@LDFLAGS@,$LDFLAGS,;t t
31542s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031543s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031544s,@EXEEXT@,$EXEEXT,;t t
31545s,@OBJEXT@,$OBJEXT,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000031546s,@CVSBUILD@,$CVSBUILD,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031547s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencerc28ccd82006-04-09 20:42:14 +000031548s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031549s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031550s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031551s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031552s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031553s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031554s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031555s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031556s,@CXX@,$CXX,;t t
31557s,@CXXFLAGS@,$CXXFLAGS,;t t
31558s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031559s,@LEX@,$LEX,;t t
31560s,@LEXLIB@,$LEXLIB,;t t
31561s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031562s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031563s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031564s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031565s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031566s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031567s,@CMP@,$CMP,;t t
31568s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031569s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031570s,@FIND@,$FIND,;t t
31571s,@GREP@,$GREP,;t t
31572s,@MKDIR@,$MKDIR,;t t
31573s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031574s,@RANLIB@,$RANLIB,;t t
31575s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031576s,@RM@,$RM,;t t
31577s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031578s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031579s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031580s,@GV@,$GV,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031581s,@PERL@,$PERL,;t t
31582s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031583s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31584s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31585s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031586s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031587s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031588s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031589s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031590s,@GROFF@,$GROFF,;t t
31591s,@GZIP@,$GZIP,;t t
31592s,@POD2HTML@,$POD2HTML,;t t
31593s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031594s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031595s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031596s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031597s,@EGREP@,$EGREP,;t t
31598s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31599s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31600s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31601s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31602s,@LIBADD_DL@,$LIBADD_DL,;t t
31603s,@ECHO@,$ECHO,;t t
31604s,@AR@,$AR,;t t
31605s,@ac_ct_AR@,$ac_ct_AR,;t t
31606s,@STRIP@,$STRIP,;t t
31607s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31608s,@CXXCPP@,$CXXCPP,;t t
31609s,@F77@,$F77,;t t
31610s,@FFLAGS@,$FFLAGS,;t t
31611s,@ac_ct_F77@,$ac_ct_F77,;t t
31612s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031613s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031614s,@LLVMGCC@,$LLVMGCC,;t t
31615s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031616s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031617s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031618s,@LLVMCC1@,$LLVMCC1,;t t
31619s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031620s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000031621s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31622s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031623s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031624s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31625s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31626s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31627s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31628s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31629s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31630s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31631s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31632s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31633s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031634s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031635s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031636CEOF
31637
31638_ACEOF
31639
31640 cat >>$CONFIG_STATUS <<\_ACEOF
31641 # Split the substitutions into bite-sized pieces for seds with
31642 # small command number limits, like on Digital OSF/1 and HP-UX.
31643 ac_max_sed_lines=48
31644 ac_sed_frag=1 # Number of current file.
31645 ac_beg=1 # First line for current file.
31646 ac_end=$ac_max_sed_lines # Line after last line for current file.
31647 ac_more_lines=:
31648 ac_sed_cmds=
31649 while $ac_more_lines; do
31650 if test $ac_beg -gt 1; then
31651 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31652 else
31653 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31654 fi
31655 if test ! -s $tmp/subs.frag; then
31656 ac_more_lines=false
31657 else
31658 # The purpose of the label and of the branching condition is to
31659 # speed up the sed processing (if there are no `@' at all, there
31660 # is no need to browse any of the substitutions).
31661 # These are the two extra sed commands mentioned above.
31662 (echo ':t
31663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31664 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031665 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031666 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031667 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031668 fi
31669 ac_sed_frag=`expr $ac_sed_frag + 1`
31670 ac_beg=$ac_end
31671 ac_end=`expr $ac_end + $ac_max_sed_lines`
31672 fi
31673 done
31674 if test -z "$ac_sed_cmds"; then
31675 ac_sed_cmds=cat
31676 fi
31677fi # test -n "$CONFIG_FILES"
31678
31679_ACEOF
31680cat >>$CONFIG_STATUS <<\_ACEOF
31681for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31683 case $ac_file in
31684 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031685 cat >$tmp/stdin
31686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031690 * ) ac_file_in=$ac_file.in ;;
31691 esac
31692
31693 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31695$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031696 X"$ac_file" : 'X\(//\)[^/]' \| \
31697 X"$ac_file" : 'X\(//\)$' \| \
31698 X"$ac_file" : 'X\(/\)' \| \
31699 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031700echo X"$ac_file" |
31701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31703 /^X\(\/\/\)$/{ s//\1/; q; }
31704 /^X\(\/\).*/{ s//\1/; q; }
31705 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031706 { if $as_mkdir_p; then
31707 mkdir -p "$ac_dir"
31708 else
31709 as_dir="$ac_dir"
31710 as_dirs=
31711 while test ! -d "$as_dir"; do
31712 as_dirs="$as_dir $as_dirs"
31713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31714$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031715 X"$as_dir" : 'X\(//\)[^/]' \| \
31716 X"$as_dir" : 'X\(//\)$' \| \
31717 X"$as_dir" : 'X\(/\)' \| \
31718 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031719echo X"$as_dir" |
31720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31722 /^X\(\/\/\)$/{ s//\1/; q; }
31723 /^X\(\/\).*/{ s//\1/; q; }
31724 s/.*/./; q'`
31725 done
31726 test ! -n "$as_dirs" || mkdir $as_dirs
31727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31728echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31729 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031730
31731 ac_builddir=.
31732
31733if test "$ac_dir" != .; then
31734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31735 # A "../" for each directory in $ac_dir_suffix.
31736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31737else
31738 ac_dir_suffix= ac_top_builddir=
31739fi
31740
31741case $srcdir in
31742 .) # No --srcdir option. We are building in place.
31743 ac_srcdir=.
31744 if test -z "$ac_top_builddir"; then
31745 ac_top_srcdir=.
31746 else
31747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31748 fi ;;
31749 [\\/]* | ?:[\\/]* ) # Absolute path.
31750 ac_srcdir=$srcdir$ac_dir_suffix;
31751 ac_top_srcdir=$srcdir ;;
31752 *) # Relative path.
31753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31755esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031756
31757# Do not use `cd foo && pwd` to compute absolute paths, because
31758# the directories may not exist.
31759case `pwd` in
31760.) ac_abs_builddir="$ac_dir";;
31761*)
31762 case "$ac_dir" in
31763 .) ac_abs_builddir=`pwd`;;
31764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31766 esac;;
31767esac
31768case $ac_abs_builddir in
31769.) ac_abs_top_builddir=${ac_top_builddir}.;;
31770*)
31771 case ${ac_top_builddir}. in
31772 .) ac_abs_top_builddir=$ac_abs_builddir;;
31773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31775 esac;;
31776esac
31777case $ac_abs_builddir in
31778.) ac_abs_srcdir=$ac_srcdir;;
31779*)
31780 case $ac_srcdir in
31781 .) ac_abs_srcdir=$ac_abs_builddir;;
31782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31784 esac;;
31785esac
31786case $ac_abs_builddir in
31787.) ac_abs_top_srcdir=$ac_top_srcdir;;
31788*)
31789 case $ac_top_srcdir in
31790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31793 esac;;
31794esac
John Criswell7a73b802003-06-30 21:59:07 +000031795
31796
31797 case $INSTALL in
31798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31799 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31800 esac
31801
31802 if test x"$ac_file" != x-; then
31803 { echo "$as_me:$LINENO: creating $ac_file" >&5
31804echo "$as_me: creating $ac_file" >&6;}
31805 rm -f "$ac_file"
31806 fi
31807 # Let's still pretend it is `configure' which instantiates (i.e., don't
31808 # use $as_me), people would be surprised to read:
31809 # /* config.h. Generated by config.status. */
31810 if test x"$ac_file" = x-; then
31811 configure_input=
31812 else
31813 configure_input="$ac_file. "
31814 fi
31815 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031816 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031817
31818 # First look for the input files in the build tree, otherwise in the
31819 # src tree.
31820 ac_file_inputs=`IFS=:
31821 for f in $ac_file_in; do
31822 case $f in
31823 -) echo $tmp/stdin ;;
31824 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031825 # Absolute (can't be DOS-style, as IFS=:)
31826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031827echo "$as_me: error: cannot find input file: $f" >&2;}
31828 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031829 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031830 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031831 if test -f "$f"; then
31832 # Build tree
31833 echo "$f"
31834 elif test -f "$srcdir/$f"; then
31835 # Source tree
31836 echo "$srcdir/$f"
31837 else
31838 # /dev/null tree
31839 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031840echo "$as_me: error: cannot find input file: $f" >&2;}
31841 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031842 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031843 esac
31844 done` || { (exit 1); exit 1; }
31845_ACEOF
31846cat >>$CONFIG_STATUS <<_ACEOF
31847 sed "$ac_vpsub
31848$extrasub
31849_ACEOF
31850cat >>$CONFIG_STATUS <<\_ACEOF
31851:t
31852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31853s,@configure_input@,$configure_input,;t t
31854s,@srcdir@,$ac_srcdir,;t t
31855s,@abs_srcdir@,$ac_abs_srcdir,;t t
31856s,@top_srcdir@,$ac_top_srcdir,;t t
31857s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31858s,@builddir@,$ac_builddir,;t t
31859s,@abs_builddir@,$ac_abs_builddir,;t t
31860s,@top_builddir@,$ac_top_builddir,;t t
31861s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31862s,@INSTALL@,$ac_INSTALL,;t t
31863" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31864 rm -f $tmp/stdin
31865 if test x"$ac_file" != x-; then
31866 mv $tmp/out $ac_file
31867 else
31868 cat $tmp/out
31869 rm -f $tmp/out
31870 fi
31871
31872done
31873_ACEOF
31874cat >>$CONFIG_STATUS <<\_ACEOF
31875
31876#
31877# CONFIG_HEADER section.
31878#
31879
31880# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31881# NAME is the cpp macro being defined and VALUE is the value it is being given.
31882#
31883# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031884ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31885ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031886ac_dC=' '
31887ac_dD=',;t'
31888# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031889ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031890ac_uB='$,\1#\2define\3'
31891ac_uC=' '
31892ac_uD=',;t'
31893
31894for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31896 case $ac_file in
31897 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031898 cat >$tmp/stdin
31899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031903 * ) ac_file_in=$ac_file.in ;;
31904 esac
31905
31906 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31907echo "$as_me: creating $ac_file" >&6;}
31908
31909 # First look for the input files in the build tree, otherwise in the
31910 # src tree.
31911 ac_file_inputs=`IFS=:
31912 for f in $ac_file_in; do
31913 case $f in
31914 -) echo $tmp/stdin ;;
31915 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031916 # Absolute (can't be DOS-style, as IFS=:)
31917 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031918echo "$as_me: error: cannot find input file: $f" >&2;}
31919 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031920 # Do quote $f, to prevent DOS paths from being IFS'd.
31921 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031922 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031923 if test -f "$f"; then
31924 # Build tree
31925 echo "$f"
31926 elif test -f "$srcdir/$f"; then
31927 # Source tree
31928 echo "$srcdir/$f"
31929 else
31930 # /dev/null tree
31931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031932echo "$as_me: error: cannot find input file: $f" >&2;}
31933 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031934 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031935 esac
31936 done` || { (exit 1); exit 1; }
31937 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031939
31940_ACEOF
31941
31942# Transform confdefs.h into two sed scripts, `conftest.defines' and
31943# `conftest.undefs', that substitutes the proper values into
31944# config.h.in to produce config.h. The first handles `#define'
31945# templates, and the second `#undef' templates.
31946# And first: Protect against being on the right side of a sed subst in
31947# config.status. Protect against being in an unquoted here document
31948# in config.status.
31949rm -f conftest.defines conftest.undefs
31950# Using a here document instead of a string reduces the quoting nightmare.
31951# Putting comments in sed scripts is not portable.
31952#
31953# `end' is used to avoid that the second main sed command (meant for
31954# 0-ary CPP macros) applies to n-ary macro definitions.
31955# See the Autoconf documentation for `clear'.
31956cat >confdef2sed.sed <<\_ACEOF
31957s/[\\&,]/\\&/g
31958s,[\\$`],\\&,g
31959t clear
31960: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031961s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031962t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031963s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031964: end
31965_ACEOF
31966# If some macros were called several times there might be several times
31967# the same #defines, which is useless. Nevertheless, we may not want to
31968# sort them, since we want the *last* AC-DEFINE to be honored.
31969uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31970sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31971rm -f confdef2sed.sed
31972
31973# This sed command replaces #undef with comments. This is necessary, for
31974# example, in the case of _POSIX_SOURCE, which is predefined and required
31975# on some systems where configure will not decide to define it.
31976cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031977s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031978_ACEOF
31979
31980# Break up conftest.defines because some shells have a limit on the size
31981# of here documents, and old seds have small limits too (100 cmds).
31982echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031983echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031984echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31985echo ' :' >>$CONFIG_STATUS
31986rm -f conftest.tail
31987while grep . conftest.defines >/dev/null
31988do
31989 # Write a limited-size here document to $tmp/defines.sed.
31990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31991 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031993 # Work around the forget-to-reset-the-flag bug.
31994 echo 't clr' >>$CONFIG_STATUS
31995 echo ': clr' >>$CONFIG_STATUS
31996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31997 echo 'CEOF
31998 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31999 rm -f $tmp/in
32000 mv $tmp/out $tmp/in
32001' >>$CONFIG_STATUS
32002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32003 rm -f conftest.defines
32004 mv conftest.tail conftest.defines
32005done
32006rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000032007echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032008echo >>$CONFIG_STATUS
32009
32010# Break up conftest.undefs because some shells have a limit on the size
32011# of here documents, and old seds have small limits too (100 cmds).
32012echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32013rm -f conftest.tail
32014while grep . conftest.undefs >/dev/null
32015do
32016 # Write a limited-size here document to $tmp/undefs.sed.
32017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32018 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000032019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032020 # Work around the forget-to-reset-the-flag bug.
32021 echo 't clr' >>$CONFIG_STATUS
32022 echo ': clr' >>$CONFIG_STATUS
32023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32024 echo 'CEOF
32025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32026 rm -f $tmp/in
32027 mv $tmp/out $tmp/in
32028' >>$CONFIG_STATUS
32029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32030 rm -f conftest.undefs
32031 mv conftest.tail conftest.undefs
32032done
32033rm -f conftest.undefs
32034
32035cat >>$CONFIG_STATUS <<\_ACEOF
32036 # Let's still pretend it is `configure' which instantiates (i.e., don't
32037 # use $as_me), people would be surprised to read:
32038 # /* config.h. Generated by config.status. */
32039 if test x"$ac_file" = x-; then
32040 echo "/* Generated by configure. */" >$tmp/config.h
32041 else
32042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32043 fi
32044 cat $tmp/in >>$tmp/config.h
32045 rm -f $tmp/in
32046 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32049echo "$as_me: $ac_file is unchanged" >&6;}
32050 else
32051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032053 X"$ac_file" : 'X\(//\)[^/]' \| \
32054 X"$ac_file" : 'X\(//\)$' \| \
32055 X"$ac_file" : 'X\(/\)' \| \
32056 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032057echo X"$ac_file" |
32058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32060 /^X\(\/\/\)$/{ s//\1/; q; }
32061 /^X\(\/\).*/{ s//\1/; q; }
32062 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032063 { if $as_mkdir_p; then
32064 mkdir -p "$ac_dir"
32065 else
32066 as_dir="$ac_dir"
32067 as_dirs=
32068 while test ! -d "$as_dir"; do
32069 as_dirs="$as_dir $as_dirs"
32070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032072 X"$as_dir" : 'X\(//\)[^/]' \| \
32073 X"$as_dir" : 'X\(//\)$' \| \
32074 X"$as_dir" : 'X\(/\)' \| \
32075 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032076echo X"$as_dir" |
32077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32079 /^X\(\/\/\)$/{ s//\1/; q; }
32080 /^X\(\/\).*/{ s//\1/; q; }
32081 s/.*/./; q'`
32082 done
32083 test ! -n "$as_dirs" || mkdir $as_dirs
32084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32086 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032087
32088 rm -f $ac_file
32089 mv $tmp/config.h $ac_file
32090 fi
32091 else
32092 cat $tmp/config.h
32093 rm -f $tmp/config.h
32094 fi
32095done
32096_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032097cat >>$CONFIG_STATUS <<\_ACEOF
32098
32099#
32100# CONFIG_COMMANDS section.
32101#
32102for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32105 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32106$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032107 X"$ac_dest" : 'X\(//\)[^/]' \| \
32108 X"$ac_dest" : 'X\(//\)$' \| \
32109 X"$ac_dest" : 'X\(/\)' \| \
32110 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032111echo X"$ac_dest" |
32112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32114 /^X\(\/\/\)$/{ s//\1/; q; }
32115 /^X\(\/\).*/{ s//\1/; q; }
32116 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032117 { if $as_mkdir_p; then
32118 mkdir -p "$ac_dir"
32119 else
32120 as_dir="$ac_dir"
32121 as_dirs=
32122 while test ! -d "$as_dir"; do
32123 as_dirs="$as_dir $as_dirs"
32124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32125$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32126 X"$as_dir" : 'X\(//\)[^/]' \| \
32127 X"$as_dir" : 'X\(//\)$' \| \
32128 X"$as_dir" : 'X\(/\)' \| \
32129 . : '\(.\)' 2>/dev/null ||
32130echo X"$as_dir" |
32131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32133 /^X\(\/\/\)$/{ s//\1/; q; }
32134 /^X\(\/\).*/{ s//\1/; q; }
32135 s/.*/./; q'`
32136 done
32137 test ! -n "$as_dirs" || mkdir $as_dirs
32138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32139echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32140 { (exit 1); exit 1; }; }; }
32141
John Criswellc764fbc2003-09-06 15:17:13 +000032142 ac_builddir=.
32143
32144if test "$ac_dir" != .; then
32145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32146 # A "../" for each directory in $ac_dir_suffix.
32147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32148else
32149 ac_dir_suffix= ac_top_builddir=
32150fi
32151
32152case $srcdir in
32153 .) # No --srcdir option. We are building in place.
32154 ac_srcdir=.
32155 if test -z "$ac_top_builddir"; then
32156 ac_top_srcdir=.
32157 else
32158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32159 fi ;;
32160 [\\/]* | ?:[\\/]* ) # Absolute path.
32161 ac_srcdir=$srcdir$ac_dir_suffix;
32162 ac_top_srcdir=$srcdir ;;
32163 *) # Relative path.
32164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32166esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032167
32168# Do not use `cd foo && pwd` to compute absolute paths, because
32169# the directories may not exist.
32170case `pwd` in
32171.) ac_abs_builddir="$ac_dir";;
32172*)
32173 case "$ac_dir" in
32174 .) ac_abs_builddir=`pwd`;;
32175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32177 esac;;
32178esac
32179case $ac_abs_builddir in
32180.) ac_abs_top_builddir=${ac_top_builddir}.;;
32181*)
32182 case ${ac_top_builddir}. in
32183 .) ac_abs_top_builddir=$ac_abs_builddir;;
32184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32186 esac;;
32187esac
32188case $ac_abs_builddir in
32189.) ac_abs_srcdir=$ac_srcdir;;
32190*)
32191 case $ac_srcdir in
32192 .) ac_abs_srcdir=$ac_abs_builddir;;
32193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32195 esac;;
32196esac
32197case $ac_abs_builddir in
32198.) ac_abs_top_srcdir=$ac_top_srcdir;;
32199*)
32200 case $ac_top_srcdir in
32201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32204 esac;;
32205esac
John Criswellc764fbc2003-09-06 15:17:13 +000032206
32207
32208 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32209echo "$as_me: executing $ac_dest commands" >&6;}
32210 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032211 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32212 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32213 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32214 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32215 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32216 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32217 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32218 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32219 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32220 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32221 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32222 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32223 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32224 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32225 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32226 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32227 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32228 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32229 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32230 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032231 esac
32232done
32233_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032234
32235cat >>$CONFIG_STATUS <<\_ACEOF
32236
32237{ (exit 0); exit 0; }
32238_ACEOF
32239chmod +x $CONFIG_STATUS
32240ac_clean_files=$ac_clean_files_save
32241
32242
32243# configure is writing to config.log, and then calls config.status.
32244# config.status does its own redirection, appending to config.log.
32245# Unfortunately, on DOS this fails, as config.log is still kept open
32246# by configure, so config.status won't be able to write to it; its
32247# output is simply discarded. So we exec the FD to /dev/null,
32248# effectively closing config.log, so it can be properly (re)opened and
32249# appended to by config.status. When coming back to configure, we
32250# need to make the FD available again.
32251if test "$no_create" != yes; then
32252 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032253 ac_config_status_args=
32254 test "$silent" = yes &&
32255 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032256 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032258 exec 5>>config.log
32259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32260 # would make configure fail if this is the last instruction.
32261 $ac_cs_success || { (exit 1); exit 1; }
32262fi
32263
John Criswell12399a12003-09-30 15:55:44 +000032264#
32265# CONFIG_SUBDIRS section.
32266#
32267if test "$no_recursion" != yes; then
32268
32269 # Remove --cache-file and --srcdir arguments so they do not pile up.
32270 ac_sub_configure_args=
32271 ac_prev=
32272 for ac_arg in $ac_configure_args; do
32273 if test -n "$ac_prev"; then
32274 ac_prev=
32275 continue
32276 fi
32277 case $ac_arg in
32278 -cache-file | --cache-file | --cache-fil | --cache-fi \
32279 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32280 ac_prev=cache_file ;;
32281 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32282 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32283 | --c=*)
32284 ;;
32285 --config-cache | -C)
32286 ;;
32287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32288 ac_prev=srcdir ;;
32289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32290 ;;
32291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32292 ac_prev=prefix ;;
32293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32294 ;;
32295 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32296 esac
32297 done
32298
32299 # Always prepend --prefix to ensure using the same prefix
32300 # in subdir configurations.
32301 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32302
32303 ac_popdir=`pwd`
32304 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32305
32306 # Do not complain, so a configure script can configure whichever
32307 # parts of a large source tree are present.
32308 test -d $srcdir/$ac_dir || continue
32309
32310 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32311echo "$as_me: configuring in $ac_dir" >&6;}
32312 { if $as_mkdir_p; then
32313 mkdir -p "$ac_dir"
32314 else
32315 as_dir="$ac_dir"
32316 as_dirs=
32317 while test ! -d "$as_dir"; do
32318 as_dirs="$as_dir $as_dirs"
32319 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032321 X"$as_dir" : 'X\(//\)[^/]' \| \
32322 X"$as_dir" : 'X\(//\)$' \| \
32323 X"$as_dir" : 'X\(/\)' \| \
32324 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032325echo X"$as_dir" |
32326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32328 /^X\(\/\/\)$/{ s//\1/; q; }
32329 /^X\(\/\).*/{ s//\1/; q; }
32330 s/.*/./; q'`
32331 done
32332 test ! -n "$as_dirs" || mkdir $as_dirs
32333 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32334echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32335 { (exit 1); exit 1; }; }; }
32336
32337 ac_builddir=.
32338
32339if test "$ac_dir" != .; then
32340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32341 # A "../" for each directory in $ac_dir_suffix.
32342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32343else
32344 ac_dir_suffix= ac_top_builddir=
32345fi
32346
32347case $srcdir in
32348 .) # No --srcdir option. We are building in place.
32349 ac_srcdir=.
32350 if test -z "$ac_top_builddir"; then
32351 ac_top_srcdir=.
32352 else
32353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32354 fi ;;
32355 [\\/]* | ?:[\\/]* ) # Absolute path.
32356 ac_srcdir=$srcdir$ac_dir_suffix;
32357 ac_top_srcdir=$srcdir ;;
32358 *) # Relative path.
32359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32360 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32361esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032362
32363# Do not use `cd foo && pwd` to compute absolute paths, because
32364# the directories may not exist.
32365case `pwd` in
32366.) ac_abs_builddir="$ac_dir";;
32367*)
32368 case "$ac_dir" in
32369 .) ac_abs_builddir=`pwd`;;
32370 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32371 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32372 esac;;
32373esac
32374case $ac_abs_builddir in
32375.) ac_abs_top_builddir=${ac_top_builddir}.;;
32376*)
32377 case ${ac_top_builddir}. in
32378 .) ac_abs_top_builddir=$ac_abs_builddir;;
32379 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32380 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32381 esac;;
32382esac
32383case $ac_abs_builddir in
32384.) ac_abs_srcdir=$ac_srcdir;;
32385*)
32386 case $ac_srcdir in
32387 .) ac_abs_srcdir=$ac_abs_builddir;;
32388 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32389 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32390 esac;;
32391esac
32392case $ac_abs_builddir in
32393.) ac_abs_top_srcdir=$ac_top_srcdir;;
32394*)
32395 case $ac_top_srcdir in
32396 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32397 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32398 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32399 esac;;
32400esac
John Criswell12399a12003-09-30 15:55:44 +000032401
32402
32403 cd $ac_dir
32404
32405 # Check for guested configure; otherwise get Cygnus style configure.
32406 if test -f $ac_srcdir/configure.gnu; then
32407 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32408 elif test -f $ac_srcdir/configure; then
32409 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32410 elif test -f $ac_srcdir/configure.in; then
32411 ac_sub_configure=$ac_configure
32412 else
32413 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32414echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32415 ac_sub_configure=
32416 fi
32417
32418 # The recursion is here.
32419 if test -n "$ac_sub_configure"; then
32420 # Make the cache file name correct relative to the subdirectory.
32421 case $cache_file in
32422 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32423 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032424 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032425 esac
32426
32427 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32428echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32429 # The eval makes quoting arguments work.
32430 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032431 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32432 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032433echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32434 { (exit 1); exit 1; }; }
32435 fi
32436
32437 cd $ac_popdir
32438 done
32439fi
32440
Brian Gaekef3b24102003-11-16 18:38:14 +000032441
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032442if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032443 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32444echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032445 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32446echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32447 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32448echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32449 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32450echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32451 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32452echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032453fi