blob: 4afa35131ed3f234ea359cc7cbd91fa98f6c5ccd [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswelle2503892005-11-08 21:13:01 +00003# Generated by GNU Autoconf 2.59 for llvm 1.7cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
John Criswellc0c186d2005-11-08 21:11:33 +000011# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
John Criswelle2503892005-11-08 21:13:01 +0000428PACKAGE_VERSION='1.7cvs'
429PACKAGE_STRING='llvm 1.7cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell241116f2005-12-19 20:27:24 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer0a262ba2005-08-24 10:07:20 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
John Criswelle2503892005-11-08 21:13:01 +0000968\`configure' configures llvm 1.7cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
John Criswelle2503892005-11-08 21:13:01 +00001030 short | recursive ) echo "Configuration of llvm 1.7cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001040 --enable-threads Use threads if available (default is YES)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001041 --enable-target Build specific host targets:
1042 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001043 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001044 --enable-shared[=PKGS]
1045 build shared libraries [default=yes]
1046 --enable-static[=PKGS]
1047 build static libraries [default=yes]
1048 --enable-fast-install[=PKGS]
1049 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001051
1052Optional Packages:
1053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001055 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1056 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001057 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001058 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1059 --with-pic try to use only PIC/non-PIC objects [default=use
1060 both]
1061 --with-tags[=TAGS]
1062 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001063
1064Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001065 CC C compiler command
1066 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1068 nonstandard directory <lib dir>
1069 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001071 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001072 CXX C++ compiler command
1073 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001074 CXXCPP C++ preprocessor
1075 F77 Fortran 77 compiler command
1076 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001077
1078Use these variables to override the choices made by `configure' or to help
1079it to find libraries and programs with nonstandard names/locations.
1080
1081Report bugs to <llvmbugs@cs.uiuc.edu>.
1082_ACEOF
1083fi
1084
1085if test "$ac_init_help" = "recursive"; then
1086 # If there are subdirs, report their specific --help.
1087 ac_popdir=`pwd`
1088 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1089 test -d $ac_dir || continue
1090 ac_builddir=.
1091
1092if test "$ac_dir" != .; then
1093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1094 # A "../" for each directory in $ac_dir_suffix.
1095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096else
1097 ac_dir_suffix= ac_top_builddir=
1098fi
1099
1100case $srcdir in
1101 .) # No --srcdir option. We are building in place.
1102 ac_srcdir=.
1103 if test -z "$ac_top_builddir"; then
1104 ac_top_srcdir=.
1105 else
1106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107 fi ;;
1108 [\\/]* | ?:[\\/]* ) # Absolute path.
1109 ac_srcdir=$srcdir$ac_dir_suffix;
1110 ac_top_srcdir=$srcdir ;;
1111 *) # Relative path.
1112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001115
1116# Do not use `cd foo && pwd` to compute absolute paths, because
1117# the directories may not exist.
1118case `pwd` in
1119.) ac_abs_builddir="$ac_dir";;
1120*)
1121 case "$ac_dir" in
1122 .) ac_abs_builddir=`pwd`;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_top_builddir=${ac_top_builddir}.;;
1129*)
1130 case ${ac_top_builddir}. in
1131 .) ac_abs_top_builddir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_srcdir=$ac_srcdir;;
1138*)
1139 case $ac_srcdir in
1140 .) ac_abs_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143 esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_top_srcdir=$ac_top_srcdir;;
1147*)
1148 case $ac_top_srcdir in
1149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152 esac;;
1153esac
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 cd $ac_dir
1156 # Check for guested configure; otherwise get Cygnus style configure.
1157 if test -f $ac_srcdir/configure.gnu; then
1158 echo
1159 $SHELL $ac_srcdir/configure.gnu --help=recursive
1160 elif test -f $ac_srcdir/configure; then
1161 echo
1162 $SHELL $ac_srcdir/configure --help=recursive
1163 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001164 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001165 echo
1166 $ac_configure --help
1167 else
1168 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169 fi
1170 cd $ac_popdir
1171 done
1172fi
1173
1174test -n "$ac_init_help" && exit 0
1175if $ac_init_version; then
1176 cat <<\_ACEOF
John Criswelle2503892005-11-08 21:13:01 +00001177llvm configure 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001178generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001179
Reid Spencer2706f8c2004-09-19 23:53:36 +00001180Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001181This configure script is free software; the Free Software Foundation
1182gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001183
John Criswellc0c186d2005-11-08 21:11:33 +00001184Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001185_ACEOF
1186 exit 0
1187fi
1188exec 5>config.log
1189cat >&5 <<_ACEOF
1190This file contains any messages produced by compilers while
1191running configure, to aid debugging if configure makes a mistake.
1192
John Criswelle2503892005-11-08 21:13:01 +00001193It was created by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001194generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001195
1196 $ $0 $@
1197
1198_ACEOF
1199{
1200cat <<_ASUNAME
1201## --------- ##
1202## Platform. ##
1203## --------- ##
1204
1205hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
1211/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1213
1214/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1215/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1216/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1218/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1219/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1220/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221
1222_ASUNAME
1223
1224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225for as_dir in $PATH
1226do
1227 IFS=$as_save_IFS
1228 test -z "$as_dir" && as_dir=.
1229 echo "PATH: $as_dir"
1230done
1231
1232} >&5
1233
1234cat >&5 <<_ACEOF
1235
1236
1237## ----------- ##
1238## Core tests. ##
1239## ----------- ##
1240
1241_ACEOF
1242
1243
1244# Keep a trace of the command line.
1245# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001246# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001247# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001248# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001249ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001250ac_configure_args0=
1251ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001252ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001253ac_must_keep_next=false
1254for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001255do
John Criswell0c38eaf2003-09-10 15:17:25 +00001256 for ac_arg
1257 do
1258 case $ac_arg in
1259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1262 continue ;;
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 esac
1266 case $ac_pass in
1267 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268 2)
1269 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001271 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001272 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001273 case $ac_arg in
1274 *=* | --config-cache | -C | -disable-* | --disable-* \
1275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277 | -with-* | --with-* | -without-* | --without-* | --x)
1278 case "$ac_configure_args0 " in
1279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280 esac
1281 ;;
1282 -* ) ac_must_keep_next=true ;;
1283 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001284 fi
1285 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286 # Get rid of the leading space.
1287 ac_sep=" "
1288 ;;
1289 esac
1290 done
John Criswell7a73b802003-06-30 21:59:07 +00001291done
John Criswell0c38eaf2003-09-10 15:17:25 +00001292$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293$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 +00001294
1295# When interrupted or exit'd, cleanup temporary files, and complete
1296# config.log. We remove comments because anyway the quotes in there
1297# would cause problems or look ugly.
1298# WARNING: Be sure not to use single quotes in there, as some shells,
1299# such as our DU 5.0 friend, will then `close' the trap.
1300trap 'exit_status=$?
1301 # Save into config.log some information that might help in debugging.
1302 {
1303 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001304
John Criswell7a73b802003-06-30 21:59:07 +00001305 cat <<\_ASBOX
1306## ---------------- ##
1307## Cache variables. ##
1308## ---------------- ##
1309_ASBOX
1310 echo
1311 # The following way of writing the cache mishandles newlines in values,
1312{
1313 (set) 2>&1 |
1314 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315 *ac_space=\ *)
1316 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001317 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001319 ;;
1320 *)
1321 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001323 ;;
1324 esac;
1325}
1326 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001327
1328 cat <<\_ASBOX
1329## ----------------- ##
1330## Output variables. ##
1331## ----------------- ##
1332_ASBOX
1333 echo
1334 for ac_var in $ac_subst_vars
1335 do
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1338 done | sort
1339 echo
1340
1341 if test -n "$ac_subst_files"; then
1342 cat <<\_ASBOX
1343## ------------- ##
1344## Output files. ##
1345## ------------- ##
1346_ASBOX
1347 echo
1348 for ac_var in $ac_subst_files
1349 do
1350 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001351 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001352 done | sort
1353 echo
1354 fi
1355
John Criswell7a73b802003-06-30 21:59:07 +00001356 if test -s confdefs.h; then
1357 cat <<\_ASBOX
1358## ----------- ##
1359## confdefs.h. ##
1360## ----------- ##
1361_ASBOX
1362 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001363 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001364 echo
1365 fi
1366 test "$ac_signal" != 0 &&
1367 echo "$as_me: caught signal $ac_signal"
1368 echo "$as_me: exit $exit_status"
1369 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001370 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001371 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372 exit $exit_status
1373 ' 0
1374for ac_signal in 1 2 13 15; do
1375 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376done
1377ac_signal=0
1378
1379# confdefs.h avoids OS command line length limits that DEFS can exceed.
1380rm -rf conftest* confdefs.h
1381# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382echo >confdefs.h
1383
1384# Predefined preprocessor variables.
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_NAME "$PACKAGE_NAME"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_VERSION "$PACKAGE_VERSION"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_STRING "$PACKAGE_STRING"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408_ACEOF
1409
1410
1411# Let the site file select an alternate cache file if it wants to.
1412# Prefer explicitly selected file to automatically selected ones.
1413if test -z "$CONFIG_SITE"; then
1414 if test "x$prefix" != xNONE; then
1415 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416 else
1417 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418 fi
1419fi
1420for ac_site_file in $CONFIG_SITE; do
1421 if test -r "$ac_site_file"; then
1422 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423echo "$as_me: loading site script $ac_site_file" >&6;}
1424 sed 's/^/| /' "$ac_site_file" >&5
1425 . "$ac_site_file"
1426 fi
1427done
1428
1429if test -r "$cache_file"; then
1430 # Some versions of bash will fail to source /dev/null (special
1431 # files actually), so we avoid doing that.
1432 if test -f "$cache_file"; then
1433 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434echo "$as_me: loading cache $cache_file" >&6;}
1435 case $cache_file in
1436 [\\/]* | ?:[\\/]* ) . $cache_file;;
1437 *) . ./$cache_file;;
1438 esac
1439 fi
1440else
1441 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442echo "$as_me: creating cache $cache_file" >&6;}
1443 >$cache_file
1444fi
1445
1446# Check that the precious variables saved in the cache have kept the same
1447# value.
1448ac_cache_corrupted=false
1449for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001450 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452 eval ac_new_set=\$ac_env_${ac_var}_set
1453 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454 eval ac_new_val="\$ac_env_${ac_var}_value"
1455 case $ac_old_set,$ac_new_set in
1456 set,)
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1460 ,set)
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1464 ,);;
1465 *)
1466 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001470echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001472echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001474 fi;;
1475 esac
1476 # Pass precious variables to config.status.
1477 if test "$ac_new_set" = set; then
1478 case $ac_new_val in
1479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 *) ac_arg=$ac_var=$ac_new_val ;;
1482 esac
1483 case " $ac_configure_args " in
1484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1485 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486 esac
1487 fi
1488done
1489if $ac_cache_corrupted; then
1490 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494 { (exit 1); exit 1; }; }
1495fi
1496
1497ac_ext=c
1498ac_cpp='$CPP $CPPFLAGS'
1499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
John Criswell0c38eaf2003-09-10 15:17:25 +00001529
Misha Brukman19098e52005-05-12 22:15:34 +00001530LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001531
1532
1533
1534
1535
1536
1537
John Criswell7a73b802003-06-30 21:59:07 +00001538ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001539for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001540 if test -f $ac_dir/install-sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 break
1544 elif test -f $ac_dir/install.sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
1552 fi
1553done
1554if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1556echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001557 { (exit 1); exit 1; }; }
1558fi
1559ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
John Criswell392aaa32003-07-22 19:18:09 +00001563
Reid Spencer2706f8c2004-09-19 23:53:36 +00001564if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1566 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001567echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1568 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001569 fi
John Criswell93e1c722003-09-15 17:04:06 +00001570fi
1571
John Criswell33a911a2003-11-25 20:36:46 +00001572for i in `ls ${srcdir}/projects`
1573do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001574 if test -d ${srcdir}/projects/${i} ; then
1575 case ${i} in
1576 "CVS") ;;
1577 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001578
Reid Spencer4d68ba22004-09-07 16:35:45 +00001579subdirs="$subdirs projects/sample"
1580 ;;
1581 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/Stacker"
1584 ;;
1585 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001586
Reid Spencer4d68ba22004-09-07 16:35:45 +00001587subdirs="$subdirs projects/llvm-test"
1588 ;;
1589 "llvm-reopt")
1590
1591subdirs="$subdirs projects/llvm-reopt"
1592;;
1593 "llvm-gcc")
1594
1595subdirs="$subdirs projects/llvm-gcc"
1596 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001597 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001598
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001599subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001600 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001601 "llvm-tv")
1602
1603subdirs="$subdirs projects/llvm-tv"
1604 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001605 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001606
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001607subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001608 ;;
John Criswell241116f2005-12-19 20:27:24 +00001609 "llvm-kernel")
1610
1611subdirs="$subdirs projects/llvm-kernel"
1612 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001613 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001614 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1615echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001616 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001617 esac
John Criswell33a911a2003-11-25 20:36:46 +00001618 fi
1619done
John Criswell559a6c12003-09-30 16:31:48 +00001620
John Criswell7a73b802003-06-30 21:59:07 +00001621
1622# Make sure we can run config.sub.
1623$ac_config_sub sun4 >/dev/null 2>&1 ||
1624 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1625echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1626 { (exit 1); exit 1; }; }
1627
1628echo "$as_me:$LINENO: checking build system type" >&5
1629echo $ECHO_N "checking build system type... $ECHO_C" >&6
1630if test "${ac_cv_build+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 ac_cv_build_alias=$build_alias
1634test -z "$ac_cv_build_alias" &&
1635 ac_cv_build_alias=`$ac_config_guess`
1636test -z "$ac_cv_build_alias" &&
1637 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1638echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1639 { (exit 1); exit 1; }; }
1640ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
1646echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1647echo "${ECHO_T}$ac_cv_build" >&6
1648build=$ac_cv_build
1649build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654echo "$as_me:$LINENO: checking host system type" >&5
1655echo $ECHO_N "checking host system type... $ECHO_C" >&6
1656if test "${ac_cv_host+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 ac_cv_host_alias=$host_alias
1660test -z "$ac_cv_host_alias" &&
1661 ac_cv_host_alias=$ac_cv_build_alias
1662ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1664echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1665 { (exit 1); exit 1; }; }
1666
1667fi
1668echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1669echo "${ECHO_T}$ac_cv_host" >&6
1670host=$ac_cv_host
1671host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1674
1675
1676echo "$as_me:$LINENO: checking target system type" >&5
1677echo $ECHO_N "checking target system type... $ECHO_C" >&6
1678if test "${ac_cv_target+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681 ac_cv_target_alias=$target_alias
1682test "x$ac_cv_target_alias" = "x" &&
1683 ac_cv_target_alias=$ac_cv_host_alias
1684ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1685 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1686echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1687 { (exit 1); exit 1; }; }
1688
1689fi
1690echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1691echo "${ECHO_T}$ac_cv_target" >&6
1692target=$ac_cv_target
1693target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1694target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1695target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1696
1697
1698# The aliases save the names the user supplied, while $host etc.
1699# will get canonicalized.
1700test -n "$target_alias" &&
1701 test "$program_prefix$program_suffix$program_transform_name" = \
1702 NONENONEs,x,x, &&
1703 program_prefix=${target_alias}-
1704
Reid Spencer7b3e8512004-12-24 06:29:05 +00001705echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1706echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1707if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709else
1710 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001711 *-*-aix*)
1712 llvm_cv_os_type="AIX"
1713 llvm_cv_platform_type="Unix" ;;
1714 *-*-cygwin*)
1715 llvm_cv_os_type="Cygwin"
1716 llvm_cv_platform_type="Unix" ;;
1717 *-*-darwin*)
1718 llvm_cv_os_type="Darwin"
1719 llvm_cv_platform_type="Unix" ;;
1720 *-*-freebsd*)
1721 llvm_cv_os_type="FreeBSD"
1722 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001723 *-*-hpux*)
1724 llvm_cv_os_type="HP-UX"
1725 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001726 *-*-interix*)
1727 llvm_cv_os_type="Interix"
1728 llvm_cv_platform_type="Unix" ;;
1729 *-*-linux*)
1730 llvm_cv_os_type="Linux"
1731 llvm_cv_platform_type="Unix" ;;
1732 *-*-solaris*)
1733 llvm_cv_os_type="SunOS"
1734 llvm_cv_platform_type="Unix" ;;
1735 *-*-win32*)
1736 llvm_cv_os_type="Win32"
1737 llvm_cv_platform_type="Win32" ;;
1738 *-*-mingw*)
1739 llvm_cv_os_type="MingW"
1740 llvm_cv_platform_type="Win32" ;;
1741 *)
1742 llvm_cv_os_type="Unknown"
1743 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001744esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001745fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001746echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1747echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001748
Reid Spencer7b3e8512004-12-24 06:29:05 +00001749if test "$llvm_cv_os_type" = "Unknown" ; then
1750 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1751echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001752 { (exit 1); exit 1; }; }
1753fi
1754
Reid Spencer7b3e8512004-12-24 06:29:05 +00001755OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001756
1757
Reid Spencer7b3e8512004-12-24 06:29:05 +00001758case $llvm_cv_platform_type in
1759 Unix)
1760
1761cat >>confdefs.h <<\_ACEOF
1762#define LLVM_ON_UNIX 1
1763_ACEOF
1764
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001765 LLVM_ON_UNIX=1
1766
1767 LLVM_ON_WIN32=0
1768
Reid Spencer7b3e8512004-12-24 06:29:05 +00001769 ;;
1770 Win32)
1771
1772cat >>confdefs.h <<\_ACEOF
1773#define LLVM_ON_WIN32 1
1774_ACEOF
1775
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001776 LLVM_ON_UNIX=0
1777
1778 LLVM_ON_WIN32=1
1779
Reid Spencer7b3e8512004-12-24 06:29:05 +00001780 ;;
1781esac
1782
Reid Spencer73fb5482004-08-31 14:20:36 +00001783echo "$as_me:$LINENO: checking target architecture" >&5
1784echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001785if test "${llvm_cv_target_arch+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001789 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001790 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001791 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1792 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001793 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001794 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001795 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001796esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001797fi
1798echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1799echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001800
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001801if test "$llvm_cv_target_arch" = "Unknown" ; then
1802 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1803echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1804fi
John Criswell76595452003-07-01 22:07:39 +00001805
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001806ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001807
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001808
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001809ac_ext=c
1810ac_cpp='$CPP $CPPFLAGS'
1811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001814if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1816set dummy ${ac_tool_prefix}gcc; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1835 fi
1836done
1837done
1838
1839fi
1840fi
1841CC=$ac_cv_prog_CC
1842if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844echo "${ECHO_T}$CC" >&6
1845else
1846 echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850fi
1851if test -z "$ac_cv_prog_CC"; then
1852 ac_ct_CC=$CC
1853 # Extract the first word of "gcc", so it can be a program name with args.
1854set dummy gcc; ac_word=$2
1855echo "$as_me:$LINENO: checking for $ac_word" >&5
1856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860 if test -n "$ac_ct_CC"; then
1861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862else
1863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_CC="gcc"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 break 2
1873 fi
1874done
1875done
1876
1877fi
1878fi
1879ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880if test -n "$ac_ct_CC"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882echo "${ECHO_T}$ac_ct_CC" >&6
1883else
1884 echo "$as_me:$LINENO: result: no" >&5
1885echo "${ECHO_T}no" >&6
1886fi
1887
1888 CC=$ac_ct_CC
1889else
1890 CC="$ac_cv_prog_CC"
1891fi
1892
1893if test -z "$CC"; then
1894 if test -n "$ac_tool_prefix"; then
1895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1896set dummy ${ac_tool_prefix}cc; ac_word=$2
1897echo "$as_me:$LINENO: checking for $ac_word" >&5
1898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899if test "${ac_cv_prog_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902 if test -n "$CC"; then
1903 ac_cv_prog_CC="$CC" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_CC="${ac_tool_prefix}cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1915 fi
1916done
1917done
1918
1919fi
1920fi
1921CC=$ac_cv_prog_CC
1922if test -n "$CC"; then
1923 echo "$as_me:$LINENO: result: $CC" >&5
1924echo "${ECHO_T}$CC" >&6
1925else
1926 echo "$as_me:$LINENO: result: no" >&5
1927echo "${ECHO_T}no" >&6
1928fi
1929
1930fi
1931if test -z "$ac_cv_prog_CC"; then
1932 ac_ct_CC=$CC
1933 # Extract the first word of "cc", so it can be a program name with args.
1934set dummy cc; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940 if test -n "$ac_ct_CC"; then
1941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_ac_ct_CC="cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1953 fi
1954done
1955done
1956
1957fi
1958fi
1959ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960if test -n "$ac_ct_CC"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962echo "${ECHO_T}$ac_ct_CC" >&6
1963else
1964 echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968 CC=$ac_ct_CC
1969else
1970 CC="$ac_cv_prog_CC"
1971fi
1972
1973fi
1974if test -z "$CC"; then
1975 # Extract the first word of "cc", so it can be a program name with args.
1976set dummy cc; ac_word=$2
1977echo "$as_me:$LINENO: checking for $ac_word" >&5
1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984else
1985 ac_prog_rejected=no
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1994 ac_prog_rejected=yes
1995 continue
1996 fi
1997 ac_cv_prog_CC="cc"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2000 fi
2001done
2002done
2003
2004if test $ac_prog_rejected = yes; then
2005 # We found a bogon in the path, so make sure we never use it.
2006 set dummy $ac_cv_prog_CC
2007 shift
2008 if test $# != 0; then
2009 # We chose a different compiler from the bogus one.
2010 # However, it has the same basename, so the bogon will be chosen
2011 # first if we set CC to just the basename; use the full file name.
2012 shift
2013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014 fi
2015fi
2016fi
2017fi
2018CC=$ac_cv_prog_CC
2019if test -n "$CC"; then
2020 echo "$as_me:$LINENO: result: $CC" >&5
2021echo "${ECHO_T}$CC" >&6
2022else
2023 echo "$as_me:$LINENO: result: no" >&5
2024echo "${ECHO_T}no" >&6
2025fi
2026
2027fi
2028if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002031 do
2032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034echo "$as_me:$LINENO: checking for $ac_word" >&5
2035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002036if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002041else
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2052 fi
2053done
2054done
2055
2056fi
2057fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058CC=$ac_cv_prog_CC
2059if test -n "$CC"; then
2060 echo "$as_me:$LINENO: result: $CC" >&5
2061echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002062else
2063 echo "$as_me:$LINENO: result: no" >&5
2064echo "${ECHO_T}no" >&6
2065fi
2066
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002067 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002068 done
2069fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070if test -z "$CC"; then
2071 ac_ct_CC=$CC
2072 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002073do
2074 # Extract the first word of "$ac_prog", so it can be a program name with args.
2075set dummy $ac_prog; ac_word=$2
2076echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002083else
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002091 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2094 fi
2095done
2096done
2097
2098fi
2099fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002100ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101if test -n "$ac_ct_CC"; then
2102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002104else
2105 echo "$as_me:$LINENO: result: no" >&5
2106echo "${ECHO_T}no" >&6
2107fi
2108
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002109 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002110done
John Criswell7a73b802003-06-30 21:59:07 +00002111
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002112 CC=$ac_ct_CC
2113fi
2114
John Criswell7a73b802003-06-30 21:59:07 +00002115fi
2116
2117
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2119See \`config.log' for more details." >&5
2120echo "$as_me: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&2;}
2122 { (exit 1); exit 1; }; }
2123
John Criswell7a73b802003-06-30 21:59:07 +00002124# Provide some information about the compiler.
2125echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002126 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002127ac_compiler=`set X $ac_compile; echo $2`
2128{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2129 (eval $ac_compiler --version </dev/null >&5) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2134 (eval $ac_compiler -v </dev/null >&5) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2139 (eval $ac_compiler -V </dev/null >&5) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143
2144cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002150
John Criswell7a73b802003-06-30 21:59:07 +00002151int
2152main ()
2153{
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002160ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002161# Try to create an executable without -o first, disregard a.out.
2162# It will help us diagnose broken compilers, and finding out an intuition
2163# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002164echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002166ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2168 (eval $ac_link_default) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Find the output, starting from the most likely. This scheme is
2173# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2174# resort.
2175
2176# Be careful to initialize this variable, since it used to be cached.
2177# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2178ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002179# b.out is created by i960 compilers.
2180for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2181do
2182 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002183 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 # This is the source file.
2188 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 # We found the default executable, but exeext='' is most
2191 # certainly right.
2192 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002193 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 # FIXME: I believe we export ac_cv_exeext for Libtool,
2196 # but it would be cool to find out if it's true. Does anybody
2197 # maintain Libtool? --akim.
2198 export ac_cv_exeext
2199 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002200 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002202 esac
2203done
2204else
2205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002206sed 's/^/| /' conftest.$ac_ext >&5
2207
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002209See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002210echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002211See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002212 { (exit 77); exit 77; }; }
2213fi
2214
2215ac_exeext=$ac_cv_exeext
2216echo "$as_me:$LINENO: result: $ac_file" >&5
2217echo "${ECHO_T}$ac_file" >&6
2218
2219# Check the compiler produces executables we can run. If not, either
2220# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002221echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 cross_compiling=no
2233 else
2234 if test "$cross_compiling" = maybe; then
2235 cross_compiling=yes
2236 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002240echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002243 { (exit 1); exit 1; }; }
2244 fi
2245 fi
2246fi
2247echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6
2249
John Criswell0c38eaf2003-09-10 15:17:25 +00002250rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002251ac_clean_files=$ac_clean_files_save
2252# Check the compiler produces executables we can run. If not, either
2253# the compiler is broken, or we cross compile.
2254echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6
2258
2259echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262 (eval $ac_link) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268# work properly (i.e., refer to `conftest.exe'), while it won't with
2269# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002270for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002272 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002275 export ac_cv_exeext
2276 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 * ) break;;
2278 esac
2279done
2280else
John Criswell0c38eaf2003-09-10 15:17:25 +00002281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002285 { (exit 1); exit 1; }; }
2286fi
2287
2288rm -f conftest$ac_cv_exeext
2289echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290echo "${ECHO_T}$ac_cv_exeext" >&6
2291
2292rm -f conftest.$ac_ext
2293EXEEXT=$ac_cv_exeext
2294ac_exeext=$EXEEXT
2295echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2297if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
2305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002306
John Criswell7a73b802003-06-30 21:59:07 +00002307int
2308main ()
2309{
2310
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.o conftest.obj
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2322 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2325 break;;
2326 esac
2327done
2328else
2329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&5
2334echo "$as_me: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002336 { (exit 1); exit 1; }; }
2337fi
2338
2339rm -f conftest.$ac_cv_objext conftest.$ac_ext
2340fi
2341echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2342echo "${ECHO_T}$ac_cv_objext" >&6
2343OBJEXT=$ac_cv_objext
2344ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2346echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2347if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002351/* confdefs.h. */
2352_ACEOF
2353cat confdefs.h >>conftest.$ac_ext
2354cat >>conftest.$ac_ext <<_ACEOF
2355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002356
John Criswell7a73b802003-06-30 21:59:07 +00002357int
2358main ()
2359{
2360#ifndef __GNUC__
2361 choke me
2362#endif
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368rm -f conftest.$ac_objext
2369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002370 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_compiler_gnu=yes
2391else
2392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002393sed 's/^/| /' conftest.$ac_ext >&5
2394
John Criswell7a73b802003-06-30 21:59:07 +00002395ac_compiler_gnu=no
2396fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002399
2400fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403GCC=`test $ac_compiler_gnu = yes && echo yes`
2404ac_test_CFLAGS=${CFLAGS+set}
2405ac_save_CFLAGS=$CFLAGS
2406CFLAGS="-g"
2407echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002418
John Criswell7a73b802003-06-30 21:59:07 +00002419int
2420main ()
2421{
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002429 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002450else
2451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002452sed 's/^/| /' conftest.$ac_ext >&5
2453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002455fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002457fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002458echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2459echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2460if test "$ac_test_CFLAGS" = set; then
2461 CFLAGS=$ac_save_CFLAGS
2462elif test $ac_cv_prog_cc_g = yes; then
2463 if test "$GCC" = yes; then
2464 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002465 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002467 fi
2468else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469 if test "$GCC" = yes; then
2470 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002471 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002473 fi
2474fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2476echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2477if test "${ac_cv_prog_cc_stdc+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480 ac_cv_prog_cc_stdc=no
2481ac_save_CC=$CC
2482cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488#include <stdarg.h>
2489#include <stdio.h>
2490#include <sys/types.h>
2491#include <sys/stat.h>
2492/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2493struct buf { int x; };
2494FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495static char *e (p, i)
2496 char **p;
2497 int i;
2498{
2499 return p[i];
2500}
2501static char *f (char * (*g) (char **, int), char **p, ...)
2502{
2503 char *s;
2504 va_list v;
2505 va_start (v,p);
2506 s = g (p, va_arg (v,int));
2507 va_end (v);
2508 return s;
2509}
2510
2511/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2512 function prototypes and stuff, but not '\xHH' hex character constants.
2513 These don't provoke an error unfortunately, instead are silently treated
2514 as 'x'. The following induces an error, until -std1 is added to get
2515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2516 array size at least. It's necessary to write '\x00'==0 to get something
2517 that's true only with -std1. */
2518int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519
2520int test (int i, double x);
2521struct s1 {int (*f) (int a);};
2522struct s2 {int (*f) (double a);};
2523int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2524int argc;
2525char **argv;
2526int
2527main ()
2528{
2529return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2530 ;
2531 return 0;
2532}
2533_ACEOF
2534# Don't try gcc -ansi; that turns off useful extensions and
2535# breaks some systems' header files.
2536# AIX -qlanglvl=ansi
2537# Ultrix and OSF/1 -std1
2538# HP-UX 10.20 and later -Ae
2539# HP-UX older versions -Aa -D_HPUX_SOURCE
2540# SVR4 -Xc -D__EXTENSIONS__
2541for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2542do
2543 CC="$ac_save_CC $ac_arg"
2544 rm -f conftest.$ac_objext
2545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2567break
2568else
2569 echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572fi
2573rm -f conftest.err conftest.$ac_objext
2574done
2575rm -f conftest.$ac_ext conftest.$ac_objext
2576CC=$ac_save_CC
2577
2578fi
2579
2580case "x$ac_cv_prog_cc_stdc" in
2581 x|xno)
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583echo "${ECHO_T}none needed" >&6 ;;
2584 *)
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2588esac
2589
2590# Some people use a C++ compiler to compile C. Since we use `exit',
2591# in C++ we need to declare it. In case someone uses the same compiler
2592# for both compiling C and C++ we need to have the C++ compiler decide
2593# the declaration of exit, since it's the most demanding environment.
2594cat >conftest.$ac_ext <<_ACEOF
2595#ifndef __cplusplus
2596 choke me
2597#endif
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002622 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002623 'extern "C" void std::exit (int) throw (); using std::exit;' \
2624 'extern "C" void std::exit (int); using std::exit;' \
2625 'extern "C" void exit (int) throw ();' \
2626 'extern "C" void exit (int);' \
2627 'void exit (int);'
2628do
2629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002635$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002636#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002637int
2638main ()
2639{
2640exit (42);
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002647 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002648 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 :
2668else
2669 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002670sed 's/^/| /' conftest.$ac_ext >&5
2671
John Criswell7a73b802003-06-30 21:59:07 +00002672continue
2673fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002675 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002681$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002682int
2683main ()
2684{
2685exit (42);
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002692 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002693 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 break
2713else
2714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002715sed 's/^/| /' conftest.$ac_ext >&5
2716
John Criswell7a73b802003-06-30 21:59:07 +00002717fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002719done
2720rm -f conftest*
2721if test -n "$ac_declaration"; then
2722 echo '#ifdef __cplusplus' >>confdefs.h
2723 echo $ac_declaration >>confdefs.h
2724 echo '#endif' >>confdefs.h
2725fi
2726
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002727else
2728 echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733ac_ext=c
2734ac_cpp='$CPP $CPPFLAGS'
2735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739
2740echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2741echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2742if test "${ac_cv_c_bigendian+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744else
2745 # See if sys/param.h defines the BYTE_ORDER macro.
2746cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752#include <sys/types.h>
2753#include <sys/param.h>
2754
2755int
2756main ()
2757{
2758#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2759 bogus endian macros
2760#endif
2761
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 # It does; now see whether it defined to BIG_ENDIAN or not.
2789cat >conftest.$ac_ext <<_ACEOF
2790/* confdefs.h. */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
2794/* end confdefs.h. */
2795#include <sys/types.h>
2796#include <sys/param.h>
2797
2798int
2799main ()
2800{
2801#if BYTE_ORDER != BIG_ENDIAN
2802 not big endian
2803#endif
2804
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
2810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_cv_c_bigendian=yes
2832else
2833 echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836ac_cv_c_bigendian=no
2837fi
2838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839else
2840 echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843# It does not; compile a test program.
2844if test "$cross_compiling" = yes; then
2845 # try to guess the endianness by grepping values into an object file
2846 ac_cv_c_bigendian=unknown
2847 cat >conftest.$ac_ext <<_ACEOF
2848/* confdefs.h. */
2849_ACEOF
2850cat confdefs.h >>conftest.$ac_ext
2851cat >>conftest.$ac_ext <<_ACEOF
2852/* end confdefs.h. */
2853short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2854short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2855void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2856short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2857short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2858void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2859int
2860main ()
2861{
2862 _ascii (); _ebcdic ();
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext
2868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2890 ac_cv_c_bigendian=yes
2891fi
2892if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2893 if test "$ac_cv_c_bigendian" = unknown; then
2894 ac_cv_c_bigendian=no
2895 else
2896 # finding both strings is unlikely to happen, but who knows?
2897 ac_cv_c_bigendian=unknown
2898 fi
2899fi
2900else
2901 echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904fi
2905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906else
2907 cat >conftest.$ac_ext <<_ACEOF
2908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
2913int
2914main ()
2915{
2916 /* Are we little or big endian? From Harbison&Steele. */
2917 union
2918 {
2919 long l;
2920 char c[sizeof (long)];
2921 } u;
2922 u.l = 1;
2923 exit (u.c[sizeof (long) - 1] == 1);
2924}
2925_ACEOF
2926rm -f conftest$ac_exeext
2927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928 (eval $ac_link) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_c_bigendian=no
2938else
2939 echo "$as_me: program exited with status $ac_status" >&5
2940echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943( exit $ac_status )
2944ac_cv_c_bigendian=yes
2945fi
2946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2947fi
2948fi
2949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950fi
2951echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2952echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2953case $ac_cv_c_bigendian in
2954 yes)
2955 ENDIAN=big
2956 ;;
2957 no)
2958 ENDIAN=little
2959 ;;
2960 *)
2961 { { echo "$as_me:$LINENO: error: unknown endianness
2962presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2963echo "$as_me: error: unknown endianness
2964presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2965 { (exit 1); exit 1; }; } ;;
2966esac
2967
2968
2969
2970# Check whether --enable-optimized or --disable-optimized was given.
2971if test "${enable_optimized+set}" = set; then
2972 enableval="$enable_optimized"
2973
2974else
2975 enableval=no
2976fi;
2977if test ${enableval} = "no" ; then
2978 ENABLE_OPTIMIZED=
2979
2980else
2981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2982
2983fi
2984
2985# Check whether --enable-jit or --disable-jit was given.
2986if test "${enable_jit+set}" = set; then
2987 enableval="$enable_jit"
2988
2989else
2990 enableval=default
2991fi;
2992if test ${enableval} = "no"
2993then
2994 JIT=
2995
2996else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002997 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002998 x86) JIT=TARGET_HAS_JIT=1
2999 ;;
3000 Sparc) JIT=TARGET_HAS_JIT=1
3001 ;;
3002 PowerPC) JIT=TARGET_HAS_JIT=1
3003 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003004 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003005 ;;
Andrew Lenharthddc31e82005-07-22 20:54:01 +00003006 Alpha) JIT=TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003007 ;;
3008 IA64) JIT=
3009 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003010 *) JIT=
3011 ;;
3012 esac
3013fi
3014
Reid Spencer1f319422004-11-29 04:56:35 +00003015# Check whether --enable-doxygen or --disable-doxygen was given.
3016if test "${enable_doxygen+set}" = set; then
3017 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003018
Reid Spencer1f319422004-11-29 04:56:35 +00003019else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003020 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003021fi;
3022case "$enableval" in
3023 yes) ENABLE_DOXYGEN=1
3024 ;;
3025 no) ENABLE_DOXYGEN=0
3026 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003027 default) ENABLE_DOXYGEN=0
3028 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3030echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3031 { (exit 1); exit 1; }; } ;;
3032esac
3033
Reid Spencer0a262ba2005-08-24 10:07:20 +00003034# Check whether --enable-threads or --disable-threads was given.
3035if test "${enable_threads+set}" = set; then
3036 enableval="$enable_threads"
3037
3038else
3039 enableval=yes
3040fi;
3041case "$enableval" in
3042 yes) ENABLE_THREADS=1
3043 ;;
3044 no) ENABLE_THREADS=0
3045 ;;
3046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3047echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3048 { (exit 1); exit 1; }; } ;;
3049esac
3050
3051cat >>confdefs.h <<_ACEOF
3052#define ENABLE_THREADS $ENABLE_THREADS
3053_ACEOF
3054
3055
Reid Spencer945de9b2005-04-22 07:27:28 +00003056TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003057# Check whether --enable-targets or --disable-targets was given.
3058if test "${enable_targets+set}" = set; then
3059 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003060
3061else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003062 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003063fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003064case "$enableval" in
Misha Brukmanccc1c162005-04-22 18:00:34 +00003065 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003066 host-only)
3067 case "$llvm_cv_target_arch" in
3068 x86) TARGETS_TO_BUILD="X86" ;;
3069 x86_64) TARGETS_TO_BUILD="X86" ;;
3070 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3071 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3072 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3073 IA64) TARGETS_TO_BUILD="IA64" ;;
3074 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003075echo "$as_me: error: Can not set target to build" >&2;}
3076 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003077 esac
3078 ;;
3079 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3080 case "$a_target" in
3081 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3082 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3083 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3084 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3085 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3086 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3087 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3088 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3089echo "$as_me: error: Unrecognized target $a_target" >&2;}
3090 { (exit 1); exit 1; }; } ;;
3091 esac
3092 done
3093 ;;
3094esac
Reid Spencer675f0922005-04-22 17:06:18 +00003095TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003096TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3097
3098
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003099
Reid Spencer59473af2004-12-25 07:31:29 +00003100# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3101if test "${with_llvmgccdir+set}" = set; then
3102 withval="$with_llvmgccdir"
3103
3104else
3105 withval=default
3106fi;
3107case "$withval" in
3108 default) WITH_LLVMGCCDIR=default ;;
3109 /*) WITH_LLVMGCCDIR=$withval ;;
3110 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3111echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3112 { (exit 1); exit 1; }; } ;;
3113esac
3114
3115
Reid Spencer945de9b2005-04-22 07:27:28 +00003116
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003117ac_ext=c
3118ac_cpp='$CPP $CPPFLAGS'
3119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3123echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3124# On Suns, sometimes $CPP names a directory.
3125if test -n "$CPP" && test -d "$CPP"; then
3126 CPP=
3127fi
3128if test -z "$CPP"; then
3129 if test "${ac_cv_prog_CPP+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132 # Double quotes because CPP needs to be expanded
3133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3134 do
3135 ac_preproc_ok=false
3136for ac_c_preproc_warn_flag in '' yes
3137do
3138 # Use a header file that comes with gcc, so configuring glibc
3139 # with a fresh cross-compiler works.
3140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3141 # <limits.h> exists even on freestanding compilers.
3142 # On the NeXT, cc -E runs the code through the compiler's parser,
3143 # not just through cpp. "Syntax error" is here to catch this case.
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150#ifdef __STDC__
3151# include <limits.h>
3152#else
3153# include <assert.h>
3154#endif
3155 Syntax error
3156_ACEOF
3157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } >/dev/null; then
3165 if test -s conftest.err; then
3166 ac_cpp_err=$ac_c_preproc_warn_flag
3167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3168 else
3169 ac_cpp_err=
3170 fi
3171else
3172 ac_cpp_err=yes
3173fi
3174if test -z "$ac_cpp_err"; then
3175 :
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 # Broken: fails on valid input.
3181continue
3182fi
3183rm -f conftest.err conftest.$ac_ext
3184
3185 # OK, works on sane cases. Now check whether non-existent headers
3186 # can be detected and how.
3187 cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h. */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h. */
3193#include <ac_nonexistent.h>
3194_ACEOF
3195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } >/dev/null; then
3203 if test -s conftest.err; then
3204 ac_cpp_err=$ac_c_preproc_warn_flag
3205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3206 else
3207 ac_cpp_err=
3208 fi
3209else
3210 ac_cpp_err=yes
3211fi
3212if test -z "$ac_cpp_err"; then
3213 # Broken: success on invalid input.
3214continue
3215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 # Passes both tests.
3220ac_preproc_ok=:
3221break
3222fi
3223rm -f conftest.err conftest.$ac_ext
3224
3225done
3226# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3227rm -f conftest.err conftest.$ac_ext
3228if $ac_preproc_ok; then
3229 break
3230fi
3231
3232 done
3233 ac_cv_prog_CPP=$CPP
3234
3235fi
3236 CPP=$ac_cv_prog_CPP
3237else
3238 ac_cv_prog_CPP=$CPP
3239fi
3240echo "$as_me:$LINENO: result: $CPP" >&5
3241echo "${ECHO_T}$CPP" >&6
3242ac_preproc_ok=false
3243for ac_c_preproc_warn_flag in '' yes
3244do
3245 # Use a header file that comes with gcc, so configuring glibc
3246 # with a fresh cross-compiler works.
3247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248 # <limits.h> exists even on freestanding compilers.
3249 # On the NeXT, cc -E runs the code through the compiler's parser,
3250 # not just through cpp. "Syntax error" is here to catch this case.
3251 cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
3257#ifdef __STDC__
3258# include <limits.h>
3259#else
3260# include <assert.h>
3261#endif
3262 Syntax error
3263_ACEOF
3264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } >/dev/null; then
3272 if test -s conftest.err; then
3273 ac_cpp_err=$ac_c_preproc_warn_flag
3274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3275 else
3276 ac_cpp_err=
3277 fi
3278else
3279 ac_cpp_err=yes
3280fi
3281if test -z "$ac_cpp_err"; then
3282 :
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 # Broken: fails on valid input.
3288continue
3289fi
3290rm -f conftest.err conftest.$ac_ext
3291
3292 # OK, works on sane cases. Now check whether non-existent headers
3293 # can be detected and how.
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300#include <ac_nonexistent.h>
3301_ACEOF
3302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } >/dev/null; then
3310 if test -s conftest.err; then
3311 ac_cpp_err=$ac_c_preproc_warn_flag
3312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3313 else
3314 ac_cpp_err=
3315 fi
3316else
3317 ac_cpp_err=yes
3318fi
3319if test -z "$ac_cpp_err"; then
3320 # Broken: success on invalid input.
3321continue
3322else
3323 echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 # Passes both tests.
3327ac_preproc_ok=:
3328break
3329fi
3330rm -f conftest.err conftest.$ac_ext
3331
3332done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext
3335if $ac_preproc_ok; then
3336 :
3337else
3338 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3339See \`config.log' for more details." >&5
3340echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3341See \`config.log' for more details." >&2;}
3342 { (exit 1); exit 1; }; }
3343fi
3344
John Criswell7a73b802003-06-30 21:59:07 +00003345ac_ext=c
3346ac_cpp='$CPP $CPPFLAGS'
3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350
3351ac_ext=c
3352ac_cpp='$CPP $CPPFLAGS'
3353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356if test -n "$ac_tool_prefix"; then
3357 for ac_prog in gcc
3358 do
3359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3361echo "$as_me:$LINENO: checking for $ac_word" >&5
3362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363if test "${ac_cv_prog_CC+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380done
3381done
3382
3383fi
3384fi
3385CC=$ac_cv_prog_CC
3386if test -n "$CC"; then
3387 echo "$as_me:$LINENO: result: $CC" >&5
3388echo "${ECHO_T}$CC" >&6
3389else
3390 echo "$as_me:$LINENO: result: no" >&5
3391echo "${ECHO_T}no" >&6
3392fi
3393
3394 test -n "$CC" && break
3395 done
3396fi
3397if test -z "$CC"; then
3398 ac_ct_CC=$CC
3399 for ac_prog in gcc
3400do
3401 # Extract the first word of "$ac_prog", so it can be a program name with args.
3402set dummy $ac_prog; ac_word=$2
3403echo "$as_me:$LINENO: checking for $ac_word" >&5
3404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 if test -n "$ac_ct_CC"; then
3409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_ac_ct_CC="$ac_prog"
3419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3421 fi
3422done
3423done
3424
3425fi
3426fi
3427ac_ct_CC=$ac_cv_prog_ac_ct_CC
3428if test -n "$ac_ct_CC"; then
3429 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3430echo "${ECHO_T}$ac_ct_CC" >&6
3431else
3432 echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6
3434fi
3435
3436 test -n "$ac_ct_CC" && break
3437done
3438
3439 CC=$ac_ct_CC
3440fi
3441
3442
John Criswell0c38eaf2003-09-10 15:17:25 +00003443test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3444See \`config.log' for more details." >&5
3445echo "$as_me: error: no acceptable C compiler found in \$PATH
3446See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003447 { (exit 1); exit 1; }; }
3448
3449# Provide some information about the compiler.
3450echo "$as_me:$LINENO:" \
3451 "checking for C compiler version" >&5
3452ac_compiler=`set X $ac_compile; echo $2`
3453{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3454 (eval $ac_compiler --version </dev/null >&5) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }
3458{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3459 (eval $ac_compiler -v </dev/null >&5) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }
3463{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3464 (eval $ac_compiler -V </dev/null >&5) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }
3468
3469echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3470echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3471if test "${ac_cv_c_compiler_gnu+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003475/* confdefs.h. */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003480
John Criswell7a73b802003-06-30 21:59:07 +00003481int
3482main ()
3483{
3484#ifndef __GNUC__
3485 choke me
3486#endif
3487
3488 ;
3489 return 0;
3490}
3491_ACEOF
3492rm -f conftest.$ac_objext
3493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003494 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003495 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_compiler_gnu=yes
3515else
3516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003517sed 's/^/| /' conftest.$ac_ext >&5
3518
John Criswell7a73b802003-06-30 21:59:07 +00003519ac_compiler_gnu=no
3520fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003522ac_cv_c_compiler_gnu=$ac_compiler_gnu
3523
3524fi
3525echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3526echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3527GCC=`test $ac_compiler_gnu = yes && echo yes`
3528ac_test_CFLAGS=${CFLAGS+set}
3529ac_save_CFLAGS=$CFLAGS
3530CFLAGS="-g"
3531echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3532echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3533if test "${ac_cv_prog_cc_g+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535else
3536 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003537/* confdefs.h. */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003542
John Criswell7a73b802003-06-30 21:59:07 +00003543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
3551rm -f conftest.$ac_objext
3552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003553 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003560 { ac_try='test -z "$ac_c_werror_flag"
3561 || test ! -s conftest.err'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; } &&
3567 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 ac_cv_prog_cc_g=yes
3574else
3575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003576sed 's/^/| /' conftest.$ac_ext >&5
3577
John Criswell7a73b802003-06-30 21:59:07 +00003578ac_cv_prog_cc_g=no
3579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003581fi
3582echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3583echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3584if test "$ac_test_CFLAGS" = set; then
3585 CFLAGS=$ac_save_CFLAGS
3586elif test $ac_cv_prog_cc_g = yes; then
3587 if test "$GCC" = yes; then
3588 CFLAGS="-g -O2"
3589 else
3590 CFLAGS="-g"
3591 fi
3592else
3593 if test "$GCC" = yes; then
3594 CFLAGS="-O2"
3595 else
3596 CFLAGS=
3597 fi
3598fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003599echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3600echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3601if test "${ac_cv_prog_cc_stdc+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
3604 ac_cv_prog_cc_stdc=no
3605ac_save_CC=$CC
3606cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612#include <stdarg.h>
3613#include <stdio.h>
3614#include <sys/types.h>
3615#include <sys/stat.h>
3616/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3617struct buf { int x; };
3618FILE * (*rcsopen) (struct buf *, struct stat *, int);
3619static char *e (p, i)
3620 char **p;
3621 int i;
3622{
3623 return p[i];
3624}
3625static char *f (char * (*g) (char **, int), char **p, ...)
3626{
3627 char *s;
3628 va_list v;
3629 va_start (v,p);
3630 s = g (p, va_arg (v,int));
3631 va_end (v);
3632 return s;
3633}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003634
3635/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3636 function prototypes and stuff, but not '\xHH' hex character constants.
3637 These don't provoke an error unfortunately, instead are silently treated
3638 as 'x'. The following induces an error, until -std1 is added to get
3639 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3640 array size at least. It's necessary to write '\x00'==0 to get something
3641 that's true only with -std1. */
3642int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3643
John Criswell0c38eaf2003-09-10 15:17:25 +00003644int test (int i, double x);
3645struct s1 {int (*f) (int a);};
3646struct s2 {int (*f) (double a);};
3647int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3648int argc;
3649char **argv;
3650int
3651main ()
3652{
3653return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3654 ;
3655 return 0;
3656}
3657_ACEOF
3658# Don't try gcc -ansi; that turns off useful extensions and
3659# breaks some systems' header files.
3660# AIX -qlanglvl=ansi
3661# Ultrix and OSF/1 -std1
3662# HP-UX 10.20 and later -Ae
3663# HP-UX older versions -Aa -D_HPUX_SOURCE
3664# SVR4 -Xc -D__EXTENSIONS__
3665for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3666do
3667 CC="$ac_save_CC $ac_arg"
3668 rm -f conftest.$ac_objext
3669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003670 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003677 { ac_try='test -z "$ac_c_werror_flag"
3678 || test ! -s conftest.err'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 (eval $ac_try) 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 ac_cv_prog_cc_stdc=$ac_arg
3691break
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003697rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003698done
3699rm -f conftest.$ac_ext conftest.$ac_objext
3700CC=$ac_save_CC
3701
3702fi
3703
3704case "x$ac_cv_prog_cc_stdc" in
3705 x|xno)
3706 echo "$as_me:$LINENO: result: none needed" >&5
3707echo "${ECHO_T}none needed" >&6 ;;
3708 *)
3709 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3710echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3711 CC="$CC $ac_cv_prog_cc_stdc" ;;
3712esac
3713
John Criswell7a73b802003-06-30 21:59:07 +00003714# Some people use a C++ compiler to compile C. Since we use `exit',
3715# in C++ we need to declare it. In case someone uses the same compiler
3716# for both compiling C and C++ we need to have the C++ compiler decide
3717# the declaration of exit, since it's the most demanding environment.
3718cat >conftest.$ac_ext <<_ACEOF
3719#ifndef __cplusplus
3720 choke me
3721#endif
3722_ACEOF
3723rm -f conftest.$ac_objext
3724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003725 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003732 { ac_try='test -z "$ac_c_werror_flag"
3733 || test ! -s conftest.err'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; } &&
3739 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003746 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003747 'extern "C" void std::exit (int) throw (); using std::exit;' \
3748 'extern "C" void std::exit (int); using std::exit;' \
3749 'extern "C" void exit (int) throw ();' \
3750 'extern "C" void exit (int);' \
3751 'void exit (int);'
3752do
3753 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003754/* confdefs.h. */
3755_ACEOF
3756cat confdefs.h >>conftest.$ac_ext
3757cat >>conftest.$ac_ext <<_ACEOF
3758/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003759$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003760#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003761int
3762main ()
3763{
3764exit (42);
3765 ;
3766 return 0;
3767}
3768_ACEOF
3769rm -f conftest.$ac_objext
3770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003771 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003772 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003773 grep -v '^ *+' conftest.er1 >conftest.err
3774 rm -f conftest.er1
3775 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003778 { ac_try='test -z "$ac_c_werror_flag"
3779 || test ! -s conftest.err'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; } &&
3785 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 :
3792else
3793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003794sed 's/^/| /' conftest.$ac_ext >&5
3795
John Criswell7a73b802003-06-30 21:59:07 +00003796continue
3797fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003799 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003800/* confdefs.h. */
3801_ACEOF
3802cat confdefs.h >>conftest.$ac_ext
3803cat >>conftest.$ac_ext <<_ACEOF
3804/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003805$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003806int
3807main ()
3808{
3809exit (42);
3810 ;
3811 return 0;
3812}
3813_ACEOF
3814rm -f conftest.$ac_objext
3815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003816 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003817 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 break
3837else
3838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003839sed 's/^/| /' conftest.$ac_ext >&5
3840
John Criswell7a73b802003-06-30 21:59:07 +00003841fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003843done
3844rm -f conftest*
3845if test -n "$ac_declaration"; then
3846 echo '#ifdef __cplusplus' >>confdefs.h
3847 echo $ac_declaration >>confdefs.h
3848 echo '#endif' >>confdefs.h
3849fi
3850
3851else
3852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003853sed 's/^/| /' conftest.$ac_ext >&5
3854
John Criswell7a73b802003-06-30 21:59:07 +00003855fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003863ac_ext=cc
3864ac_cpp='$CXXCPP $CPPFLAGS'
3865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3868if test -n "$ac_tool_prefix"; then
3869 for ac_prog in $CCC g++
3870 do
3871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3873echo "$as_me:$LINENO: checking for $ac_word" >&5
3874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003878 if test -n "$CXX"; then
3879 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3880else
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003883do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892done
3893done
3894
3895fi
3896fi
3897CXX=$ac_cv_prog_CXX
3898if test -n "$CXX"; then
3899 echo "$as_me:$LINENO: result: $CXX" >&5
3900echo "${ECHO_T}$CXX" >&6
3901else
3902 echo "$as_me:$LINENO: result: no" >&5
3903echo "${ECHO_T}no" >&6
3904fi
3905
3906 test -n "$CXX" && break
3907 done
3908fi
3909if test -z "$CXX"; then
3910 ac_ct_CXX=$CXX
3911 for ac_prog in $CCC g++
3912do
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914set dummy $ac_prog; ac_word=$2
3915echo "$as_me:$LINENO: checking for $ac_word" >&5
3916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
3920 if test -n "$ac_ct_CXX"; then
3921 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_ac_ct_CXX="$ac_prog"
3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935done
3936
3937fi
3938fi
3939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3940if test -n "$ac_ct_CXX"; then
3941 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3942echo "${ECHO_T}$ac_ct_CXX" >&6
3943else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946fi
3947
3948 test -n "$ac_ct_CXX" && break
3949done
3950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3951
3952 CXX=$ac_ct_CXX
3953fi
3954
3955
3956# Provide some information about the compiler.
3957echo "$as_me:$LINENO:" \
3958 "checking for C++ compiler version" >&5
3959ac_compiler=`set X $ac_compile; echo $2`
3960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3961 (eval $ac_compiler --version </dev/null >&5) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }
3965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3966 (eval $ac_compiler -v </dev/null >&5) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }
3970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3971 (eval $ac_compiler -V </dev/null >&5) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }
3975
3976echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3977echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3978if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
John Criswell7a73b802003-06-30 21:59:07 +00003981 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003982/* confdefs.h. */
3983_ACEOF
3984cat confdefs.h >>conftest.$ac_ext
3985cat >>conftest.$ac_ext <<_ACEOF
3986/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003987
3988int
3989main ()
3990{
3991#ifndef __GNUC__
3992 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003993#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003994
3995 ;
3996 return 0;
3997}
John Criswell7a73b802003-06-30 21:59:07 +00003998_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003999rm -f conftest.$ac_objext
4000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004002 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004003 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_cxx_werror_flag"
4009 || test ! -s conftest.err'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; } &&
4015 { ac_try='test -s conftest.$ac_objext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_compiler_gnu=yes
4022else
4023 echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026ac_compiler_gnu=no
4027fi
4028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4029ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4030
4031fi
4032echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4033echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4034GXX=`test $ac_compiler_gnu = yes && echo yes`
4035ac_test_CXXFLAGS=${CXXFLAGS+set}
4036ac_save_CXXFLAGS=$CXXFLAGS
4037CXXFLAGS="-g"
4038echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4039echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4040if test "${ac_cv_prog_cxx_g+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043 cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h. */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h. */
4049
4050int
4051main ()
4052{
4053
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_cxx_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_cv_prog_cxx_g=yes
4081else
4082 echo "$as_me: failed program was:" >&5
4083sed 's/^/| /' conftest.$ac_ext >&5
4084
4085ac_cv_prog_cxx_g=no
4086fi
4087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4088fi
4089echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4090echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4091if test "$ac_test_CXXFLAGS" = set; then
4092 CXXFLAGS=$ac_save_CXXFLAGS
4093elif test $ac_cv_prog_cxx_g = yes; then
4094 if test "$GXX" = yes; then
4095 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004096 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004097 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004098 fi
4099else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004100 if test "$GXX" = yes; then
4101 CXXFLAGS="-O2"
4102 else
4103 CXXFLAGS=
4104 fi
John Criswell7a73b802003-06-30 21:59:07 +00004105fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004106for ac_declaration in \
4107 '' \
4108 'extern "C" void std::exit (int) throw (); using std::exit;' \
4109 'extern "C" void std::exit (int); using std::exit;' \
4110 'extern "C" void exit (int) throw ();' \
4111 'extern "C" void exit (int);' \
4112 'void exit (int);'
4113do
4114 cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
4120$ac_declaration
4121#include <stdlib.h>
4122int
4123main ()
4124{
4125exit (42);
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext
4131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132 (eval $ac_compile) 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_cxx_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004152 :
4153else
4154 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004155sed 's/^/| /' conftest.$ac_ext >&5
4156
John Criswell7a73b802003-06-30 21:59:07 +00004157continue
4158fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004160 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004166$ac_declaration
4167int
4168main ()
4169{
4170exit (42);
4171 ;
4172 return 0;
4173}
John Criswell7a73b802003-06-30 21:59:07 +00004174_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004175rm -f conftest.$ac_objext
4176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004178 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004179 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004183 (exit $ac_status); } &&
4184 { ac_try='test -z "$ac_cxx_werror_flag"
4185 || test ! -s conftest.err'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004197 break
John Criswell7a73b802003-06-30 21:59:07 +00004198else
4199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004200sed 's/^/| /' conftest.$ac_ext >&5
4201
John Criswell7a73b802003-06-30 21:59:07 +00004202fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004204done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004205rm -f conftest*
4206if test -n "$ac_declaration"; then
4207 echo '#ifdef __cplusplus' >>confdefs.h
4208 echo $ac_declaration >>confdefs.h
4209 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004210fi
4211
4212ac_ext=c
4213ac_cpp='$CPP $CPPFLAGS'
4214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217
John Criswell7a73b802003-06-30 21:59:07 +00004218echo "$as_me:$LINENO: checking " >&5
4219echo $ECHO_N "checking ... $ECHO_C" >&6
4220if test "${ac_cv_has_flex+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223 for ac_prog in flex lex
4224do
4225 # Extract the first word of "$ac_prog", so it can be a program name with args.
4226set dummy $ac_prog; ac_word=$2
4227echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229if test "${ac_cv_prog_LEX+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
4232 if test -n "$LEX"; then
4233 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_LEX="$ac_prog"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247done
4248
4249fi
4250fi
4251LEX=$ac_cv_prog_LEX
4252if test -n "$LEX"; then
4253 echo "$as_me:$LINENO: result: $LEX" >&5
4254echo "${ECHO_T}$LEX" >&6
4255else
4256 echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
4258fi
4259
4260 test -n "$LEX" && break
4261done
4262test -n "$LEX" || LEX=":"
4263
4264if test -z "$LEXLIB"
4265then
4266 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4267echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4268if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271 ac_check_lib_save_LIBS=$LIBS
4272LIBS="-lfl $LIBS"
4273cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004274/* confdefs.h. */
4275_ACEOF
4276cat confdefs.h >>conftest.$ac_ext
4277cat >>conftest.$ac_ext <<_ACEOF
4278/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004279
4280/* Override any gcc2 internal prototype to avoid an error. */
4281#ifdef __cplusplus
4282extern "C"
4283#endif
4284/* We use char because int might match the return type of a gcc2
4285 builtin and then its argument prototype would still apply. */
4286char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004287int
4288main ()
4289{
4290yywrap ();
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295rm -f conftest.$ac_objext conftest$ac_exeext
4296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004297 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004304 { ac_try='test -z "$ac_c_werror_flag"
4305 || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_lib_fl_yywrap=yes
4318else
4319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004320sed 's/^/| /' conftest.$ac_ext >&5
4321
John Criswell7a73b802003-06-30 21:59:07 +00004322ac_cv_lib_fl_yywrap=no
4323fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004324rm -f conftest.err conftest.$ac_objext \
4325 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004326LIBS=$ac_check_lib_save_LIBS
4327fi
4328echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4329echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4330if test $ac_cv_lib_fl_yywrap = yes; then
4331 LEXLIB="-lfl"
4332else
4333 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4334echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4335if test "${ac_cv_lib_l_yywrap+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338 ac_check_lib_save_LIBS=$LIBS
4339LIBS="-ll $LIBS"
4340cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004346
4347/* Override any gcc2 internal prototype to avoid an error. */
4348#ifdef __cplusplus
4349extern "C"
4350#endif
4351/* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4353char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004354int
4355main ()
4356{
4357yywrap ();
4358 ;
4359 return 0;
4360}
4361_ACEOF
4362rm -f conftest.$ac_objext conftest$ac_exeext
4363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004364 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 ac_cv_lib_l_yywrap=yes
4385else
4386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004387sed 's/^/| /' conftest.$ac_ext >&5
4388
John Criswell7a73b802003-06-30 21:59:07 +00004389ac_cv_lib_l_yywrap=no
4390fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004391rm -f conftest.err conftest.$ac_objext \
4392 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004393LIBS=$ac_check_lib_save_LIBS
4394fi
4395echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4396echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4397if test $ac_cv_lib_l_yywrap = yes; then
4398 LEXLIB="-ll"
4399fi
4400
4401fi
4402
4403fi
4404
4405if test "x$LEX" != "x:"; then
4406 echo "$as_me:$LINENO: checking lex output file root" >&5
4407echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4408if test "${ac_cv_prog_lex_root+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 # The minimal lex program is just a single line: %%. But some broken lexes
4412# (Solaris, I think it was) want two %% lines, so accommodate them.
4413cat >conftest.l <<_ACEOF
4414%%
4415%%
4416_ACEOF
4417{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4418 (eval $LEX conftest.l) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }
4422if test -f lex.yy.c; then
4423 ac_cv_prog_lex_root=lex.yy
4424elif test -f lexyy.c; then
4425 ac_cv_prog_lex_root=lexyy
4426else
4427 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4428echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4429 { (exit 1); exit 1; }; }
4430fi
4431fi
4432echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4433echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4434rm -f conftest.l
4435LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4436
4437echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4438echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4439if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442 # POSIX says lex can declare yytext either as a pointer or an array; the
4443# default is implementation-dependent. Figure out which it is, since
4444# not all implementations provide the %pointer and %array declarations.
4445ac_cv_prog_lex_yytext_pointer=no
4446echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4447ac_save_LIBS=$LIBS
4448LIBS="$LIBS $LEXLIB"
4449cat >conftest.$ac_ext <<_ACEOF
4450`cat $LEX_OUTPUT_ROOT.c`
4451_ACEOF
4452rm -f conftest.$ac_objext conftest$ac_exeext
4453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004454 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004455 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004461 { ac_try='test -z "$ac_c_werror_flag"
4462 || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_prog_lex_yytext_pointer=yes
4475else
4476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004477sed 's/^/| /' conftest.$ac_ext >&5
4478
John Criswell7a73b802003-06-30 21:59:07 +00004479fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004480rm -f conftest.err conftest.$ac_objext \
4481 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004482LIBS=$ac_save_LIBS
4483rm -f "${LEX_OUTPUT_ROOT}.c"
4484
4485fi
4486echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4487echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4488if test $ac_cv_prog_lex_yytext_pointer = yes; then
4489
4490cat >>confdefs.h <<\_ACEOF
4491#define YYTEXT_POINTER 1
4492_ACEOF
4493
4494fi
4495
4496fi
4497
4498fi
4499echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4500echo "${ECHO_T}$ac_cv_has_flex" >&6
4501if test "$LEX" != "flex"; then
4502 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4503echo "$as_me: error: flex not found but required" >&2;}
4504 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004505else
4506 FLEX=flex
4507
John Criswell7a73b802003-06-30 21:59:07 +00004508fi
4509
4510echo "$as_me:$LINENO: checking " >&5
4511echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004512if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 for ac_prog in 'bison -y' byacc
4516do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518set dummy $ac_prog; ac_word=$2
4519echo "$as_me:$LINENO: checking for $ac_word" >&5
4520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521if test "${ac_cv_prog_YACC+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523else
4524 if test -n "$YACC"; then
4525 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_YACC="$ac_prog"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538done
4539done
4540
4541fi
4542fi
4543YACC=$ac_cv_prog_YACC
4544if test -n "$YACC"; then
4545 echo "$as_me:$LINENO: result: $YACC" >&5
4546echo "${ECHO_T}$YACC" >&6
4547else
4548 echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6
4550fi
4551
4552 test -n "$YACC" && break
4553done
4554test -n "$YACC" || YACC="yacc"
4555
John Criswell7a73b802003-06-30 21:59:07 +00004556fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004557echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4558echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004559if test "$YACC" != "bison -y"; then
4560 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4561echo "$as_me: error: bison not found but required" >&2;}
4562 { (exit 1); exit 1; }; }
4563else
Brian Gaeke12810632004-01-13 06:52:10 +00004564 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004565
4566fi
4567
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004568echo "$as_me:$LINENO: checking for GNU make" >&5
4569echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4570if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004573 llvm_cv_gnu_make_command=''
4574 for a in "$MAKE" make gmake gnumake ; do
4575 if test -z "$a" ; then continue ; fi ;
4576 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4577 then
4578 llvm_cv_gnu_make_command=$a ;
4579 break;
John Criswell47fdd832003-07-14 16:52:07 +00004580 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004581 done
John Criswell7a73b802003-06-30 21:59:07 +00004582fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004583echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4584echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4585 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4586 ifGNUmake='' ;
4587 else
4588 ifGNUmake='#' ;
4589 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4590echo "${ECHO_T}\"Not found\"" >&6;
4591 fi
John Criswell7a73b802003-06-30 21:59:07 +00004592
John Criswell7a73b802003-06-30 21:59:07 +00004593
4594echo "$as_me:$LINENO: checking whether ln -s works" >&5
4595echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4596LN_S=$as_ln_s
4597if test "$LN_S" = "ln -s"; then
4598 echo "$as_me:$LINENO: result: yes" >&5
4599echo "${ECHO_T}yes" >&6
4600else
4601 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4602echo "${ECHO_T}no, using $LN_S" >&6
4603fi
4604
Reid Spencer8a2d4712004-12-16 17:48:14 +00004605# Extract the first word of "cmp", so it can be a program name with args.
4606set dummy cmp; ac_word=$2
4607echo "$as_me:$LINENO: checking for $ac_word" >&5
4608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609if test "${ac_cv_path_CMP+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
4612 case $CMP in
4613 [\\/]* | ?:[\\/]*)
4614 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4615 ;;
4616 *)
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628done
4629done
4630
4631 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4632 ;;
4633esac
4634fi
4635CMP=$ac_cv_path_CMP
4636
4637if test -n "$CMP"; then
4638 echo "$as_me:$LINENO: result: $CMP" >&5
4639echo "${ECHO_T}$CMP" >&6
4640else
4641 echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
4643fi
4644
4645# Extract the first word of "cp", so it can be a program name with args.
4646set dummy cp; ac_word=$2
4647echo "$as_me:$LINENO: checking for $ac_word" >&5
4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649if test "${ac_cv_path_CP+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652 case $CP in
4653 [\\/]* | ?:[\\/]*)
4654 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4655 ;;
4656 *)
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670
4671 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4672 ;;
4673esac
4674fi
4675CP=$ac_cv_path_CP
4676
4677if test -n "$CP"; then
4678 echo "$as_me:$LINENO: result: $CP" >&5
4679echo "${ECHO_T}$CP" >&6
4680else
4681 echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6
4683fi
4684
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004685# Extract the first word of "date", so it can be a program name with args.
4686set dummy date; ac_word=$2
4687echo "$as_me:$LINENO: checking for $ac_word" >&5
4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4689if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004692 case $DATE in
4693 [\\/]* | ?:[\\/]*)
4694 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004695 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004696 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004707 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004708done
4709done
John Criswell7a73b802003-06-30 21:59:07 +00004710
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004711 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004712 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004713esac
John Criswell7a73b802003-06-30 21:59:07 +00004714fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004715DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004716
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004717if test -n "$DATE"; then
4718 echo "$as_me:$LINENO: result: $DATE" >&5
4719echo "${ECHO_T}$DATE" >&6
4720else
4721 echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6
4723fi
John Criswell7a73b802003-06-30 21:59:07 +00004724
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004725# Extract the first word of "find", so it can be a program name with args.
4726set dummy find; ac_word=$2
4727echo "$as_me:$LINENO: checking for $ac_word" >&5
4728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004732 case $FIND in
4733 [\\/]* | ?:[\\/]*)
4734 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4735 ;;
4736 *)
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749done
4750
4751 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4752 ;;
4753esac
4754fi
4755FIND=$ac_cv_path_FIND
4756
4757if test -n "$FIND"; then
4758 echo "$as_me:$LINENO: result: $FIND" >&5
4759echo "${ECHO_T}$FIND" >&6
4760else
4761 echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763fi
4764
4765# Extract the first word of "grep", so it can be a program name with args.
4766set dummy grep; ac_word=$2
4767echo "$as_me:$LINENO: checking for $ac_word" >&5
4768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769if test "${ac_cv_path_GREP+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771else
4772 case $GREP in
4773 [\\/]* | ?:[\\/]*)
4774 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4775 ;;
4776 *)
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788done
4789done
4790
4791 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4792 ;;
4793esac
4794fi
4795GREP=$ac_cv_path_GREP
4796
4797if test -n "$GREP"; then
4798 echo "$as_me:$LINENO: result: $GREP" >&5
4799echo "${ECHO_T}$GREP" >&6
4800else
4801 echo "$as_me:$LINENO: result: no" >&5
4802echo "${ECHO_T}no" >&6
4803fi
4804
4805# Extract the first word of "mkdir", so it can be a program name with args.
4806set dummy mkdir; ac_word=$2
4807echo "$as_me:$LINENO: checking for $ac_word" >&5
4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809if test "${ac_cv_path_MKDIR+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 case $MKDIR in
4813 [\\/]* | ?:[\\/]*)
4814 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4815 ;;
4816 *)
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828done
4829done
4830
4831 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4832 ;;
4833esac
4834fi
4835MKDIR=$ac_cv_path_MKDIR
4836
4837if test -n "$MKDIR"; then
4838 echo "$as_me:$LINENO: result: $MKDIR" >&5
4839echo "${ECHO_T}$MKDIR" >&6
4840else
4841 echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
4843fi
4844
4845# Extract the first word of "mv", so it can be a program name with args.
4846set dummy mv; ac_word=$2
4847echo "$as_me:$LINENO: checking for $ac_word" >&5
4848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849if test "${ac_cv_path_MV+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852 case $MV in
4853 [\\/]* | ?:[\\/]*)
4854 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4855 ;;
4856 *)
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868done
4869done
4870
4871 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4872 ;;
4873esac
4874fi
4875MV=$ac_cv_path_MV
4876
4877if test -n "$MV"; then
4878 echo "$as_me:$LINENO: result: $MV" >&5
4879echo "${ECHO_T}$MV" >&6
4880else
4881 echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883fi
4884
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004885if test -n "$ac_tool_prefix"; then
4886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4887set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893 if test -n "$RANLIB"; then
4894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4895else
4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907done
4908done
4909
4910fi
4911fi
4912RANLIB=$ac_cv_prog_RANLIB
4913if test -n "$RANLIB"; then
4914 echo "$as_me:$LINENO: result: $RANLIB" >&5
4915echo "${ECHO_T}$RANLIB" >&6
4916else
4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
4919fi
4920
4921fi
4922if test -z "$ac_cv_prog_RANLIB"; then
4923 ac_ct_RANLIB=$RANLIB
4924 # Extract the first word of "ranlib", so it can be a program name with args.
4925set dummy ranlib; ac_word=$2
4926echo "$as_me:$LINENO: checking for $ac_word" >&5
4927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
4931 if test -n "$ac_ct_RANLIB"; then
4932 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4933else
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_RANLIB="ranlib"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945done
4946done
4947
4948 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4949fi
4950fi
4951ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4952if test -n "$ac_ct_RANLIB"; then
4953 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4954echo "${ECHO_T}$ac_ct_RANLIB" >&6
4955else
4956 echo "$as_me:$LINENO: result: no" >&5
4957echo "${ECHO_T}no" >&6
4958fi
4959
4960 RANLIB=$ac_ct_RANLIB
4961else
4962 RANLIB="$ac_cv_prog_RANLIB"
4963fi
4964
4965# Extract the first word of "rm", so it can be a program name with args.
4966set dummy rm; 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_path_RM+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972 case $RM in
4973 [\\/]* | ?:[\\/]*)
4974 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4975 ;;
4976 *)
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988done
4989done
4990
4991 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4992 ;;
4993esac
4994fi
4995RM=$ac_cv_path_RM
4996
4997if test -n "$RM"; then
4998 echo "$as_me:$LINENO: result: $RM" >&5
4999echo "${ECHO_T}$RM" >&6
5000else
5001 echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
5003fi
5004
5005# Extract the first word of "sed", so it can be a program name with args.
5006set dummy sed; ac_word=$2
5007echo "$as_me:$LINENO: checking for $ac_word" >&5
5008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009if test "${ac_cv_path_SED+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 case $SED in
5013 [\\/]* | ?:[\\/]*)
5014 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5015 ;;
5016 *)
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028done
5029done
5030
5031 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5032 ;;
5033esac
5034fi
5035SED=$ac_cv_path_SED
5036
5037if test -n "$SED"; then
5038 echo "$as_me:$LINENO: result: $SED" >&5
5039echo "${ECHO_T}$SED" >&6
5040else
5041 echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043fi
5044
5045# Extract the first word of "tar", so it can be a program name with args.
5046set dummy tar; ac_word=$2
5047echo "$as_me:$LINENO: checking for $ac_word" >&5
5048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5049if test "${ac_cv_path_TAR+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052 case $TAR in
5053 [\\/]* | ?:[\\/]*)
5054 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5055 ;;
5056 *)
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068done
5069done
5070
5071 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5072 ;;
5073esac
5074fi
5075TAR=$ac_cv_path_TAR
5076
5077if test -n "$TAR"; then
5078 echo "$as_me:$LINENO: result: $TAR" >&5
5079echo "${ECHO_T}$TAR" >&6
5080else
5081 echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
5083fi
5084
Reid Spencer8a2246f2005-07-13 03:20:14 +00005085# Extract the first word of "Graphviz", so it can be a program name with args.
5086set dummy Graphviz; ac_word=$2
5087echo "$as_me:$LINENO: checking for $ac_word" >&5
5088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091else
5092 case $GRAPHVIZ in
5093 [\\/]* | ?:[\\/]*)
5094 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5095 ;;
5096 *)
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108done
5109done
5110
Reid Spencerc232a652005-07-14 02:25:12 +00005111 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005112 ;;
5113esac
5114fi
5115GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5116
5117if test -n "$GRAPHVIZ"; then
5118 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5119echo "${ECHO_T}$GRAPHVIZ" >&6
5120else
5121 echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6
5123fi
5124
Reid Spencerc232a652005-07-14 02:25:12 +00005125if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005126
5127cat >>confdefs.h <<\_ACEOF
5128#define HAVE_GRAPHVIZ 1
5129_ACEOF
5130
Reid Spencerc232a652005-07-14 02:25:12 +00005131
Reid Spencerbe130282005-07-14 05:19:12 +00005132cat >>confdefs.h <<_ACEOF
Reid Spencerc232a652005-07-14 02:25:12 +00005133#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5134_ACEOF
5135
Reid Spencer8a2246f2005-07-13 03:20:14 +00005136fi
Reid Spencerbe130282005-07-14 05:19:12 +00005137# Extract the first word of "gv", so it can be a program name with args.
5138set dummy gv; ac_word=$2
5139echo "$as_me:$LINENO: checking for $ac_word" >&5
5140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5141if test "${ac_cv_path_GV+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
5144 case $GV in
5145 [\\/]* | ?:[\\/]*)
5146 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5147 ;;
5148 *)
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160done
5161done
5162
5163 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5164 ;;
5165esac
5166fi
5167GV=$ac_cv_path_GV
5168
5169if test -n "$GV"; then
5170 echo "$as_me:$LINENO: result: $GV" >&5
5171echo "${ECHO_T}$GV" >&6
5172else
5173 echo "$as_me:$LINENO: result: no" >&5
5174echo "${ECHO_T}no" >&6
5175fi
5176
Misha Brukmanf83d4062005-11-01 21:00:49 +00005177if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005178
5179cat >>confdefs.h <<\_ACEOF
5180#define HAVE_GV 1
5181_ACEOF
5182
5183
5184cat >>confdefs.h <<_ACEOF
5185#define LLVM_PATH_GV "$GV"
5186_ACEOF
5187
5188fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005189
5190# Find a good install program. We prefer a C program (faster),
5191# so one script is as good as another. But avoid the broken or
5192# incompatible versions:
5193# SysV /etc/install, /usr/sbin/install
5194# SunOS /usr/etc/install
5195# IRIX /sbin/install
5196# AIX /bin/install
5197# AmigaOS /C/install, which installs bootblocks on floppy discs
5198# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5199# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5200# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5201# OS/2's system install, which has a completely different semantic
5202# ./install, which can be erroneously created by make from ./install.sh.
5203echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5204echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5205if test -z "$INSTALL"; then
5206if test "${ac_cv_path_install+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 # Account for people who put trailing slashes in PATH elements.
5215case $as_dir/ in
5216 ./ | .// | /cC/* | \
5217 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5218 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5219 /usr/ucb/* ) ;;
5220 *)
5221 # OSF1 and SCO ODT 3.0 have their own names for install.
5222 # Don't use installbsd from OSF since it installs stuff as root
5223 # by default.
5224 for ac_prog in ginstall scoinst install; do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5227 if test $ac_prog = install &&
5228 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5229 # AIX install. It has an incompatible calling convention.
5230 :
5231 elif test $ac_prog = install &&
5232 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5233 # program-specific install script used by HP pwplus--don't use.
5234 :
5235 else
5236 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5237 break 3
5238 fi
5239 fi
5240 done
5241 done
5242 ;;
5243esac
5244done
5245
5246
5247fi
5248 if test "${ac_cv_path_install+set}" = set; then
5249 INSTALL=$ac_cv_path_install
5250 else
5251 # As a last resort, use the slow shell script. We don't cache a
5252 # path for INSTALL within a source directory, because that will
5253 # break other packages using the cache if that directory is
5254 # removed, or if the path is relative.
5255 INSTALL=$ac_install_sh
5256 fi
5257fi
5258echo "$as_me:$LINENO: result: $INSTALL" >&5
5259echo "${ECHO_T}$INSTALL" >&6
5260
5261# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5262# It thinks the first close brace ends the variable substitution.
5263test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5264
5265test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5266
5267test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5268
5269
5270# Extract the first word of "bzip2", so it can be a program name with args.
5271set dummy bzip2; ac_word=$2
5272echo "$as_me:$LINENO: checking for $ac_word" >&5
5273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274if test "${ac_cv_path_BZIP2+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277 case $BZIP2 in
5278 [\\/]* | ?:[\\/]*)
5279 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5280 ;;
5281 *)
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293done
5294done
5295
5296 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5297 ;;
5298esac
5299fi
5300BZIP2=$ac_cv_path_BZIP2
5301
5302if test -n "$BZIP2"; then
5303 echo "$as_me:$LINENO: result: $BZIP2" >&5
5304echo "${ECHO_T}$BZIP2" >&6
5305else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308fi
5309
5310# Extract the first word of "dot", so it can be a program name with args.
5311set dummy dot; ac_word=$2
5312echo "$as_me:$LINENO: checking for $ac_word" >&5
5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314if test "${ac_cv_path_DOT+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317 case $DOT in
5318 [\\/]* | ?:[\\/]*)
5319 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5320 ;;
5321 *)
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH
5324do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333done
5334done
5335
5336 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5337 ;;
5338esac
5339fi
5340DOT=$ac_cv_path_DOT
5341
5342if test -n "$DOT"; then
5343 echo "$as_me:$LINENO: result: $DOT" >&5
5344echo "${ECHO_T}$DOT" >&6
5345else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348fi
5349
5350# Extract the first word of "doxygen", so it can be a program name with args.
5351set dummy doxygen; ac_word=$2
5352echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354if test "${ac_cv_path_DOXYGEN+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 case $DOXYGEN in
5358 [\\/]* | ?:[\\/]*)
5359 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5360 ;;
5361 *)
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373done
5374done
5375
5376 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5377 ;;
5378esac
5379fi
5380DOXYGEN=$ac_cv_path_DOXYGEN
5381
5382if test -n "$DOXYGEN"; then
5383 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5384echo "${ECHO_T}$DOXYGEN" >&6
5385else
5386 echo "$as_me:$LINENO: result: no" >&5
5387echo "${ECHO_T}no" >&6
5388fi
5389
5390# Extract the first word of "etags", so it can be a program name with args.
5391set dummy etags; ac_word=$2
5392echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394if test "${ac_cv_path_ETAGS+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 case $ETAGS in
5398 [\\/]* | ?:[\\/]*)
5399 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5400 ;;
5401 *)
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415
5416 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5417 ;;
5418esac
5419fi
5420ETAGS=$ac_cv_path_ETAGS
5421
5422if test -n "$ETAGS"; then
5423 echo "$as_me:$LINENO: result: $ETAGS" >&5
5424echo "${ECHO_T}$ETAGS" >&6
5425else
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428fi
5429
5430# Extract the first word of "groff", so it can be a program name with args.
5431set dummy groff; ac_word=$2
5432echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434if test "${ac_cv_path_GROFF+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 case $GROFF in
5438 [\\/]* | ?:[\\/]*)
5439 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5440 ;;
5441 *)
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
5454done
5455
5456 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5457 ;;
5458esac
5459fi
5460GROFF=$ac_cv_path_GROFF
5461
5462if test -n "$GROFF"; then
5463 echo "$as_me:$LINENO: result: $GROFF" >&5
5464echo "${ECHO_T}$GROFF" >&6
5465else
5466 echo "$as_me:$LINENO: result: no" >&5
5467echo "${ECHO_T}no" >&6
5468fi
5469
5470# Extract the first word of "gzip", so it can be a program name with args.
5471set dummy gzip; ac_word=$2
5472echo "$as_me:$LINENO: checking for $ac_word" >&5
5473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474if test "${ac_cv_path_GZIP+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477 case $GZIP in
5478 [\\/]* | ?:[\\/]*)
5479 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5480 ;;
5481 *)
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493done
5494done
5495
5496 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5497 ;;
5498esac
5499fi
5500GZIP=$ac_cv_path_GZIP
5501
5502if test -n "$GZIP"; then
5503 echo "$as_me:$LINENO: result: $GZIP" >&5
5504echo "${ECHO_T}$GZIP" >&6
5505else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508fi
5509
5510# Extract the first word of "pod2html", so it can be a program name with args.
5511set dummy pod2html; ac_word=$2
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514if test "${ac_cv_path_POD2HTML+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 case $POD2HTML in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
5536 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5537 ;;
5538esac
5539fi
5540POD2HTML=$ac_cv_path_POD2HTML
5541
5542if test -n "$POD2HTML"; then
5543 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5544echo "${ECHO_T}$POD2HTML" >&6
5545else
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549
5550# Extract the first word of "pod2man", so it can be a program name with args.
5551set dummy pod2man; ac_word=$2
5552echo "$as_me:$LINENO: checking for $ac_word" >&5
5553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554if test "${ac_cv_path_POD2MAN+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 case $POD2MAN in
5558 [\\/]* | ?:[\\/]*)
5559 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5560 ;;
5561 *)
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573done
5574done
5575
5576 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5577 ;;
5578esac
5579fi
5580POD2MAN=$ac_cv_path_POD2MAN
5581
5582if test -n "$POD2MAN"; then
5583 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5584echo "${ECHO_T}$POD2MAN" >&6
5585else
5586 echo "$as_me:$LINENO: result: no" >&5
5587echo "${ECHO_T}no" >&6
5588fi
5589
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005590# Extract the first word of "runtest", so it can be a program name with args.
5591set dummy runtest; ac_word=$2
5592echo "$as_me:$LINENO: checking for $ac_word" >&5
5593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594if test "${ac_cv_path_RUNTEST+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 case $RUNTEST in
5598 [\\/]* | ?:[\\/]*)
5599 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5600 ;;
5601 *)
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613done
5614done
5615
5616 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5617 ;;
5618esac
5619fi
5620RUNTEST=$ac_cv_path_RUNTEST
5621
5622if test -n "$RUNTEST"; then
5623 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5624echo "${ECHO_T}$RUNTEST" >&6
5625else
5626 echo "$as_me:$LINENO: result: no" >&5
5627echo "${ECHO_T}no" >&6
5628fi
5629
Reid Spencer0fcb9412004-11-30 08:11:54 +00005630
Reid Spencer0fcb9412004-11-30 08:11:54 +00005631no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005632echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5633echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005634
5635# Check whether --with-tclinclude or --without-tclinclude was given.
5636if test "${with_tclinclude+set}" = set; then
5637 withval="$with_tclinclude"
5638 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005639else
5640 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005641fi;
5642if test "${ac_cv_path_tclsh+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645
5646if test x"${with_tclinclude}" != x ; then
5647 if test -f ${with_tclinclude}/tclsh ; then
5648 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5649 elif test -f ${with_tclinclude}/src/tclsh ; then
5650 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5651 else
5652 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5653echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5654 { (exit 1); exit 1; }; }
5655 fi
5656fi
5657
Reid Spencer0fcb9412004-11-30 08:11:54 +00005658if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005659 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005660echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005661 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 +00005662do
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005665echo "$as_me:$LINENO: checking for $ac_word" >&5
5666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005667if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
Reid Spencercda35f82004-12-02 04:17:20 +00005670 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005671 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005672 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005673 ;;
5674 *)
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005682 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686done
5687done
5688
5689 ;;
5690esac
5691fi
Reid Spencercda35f82004-12-02 04:17:20 +00005692TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005693
Reid Spencercda35f82004-12-02 04:17:20 +00005694if test -n "$TCLSH"; then
5695 echo "$as_me:$LINENO: result: $TCLSH" >&5
5696echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005697else
5698 echo "$as_me:$LINENO: result: no" >&5
5699echo "${ECHO_T}no" >&6
5700fi
5701
Reid Spencercda35f82004-12-02 04:17:20 +00005702 test -n "$TCLSH" && break
5703done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005704
Reid Spencercda35f82004-12-02 04:17:20 +00005705 if test x"${TCLSH}" = x ; then
5706 ac_cv_path_tclsh='';
5707 else
5708 ac_cv_path_tclsh="${TCLSH}";
5709 fi
5710else
5711 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5712echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5713 TCLSH="${ac_cv_path_tclsh}"
5714
5715fi
5716
5717fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005718
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005719# Extract the first word of "zip", so it can be a program name with args.
5720set dummy zip; ac_word=$2
5721echo "$as_me:$LINENO: checking for $ac_word" >&5
5722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5723if test "${ac_cv_path_ZIP+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726 case $ZIP in
5727 [\\/]* | ?:[\\/]*)
5728 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5729 ;;
5730 *)
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5741 fi
5742done
5743done
5744
5745 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5746 ;;
5747esac
5748fi
5749ZIP=$ac_cv_path_ZIP
5750
5751if test -n "$ZIP"; then
5752 echo "$as_me:$LINENO: result: $ZIP" >&5
5753echo "${ECHO_T}$ZIP" >&6
5754else
5755 echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757fi
5758
5759
5760echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5761echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5762if test "${llvm_cv_link_use_r+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005766ac_cpp='$CPP $CPPFLAGS'
5767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769ac_compiler_gnu=$ac_cv_c_compiler_gnu
5770
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005771 oldcflags="$CFLAGS"
5772 CFLAGS="$CFLAGS -Wl,-R."
5773 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005774/* confdefs.h. */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005779
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005780int
5781main ()
5782{
5783int main() { return 0; }
5784 ;
5785 return 0;
5786}
John Criswell47fdd832003-07-14 16:52:07 +00005787_ACEOF
5788rm -f conftest.$ac_objext conftest$ac_exeext
5789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005790 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005796 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005797 { ac_try='test -z "$ac_c_werror_flag"
5798 || test ! -s conftest.err'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; } &&
5804 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 (eval $ac_try) 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005810 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005811else
John Criswell47fdd832003-07-14 16:52:07 +00005812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005813sed 's/^/| /' conftest.$ac_ext >&5
5814
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005815llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005816fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005817rm -f conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005819 CFLAGS="$oldcflags"
5820 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005821ac_cpp='$CPP $CPPFLAGS'
5822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005826
John Criswell7a73b802003-06-30 21:59:07 +00005827fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005828echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5829echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5830if test "$llvm_cv_link_use_r" = yes ; then
5831
5832cat >>confdefs.h <<\_ACEOF
5833#define HAVE_LINK_R 1
5834_ACEOF
5835
John Criswell47fdd832003-07-14 16:52:07 +00005836 fi
John Criswell47fdd832003-07-14 16:52:07 +00005837
John Criswell47fdd832003-07-14 16:52:07 +00005838
John Criswell47fdd832003-07-14 16:52:07 +00005839
John Criswell7a73b802003-06-30 21:59:07 +00005840
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005841echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5842echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5843if test "${ac_cv_c_const+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845else
5846 cat >conftest.$ac_ext <<_ACEOF
5847/* confdefs.h. */
5848_ACEOF
5849cat confdefs.h >>conftest.$ac_ext
5850cat >>conftest.$ac_ext <<_ACEOF
5851/* end confdefs.h. */
5852
5853int
5854main ()
5855{
5856/* FIXME: Include the comments suggested by Paul. */
5857#ifndef __cplusplus
5858 /* Ultrix mips cc rejects this. */
5859 typedef int charset[2];
5860 const charset x;
5861 /* SunOS 4.1.1 cc rejects this. */
5862 char const *const *ccp;
5863 char **p;
5864 /* NEC SVR4.0.2 mips cc rejects this. */
5865 struct point {int x, y;};
5866 static struct point const zero = {0,0};
5867 /* AIX XL C 1.02.0.0 rejects this.
5868 It does not let you subtract one const X* pointer from another in
5869 an arm of an if-expression whose if-part is not a constant
5870 expression */
5871 const char *g = "string";
5872 ccp = &g + (g ? g-g : 0);
5873 /* HPUX 7.0 cc rejects these. */
5874 ++ccp;
5875 p = (char**) ccp;
5876 ccp = (char const *const *) p;
5877 { /* SCO 3.2v4 cc rejects this. */
5878 char *t;
5879 char const *s = 0 ? (char *) 0 : (char const *) 0;
5880
5881 *t++ = 0;
5882 }
5883 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5884 int x[] = {25, 17};
5885 const int *foo = &x[0];
5886 ++foo;
5887 }
5888 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5889 typedef const int *iptr;
5890 iptr p = 0;
5891 ++p;
5892 }
5893 { /* AIX XL C 1.02.0.0 rejects this saying
5894 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5895 struct s { int j; const int *ap[3]; };
5896 struct s *b; b->j = 5;
5897 }
5898 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5899 const int foo = 10;
5900 }
5901#endif
5902
5903 ;
5904 return 0;
5905}
5906_ACEOF
5907rm -f conftest.$ac_objext
5908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag"
5917 || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_c_const=yes
5930else
5931 echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934ac_cv_c_const=no
5935fi
5936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5937fi
5938echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5939echo "${ECHO_T}$ac_cv_c_const" >&6
5940if test $ac_cv_c_const = no; then
5941
5942cat >>confdefs.h <<\_ACEOF
5943#define const
5944_ACEOF
5945
5946fi
5947
5948
5949echo "$as_me:$LINENO: checking for egrep" >&5
5950echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5951if test "${ac_cv_prog_egrep+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5955 then ac_cv_prog_egrep='grep -E'
5956 else ac_cv_prog_egrep='egrep'
5957 fi
5958fi
5959echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5960echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5961 EGREP=$ac_cv_prog_egrep
5962
John Criswell7a73b802003-06-30 21:59:07 +00005963
5964echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5965echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5966if test "${ac_cv_header_stdc+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005970/* confdefs.h. */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005975#include <stdlib.h>
5976#include <stdarg.h>
5977#include <string.h>
5978#include <float.h>
5979
John Criswell0c38eaf2003-09-10 15:17:25 +00005980int
5981main ()
5982{
5983
5984 ;
5985 return 0;
5986}
John Criswell7a73b802003-06-30 21:59:07 +00005987_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005988rm -f conftest.$ac_objext
5989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005990 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005996 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005997 { ac_try='test -z "$ac_c_werror_flag"
5998 || test ! -s conftest.err'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006010 ac_cv_header_stdc=yes
6011else
6012 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006013sed 's/^/| /' conftest.$ac_ext >&5
6014
6015ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006016fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006018
6019if test $ac_cv_header_stdc = yes; then
6020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6021 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006027#include <string.h>
6028
6029_ACEOF
6030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006031 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006032 :
6033else
6034 ac_cv_header_stdc=no
6035fi
6036rm -f conftest*
6037
6038fi
6039
6040if test $ac_cv_header_stdc = yes; then
6041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6042 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006043/* confdefs.h. */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
6047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006048#include <stdlib.h>
6049
6050_ACEOF
6051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006052 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006053 :
6054else
6055 ac_cv_header_stdc=no
6056fi
6057rm -f conftest*
6058
6059fi
6060
6061if test $ac_cv_header_stdc = yes; then
6062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6063 if test "$cross_compiling" = yes; then
6064 :
6065else
6066 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006067/* confdefs.h. */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006072#include <ctype.h>
6073#if ((' ' & 0x0FF) == 0x020)
6074# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6075# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6076#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006077# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006078 (('a' <= (c) && (c) <= 'i') \
6079 || ('j' <= (c) && (c) <= 'r') \
6080 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006081# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6082#endif
6083
6084#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6085int
6086main ()
6087{
6088 int i;
6089 for (i = 0; i < 256; i++)
6090 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006091 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006092 exit(2);
6093 exit (0);
6094}
6095_ACEOF
6096rm -f conftest$ac_exeext
6097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6098 (eval $ac_link) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 (eval $ac_try) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 :
6108else
6109 echo "$as_me: program exited with status $ac_status" >&5
6110echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006111sed 's/^/| /' conftest.$ac_ext >&5
6112
John Criswell7a73b802003-06-30 21:59:07 +00006113( exit $ac_status )
6114ac_cv_header_stdc=no
6115fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006116rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006117fi
6118fi
6119fi
6120echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6121echo "${ECHO_T}$ac_cv_header_stdc" >&6
6122if test $ac_cv_header_stdc = yes; then
6123
6124cat >>confdefs.h <<\_ACEOF
6125#define STDC_HEADERS 1
6126_ACEOF
6127
6128fi
6129
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006130
6131
6132
6133
6134
6135ac_header_dirent=no
6136for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6137 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6138echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6139echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6140if eval "test \"\${$as_ac_Header+set}\" = set"; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149#include <sys/types.h>
6150#include <$ac_hdr>
6151
6152int
6153main ()
6154{
6155if ((DIR *) 0)
6156return 0;
6157 ;
6158 return 0;
6159}
6160_ACEOF
6161rm -f conftest.$ac_objext
6162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6163 (eval $ac_compile) 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -z "$ac_c_werror_flag"
6171 || test ! -s conftest.err'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 eval "$as_ac_Header=yes"
6184else
6185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188eval "$as_ac_Header=no"
6189fi
6190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6191fi
6192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6194if test `eval echo '${'$as_ac_Header'}'` = yes; then
6195 cat >>confdefs.h <<_ACEOF
6196#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6197_ACEOF
6198
6199ac_header_dirent=$ac_hdr; break
6200fi
6201
6202done
6203# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6204if test $ac_header_dirent = dirent.h; then
6205 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6206echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6207if test "${ac_cv_search_opendir+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 ac_func_search_save_LIBS=$LIBS
6211ac_cv_search_opendir=no
6212cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h. */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h. */
6218
6219/* Override any gcc2 internal prototype to avoid an error. */
6220#ifdef __cplusplus
6221extern "C"
6222#endif
6223/* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6225char opendir ();
6226int
6227main ()
6228{
6229opendir ();
6230 ;
6231 return 0;
6232}
6233_ACEOF
6234rm -f conftest.$ac_objext conftest$ac_exeext
6235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6236 (eval $ac_link) 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -z "$ac_c_werror_flag"
6244 || test ! -s conftest.err'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; } &&
6250 { ac_try='test -s conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_cv_search_opendir="none required"
6257else
6258 echo "$as_me: failed program was:" >&5
6259sed 's/^/| /' conftest.$ac_ext >&5
6260
6261fi
6262rm -f conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext conftest.$ac_ext
6264if test "$ac_cv_search_opendir" = no; then
6265 for ac_lib in dir; do
6266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6267 cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
6273
6274/* Override any gcc2 internal prototype to avoid an error. */
6275#ifdef __cplusplus
6276extern "C"
6277#endif
6278/* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6280char opendir ();
6281int
6282main ()
6283{
6284opendir ();
6285 ;
6286 return 0;
6287}
6288_ACEOF
6289rm -f conftest.$ac_objext conftest$ac_exeext
6290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291 (eval $ac_link) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 (eval $ac_try) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest$ac_exeext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_search_opendir="-l$ac_lib"
6312break
6313else
6314 echo "$as_me: failed program was:" >&5
6315sed 's/^/| /' conftest.$ac_ext >&5
6316
6317fi
6318rm -f conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6320 done
6321fi
6322LIBS=$ac_func_search_save_LIBS
6323fi
6324echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6325echo "${ECHO_T}$ac_cv_search_opendir" >&6
6326if test "$ac_cv_search_opendir" != no; then
6327 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6328
6329fi
6330
6331else
6332 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6333echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6334if test "${ac_cv_search_opendir+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337 ac_func_search_save_LIBS=$LIBS
6338ac_cv_search_opendir=no
6339cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345
6346/* Override any gcc2 internal prototype to avoid an error. */
6347#ifdef __cplusplus
6348extern "C"
6349#endif
6350/* We use char because int might match the return type of a gcc2
6351 builtin and then its argument prototype would still apply. */
6352char opendir ();
6353int
6354main ()
6355{
6356opendir ();
6357 ;
6358 return 0;
6359}
6360_ACEOF
6361rm -f conftest.$ac_objext conftest$ac_exeext
6362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6363 (eval $ac_link) 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try='test -z "$ac_c_werror_flag"
6371 || test ! -s conftest.err'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_search_opendir="none required"
6384else
6385 echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388fi
6389rm -f conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext conftest.$ac_ext
6391if test "$ac_cv_search_opendir" = no; then
6392 for ac_lib in x; do
6393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6394 cat >conftest.$ac_ext <<_ACEOF
6395/* confdefs.h. */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h. */
6400
6401/* Override any gcc2 internal prototype to avoid an error. */
6402#ifdef __cplusplus
6403extern "C"
6404#endif
6405/* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6407char opendir ();
6408int
6409main ()
6410{
6411opendir ();
6412 ;
6413 return 0;
6414}
6415_ACEOF
6416rm -f conftest.$ac_objext conftest$ac_exeext
6417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_search_opendir="-l$ac_lib"
6439break
6440else
6441 echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
6443
6444fi
6445rm -f conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
6447 done
6448fi
6449LIBS=$ac_func_search_save_LIBS
6450fi
6451echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6452echo "${ECHO_T}$ac_cv_search_opendir" >&6
6453if test "$ac_cv_search_opendir" != no; then
6454 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6455
6456fi
6457
6458fi
6459
John Criswell7a73b802003-06-30 21:59:07 +00006460# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006471 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006472do
6473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6474echo "$as_me:$LINENO: checking for $ac_header" >&5
6475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6476if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006480/* confdefs.h. */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006485$ac_includes_default
6486
6487#include <$ac_header>
6488_ACEOF
6489rm -f conftest.$ac_objext
6490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006491 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006492 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006498 { ac_try='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 eval "$as_ac_Header=yes"
6512else
6513 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006514sed 's/^/| /' conftest.$ac_ext >&5
6515
John Criswell7a73b802003-06-30 21:59:07 +00006516eval "$as_ac_Header=no"
6517fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006519fi
6520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522if test `eval echo '${'$as_ac_Header'}'` = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6525_ACEOF
6526
6527fi
6528
6529done
6530
6531
6532
6533for ac_header in dlfcn.h
6534do
6535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006536if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006541fi
6542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006544else
Brian Gaeke0a621332004-09-08 20:38:05 +00006545 # Is the header compilable?
6546echo "$as_me:$LINENO: checking $ac_header usability" >&5
6547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6548cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006554$ac_includes_default
6555#include <$ac_header>
6556_ACEOF
6557rm -f conftest.$ac_objext
6558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006559 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006560 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006566 { ac_try='test -z "$ac_c_werror_flag"
6567 || test ! -s conftest.err'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 (eval $ac_try) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006579 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006580else
6581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006582sed 's/^/| /' conftest.$ac_ext >&5
6583
Brian Gaeke0a621332004-09-08 20:38:05 +00006584ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006585fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006587echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6588echo "${ECHO_T}$ac_header_compiler" >&6
6589
6590# Is the header present?
6591echo "$as_me:$LINENO: checking $ac_header presence" >&5
6592echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6593cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006594/* confdefs.h. */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h. */
6599#include <$ac_header>
6600_ACEOF
6601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } >/dev/null; then
6609 if test -s conftest.err; then
6610 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006612 else
6613 ac_cpp_err=
6614 fi
6615else
6616 ac_cpp_err=yes
6617fi
6618if test -z "$ac_cpp_err"; then
6619 ac_header_preproc=yes
6620else
6621 echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
6624 ac_header_preproc=no
6625fi
6626rm -f conftest.err conftest.$ac_ext
6627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6628echo "${ECHO_T}$ac_header_preproc" >&6
6629
6630# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6632 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6637 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006638 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006639 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006652 (
6653 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006654## ----------------------------------- ##
6655## Report this to llvmbugs@cs.uiuc.edu ##
6656## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006657_ASBOX
6658 ) |
6659 sed "s/^/$as_me: WARNING: /" >&2
6660 ;;
6661esac
6662echo "$as_me:$LINENO: checking for $ac_header" >&5
6663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6664if eval "test \"\${$as_ac_Header+set}\" = set"; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006667 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006668fi
6669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006671
6672fi
John Criswell7a73b802003-06-30 21:59:07 +00006673if test `eval echo '${'$as_ac_Header'}'` = yes; then
6674 cat >>confdefs.h <<_ACEOF
6675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6676_ACEOF
6677
6678fi
6679
6680done
6681
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006682# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6683if test "${enable_ltdl_install+set}" = set; then
6684 enableval="$enable_ltdl_install"
6685
6686fi;
6687
6688
6689
6690if test x"${enable_ltdl_install-no}" != xno; then
6691 INSTALL_LTDL_TRUE=
6692 INSTALL_LTDL_FALSE='#'
6693else
6694 INSTALL_LTDL_TRUE='#'
6695 INSTALL_LTDL_FALSE=
6696fi
6697
6698
6699
6700if test x"${enable_ltdl_convenience-no}" != xno; then
6701 CONVENIENCE_LTDL_TRUE=
6702 CONVENIENCE_LTDL_FALSE='#'
6703else
6704 CONVENIENCE_LTDL_TRUE='#'
6705 CONVENIENCE_LTDL_FALSE=
6706fi
6707
6708
6709echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6710echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6711library_names_spec=
6712libname_spec='lib$name'
6713soname_spec=
6714shrext_cmds=".so"
6715postinstall_cmds=
6716postuninstall_cmds=
6717finish_cmds=
6718finish_eval=
6719shlibpath_var=
6720shlibpath_overrides_runpath=unknown
6721version_type=none
6722dynamic_linker="$host_os ld.so"
6723sys_lib_dlsearch_path_spec="/lib /usr/lib"
6724if test "$GCC" = yes; then
6725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6726 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6727 # if the path contains ";" then we assume it to be the separator
6728 # otherwise default to the standard path separator (i.e. ":") - it is
6729 # assumed that no part of a normal pathname contains ";" but that should
6730 # okay in the real world where ";" in dirpaths is itself problematic.
6731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6732 else
6733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6734 fi
6735else
6736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6737fi
6738need_lib_prefix=unknown
6739hardcode_into_libs=no
6740
6741# when you set need_version to no, make sure it does not cause -set_version
6742# flags to be left without arguments
6743need_version=unknown
6744
6745case $host_os in
6746aix3*)
6747 version_type=linux
6748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6749 shlibpath_var=LIBPATH
6750
6751 # AIX 3 has no versioning support, so we append a major version to the name.
6752 soname_spec='${libname}${release}${shared_ext}$major'
6753 ;;
6754
6755aix4* | aix5*)
6756 version_type=linux
6757 need_lib_prefix=no
6758 need_version=no
6759 hardcode_into_libs=yes
6760 if test "$host_cpu" = ia64; then
6761 # AIX 5 supports IA64
6762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6763 shlibpath_var=LD_LIBRARY_PATH
6764 else
6765 # With GCC up to 2.95.x, collect2 would create an import file
6766 # for dependence libraries. The import file would start with
6767 # the line `#! .'. This would cause the generated library to
6768 # depend on `.', always an invalid library. This was fixed in
6769 # development snapshots of GCC prior to 3.0.
6770 case $host_os in
6771 aix4 | aix4.[01] | aix4.[01].*)
6772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6773 echo ' yes '
6774 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6775 :
6776 else
6777 can_build_shared=no
6778 fi
6779 ;;
6780 esac
6781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6782 # soname into executable. Probably we can add versioning support to
6783 # collect2, so additional links can be useful in future.
6784 if test "$aix_use_runtimelinking" = yes; then
6785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6786 # instead of lib<name>.a to let people know that these are not
6787 # typical AIX shared libraries.
6788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6789 else
6790 # We preserve .a as extension for shared libraries through AIX4.2
6791 # and later when we are not doing run time linking.
6792 library_names_spec='${libname}${release}.a $libname.a'
6793 soname_spec='${libname}${release}${shared_ext}$major'
6794 fi
6795 shlibpath_var=LIBPATH
6796 fi
6797 ;;
6798
6799amigaos*)
6800 library_names_spec='$libname.ixlibrary $libname.a'
6801 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6802 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'
6803 ;;
6804
6805beos*)
6806 library_names_spec='${libname}${shared_ext}'
6807 dynamic_linker="$host_os ld.so"
6808 shlibpath_var=LIBRARY_PATH
6809 ;;
6810
6811bsdi[45]*)
6812 version_type=linux
6813 need_version=no
6814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6815 soname_spec='${libname}${release}${shared_ext}$major'
6816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6817 shlibpath_var=LD_LIBRARY_PATH
6818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6820 # the default ld.so.conf also contains /usr/contrib/lib and
6821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6822 # libtool to hard-code these into programs
6823 ;;
6824
6825cygwin* | mingw* | pw32*)
6826 version_type=windows
6827 shrext_cmds=".dll"
6828 need_version=no
6829 need_lib_prefix=no
6830
6831 case $GCC,$host_os in
6832 yes,cygwin* | yes,mingw* | yes,pw32*)
6833 library_names_spec='$libname.dll.a'
6834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6835 postinstall_cmds='base_file=`basename \${file}`~
6836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6837 dldir=$destdir/`dirname \$dlpath`~
6838 test -d \$dldir || mkdir -p \$dldir~
6839 $install_prog $dir/$dlname \$dldir/$dlname'
6840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6841 dlpath=$dir/\$dldll~
6842 $rm \$dlpath'
6843 shlibpath_overrides_runpath=yes
6844
6845 case $host_os in
6846 cygwin*)
6847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6850 ;;
6851 mingw*)
6852 # MinGW DLLs use traditional 'lib' prefix
6853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6855 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6856 # It is most probably a Windows format PATH printed by
6857 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6858 # path with ; separators, and with drive letters. We can handle the
6859 # drive letters (cygwin fileutils understands them), so leave them,
6860 # especially as we might pass files found there to a mingw objdump,
6861 # which wouldn't understand a cygwinified path. Ahh.
6862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6863 else
6864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6865 fi
6866 ;;
6867 pw32*)
6868 # pw32 DLLs use 'pw' prefix rather than 'lib'
6869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6870 ;;
6871 esac
6872 ;;
6873
6874 *)
6875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6876 ;;
6877 esac
6878 dynamic_linker='Win32 ld.exe'
6879 # FIXME: first we should search . and the directory the executable is in
6880 shlibpath_var=PATH
6881 ;;
6882
6883darwin* | rhapsody*)
6884 dynamic_linker="$host_os dyld"
6885 version_type=darwin
6886 need_lib_prefix=no
6887 need_version=no
6888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6889 soname_spec='${libname}${release}${major}$shared_ext'
6890 shlibpath_overrides_runpath=yes
6891 shlibpath_var=DYLD_LIBRARY_PATH
6892 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6894 if test "$GCC" = yes; then
6895 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"`
6896 else
6897 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6898 fi
6899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6900 ;;
6901
6902dgux*)
6903 version_type=linux
6904 need_lib_prefix=no
6905 need_version=no
6906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6907 soname_spec='${libname}${release}${shared_ext}$major'
6908 shlibpath_var=LD_LIBRARY_PATH
6909 ;;
6910
6911freebsd1*)
6912 dynamic_linker=no
6913 ;;
6914
6915kfreebsd*-gnu)
6916 version_type=linux
6917 need_lib_prefix=no
6918 need_version=no
6919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6920 soname_spec='${libname}${release}${shared_ext}$major'
6921 shlibpath_var=LD_LIBRARY_PATH
6922 shlibpath_overrides_runpath=no
6923 hardcode_into_libs=yes
6924 dynamic_linker='GNU ld.so'
6925 ;;
6926
6927freebsd*)
6928 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6929 version_type=freebsd-$objformat
6930 case $version_type in
6931 freebsd-elf*)
6932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6933 need_version=no
6934 need_lib_prefix=no
6935 ;;
6936 freebsd-*)
6937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6938 need_version=yes
6939 ;;
6940 esac
6941 shlibpath_var=LD_LIBRARY_PATH
6942 case $host_os in
6943 freebsd2*)
6944 shlibpath_overrides_runpath=yes
6945 ;;
6946 freebsd3.01* | freebsdelf3.01*)
6947 shlibpath_overrides_runpath=yes
6948 hardcode_into_libs=yes
6949 ;;
6950 *) # from 3.2 on
6951 shlibpath_overrides_runpath=no
6952 hardcode_into_libs=yes
6953 ;;
6954 esac
6955 ;;
6956
6957gnu*)
6958 version_type=linux
6959 need_lib_prefix=no
6960 need_version=no
6961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6962 soname_spec='${libname}${release}${shared_ext}$major'
6963 shlibpath_var=LD_LIBRARY_PATH
6964 hardcode_into_libs=yes
6965 ;;
6966
6967hpux9* | hpux10* | hpux11*)
6968 # Give a soname corresponding to the major version so that dld.sl refuses to
6969 # link against other versions.
6970 version_type=sunos
6971 need_lib_prefix=no
6972 need_version=no
6973 case "$host_cpu" in
6974 ia64*)
6975 shrext_cmds='.so'
6976 hardcode_into_libs=yes
6977 dynamic_linker="$host_os dld.so"
6978 shlibpath_var=LD_LIBRARY_PATH
6979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6981 soname_spec='${libname}${release}${shared_ext}$major'
6982 if test "X$HPUX_IA64_MODE" = X32; then
6983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6984 else
6985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6986 fi
6987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6988 ;;
6989 hppa*64*)
6990 shrext_cmds='.sl'
6991 hardcode_into_libs=yes
6992 dynamic_linker="$host_os dld.sl"
6993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6996 soname_spec='${libname}${release}${shared_ext}$major'
6997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6999 ;;
7000 *)
7001 shrext_cmds='.sl'
7002 dynamic_linker="$host_os dld.sl"
7003 shlibpath_var=SHLIB_PATH
7004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7006 soname_spec='${libname}${release}${shared_ext}$major'
7007 ;;
7008 esac
7009 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7010 postinstall_cmds='chmod 555 $lib'
7011 ;;
7012
7013irix5* | irix6* | nonstopux*)
7014 case $host_os in
7015 nonstopux*) version_type=nonstopux ;;
7016 *)
7017 if test "$lt_cv_prog_gnu_ld" = yes; then
7018 version_type=linux
7019 else
7020 version_type=irix
7021 fi ;;
7022 esac
7023 need_lib_prefix=no
7024 need_version=no
7025 soname_spec='${libname}${release}${shared_ext}$major'
7026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7027 case $host_os in
7028 irix5* | nonstopux*)
7029 libsuff= shlibsuff=
7030 ;;
7031 *)
7032 case $LD in # libtool.m4 will add one of these switches to LD
7033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7034 libsuff= shlibsuff= libmagic=32-bit;;
7035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7036 libsuff=32 shlibsuff=N32 libmagic=N32;;
7037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7039 *) libsuff= shlibsuff= libmagic=never-match;;
7040 esac
7041 ;;
7042 esac
7043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7044 shlibpath_overrides_runpath=no
7045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7047 hardcode_into_libs=yes
7048 ;;
7049
7050# No shared lib support for Linux oldld, aout, or coff.
7051linux*oldld* | linux*aout* | linux*coff*)
7052 dynamic_linker=no
7053 ;;
7054
7055# This must be Linux ELF.
7056linux*)
7057 version_type=linux
7058 need_lib_prefix=no
7059 need_version=no
7060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7061 soname_spec='${libname}${release}${shared_ext}$major'
7062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7063 shlibpath_var=LD_LIBRARY_PATH
7064 shlibpath_overrides_runpath=no
7065 # This implies no fast_install, which is unacceptable.
7066 # Some rework will be needed to allow for fast_install
7067 # before this can be enabled.
7068 hardcode_into_libs=yes
7069
7070 # Append ld.so.conf contents to the search path
7071 if test -f /etc/ld.so.conf; then
7072 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7074 fi
7075
7076 # We used to test for /lib/ld.so.1 and disable shared libraries on
7077 # powerpc, because MkLinux only supported shared libraries with the
7078 # GNU dynamic linker. Since this was broken with cross compilers,
7079 # most powerpc-linux boxes support dynamic linking these days and
7080 # people can always --disable-shared, the test was removed, and we
7081 # assume the GNU/Linux dynamic linker is in use.
7082 dynamic_linker='GNU/Linux ld.so'
7083 ;;
7084
7085knetbsd*-gnu)
7086 version_type=linux
7087 need_lib_prefix=no
7088 need_version=no
7089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7090 soname_spec='${libname}${release}${shared_ext}$major'
7091 shlibpath_var=LD_LIBRARY_PATH
7092 shlibpath_overrides_runpath=no
7093 hardcode_into_libs=yes
7094 dynamic_linker='GNU ld.so'
7095 ;;
7096
7097netbsd*)
7098 version_type=sunos
7099 need_lib_prefix=no
7100 need_version=no
7101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7104 dynamic_linker='NetBSD (a.out) ld.so'
7105 else
7106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7107 soname_spec='${libname}${release}${shared_ext}$major'
7108 dynamic_linker='NetBSD ld.elf_so'
7109 fi
7110 shlibpath_var=LD_LIBRARY_PATH
7111 shlibpath_overrides_runpath=yes
7112 hardcode_into_libs=yes
7113 ;;
7114
7115newsos6)
7116 version_type=linux
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7118 shlibpath_var=LD_LIBRARY_PATH
7119 shlibpath_overrides_runpath=yes
7120 ;;
7121
7122nto-qnx*)
7123 version_type=linux
7124 need_lib_prefix=no
7125 need_version=no
7126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7127 soname_spec='${libname}${release}${shared_ext}$major'
7128 shlibpath_var=LD_LIBRARY_PATH
7129 shlibpath_overrides_runpath=yes
7130 ;;
7131
7132openbsd*)
7133 version_type=sunos
7134 need_lib_prefix=no
7135 need_version=no
7136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7138 shlibpath_var=LD_LIBRARY_PATH
7139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7140 case $host_os in
7141 openbsd2.[89] | openbsd2.[89].*)
7142 shlibpath_overrides_runpath=no
7143 ;;
7144 *)
7145 shlibpath_overrides_runpath=yes
7146 ;;
7147 esac
7148 else
7149 shlibpath_overrides_runpath=yes
7150 fi
7151 ;;
7152
7153os2*)
7154 libname_spec='$name'
7155 shrext_cmds=".dll"
7156 need_lib_prefix=no
7157 library_names_spec='$libname${shared_ext} $libname.a'
7158 dynamic_linker='OS/2 ld.exe'
7159 shlibpath_var=LIBPATH
7160 ;;
7161
7162osf3* | osf4* | osf5*)
7163 version_type=osf
7164 need_lib_prefix=no
7165 need_version=no
7166 soname_spec='${libname}${release}${shared_ext}$major'
7167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7168 shlibpath_var=LD_LIBRARY_PATH
7169 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7170 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7171 ;;
7172
7173sco3.2v5*)
7174 version_type=osf
7175 soname_spec='${libname}${release}${shared_ext}$major'
7176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7177 shlibpath_var=LD_LIBRARY_PATH
7178 ;;
7179
7180solaris*)
7181 version_type=linux
7182 need_lib_prefix=no
7183 need_version=no
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 shlibpath_var=LD_LIBRARY_PATH
7187 shlibpath_overrides_runpath=yes
7188 hardcode_into_libs=yes
7189 # ldd complains unless libraries are executable
7190 postinstall_cmds='chmod +x $lib'
7191 ;;
7192
7193sunos4*)
7194 version_type=sunos
7195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7196 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7197 shlibpath_var=LD_LIBRARY_PATH
7198 shlibpath_overrides_runpath=yes
7199 if test "$with_gnu_ld" = yes; then
7200 need_lib_prefix=no
7201 fi
7202 need_version=yes
7203 ;;
7204
7205sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7206 version_type=linux
7207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7208 soname_spec='${libname}${release}${shared_ext}$major'
7209 shlibpath_var=LD_LIBRARY_PATH
7210 case $host_vendor in
7211 sni)
7212 shlibpath_overrides_runpath=no
7213 need_lib_prefix=no
7214 export_dynamic_flag_spec='${wl}-Blargedynsym'
7215 runpath_var=LD_RUN_PATH
7216 ;;
7217 siemens)
7218 need_lib_prefix=no
7219 ;;
7220 motorola)
7221 need_lib_prefix=no
7222 need_version=no
7223 shlibpath_overrides_runpath=no
7224 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7225 ;;
7226 esac
7227 ;;
7228
7229sysv4*MP*)
7230 if test -d /usr/nec ;then
7231 version_type=linux
7232 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7233 soname_spec='$libname${shared_ext}.$major'
7234 shlibpath_var=LD_LIBRARY_PATH
7235 fi
7236 ;;
7237
7238uts4*)
7239 version_type=linux
7240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7241 soname_spec='${libname}${release}${shared_ext}$major'
7242 shlibpath_var=LD_LIBRARY_PATH
7243 ;;
7244
7245*)
7246 dynamic_linker=no
7247 ;;
7248esac
7249echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7250echo "${ECHO_T}$dynamic_linker" >&6
7251test "$dynamic_linker" = no && can_build_shared=no
7252
7253
7254echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7255echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7256if test "${libltdl_cv_shlibext+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259
7260module=yes
7261eval libltdl_cv_shlibext=$shrext_cmds
7262
7263fi
7264echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7265echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7266if test -n "$libltdl_cv_shlibext"; then
7267
7268cat >>confdefs.h <<_ACEOF
7269#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7270_ACEOF
7271
7272fi
7273
7274
7275echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7276echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7277if test "${libltdl_cv_shlibpath_var+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280 libltdl_cv_shlibpath_var="$shlibpath_var"
7281fi
7282echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7283echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7284if test -n "$libltdl_cv_shlibpath_var"; then
7285
7286cat >>confdefs.h <<_ACEOF
7287#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7288_ACEOF
7289
7290fi
7291
7292
7293echo "$as_me:$LINENO: checking for the default library search path" >&5
7294echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7295if test "${libltdl_cv_sys_search_path+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7299fi
7300echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7301echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7302if test -n "$libltdl_cv_sys_search_path"; then
7303 sys_search_path=
7304 for dir in $libltdl_cv_sys_search_path; do
7305 if test -z "$sys_search_path"; then
7306 sys_search_path="$dir"
7307 else
7308 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7309 fi
7310 done
7311
7312cat >>confdefs.h <<_ACEOF
7313#define LTDL_SYSSEARCHPATH "$sys_search_path"
7314_ACEOF
7315
7316fi
7317
7318echo "$as_me:$LINENO: checking for objdir" >&5
7319echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7320if test "${libltdl_cv_objdir+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323 libltdl_cv_objdir="$objdir"
7324 if test -n "$objdir"; then
7325 :
7326 else
7327 rm -f .libs 2>/dev/null
7328 mkdir .libs 2>/dev/null
7329 if test -d .libs; then
7330 libltdl_cv_objdir=.libs
7331 else
7332 # MS-DOS does not allow filenames that begin with a dot.
7333 libltdl_cv_objdir=_libs
7334 fi
7335 rmdir .libs 2>/dev/null
7336 fi
7337
7338fi
7339echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7340echo "${ECHO_T}$libltdl_cv_objdir" >&6
7341
7342cat >>confdefs.h <<_ACEOF
7343#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7344_ACEOF
7345
7346
7347echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7348echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7349if test "${lt_cv_path_NM+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352 if test -n "$NM"; then
7353 # Let the user override the test.
7354 lt_cv_path_NM="$NM"
7355else
7356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7357 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7358 IFS="$lt_save_ifs"
7359 test -z "$ac_dir" && ac_dir=.
7360 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7361 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7362 # Check to see if the nm accepts a BSD-compat flag.
7363 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7364 # nm: unknown option "B" ignored
7365 # Tru64's nm complains that /dev/null is an invalid object file
7366 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7367 */dev/null* | *'Invalid file or object type'*)
7368 lt_cv_path_NM="$tmp_nm -B"
7369 break
7370 ;;
7371 *)
7372 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7373 */dev/null*)
7374 lt_cv_path_NM="$tmp_nm -p"
7375 break
7376 ;;
7377 *)
7378 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7379 continue # so that we can try to find one that supports BSD flags
7380 ;;
7381 esac
7382 esac
7383 fi
7384 done
7385 IFS="$lt_save_ifs"
7386 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7387fi
7388fi
7389echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7390echo "${ECHO_T}$lt_cv_path_NM" >&6
7391NM="$lt_cv_path_NM"
7392
7393
7394
7395
7396
7397# Check for command to grab the raw symbol name followed by C symbol from nm.
7398echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7399echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7400if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403
7404# These are sane defaults that work on at least a few old systems.
7405# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7406
7407# Character class describing NM global symbol codes.
7408symcode='[BCDEGRST]'
7409
7410# Regexp to match symbols that can be accessed directly from C.
7411sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7412
7413# Transform the above into a raw symbol and a C symbol.
7414symxfrm='\1 \2\3 \3'
7415
7416# Transform an extracted symbol line into a proper C declaration
7417lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7418
7419# Transform an extracted symbol line into symbol name and symbol address
7420lt_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'"
7421
7422# Define system-specific variables.
7423case $host_os in
7424aix*)
7425 symcode='[BCDT]'
7426 ;;
7427cygwin* | mingw* | pw32*)
7428 symcode='[ABCDGISTW]'
7429 ;;
7430hpux*) # Its linker distinguishes data from code symbols
7431 if test "$host_cpu" = ia64; then
7432 symcode='[ABCDEGRST]'
7433 fi
7434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7435 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'"
7436 ;;
7437linux*)
7438 if test "$host_cpu" = ia64; then
7439 symcode='[ABCDGIRSTW]'
7440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7441 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'"
7442 fi
7443 ;;
7444irix* | nonstopux*)
7445 symcode='[BCDEGRST]'
7446 ;;
7447osf*)
7448 symcode='[BCDEGQRST]'
7449 ;;
7450solaris* | sysv5*)
7451 symcode='[BDRT]'
7452 ;;
7453sysv4)
7454 symcode='[DFNSTU]'
7455 ;;
7456esac
7457
7458# Handle CRLF in mingw tool chain
7459opt_cr=
7460case $build_os in
7461mingw*)
7462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7463 ;;
7464esac
7465
7466# If we're using GNU nm, then use its standard symbol codes.
7467case `$NM -V 2>&1` in
7468*GNU* | *'with BFD'*)
7469 symcode='[ABCDGIRSTW]' ;;
7470esac
7471
7472# Try without a prefix undercore, then with it.
7473for ac_symprfx in "" "_"; do
7474
7475 # Write the raw and C identifiers.
7476 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7477
7478 # Check to see that the pipe works correctly.
7479 pipe_works=no
7480
7481 rm -f conftest*
7482 cat > conftest.$ac_ext <<EOF
7483#ifdef __cplusplus
7484extern "C" {
7485#endif
7486char nm_test_var;
7487void nm_test_func(){}
7488#ifdef __cplusplus
7489}
7490#endif
7491int main(){nm_test_var='a';nm_test_func();return(0);}
7492EOF
7493
7494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7495 (eval $ac_compile) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; then
7499 # Now try to grab the symbols.
7500 nlist=conftest.nm
7501 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7502 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } && test -s "$nlist"; then
7506 # Try sorting and uniquifying the output.
7507 if sort "$nlist" | uniq > "$nlist"T; then
7508 mv -f "$nlist"T "$nlist"
7509 else
7510 rm -f "$nlist"T
7511 fi
7512
7513 # Make sure that we snagged all the symbols we need.
7514 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7515 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7516 cat <<EOF > conftest.$ac_ext
7517#ifdef __cplusplus
7518extern "C" {
7519#endif
7520
7521EOF
7522 # Now generate the symbol file.
7523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7524
7525 cat <<EOF >> conftest.$ac_ext
7526#if defined (__STDC__) && __STDC__
7527# define lt_ptr_t void *
7528#else
7529# define lt_ptr_t char *
7530# define const
7531#endif
7532
7533/* The mapping between symbol names and symbols. */
7534const struct {
7535 const char *name;
7536 lt_ptr_t address;
7537}
7538lt_preloaded_symbols[] =
7539{
7540EOF
7541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7542 cat <<\EOF >> conftest.$ac_ext
7543 {0, (lt_ptr_t) 0}
7544};
7545
7546#ifdef __cplusplus
7547}
7548#endif
7549EOF
7550 # Now try linking the two files.
7551 mv conftest.$ac_objext conftstm.$ac_objext
7552 lt_save_LIBS="$LIBS"
7553 lt_save_CFLAGS="$CFLAGS"
7554 LIBS="conftstm.$ac_objext"
7555 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7561 pipe_works=yes
7562 fi
7563 LIBS="$lt_save_LIBS"
7564 CFLAGS="$lt_save_CFLAGS"
7565 else
7566 echo "cannot find nm_test_func in $nlist" >&5
7567 fi
7568 else
7569 echo "cannot find nm_test_var in $nlist" >&5
7570 fi
7571 else
7572 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7573 fi
7574 else
7575 echo "$progname: failed program was:" >&5
7576 cat conftest.$ac_ext >&5
7577 fi
7578 rm -f conftest* conftst*
7579
7580 # Do not use the global_symbol_pipe unless it works.
7581 if test "$pipe_works" = yes; then
7582 break
7583 else
7584 lt_cv_sys_global_symbol_pipe=
7585 fi
7586done
7587
7588fi
7589
7590if test -z "$lt_cv_sys_global_symbol_pipe"; then
7591 lt_cv_sys_global_symbol_to_cdecl=
7592fi
7593if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7594 echo "$as_me:$LINENO: result: failed" >&5
7595echo "${ECHO_T}failed" >&6
7596else
7597 echo "$as_me:$LINENO: result: ok" >&5
7598echo "${ECHO_T}ok" >&6
7599fi
7600
7601
7602echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7603echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7604if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7608 libltdl_cv_preloaded_symbols=yes
7609 else
7610 libltdl_cv_preloaded_symbols=no
7611 fi
7612
7613fi
7614echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7615echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7616if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7617
7618cat >>confdefs.h <<\_ACEOF
7619#define HAVE_PRELOADED_SYMBOLS 1
7620_ACEOF
7621
7622fi
7623
7624LIBADD_DL=
7625
7626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631
7632
7633echo "$as_me:$LINENO: checking for shl_load" >&5
7634echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7635if test "${ac_cv_func_shl_load+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7646#define shl_load innocuous_shl_load
7647
7648/* System header to define __stub macros and hopefully few prototypes,
7649 which can conflict with char shl_load (); below.
7650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7651 <limits.h> exists even on freestanding compilers. */
7652
7653#ifdef __STDC__
7654# include <limits.h>
7655#else
7656# include <assert.h>
7657#endif
7658
7659#undef shl_load
7660
7661/* Override any gcc2 internal prototype to avoid an error. */
7662#ifdef __cplusplus
7663extern "C"
7664{
7665#endif
7666/* We use char because int might match the return type of a gcc2
7667 builtin and then its argument prototype would still apply. */
7668char shl_load ();
7669/* The GNU C library defines this for functions which it implements
7670 to always fail with ENOSYS. Some functions are actually named
7671 something starting with __ and the normal name is an alias. */
7672#if defined (__stub_shl_load) || defined (__stub___shl_load)
7673choke me
7674#else
7675char (*f) () = shl_load;
7676#endif
7677#ifdef __cplusplus
7678}
7679#endif
7680
7681int
7682main ()
7683{
7684return f != shl_load;
7685 ;
7686 return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext conftest$ac_exeext
7690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7691 (eval $ac_link) 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest$ac_exeext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_func_shl_load=yes
7712else
7713 echo "$as_me: failed program was:" >&5
7714sed 's/^/| /' conftest.$ac_ext >&5
7715
7716ac_cv_func_shl_load=no
7717fi
7718rm -f conftest.err conftest.$ac_objext \
7719 conftest$ac_exeext conftest.$ac_ext
7720fi
7721echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7722echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7723if test $ac_cv_func_shl_load = yes; then
7724
7725cat >>confdefs.h <<\_ACEOF
7726#define HAVE_SHL_LOAD 1
7727_ACEOF
7728
7729else
7730 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7731echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7732if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735 ac_check_lib_save_LIBS=$LIBS
7736LIBS="-ldld $LIBS"
7737cat >conftest.$ac_ext <<_ACEOF
7738/* confdefs.h. */
7739_ACEOF
7740cat confdefs.h >>conftest.$ac_ext
7741cat >>conftest.$ac_ext <<_ACEOF
7742/* end confdefs.h. */
7743
7744/* Override any gcc2 internal prototype to avoid an error. */
7745#ifdef __cplusplus
7746extern "C"
7747#endif
7748/* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750char shl_load ();
7751int
7752main ()
7753{
7754shl_load ();
7755 ;
7756 return 0;
7757}
7758_ACEOF
7759rm -f conftest.$ac_objext conftest$ac_exeext
7760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_cv_lib_dld_shl_load=yes
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786ac_cv_lib_dld_shl_load=no
7787fi
7788rm -f conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790LIBS=$ac_check_lib_save_LIBS
7791fi
7792echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7793echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7794if test $ac_cv_lib_dld_shl_load = yes; then
7795
7796cat >>confdefs.h <<\_ACEOF
7797#define HAVE_SHL_LOAD 1
7798_ACEOF
7799
7800 LIBADD_DL="$LIBADD_DL -ldld"
7801else
7802 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7803echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7804if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807 ac_check_lib_save_LIBS=$LIBS
7808LIBS="-ldl $LIBS"
7809cat >conftest.$ac_ext <<_ACEOF
7810/* confdefs.h. */
7811_ACEOF
7812cat confdefs.h >>conftest.$ac_ext
7813cat >>conftest.$ac_ext <<_ACEOF
7814/* end confdefs.h. */
7815
7816/* Override any gcc2 internal prototype to avoid an error. */
7817#ifdef __cplusplus
7818extern "C"
7819#endif
7820/* We use char because int might match the return type of a gcc2
7821 builtin and then its argument prototype would still apply. */
7822char dlopen ();
7823int
7824main ()
7825{
7826dlopen ();
7827 ;
7828 return 0;
7829}
7830_ACEOF
7831rm -f conftest.$ac_objext conftest$ac_exeext
7832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833 (eval $ac_link) 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_c_werror_flag"
7841 || test ! -s conftest.err'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; } &&
7847 { ac_try='test -s conftest$ac_exeext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 ac_cv_lib_dl_dlopen=yes
7854else
7855 echo "$as_me: failed program was:" >&5
7856sed 's/^/| /' conftest.$ac_ext >&5
7857
7858ac_cv_lib_dl_dlopen=no
7859fi
7860rm -f conftest.err conftest.$ac_objext \
7861 conftest$ac_exeext conftest.$ac_ext
7862LIBS=$ac_check_lib_save_LIBS
7863fi
7864echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7865echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7866if test $ac_cv_lib_dl_dlopen = yes; then
7867
7868cat >>confdefs.h <<\_ACEOF
7869#define HAVE_LIBDL 1
7870_ACEOF
7871
7872 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7873else
7874 cat >conftest.$ac_ext <<_ACEOF
7875/* confdefs.h. */
7876_ACEOF
7877cat confdefs.h >>conftest.$ac_ext
7878cat >>conftest.$ac_ext <<_ACEOF
7879/* end confdefs.h. */
7880#if HAVE_DLFCN_H
7881# include <dlfcn.h>
7882#endif
7883
7884int
7885main ()
7886{
7887dlopen(0, 0);
7888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
7893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914
7915cat >>confdefs.h <<\_ACEOF
7916#define HAVE_LIBDL 1
7917_ACEOF
7918 libltdl_cv_func_dlopen="yes"
7919else
7920 echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7924echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7925if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928 ac_check_lib_save_LIBS=$LIBS
7929LIBS="-lsvld $LIBS"
7930cat >conftest.$ac_ext <<_ACEOF
7931/* confdefs.h. */
7932_ACEOF
7933cat confdefs.h >>conftest.$ac_ext
7934cat >>conftest.$ac_ext <<_ACEOF
7935/* end confdefs.h. */
7936
7937/* Override any gcc2 internal prototype to avoid an error. */
7938#ifdef __cplusplus
7939extern "C"
7940#endif
7941/* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7943char dlopen ();
7944int
7945main ()
7946{
7947dlopen ();
7948 ;
7949 return 0;
7950}
7951_ACEOF
7952rm -f conftest.$ac_objext conftest$ac_exeext
7953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7954 (eval $ac_link) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_lib_svld_dlopen=yes
7975else
7976 echo "$as_me: failed program was:" >&5
7977sed 's/^/| /' conftest.$ac_ext >&5
7978
7979ac_cv_lib_svld_dlopen=no
7980fi
7981rm -f conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983LIBS=$ac_check_lib_save_LIBS
7984fi
7985echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7986echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7987if test $ac_cv_lib_svld_dlopen = yes; then
7988
7989cat >>confdefs.h <<\_ACEOF
7990#define HAVE_LIBDL 1
7991_ACEOF
7992
7993 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7994else
7995 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7996echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7997if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000 ac_check_lib_save_LIBS=$LIBS
8001LIBS="-ldld $LIBS"
8002cat >conftest.$ac_ext <<_ACEOF
8003/* confdefs.h. */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h. */
8008
8009/* Override any gcc2 internal prototype to avoid an error. */
8010#ifdef __cplusplus
8011extern "C"
8012#endif
8013/* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015char dld_link ();
8016int
8017main ()
8018{
8019dld_link ();
8020 ;
8021 return 0;
8022}
8023_ACEOF
8024rm -f conftest.$ac_objext conftest$ac_exeext
8025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest$ac_exeext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_lib_dld_dld_link=yes
8047else
8048 echo "$as_me: failed program was:" >&5
8049sed 's/^/| /' conftest.$ac_ext >&5
8050
8051ac_cv_lib_dld_dld_link=no
8052fi
8053rm -f conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055LIBS=$ac_check_lib_save_LIBS
8056fi
8057echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8058echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8059if test $ac_cv_lib_dld_dld_link = yes; then
8060
8061cat >>confdefs.h <<\_ACEOF
8062#define HAVE_DLD 1
8063_ACEOF
8064
8065 LIBADD_DL="$LIBADD_DL -ldld"
8066else
8067 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8068echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8069if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072 cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8080#define _dyld_func_lookup innocuous__dyld_func_lookup
8081
8082/* System header to define __stub macros and hopefully few prototypes,
8083 which can conflict with char _dyld_func_lookup (); below.
8084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085 <limits.h> exists even on freestanding compilers. */
8086
8087#ifdef __STDC__
8088# include <limits.h>
8089#else
8090# include <assert.h>
8091#endif
8092
8093#undef _dyld_func_lookup
8094
8095/* Override any gcc2 internal prototype to avoid an error. */
8096#ifdef __cplusplus
8097extern "C"
8098{
8099#endif
8100/* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8102char _dyld_func_lookup ();
8103/* The GNU C library defines this for functions which it implements
8104 to always fail with ENOSYS. Some functions are actually named
8105 something starting with __ and the normal name is an alias. */
8106#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8107choke me
8108#else
8109char (*f) () = _dyld_func_lookup;
8110#endif
8111#ifdef __cplusplus
8112}
8113#endif
8114
8115int
8116main ()
8117{
8118return f != _dyld_func_lookup;
8119 ;
8120 return 0;
8121}
8122_ACEOF
8123rm -f conftest.$ac_objext conftest$ac_exeext
8124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag"
8133 || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 (eval $ac_try) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_func__dyld_func_lookup=yes
8146else
8147 echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150ac_cv_func__dyld_func_lookup=no
8151fi
8152rm -f conftest.err conftest.$ac_objext \
8153 conftest$ac_exeext conftest.$ac_ext
8154fi
8155echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8156echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8157if test $ac_cv_func__dyld_func_lookup = yes; then
8158
8159cat >>confdefs.h <<\_ACEOF
8160#define HAVE_DYLD 1
8161_ACEOF
8162
8163fi
8164
8165
8166fi
8167
8168
8169fi
8170
8171
8172fi
8173rm -f conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175
8176fi
8177
8178
8179fi
8180
8181
8182fi
8183
8184
8185if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8186then
8187 lt_save_LIBS="$LIBS"
8188 LIBS="$LIBS $LIBADD_DL"
8189
8190for ac_func in dlerror
8191do
8192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8193echo "$as_me:$LINENO: checking for $ac_func" >&5
8194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8195if eval "test \"\${$as_ac_var+set}\" = set"; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8197else
8198 cat >conftest.$ac_ext <<_ACEOF
8199/* confdefs.h. */
8200_ACEOF
8201cat confdefs.h >>conftest.$ac_ext
8202cat >>conftest.$ac_ext <<_ACEOF
8203/* end confdefs.h. */
8204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8206#define $ac_func innocuous_$ac_func
8207
8208/* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char $ac_func (); below.
8210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8211 <limits.h> exists even on freestanding compilers. */
8212
8213#ifdef __STDC__
8214# include <limits.h>
8215#else
8216# include <assert.h>
8217#endif
8218
8219#undef $ac_func
8220
8221/* Override any gcc2 internal prototype to avoid an error. */
8222#ifdef __cplusplus
8223extern "C"
8224{
8225#endif
8226/* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8228char $ac_func ();
8229/* The GNU C library defines this for functions which it implements
8230 to always fail with ENOSYS. Some functions are actually named
8231 something starting with __ and the normal name is an alias. */
8232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8233choke me
8234#else
8235char (*f) () = $ac_func;
8236#endif
8237#ifdef __cplusplus
8238}
8239#endif
8240
8241int
8242main ()
8243{
8244return f != $ac_func;
8245 ;
8246 return 0;
8247}
8248_ACEOF
8249rm -f conftest.$ac_objext conftest$ac_exeext
8250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 eval "$as_ac_var=yes"
8272else
8273 echo "$as_me: failed program was:" >&5
8274sed 's/^/| /' conftest.$ac_ext >&5
8275
8276eval "$as_ac_var=no"
8277fi
8278rm -f conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280fi
8281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8282echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8283if test `eval echo '${'$as_ac_var'}'` = yes; then
8284 cat >>confdefs.h <<_ACEOF
8285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8286_ACEOF
8287
8288fi
8289done
8290
8291 LIBS="$lt_save_LIBS"
8292fi
8293ac_ext=c
8294ac_cpp='$CPP $CPPFLAGS'
8295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8297ac_compiler_gnu=$ac_cv_c_compiler_gnu
8298
8299
8300
8301echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8302echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8303if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306 ac_cv_sys_symbol_underscore=no
8307 cat > conftest.$ac_ext <<EOF
8308void nm_test_func(){}
8309int main(){nm_test_func;return 0;}
8310EOF
8311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; then
8316 # Now try to grab the symbols.
8317 ac_nlist=conftest.nm
8318 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8319 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } && test -s "$ac_nlist"; then
8323 # See whether the symbols have a leading underscore.
8324 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8325 ac_cv_sys_symbol_underscore=yes
8326 else
8327 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8328 :
8329 else
8330 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8331 fi
8332 fi
8333 else
8334 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8335 fi
8336 else
8337 echo "configure: failed program was:" >&5
8338 cat conftest.c >&5
8339 fi
8340 rm -rf conftest*
8341
8342fi
8343echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8344echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8345
8346
8347if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8348 if test x"$libltdl_cv_func_dlopen" = xyes ||
8349 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8350 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8351echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8352if test "${libltdl_cv_need_uscore+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354else
8355 libltdl_cv_need_uscore=unknown
8356 save_LIBS="$LIBS"
8357 LIBS="$LIBS $LIBADD_DL"
8358 if test "$cross_compiling" = yes; then :
8359 libltdl_cv_need_uscore=cross
8360else
8361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8362 lt_status=$lt_dlunknown
8363 cat > conftest.$ac_ext <<EOF
John Criswell241116f2005-12-19 20:27:24 +00008364#line 8364 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008365#include "confdefs.h"
8366
8367#if HAVE_DLFCN_H
8368#include <dlfcn.h>
8369#endif
8370
8371#include <stdio.h>
8372
8373#ifdef RTLD_GLOBAL
8374# define LT_DLGLOBAL RTLD_GLOBAL
8375#else
8376# ifdef DL_GLOBAL
8377# define LT_DLGLOBAL DL_GLOBAL
8378# else
8379# define LT_DLGLOBAL 0
8380# endif
8381#endif
8382
8383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8384 find out it does not work in some platform. */
8385#ifndef LT_DLLAZY_OR_NOW
8386# ifdef RTLD_LAZY
8387# define LT_DLLAZY_OR_NOW RTLD_LAZY
8388# else
8389# ifdef DL_LAZY
8390# define LT_DLLAZY_OR_NOW DL_LAZY
8391# else
8392# ifdef RTLD_NOW
8393# define LT_DLLAZY_OR_NOW RTLD_NOW
8394# else
8395# ifdef DL_NOW
8396# define LT_DLLAZY_OR_NOW DL_NOW
8397# else
8398# define LT_DLLAZY_OR_NOW 0
8399# endif
8400# endif
8401# endif
8402# endif
8403#endif
8404
8405#ifdef __cplusplus
8406extern "C" void exit (int);
8407#endif
8408
8409void fnord() { int i=42;}
8410int main ()
8411{
8412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8413 int status = $lt_dlunknown;
8414
8415 if (self)
8416 {
8417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8419 /* dlclose (self); */
8420 }
8421
8422 exit (status);
8423}
8424EOF
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426 (eval $ac_link) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8430 (./conftest; exit; ) 2>/dev/null
8431 lt_status=$?
8432 case x$lt_status in
8433 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8434 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8435 x$lt_unknown|x*) ;;
8436 esac
8437 else :
8438 # compilation failed
8439
8440 fi
8441fi
8442rm -fr conftest*
8443
8444 LIBS="$save_LIBS"
8445
8446fi
8447echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8448echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8449 fi
8450fi
8451
8452if test x"$libltdl_cv_need_uscore" = xyes; then
8453
8454cat >>confdefs.h <<\_ACEOF
8455#define NEED_USCORE 1
8456_ACEOF
8457
8458fi
8459
8460
8461echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8462echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8463if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465else
8466 # PORTME does your system automatically load deplibs for dlopen?
8467 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8468 # For now, we just catch OSes we know something about -- in the
8469 # future, we'll try test this programmatically.
8470 libltdl_cv_sys_dlopen_deplibs=unknown
8471 case "$host_os" in
8472 aix3*|aix4.1.*|aix4.2.*)
8473 # Unknown whether this is true for these versions of AIX, but
8474 # we want this `case' here to explicitly catch those versions.
8475 libltdl_cv_sys_dlopen_deplibs=unknown
8476 ;;
8477 aix[45]*)
8478 libltdl_cv_sys_dlopen_deplibs=yes
8479 ;;
8480 darwin*)
8481 # Assuming the user has installed a libdl from somewhere, this is true
8482 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8483 libltdl_cv_sys_dlopen_deplibs=yes
8484 ;;
8485 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8486 # GNU and its variants, using gnu ld.so (Glibc)
8487 libltdl_cv_sys_dlopen_deplibs=yes
8488 ;;
8489 hpux10*|hpux11*)
8490 libltdl_cv_sys_dlopen_deplibs=yes
8491 ;;
8492 irix[12345]*|irix6.[01]*)
8493 # Catch all versions of IRIX before 6.2, and indicate that we don't
8494 # know how it worked for any of those versions.
8495 libltdl_cv_sys_dlopen_deplibs=unknown
8496 ;;
8497 irix*)
8498 # The case above catches anything before 6.2, and it's known that
8499 # at 6.2 and later dlopen does load deplibs.
8500 libltdl_cv_sys_dlopen_deplibs=yes
8501 ;;
8502 netbsd*)
8503 libltdl_cv_sys_dlopen_deplibs=yes
8504 ;;
8505 openbsd*)
8506 libltdl_cv_sys_dlopen_deplibs=yes
8507 ;;
8508 osf[1234]*)
8509 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8510 # it did *not* use an RPATH in a shared library to find objects the
8511 # library depends on, so we explictly say `no'.
8512 libltdl_cv_sys_dlopen_deplibs=no
8513 ;;
8514 osf5.0|osf5.0a|osf5.1)
8515 # dlopen *does* load deplibs and with the right loader patch applied
8516 # it even uses RPATH in a shared library to search for shared objects
8517 # that the library depends on, but there's no easy way to know if that
8518 # patch is installed. Since this is the case, all we can really
8519 # say is unknown -- it depends on the patch being installed. If
8520 # it is, this changes to `yes'. Without it, it would be `no'.
8521 libltdl_cv_sys_dlopen_deplibs=unknown
8522 ;;
8523 osf*)
8524 # the two cases above should catch all versions of osf <= 5.1. Read
8525 # the comments above for what we know about them.
8526 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8527 # is used to find them so we can finally say `yes'.
8528 libltdl_cv_sys_dlopen_deplibs=yes
8529 ;;
8530 solaris*)
8531 libltdl_cv_sys_dlopen_deplibs=yes
8532 ;;
8533 esac
8534
8535fi
8536echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8537echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8538if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8539
8540cat >>confdefs.h <<\_ACEOF
8541#define LTDL_DLOPEN_DEPLIBS 1
8542_ACEOF
8543
8544fi
8545
8546
8547for ac_header in argz.h
8548do
8549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550if eval "test \"\${$as_ac_Header+set}\" = set"; then
8551 echo "$as_me:$LINENO: checking for $ac_header" >&5
8552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8553if eval "test \"\${$as_ac_Header+set}\" = set"; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555fi
8556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8558else
8559 # Is the header compilable?
8560echo "$as_me:$LINENO: checking $ac_header usability" >&5
8561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8562cat >conftest.$ac_ext <<_ACEOF
8563/* confdefs.h. */
8564_ACEOF
8565cat confdefs.h >>conftest.$ac_ext
8566cat >>conftest.$ac_ext <<_ACEOF
8567/* end confdefs.h. */
8568$ac_includes_default
8569#include <$ac_header>
8570_ACEOF
8571rm -f conftest.$ac_objext
8572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8573 (eval $ac_compile) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_header_compiler=yes
8594else
8595 echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598ac_header_compiler=no
8599fi
8600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8602echo "${ECHO_T}$ac_header_compiler" >&6
8603
8604# Is the header present?
8605echo "$as_me:$LINENO: checking $ac_header presence" >&5
8606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8607cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h. */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h. */
8613#include <$ac_header>
8614_ACEOF
8615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } >/dev/null; then
8623 if test -s conftest.err; then
8624 ac_cpp_err=$ac_c_preproc_warn_flag
8625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8626 else
8627 ac_cpp_err=
8628 fi
8629else
8630 ac_cpp_err=yes
8631fi
8632if test -z "$ac_cpp_err"; then
8633 ac_header_preproc=yes
8634else
8635 echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 ac_header_preproc=no
8639fi
8640rm -f conftest.err conftest.$ac_ext
8641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642echo "${ECHO_T}$ac_header_preproc" >&6
8643
8644# So? What about this header?
8645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8646 yes:no: )
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8651 ac_header_preproc=yes
8652 ;;
8653 no:yes:* )
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8657echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8661echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8666 (
8667 cat <<\_ASBOX
8668## ----------------------------------- ##
8669## Report this to llvmbugs@cs.uiuc.edu ##
8670## ----------------------------------- ##
8671_ASBOX
8672 ) |
8673 sed "s/^/$as_me: WARNING: /" >&2
8674 ;;
8675esac
8676echo "$as_me:$LINENO: checking for $ac_header" >&5
8677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8678if eval "test \"\${$as_ac_Header+set}\" = set"; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680else
8681 eval "$as_ac_Header=\$ac_header_preproc"
8682fi
8683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8685
8686fi
8687if test `eval echo '${'$as_ac_Header'}'` = yes; then
8688 cat >>confdefs.h <<_ACEOF
8689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8690_ACEOF
8691
8692fi
8693
8694done
8695
8696
8697echo "$as_me:$LINENO: checking for error_t" >&5
8698echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8699if test "${ac_cv_type_error_t+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
8702 cat >conftest.$ac_ext <<_ACEOF
8703/* confdefs.h. */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h. */
8708#if HAVE_ARGZ_H
8709# include <argz.h>
8710#endif
8711
8712int
8713main ()
8714{
8715if ((error_t *) 0)
8716 return 0;
8717if (sizeof (error_t))
8718 return 0;
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723rm -f conftest.$ac_objext
8724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725 (eval $ac_compile) 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -z "$ac_c_werror_flag"
8733 || test ! -s conftest.err'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest.$ac_objext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 (eval $ac_try) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_cv_type_error_t=yes
8746else
8747 echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750ac_cv_type_error_t=no
8751fi
8752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753fi
8754echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8755echo "${ECHO_T}$ac_cv_type_error_t" >&6
8756if test $ac_cv_type_error_t = yes; then
8757
8758cat >>confdefs.h <<_ACEOF
8759#define HAVE_ERROR_T 1
8760_ACEOF
8761
8762
8763else
8764
8765cat >>confdefs.h <<\_ACEOF
8766#define error_t int
8767_ACEOF
8768
8769fi
8770
8771
8772
8773
8774
8775
8776
8777for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8778do
8779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8780echo "$as_me:$LINENO: checking for $ac_func" >&5
8781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8782if eval "test \"\${$as_ac_var+set}\" = set"; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785 cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h. */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h. */
8791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8793#define $ac_func innocuous_$ac_func
8794
8795/* System header to define __stub macros and hopefully few prototypes,
8796 which can conflict with char $ac_func (); below.
8797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798 <limits.h> exists even on freestanding compilers. */
8799
8800#ifdef __STDC__
8801# include <limits.h>
8802#else
8803# include <assert.h>
8804#endif
8805
8806#undef $ac_func
8807
8808/* Override any gcc2 internal prototype to avoid an error. */
8809#ifdef __cplusplus
8810extern "C"
8811{
8812#endif
8813/* We use char because int might match the return type of a gcc2
8814 builtin and then its argument prototype would still apply. */
8815char $ac_func ();
8816/* The GNU C library defines this for functions which it implements
8817 to always fail with ENOSYS. Some functions are actually named
8818 something starting with __ and the normal name is an alias. */
8819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8820choke me
8821#else
8822char (*f) () = $ac_func;
8823#endif
8824#ifdef __cplusplus
8825}
8826#endif
8827
8828int
8829main ()
8830{
8831return f != $ac_func;
8832 ;
8833 return 0;
8834}
8835_ACEOF
8836rm -f conftest.$ac_objext conftest$ac_exeext
8837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838 (eval $ac_link) 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -z "$ac_c_werror_flag"
8846 || test ! -s conftest.err'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; } &&
8852 { ac_try='test -s conftest$ac_exeext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 eval "$as_ac_var=yes"
8859else
8860 echo "$as_me: failed program was:" >&5
8861sed 's/^/| /' conftest.$ac_ext >&5
8862
8863eval "$as_ac_var=no"
8864fi
8865rm -f conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8867fi
8868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8870if test `eval echo '${'$as_ac_var'}'` = yes; then
8871 cat >>confdefs.h <<_ACEOF
8872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8873_ACEOF
8874
8875fi
8876done
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8906 stdio.h unistd.h
8907do
8908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8909if eval "test \"\${$as_ac_Header+set}\" = set"; then
8910 echo "$as_me:$LINENO: checking for $ac_header" >&5
8911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8912if eval "test \"\${$as_ac_Header+set}\" = set"; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914fi
8915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8917else
8918 # Is the header compilable?
8919echo "$as_me:$LINENO: checking $ac_header usability" >&5
8920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8921cat >conftest.$ac_ext <<_ACEOF
8922/* confdefs.h. */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
8926/* end confdefs.h. */
8927$ac_includes_default
8928#include <$ac_header>
8929_ACEOF
8930rm -f conftest.$ac_objext
8931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -z "$ac_c_werror_flag"
8940 || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_header_compiler=yes
8953else
8954 echo "$as_me: failed program was:" >&5
8955sed 's/^/| /' conftest.$ac_ext >&5
8956
8957ac_header_compiler=no
8958fi
8959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8961echo "${ECHO_T}$ac_header_compiler" >&6
8962
8963# Is the header present?
8964echo "$as_me:$LINENO: checking $ac_header presence" >&5
8965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8966cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
8970cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h. */
8972#include <$ac_header>
8973_ACEOF
8974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } >/dev/null; then
8982 if test -s conftest.err; then
8983 ac_cpp_err=$ac_c_preproc_warn_flag
8984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8985 else
8986 ac_cpp_err=
8987 fi
8988else
8989 ac_cpp_err=yes
8990fi
8991if test -z "$ac_cpp_err"; then
8992 ac_header_preproc=yes
8993else
8994 echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 ac_header_preproc=no
8998fi
8999rm -f conftest.err conftest.$ac_ext
9000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9001echo "${ECHO_T}$ac_header_preproc" >&6
9002
9003# So? What about this header?
9004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9005 yes:no: )
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9010 ac_header_preproc=yes
9011 ;;
9012 no:yes:* )
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9025 (
9026 cat <<\_ASBOX
9027## ----------------------------------- ##
9028## Report this to llvmbugs@cs.uiuc.edu ##
9029## ----------------------------------- ##
9030_ASBOX
9031 ) |
9032 sed "s/^/$as_me: WARNING: /" >&2
9033 ;;
9034esac
9035echo "$as_me:$LINENO: checking for $ac_header" >&5
9036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9037if eval "test \"\${$as_ac_Header+set}\" = set"; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039else
9040 eval "$as_ac_Header=\$ac_header_preproc"
9041fi
9042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9044
9045fi
9046if test `eval echo '${'$as_ac_Header'}'` = yes; then
9047 cat >>confdefs.h <<_ACEOF
9048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9049_ACEOF
9050
9051fi
9052
9053done
9054
9055
9056
9057
9058
9059for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9060do
9061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062if eval "test \"\${$as_ac_Header+set}\" = set"; then
9063 echo "$as_me:$LINENO: checking for $ac_header" >&5
9064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067fi
9068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9070else
9071 # Is the header compilable?
9072echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9074cat >conftest.$ac_ext <<_ACEOF
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
9080$ac_includes_default
9081#include <$ac_header>
9082_ACEOF
9083rm -f conftest.$ac_objext
9084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085 (eval $ac_compile) 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -z "$ac_c_werror_flag"
9093 || test ! -s conftest.err'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest.$ac_objext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_header_compiler=yes
9106else
9107 echo "$as_me: failed program was:" >&5
9108sed 's/^/| /' conftest.$ac_ext >&5
9109
9110ac_header_compiler=no
9111fi
9112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9114echo "${ECHO_T}$ac_header_compiler" >&6
9115
9116# Is the header present?
9117echo "$as_me:$LINENO: checking $ac_header presence" >&5
9118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9119cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h. */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h. */
9125#include <$ac_header>
9126_ACEOF
9127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } >/dev/null; then
9135 if test -s conftest.err; then
9136 ac_cpp_err=$ac_c_preproc_warn_flag
9137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9138 else
9139 ac_cpp_err=
9140 fi
9141else
9142 ac_cpp_err=yes
9143fi
9144if test -z "$ac_cpp_err"; then
9145 ac_header_preproc=yes
9146else
9147 echo "$as_me: failed program was:" >&5
9148sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 ac_header_preproc=no
9151fi
9152rm -f conftest.err conftest.$ac_ext
9153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9154echo "${ECHO_T}$ac_header_preproc" >&6
9155
9156# So? What about this header?
9157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9158 yes:no: )
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9163 ac_header_preproc=yes
9164 ;;
9165 no:yes:* )
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9178 (
9179 cat <<\_ASBOX
9180## ----------------------------------- ##
9181## Report this to llvmbugs@cs.uiuc.edu ##
9182## ----------------------------------- ##
9183_ASBOX
9184 ) |
9185 sed "s/^/$as_me: WARNING: /" >&2
9186 ;;
9187esac
9188echo "$as_me:$LINENO: checking for $ac_header" >&5
9189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9190if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193 eval "$as_ac_Header=\$ac_header_preproc"
9194fi
9195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9197
9198fi
9199if test `eval echo '${'$as_ac_Header'}'` = yes; then
9200 cat >>confdefs.h <<_ACEOF
9201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9202_ACEOF
9203
9204fi
9205
9206done
9207
9208
9209
9210for ac_header in string.h strings.h
9211do
9212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9213if eval "test \"\${$as_ac_Header+set}\" = set"; then
9214 echo "$as_me:$LINENO: checking for $ac_header" >&5
9215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9216if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218fi
9219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9221else
9222 # Is the header compilable?
9223echo "$as_me:$LINENO: checking $ac_header usability" >&5
9224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9225cat >conftest.$ac_ext <<_ACEOF
9226/* confdefs.h. */
9227_ACEOF
9228cat confdefs.h >>conftest.$ac_ext
9229cat >>conftest.$ac_ext <<_ACEOF
9230/* end confdefs.h. */
9231$ac_includes_default
9232#include <$ac_header>
9233_ACEOF
9234rm -f conftest.$ac_objext
9235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236 (eval $ac_compile) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_header_compiler=yes
9257else
9258 echo "$as_me: failed program was:" >&5
9259sed 's/^/| /' conftest.$ac_ext >&5
9260
9261ac_header_compiler=no
9262fi
9263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9265echo "${ECHO_T}$ac_header_compiler" >&6
9266
9267# Is the header present?
9268echo "$as_me:$LINENO: checking $ac_header presence" >&5
9269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9270cat >conftest.$ac_ext <<_ACEOF
9271/* confdefs.h. */
9272_ACEOF
9273cat confdefs.h >>conftest.$ac_ext
9274cat >>conftest.$ac_ext <<_ACEOF
9275/* end confdefs.h. */
9276#include <$ac_header>
9277_ACEOF
9278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } >/dev/null; then
9286 if test -s conftest.err; then
9287 ac_cpp_err=$ac_c_preproc_warn_flag
9288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9289 else
9290 ac_cpp_err=
9291 fi
9292else
9293 ac_cpp_err=yes
9294fi
9295if test -z "$ac_cpp_err"; then
9296 ac_header_preproc=yes
9297else
9298 echo "$as_me: failed program was:" >&5
9299sed 's/^/| /' conftest.$ac_ext >&5
9300
9301 ac_header_preproc=no
9302fi
9303rm -f conftest.err conftest.$ac_ext
9304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9305echo "${ECHO_T}$ac_header_preproc" >&6
9306
9307# So? What about this header?
9308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9309 yes:no: )
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9314 ac_header_preproc=yes
9315 ;;
9316 no:yes:* )
9317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9329 (
9330 cat <<\_ASBOX
9331## ----------------------------------- ##
9332## Report this to llvmbugs@cs.uiuc.edu ##
9333## ----------------------------------- ##
9334_ASBOX
9335 ) |
9336 sed "s/^/$as_me: WARNING: /" >&2
9337 ;;
9338esac
9339echo "$as_me:$LINENO: checking for $ac_header" >&5
9340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9341if eval "test \"\${$as_ac_Header+set}\" = set"; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343else
9344 eval "$as_ac_Header=\$ac_header_preproc"
9345fi
9346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9348
9349fi
9350if test `eval echo '${'$as_ac_Header'}'` = yes; then
9351 cat >>confdefs.h <<_ACEOF
9352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9353_ACEOF
9354 break
9355fi
9356
9357done
9358
9359
9360
9361
9362for ac_func in strchr index
9363do
9364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9365echo "$as_me:$LINENO: checking for $ac_func" >&5
9366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9367if eval "test \"\${$as_ac_var+set}\" = set"; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369else
9370 cat >conftest.$ac_ext <<_ACEOF
9371/* confdefs.h. */
9372_ACEOF
9373cat confdefs.h >>conftest.$ac_ext
9374cat >>conftest.$ac_ext <<_ACEOF
9375/* end confdefs.h. */
9376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9378#define $ac_func innocuous_$ac_func
9379
9380/* System header to define __stub macros and hopefully few prototypes,
9381 which can conflict with char $ac_func (); below.
9382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9383 <limits.h> exists even on freestanding compilers. */
9384
9385#ifdef __STDC__
9386# include <limits.h>
9387#else
9388# include <assert.h>
9389#endif
9390
9391#undef $ac_func
9392
9393/* Override any gcc2 internal prototype to avoid an error. */
9394#ifdef __cplusplus
9395extern "C"
9396{
9397#endif
9398/* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9400char $ac_func ();
9401/* The GNU C library defines this for functions which it implements
9402 to always fail with ENOSYS. Some functions are actually named
9403 something starting with __ and the normal name is an alias. */
9404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9405choke me
9406#else
9407char (*f) () = $ac_func;
9408#endif
9409#ifdef __cplusplus
9410}
9411#endif
9412
9413int
9414main ()
9415{
9416return f != $ac_func;
9417 ;
9418 return 0;
9419}
9420_ACEOF
9421rm -f conftest.$ac_objext conftest$ac_exeext
9422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>conftest.er1
9424 ac_status=$?
9425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try='test -z "$ac_c_werror_flag"
9431 || test ! -s conftest.err'
9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 (eval $ac_try) 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; } &&
9437 { ac_try='test -s conftest$ac_exeext'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 (eval $ac_try) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; }; then
9443 eval "$as_ac_var=yes"
9444else
9445 echo "$as_me: failed program was:" >&5
9446sed 's/^/| /' conftest.$ac_ext >&5
9447
9448eval "$as_ac_var=no"
9449fi
9450rm -f conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452fi
9453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9454echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9455if test `eval echo '${'$as_ac_var'}'` = yes; then
9456 cat >>confdefs.h <<_ACEOF
9457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9458_ACEOF
9459 break
9460fi
9461done
9462
9463
9464
9465for ac_func in strrchr rindex
9466do
9467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9468echo "$as_me:$LINENO: checking for $ac_func" >&5
9469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9470if eval "test \"\${$as_ac_var+set}\" = set"; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472else
9473 cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h. */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h. */
9479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9481#define $ac_func innocuous_$ac_func
9482
9483/* System header to define __stub macros and hopefully few prototypes,
9484 which can conflict with char $ac_func (); below.
9485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9486 <limits.h> exists even on freestanding compilers. */
9487
9488#ifdef __STDC__
9489# include <limits.h>
9490#else
9491# include <assert.h>
9492#endif
9493
9494#undef $ac_func
9495
9496/* Override any gcc2 internal prototype to avoid an error. */
9497#ifdef __cplusplus
9498extern "C"
9499{
9500#endif
9501/* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */
9503char $ac_func ();
9504/* The GNU C library defines this for functions which it implements
9505 to always fail with ENOSYS. Some functions are actually named
9506 something starting with __ and the normal name is an alias. */
9507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9508choke me
9509#else
9510char (*f) () = $ac_func;
9511#endif
9512#ifdef __cplusplus
9513}
9514#endif
9515
9516int
9517main ()
9518{
9519return f != $ac_func;
9520 ;
9521 return 0;
9522}
9523_ACEOF
9524rm -f conftest.$ac_objext conftest$ac_exeext
9525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526 (eval $ac_link) 2>conftest.er1
9527 ac_status=$?
9528 grep -v '^ *+' conftest.er1 >conftest.err
9529 rm -f conftest.er1
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -z "$ac_c_werror_flag"
9534 || test ! -s conftest.err'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; } &&
9540 { ac_try='test -s conftest$ac_exeext'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 eval "$as_ac_var=yes"
9547else
9548 echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
9551eval "$as_ac_var=no"
9552fi
9553rm -f conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9555fi
9556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9558if test `eval echo '${'$as_ac_var'}'` = yes; then
9559 cat >>confdefs.h <<_ACEOF
9560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9561_ACEOF
9562 break
9563fi
9564done
9565
9566
9567
9568for ac_func in memcpy bcopy
9569do
9570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9571echo "$as_me:$LINENO: checking for $ac_func" >&5
9572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9573if eval "test \"\${$as_ac_var+set}\" = set"; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575else
9576 cat >conftest.$ac_ext <<_ACEOF
9577/* confdefs.h. */
9578_ACEOF
9579cat confdefs.h >>conftest.$ac_ext
9580cat >>conftest.$ac_ext <<_ACEOF
9581/* end confdefs.h. */
9582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9584#define $ac_func innocuous_$ac_func
9585
9586/* System header to define __stub macros and hopefully few prototypes,
9587 which can conflict with char $ac_func (); below.
9588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589 <limits.h> exists even on freestanding compilers. */
9590
9591#ifdef __STDC__
9592# include <limits.h>
9593#else
9594# include <assert.h>
9595#endif
9596
9597#undef $ac_func
9598
9599/* Override any gcc2 internal prototype to avoid an error. */
9600#ifdef __cplusplus
9601extern "C"
9602{
9603#endif
9604/* We use char because int might match the return type of a gcc2
9605 builtin and then its argument prototype would still apply. */
9606char $ac_func ();
9607/* The GNU C library defines this for functions which it implements
9608 to always fail with ENOSYS. Some functions are actually named
9609 something starting with __ and the normal name is an alias. */
9610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9611choke me
9612#else
9613char (*f) () = $ac_func;
9614#endif
9615#ifdef __cplusplus
9616}
9617#endif
9618
9619int
9620main ()
9621{
9622return f != $ac_func;
9623 ;
9624 return 0;
9625}
9626_ACEOF
9627rm -f conftest.$ac_objext conftest$ac_exeext
9628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629 (eval $ac_link) 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -z "$ac_c_werror_flag"
9637 || test ! -s conftest.err'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; } &&
9643 { ac_try='test -s conftest$ac_exeext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 eval "$as_ac_var=yes"
9650else
9651 echo "$as_me: failed program was:" >&5
9652sed 's/^/| /' conftest.$ac_ext >&5
9653
9654eval "$as_ac_var=no"
9655fi
9656rm -f conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658fi
9659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9661if test `eval echo '${'$as_ac_var'}'` = yes; then
9662 cat >>confdefs.h <<_ACEOF
9663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9664_ACEOF
9665 break
9666fi
9667done
9668
9669
9670
9671for ac_func in memmove strcmp
9672do
9673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9674echo "$as_me:$LINENO: checking for $ac_func" >&5
9675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9676if eval "test \"\${$as_ac_var+set}\" = set"; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679 cat >conftest.$ac_ext <<_ACEOF
9680/* confdefs.h. */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h. */
9685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9687#define $ac_func innocuous_$ac_func
9688
9689/* System header to define __stub macros and hopefully few prototypes,
9690 which can conflict with char $ac_func (); below.
9691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692 <limits.h> exists even on freestanding compilers. */
9693
9694#ifdef __STDC__
9695# include <limits.h>
9696#else
9697# include <assert.h>
9698#endif
9699
9700#undef $ac_func
9701
9702/* Override any gcc2 internal prototype to avoid an error. */
9703#ifdef __cplusplus
9704extern "C"
9705{
9706#endif
9707/* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
9709char $ac_func ();
9710/* The GNU C library defines this for functions which it implements
9711 to always fail with ENOSYS. Some functions are actually named
9712 something starting with __ and the normal name is an alias. */
9713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9714choke me
9715#else
9716char (*f) () = $ac_func;
9717#endif
9718#ifdef __cplusplus
9719}
9720#endif
9721
9722int
9723main ()
9724{
9725return f != $ac_func;
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732 (eval $ac_link) 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 eval "$as_ac_var=yes"
9753else
9754 echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757eval "$as_ac_var=no"
9758fi
9759rm -f conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761fi
9762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9764if test `eval echo '${'$as_ac_var'}'` = yes; then
9765 cat >>confdefs.h <<_ACEOF
9766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9767_ACEOF
9768
9769fi
9770done
9771
9772
9773
9774
9775for ac_func in closedir opendir readdir
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# Check whether --enable-shared or --disable-shared was given.
9878if test "${enable_shared+set}" = set; then
9879 enableval="$enable_shared"
9880 p=${PACKAGE-default}
9881 case $enableval in
9882 yes) enable_shared=yes ;;
9883 no) enable_shared=no ;;
9884 *)
9885 enable_shared=no
9886 # Look at the argument we got. We use all the common list separators.
9887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9888 for pkg in $enableval; do
9889 IFS="$lt_save_ifs"
9890 if test "X$pkg" = "X$p"; then
9891 enable_shared=yes
9892 fi
9893 done
9894 IFS="$lt_save_ifs"
9895 ;;
9896 esac
9897else
9898 enable_shared=yes
9899fi;
9900
9901# Check whether --enable-static or --disable-static was given.
9902if test "${enable_static+set}" = set; then
9903 enableval="$enable_static"
9904 p=${PACKAGE-default}
9905 case $enableval in
9906 yes) enable_static=yes ;;
9907 no) enable_static=no ;;
9908 *)
9909 enable_static=no
9910 # Look at the argument we got. We use all the common list separators.
9911 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9912 for pkg in $enableval; do
9913 IFS="$lt_save_ifs"
9914 if test "X$pkg" = "X$p"; then
9915 enable_static=yes
9916 fi
9917 done
9918 IFS="$lt_save_ifs"
9919 ;;
9920 esac
9921else
9922 enable_static=yes
9923fi;
9924
9925# Check whether --enable-fast-install or --disable-fast-install was given.
9926if test "${enable_fast_install+set}" = set; then
9927 enableval="$enable_fast_install"
9928 p=${PACKAGE-default}
9929 case $enableval in
9930 yes) enable_fast_install=yes ;;
9931 no) enable_fast_install=no ;;
9932 *)
9933 enable_fast_install=no
9934 # Look at the argument we got. We use all the common list separators.
9935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9936 for pkg in $enableval; do
9937 IFS="$lt_save_ifs"
9938 if test "X$pkg" = "X$p"; then
9939 enable_fast_install=yes
9940 fi
9941 done
9942 IFS="$lt_save_ifs"
9943 ;;
9944 esac
9945else
9946 enable_fast_install=yes
9947fi;
9948
9949echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9950echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9951if test "${lt_cv_path_SED+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 # Loop through the user's path and test for sed and gsed.
9955# Then use that list of sed's as ones to test for truncation.
9956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957for as_dir in $PATH
9958do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for lt_ac_prog in sed gsed; do
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9964 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9965 fi
9966 done
9967 done
9968done
9969lt_ac_max=0
9970lt_ac_count=0
9971# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9972# along with /bin/sed that truncates output.
9973for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9974 test ! -f $lt_ac_sed && break
9975 cat /dev/null > conftest.in
9976 lt_ac_count=0
9977 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9978 # Check for GNU sed and select it if it is found.
9979 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9980 lt_cv_path_SED=$lt_ac_sed
9981 break
9982 fi
9983 while true; do
9984 cat conftest.in conftest.in >conftest.tmp
9985 mv conftest.tmp conftest.in
9986 cp conftest.in conftest.nl
9987 echo >>conftest.nl
9988 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9989 cmp -s conftest.out conftest.nl || break
9990 # 10000 chars as input seems more than enough
9991 test $lt_ac_count -gt 10 && break
9992 lt_ac_count=`expr $lt_ac_count + 1`
9993 if test $lt_ac_count -gt $lt_ac_max; then
9994 lt_ac_max=$lt_ac_count
9995 lt_cv_path_SED=$lt_ac_sed
9996 fi
9997 done
9998done
9999
10000fi
10001
10002SED=$lt_cv_path_SED
10003echo "$as_me:$LINENO: result: $SED" >&5
10004echo "${ECHO_T}$SED" >&6
10005
10006
10007# Check whether --with-gnu-ld or --without-gnu-ld was given.
10008if test "${with_gnu_ld+set}" = set; then
10009 withval="$with_gnu_ld"
10010 test "$withval" = no || with_gnu_ld=yes
10011else
10012 with_gnu_ld=no
10013fi;
10014ac_prog=ld
10015if test "$GCC" = yes; then
10016 # Check if gcc -print-prog-name=ld gives a path.
10017 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10018echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10019 case $host in
10020 *-*-mingw*)
10021 # gcc leaves a trailing carriage return which upsets mingw
10022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10023 *)
10024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10025 esac
10026 case $ac_prog in
10027 # Accept absolute paths.
10028 [\\/]* | ?:[\\/]*)
10029 re_direlt='/[^/][^/]*/\.\./'
10030 # Canonicalize the pathname of ld
10031 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10033 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10034 done
10035 test -z "$LD" && LD="$ac_prog"
10036 ;;
10037 "")
10038 # If it fails, then pretend we aren't using GCC.
10039 ac_prog=ld
10040 ;;
10041 *)
10042 # If it is relative, then search for the first ld in PATH.
10043 with_gnu_ld=unknown
10044 ;;
10045 esac
10046elif test "$with_gnu_ld" = yes; then
10047 echo "$as_me:$LINENO: checking for GNU ld" >&5
10048echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10049else
10050 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10051echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10052fi
10053if test "${lt_cv_path_LD+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056 if test -z "$LD"; then
10057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10058 for ac_dir in $PATH; do
10059 IFS="$lt_save_ifs"
10060 test -z "$ac_dir" && ac_dir=.
10061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10062 lt_cv_path_LD="$ac_dir/$ac_prog"
10063 # Check to see if the program is GNU ld. I'd rather use --version,
10064 # but apparently some GNU ld's only accept -v.
10065 # Break only if it was the GNU/non-GNU ld that we prefer.
10066 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10067 *GNU* | *'with BFD'*)
10068 test "$with_gnu_ld" != no && break
10069 ;;
10070 *)
10071 test "$with_gnu_ld" != yes && break
10072 ;;
10073 esac
10074 fi
10075 done
10076 IFS="$lt_save_ifs"
10077else
10078 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10079fi
10080fi
10081
10082LD="$lt_cv_path_LD"
10083if test -n "$LD"; then
10084 echo "$as_me:$LINENO: result: $LD" >&5
10085echo "${ECHO_T}$LD" >&6
10086else
10087 echo "$as_me:$LINENO: result: no" >&5
10088echo "${ECHO_T}no" >&6
10089fi
10090test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10091echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10092 { (exit 1); exit 1; }; }
10093echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10094echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10095if test "${lt_cv_prog_gnu_ld+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097else
10098 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10099case `$LD -v 2>&1 </dev/null` in
10100*GNU* | *'with BFD'*)
10101 lt_cv_prog_gnu_ld=yes
10102 ;;
10103*)
10104 lt_cv_prog_gnu_ld=no
10105 ;;
10106esac
10107fi
10108echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10109echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10110with_gnu_ld=$lt_cv_prog_gnu_ld
10111
10112
10113echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10114echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10115if test "${lt_cv_ld_reload_flag+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117else
10118 lt_cv_ld_reload_flag='-r'
10119fi
10120echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10121echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10122reload_flag=$lt_cv_ld_reload_flag
10123case $reload_flag in
10124"" | " "*) ;;
10125*) reload_flag=" $reload_flag" ;;
10126esac
10127reload_cmds='$LD$reload_flag -o $output$reload_objs'
10128case $host_os in
10129 darwin*)
10130 if test "$GCC" = yes; then
10131 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10132 else
10133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10134 fi
10135 ;;
10136esac
10137
10138echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10139echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10140if test "${lt_cv_deplibs_check_method+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143 lt_cv_file_magic_cmd='$MAGIC_CMD'
10144lt_cv_file_magic_test_file=
10145lt_cv_deplibs_check_method='unknown'
10146# Need to set the preceding variable on all platforms that support
10147# interlibrary dependencies.
10148# 'none' -- dependencies not supported.
10149# `unknown' -- same as none, but documents that we really don't know.
10150# 'pass_all' -- all dependencies passed with no checks.
10151# 'test_compile' -- check by making test program.
10152# 'file_magic [[regex]]' -- check by looking for files in library path
10153# which responds to the $file_magic_cmd with a given extended regex.
10154# If you have `file' or equivalent on your system and you're not sure
10155# whether `pass_all' will *always* work, you probably want this one.
10156
10157case $host_os in
10158aix4* | aix5*)
10159 lt_cv_deplibs_check_method=pass_all
10160 ;;
10161
10162beos*)
10163 lt_cv_deplibs_check_method=pass_all
10164 ;;
10165
10166bsdi[45]*)
10167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10168 lt_cv_file_magic_cmd='/usr/bin/file -L'
10169 lt_cv_file_magic_test_file=/shlib/libc.so
10170 ;;
10171
10172cygwin*)
10173 # func_win32_libid is a shell function defined in ltmain.sh
10174 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10175 lt_cv_file_magic_cmd='func_win32_libid'
10176 ;;
10177
10178mingw* | pw32*)
10179 # Base MSYS/MinGW do not provide the 'file' command needed by
10180 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10181 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10182 lt_cv_file_magic_cmd='$OBJDUMP -f'
10183 ;;
10184
10185darwin* | rhapsody*)
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188
10189freebsd* | kfreebsd*-gnu)
10190 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10191 case $host_cpu in
10192 i*86 )
10193 # Not sure whether the presence of OpenBSD here was a mistake.
10194 # Let's accept both of them until this is cleared up.
10195 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10196 lt_cv_file_magic_cmd=/usr/bin/file
10197 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10198 ;;
10199 esac
10200 else
10201 lt_cv_deplibs_check_method=pass_all
10202 fi
10203 ;;
10204
10205gnu*)
10206 lt_cv_deplibs_check_method=pass_all
10207 ;;
10208
10209hpux10.20* | hpux11*)
10210 lt_cv_file_magic_cmd=/usr/bin/file
10211 case "$host_cpu" in
10212 ia64*)
10213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10214 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10215 ;;
10216 hppa*64*)
10217 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]'
10218 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10219 ;;
10220 *)
10221 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10222 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10223 ;;
10224 esac
10225 ;;
10226
10227irix5* | irix6* | nonstopux*)
10228 case $LD in
10229 *-32|*"-32 ") libmagic=32-bit;;
10230 *-n32|*"-n32 ") libmagic=N32;;
10231 *-64|*"-64 ") libmagic=64-bit;;
10232 *) libmagic=never-match;;
10233 esac
10234 lt_cv_deplibs_check_method=pass_all
10235 ;;
10236
10237# This must be Linux ELF.
10238linux*)
10239 lt_cv_deplibs_check_method=pass_all
10240 ;;
10241
10242netbsd*)
10243 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10245 else
10246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10247 fi
10248 ;;
10249
10250newos6*)
10251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10252 lt_cv_file_magic_cmd=/usr/bin/file
10253 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10254 ;;
10255
10256nto-qnx*)
10257 lt_cv_deplibs_check_method=unknown
10258 ;;
10259
10260openbsd*)
10261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10263 else
10264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10265 fi
10266 ;;
10267
10268osf3* | osf4* | osf5*)
10269 lt_cv_deplibs_check_method=pass_all
10270 ;;
10271
10272sco3.2v5*)
10273 lt_cv_deplibs_check_method=pass_all
10274 ;;
10275
10276solaris*)
10277 lt_cv_deplibs_check_method=pass_all
10278 ;;
10279
10280sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10281 case $host_vendor in
10282 motorola)
10283 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]'
10284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10285 ;;
10286 ncr)
10287 lt_cv_deplibs_check_method=pass_all
10288 ;;
10289 sequent)
10290 lt_cv_file_magic_cmd='/bin/file'
10291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10292 ;;
10293 sni)
10294 lt_cv_file_magic_cmd='/bin/file'
10295 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10296 lt_cv_file_magic_test_file=/lib/libc.so
10297 ;;
10298 siemens)
10299 lt_cv_deplibs_check_method=pass_all
10300 ;;
10301 esac
10302 ;;
10303
10304sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10305 lt_cv_deplibs_check_method=pass_all
10306 ;;
10307esac
10308
10309fi
10310echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10311echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10312file_magic_cmd=$lt_cv_file_magic_cmd
10313deplibs_check_method=$lt_cv_deplibs_check_method
10314test -z "$deplibs_check_method" && deplibs_check_method=unknown
10315
10316
10317
10318# If no C compiler was specified, use CC.
10319LTCC=${LTCC-"$CC"}
10320
10321# Allow CC to be a program name with arguments.
10322compiler=$CC
10323
10324# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10325if test "${enable_libtool_lock+set}" = set; then
10326 enableval="$enable_libtool_lock"
10327
10328fi;
10329test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10330
10331# Some flags need to be propagated to the compiler or linker for good
10332# libtool support.
10333case $host in
10334ia64-*-hpux*)
10335 # Find out which ABI we are using.
10336 echo 'int i;' > conftest.$ac_ext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338 (eval $ac_compile) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; then
10342 case `/usr/bin/file conftest.$ac_objext` in
10343 *ELF-32*)
10344 HPUX_IA64_MODE="32"
10345 ;;
10346 *ELF-64*)
10347 HPUX_IA64_MODE="64"
10348 ;;
10349 esac
10350 fi
10351 rm -rf conftest*
10352 ;;
10353*-*-irix6*)
10354 # Find out which ABI we are using.
John Criswell241116f2005-12-19 20:27:24 +000010355 echo '#line 10355 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; then
10361 if test "$lt_cv_prog_gnu_ld" = yes; then
10362 case `/usr/bin/file conftest.$ac_objext` in
10363 *32-bit*)
10364 LD="${LD-ld} -melf32bsmip"
10365 ;;
10366 *N32*)
10367 LD="${LD-ld} -melf32bmipn32"
10368 ;;
10369 *64-bit*)
10370 LD="${LD-ld} -melf64bmip"
10371 ;;
10372 esac
10373 else
10374 case `/usr/bin/file conftest.$ac_objext` in
10375 *32-bit*)
10376 LD="${LD-ld} -32"
10377 ;;
10378 *N32*)
10379 LD="${LD-ld} -n32"
10380 ;;
10381 *64-bit*)
10382 LD="${LD-ld} -64"
10383 ;;
10384 esac
10385 fi
10386 fi
10387 rm -rf conftest*
10388 ;;
10389
10390x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10391 # Find out which ABI we are using.
10392 echo 'int i;' > conftest.$ac_ext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394 (eval $ac_compile) 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; then
10398 case "`/usr/bin/file conftest.o`" in
10399 *32-bit*)
10400 case $host in
10401 x86_64-*linux*)
10402 LD="${LD-ld} -m elf_i386"
10403 ;;
10404 ppc64-*linux*|powerpc64-*linux*)
10405 LD="${LD-ld} -m elf32ppclinux"
10406 ;;
10407 s390x-*linux*)
10408 LD="${LD-ld} -m elf_s390"
10409 ;;
10410 sparc64-*linux*)
10411 LD="${LD-ld} -m elf32_sparc"
10412 ;;
10413 esac
10414 ;;
10415 *64-bit*)
10416 case $host in
10417 x86_64-*linux*)
10418 LD="${LD-ld} -m elf_x86_64"
10419 ;;
10420 ppc*-*linux*|powerpc*-*linux*)
10421 LD="${LD-ld} -m elf64ppc"
10422 ;;
10423 s390*-*linux*)
10424 LD="${LD-ld} -m elf64_s390"
10425 ;;
10426 sparc*-*linux*)
10427 LD="${LD-ld} -m elf64_sparc"
10428 ;;
10429 esac
10430 ;;
10431 esac
10432 fi
10433 rm -rf conftest*
10434 ;;
10435
10436*-*-sco3.2v5*)
10437 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10438 SAVE_CFLAGS="$CFLAGS"
10439 CFLAGS="$CFLAGS -belf"
10440 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10441echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10442if test "${lt_cv_cc_needs_belf+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445 ac_ext=c
10446ac_cpp='$CPP $CPPFLAGS'
10447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10449ac_compiler_gnu=$ac_cv_c_compiler_gnu
10450
10451 cat >conftest.$ac_ext <<_ACEOF
10452/* confdefs.h. */
10453_ACEOF
10454cat confdefs.h >>conftest.$ac_ext
10455cat >>conftest.$ac_ext <<_ACEOF
10456/* end confdefs.h. */
10457
10458_ACEOF
10459rm -f conftest.$ac_objext conftest$ac_exeext
10460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10461 (eval $ac_link) 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -z "$ac_c_werror_flag"
10469 || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 lt_cv_cc_needs_belf=yes
10482else
10483 echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486lt_cv_cc_needs_belf=no
10487fi
10488rm -f conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10490 ac_ext=c
10491ac_cpp='$CPP $CPPFLAGS'
10492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10494ac_compiler_gnu=$ac_cv_c_compiler_gnu
10495
10496fi
10497echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10498echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10499 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10500 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10501 CFLAGS="$SAVE_CFLAGS"
10502 fi
10503 ;;
10504
10505esac
10506
10507need_locks="$enable_libtool_lock"
10508
10509
Reid Spencer2706f8c2004-09-19 23:53:36 +000010510
10511
10512if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10513 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10514 (test "X$CXX" != "Xg++"))) ; then
10515 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010516ac_cpp='$CXXCPP $CPPFLAGS'
10517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10520echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10521echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10522if test -z "$CXXCPP"; then
10523 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525else
John Criswell47fdd832003-07-14 16:52:07 +000010526 # Double quotes because CXXCPP needs to be expanded
10527 for CXXCPP in "$CXX -E" "/lib/cpp"
10528 do
10529 ac_preproc_ok=false
10530for ac_cxx_preproc_warn_flag in '' yes
10531do
10532 # Use a header file that comes with gcc, so configuring glibc
10533 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10535 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010536 # On the NeXT, cc -E runs the code through the compiler's parser,
10537 # not just through cpp. "Syntax error" is here to catch this case.
10538 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010539/* confdefs.h. */
10540_ACEOF
10541cat confdefs.h >>conftest.$ac_ext
10542cat >>conftest.$ac_ext <<_ACEOF
10543/* end confdefs.h. */
10544#ifdef __STDC__
10545# include <limits.h>
10546#else
10547# include <assert.h>
10548#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010549 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010550_ACEOF
10551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10553 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010554 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } >/dev/null; then
10559 if test -s conftest.err; then
10560 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010561 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010562 else
John Criswell47fdd832003-07-14 16:52:07 +000010563 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010564 fi
John Criswell47fdd832003-07-14 16:52:07 +000010565else
10566 ac_cpp_err=yes
10567fi
10568if test -z "$ac_cpp_err"; then
10569 :
10570else
10571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010572sed 's/^/| /' conftest.$ac_ext >&5
10573
John Criswell47fdd832003-07-14 16:52:07 +000010574 # Broken: fails on valid input.
10575continue
10576fi
10577rm -f conftest.err conftest.$ac_ext
10578
10579 # OK, works on sane cases. Now check whether non-existent headers
10580 # can be detected and how.
10581 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010587#include <ac_nonexistent.h>
10588_ACEOF
10589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10591 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010592 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } >/dev/null; then
10597 if test -s conftest.err; then
10598 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010599 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010600 else
10601 ac_cpp_err=
10602 fi
10603else
10604 ac_cpp_err=yes
10605fi
10606if test -z "$ac_cpp_err"; then
10607 # Broken: success on invalid input.
10608continue
10609else
10610 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010611sed 's/^/| /' conftest.$ac_ext >&5
10612
John Criswell47fdd832003-07-14 16:52:07 +000010613 # Passes both tests.
10614ac_preproc_ok=:
10615break
10616fi
10617rm -f conftest.err conftest.$ac_ext
10618
10619done
10620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10621rm -f conftest.err conftest.$ac_ext
10622if $ac_preproc_ok; then
10623 break
John Criswell7a73b802003-06-30 21:59:07 +000010624fi
10625
John Criswell47fdd832003-07-14 16:52:07 +000010626 done
10627 ac_cv_prog_CXXCPP=$CXXCPP
10628
10629fi
10630 CXXCPP=$ac_cv_prog_CXXCPP
10631else
10632 ac_cv_prog_CXXCPP=$CXXCPP
10633fi
10634echo "$as_me:$LINENO: result: $CXXCPP" >&5
10635echo "${ECHO_T}$CXXCPP" >&6
10636ac_preproc_ok=false
10637for ac_cxx_preproc_warn_flag in '' yes
10638do
10639 # Use a header file that comes with gcc, so configuring glibc
10640 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010643 # On the NeXT, cc -E runs the code through the compiler's parser,
10644 # not just through cpp. "Syntax error" is here to catch this case.
10645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010646/* confdefs.h. */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h. */
10651#ifdef __STDC__
10652# include <limits.h>
10653#else
10654# include <assert.h>
10655#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010656 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010657_ACEOF
10658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10660 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010661 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev/null; then
10666 if test -s conftest.err; then
10667 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010669 else
10670 ac_cpp_err=
10671 fi
10672else
10673 ac_cpp_err=yes
10674fi
10675if test -z "$ac_cpp_err"; then
10676 :
10677else
10678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010679sed 's/^/| /' conftest.$ac_ext >&5
10680
John Criswell47fdd832003-07-14 16:52:07 +000010681 # Broken: fails on valid input.
10682continue
10683fi
10684rm -f conftest.err conftest.$ac_ext
10685
10686 # OK, works on sane cases. Now check whether non-existent headers
10687 # can be detected and how.
10688 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010694#include <ac_nonexistent.h>
10695_ACEOF
10696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10698 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010699 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } >/dev/null; then
10704 if test -s conftest.err; then
10705 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010706 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010707 else
10708 ac_cpp_err=
10709 fi
10710else
10711 ac_cpp_err=yes
10712fi
10713if test -z "$ac_cpp_err"; then
10714 # Broken: success on invalid input.
10715continue
10716else
10717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010718sed 's/^/| /' conftest.$ac_ext >&5
10719
John Criswell47fdd832003-07-14 16:52:07 +000010720 # Passes both tests.
10721ac_preproc_ok=:
10722break
10723fi
10724rm -f conftest.err conftest.$ac_ext
10725
10726done
10727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10728rm -f conftest.err conftest.$ac_ext
10729if $ac_preproc_ok; then
10730 :
10731else
John Criswell0c38eaf2003-09-10 15:17:25 +000010732 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10733See \`config.log' for more details." >&5
10734echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10735See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010736 { (exit 1); exit 1; }; }
10737fi
10738
10739ac_ext=cc
10740ac_cpp='$CXXCPP $CPPFLAGS'
10741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10744
Reid Spencer2706f8c2004-09-19 23:53:36 +000010745fi
10746
John Criswell47fdd832003-07-14 16:52:07 +000010747
10748ac_ext=f
10749ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10750ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10751ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10752if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010753 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 +000010754 do
10755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10756set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10757echo "$as_me:$LINENO: checking for $ac_word" >&5
10758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10759if test "${ac_cv_prog_F77+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762 if test -n "$F77"; then
10763 ac_cv_prog_F77="$F77" # Let the user override the test.
10764else
10765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776done
10777done
10778
10779fi
10780fi
10781F77=$ac_cv_prog_F77
10782if test -n "$F77"; then
10783 echo "$as_me:$LINENO: result: $F77" >&5
10784echo "${ECHO_T}$F77" >&6
10785else
10786 echo "$as_me:$LINENO: result: no" >&5
10787echo "${ECHO_T}no" >&6
10788fi
10789
10790 test -n "$F77" && break
10791 done
10792fi
10793if test -z "$F77"; then
10794 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010795 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 +000010796do
10797 # Extract the first word of "$ac_prog", so it can be a program name with args.
10798set dummy $ac_prog; ac_word=$2
10799echo "$as_me:$LINENO: checking for $ac_word" >&5
10800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10801if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803else
10804 if test -n "$ac_ct_F77"; then
10805 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10806else
10807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $PATH
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10814 ac_cv_prog_ac_ct_F77="$ac_prog"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819done
10820
10821fi
10822fi
10823ac_ct_F77=$ac_cv_prog_ac_ct_F77
10824if test -n "$ac_ct_F77"; then
10825 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10826echo "${ECHO_T}$ac_ct_F77" >&6
10827else
10828 echo "$as_me:$LINENO: result: no" >&5
10829echo "${ECHO_T}no" >&6
10830fi
10831
10832 test -n "$ac_ct_F77" && break
10833done
10834
10835 F77=$ac_ct_F77
10836fi
10837
10838
10839# Provide some information about the compiler.
John Criswell241116f2005-12-19 20:27:24 +000010840echo "$as_me:10840:" \
John Criswell47fdd832003-07-14 16:52:07 +000010841 "checking for Fortran 77 compiler version" >&5
10842ac_compiler=`set X $ac_compile; echo $2`
10843{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10844 (eval $ac_compiler --version </dev/null >&5) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }
10848{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10849 (eval $ac_compiler -v </dev/null >&5) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }
10853{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10854 (eval $ac_compiler -V </dev/null >&5) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010858rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010859
10860# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010861# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010862ac_save_ext=$ac_ext
10863ac_ext=F
10864echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10865echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10866if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10868else
10869 cat >conftest.$ac_ext <<_ACEOF
10870 program main
10871#ifndef __GNUC__
10872 choke me
10873#endif
10874
10875 end
10876_ACEOF
10877rm -f conftest.$ac_objext
10878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010879 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010886 { ac_try='test -z "$ac_f77_werror_flag"
10887 || test ! -s conftest.err'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 ac_compiler_gnu=yes
10900else
10901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010902sed 's/^/| /' conftest.$ac_ext >&5
10903
John Criswell47fdd832003-07-14 16:52:07 +000010904ac_compiler_gnu=no
10905fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010907ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10908
10909fi
10910echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10911echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10912ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010913ac_test_FFLAGS=${FFLAGS+set}
10914ac_save_FFLAGS=$FFLAGS
10915FFLAGS=
10916echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10917echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10918if test "${ac_cv_prog_f77_g+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 FFLAGS=-g
10922cat >conftest.$ac_ext <<_ACEOF
10923 program main
10924
10925 end
10926_ACEOF
10927rm -f conftest.$ac_objext
10928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010929 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010936 { ac_try='test -z "$ac_f77_werror_flag"
10937 || test ! -s conftest.err'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 ac_cv_prog_f77_g=yes
10950else
10951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010952sed 's/^/| /' conftest.$ac_ext >&5
10953
John Criswell47fdd832003-07-14 16:52:07 +000010954ac_cv_prog_f77_g=no
10955fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010957
10958fi
10959echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10960echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10961if test "$ac_test_FFLAGS" = set; then
10962 FFLAGS=$ac_save_FFLAGS
10963elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010964 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010965 FFLAGS="-g -O2"
10966 else
10967 FFLAGS="-g"
10968 fi
10969else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010970 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010971 FFLAGS="-O2"
10972 else
10973 FFLAGS=
10974 fi
10975fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010976
10977G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010978ac_ext=c
10979ac_cpp='$CPP $CPPFLAGS'
10980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982ac_compiler_gnu=$ac_cv_c_compiler_gnu
10983
10984
10985
10986# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10987
10988# find the maximum length of command line arguments
10989echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10990echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10991if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993else
10994 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010995 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010996
10997 case $build_os in
10998 msdosdjgpp*)
10999 # On DJGPP, this test can blow up pretty badly due to problems in libc
11000 # (any single argument exceeding 2000 bytes causes a buffer overrun
11001 # during glob expansion). Even if it were fixed, the result of this
11002 # check would be larger than it should be.
11003 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11004 ;;
11005
11006 gnu*)
11007 # Under GNU Hurd, this test is not required because there is
11008 # no limit to the length of command line arguments.
11009 # Libtool will interpret -1 as no limit whatsoever
11010 lt_cv_sys_max_cmd_len=-1;
11011 ;;
11012
11013 cygwin* | mingw*)
11014 # On Win9x/ME, this test blows up -- it succeeds, but takes
11015 # about 5 minutes as the teststring grows exponentially.
11016 # Worse, since 9x/ME are not pre-emptively multitasking,
11017 # you end up with a "frozen" computer, even though with patience
11018 # the test eventually succeeds (with a max line length of 256k).
11019 # Instead, let's just punt: use the minimum linelength reported by
11020 # all of the supported platforms: 8192 (on NT/2K/XP).
11021 lt_cv_sys_max_cmd_len=8192;
11022 ;;
11023
Reid Spencer2706f8c2004-09-19 23:53:36 +000011024 amigaos*)
11025 # On AmigaOS with pdksh, this test takes hours, literally.
11026 # So we just punt and use a minimum line length of 8192.
11027 lt_cv_sys_max_cmd_len=8192;
11028 ;;
11029
11030 netbsd* | freebsd* | openbsd* | darwin* )
11031 # This has been around since 386BSD, at least. Likely further.
11032 if test -x /sbin/sysctl; then
11033 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11034 elif test -x /usr/sbin/sysctl; then
11035 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11036 else
11037 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11038 fi
11039 # And add a safety zone
11040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11041 ;;
11042
John Criswell47fdd832003-07-14 16:52:07 +000011043 *)
11044 # If test is not a shell built-in, we'll probably end up computing a
11045 # maximum length that is only half of the actual maximum length, but
11046 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011047 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11048 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11049 = "XX$teststring") >/dev/null 2>&1 &&
11050 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011051 lt_cv_sys_max_cmd_len=$new_result &&
11052 test $i != 17 # 1/2 MB should be enough
11053 do
11054 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011055 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011056 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011057 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011058 # Add a significant safety factor because C++ compilers can tack on massive
11059 # amounts of additional arguments before passing them to the linker.
11060 # It appears as though 1/2 is a usable value.
11061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11062 ;;
11063 esac
11064
11065fi
11066
11067if test -n $lt_cv_sys_max_cmd_len ; then
11068 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11069echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11070else
11071 echo "$as_me:$LINENO: result: none" >&5
11072echo "${ECHO_T}none" >&6
11073fi
11074
11075
11076
11077
11078# Check for command to grab the raw symbol name followed by C symbol from nm.
11079echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11080echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11081if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083else
11084
11085# These are sane defaults that work on at least a few old systems.
11086# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11087
11088# Character class describing NM global symbol codes.
11089symcode='[BCDEGRST]'
11090
11091# Regexp to match symbols that can be accessed directly from C.
11092sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11093
11094# Transform the above into a raw symbol and a C symbol.
11095symxfrm='\1 \2\3 \3'
11096
11097# Transform an extracted symbol line into a proper C declaration
11098lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11099
11100# Transform an extracted symbol line into symbol name and symbol address
11101lt_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'"
11102
11103# Define system-specific variables.
11104case $host_os in
11105aix*)
11106 symcode='[BCDT]'
11107 ;;
11108cygwin* | mingw* | pw32*)
11109 symcode='[ABCDGISTW]'
11110 ;;
11111hpux*) # Its linker distinguishes data from code symbols
11112 if test "$host_cpu" = ia64; then
11113 symcode='[ABCDEGRST]'
11114 fi
11115 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11116 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'"
11117 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011118linux*)
11119 if test "$host_cpu" = ia64; then
11120 symcode='[ABCDGIRSTW]'
11121 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11122 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'"
11123 fi
11124 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011125irix* | nonstopux*)
11126 symcode='[BCDEGRST]'
11127 ;;
11128osf*)
11129 symcode='[BCDEGQRST]'
11130 ;;
11131solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011132 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011133 ;;
11134sysv4)
11135 symcode='[DFNSTU]'
11136 ;;
11137esac
11138
11139# Handle CRLF in mingw tool chain
11140opt_cr=
11141case $build_os in
11142mingw*)
11143 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11144 ;;
11145esac
11146
11147# If we're using GNU nm, then use its standard symbol codes.
11148case `$NM -V 2>&1` in
11149*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011150 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011151esac
11152
11153# Try without a prefix undercore, then with it.
11154for ac_symprfx in "" "_"; do
11155
11156 # Write the raw and C identifiers.
11157 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11158
11159 # Check to see that the pipe works correctly.
11160 pipe_works=no
11161
11162 rm -f conftest*
11163 cat > conftest.$ac_ext <<EOF
11164#ifdef __cplusplus
11165extern "C" {
11166#endif
11167char nm_test_var;
11168void nm_test_func(){}
11169#ifdef __cplusplus
11170}
11171#endif
11172int main(){nm_test_var='a';nm_test_func();return(0);}
11173EOF
11174
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; then
11180 # Now try to grab the symbols.
11181 nlist=conftest.nm
11182 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11183 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && test -s "$nlist"; then
11187 # Try sorting and uniquifying the output.
11188 if sort "$nlist" | uniq > "$nlist"T; then
11189 mv -f "$nlist"T "$nlist"
11190 else
11191 rm -f "$nlist"T
11192 fi
11193
11194 # Make sure that we snagged all the symbols we need.
11195 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11196 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11197 cat <<EOF > conftest.$ac_ext
11198#ifdef __cplusplus
11199extern "C" {
11200#endif
11201
11202EOF
11203 # Now generate the symbol file.
11204 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11205
11206 cat <<EOF >> conftest.$ac_ext
11207#if defined (__STDC__) && __STDC__
11208# define lt_ptr_t void *
11209#else
11210# define lt_ptr_t char *
11211# define const
11212#endif
11213
11214/* The mapping between symbol names and symbols. */
11215const struct {
11216 const char *name;
11217 lt_ptr_t address;
11218}
11219lt_preloaded_symbols[] =
11220{
11221EOF
11222 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11223 cat <<\EOF >> conftest.$ac_ext
11224 {0, (lt_ptr_t) 0}
11225};
11226
11227#ifdef __cplusplus
11228}
11229#endif
11230EOF
11231 # Now try linking the two files.
11232 mv conftest.$ac_objext conftstm.$ac_objext
11233 lt_save_LIBS="$LIBS"
11234 lt_save_CFLAGS="$CFLAGS"
11235 LIBS="conftstm.$ac_objext"
11236 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11238 (eval $ac_link) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11242 pipe_works=yes
11243 fi
11244 LIBS="$lt_save_LIBS"
11245 CFLAGS="$lt_save_CFLAGS"
11246 else
11247 echo "cannot find nm_test_func in $nlist" >&5
11248 fi
11249 else
11250 echo "cannot find nm_test_var in $nlist" >&5
11251 fi
11252 else
11253 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11254 fi
11255 else
11256 echo "$progname: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11258 fi
11259 rm -f conftest* conftst*
11260
11261 # Do not use the global_symbol_pipe unless it works.
11262 if test "$pipe_works" = yes; then
11263 break
11264 else
11265 lt_cv_sys_global_symbol_pipe=
11266 fi
11267done
11268
11269fi
11270
11271if test -z "$lt_cv_sys_global_symbol_pipe"; then
11272 lt_cv_sys_global_symbol_to_cdecl=
11273fi
11274if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11275 echo "$as_me:$LINENO: result: failed" >&5
11276echo "${ECHO_T}failed" >&6
11277else
11278 echo "$as_me:$LINENO: result: ok" >&5
11279echo "${ECHO_T}ok" >&6
11280fi
11281
11282echo "$as_me:$LINENO: checking for objdir" >&5
11283echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11284if test "${lt_cv_objdir+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286else
11287 rm -f .libs 2>/dev/null
11288mkdir .libs 2>/dev/null
11289if test -d .libs; then
11290 lt_cv_objdir=.libs
11291else
11292 # MS-DOS does not allow filenames that begin with a dot.
11293 lt_cv_objdir=_libs
11294fi
11295rmdir .libs 2>/dev/null
11296fi
11297echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11298echo "${ECHO_T}$lt_cv_objdir" >&6
11299objdir=$lt_cv_objdir
11300
11301
11302
11303
11304
11305case $host_os in
11306aix3*)
11307 # AIX sometimes has problems with the GCC collect2 program. For some
11308 # reason, if we set the COLLECT_NAMES environment variable, the problems
11309 # vanish in a puff of smoke.
11310 if test "X${COLLECT_NAMES+set}" != Xset; then
11311 COLLECT_NAMES=
11312 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011313 fi
11314 ;;
11315esac
11316
John Criswell47fdd832003-07-14 16:52:07 +000011317# Sed substitution that helps us do robust quoting. It backslashifies
11318# metacharacters that are still active within double-quoted strings.
11319Xsed='sed -e s/^X//'
11320sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11321
11322# Same as above, but do not quote variable references.
11323double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11324
11325# Sed substitution to delay expansion of an escaped shell variable in a
11326# double_quote_subst'ed string.
11327delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11328
11329# Sed substitution to avoid accidental globbing in evaled expressions
11330no_glob_subst='s/\*/\\\*/g'
11331
11332# Constants:
11333rm="rm -f"
11334
11335# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011336default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011337can_build_shared=yes
11338
11339# All known linkers require a `.a' archive for static linking (except M$VC,
11340# which needs '.lib').
11341libext=a
11342ltmain="$ac_aux_dir/ltmain.sh"
11343ofile="$default_ofile"
11344with_gnu_ld="$lt_cv_prog_gnu_ld"
11345
11346if test -n "$ac_tool_prefix"; then
11347 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11348set dummy ${ac_tool_prefix}ar; ac_word=$2
11349echo "$as_me:$LINENO: checking for $ac_word" >&5
11350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11351if test "${ac_cv_prog_AR+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353else
11354 if test -n "$AR"; then
11355 ac_cv_prog_AR="$AR" # Let the user override the test.
11356else
11357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358for as_dir in $PATH
11359do
11360 IFS=$as_save_IFS
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364 ac_cv_prog_AR="${ac_tool_prefix}ar"
11365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 break 2
11367 fi
11368done
11369done
11370
11371fi
11372fi
11373AR=$ac_cv_prog_AR
11374if test -n "$AR"; then
11375 echo "$as_me:$LINENO: result: $AR" >&5
11376echo "${ECHO_T}$AR" >&6
11377else
11378 echo "$as_me:$LINENO: result: no" >&5
11379echo "${ECHO_T}no" >&6
11380fi
11381
11382fi
11383if test -z "$ac_cv_prog_AR"; then
11384 ac_ct_AR=$AR
11385 # Extract the first word of "ar", so it can be a program name with args.
11386set dummy ar; ac_word=$2
11387echo "$as_me:$LINENO: checking for $ac_word" >&5
11388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11389if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 if test -n "$ac_ct_AR"; then
11393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_ac_ct_AR="ar"
11403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407done
11408
11409 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11410fi
11411fi
11412ac_ct_AR=$ac_cv_prog_ac_ct_AR
11413if test -n "$ac_ct_AR"; then
11414 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11415echo "${ECHO_T}$ac_ct_AR" >&6
11416else
11417 echo "$as_me:$LINENO: result: no" >&5
11418echo "${ECHO_T}no" >&6
11419fi
11420
11421 AR=$ac_ct_AR
11422else
11423 AR="$ac_cv_prog_AR"
11424fi
11425
John Criswell7a73b802003-06-30 21:59:07 +000011426if test -n "$ac_tool_prefix"; then
11427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11428set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11429echo "$as_me:$LINENO: checking for $ac_word" >&5
11430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11431if test "${ac_cv_prog_RANLIB+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433else
11434 if test -n "$RANLIB"; then
11435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448done
11449done
11450
11451fi
11452fi
11453RANLIB=$ac_cv_prog_RANLIB
11454if test -n "$RANLIB"; then
11455 echo "$as_me:$LINENO: result: $RANLIB" >&5
11456echo "${ECHO_T}$RANLIB" >&6
11457else
11458 echo "$as_me:$LINENO: result: no" >&5
11459echo "${ECHO_T}no" >&6
11460fi
11461
11462fi
11463if test -z "$ac_cv_prog_RANLIB"; then
11464 ac_ct_RANLIB=$RANLIB
11465 # Extract the first word of "ranlib", so it can be a program name with args.
11466set dummy ranlib; ac_word=$2
11467echo "$as_me:$LINENO: checking for $ac_word" >&5
11468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11469if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471else
11472 if test -n "$ac_ct_RANLIB"; then
11473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11474else
11475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $PATH
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482 ac_cv_prog_ac_ct_RANLIB="ranlib"
11483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 break 2
11485 fi
11486done
11487done
11488
11489 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11490fi
11491fi
11492ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11493if test -n "$ac_ct_RANLIB"; then
11494 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11495echo "${ECHO_T}$ac_ct_RANLIB" >&6
11496else
11497 echo "$as_me:$LINENO: result: no" >&5
11498echo "${ECHO_T}no" >&6
11499fi
11500
11501 RANLIB=$ac_ct_RANLIB
11502else
11503 RANLIB="$ac_cv_prog_RANLIB"
11504fi
11505
11506if test -n "$ac_tool_prefix"; then
11507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11508set dummy ${ac_tool_prefix}strip; ac_word=$2
11509echo "$as_me:$LINENO: checking for $ac_word" >&5
11510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11511if test "${ac_cv_prog_STRIP+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513else
11514 if test -n "$STRIP"; then
11515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11516else
11517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518for as_dir in $PATH
11519do
11520 IFS=$as_save_IFS
11521 test -z "$as_dir" && as_dir=.
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11526 break 2
11527 fi
11528done
11529done
11530
11531fi
11532fi
11533STRIP=$ac_cv_prog_STRIP
11534if test -n "$STRIP"; then
11535 echo "$as_me:$LINENO: result: $STRIP" >&5
11536echo "${ECHO_T}$STRIP" >&6
11537else
11538 echo "$as_me:$LINENO: result: no" >&5
11539echo "${ECHO_T}no" >&6
11540fi
11541
11542fi
11543if test -z "$ac_cv_prog_STRIP"; then
11544 ac_ct_STRIP=$STRIP
11545 # Extract the first word of "strip", so it can be a program name with args.
11546set dummy strip; ac_word=$2
11547echo "$as_me:$LINENO: checking for $ac_word" >&5
11548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11549if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552 if test -n "$ac_ct_STRIP"; then
11553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11554else
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_prog_ac_ct_STRIP="strip"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566done
11567done
11568
11569 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11570fi
11571fi
11572ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11573if test -n "$ac_ct_STRIP"; then
11574 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11575echo "${ECHO_T}$ac_ct_STRIP" >&6
11576else
11577 echo "$as_me:$LINENO: result: no" >&5
11578echo "${ECHO_T}no" >&6
11579fi
11580
11581 STRIP=$ac_ct_STRIP
11582else
11583 STRIP="$ac_cv_prog_STRIP"
11584fi
11585
11586
John Criswell7a73b802003-06-30 21:59:07 +000011587old_CC="$CC"
11588old_CFLAGS="$CFLAGS"
11589
11590# Set sane defaults for various variables
11591test -z "$AR" && AR=ar
11592test -z "$AR_FLAGS" && AR_FLAGS=cru
11593test -z "$AS" && AS=as
11594test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011595test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011596test -z "$DLLTOOL" && DLLTOOL=dlltool
11597test -z "$LD" && LD=ld
11598test -z "$LN_S" && LN_S="ln -s"
11599test -z "$MAGIC_CMD" && MAGIC_CMD=file
11600test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011601test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011602test -z "$OBJDUMP" && OBJDUMP=objdump
11603test -z "$RANLIB" && RANLIB=:
11604test -z "$STRIP" && STRIP=:
11605test -z "$ac_objext" && ac_objext=o
11606
John Criswell7a73b802003-06-30 21:59:07 +000011607# Determine commands to create old-style static archives.
11608old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11609old_postinstall_cmds='chmod 644 $oldlib'
11610old_postuninstall_cmds=
11611
11612if test -n "$RANLIB"; then
11613 case $host_os in
11614 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011615 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011616 ;;
11617 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011618 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011619 ;;
11620 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011621 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011622fi
11623
Reid Spencer2706f8c2004-09-19 23:53:36 +000011624cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11625
John Criswell47fdd832003-07-14 16:52:07 +000011626# Only perform the check for file, if the check method requires it
11627case $deplibs_check_method in
11628file_magic*)
11629 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11630 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11631echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11632if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011634else
John Criswell47fdd832003-07-14 16:52:07 +000011635 case $MAGIC_CMD in
11636[\\/*] | ?:[\\/]*)
11637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11638 ;;
11639*)
11640 lt_save_MAGIC_CMD="$MAGIC_CMD"
11641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11643 for ac_dir in $ac_dummy; do
11644 IFS="$lt_save_ifs"
11645 test -z "$ac_dir" && ac_dir=.
11646 if test -f $ac_dir/${ac_tool_prefix}file; then
11647 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11648 if test -n "$file_magic_test_file"; then
11649 case $deplibs_check_method in
11650 "file_magic "*)
11651 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11654 $EGREP "$file_magic_regex" > /dev/null; then
11655 :
11656 else
11657 cat <<EOF 1>&2
11658
11659*** Warning: the command libtool uses to detect shared libraries,
11660*** $file_magic_cmd, produces output that libtool cannot recognize.
11661*** The result is that libtool may fail to recognize shared libraries
11662*** as such. This will affect the creation of libtool libraries that
11663*** depend on shared libraries, but programs linked with such libtool
11664*** libraries will work regardless of this problem. Nevertheless, you
11665*** may want to report the problem to your system manager and/or to
11666*** bug-libtool@gnu.org
11667
11668EOF
11669 fi ;;
11670 esac
11671 fi
11672 break
11673 fi
11674 done
11675 IFS="$lt_save_ifs"
11676 MAGIC_CMD="$lt_save_MAGIC_CMD"
11677 ;;
11678esac
John Criswell7a73b802003-06-30 21:59:07 +000011679fi
John Criswell7a73b802003-06-30 21:59:07 +000011680
John Criswell47fdd832003-07-14 16:52:07 +000011681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11682if test -n "$MAGIC_CMD"; then
11683 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11684echo "${ECHO_T}$MAGIC_CMD" >&6
11685else
11686 echo "$as_me:$LINENO: result: no" >&5
11687echo "${ECHO_T}no" >&6
11688fi
John Criswell7a73b802003-06-30 21:59:07 +000011689
John Criswell47fdd832003-07-14 16:52:07 +000011690if test -z "$lt_cv_path_MAGIC_CMD"; then
11691 if test -n "$ac_tool_prefix"; then
11692 echo "$as_me:$LINENO: checking for file" >&5
11693echo $ECHO_N "checking for file... $ECHO_C" >&6
11694if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696else
11697 case $MAGIC_CMD in
11698[\\/*] | ?:[\\/]*)
11699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11700 ;;
11701*)
11702 lt_save_MAGIC_CMD="$MAGIC_CMD"
11703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11705 for ac_dir in $ac_dummy; do
11706 IFS="$lt_save_ifs"
11707 test -z "$ac_dir" && ac_dir=.
11708 if test -f $ac_dir/file; then
11709 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11710 if test -n "$file_magic_test_file"; then
11711 case $deplibs_check_method in
11712 "file_magic "*)
11713 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11716 $EGREP "$file_magic_regex" > /dev/null; then
11717 :
11718 else
11719 cat <<EOF 1>&2
11720
11721*** Warning: the command libtool uses to detect shared libraries,
11722*** $file_magic_cmd, produces output that libtool cannot recognize.
11723*** The result is that libtool may fail to recognize shared libraries
11724*** as such. This will affect the creation of libtool libraries that
11725*** depend on shared libraries, but programs linked with such libtool
11726*** libraries will work regardless of this problem. Nevertheless, you
11727*** may want to report the problem to your system manager and/or to
11728*** bug-libtool@gnu.org
11729
11730EOF
11731 fi ;;
11732 esac
11733 fi
11734 break
11735 fi
11736 done
11737 IFS="$lt_save_ifs"
11738 MAGIC_CMD="$lt_save_MAGIC_CMD"
11739 ;;
11740esac
11741fi
11742
11743MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11744if test -n "$MAGIC_CMD"; then
11745 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11746echo "${ECHO_T}$MAGIC_CMD" >&6
11747else
11748 echo "$as_me:$LINENO: result: no" >&5
11749echo "${ECHO_T}no" >&6
11750fi
11751
11752 else
11753 MAGIC_CMD=:
11754 fi
11755fi
11756
11757 fi
11758 ;;
11759esac
11760
Reid Spencer17795972004-11-18 09:47:37 +000011761enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011762enable_win32_dll=no
11763
11764# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11765if test "${enable_libtool_lock+set}" = set; then
11766 enableval="$enable_libtool_lock"
11767
11768fi;
11769test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11770
John Criswell7a73b802003-06-30 21:59:07 +000011771
11772# Check whether --with-pic or --without-pic was given.
11773if test "${with_pic+set}" = set; then
11774 withval="$with_pic"
11775 pic_mode="$withval"
11776else
11777 pic_mode=default
11778fi;
11779test -z "$pic_mode" && pic_mode=default
11780
John Criswell47fdd832003-07-14 16:52:07 +000011781# Use C for the default configuration in the libtool script
11782tagname=
11783lt_save_CC="$CC"
11784ac_ext=c
11785ac_cpp='$CPP $CPPFLAGS'
11786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11788ac_compiler_gnu=$ac_cv_c_compiler_gnu
11789
11790
11791# Source file extension for C test sources.
11792ac_ext=c
11793
11794# Object file extension for compiled C test sources.
11795objext=o
11796objext=$objext
11797
11798# Code to be used in simple compile tests
11799lt_simple_compile_test_code="int some_variable = 0;\n"
11800
11801# Code to be used in simple link tests
11802lt_simple_link_test_code='int main(){return(0);}\n'
11803
11804
11805# If no C compiler was specified, use CC.
11806LTCC=${LTCC-"$CC"}
11807
11808# Allow CC to be a program name with arguments.
11809compiler=$CC
11810
11811
11812#
11813# Check for any special shared library compilation flags.
11814#
11815lt_prog_cc_shlib=
11816if test "$GCC" = no; then
11817 case $host_os in
11818 sco3.2v5*)
11819 lt_prog_cc_shlib='-belf'
11820 ;;
11821 esac
11822fi
11823if test -n "$lt_prog_cc_shlib"; then
11824 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11825echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11826 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11827 else
11828 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11829echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11830 lt_cv_prog_cc_can_build_shared=no
11831 fi
11832fi
11833
11834
11835#
11836# Check to make sure the static flag actually works.
11837#
11838echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11839echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11840if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
John Criswell47fdd832003-07-14 16:52:07 +000011843 lt_prog_compiler_static_works=no
11844 save_LDFLAGS="$LDFLAGS"
11845 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11846 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11848 # The compiler can only warn and ignore the option if not recognized
11849 # So say no if there are warnings
11850 if test -s conftest.err; then
11851 # Append any errors to the config.log.
11852 cat conftest.err 1>&5
11853 else
11854 lt_prog_compiler_static_works=yes
11855 fi
11856 fi
11857 $rm conftest*
11858 LDFLAGS="$save_LDFLAGS"
11859
11860fi
11861echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11862echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11863
11864if test x"$lt_prog_compiler_static_works" = xyes; then
11865 :
11866else
11867 lt_prog_compiler_static=
11868fi
11869
11870
11871
John Criswell47fdd832003-07-14 16:52:07 +000011872
11873lt_prog_compiler_no_builtin_flag=
11874
11875if test "$GCC" = yes; then
11876 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11877
Reid Spencer2706f8c2004-09-19 23:53:36 +000011878
11879echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011880echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11881if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883else
11884 lt_cv_prog_compiler_rtti_exceptions=no
11885 ac_outfile=conftest.$ac_objext
11886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11887 lt_compiler_flag="-fno-rtti -fno-exceptions"
11888 # Insert the option either (1) after the last *FLAGS variable, or
11889 # (2) before a word containing "conftest.", or (3) at the end.
11890 # Note that $ac_compile itself does not contain backslashes and begins
11891 # with a dollar sign (not a hyphen), so the echo should work correctly.
11892 # The option is referenced via a variable to avoid confusing sed.
11893 lt_compile=`echo "$ac_compile" | $SED \
11894 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11896 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000011897 (eval echo "\"\$as_me:11897: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011898 (eval "$lt_compile" 2>conftest.err)
11899 ac_status=$?
11900 cat conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000011901 echo "$as_me:11901: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011902 if (exit $ac_status) && test -s "$ac_outfile"; then
11903 # The compiler can only warn and ignore the option if not recognized
11904 # So say no if there are warnings
11905 if test ! -s conftest.err; then
11906 lt_cv_prog_compiler_rtti_exceptions=yes
11907 fi
11908 fi
11909 $rm conftest*
11910
11911fi
11912echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11913echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11914
11915if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11916 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11917else
11918 :
11919fi
11920
11921fi
11922
11923lt_prog_compiler_wl=
11924lt_prog_compiler_pic=
11925lt_prog_compiler_static=
11926
11927echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11928echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011929
11930 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011931 lt_prog_compiler_wl='-Wl,'
11932 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011933
11934 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011935 aix*)
11936 # All AIX code is PIC.
11937 if test "$host_cpu" = ia64; then
11938 # AIX 5 now supports IA64 processor
11939 lt_prog_compiler_static='-Bstatic'
11940 fi
John Criswell7a73b802003-06-30 21:59:07 +000011941 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011942
John Criswell7a73b802003-06-30 21:59:07 +000011943 amigaos*)
11944 # FIXME: we need at least 68020 code to build shared libraries, but
11945 # adding the `-m68020' flag to GCC prevents building anything better,
11946 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011947 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011948 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011949
11950 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011951 # PIC is the default for these OSes.
11952 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011953
11954 mingw* | pw32* | os2*)
11955 # This hack is so that the source file can tell whether it is being
11956 # built for inclusion in a dll (and should export symbols for example).
11957 lt_prog_compiler_pic='-DDLL_EXPORT'
11958 ;;
11959
John Criswell7a73b802003-06-30 21:59:07 +000011960 darwin* | rhapsody*)
11961 # PIC is the default on this platform
11962 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011963 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011964 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011965
11966 msdosdjgpp*)
11967 # Just because we use GCC doesn't mean we suddenly get shared libraries
11968 # on systems that don't support them.
11969 lt_prog_compiler_can_build_shared=no
11970 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011971 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011972
John Criswell7a73b802003-06-30 21:59:07 +000011973 sysv4*MP*)
11974 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011975 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011976 fi
11977 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011978
11979 hpux*)
11980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11981 # not for PA HP-UX.
11982 case "$host_cpu" in
11983 hppa*64*|ia64*)
11984 # +Z the default
11985 ;;
11986 *)
11987 lt_prog_compiler_pic='-fPIC'
11988 ;;
11989 esac
11990 ;;
11991
John Criswell7a73b802003-06-30 21:59:07 +000011992 *)
John Criswell47fdd832003-07-14 16:52:07 +000011993 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011994 ;;
11995 esac
11996 else
John Criswell47fdd832003-07-14 16:52:07 +000011997 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011998 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011999 aix*)
12000 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012001 if test "$host_cpu" = ia64; then
12002 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012003 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012004 else
John Criswell47fdd832003-07-14 16:52:07 +000012005 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012006 fi
12007 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012008 darwin*)
12009 # PIC is the default on this platform
12010 # Common symbols not allowed in MH_DYLIB files
12011 case "$cc_basename" in
12012 xlc*)
12013 lt_prog_compiler_pic='-qnocommon'
12014 lt_prog_compiler_wl='-Wl,'
12015 ;;
12016 esac
12017 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012018
John Criswell47fdd832003-07-14 16:52:07 +000012019 mingw* | pw32* | os2*)
12020 # This hack is so that the source file can tell whether it is being
12021 # built for inclusion in a dll (and should export symbols for example).
12022 lt_prog_compiler_pic='-DDLL_EXPORT'
12023 ;;
12024
John Criswell7a73b802003-06-30 21:59:07 +000012025 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012026 lt_prog_compiler_wl='-Wl,'
12027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12028 # not for PA HP-UX.
12029 case "$host_cpu" in
12030 hppa*64*|ia64*)
12031 # +Z the default
12032 ;;
12033 *)
12034 lt_prog_compiler_pic='+Z'
12035 ;;
12036 esac
12037 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12038 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012039 ;;
12040
John Criswell47fdd832003-07-14 16:52:07 +000012041 irix5* | irix6* | nonstopux*)
12042 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012043 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012044 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012045 ;;
12046
12047 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012048 lt_prog_compiler_pic='-KPIC'
12049 lt_prog_compiler_static='-Bstatic'
12050 ;;
12051
12052 linux*)
12053 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012054 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012055 lt_prog_compiler_wl='-Wl,'
12056 lt_prog_compiler_pic='-KPIC'
12057 lt_prog_compiler_static='-static'
12058 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012059 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012060 lt_prog_compiler_wl='-Wl,'
12061 # All Alpha code is PIC.
12062 lt_prog_compiler_static='-non_shared'
12063 ;;
12064 esac
John Criswell7a73b802003-06-30 21:59:07 +000012065 ;;
12066
12067 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012068 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012069 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012070 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012071 ;;
12072
12073 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012074 lt_prog_compiler_pic='-Kpic'
12075 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012076 ;;
12077
12078 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012079 lt_prog_compiler_wl='-Wl,'
12080 lt_prog_compiler_pic='-KPIC'
12081 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012082 ;;
12083
12084 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012085 lt_prog_compiler_wl='-Qoption ld '
12086 lt_prog_compiler_pic='-PIC'
12087 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012088 ;;
12089
12090 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012091 lt_prog_compiler_wl='-Wl,'
12092 lt_prog_compiler_pic='-KPIC'
12093 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012094 ;;
12095
12096 sysv4*MP*)
12097 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012098 lt_prog_compiler_pic='-Kconform_pic'
12099 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012100 fi
12101 ;;
12102
John Criswell47fdd832003-07-14 16:52:07 +000012103 uts4*)
12104 lt_prog_compiler_pic='-pic'
12105 lt_prog_compiler_static='-Bstatic'
12106 ;;
12107
John Criswell7a73b802003-06-30 21:59:07 +000012108 *)
John Criswell47fdd832003-07-14 16:52:07 +000012109 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012110 ;;
12111 esac
12112 fi
12113
John Criswell47fdd832003-07-14 16:52:07 +000012114echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12115echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012116
John Criswell47fdd832003-07-14 16:52:07 +000012117#
12118# Check to make sure the PIC flag actually works.
12119#
12120if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012121
12122echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012123echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12124if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126else
John Criswell47fdd832003-07-14 16:52:07 +000012127 lt_prog_compiler_pic_works=no
12128 ac_outfile=conftest.$ac_objext
12129 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12130 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12131 # Insert the option either (1) after the last *FLAGS variable, or
12132 # (2) before a word containing "conftest.", or (3) at the end.
12133 # Note that $ac_compile itself does not contain backslashes and begins
12134 # with a dollar sign (not a hyphen), so the echo should work correctly.
12135 # The option is referenced via a variable to avoid confusing sed.
12136 lt_compile=`echo "$ac_compile" | $SED \
12137 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12139 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000012140 (eval echo "\"\$as_me:12140: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012141 (eval "$lt_compile" 2>conftest.err)
12142 ac_status=$?
12143 cat conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000012144 echo "$as_me:12144: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012145 if (exit $ac_status) && test -s "$ac_outfile"; then
12146 # The compiler can only warn and ignore the option if not recognized
12147 # So say no if there are warnings
12148 if test ! -s conftest.err; then
12149 lt_prog_compiler_pic_works=yes
12150 fi
12151 fi
12152 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012153
John Criswell47fdd832003-07-14 16:52:07 +000012154fi
12155echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12156echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012157
John Criswell47fdd832003-07-14 16:52:07 +000012158if test x"$lt_prog_compiler_pic_works" = xyes; then
12159 case $lt_prog_compiler_pic in
12160 "" | " "*) ;;
12161 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12162 esac
John Criswell7a73b802003-06-30 21:59:07 +000012163else
John Criswell47fdd832003-07-14 16:52:07 +000012164 lt_prog_compiler_pic=
12165 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012166fi
12167
John Criswell7a73b802003-06-30 21:59:07 +000012168fi
John Criswell47fdd832003-07-14 16:52:07 +000012169case "$host_os" in
12170 # For platforms which do not support PIC, -DPIC is meaningless:
12171 *djgpp*)
12172 lt_prog_compiler_pic=
12173 ;;
12174 *)
12175 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12176 ;;
12177esac
John Criswell7a73b802003-06-30 21:59:07 +000012178
John Criswell7a73b802003-06-30 21:59:07 +000012179echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12180echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012181if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
John Criswell47fdd832003-07-14 16:52:07 +000012184 lt_cv_prog_compiler_c_o=no
12185 $rm -r conftest 2>/dev/null
12186 mkdir conftest
12187 cd conftest
12188 mkdir out
12189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012190
John Criswell47fdd832003-07-14 16:52:07 +000012191 lt_compiler_flag="-o out/conftest2.$ac_objext"
12192 # Insert the option either (1) after the last *FLAGS variable, or
12193 # (2) before a word containing "conftest.", or (3) at the end.
12194 # Note that $ac_compile itself does not contain backslashes and begins
12195 # with a dollar sign (not a hyphen), so the echo should work correctly.
12196 lt_compile=`echo "$ac_compile" | $SED \
12197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12199 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000012200 (eval echo "\"\$as_me:12200: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012201 (eval "$lt_compile" 2>out/conftest.err)
12202 ac_status=$?
12203 cat out/conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000012204 echo "$as_me:12204: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12206 then
12207 # The compiler can only warn and ignore the option if not recognized
12208 # So say no if there are warnings
12209 if test ! -s out/conftest.err; then
12210 lt_cv_prog_compiler_c_o=yes
12211 fi
12212 fi
12213 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012214 $rm conftest*
12215 # SGI C++ compiler will create directory out/ii_files/ for
12216 # template instantiation
12217 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12218 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012219 cd ..
12220 rmdir conftest
12221 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012222
12223fi
John Criswell47fdd832003-07-14 16:52:07 +000012224echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12225echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012226
John Criswell7a73b802003-06-30 21:59:07 +000012227
John Criswell7a73b802003-06-30 21:59:07 +000012228hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012229if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012230 # do not overwrite the value of need_locks provided by the user
12231 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12232echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12233 hard_links=yes
12234 $rm conftest*
12235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12236 touch conftest.a
12237 ln conftest.a conftest.b 2>&5 || hard_links=no
12238 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12239 echo "$as_me:$LINENO: result: $hard_links" >&5
12240echo "${ECHO_T}$hard_links" >&6
12241 if test "$hard_links" = no; then
12242 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12243echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12244 need_locks=warn
12245 fi
12246else
12247 need_locks=no
12248fi
John Criswell7a73b802003-06-30 21:59:07 +000012249
John Criswell47fdd832003-07-14 16:52:07 +000012250echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12251echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12252
12253 runpath_var=
12254 allow_undefined_flag=
12255 enable_shared_with_static_runtimes=no
12256 archive_cmds=
12257 archive_expsym_cmds=
12258 old_archive_From_new_cmds=
12259 old_archive_from_expsyms_cmds=
12260 export_dynamic_flag_spec=
12261 whole_archive_flag_spec=
12262 thread_safe_flag_spec=
12263 hardcode_libdir_flag_spec=
12264 hardcode_libdir_flag_spec_ld=
12265 hardcode_libdir_separator=
12266 hardcode_direct=no
12267 hardcode_minus_L=no
12268 hardcode_shlibpath_var=unsupported
12269 link_all_deplibs=unknown
12270 hardcode_automatic=no
12271 module_cmds=
12272 module_expsym_cmds=
12273 always_export_symbols=no
12274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12275 # include_expsyms should be a list of space-separated symbols to be *always*
12276 # included in the symbol list
12277 include_expsyms=
12278 # exclude_expsyms can be an extended regexp of symbols to exclude
12279 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12280 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12281 # as well as any symbol that contains `d'.
12282 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12283 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12284 # platforms (ab)use it in PIC code, but their linkers get confused if
12285 # the symbol is explicitly referenced. Since portable code cannot
12286 # rely on this symbol name, it's probably fine to never include it in
12287 # preloaded symbol tables.
12288 extract_expsyms_cmds=
12289
12290 case $host_os in
12291 cygwin* | mingw* | pw32*)
12292 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12293 # When not using gcc, we currently assume that we are using
12294 # Microsoft Visual C++.
12295 if test "$GCC" != yes; then
12296 with_gnu_ld=no
12297 fi
12298 ;;
12299 openbsd*)
12300 with_gnu_ld=no
12301 ;;
12302 esac
12303
12304 ld_shlibs=yes
12305 if test "$with_gnu_ld" = yes; then
12306 # If archive_cmds runs LD, not CC, wlarc should be empty
12307 wlarc='${wl}'
12308
12309 # See if GNU ld supports shared libraries.
12310 case $host_os in
12311 aix3* | aix4* | aix5*)
12312 # On AIX/PPC, the GNU linker is very broken
12313 if test "$host_cpu" != ia64; then
12314 ld_shlibs=no
12315 cat <<EOF 1>&2
12316
12317*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12318*** to be unable to reliably create shared libraries on AIX.
12319*** Therefore, libtool is disabling shared libraries support. If you
12320*** really care for shared libraries, you may want to modify your PATH
12321*** so that a non-GNU linker is found, and then restart.
12322
12323EOF
12324 fi
12325 ;;
12326
12327 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012328 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 +000012329 hardcode_libdir_flag_spec='-L$libdir'
12330 hardcode_minus_L=yes
12331
12332 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12333 # that the semantics of dynamic libraries on AmigaOS, at least up
12334 # to version 4, is to share data among multiple programs linked
12335 # with the same dynamic library. Since this doesn't match the
12336 # behavior of shared libraries on other platforms, we can't use
12337 # them.
12338 ld_shlibs=no
12339 ;;
12340
12341 beos*)
12342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12343 allow_undefined_flag=unsupported
12344 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12345 # support --undefined. This deserves some investigation. FIXME
12346 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12347 else
12348 ld_shlibs=no
12349 fi
12350 ;;
12351
12352 cygwin* | mingw* | pw32*)
12353 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12354 # as there is no search path for DLLs.
12355 hardcode_libdir_flag_spec='-L$libdir'
12356 allow_undefined_flag=unsupported
12357 always_export_symbols=no
12358 enable_shared_with_static_runtimes=yes
12359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12360
12361 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12363 # If the export-symbols file already is a .def file (1st line
12364 # is EXPORTS), use it as is; otherwise, prepend...
12365 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12366 cp $export_symbols $output_objdir/$soname.def;
12367 else
12368 echo EXPORTS > $output_objdir/$soname.def;
12369 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012370 fi~
12371 $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 +000012372 else
12373 ld_shlibs=no
12374 fi
12375 ;;
12376
12377 netbsd*)
12378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12379 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12380 wlarc=
12381 else
12382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12384 fi
12385 ;;
12386
12387 solaris* | sysv5*)
12388 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12389 ld_shlibs=no
12390 cat <<EOF 1>&2
12391
12392*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12393*** create shared libraries on Solaris systems. Therefore, libtool
12394*** is disabling shared libraries support. We urge you to upgrade GNU
12395*** binutils to release 2.9.1 or newer. Another option is to modify
12396*** your PATH or compiler configuration so that the native linker is
12397*** used, and then restart.
12398
12399EOF
12400 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12403 else
12404 ld_shlibs=no
12405 fi
12406 ;;
12407
12408 sunos4*)
12409 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12410 wlarc=
12411 hardcode_direct=yes
12412 hardcode_shlibpath_var=no
12413 ;;
12414
Reid Spencer2706f8c2004-09-19 23:53:36 +000012415 linux*)
12416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12417 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418 archive_cmds="$tmp_archive_cmds"
12419 supports_anon_versioning=no
12420 case `$LD -v 2>/dev/null` in
12421 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12422 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12423 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12424 *\ 2.11.*) ;; # other 2.11 versions
12425 *) supports_anon_versioning=yes ;;
12426 esac
12427 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012428 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12429cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12430$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012431 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12432 else
12433 archive_expsym_cmds="$tmp_archive_cmds"
12434 fi
12435 else
12436 ld_shlibs=no
12437 fi
12438 ;;
12439
John Criswell47fdd832003-07-14 16:52:07 +000012440 *)
12441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12443 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12444 else
12445 ld_shlibs=no
12446 fi
12447 ;;
12448 esac
12449
12450 if test "$ld_shlibs" = yes; then
12451 runpath_var=LD_RUN_PATH
12452 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12453 export_dynamic_flag_spec='${wl}--export-dynamic'
12454 # ancient GNU ld didn't support --whole-archive et. al.
12455 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12456 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12457 else
12458 whole_archive_flag_spec=
12459 fi
12460 fi
12461 else
12462 # PORTME fill in a description of your system's linker (not GNU ld)
12463 case $host_os in
12464 aix3*)
12465 allow_undefined_flag=unsupported
12466 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012467 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 +000012468 # Note: this linker hardcodes the directories in LIBPATH if there
12469 # are no directories specified by -L.
12470 hardcode_minus_L=yes
12471 if test "$GCC" = yes && test -z "$link_static_flag"; then
12472 # Neither direct hardcoding nor static linking is supported with a
12473 # broken collect2.
12474 hardcode_direct=unsupported
12475 fi
12476 ;;
12477
12478 aix4* | aix5*)
12479 if test "$host_cpu" = ia64; then
12480 # On IA64, the linker does run time linking by default, so we don't
12481 # have to do anything special.
12482 aix_use_runtimelinking=no
12483 exp_sym_flag='-Bexport'
12484 no_entry_flag=""
12485 else
12486 # If we're using GNU nm, then we don't want the "-C" option.
12487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12488 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12489 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'
12490 else
12491 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'
12492 fi
12493 aix_use_runtimelinking=no
12494
12495 # Test if we are trying to use run time linking or normal
12496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12497 # need to do runtime linking.
12498 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12499 for ld_flag in $LDFLAGS; do
12500 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12501 aix_use_runtimelinking=yes
12502 break
12503 fi
12504 done
12505 esac
12506
12507 exp_sym_flag='-bexport'
12508 no_entry_flag='-bnoentry'
12509 fi
12510
12511 # When large executables or shared objects are built, AIX ld can
12512 # have problems creating the table of contents. If linking a library
12513 # or program results in "error TOC overflow" add -mminimal-toc to
12514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12516
12517 archive_cmds=''
12518 hardcode_direct=yes
12519 hardcode_libdir_separator=':'
12520 link_all_deplibs=yes
12521
12522 if test "$GCC" = yes; then
12523 case $host_os in aix4.012|aix4.012.*)
12524 # We only want to do this on AIX 4.2 and lower, the check
12525 # below for broken collect2 doesn't work under 4.3+
12526 collect2name=`${CC} -print-prog-name=collect2`
12527 if test -f "$collect2name" && \
12528 strings "$collect2name" | grep resolve_lib_name >/dev/null
12529 then
12530 # We have reworked collect2
12531 hardcode_direct=yes
12532 else
12533 # We have old collect2
12534 hardcode_direct=unsupported
12535 # It fails to find uninstalled libraries when the uninstalled
12536 # path is not listed in the libpath. Setting hardcode_minus_L
12537 # to unsupported forces relinking
12538 hardcode_minus_L=yes
12539 hardcode_libdir_flag_spec='-L$libdir'
12540 hardcode_libdir_separator=
12541 fi
12542 esac
12543 shared_flag='-shared'
12544 else
12545 # not using gcc
12546 if test "$host_cpu" = ia64; then
12547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12548 # chokes on -Wl,-G. The following line is correct:
12549 shared_flag='-G'
12550 else
12551 if test "$aix_use_runtimelinking" = yes; then
12552 shared_flag='${wl}-G'
12553 else
12554 shared_flag='${wl}-bM:SRE'
12555 fi
12556 fi
12557 fi
12558
12559 # It seems that -bexpall does not export symbols beginning with
12560 # underscore (_), so it is better to generate a list of symbols to export.
12561 always_export_symbols=yes
12562 if test "$aix_use_runtimelinking" = yes; then
12563 # Warning - without using the other runtime loading flags (-brtl),
12564 # -berok will link without error, but may produce a broken library.
12565 allow_undefined_flag='-berok'
12566 # Determine the default libpath from the value encoded in an empty executable.
12567 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012568/* confdefs.h. */
12569_ACEOF
12570cat confdefs.h >>conftest.$ac_ext
12571cat >>conftest.$ac_ext <<_ACEOF
12572/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012573
John Criswell7a73b802003-06-30 21:59:07 +000012574int
12575main ()
12576{
John Criswell47fdd832003-07-14 16:52:07 +000012577
John Criswell7a73b802003-06-30 21:59:07 +000012578 ;
12579 return 0;
12580}
12581_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012582rm -f conftest.$ac_objext conftest$ac_exeext
12583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012584 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012585 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012591 { ac_try='test -z "$ac_c_werror_flag"
12592 || test ! -s conftest.err'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; } &&
12598 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012604
John Criswell47fdd832003-07-14 16:52:07 +000012605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12606}'`
12607# Check for a 64-bit object if we didn't find anything.
12608if 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; }
12609}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012610else
12611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012612sed 's/^/| /' conftest.$ac_ext >&5
12613
John Criswell7a73b802003-06-30 21:59:07 +000012614fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012615rm -f conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012617if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012618
John Criswell47fdd832003-07-14 16:52:07 +000012619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12620 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"
12621 else
12622 if test "$host_cpu" = ia64; then
12623 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12624 allow_undefined_flag="-z nodefs"
12625 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"
12626 else
12627 # Determine the default libpath from the value encoded in an empty executable.
12628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012629/* confdefs.h. */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012634
John Criswell47fdd832003-07-14 16:52:07 +000012635int
12636main ()
12637{
John Criswell7a73b802003-06-30 21:59:07 +000012638
John Criswell47fdd832003-07-14 16:52:07 +000012639 ;
12640 return 0;
12641}
12642_ACEOF
12643rm -f conftest.$ac_objext conftest$ac_exeext
12644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012645 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012652 { ac_try='test -z "$ac_c_werror_flag"
12653 || test ! -s conftest.err'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012665
John Criswell47fdd832003-07-14 16:52:07 +000012666aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12667}'`
12668# Check for a 64-bit object if we didn't find anything.
12669if 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; }
12670}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012671else
John Criswell47fdd832003-07-14 16:52:07 +000012672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012673sed 's/^/| /' conftest.$ac_ext >&5
12674
John Criswell47fdd832003-07-14 16:52:07 +000012675fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012676rm -f conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012678if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012679
John Criswell47fdd832003-07-14 16:52:07 +000012680 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12681 # Warning - without using the other run time loading flags,
12682 # -berok will link without error, but may produce a broken library.
12683 no_undefined_flag=' ${wl}-bernotok'
12684 allow_undefined_flag=' ${wl}-berok'
12685 # -bexpall does not export symbols beginning with underscore (_)
12686 always_export_symbols=yes
12687 # Exported symbols can be pulled into shared objects from archives
12688 whole_archive_flag_spec=' '
12689 archive_cmds_need_lc=yes
12690 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012691 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 +000012692 fi
12693 fi
John Criswell7a73b802003-06-30 21:59:07 +000012694 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012695
12696 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012697 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 +000012698 hardcode_libdir_flag_spec='-L$libdir'
12699 hardcode_minus_L=yes
12700 # see comment about different semantics on the GNU ld section
12701 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012702 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012703
Reid Spencer2706f8c2004-09-19 23:53:36 +000012704 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012705 export_dynamic_flag_spec=-rdynamic
12706 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012707
John Criswell47fdd832003-07-14 16:52:07 +000012708 cygwin* | mingw* | pw32*)
12709 # When not using gcc, we currently assume that we are using
12710 # Microsoft Visual C++.
12711 # hardcode_libdir_flag_spec is actually meaningless, as there is
12712 # no search path for DLLs.
12713 hardcode_libdir_flag_spec=' '
12714 allow_undefined_flag=unsupported
12715 # Tell ltmain to make .lib files, not .a files.
12716 libext=lib
12717 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012718 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012719 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012720 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012721 # The linker will automatically build a .lib file if we build a DLL.
12722 old_archive_From_new_cmds='true'
12723 # FIXME: Should let the user specify the lib program.
12724 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12725 fix_srcfile_path='`cygpath -w "$srcfile"`'
12726 enable_shared_with_static_runtimes=yes
12727 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012728
John Criswell47fdd832003-07-14 16:52:07 +000012729 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012730 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012731 rhapsody* | darwin1.[012])
12732 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12733 ;;
12734 *) # Darwin 1.3 on
12735 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12736 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12737 else
12738 case ${MACOSX_DEPLOYMENT_TARGET} in
12739 10.[012])
12740 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12741 ;;
12742 10.*)
12743 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12744 ;;
12745 esac
12746 fi
12747 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012748 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012749 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012750 hardcode_direct=no
12751 hardcode_automatic=yes
12752 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012753 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012754 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012755 if test "$GCC" = yes ; then
12756 output_verbose_link_cmd='echo'
12757 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12758 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12759 # 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 +000012760 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}'
12761 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 +000012762 else
12763 case "$cc_basename" in
12764 xlc*)
12765 output_verbose_link_cmd='echo'
12766 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12767 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12768 # 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 +000012769 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}'
12770 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 +000012771 ;;
12772 *)
12773 ld_shlibs=no
12774 ;;
12775 esac
John Criswell7a73b802003-06-30 21:59:07 +000012776 fi
John Criswell47fdd832003-07-14 16:52:07 +000012777 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012778
John Criswell47fdd832003-07-14 16:52:07 +000012779 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012781 hardcode_libdir_flag_spec='-L$libdir'
12782 hardcode_shlibpath_var=no
12783 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012784
John Criswell47fdd832003-07-14 16:52:07 +000012785 freebsd1*)
12786 ld_shlibs=no
12787 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012788
John Criswell47fdd832003-07-14 16:52:07 +000012789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12790 # support. Future versions do this automatically, but an explicit c++rt0.o
12791 # does not break anything, and helps significantly (at the cost of a little
12792 # extra space).
12793 freebsd2.2*)
12794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12795 hardcode_libdir_flag_spec='-R$libdir'
12796 hardcode_direct=yes
12797 hardcode_shlibpath_var=no
12798 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012799
John Criswell47fdd832003-07-14 16:52:07 +000012800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12801 freebsd2*)
12802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12803 hardcode_direct=yes
12804 hardcode_minus_L=yes
12805 hardcode_shlibpath_var=no
12806 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012807
John Criswell47fdd832003-07-14 16:52:07 +000012808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012809 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012810 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12811 hardcode_libdir_flag_spec='-R$libdir'
12812 hardcode_direct=yes
12813 hardcode_shlibpath_var=no
12814 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012815
John Criswell47fdd832003-07-14 16:52:07 +000012816 hpux9*)
12817 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012818 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 +000012819 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012820 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 +000012821 fi
12822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12823 hardcode_libdir_separator=:
12824 hardcode_direct=yes
12825
12826 # hardcode_minus_L: Not really in the search PATH,
12827 # but as the default location of the library.
12828 hardcode_minus_L=yes
12829 export_dynamic_flag_spec='${wl}-E'
12830 ;;
12831
12832 hpux10* | hpux11*)
12833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12834 case "$host_cpu" in
12835 hppa*64*|ia64*)
12836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12837 ;;
12838 *)
12839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12840 ;;
12841 esac
12842 else
12843 case "$host_cpu" in
12844 hppa*64*|ia64*)
12845 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12846 ;;
12847 *)
12848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12849 ;;
12850 esac
12851 fi
12852 if test "$with_gnu_ld" = no; then
12853 case "$host_cpu" in
12854 hppa*64*)
12855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12856 hardcode_libdir_flag_spec_ld='+b $libdir'
12857 hardcode_libdir_separator=:
12858 hardcode_direct=no
12859 hardcode_shlibpath_var=no
12860 ;;
12861 ia64*)
12862 hardcode_libdir_flag_spec='-L$libdir'
12863 hardcode_direct=no
12864 hardcode_shlibpath_var=no
12865
12866 # hardcode_minus_L: Not really in the search PATH,
12867 # but as the default location of the library.
12868 hardcode_minus_L=yes
12869 ;;
12870 *)
12871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12872 hardcode_libdir_separator=:
12873 hardcode_direct=yes
12874 export_dynamic_flag_spec='${wl}-E'
12875
12876 # hardcode_minus_L: Not really in the search PATH,
12877 # but as the default location of the library.
12878 hardcode_minus_L=yes
12879 ;;
12880 esac
12881 fi
12882 ;;
12883
12884 irix5* | irix6* | nonstopux*)
12885 if test "$GCC" = yes; then
12886 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'
12887 else
12888 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'
12889 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12890 fi
12891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12892 hardcode_libdir_separator=:
12893 link_all_deplibs=yes
12894 ;;
12895
12896 netbsd*)
12897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12899 else
12900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12901 fi
12902 hardcode_libdir_flag_spec='-R$libdir'
12903 hardcode_direct=yes
12904 hardcode_shlibpath_var=no
12905 ;;
12906
12907 newsos6)
12908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12909 hardcode_direct=yes
12910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12911 hardcode_libdir_separator=:
12912 hardcode_shlibpath_var=no
12913 ;;
12914
12915 openbsd*)
12916 hardcode_direct=yes
12917 hardcode_shlibpath_var=no
12918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012920 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 +000012921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12922 export_dynamic_flag_spec='${wl}-E'
12923 else
12924 case $host_os in
12925 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12927 hardcode_libdir_flag_spec='-R$libdir'
12928 ;;
12929 *)
12930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12932 ;;
12933 esac
12934 fi
12935 ;;
12936
12937 os2*)
12938 hardcode_libdir_flag_spec='-L$libdir'
12939 hardcode_minus_L=yes
12940 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012941 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 +000012942 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12943 ;;
12944
12945 osf3*)
12946 if test "$GCC" = yes; then
12947 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12948 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'
12949 else
12950 allow_undefined_flag=' -expect_unresolved \*'
12951 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'
12952 fi
12953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12954 hardcode_libdir_separator=:
12955 ;;
12956
12957 osf4* | osf5*) # as osf3* with the addition of -msym flag
12958 if test "$GCC" = yes; then
12959 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12960 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'
12961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12962 else
12963 allow_undefined_flag=' -expect_unresolved \*'
12964 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 +000012965 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12966 $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'
12967
John Criswell47fdd832003-07-14 16:52:07 +000012968 # Both c and cxx compiler support -rpath directly
12969 hardcode_libdir_flag_spec='-rpath $libdir'
12970 fi
12971 hardcode_libdir_separator=:
12972 ;;
12973
12974 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12976 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012977 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012978 runpath_var=LD_RUN_PATH
12979 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012980 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012981
John Criswell47fdd832003-07-14 16:52:07 +000012982 solaris*)
12983 no_undefined_flag=' -z text'
12984 if test "$GCC" = yes; then
12985 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012986 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12987 $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 +000012988 else
12989 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012990 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12991 $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 +000012992 fi
12993 hardcode_libdir_flag_spec='-R$libdir'
12994 hardcode_shlibpath_var=no
12995 case $host_os in
12996 solaris2.[0-5] | solaris2.[0-5].*) ;;
12997 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12998 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12999 esac
13000 link_all_deplibs=yes
13001 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013002
John Criswell47fdd832003-07-14 16:52:07 +000013003 sunos4*)
13004 if test "x$host_vendor" = xsequent; then
13005 # Use $CC to link under sequent, because it throws in some extra .o
13006 # files that make .init and .fini sections work.
13007 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13008 else
13009 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13010 fi
13011 hardcode_libdir_flag_spec='-L$libdir'
13012 hardcode_direct=yes
13013 hardcode_minus_L=yes
13014 hardcode_shlibpath_var=no
13015 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013016
John Criswell47fdd832003-07-14 16:52:07 +000013017 sysv4)
13018 case $host_vendor in
13019 sni)
13020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13021 hardcode_direct=yes # is this really true???
13022 ;;
13023 siemens)
13024 ## LD is ld it makes a PLAMLIB
13025 ## CC just makes a GrossModule.
13026 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13027 reload_cmds='$CC -r -o $output$reload_objs'
13028 hardcode_direct=no
13029 ;;
13030 motorola)
13031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13032 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13033 ;;
13034 esac
13035 runpath_var='LD_RUN_PATH'
13036 hardcode_shlibpath_var=no
13037 ;;
13038
13039 sysv4.3*)
13040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13041 hardcode_shlibpath_var=no
13042 export_dynamic_flag_spec='-Bexport'
13043 ;;
13044
13045 sysv4*MP*)
13046 if test -d /usr/nec; then
13047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_shlibpath_var=no
13049 runpath_var=LD_RUN_PATH
13050 hardcode_runpath_var=yes
13051 ld_shlibs=yes
13052 fi
13053 ;;
13054
13055 sysv4.2uw2*)
13056 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13057 hardcode_direct=yes
13058 hardcode_minus_L=no
13059 hardcode_shlibpath_var=no
13060 hardcode_runpath_var=yes
13061 runpath_var=LD_RUN_PATH
13062 ;;
13063
13064 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13065 no_undefined_flag='${wl}-z ${wl}text'
13066 if test "$GCC" = yes; then
13067 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13068 else
13069 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 fi
13071 runpath_var='LD_RUN_PATH'
13072 hardcode_shlibpath_var=no
13073 ;;
13074
13075 sysv5*)
13076 no_undefined_flag=' -z text'
13077 # $CC -shared without GNU ld will not create a library from C++
13078 # object files and a static libstdc++, better avoid it by now
13079 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013080 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13081 $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 +000013082 hardcode_libdir_flag_spec=
13083 hardcode_shlibpath_var=no
13084 runpath_var='LD_RUN_PATH'
13085 ;;
13086
13087 uts4*)
13088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13089 hardcode_libdir_flag_spec='-L$libdir'
13090 hardcode_shlibpath_var=no
13091 ;;
13092
13093 *)
13094 ld_shlibs=no
13095 ;;
13096 esac
13097 fi
13098
John Criswell7a73b802003-06-30 21:59:07 +000013099echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13100echo "${ECHO_T}$ld_shlibs" >&6
13101test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013102
John Criswell47fdd832003-07-14 16:52:07 +000013103variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13104if test "$GCC" = yes; then
13105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13106fi
13107
13108#
13109# Do we need to explicitly link libc?
13110#
13111case "x$archive_cmds_need_lc" in
13112x|xyes)
13113 # Assume -lc should be added
13114 archive_cmds_need_lc=yes
13115
13116 if test "$enable_shared" = yes && test "$GCC" = yes; then
13117 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013118 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013119 # FIXME: we may have to deal with multi-command sequences.
13120 ;;
13121 '$CC '*)
13122 # Test whether the compiler implicitly links with -lc since on some
13123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13124 # to ld, don't add -lc before -lgcc.
13125 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13126echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13127 $rm conftest*
13128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13129
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } 2>conftest.err; then
13135 soname=conftest
13136 lib=conftest
13137 libobjs=conftest.$ac_objext
13138 deplibs=
13139 wl=$lt_prog_compiler_wl
13140 compiler_flags=-v
13141 linker_flags=-v
13142 verstring=
13143 output_objdir=.
13144 libname=conftest
13145 lt_save_allow_undefined_flag=$allow_undefined_flag
13146 allow_undefined_flag=
13147 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13148 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }
13152 then
13153 archive_cmds_need_lc=no
13154 else
13155 archive_cmds_need_lc=yes
13156 fi
13157 allow_undefined_flag=$lt_save_allow_undefined_flag
13158 else
13159 cat conftest.err 1>&5
13160 fi
13161 $rm conftest*
13162 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13163echo "${ECHO_T}$archive_cmds_need_lc" >&6
13164 ;;
13165 esac
13166 fi
13167 ;;
13168esac
13169
John Criswell7a73b802003-06-30 21:59:07 +000013170echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13171echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13172library_names_spec=
13173libname_spec='lib$name'
13174soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013175shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013176postinstall_cmds=
13177postuninstall_cmds=
13178finish_cmds=
13179finish_eval=
13180shlibpath_var=
13181shlibpath_overrides_runpath=unknown
13182version_type=none
13183dynamic_linker="$host_os ld.so"
13184sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013185if test "$GCC" = yes; then
13186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13187 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13188 # if the path contains ";" then we assume it to be the separator
13189 # otherwise default to the standard path separator (i.e. ":") - it is
13190 # assumed that no part of a normal pathname contains ";" but that should
13191 # okay in the real world where ";" in dirpaths is itself problematic.
13192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13193 else
13194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13195 fi
13196else
13197 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13198fi
13199need_lib_prefix=unknown
13200hardcode_into_libs=no
13201
13202# when you set need_version to no, make sure it does not cause -set_version
13203# flags to be left without arguments
13204need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013205
13206case $host_os in
13207aix3*)
13208 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013210 shlibpath_var=LIBPATH
13211
John Criswell47fdd832003-07-14 16:52:07 +000013212 # AIX 3 has no versioning support, so we append a major version to the name.
13213 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013214 ;;
13215
13216aix4* | aix5*)
13217 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013218 need_lib_prefix=no
13219 need_version=no
13220 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013221 if test "$host_cpu" = ia64; then
13222 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013223 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013224 shlibpath_var=LD_LIBRARY_PATH
13225 else
13226 # With GCC up to 2.95.x, collect2 would create an import file
13227 # for dependence libraries. The import file would start with
13228 # the line `#! .'. This would cause the generated library to
13229 # depend on `.', always an invalid library. This was fixed in
13230 # development snapshots of GCC prior to 3.0.
13231 case $host_os in
13232 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13234 echo ' yes '
13235 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13236 :
13237 else
13238 can_build_shared=no
13239 fi
13240 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013241 esac
John Criswell47fdd832003-07-14 16:52:07 +000013242 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13243 # soname into executable. Probably we can add versioning support to
13244 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013245 if test "$aix_use_runtimelinking" = yes; then
13246 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13247 # instead of lib<name>.a to let people know that these are not
13248 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013250 else
13251 # We preserve .a as extension for shared libraries through AIX4.2
13252 # and later when we are not doing run time linking.
13253 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013254 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013255 fi
13256 shlibpath_var=LIBPATH
13257 fi
13258 ;;
13259
13260amigaos*)
13261 library_names_spec='$libname.ixlibrary $libname.a'
13262 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013263 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 +000013264 ;;
13265
13266beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013267 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013268 dynamic_linker="$host_os ld.so"
13269 shlibpath_var=LIBRARY_PATH
13270 ;;
13271
Reid Spencer2706f8c2004-09-19 23:53:36 +000013272bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013273 version_type=linux
13274 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13278 shlibpath_var=LD_LIBRARY_PATH
13279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013281 # the default ld.so.conf also contains /usr/contrib/lib and
13282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13283 # libtool to hard-code these into programs
13284 ;;
13285
13286cygwin* | mingw* | pw32*)
13287 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013288 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013289 need_version=no
13290 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013291
John Criswell7a73b802003-06-30 21:59:07 +000013292 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013293 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013294 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013295 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013296 postinstall_cmds='base_file=`basename \${file}`~
13297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13298 dldir=$destdir/`dirname \$dlpath`~
13299 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013300 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13302 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013303 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013304 shlibpath_overrides_runpath=yes
13305
13306 case $host_os in
13307 cygwin*)
13308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13309 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 +000013310 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013311 ;;
13312 mingw*)
13313 # MinGW DLLs use traditional 'lib' prefix
13314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13316 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13317 # It is most probably a Windows format PATH printed by
13318 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13319 # path with ; separators, and with drive letters. We can handle the
13320 # drive letters (cygwin fileutils understands them), so leave them,
13321 # especially as we might pass files found there to a mingw objdump,
13322 # which wouldn't understand a cygwinified path. Ahh.
13323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13324 else
13325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13326 fi
13327 ;;
13328 pw32*)
13329 # pw32 DLLs use 'pw' prefix rather than 'lib'
13330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13331 ;;
13332 esac
John Criswell7a73b802003-06-30 21:59:07 +000013333 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013334
John Criswell7a73b802003-06-30 21:59:07 +000013335 *)
John Criswell47fdd832003-07-14 16:52:07 +000013336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013337 ;;
13338 esac
13339 dynamic_linker='Win32 ld.exe'
13340 # FIXME: first we should search . and the directory the executable is in
13341 shlibpath_var=PATH
13342 ;;
13343
13344darwin* | rhapsody*)
13345 dynamic_linker="$host_os dyld"
13346 version_type=darwin
13347 need_lib_prefix=no
13348 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013349 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013350 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013351 shlibpath_overrides_runpath=yes
13352 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013353 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013354 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013355 if test "$GCC" = yes; then
13356 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"`
13357 else
13358 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013359 fi
13360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13361 ;;
13362
13363dgux*)
13364 version_type=linux
13365 need_lib_prefix=no
13366 need_version=no
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13368 soname_spec='${libname}${release}${shared_ext}$major'
13369 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013370 ;;
13371
13372freebsd1*)
13373 dynamic_linker=no
13374 ;;
13375
Reid Spencer2706f8c2004-09-19 23:53:36 +000013376kfreebsd*-gnu)
13377 version_type=linux
13378 need_lib_prefix=no
13379 need_version=no
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 shlibpath_overrides_runpath=no
13384 hardcode_into_libs=yes
13385 dynamic_linker='GNU ld.so'
13386 ;;
13387
John Criswell7a73b802003-06-30 21:59:07 +000013388freebsd*)
13389 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13390 version_type=freebsd-$objformat
13391 case $version_type in
13392 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013394 need_version=no
13395 need_lib_prefix=no
13396 ;;
13397 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013399 need_version=yes
13400 ;;
13401 esac
13402 shlibpath_var=LD_LIBRARY_PATH
13403 case $host_os in
13404 freebsd2*)
13405 shlibpath_overrides_runpath=yes
13406 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013407 freebsd3.01* | freebsdelf3.01*)
13408 shlibpath_overrides_runpath=yes
13409 hardcode_into_libs=yes
13410 ;;
13411 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013412 shlibpath_overrides_runpath=no
13413 hardcode_into_libs=yes
13414 ;;
13415 esac
13416 ;;
13417
13418gnu*)
13419 version_type=linux
13420 need_lib_prefix=no
13421 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13423 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013424 shlibpath_var=LD_LIBRARY_PATH
13425 hardcode_into_libs=yes
13426 ;;
13427
13428hpux9* | hpux10* | hpux11*)
13429 # Give a soname corresponding to the major version so that dld.sl refuses to
13430 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013431 version_type=sunos
13432 need_lib_prefix=no
13433 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013434 case "$host_cpu" in
13435 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013436 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013437 hardcode_into_libs=yes
13438 dynamic_linker="$host_os dld.so"
13439 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 if test "X$HPUX_IA64_MODE" = X32; then
13444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13445 else
13446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13447 fi
13448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13449 ;;
13450 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013451 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013452 hardcode_into_libs=yes
13453 dynamic_linker="$host_os dld.sl"
13454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 soname_spec='${libname}${release}${shared_ext}$major'
13458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13460 ;;
13461 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013462 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013463 dynamic_linker="$host_os dld.sl"
13464 shlibpath_var=SHLIB_PATH
13465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467 soname_spec='${libname}${release}${shared_ext}$major'
13468 ;;
13469 esac
John Criswell7a73b802003-06-30 21:59:07 +000013470 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13471 postinstall_cmds='chmod 555 $lib'
13472 ;;
13473
John Criswell47fdd832003-07-14 16:52:07 +000013474irix5* | irix6* | nonstopux*)
13475 case $host_os in
13476 nonstopux*) version_type=nonstopux ;;
13477 *)
13478 if test "$lt_cv_prog_gnu_ld" = yes; then
13479 version_type=linux
13480 else
13481 version_type=irix
13482 fi ;;
13483 esac
John Criswell7a73b802003-06-30 21:59:07 +000013484 need_lib_prefix=no
13485 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013486 soname_spec='${libname}${release}${shared_ext}$major'
13487 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 +000013488 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013489 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013490 libsuff= shlibsuff=
13491 ;;
13492 *)
13493 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013494 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13495 libsuff= shlibsuff= libmagic=32-bit;;
13496 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13497 libsuff=32 shlibsuff=N32 libmagic=N32;;
13498 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13499 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013500 *) libsuff= shlibsuff= libmagic=never-match;;
13501 esac
13502 ;;
13503 esac
13504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13505 shlibpath_overrides_runpath=no
13506 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13507 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013508 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013509 ;;
13510
13511# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013512linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013513 dynamic_linker=no
13514 ;;
13515
13516# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013517linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013518 version_type=linux
13519 need_lib_prefix=no
13520 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 shlibpath_overrides_runpath=no
13526 # This implies no fast_install, which is unacceptable.
13527 # Some rework will be needed to allow for fast_install
13528 # before this can be enabled.
13529 hardcode_into_libs=yes
13530
Reid Spencer2706f8c2004-09-19 23:53:36 +000013531 # Append ld.so.conf contents to the search path
13532 if test -f /etc/ld.so.conf; then
13533 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13534 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13535 fi
13536
John Criswell7a73b802003-06-30 21:59:07 +000013537 # We used to test for /lib/ld.so.1 and disable shared libraries on
13538 # powerpc, because MkLinux only supported shared libraries with the
13539 # GNU dynamic linker. Since this was broken with cross compilers,
13540 # most powerpc-linux boxes support dynamic linking these days and
13541 # people can always --disable-shared, the test was removed, and we
13542 # assume the GNU/Linux dynamic linker is in use.
13543 dynamic_linker='GNU/Linux ld.so'
13544 ;;
13545
Reid Spencer2706f8c2004-09-19 23:53:36 +000013546knetbsd*-gnu)
13547 version_type=linux
13548 need_lib_prefix=no
13549 need_version=no
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13551 soname_spec='${libname}${release}${shared_ext}$major'
13552 shlibpath_var=LD_LIBRARY_PATH
13553 shlibpath_overrides_runpath=no
13554 hardcode_into_libs=yes
13555 dynamic_linker='GNU ld.so'
13556 ;;
13557
John Criswell7a73b802003-06-30 21:59:07 +000013558netbsd*)
13559 version_type=sunos
13560 need_lib_prefix=no
13561 need_version=no
13562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13565 dynamic_linker='NetBSD (a.out) ld.so'
13566 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013568 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013569 dynamic_linker='NetBSD ld.elf_so'
13570 fi
13571 shlibpath_var=LD_LIBRARY_PATH
13572 shlibpath_overrides_runpath=yes
13573 hardcode_into_libs=yes
13574 ;;
13575
13576newsos6)
13577 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13579 shlibpath_var=LD_LIBRARY_PATH
13580 shlibpath_overrides_runpath=yes
13581 ;;
13582
Reid Spencer2706f8c2004-09-19 23:53:36 +000013583nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013584 version_type=linux
13585 need_lib_prefix=no
13586 need_version=no
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013589 shlibpath_var=LD_LIBRARY_PATH
13590 shlibpath_overrides_runpath=yes
13591 ;;
13592
13593openbsd*)
13594 version_type=sunos
13595 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013596 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13599 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013600 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 +000013601 case $host_os in
13602 openbsd2.[89] | openbsd2.[89].*)
13603 shlibpath_overrides_runpath=no
13604 ;;
13605 *)
13606 shlibpath_overrides_runpath=yes
13607 ;;
13608 esac
John Criswell7a73b802003-06-30 21:59:07 +000013609 else
13610 shlibpath_overrides_runpath=yes
13611 fi
John Criswell7a73b802003-06-30 21:59:07 +000013612 ;;
13613
13614os2*)
13615 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013616 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013617 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013618 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013619 dynamic_linker='OS/2 ld.exe'
13620 shlibpath_var=LIBPATH
13621 ;;
13622
13623osf3* | osf4* | osf5*)
13624 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013625 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013626 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013627 soname_spec='${libname}${release}${shared_ext}$major'
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013629 shlibpath_var=LD_LIBRARY_PATH
13630 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13631 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13632 ;;
13633
13634sco3.2v5*)
13635 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013636 soname_spec='${libname}${release}${shared_ext}$major'
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013638 shlibpath_var=LD_LIBRARY_PATH
13639 ;;
13640
13641solaris*)
13642 version_type=linux
13643 need_lib_prefix=no
13644 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13646 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013647 shlibpath_var=LD_LIBRARY_PATH
13648 shlibpath_overrides_runpath=yes
13649 hardcode_into_libs=yes
13650 # ldd complains unless libraries are executable
13651 postinstall_cmds='chmod +x $lib'
13652 ;;
13653
13654sunos4*)
13655 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013657 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 shlibpath_overrides_runpath=yes
13660 if test "$with_gnu_ld" = yes; then
13661 need_lib_prefix=no
13662 fi
13663 need_version=yes
13664 ;;
13665
13666sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13667 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013670 shlibpath_var=LD_LIBRARY_PATH
13671 case $host_vendor in
13672 sni)
13673 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013674 need_lib_prefix=no
13675 export_dynamic_flag_spec='${wl}-Blargedynsym'
13676 runpath_var=LD_RUN_PATH
13677 ;;
13678 siemens)
13679 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013680 ;;
13681 motorola)
13682 need_lib_prefix=no
13683 need_version=no
13684 shlibpath_overrides_runpath=no
13685 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13686 ;;
13687 esac
13688 ;;
13689
John Criswell7a73b802003-06-30 21:59:07 +000013690sysv4*MP*)
13691 if test -d /usr/nec ;then
13692 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013693 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13694 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013695 shlibpath_var=LD_LIBRARY_PATH
13696 fi
13697 ;;
13698
John Criswell47fdd832003-07-14 16:52:07 +000013699uts4*)
13700 version_type=linux
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 ;;
13705
John Criswell7a73b802003-06-30 21:59:07 +000013706*)
13707 dynamic_linker=no
13708 ;;
13709esac
13710echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13711echo "${ECHO_T}$dynamic_linker" >&6
13712test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013713
Reid Spencer2706f8c2004-09-19 23:53:36 +000013714echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13715echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13716hardcode_action=
13717if test -n "$hardcode_libdir_flag_spec" || \
13718 test -n "$runpath_var" || \
13719 test "X$hardcode_automatic" = "Xyes" ; then
13720
13721 # We can hardcode non-existant directories.
13722 if test "$hardcode_direct" != no &&
13723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13724 # have to relink, otherwise we might link with an installed library
13725 # when we should be linking with a yet-to-be-installed one
13726 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13727 test "$hardcode_minus_L" != no; then
13728 # Linking always hardcodes the temporary library directory.
13729 hardcode_action=relink
13730 else
13731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13732 hardcode_action=immediate
13733 fi
13734else
13735 # We cannot hardcode anything, or else we can only hardcode existing
13736 # directories.
13737 hardcode_action=unsupported
13738fi
13739echo "$as_me:$LINENO: result: $hardcode_action" >&5
13740echo "${ECHO_T}$hardcode_action" >&6
13741
13742if test "$hardcode_action" = relink; then
13743 # Fast installation is not supported
13744 enable_fast_install=no
13745elif test "$shlibpath_overrides_runpath" = yes ||
13746 test "$enable_shared" = no; then
13747 # Fast installation is not necessary
13748 enable_fast_install=needless
13749fi
13750
13751striplib=
13752old_striplib=
13753echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13754echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13755if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13756 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13757 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13758 echo "$as_me:$LINENO: result: yes" >&5
13759echo "${ECHO_T}yes" >&6
13760else
13761# FIXME - insert some real tests, host_os isn't really good enough
13762 case $host_os in
13763 darwin*)
13764 if test -n "$STRIP" ; then
13765 striplib="$STRIP -x"
13766 echo "$as_me:$LINENO: result: yes" >&5
13767echo "${ECHO_T}yes" >&6
13768 else
13769 echo "$as_me:$LINENO: result: no" >&5
13770echo "${ECHO_T}no" >&6
13771fi
13772 ;;
13773 *)
13774 echo "$as_me:$LINENO: result: no" >&5
13775echo "${ECHO_T}no" >&6
13776 ;;
13777 esac
13778fi
13779
John Criswell7a73b802003-06-30 21:59:07 +000013780if test "x$enable_dlopen" != xyes; then
13781 enable_dlopen=unknown
13782 enable_dlopen_self=unknown
13783 enable_dlopen_self_static=unknown
13784else
13785 lt_cv_dlopen=no
13786 lt_cv_dlopen_libs=
13787
13788 case $host_os in
13789 beos*)
13790 lt_cv_dlopen="load_add_on"
13791 lt_cv_dlopen_libs=
13792 lt_cv_dlopen_self=yes
13793 ;;
13794
John Criswell47fdd832003-07-14 16:52:07 +000013795 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013796 lt_cv_dlopen="LoadLibrary"
13797 lt_cv_dlopen_libs=
13798 ;;
13799
John Criswell47fdd832003-07-14 16:52:07 +000013800 cygwin*)
13801 lt_cv_dlopen="dlopen"
13802 lt_cv_dlopen_libs=
13803 ;;
13804
13805 darwin*)
13806 # if libdl is installed we need to link against it
13807 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13808echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13809if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811else
13812 ac_check_lib_save_LIBS=$LIBS
13813LIBS="-ldl $LIBS"
13814cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013820
13821/* Override any gcc2 internal prototype to avoid an error. */
13822#ifdef __cplusplus
13823extern "C"
13824#endif
13825/* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13827char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013828int
13829main ()
13830{
13831dlopen ();
13832 ;
13833 return 0;
13834}
13835_ACEOF
13836rm -f conftest.$ac_objext conftest$ac_exeext
13837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013838 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013845 { ac_try='test -z "$ac_c_werror_flag"
13846 || test ! -s conftest.err'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 ac_cv_lib_dl_dlopen=yes
13859else
13860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013861sed 's/^/| /' conftest.$ac_ext >&5
13862
John Criswell47fdd832003-07-14 16:52:07 +000013863ac_cv_lib_dl_dlopen=no
13864fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013865rm -f conftest.err conftest.$ac_objext \
13866 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013867LIBS=$ac_check_lib_save_LIBS
13868fi
13869echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13870echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13871if test $ac_cv_lib_dl_dlopen = yes; then
13872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13873else
13874
13875 lt_cv_dlopen="dyld"
13876 lt_cv_dlopen_libs=
13877 lt_cv_dlopen_self=yes
13878
13879fi
13880
13881 ;;
13882
John Criswell7a73b802003-06-30 21:59:07 +000013883 *)
13884 echo "$as_me:$LINENO: checking for shl_load" >&5
13885echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13886if test "${ac_cv_func_shl_load+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13888else
13889 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013890/* confdefs.h. */
13891_ACEOF
13892cat confdefs.h >>conftest.$ac_ext
13893cat >>conftest.$ac_ext <<_ACEOF
13894/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013895/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13897#define shl_load innocuous_shl_load
13898
John Criswell7a73b802003-06-30 21:59:07 +000013899/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013900 which can conflict with char shl_load (); below.
13901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13902 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013903
John Criswell0c38eaf2003-09-10 15:17:25 +000013904#ifdef __STDC__
13905# include <limits.h>
13906#else
13907# include <assert.h>
13908#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013909
13910#undef shl_load
13911
John Criswell7a73b802003-06-30 21:59:07 +000013912/* Override any gcc2 internal prototype to avoid an error. */
13913#ifdef __cplusplus
13914extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013915{
John Criswell7a73b802003-06-30 21:59:07 +000013916#endif
13917/* We use char because int might match the return type of a gcc2
13918 builtin and then its argument prototype would still apply. */
13919char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013920/* The GNU C library defines this for functions which it implements
13921 to always fail with ENOSYS. Some functions are actually named
13922 something starting with __ and the normal name is an alias. */
13923#if defined (__stub_shl_load) || defined (__stub___shl_load)
13924choke me
13925#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013926char (*f) () = shl_load;
13927#endif
13928#ifdef __cplusplus
13929}
John Criswell7a73b802003-06-30 21:59:07 +000013930#endif
13931
John Criswell0c38eaf2003-09-10 15:17:25 +000013932int
13933main ()
13934{
13935return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013936 ;
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 Criswell7a73b802003-06-30 21:59: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 Criswell7a73b802003-06-30 21:59: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 Criswell7a73b802003-06-30 21:59: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_func_shl_load=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 Criswell7a73b802003-06-30 21:59:07 +000013967ac_cv_func_shl_load=no
13968fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013969rm -f conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013971fi
13972echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13973echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13974if test $ac_cv_func_shl_load = yes; then
13975 lt_cv_dlopen="shl_load"
13976else
13977 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13978echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13979if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981else
13982 ac_check_lib_save_LIBS=$LIBS
13983LIBS="-ldld $LIBS"
13984cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013985/* confdefs.h. */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013990
13991/* Override any gcc2 internal prototype to avoid an error. */
13992#ifdef __cplusplus
13993extern "C"
13994#endif
13995/* We use char because int might match the return type of a gcc2
13996 builtin and then its argument prototype would still apply. */
13997char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013998int
13999main ()
14000{
14001shl_load ();
14002 ;
14003 return 0;
14004}
14005_ACEOF
14006rm -f conftest.$ac_objext conftest$ac_exeext
14007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014008 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014010 grep -v '^ *+' conftest.er1 >conftest.err
14011 rm -f conftest.er1
14012 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014015 { ac_try='test -z "$ac_c_werror_flag"
14016 || test ! -s conftest.err'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_cv_lib_dld_shl_load=yes
14029else
14030 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014031sed 's/^/| /' conftest.$ac_ext >&5
14032
John Criswell7a73b802003-06-30 21:59:07 +000014033ac_cv_lib_dld_shl_load=no
14034fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014035rm -f conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014037LIBS=$ac_check_lib_save_LIBS
14038fi
14039echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14040echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14041if test $ac_cv_lib_dld_shl_load = yes; then
14042 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14043else
14044 echo "$as_me:$LINENO: checking for dlopen" >&5
14045echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14046if test "${ac_cv_func_dlopen+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048else
14049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014055/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14057#define dlopen innocuous_dlopen
14058
John Criswell7a73b802003-06-30 21:59:07 +000014059/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014060 which can conflict with char dlopen (); below.
14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014063
John Criswell0c38eaf2003-09-10 15:17:25 +000014064#ifdef __STDC__
14065# include <limits.h>
14066#else
14067# include <assert.h>
14068#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014069
14070#undef dlopen
14071
John Criswell7a73b802003-06-30 21:59:07 +000014072/* Override any gcc2 internal prototype to avoid an error. */
14073#ifdef __cplusplus
14074extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014075{
John Criswell7a73b802003-06-30 21:59:07 +000014076#endif
14077/* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14079char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014080/* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083#if defined (__stub_dlopen) || defined (__stub___dlopen)
14084choke me
14085#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014086char (*f) () = dlopen;
14087#endif
14088#ifdef __cplusplus
14089}
John Criswell7a73b802003-06-30 21:59:07 +000014090#endif
14091
John Criswell0c38eaf2003-09-10 15:17:25 +000014092int
14093main ()
14094{
14095return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014096 ;
14097 return 0;
14098}
14099_ACEOF
14100rm -f conftest.$ac_objext conftest$ac_exeext
14101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014102 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014109 { ac_try='test -z "$ac_c_werror_flag"
14110 || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_func_dlopen=yes
14123else
14124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014125sed 's/^/| /' conftest.$ac_ext >&5
14126
John Criswell7a73b802003-06-30 21:59:07 +000014127ac_cv_func_dlopen=no
14128fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014129rm -f conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014131fi
14132echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14133echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14134if test $ac_cv_func_dlopen = yes; then
14135 lt_cv_dlopen="dlopen"
14136else
14137 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14138echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14139if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
14142 ac_check_lib_save_LIBS=$LIBS
14143LIBS="-ldl $LIBS"
14144cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014150
14151/* Override any gcc2 internal prototype to avoid an error. */
14152#ifdef __cplusplus
14153extern "C"
14154#endif
14155/* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14157char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014158int
14159main ()
14160{
14161dlopen ();
14162 ;
14163 return 0;
14164}
14165_ACEOF
14166rm -f conftest.$ac_objext conftest$ac_exeext
14167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014168 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014169 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014175 { ac_try='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_lib_dl_dlopen=yes
14189else
14190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014191sed 's/^/| /' conftest.$ac_ext >&5
14192
John Criswell7a73b802003-06-30 21:59:07 +000014193ac_cv_lib_dl_dlopen=no
14194fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014195rm -f conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014197LIBS=$ac_check_lib_save_LIBS
14198fi
14199echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14200echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14201if test $ac_cv_lib_dl_dlopen = yes; then
14202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14203else
14204 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14205echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14206if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
14209 ac_check_lib_save_LIBS=$LIBS
14210LIBS="-lsvld $LIBS"
14211cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014212/* confdefs.h. */
14213_ACEOF
14214cat confdefs.h >>conftest.$ac_ext
14215cat >>conftest.$ac_ext <<_ACEOF
14216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014217
14218/* Override any gcc2 internal prototype to avoid an error. */
14219#ifdef __cplusplus
14220extern "C"
14221#endif
14222/* We use char because int might match the return type of a gcc2
14223 builtin and then its argument prototype would still apply. */
14224char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014225int
14226main ()
14227{
14228dlopen ();
14229 ;
14230 return 0;
14231}
14232_ACEOF
14233rm -f conftest.$ac_objext conftest$ac_exeext
14234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014235 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014236 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014242 { ac_try='test -z "$ac_c_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_lib_svld_dlopen=yes
14256else
14257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014258sed 's/^/| /' conftest.$ac_ext >&5
14259
John Criswell7a73b802003-06-30 21:59:07 +000014260ac_cv_lib_svld_dlopen=no
14261fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014262rm -f conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014264LIBS=$ac_check_lib_save_LIBS
14265fi
14266echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14267echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14268if test $ac_cv_lib_svld_dlopen = yes; then
14269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14270else
14271 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14272echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14273if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275else
14276 ac_check_lib_save_LIBS=$LIBS
14277LIBS="-ldld $LIBS"
14278cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014279/* confdefs.h. */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
14283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014284
14285/* Override any gcc2 internal prototype to avoid an error. */
14286#ifdef __cplusplus
14287extern "C"
14288#endif
14289/* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */
14291char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014292int
14293main ()
14294{
14295dld_link ();
14296 ;
14297 return 0;
14298}
14299_ACEOF
14300rm -f conftest.$ac_objext conftest$ac_exeext
14301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014302 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014303 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014309 { ac_try='test -z "$ac_c_werror_flag"
14310 || test ! -s conftest.err'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; } &&
14316 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }; then
14322 ac_cv_lib_dld_dld_link=yes
14323else
14324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014325sed 's/^/| /' conftest.$ac_ext >&5
14326
John Criswell7a73b802003-06-30 21:59:07 +000014327ac_cv_lib_dld_dld_link=no
14328fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014329rm -f conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014331LIBS=$ac_check_lib_save_LIBS
14332fi
14333echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14334echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14335if test $ac_cv_lib_dld_dld_link = yes; then
14336 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14337fi
14338
14339
14340fi
14341
14342
14343fi
14344
14345
14346fi
14347
14348
14349fi
14350
14351
14352fi
14353
14354 ;;
14355 esac
14356
14357 if test "x$lt_cv_dlopen" != xno; then
14358 enable_dlopen=yes
14359 else
14360 enable_dlopen=no
14361 fi
14362
14363 case $lt_cv_dlopen in
14364 dlopen)
14365 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014366 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014367
14368 save_LDFLAGS="$LDFLAGS"
14369 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14370
14371 save_LIBS="$LIBS"
14372 LIBS="$lt_cv_dlopen_libs $LIBS"
14373
14374 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14375echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14376if test "${lt_cv_dlopen_self+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378else
14379 if test "$cross_compiling" = yes; then :
14380 lt_cv_dlopen_self=cross
14381else
John Criswell47fdd832003-07-14 16:52:07 +000014382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014383 lt_status=$lt_dlunknown
14384 cat > conftest.$ac_ext <<EOF
John Criswell241116f2005-12-19 20:27:24 +000014385#line 14385 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014386#include "confdefs.h"
14387
14388#if HAVE_DLFCN_H
14389#include <dlfcn.h>
14390#endif
14391
14392#include <stdio.h>
14393
14394#ifdef RTLD_GLOBAL
14395# define LT_DLGLOBAL RTLD_GLOBAL
14396#else
14397# ifdef DL_GLOBAL
14398# define LT_DLGLOBAL DL_GLOBAL
14399# else
14400# define LT_DLGLOBAL 0
14401# endif
14402#endif
14403
14404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14405 find out it does not work in some platform. */
14406#ifndef LT_DLLAZY_OR_NOW
14407# ifdef RTLD_LAZY
14408# define LT_DLLAZY_OR_NOW RTLD_LAZY
14409# else
14410# ifdef DL_LAZY
14411# define LT_DLLAZY_OR_NOW DL_LAZY
14412# else
14413# ifdef RTLD_NOW
14414# define LT_DLLAZY_OR_NOW RTLD_NOW
14415# else
14416# ifdef DL_NOW
14417# define LT_DLLAZY_OR_NOW DL_NOW
14418# else
14419# define LT_DLLAZY_OR_NOW 0
14420# endif
14421# endif
14422# endif
14423# endif
14424#endif
14425
14426#ifdef __cplusplus
14427extern "C" void exit (int);
14428#endif
14429
14430void fnord() { int i=42;}
14431int main ()
14432{
14433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14434 int status = $lt_dlunknown;
14435
14436 if (self)
14437 {
14438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14439 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14440 /* dlclose (self); */
14441 }
14442
14443 exit (status);
14444}
14445EOF
14446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14447 (eval $ac_link) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14451 (./conftest; exit; ) 2>/dev/null
14452 lt_status=$?
14453 case x$lt_status in
14454 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14455 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14456 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14457 esac
14458 else :
14459 # compilation failed
14460 lt_cv_dlopen_self=no
14461 fi
14462fi
14463rm -fr conftest*
14464
14465
14466fi
14467echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14468echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14469
14470 if test "x$lt_cv_dlopen_self" = xyes; then
14471 LDFLAGS="$LDFLAGS $link_static_flag"
14472 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14473echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14474if test "${lt_cv_dlopen_self_static+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476else
14477 if test "$cross_compiling" = yes; then :
14478 lt_cv_dlopen_self_static=cross
14479else
John Criswell47fdd832003-07-14 16:52:07 +000014480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014481 lt_status=$lt_dlunknown
14482 cat > conftest.$ac_ext <<EOF
John Criswell241116f2005-12-19 20:27:24 +000014483#line 14483 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014484#include "confdefs.h"
14485
14486#if HAVE_DLFCN_H
14487#include <dlfcn.h>
14488#endif
14489
14490#include <stdio.h>
14491
14492#ifdef RTLD_GLOBAL
14493# define LT_DLGLOBAL RTLD_GLOBAL
14494#else
14495# ifdef DL_GLOBAL
14496# define LT_DLGLOBAL DL_GLOBAL
14497# else
14498# define LT_DLGLOBAL 0
14499# endif
14500#endif
14501
14502/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14503 find out it does not work in some platform. */
14504#ifndef LT_DLLAZY_OR_NOW
14505# ifdef RTLD_LAZY
14506# define LT_DLLAZY_OR_NOW RTLD_LAZY
14507# else
14508# ifdef DL_LAZY
14509# define LT_DLLAZY_OR_NOW DL_LAZY
14510# else
14511# ifdef RTLD_NOW
14512# define LT_DLLAZY_OR_NOW RTLD_NOW
14513# else
14514# ifdef DL_NOW
14515# define LT_DLLAZY_OR_NOW DL_NOW
14516# else
14517# define LT_DLLAZY_OR_NOW 0
14518# endif
14519# endif
14520# endif
14521# endif
14522#endif
14523
14524#ifdef __cplusplus
14525extern "C" void exit (int);
14526#endif
14527
14528void fnord() { int i=42;}
14529int main ()
14530{
14531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14532 int status = $lt_dlunknown;
14533
14534 if (self)
14535 {
14536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14537 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14538 /* dlclose (self); */
14539 }
14540
14541 exit (status);
14542}
14543EOF
14544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14545 (eval $ac_link) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14549 (./conftest; exit; ) 2>/dev/null
14550 lt_status=$?
14551 case x$lt_status in
14552 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14553 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14554 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14555 esac
14556 else :
14557 # compilation failed
14558 lt_cv_dlopen_self_static=no
14559 fi
14560fi
14561rm -fr conftest*
14562
14563
14564fi
14565echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14566echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14567 fi
14568
14569 CPPFLAGS="$save_CPPFLAGS"
14570 LDFLAGS="$save_LDFLAGS"
14571 LIBS="$save_LIBS"
14572 ;;
14573 esac
14574
14575 case $lt_cv_dlopen_self in
14576 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14577 *) enable_dlopen_self=unknown ;;
14578 esac
14579
14580 case $lt_cv_dlopen_self_static in
14581 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14582 *) enable_dlopen_self_static=unknown ;;
14583 esac
14584fi
14585
14586
John Criswell47fdd832003-07-14 16:52:07 +000014587# Report which librarie types wil actually be built
14588echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14589echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14590echo "$as_me:$LINENO: result: $can_build_shared" >&5
14591echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014592
John Criswell47fdd832003-07-14 16:52:07 +000014593echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14594echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14595test "$can_build_shared" = "no" && enable_shared=no
14596
14597# On AIX, shared libraries and static libraries use the same namespace, and
14598# are all built from PIC.
14599case "$host_os" in
14600aix3*)
14601 test "$enable_shared" = yes && enable_static=no
14602 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014603 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014604 postinstall_cmds='$RANLIB $lib'
14605 fi
14606 ;;
14607
Reid Spencer2706f8c2004-09-19 23:53:36 +000014608aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014609 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14610 test "$enable_shared" = yes && enable_static=no
14611 fi
John Criswell7a73b802003-06-30 21:59:07 +000014612 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014613esac
14614echo "$as_me:$LINENO: result: $enable_shared" >&5
14615echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014616
John Criswell47fdd832003-07-14 16:52:07 +000014617echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14618echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14619# Make sure either enable_shared or enable_static is yes.
14620test "$enable_shared" = yes || enable_static=yes
14621echo "$as_me:$LINENO: result: $enable_static" >&5
14622echo "${ECHO_T}$enable_static" >&6
14623
14624# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014625# libtool distribution, otherwise you forgot to ship ltmain.sh
14626# with your package, and you will get complaints that there are
14627# no rules to generate ltmain.sh.
14628if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014629 # See if we are running on zsh, and set the options which allow our commands through
14630 # without removal of \ escapes.
14631 if test -n "${ZSH_VERSION+set}" ; then
14632 setopt NO_GLOB_SUBST
14633 fi
John Criswell7a73b802003-06-30 21:59:07 +000014634 # Now quote all the things that may contain metacharacters while being
14635 # careful not to overquote the AC_SUBSTed values. We take copies of the
14636 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014637 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14638 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014639 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14640 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14641 deplibs_check_method reload_flag reload_cmds need_locks \
14642 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14643 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014644 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014645 old_postinstall_cmds old_postuninstall_cmds \
14646 compiler \
14647 CC \
14648 LD \
14649 lt_prog_compiler_wl \
14650 lt_prog_compiler_pic \
14651 lt_prog_compiler_static \
14652 lt_prog_compiler_no_builtin_flag \
14653 export_dynamic_flag_spec \
14654 thread_safe_flag_spec \
14655 whole_archive_flag_spec \
14656 enable_shared_with_static_runtimes \
14657 old_archive_cmds \
14658 old_archive_from_new_cmds \
14659 predep_objects \
14660 postdep_objects \
14661 predeps \
14662 postdeps \
14663 compiler_lib_search_path \
14664 archive_cmds \
14665 archive_expsym_cmds \
14666 postinstall_cmds \
14667 postuninstall_cmds \
14668 old_archive_from_expsyms_cmds \
14669 allow_undefined_flag \
14670 no_undefined_flag \
14671 export_symbols_cmds \
14672 hardcode_libdir_flag_spec \
14673 hardcode_libdir_flag_spec_ld \
14674 hardcode_libdir_separator \
14675 hardcode_automatic \
14676 module_cmds \
14677 module_expsym_cmds \
14678 lt_cv_prog_compiler_c_o \
14679 exclude_expsyms \
14680 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014681
14682 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014683 old_archive_cmds | \
14684 old_archive_from_new_cmds | \
14685 archive_cmds | \
14686 archive_expsym_cmds | \
14687 module_cmds | \
14688 module_expsym_cmds | \
14689 old_archive_from_expsyms_cmds | \
14690 export_symbols_cmds | \
14691 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014692 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014693 old_postinstall_cmds | old_postuninstall_cmds | \
14694 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014695 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014696 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 +000014697 ;;
14698 *)
14699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14700 ;;
14701 esac
14702 done
14703
John Criswell47fdd832003-07-14 16:52:07 +000014704 case $lt_echo in
14705 *'\$0 --fallback-echo"')
14706 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14707 ;;
14708 esac
14709
14710cfgfile="${ofile}T"
14711 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14712 $rm -f "$cfgfile"
14713 { echo "$as_me:$LINENO: creating $ofile" >&5
14714echo "$as_me: creating $ofile" >&6;}
14715
14716 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014717#! $SHELL
14718
John Criswell47fdd832003-07-14 16:52:07 +000014719# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014720# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14721# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14722#
John Criswell47fdd832003-07-14 16:52:07 +000014723# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14724# Free Software Foundation, Inc.
14725#
14726# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014727# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14728#
14729# This program is free software; you can redistribute it and/or modify
14730# it under the terms of the GNU General Public License as published by
14731# the Free Software Foundation; either version 2 of the License, or
14732# (at your option) any later version.
14733#
14734# This program is distributed in the hope that it will be useful, but
14735# WITHOUT ANY WARRANTY; without even the implied warranty of
14736# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14737# General Public License for more details.
14738#
14739# You should have received a copy of the GNU General Public License
14740# along with this program; if not, write to the Free Software
14741# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14742#
14743# As a special exception to the GNU General Public License, if you
14744# distribute this file as part of a program that contains a
14745# configuration script generated by Autoconf, you may include it under
14746# the same distribution terms that you use for the rest of that program.
14747
John Criswell47fdd832003-07-14 16:52:07 +000014748# A sed program that does not truncate output.
14749SED=$lt_SED
14750
John Criswell7a73b802003-06-30 21:59:07 +000014751# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014752Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014753
14754# The HP-UX ksh and POSIX shell print the target directory to stdout
14755# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014757
John Criswell47fdd832003-07-14 16:52:07 +000014758# The names of the tagged configurations supported by this script.
14759available_tags=
14760
John Criswell7a73b802003-06-30 21:59:07 +000014761# ### BEGIN LIBTOOL CONFIG
14762
14763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14764
14765# Shell to use when invoking shell scripts.
14766SHELL=$lt_SHELL
14767
14768# Whether or not to build shared libraries.
14769build_libtool_libs=$enable_shared
14770
14771# Whether or not to build static libraries.
14772build_old_libs=$enable_static
14773
14774# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014775build_libtool_need_lc=$archive_cmds_need_lc
14776
14777# Whether or not to disallow shared libs when runtime libs are static
14778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014779
14780# Whether or not to optimize for fast installation.
14781fast_install=$enable_fast_install
14782
14783# The host system.
14784host_alias=$host_alias
14785host=$host
14786
14787# An echo program that does not interpret backslashes.
14788echo=$lt_echo
14789
14790# The archiver.
14791AR=$lt_AR
14792AR_FLAGS=$lt_AR_FLAGS
14793
John Criswell47fdd832003-07-14 16:52:07 +000014794# A C compiler.
14795LTCC=$lt_LTCC
14796
14797# A language-specific compiler.
14798CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014799
14800# Is the compiler the GNU C compiler?
14801with_gcc=$GCC
14802
John Criswell47fdd832003-07-14 16:52:07 +000014803# An ERE matcher.
14804EGREP=$lt_EGREP
14805
John Criswell7a73b802003-06-30 21:59:07 +000014806# The linker used to build libraries.
14807LD=$lt_LD
14808
14809# Whether we need hard or soft links.
14810LN_S=$lt_LN_S
14811
14812# A BSD-compatible nm program.
14813NM=$lt_NM
14814
14815# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014816STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014817
14818# Used to examine libraries when file_magic_cmd begins "file"
14819MAGIC_CMD=$MAGIC_CMD
14820
14821# Used on cygwin: DLL creation program.
14822DLLTOOL="$DLLTOOL"
14823
14824# Used on cygwin: object dumper.
14825OBJDUMP="$OBJDUMP"
14826
14827# Used on cygwin: assembler.
14828AS="$AS"
14829
14830# The name of the directory that contains temporary libtool files.
14831objdir=$objdir
14832
14833# How to create reloadable object files.
14834reload_flag=$lt_reload_flag
14835reload_cmds=$lt_reload_cmds
14836
14837# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014838wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014839
14840# Object file suffix (normally "o").
14841objext="$ac_objext"
14842
14843# Old archive suffix (normally "a").
14844libext="$libext"
14845
John Criswell47fdd832003-07-14 16:52:07 +000014846# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014847shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014848
John Criswell7a73b802003-06-30 21:59:07 +000014849# Executable file suffix (normally "").
14850exeext="$exeext"
14851
14852# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014853pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014854pic_mode=$pic_mode
14855
John Criswell47fdd832003-07-14 16:52:07 +000014856# What is the maximum length of a command?
14857max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014858
John Criswell47fdd832003-07-14 16:52:07 +000014859# Does compiler simultaneously support -c and -o options?
14860compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014861
14862# Must we lock files when doing compilation ?
14863need_locks=$lt_need_locks
14864
14865# Do we need the lib prefix for modules?
14866need_lib_prefix=$need_lib_prefix
14867
14868# Do we need a version for libraries?
14869need_version=$need_version
14870
14871# Whether dlopen is supported.
14872dlopen_support=$enable_dlopen
14873
14874# Whether dlopen of programs is supported.
14875dlopen_self=$enable_dlopen_self
14876
14877# Whether dlopen of statically linked programs is supported.
14878dlopen_self_static=$enable_dlopen_self_static
14879
14880# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014881link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014882
14883# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014884no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014885
14886# Compiler flag to allow reflexive dlopens.
14887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14888
14889# Compiler flag to generate shared objects directly from archives.
14890whole_archive_flag_spec=$lt_whole_archive_flag_spec
14891
14892# Compiler flag to generate thread-safe objects.
14893thread_safe_flag_spec=$lt_thread_safe_flag_spec
14894
14895# Library versioning type.
14896version_type=$version_type
14897
14898# Format of library name prefix.
14899libname_spec=$lt_libname_spec
14900
14901# List of archive names. First name is the real one, the rest are links.
14902# The last name is the one that the linker finds with -lNAME.
14903library_names_spec=$lt_library_names_spec
14904
14905# The coded name of the library, if different from the real name.
14906soname_spec=$lt_soname_spec
14907
14908# Commands used to build and install an old-style archive.
14909RANLIB=$lt_RANLIB
14910old_archive_cmds=$lt_old_archive_cmds
14911old_postinstall_cmds=$lt_old_postinstall_cmds
14912old_postuninstall_cmds=$lt_old_postuninstall_cmds
14913
14914# Create an old-style archive from a shared archive.
14915old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14916
14917# Create a temporary old-style archive to link instead of a shared archive.
14918old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14919
14920# Commands used to build and install a shared archive.
14921archive_cmds=$lt_archive_cmds
14922archive_expsym_cmds=$lt_archive_expsym_cmds
14923postinstall_cmds=$lt_postinstall_cmds
14924postuninstall_cmds=$lt_postuninstall_cmds
14925
John Criswell47fdd832003-07-14 16:52:07 +000014926# Commands used to build a loadable module (assumed same as above if empty)
14927module_cmds=$lt_module_cmds
14928module_expsym_cmds=$lt_module_expsym_cmds
14929
John Criswell7a73b802003-06-30 21:59:07 +000014930# Commands to strip libraries.
14931old_striplib=$lt_old_striplib
14932striplib=$lt_striplib
14933
John Criswell47fdd832003-07-14 16:52:07 +000014934# Dependencies to place before the objects being linked to create a
14935# shared library.
14936predep_objects=$lt_predep_objects
14937
14938# Dependencies to place after the objects being linked to create a
14939# shared library.
14940postdep_objects=$lt_postdep_objects
14941
14942# Dependencies to place before the objects being linked to create a
14943# shared library.
14944predeps=$lt_predeps
14945
14946# Dependencies to place after the objects being linked to create a
14947# shared library.
14948postdeps=$lt_postdeps
14949
14950# The library search path used internally by the compiler when linking
14951# a shared library.
14952compiler_lib_search_path=$lt_compiler_lib_search_path
14953
John Criswell7a73b802003-06-30 21:59:07 +000014954# Method to check whether dependent libraries are shared objects.
14955deplibs_check_method=$lt_deplibs_check_method
14956
14957# Command to use when deplibs_check_method == file_magic.
14958file_magic_cmd=$lt_file_magic_cmd
14959
14960# Flag that allows shared libraries with undefined symbols to be built.
14961allow_undefined_flag=$lt_allow_undefined_flag
14962
14963# Flag that forces no undefined symbols.
14964no_undefined_flag=$lt_no_undefined_flag
14965
14966# Commands used to finish a libtool library installation in a directory.
14967finish_cmds=$lt_finish_cmds
14968
14969# Same as above, but a single script fragment to be evaled but not shown.
14970finish_eval=$lt_finish_eval
14971
14972# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014973global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014974
14975# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014976global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014977
14978# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014979global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014980
14981# This is the shared library runtime path variable.
14982runpath_var=$runpath_var
14983
14984# This is the shared library path variable.
14985shlibpath_var=$shlibpath_var
14986
14987# Is shlibpath searched before the hard-coded library search path?
14988shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14989
14990# How to hardcode a shared library path into an executable.
14991hardcode_action=$hardcode_action
14992
14993# Whether we should hardcode library paths into libraries.
14994hardcode_into_libs=$hardcode_into_libs
14995
14996# Flag to hardcode \$libdir into a binary during linking.
14997# This must work even if \$libdir does not exist.
14998hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14999
John Criswell47fdd832003-07-14 16:52:07 +000015000# If ld is used when linking, flag to hardcode \$libdir into
15001# a binary during linking. This must work even if \$libdir does
15002# not exist.
15003hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15004
John Criswell7a73b802003-06-30 21:59:07 +000015005# Whether we need a single -rpath flag with a separated argument.
15006hardcode_libdir_separator=$lt_hardcode_libdir_separator
15007
John Criswell47fdd832003-07-14 16:52:07 +000015008# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015009# resulting binary.
15010hardcode_direct=$hardcode_direct
15011
15012# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15013# resulting binary.
15014hardcode_minus_L=$hardcode_minus_L
15015
15016# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15017# the resulting binary.
15018hardcode_shlibpath_var=$hardcode_shlibpath_var
15019
John Criswell47fdd832003-07-14 16:52:07 +000015020# Set to yes if building a shared library automatically hardcodes DIR into the library
15021# and all subsequent libraries and executables linked against it.
15022hardcode_automatic=$hardcode_automatic
15023
John Criswell7a73b802003-06-30 21:59:07 +000015024# Variables whose values should be saved in libtool wrapper scripts and
15025# restored at relink time.
15026variables_saved_for_relink="$variables_saved_for_relink"
15027
15028# Whether libtool must link a program against all its dependency libraries.
15029link_all_deplibs=$link_all_deplibs
15030
15031# Compile-time system search path for libraries
15032sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15033
15034# Run-time system search path for libraries
15035sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15036
15037# Fix the shell variable \$srcfile for the compiler.
15038fix_srcfile_path="$fix_srcfile_path"
15039
15040# Set to yes if exported symbols are required.
15041always_export_symbols=$always_export_symbols
15042
15043# The commands to list exported symbols.
15044export_symbols_cmds=$lt_export_symbols_cmds
15045
15046# The commands to extract the exported symbol list from a shared archive.
15047extract_expsyms_cmds=$lt_extract_expsyms_cmds
15048
15049# Symbols that should not be listed in the preloaded symbols.
15050exclude_expsyms=$lt_exclude_expsyms
15051
15052# Symbols that must always be exported.
15053include_expsyms=$lt_include_expsyms
15054
15055# ### END LIBTOOL CONFIG
15056
15057__EOF__
15058
John Criswell47fdd832003-07-14 16:52:07 +000015059
John Criswell7a73b802003-06-30 21:59:07 +000015060 case $host_os in
15061 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015062 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015063
15064# AIX sometimes has problems with the GCC collect2 program. For some
15065# reason, if we set the COLLECT_NAMES environment variable, the problems
15066# vanish in a puff of smoke.
15067if test "X${COLLECT_NAMES+set}" != Xset; then
15068 COLLECT_NAMES=
15069 export COLLECT_NAMES
15070fi
15071EOF
15072 ;;
15073 esac
15074
John Criswell7a73b802003-06-30 21:59:07 +000015075 # We use sed instead of cat because bash on DJGPP gets confused if
15076 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15077 # text mode, it properly converts lines to CR/LF. This bash problem
15078 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015079 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015080
John Criswell47fdd832003-07-14 16:52:07 +000015081 mv -f "$cfgfile" "$ofile" || \
15082 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015083 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015084
15085else
15086 # If there is no Makefile yet, we rely on a make rule to execute
15087 # `config.status --recheck' to rerun these tests and create the
15088 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015089 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15090 if test -f "$ltmain_in"; then
15091 test -f Makefile && make "$ltmain"
15092 fi
John Criswell7a73b802003-06-30 21:59:07 +000015093fi
John Criswell7a73b802003-06-30 21:59:07 +000015094
15095
John Criswell47fdd832003-07-14 16:52:07 +000015096ac_ext=c
15097ac_cpp='$CPP $CPPFLAGS'
15098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15100ac_compiler_gnu=$ac_cv_c_compiler_gnu
15101
15102CC="$lt_save_CC"
15103
15104
15105# Check whether --with-tags or --without-tags was given.
15106if test "${with_tags+set}" = set; then
15107 withval="$with_tags"
15108 tagnames="$withval"
15109fi;
15110
15111if test -f "$ltmain" && test -n "$tagnames"; then
15112 if test ! -f "${ofile}"; then
15113 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15114echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15115 fi
15116
15117 if test -z "$LTCC"; then
15118 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15119 if test -z "$LTCC"; then
15120 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15121echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15122 else
15123 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15124echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15125 fi
15126 fi
15127
15128 # Extract list of available tagged configurations in $ofile.
15129 # Note that this assumes the entire list is on one line.
15130 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15131
15132 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15133 for tagname in $tagnames; do
15134 IFS="$lt_save_ifs"
15135 # Check whether tagname contains only valid characters
15136 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15137 "") ;;
15138 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15139echo "$as_me: error: invalid tag name: $tagname" >&2;}
15140 { (exit 1); exit 1; }; }
15141 ;;
15142 esac
15143
15144 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15145 then
15146 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15147echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15148 { (exit 1); exit 1; }; }
15149 fi
15150
15151 # Update the list of available tags.
15152 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015153 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015154
15155 case $tagname in
15156 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015157 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15158 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15159 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015160 ac_ext=cc
15161ac_cpp='$CXXCPP $CPPFLAGS'
15162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15165
15166
15167
15168
15169archive_cmds_need_lc_CXX=no
15170allow_undefined_flag_CXX=
15171always_export_symbols_CXX=no
15172archive_expsym_cmds_CXX=
15173export_dynamic_flag_spec_CXX=
15174hardcode_direct_CXX=no
15175hardcode_libdir_flag_spec_CXX=
15176hardcode_libdir_flag_spec_ld_CXX=
15177hardcode_libdir_separator_CXX=
15178hardcode_minus_L_CXX=no
15179hardcode_automatic_CXX=no
15180module_cmds_CXX=
15181module_expsym_cmds_CXX=
15182link_all_deplibs_CXX=unknown
15183old_archive_cmds_CXX=$old_archive_cmds
15184no_undefined_flag_CXX=
15185whole_archive_flag_spec_CXX=
15186enable_shared_with_static_runtimes_CXX=no
15187
15188# Dependencies to place before and after the object being linked:
15189predep_objects_CXX=
15190postdep_objects_CXX=
15191predeps_CXX=
15192postdeps_CXX=
15193compiler_lib_search_path_CXX=
15194
15195# Source file extension for C++ test sources.
15196ac_ext=cc
15197
15198# Object file extension for compiled C++ test sources.
15199objext=o
15200objext_CXX=$objext
15201
15202# Code to be used in simple compile tests
15203lt_simple_compile_test_code="int some_variable = 0;\n"
15204
15205# Code to be used in simple link tests
15206lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15207
15208# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15209
15210# If no C compiler was specified, use CC.
15211LTCC=${LTCC-"$CC"}
15212
15213# Allow CC to be a program name with arguments.
15214compiler=$CC
15215
15216
15217# Allow CC to be a program name with arguments.
15218lt_save_CC=$CC
15219lt_save_LD=$LD
15220lt_save_GCC=$GCC
15221GCC=$GXX
15222lt_save_with_gnu_ld=$with_gnu_ld
15223lt_save_path_LD=$lt_cv_path_LD
15224if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15225 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15226else
15227 unset lt_cv_prog_gnu_ld
15228fi
15229if test -n "${lt_cv_path_LDCXX+set}"; then
15230 lt_cv_path_LD=$lt_cv_path_LDCXX
15231else
15232 unset lt_cv_path_LD
15233fi
15234test -z "${LDCXX+set}" || LD=$LDCXX
15235CC=${CXX-"c++"}
15236compiler=$CC
15237compiler_CXX=$CC
15238cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15239
15240# We don't want -fno-exception wen compiling C++ code, so set the
15241# no_builtin_flag separately
15242if test "$GXX" = yes; then
15243 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15244else
15245 lt_prog_compiler_no_builtin_flag_CXX=
15246fi
15247
15248if test "$GXX" = yes; then
15249 # Set up default GNU C++ configuration
15250
15251
15252# Check whether --with-gnu-ld or --without-gnu-ld was given.
15253if test "${with_gnu_ld+set}" = set; then
15254 withval="$with_gnu_ld"
15255 test "$withval" = no || with_gnu_ld=yes
15256else
15257 with_gnu_ld=no
15258fi;
15259ac_prog=ld
15260if test "$GCC" = yes; then
15261 # Check if gcc -print-prog-name=ld gives a path.
15262 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15263echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15264 case $host in
15265 *-*-mingw*)
15266 # gcc leaves a trailing carriage return which upsets mingw
15267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15268 *)
15269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15270 esac
15271 case $ac_prog in
15272 # Accept absolute paths.
15273 [\\/]* | ?:[\\/]*)
15274 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015275 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015276 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15277 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15278 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15279 done
15280 test -z "$LD" && LD="$ac_prog"
15281 ;;
15282 "")
15283 # If it fails, then pretend we aren't using GCC.
15284 ac_prog=ld
15285 ;;
15286 *)
15287 # If it is relative, then search for the first ld in PATH.
15288 with_gnu_ld=unknown
15289 ;;
15290 esac
15291elif test "$with_gnu_ld" = yes; then
15292 echo "$as_me:$LINENO: checking for GNU ld" >&5
15293echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15294else
15295 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15296echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15297fi
15298if test "${lt_cv_path_LD+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300else
15301 if test -z "$LD"; then
15302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15303 for ac_dir in $PATH; do
15304 IFS="$lt_save_ifs"
15305 test -z "$ac_dir" && ac_dir=.
15306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15307 lt_cv_path_LD="$ac_dir/$ac_prog"
15308 # Check to see if the program is GNU ld. I'd rather use --version,
15309 # but apparently some GNU ld's only accept -v.
15310 # Break only if it was the GNU/non-GNU ld that we prefer.
15311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15312 *GNU* | *'with BFD'*)
15313 test "$with_gnu_ld" != no && break
15314 ;;
15315 *)
15316 test "$with_gnu_ld" != yes && break
15317 ;;
15318 esac
15319 fi
15320 done
15321 IFS="$lt_save_ifs"
15322else
15323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15324fi
15325fi
15326
15327LD="$lt_cv_path_LD"
15328if test -n "$LD"; then
15329 echo "$as_me:$LINENO: result: $LD" >&5
15330echo "${ECHO_T}$LD" >&6
15331else
15332 echo "$as_me:$LINENO: result: no" >&5
15333echo "${ECHO_T}no" >&6
15334fi
15335test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15336echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15337 { (exit 1); exit 1; }; }
15338echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15339echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15340if test "${lt_cv_prog_gnu_ld+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
15343 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015344case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015345*GNU* | *'with BFD'*)
15346 lt_cv_prog_gnu_ld=yes
15347 ;;
15348*)
15349 lt_cv_prog_gnu_ld=no
15350 ;;
15351esac
15352fi
15353echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15354echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15355with_gnu_ld=$lt_cv_prog_gnu_ld
15356
15357
15358
15359 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15360 # archiving commands below assume that GNU ld is being used.
15361 if test "$with_gnu_ld" = yes; then
15362 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15363 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'
15364
15365 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15367
15368 # If archive_cmds runs LD, not CC, wlarc should be empty
15369 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15370 # investigate it a little bit more. (MM)
15371 wlarc='${wl}'
15372
15373 # ancient GNU ld didn't support --whole-archive et. al.
15374 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15375 grep 'no-whole-archive' > /dev/null; then
15376 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15377 else
15378 whole_archive_flag_spec_CXX=
15379 fi
15380 else
15381 with_gnu_ld=no
15382 wlarc=
15383
15384 # A generic and very simple default shared library creation
15385 # command for GNU C++ for the case where it uses the native
15386 # linker, instead of GNU ld. If possible, this setting should
15387 # overridden to take advantage of the native linker features on
15388 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015389 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015390 fi
15391
15392 # Commands to make compiler produce verbose output that lists
15393 # what "hidden" libraries, object files and flags are used when
15394 # linking a shared library.
15395 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15396
15397else
15398 GXX=no
15399 with_gnu_ld=no
15400 wlarc=
15401fi
15402
15403# PORTME: fill in a description of your system's C++ link characteristics
15404echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15405echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15406ld_shlibs_CXX=yes
15407case $host_os in
15408 aix3*)
15409 # FIXME: insert proper C++ library support
15410 ld_shlibs_CXX=no
15411 ;;
15412 aix4* | aix5*)
15413 if test "$host_cpu" = ia64; then
15414 # On IA64, the linker does run time linking by default, so we don't
15415 # have to do anything special.
15416 aix_use_runtimelinking=no
15417 exp_sym_flag='-Bexport'
15418 no_entry_flag=""
15419 else
15420 aix_use_runtimelinking=no
15421
15422 # Test if we are trying to use run time linking or normal
15423 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15424 # need to do runtime linking.
15425 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15426 for ld_flag in $LDFLAGS; do
15427 case $ld_flag in
15428 *-brtl*)
15429 aix_use_runtimelinking=yes
15430 break
15431 ;;
15432 esac
15433 done
15434 esac
15435
15436 exp_sym_flag='-bexport'
15437 no_entry_flag='-bnoentry'
15438 fi
15439
15440 # When large executables or shared objects are built, AIX ld can
15441 # have problems creating the table of contents. If linking a library
15442 # or program results in "error TOC overflow" add -mminimal-toc to
15443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15445
15446 archive_cmds_CXX=''
15447 hardcode_direct_CXX=yes
15448 hardcode_libdir_separator_CXX=':'
15449 link_all_deplibs_CXX=yes
15450
15451 if test "$GXX" = yes; then
15452 case $host_os in aix4.012|aix4.012.*)
15453 # We only want to do this on AIX 4.2 and lower, the check
15454 # below for broken collect2 doesn't work under 4.3+
15455 collect2name=`${CC} -print-prog-name=collect2`
15456 if test -f "$collect2name" && \
15457 strings "$collect2name" | grep resolve_lib_name >/dev/null
15458 then
15459 # We have reworked collect2
15460 hardcode_direct_CXX=yes
15461 else
15462 # We have old collect2
15463 hardcode_direct_CXX=unsupported
15464 # It fails to find uninstalled libraries when the uninstalled
15465 # path is not listed in the libpath. Setting hardcode_minus_L
15466 # to unsupported forces relinking
15467 hardcode_minus_L_CXX=yes
15468 hardcode_libdir_flag_spec_CXX='-L$libdir'
15469 hardcode_libdir_separator_CXX=
15470 fi
15471 esac
15472 shared_flag='-shared'
15473 else
15474 # not using gcc
15475 if test "$host_cpu" = ia64; then
15476 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15477 # chokes on -Wl,-G. The following line is correct:
15478 shared_flag='-G'
15479 else
15480 if test "$aix_use_runtimelinking" = yes; then
15481 shared_flag='${wl}-G'
15482 else
15483 shared_flag='${wl}-bM:SRE'
15484 fi
15485 fi
15486 fi
15487
15488 # It seems that -bexpall does not export symbols beginning with
15489 # underscore (_), so it is better to generate a list of symbols to export.
15490 always_export_symbols_CXX=yes
15491 if test "$aix_use_runtimelinking" = yes; then
15492 # Warning - without using the other runtime loading flags (-brtl),
15493 # -berok will link without error, but may produce a broken library.
15494 allow_undefined_flag_CXX='-berok'
15495 # Determine the default libpath from the value encoded in an empty executable.
15496 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015497/* confdefs.h. */
15498_ACEOF
15499cat confdefs.h >>conftest.$ac_ext
15500cat >>conftest.$ac_ext <<_ACEOF
15501/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015502
John Criswell47fdd832003-07-14 16:52:07 +000015503int
15504main ()
15505{
15506
15507 ;
15508 return 0;
15509}
15510_ACEOF
15511rm -f conftest.$ac_objext conftest$ac_exeext
15512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015513 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015520 { ac_try='test -z "$ac_cxx_werror_flag"
15521 || test ! -s conftest.err'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533
15534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15535}'`
15536# Check for a 64-bit object if we didn't find anything.
15537if 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; }
15538}'`; fi
15539else
15540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015541sed 's/^/| /' conftest.$ac_ext >&5
15542
John Criswell47fdd832003-07-14 16:52:07 +000015543fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015544rm -f conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015546if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15547
15548 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15549
15550 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"
15551 else
15552 if test "$host_cpu" = ia64; then
15553 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15554 allow_undefined_flag_CXX="-z nodefs"
15555 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"
15556 else
15557 # Determine the default libpath from the value encoded in an empty executable.
15558 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015564
John Criswell47fdd832003-07-14 16:52:07 +000015565int
15566main ()
15567{
15568
15569 ;
15570 return 0;
15571}
15572_ACEOF
15573rm -f conftest.$ac_objext conftest$ac_exeext
15574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015575 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015582 { ac_try='test -z "$ac_cxx_werror_flag"
15583 || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595
15596aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15597}'`
15598# Check for a 64-bit object if we didn't find anything.
15599if 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; }
15600}'`; fi
15601else
15602 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015603sed 's/^/| /' conftest.$ac_ext >&5
15604
John Criswell47fdd832003-07-14 16:52:07 +000015605fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015606rm -f conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015608if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15609
15610 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15611 # Warning - without using the other run time loading flags,
15612 # -berok will link without error, but may produce a broken library.
15613 no_undefined_flag_CXX=' ${wl}-bernotok'
15614 allow_undefined_flag_CXX=' ${wl}-berok'
15615 # -bexpall does not export symbols beginning with underscore (_)
15616 always_export_symbols_CXX=yes
15617 # Exported symbols can be pulled into shared objects from archives
15618 whole_archive_flag_spec_CXX=' '
15619 archive_cmds_need_lc_CXX=yes
15620 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015621 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 +000015622 fi
15623 fi
15624 ;;
15625 chorus*)
15626 case $cc_basename in
15627 *)
15628 # FIXME: insert proper C++ library support
15629 ld_shlibs_CXX=no
15630 ;;
15631 esac
15632 ;;
15633
Reid Spencer2706f8c2004-09-19 23:53:36 +000015634
John Criswell47fdd832003-07-14 16:52:07 +000015635 cygwin* | mingw* | pw32*)
15636 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15637 # as there is no search path for DLLs.
15638 hardcode_libdir_flag_spec_CXX='-L$libdir'
15639 allow_undefined_flag_CXX=unsupported
15640 always_export_symbols_CXX=no
15641 enable_shared_with_static_runtimes_CXX=yes
15642
15643 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15644 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'
15645 # If the export-symbols file already is a .def file (1st line
15646 # is EXPORTS), use it as is; otherwise, prepend...
15647 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15648 cp $export_symbols $output_objdir/$soname.def;
15649 else
15650 echo EXPORTS > $output_objdir/$soname.def;
15651 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015652 fi~
15653 $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 +000015654 else
15655 ld_shlibs_CXX=no
15656 fi
15657 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015658 darwin* | rhapsody*)
15659 case "$host_os" in
15660 rhapsody* | darwin1.[012])
15661 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15662 ;;
15663 *) # Darwin 1.3 on
15664 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15665 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15666 else
15667 case ${MACOSX_DEPLOYMENT_TARGET} in
15668 10.[012])
15669 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15670 ;;
15671 10.*)
15672 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15673 ;;
15674 esac
15675 fi
15676 ;;
15677 esac
15678 archive_cmds_need_lc_CXX=no
15679 hardcode_direct_CXX=no
15680 hardcode_automatic_CXX=yes
15681 hardcode_shlibpath_var_CXX=unsupported
15682 whole_archive_flag_spec_CXX=''
15683 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015684
Reid Spencer2706f8c2004-09-19 23:53:36 +000015685 if test "$GXX" = yes ; then
15686 lt_int_apple_cc_single_mod=no
15687 output_verbose_link_cmd='echo'
15688 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15689 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015690 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015691 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015692 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 +000015693 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015694 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 +000015695 fi
15696 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15698 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015699 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 +000015700 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015701 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 +000015702 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015703 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 +000015704 else
15705 case "$cc_basename" in
15706 xlc*)
15707 output_verbose_link_cmd='echo'
15708 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'
15709 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15710 # 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 +000015711 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}'
15712 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 +000015713 ;;
15714 *)
15715 ld_shlibs_CXX=no
15716 ;;
15717 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015718 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015719 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015720
15721 dgux*)
15722 case $cc_basename in
15723 ec++)
15724 # FIXME: insert proper C++ library support
15725 ld_shlibs_CXX=no
15726 ;;
15727 ghcx)
15728 # Green Hills C++ Compiler
15729 # FIXME: insert proper C++ library support
15730 ld_shlibs_CXX=no
15731 ;;
15732 *)
15733 # FIXME: insert proper C++ library support
15734 ld_shlibs_CXX=no
15735 ;;
15736 esac
15737 ;;
15738 freebsd12*)
15739 # C++ shared libraries reported to be fairly broken before switch to ELF
15740 ld_shlibs_CXX=no
15741 ;;
15742 freebsd-elf*)
15743 archive_cmds_need_lc_CXX=no
15744 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015745 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015746 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15747 # conventions
15748 ld_shlibs_CXX=yes
15749 ;;
15750 gnu*)
15751 ;;
15752 hpux9*)
15753 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15754 hardcode_libdir_separator_CXX=:
15755 export_dynamic_flag_spec_CXX='${wl}-E'
15756 hardcode_direct_CXX=yes
15757 hardcode_minus_L_CXX=yes # Not in the search PATH,
15758 # but as the default
15759 # location of the library.
15760
15761 case $cc_basename in
15762 CC)
15763 # FIXME: insert proper C++ library support
15764 ld_shlibs_CXX=no
15765 ;;
15766 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015767 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 +000015768 # Commands to make compiler produce verbose output that lists
15769 # what "hidden" libraries, object files and flags are used when
15770 # linking a shared library.
15771 #
15772 # There doesn't appear to be a way to prevent this compiler from
15773 # explicitly linking system object files so we need to strip them
15774 # from the output so that they don't get included in the library
15775 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015776 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 +000015777 ;;
15778 *)
15779 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015780 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 +000015781 else
15782 # FIXME: insert proper C++ library support
15783 ld_shlibs_CXX=no
15784 fi
15785 ;;
15786 esac
15787 ;;
15788 hpux10*|hpux11*)
15789 if test $with_gnu_ld = no; then
15790 case "$host_cpu" in
15791 hppa*64*)
15792 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15793 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15794 hardcode_libdir_separator_CXX=:
15795 ;;
15796 ia64*)
15797 hardcode_libdir_flag_spec_CXX='-L$libdir'
15798 ;;
15799 *)
15800 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15801 hardcode_libdir_separator_CXX=:
15802 export_dynamic_flag_spec_CXX='${wl}-E'
15803 ;;
15804 esac
15805 fi
15806 case "$host_cpu" in
15807 hppa*64*)
15808 hardcode_direct_CXX=no
15809 hardcode_shlibpath_var_CXX=no
15810 ;;
15811 ia64*)
15812 hardcode_direct_CXX=no
15813 hardcode_shlibpath_var_CXX=no
15814 hardcode_minus_L_CXX=yes # Not in the search PATH,
15815 # but as the default
15816 # location of the library.
15817 ;;
15818 *)
15819 hardcode_direct_CXX=yes
15820 hardcode_minus_L_CXX=yes # Not in the search PATH,
15821 # but as the default
15822 # location of the library.
15823 ;;
15824 esac
15825
15826 case $cc_basename in
15827 CC)
15828 # FIXME: insert proper C++ library support
15829 ld_shlibs_CXX=no
15830 ;;
15831 aCC)
15832 case "$host_cpu" in
15833 hppa*64*|ia64*)
15834 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15835 ;;
15836 *)
15837 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15838 ;;
15839 esac
15840 # Commands to make compiler produce verbose output that lists
15841 # what "hidden" libraries, object files and flags are used when
15842 # linking a shared library.
15843 #
15844 # There doesn't appear to be a way to prevent this compiler from
15845 # explicitly linking system object files so we need to strip them
15846 # from the output so that they don't get included in the library
15847 # dependencies.
15848 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'
15849 ;;
15850 *)
15851 if test "$GXX" = yes; then
15852 if test $with_gnu_ld = no; then
15853 case "$host_cpu" in
15854 ia64*|hppa*64*)
15855 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15856 ;;
15857 *)
15858 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'
15859 ;;
15860 esac
15861 fi
15862 else
15863 # FIXME: insert proper C++ library support
15864 ld_shlibs_CXX=no
15865 fi
15866 ;;
15867 esac
15868 ;;
15869 irix5* | irix6*)
15870 case $cc_basename in
15871 CC)
15872 # SGI C++
15873 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'
15874
15875 # Archives containing C++ object files must be created using
15876 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15877 # necessary to make sure instantiated templates are included
15878 # in the archive.
15879 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15880 ;;
15881 *)
15882 if test "$GXX" = yes; then
15883 if test "$with_gnu_ld" = no; then
15884 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'
15885 else
15886 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'
15887 fi
15888 fi
15889 link_all_deplibs_CXX=yes
15890 ;;
15891 esac
15892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15893 hardcode_libdir_separator_CXX=:
15894 ;;
15895 linux*)
15896 case $cc_basename in
15897 KCC)
15898 # Kuck and Associates, Inc. (KAI) C++ Compiler
15899
15900 # KCC will only create a shared library if the output file
15901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15902 # to its proper name (with version) after linking.
15903 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'
15904 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'
15905 # Commands to make compiler produce verbose output that lists
15906 # what "hidden" libraries, object files and flags are used when
15907 # linking a shared library.
15908 #
15909 # There doesn't appear to be a way to prevent this compiler from
15910 # explicitly linking system object files so we need to strip them
15911 # from the output so that they don't get included in the library
15912 # dependencies.
15913 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'
15914
15915 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15917
15918 # Archives containing C++ object files must be created using
15919 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15920 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15921 ;;
15922 icpc)
15923 # Intel C++
15924 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015925 # version 8.0 and above of icpc choke on multiply defined symbols
15926 # if we add $predep_objects and $postdep_objects, however 7.1 and
15927 # earlier do not add the objects themselves.
15928 case `$CC -V 2>&1` in
15929 *"Version 7."*)
15930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15931 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'
15932 ;;
15933 *) # Version 8.0 or newer
15934 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15935 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15936 ;;
15937 esac
John Criswell47fdd832003-07-14 16:52:07 +000015938 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15940 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15941 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15942 ;;
15943 cxx)
15944 # Compaq C++
15945 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946 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'
15947
15948 runpath_var=LD_RUN_PATH
15949 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15950 hardcode_libdir_separator_CXX=:
15951
15952 # Commands to make compiler produce verbose output that lists
15953 # what "hidden" libraries, object files and flags are used when
15954 # linking a shared library.
15955 #
15956 # There doesn't appear to be a way to prevent this compiler from
15957 # explicitly linking system object files so we need to strip them
15958 # from the output so that they don't get included in the library
15959 # dependencies.
15960 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'
15961 ;;
15962 esac
15963 ;;
15964 lynxos*)
15965 # FIXME: insert proper C++ library support
15966 ld_shlibs_CXX=no
15967 ;;
15968 m88k*)
15969 # FIXME: insert proper C++ library support
15970 ld_shlibs_CXX=no
15971 ;;
15972 mvs*)
15973 case $cc_basename in
15974 cxx)
15975 # FIXME: insert proper C++ library support
15976 ld_shlibs_CXX=no
15977 ;;
15978 *)
15979 # FIXME: insert proper C++ library support
15980 ld_shlibs_CXX=no
15981 ;;
15982 esac
15983 ;;
15984 netbsd*)
15985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15986 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15987 wlarc=
15988 hardcode_libdir_flag_spec_CXX='-R$libdir'
15989 hardcode_direct_CXX=yes
15990 hardcode_shlibpath_var_CXX=no
15991 fi
15992 # Workaround some broken pre-1.5 toolchains
15993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15994 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015995 openbsd2*)
15996 # C++ shared libraries are fairly broken
15997 ld_shlibs_CXX=no
15998 ;;
15999 openbsd*)
16000 hardcode_direct_CXX=yes
16001 hardcode_shlibpath_var_CXX=no
16002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16005 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16006 export_dynamic_flag_spec_CXX='${wl}-E'
16007 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16008 fi
16009 output_verbose_link_cmd='echo'
16010 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016011 osf3*)
16012 case $cc_basename in
16013 KCC)
16014 # Kuck and Associates, Inc. (KAI) C++ Compiler
16015
16016 # KCC will only create a shared library if the output file
16017 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16018 # to its proper name (with version) after linking.
16019 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'
16020
16021 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16022 hardcode_libdir_separator_CXX=:
16023
16024 # Archives containing C++ object files must be created using
16025 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16026 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16027
16028 ;;
16029 RCC)
16030 # Rational C++ 2.4.1
16031 # FIXME: insert proper C++ library support
16032 ld_shlibs_CXX=no
16033 ;;
16034 cxx)
16035 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16036 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'
16037
16038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16039 hardcode_libdir_separator_CXX=:
16040
16041 # Commands to make compiler produce verbose output that lists
16042 # what "hidden" libraries, object files and flags are used when
16043 # linking a shared library.
16044 #
16045 # There doesn't appear to be a way to prevent this compiler from
16046 # explicitly linking system object files so we need to strip them
16047 # from the output so that they don't get included in the library
16048 # dependencies.
16049 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'
16050 ;;
16051 *)
16052 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16053 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16054 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'
16055
16056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16057 hardcode_libdir_separator_CXX=:
16058
16059 # Commands to make compiler produce verbose output that lists
16060 # what "hidden" libraries, object files and flags are used when
16061 # linking a shared library.
16062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16063
16064 else
16065 # FIXME: insert proper C++ library support
16066 ld_shlibs_CXX=no
16067 fi
16068 ;;
16069 esac
16070 ;;
16071 osf4* | osf5*)
16072 case $cc_basename in
16073 KCC)
16074 # Kuck and Associates, Inc. (KAI) C++ Compiler
16075
16076 # KCC will only create a shared library if the output file
16077 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16078 # to its proper name (with version) after linking.
16079 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'
16080
16081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16082 hardcode_libdir_separator_CXX=:
16083
16084 # Archives containing C++ object files must be created using
16085 # the KAI C++ compiler.
16086 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16087 ;;
16088 RCC)
16089 # Rational C++ 2.4.1
16090 # FIXME: insert proper C++ library support
16091 ld_shlibs_CXX=no
16092 ;;
16093 cxx)
16094 allow_undefined_flag_CXX=' -expect_unresolved \*'
16095 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 +000016096 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16097 echo "-hidden">> $lib.exp~
16098 $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~
16099 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016100
16101 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16102 hardcode_libdir_separator_CXX=:
16103
16104 # Commands to make compiler produce verbose output that lists
16105 # what "hidden" libraries, object files and flags are used when
16106 # linking a shared library.
16107 #
16108 # There doesn't appear to be a way to prevent this compiler from
16109 # explicitly linking system object files so we need to strip them
16110 # from the output so that they don't get included in the library
16111 # dependencies.
16112 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'
16113 ;;
16114 *)
16115 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16116 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16117 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'
16118
16119 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16120 hardcode_libdir_separator_CXX=:
16121
16122 # Commands to make compiler produce verbose output that lists
16123 # what "hidden" libraries, object files and flags are used when
16124 # linking a shared library.
16125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16126
16127 else
16128 # FIXME: insert proper C++ library support
16129 ld_shlibs_CXX=no
16130 fi
16131 ;;
16132 esac
16133 ;;
16134 psos*)
16135 # FIXME: insert proper C++ library support
16136 ld_shlibs_CXX=no
16137 ;;
16138 sco*)
16139 archive_cmds_need_lc_CXX=no
16140 case $cc_basename in
16141 CC)
16142 # FIXME: insert proper C++ library support
16143 ld_shlibs_CXX=no
16144 ;;
16145 *)
16146 # FIXME: insert proper C++ library support
16147 ld_shlibs_CXX=no
16148 ;;
16149 esac
16150 ;;
16151 sunos4*)
16152 case $cc_basename in
16153 CC)
16154 # Sun C++ 4.x
16155 # FIXME: insert proper C++ library support
16156 ld_shlibs_CXX=no
16157 ;;
16158 lcc)
16159 # Lucid
16160 # FIXME: insert proper C++ library support
16161 ld_shlibs_CXX=no
16162 ;;
16163 *)
16164 # FIXME: insert proper C++ library support
16165 ld_shlibs_CXX=no
16166 ;;
16167 esac
16168 ;;
16169 solaris*)
16170 case $cc_basename in
16171 CC)
16172 # Sun C++ 4.2, 5.x and Centerline C++
16173 no_undefined_flag_CXX=' -zdefs'
16174 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 +000016175 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16176 $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 +000016177
16178 hardcode_libdir_flag_spec_CXX='-R$libdir'
16179 hardcode_shlibpath_var_CXX=no
16180 case $host_os in
16181 solaris2.0-5 | solaris2.0-5.*) ;;
16182 *)
16183 # The C++ compiler is used as linker so we must use $wl
16184 # flag to pass the commands to the underlying system
16185 # linker.
16186 # Supported since Solaris 2.6 (maybe 2.5.1?)
16187 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16188 ;;
16189 esac
16190 link_all_deplibs_CXX=yes
16191
16192 # Commands to make compiler produce verbose output that lists
16193 # what "hidden" libraries, object files and flags are used when
16194 # linking a shared library.
16195 #
16196 # There doesn't appear to be a way to prevent this compiler from
16197 # explicitly linking system object files so we need to strip them
16198 # from the output so that they don't get included in the library
16199 # dependencies.
16200 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'
16201
16202 # Archives containing C++ object files must be created using
16203 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16204 # necessary to make sure instantiated templates are included
16205 # in the archive.
16206 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16207 ;;
16208 gcx)
16209 # Green Hills C++ Compiler
16210 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16211
16212 # The C++ compiler must be used to create the archive.
16213 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16214 ;;
16215 *)
16216 # GNU C++ compiler with Solaris linker
16217 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16218 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16219 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016220 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 +000016221 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16222 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16223
John Criswell47fdd832003-07-14 16:52:07 +000016224 # Commands to make compiler produce verbose output that lists
16225 # what "hidden" libraries, object files and flags are used when
16226 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016227 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016228 else
16229 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16230 # platform.
16231 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 +000016232 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16233 $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 +000016234
16235 # Commands to make compiler produce verbose output that lists
16236 # what "hidden" libraries, object files and flags are used when
16237 # linking a shared library.
16238 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16239 fi
16240
16241 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16242 fi
16243 ;;
16244 esac
16245 ;;
16246 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16247 archive_cmds_need_lc_CXX=no
16248 ;;
16249 tandem*)
16250 case $cc_basename in
16251 NCC)
16252 # NonStop-UX NCC 3.20
16253 # FIXME: insert proper C++ library support
16254 ld_shlibs_CXX=no
16255 ;;
16256 *)
16257 # FIXME: insert proper C++ library support
16258 ld_shlibs_CXX=no
16259 ;;
16260 esac
16261 ;;
16262 vxworks*)
16263 # FIXME: insert proper C++ library support
16264 ld_shlibs_CXX=no
16265 ;;
16266 *)
16267 # FIXME: insert proper C++ library support
16268 ld_shlibs_CXX=no
16269 ;;
16270esac
16271echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16272echo "${ECHO_T}$ld_shlibs_CXX" >&6
16273test "$ld_shlibs_CXX" = no && can_build_shared=no
16274
16275GCC_CXX="$GXX"
16276LD_CXX="$LD"
16277
John Criswell47fdd832003-07-14 16:52:07 +000016278
16279cat > conftest.$ac_ext <<EOF
16280class Foo
16281{
16282public:
16283 Foo (void) { a = 0; }
16284private:
16285 int a;
16286};
16287EOF
16288
16289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; then
16294 # Parse the compiler output and extract the necessary
16295 # objects, libraries and library flags.
16296
16297 # Sentinel used to keep track of whether or not we are before
16298 # the conftest object file.
16299 pre_test_object_deps_done=no
16300
16301 # The `*' in the case matches for architectures that use `case' in
16302 # $output_verbose_cmd can trigger glob expansion during the loop
16303 # eval without this substitution.
16304 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16305
16306 for p in `eval $output_verbose_link_cmd`; do
16307 case $p in
16308
16309 -L* | -R* | -l*)
16310 # Some compilers place space between "-{L,R}" and the path.
16311 # Remove the space.
16312 if test $p = "-L" \
16313 || test $p = "-R"; then
16314 prev=$p
16315 continue
16316 else
16317 prev=
16318 fi
16319
16320 if test "$pre_test_object_deps_done" = no; then
16321 case $p in
16322 -L* | -R*)
16323 # Internal compiler library paths should come after those
16324 # provided the user. The postdeps already come after the
16325 # user supplied libs so there is no need to process them.
16326 if test -z "$compiler_lib_search_path_CXX"; then
16327 compiler_lib_search_path_CXX="${prev}${p}"
16328 else
16329 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16330 fi
16331 ;;
16332 # The "-l" case would never come before the object being
16333 # linked, so don't bother handling this case.
16334 esac
16335 else
16336 if test -z "$postdeps_CXX"; then
16337 postdeps_CXX="${prev}${p}"
16338 else
16339 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16340 fi
16341 fi
16342 ;;
16343
16344 *.$objext)
16345 # This assumes that the test object file only shows up
16346 # once in the compiler output.
16347 if test "$p" = "conftest.$objext"; then
16348 pre_test_object_deps_done=yes
16349 continue
16350 fi
16351
16352 if test "$pre_test_object_deps_done" = no; then
16353 if test -z "$predep_objects_CXX"; then
16354 predep_objects_CXX="$p"
16355 else
16356 predep_objects_CXX="$predep_objects_CXX $p"
16357 fi
16358 else
16359 if test -z "$postdep_objects_CXX"; then
16360 postdep_objects_CXX="$p"
16361 else
16362 postdep_objects_CXX="$postdep_objects_CXX $p"
16363 fi
16364 fi
16365 ;;
16366
16367 *) ;; # Ignore the rest.
16368
16369 esac
16370 done
16371
16372 # Clean up.
16373 rm -f a.out a.exe
16374else
16375 echo "libtool.m4: error: problem compiling CXX test program"
16376fi
16377
16378$rm -f confest.$objext
16379
16380case " $postdeps_CXX " in
16381*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16382esac
16383
16384lt_prog_compiler_wl_CXX=
16385lt_prog_compiler_pic_CXX=
16386lt_prog_compiler_static_CXX=
16387
16388echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16389echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16390
16391 # C++ specific cases for pic, static, wl, etc.
16392 if test "$GXX" = yes; then
16393 lt_prog_compiler_wl_CXX='-Wl,'
16394 lt_prog_compiler_static_CXX='-static'
16395
16396 case $host_os in
16397 aix*)
16398 # All AIX code is PIC.
16399 if test "$host_cpu" = ia64; then
16400 # AIX 5 now supports IA64 processor
16401 lt_prog_compiler_static_CXX='-Bstatic'
16402 fi
16403 ;;
16404 amigaos*)
16405 # FIXME: we need at least 68020 code to build shared libraries, but
16406 # adding the `-m68020' flag to GCC prevents building anything better,
16407 # like `-m68040'.
16408 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16409 ;;
16410 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16411 # PIC is the default for these OSes.
16412 ;;
16413 mingw* | os2* | pw32*)
16414 # This hack is so that the source file can tell whether it is being
16415 # built for inclusion in a dll (and should export symbols for example).
16416 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16417 ;;
16418 darwin* | rhapsody*)
16419 # PIC is the default on this platform
16420 # Common symbols not allowed in MH_DYLIB files
16421 lt_prog_compiler_pic_CXX='-fno-common'
16422 ;;
16423 *djgpp*)
16424 # DJGPP does not support shared libraries at all
16425 lt_prog_compiler_pic_CXX=
16426 ;;
16427 sysv4*MP*)
16428 if test -d /usr/nec; then
16429 lt_prog_compiler_pic_CXX=-Kconform_pic
16430 fi
16431 ;;
16432 hpux*)
16433 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16434 # not for PA HP-UX.
16435 case "$host_cpu" in
16436 hppa*64*|ia64*)
16437 ;;
16438 *)
16439 lt_prog_compiler_pic_CXX='-fPIC'
16440 ;;
16441 esac
16442 ;;
16443 *)
16444 lt_prog_compiler_pic_CXX='-fPIC'
16445 ;;
16446 esac
16447 else
16448 case $host_os in
16449 aix4* | aix5*)
16450 # All AIX code is PIC.
16451 if test "$host_cpu" = ia64; then
16452 # AIX 5 now supports IA64 processor
16453 lt_prog_compiler_static_CXX='-Bstatic'
16454 else
16455 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16456 fi
16457 ;;
16458 chorus*)
16459 case $cc_basename in
16460 cxch68)
16461 # Green Hills C++ Compiler
16462 # _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"
16463 ;;
16464 esac
16465 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016466 darwin*)
16467 # PIC is the default on this platform
16468 # Common symbols not allowed in MH_DYLIB files
16469 case "$cc_basename" in
16470 xlc*)
16471 lt_prog_compiler_pic_CXX='-qnocommon'
16472 lt_prog_compiler_wl_CXX='-Wl,'
16473 ;;
16474 esac
16475 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016476 dgux*)
16477 case $cc_basename in
16478 ec++)
16479 lt_prog_compiler_pic_CXX='-KPIC'
16480 ;;
16481 ghcx)
16482 # Green Hills C++ Compiler
16483 lt_prog_compiler_pic_CXX='-pic'
16484 ;;
16485 *)
16486 ;;
16487 esac
16488 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016489 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016490 # FreeBSD uses GNU C++
16491 ;;
16492 hpux9* | hpux10* | hpux11*)
16493 case $cc_basename in
16494 CC)
16495 lt_prog_compiler_wl_CXX='-Wl,'
16496 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16497 if test "$host_cpu" != ia64; then
16498 lt_prog_compiler_pic_CXX='+Z'
16499 fi
16500 ;;
16501 aCC)
16502 lt_prog_compiler_wl_CXX='-Wl,'
16503 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16504 case "$host_cpu" in
16505 hppa*64*|ia64*)
16506 # +Z the default
16507 ;;
16508 *)
16509 lt_prog_compiler_pic_CXX='+Z'
16510 ;;
16511 esac
16512 ;;
16513 *)
16514 ;;
16515 esac
16516 ;;
16517 irix5* | irix6* | nonstopux*)
16518 case $cc_basename in
16519 CC)
16520 lt_prog_compiler_wl_CXX='-Wl,'
16521 lt_prog_compiler_static_CXX='-non_shared'
16522 # CC pic flag -KPIC is the default.
16523 ;;
16524 *)
16525 ;;
16526 esac
16527 ;;
16528 linux*)
16529 case $cc_basename in
16530 KCC)
16531 # KAI C++ Compiler
16532 lt_prog_compiler_wl_CXX='--backend -Wl,'
16533 lt_prog_compiler_pic_CXX='-fPIC'
16534 ;;
16535 icpc)
16536 # Intel C++
16537 lt_prog_compiler_wl_CXX='-Wl,'
16538 lt_prog_compiler_pic_CXX='-KPIC'
16539 lt_prog_compiler_static_CXX='-static'
16540 ;;
16541 cxx)
16542 # Compaq C++
16543 # Make sure the PIC flag is empty. It appears that all Alpha
16544 # Linux and Compaq Tru64 Unix objects are PIC.
16545 lt_prog_compiler_pic_CXX=
16546 lt_prog_compiler_static_CXX='-non_shared'
16547 ;;
16548 *)
16549 ;;
16550 esac
16551 ;;
16552 lynxos*)
16553 ;;
16554 m88k*)
16555 ;;
16556 mvs*)
16557 case $cc_basename in
16558 cxx)
16559 lt_prog_compiler_pic_CXX='-W c,exportall'
16560 ;;
16561 *)
16562 ;;
16563 esac
16564 ;;
16565 netbsd*)
16566 ;;
16567 osf3* | osf4* | osf5*)
16568 case $cc_basename in
16569 KCC)
16570 lt_prog_compiler_wl_CXX='--backend -Wl,'
16571 ;;
16572 RCC)
16573 # Rational C++ 2.4.1
16574 lt_prog_compiler_pic_CXX='-pic'
16575 ;;
16576 cxx)
16577 # Digital/Compaq C++
16578 lt_prog_compiler_wl_CXX='-Wl,'
16579 # Make sure the PIC flag is empty. It appears that all Alpha
16580 # Linux and Compaq Tru64 Unix objects are PIC.
16581 lt_prog_compiler_pic_CXX=
16582 lt_prog_compiler_static_CXX='-non_shared'
16583 ;;
16584 *)
16585 ;;
16586 esac
16587 ;;
16588 psos*)
16589 ;;
16590 sco*)
16591 case $cc_basename in
16592 CC)
16593 lt_prog_compiler_pic_CXX='-fPIC'
16594 ;;
16595 *)
16596 ;;
16597 esac
16598 ;;
16599 solaris*)
16600 case $cc_basename in
16601 CC)
16602 # Sun C++ 4.2, 5.x and Centerline C++
16603 lt_prog_compiler_pic_CXX='-KPIC'
16604 lt_prog_compiler_static_CXX='-Bstatic'
16605 lt_prog_compiler_wl_CXX='-Qoption ld '
16606 ;;
16607 gcx)
16608 # Green Hills C++ Compiler
16609 lt_prog_compiler_pic_CXX='-PIC'
16610 ;;
16611 *)
16612 ;;
16613 esac
16614 ;;
16615 sunos4*)
16616 case $cc_basename in
16617 CC)
16618 # Sun C++ 4.x
16619 lt_prog_compiler_pic_CXX='-pic'
16620 lt_prog_compiler_static_CXX='-Bstatic'
16621 ;;
16622 lcc)
16623 # Lucid
16624 lt_prog_compiler_pic_CXX='-pic'
16625 ;;
16626 *)
16627 ;;
16628 esac
16629 ;;
16630 tandem*)
16631 case $cc_basename in
16632 NCC)
16633 # NonStop-UX NCC 3.20
16634 lt_prog_compiler_pic_CXX='-KPIC'
16635 ;;
16636 *)
16637 ;;
16638 esac
16639 ;;
16640 unixware*)
16641 ;;
16642 vxworks*)
16643 ;;
16644 *)
16645 lt_prog_compiler_can_build_shared_CXX=no
16646 ;;
16647 esac
16648 fi
16649
16650echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16651echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16652
16653#
16654# Check to make sure the PIC flag actually works.
16655#
16656if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016657
16658echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016659echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16660if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662else
16663 lt_prog_compiler_pic_works_CXX=no
16664 ac_outfile=conftest.$ac_objext
16665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16666 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16667 # Insert the option either (1) after the last *FLAGS variable, or
16668 # (2) before a word containing "conftest.", or (3) at the end.
16669 # Note that $ac_compile itself does not contain backslashes and begins
16670 # with a dollar sign (not a hyphen), so the echo should work correctly.
16671 # The option is referenced via a variable to avoid confusing sed.
16672 lt_compile=`echo "$ac_compile" | $SED \
16673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16675 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000016676 (eval echo "\"\$as_me:16676: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016677 (eval "$lt_compile" 2>conftest.err)
16678 ac_status=$?
16679 cat conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000016680 echo "$as_me:16680: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016681 if (exit $ac_status) && test -s "$ac_outfile"; then
16682 # The compiler can only warn and ignore the option if not recognized
16683 # So say no if there are warnings
16684 if test ! -s conftest.err; then
16685 lt_prog_compiler_pic_works_CXX=yes
16686 fi
16687 fi
16688 $rm conftest*
16689
16690fi
16691echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16692echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16693
16694if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16695 case $lt_prog_compiler_pic_CXX in
16696 "" | " "*) ;;
16697 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16698 esac
16699else
16700 lt_prog_compiler_pic_CXX=
16701 lt_prog_compiler_can_build_shared_CXX=no
16702fi
16703
16704fi
16705case "$host_os" in
16706 # For platforms which do not support PIC, -DPIC is meaningless:
16707 *djgpp*)
16708 lt_prog_compiler_pic_CXX=
16709 ;;
16710 *)
16711 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16712 ;;
16713esac
16714
16715echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16716echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16717if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16719else
16720 lt_cv_prog_compiler_c_o_CXX=no
16721 $rm -r conftest 2>/dev/null
16722 mkdir conftest
16723 cd conftest
16724 mkdir out
16725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16726
John Criswell47fdd832003-07-14 16:52:07 +000016727 lt_compiler_flag="-o out/conftest2.$ac_objext"
16728 # Insert the option either (1) after the last *FLAGS variable, or
16729 # (2) before a word containing "conftest.", or (3) at the end.
16730 # Note that $ac_compile itself does not contain backslashes and begins
16731 # with a dollar sign (not a hyphen), so the echo should work correctly.
16732 lt_compile=`echo "$ac_compile" | $SED \
16733 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16735 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000016736 (eval echo "\"\$as_me:16736: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016737 (eval "$lt_compile" 2>out/conftest.err)
16738 ac_status=$?
16739 cat out/conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000016740 echo "$as_me:16740: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16742 then
16743 # The compiler can only warn and ignore the option if not recognized
16744 # So say no if there are warnings
16745 if test ! -s out/conftest.err; then
16746 lt_cv_prog_compiler_c_o_CXX=yes
16747 fi
16748 fi
16749 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016750 $rm conftest*
16751 # SGI C++ compiler will create directory out/ii_files/ for
16752 # template instantiation
16753 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16754 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016755 cd ..
16756 rmdir conftest
16757 $rm conftest*
16758
16759fi
16760echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16761echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16762
16763
16764hard_links="nottested"
16765if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16766 # do not overwrite the value of need_locks provided by the user
16767 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16768echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16769 hard_links=yes
16770 $rm conftest*
16771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16772 touch conftest.a
16773 ln conftest.a conftest.b 2>&5 || hard_links=no
16774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16775 echo "$as_me:$LINENO: result: $hard_links" >&5
16776echo "${ECHO_T}$hard_links" >&6
16777 if test "$hard_links" = no; then
16778 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16779echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16780 need_locks=warn
16781 fi
16782else
16783 need_locks=no
16784fi
16785
16786echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16787echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16788
16789 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16790 case $host_os in
16791 aix4* | aix5*)
16792 # If we're using GNU nm, then we don't want the "-C" option.
16793 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16794 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16795 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'
16796 else
16797 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'
16798 fi
16799 ;;
16800 pw32*)
16801 export_symbols_cmds_CXX="$ltdll_cmds"
16802 ;;
16803 cygwin* | mingw*)
16804 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16805 ;;
16806 *)
16807 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16808 ;;
16809 esac
16810
16811echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16812echo "${ECHO_T}$ld_shlibs_CXX" >&6
16813test "$ld_shlibs_CXX" = no && can_build_shared=no
16814
16815variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16816if test "$GCC" = yes; then
16817 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16818fi
16819
16820#
16821# Do we need to explicitly link libc?
16822#
16823case "x$archive_cmds_need_lc_CXX" in
16824x|xyes)
16825 # Assume -lc should be added
16826 archive_cmds_need_lc_CXX=yes
16827
16828 if test "$enable_shared" = yes && test "$GCC" = yes; then
16829 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016830 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016831 # FIXME: we may have to deal with multi-command sequences.
16832 ;;
16833 '$CC '*)
16834 # Test whether the compiler implicitly links with -lc since on some
16835 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16836 # to ld, don't add -lc before -lgcc.
16837 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16838echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16839 $rm conftest*
16840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16841
16842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16843 (eval $ac_compile) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } 2>conftest.err; then
16847 soname=conftest
16848 lib=conftest
16849 libobjs=conftest.$ac_objext
16850 deplibs=
16851 wl=$lt_prog_compiler_wl_CXX
16852 compiler_flags=-v
16853 linker_flags=-v
16854 verstring=
16855 output_objdir=.
16856 libname=conftest
16857 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16858 allow_undefined_flag_CXX=
16859 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16860 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }
16864 then
16865 archive_cmds_need_lc_CXX=no
16866 else
16867 archive_cmds_need_lc_CXX=yes
16868 fi
16869 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16870 else
16871 cat conftest.err 1>&5
16872 fi
16873 $rm conftest*
16874 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16875echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16876 ;;
16877 esac
16878 fi
16879 ;;
16880esac
16881
John Criswell47fdd832003-07-14 16:52:07 +000016882echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16883echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16884library_names_spec=
16885libname_spec='lib$name'
16886soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016887shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016888postinstall_cmds=
16889postuninstall_cmds=
16890finish_cmds=
16891finish_eval=
16892shlibpath_var=
16893shlibpath_overrides_runpath=unknown
16894version_type=none
16895dynamic_linker="$host_os ld.so"
16896sys_lib_dlsearch_path_spec="/lib /usr/lib"
16897if test "$GCC" = yes; then
16898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16899 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16900 # if the path contains ";" then we assume it to be the separator
16901 # otherwise default to the standard path separator (i.e. ":") - it is
16902 # assumed that no part of a normal pathname contains ";" but that should
16903 # okay in the real world where ";" in dirpaths is itself problematic.
16904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16905 else
16906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16907 fi
16908else
16909 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16910fi
16911need_lib_prefix=unknown
16912hardcode_into_libs=no
16913
16914# when you set need_version to no, make sure it does not cause -set_version
16915# flags to be left without arguments
16916need_version=unknown
16917
16918case $host_os in
16919aix3*)
16920 version_type=linux
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16922 shlibpath_var=LIBPATH
16923
16924 # AIX 3 has no versioning support, so we append a major version to the name.
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 ;;
16927
16928aix4* | aix5*)
16929 version_type=linux
16930 need_lib_prefix=no
16931 need_version=no
16932 hardcode_into_libs=yes
16933 if test "$host_cpu" = ia64; then
16934 # AIX 5 supports IA64
16935 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16936 shlibpath_var=LD_LIBRARY_PATH
16937 else
16938 # With GCC up to 2.95.x, collect2 would create an import file
16939 # for dependence libraries. The import file would start with
16940 # the line `#! .'. This would cause the generated library to
16941 # depend on `.', always an invalid library. This was fixed in
16942 # development snapshots of GCC prior to 3.0.
16943 case $host_os in
16944 aix4 | aix4.[01] | aix4.[01].*)
16945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16946 echo ' yes '
16947 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16948 :
16949 else
16950 can_build_shared=no
16951 fi
16952 ;;
16953 esac
16954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16955 # soname into executable. Probably we can add versioning support to
16956 # collect2, so additional links can be useful in future.
16957 if test "$aix_use_runtimelinking" = yes; then
16958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16959 # instead of lib<name>.a to let people know that these are not
16960 # typical AIX shared libraries.
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16962 else
16963 # We preserve .a as extension for shared libraries through AIX4.2
16964 # and later when we are not doing run time linking.
16965 library_names_spec='${libname}${release}.a $libname.a'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 fi
16968 shlibpath_var=LIBPATH
16969 fi
16970 ;;
16971
16972amigaos*)
16973 library_names_spec='$libname.ixlibrary $libname.a'
16974 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016975 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 +000016976 ;;
16977
16978beos*)
16979 library_names_spec='${libname}${shared_ext}'
16980 dynamic_linker="$host_os ld.so"
16981 shlibpath_var=LIBRARY_PATH
16982 ;;
16983
Reid Spencer2706f8c2004-09-19 23:53:36 +000016984bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016985 version_type=linux
16986 need_version=no
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988 soname_spec='${libname}${release}${shared_ext}$major'
16989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16990 shlibpath_var=LD_LIBRARY_PATH
16991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16993 # the default ld.so.conf also contains /usr/contrib/lib and
16994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16995 # libtool to hard-code these into programs
16996 ;;
16997
16998cygwin* | mingw* | pw32*)
16999 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017001 need_version=no
17002 need_lib_prefix=no
17003
17004 case $GCC,$host_os in
17005 yes,cygwin* | yes,mingw* | yes,pw32*)
17006 library_names_spec='$libname.dll.a'
17007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017008 postinstall_cmds='base_file=`basename \${file}`~
17009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17010 dldir=$destdir/`dirname \$dlpath`~
17011 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017012 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17014 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017015 $rm \$dlpath'
17016 shlibpath_overrides_runpath=yes
17017
17018 case $host_os in
17019 cygwin*)
17020 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17021 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 +000017022 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017023 ;;
17024 mingw*)
17025 # MinGW DLLs use traditional 'lib' prefix
17026 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17028 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17029 # It is most probably a Windows format PATH printed by
17030 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17031 # path with ; separators, and with drive letters. We can handle the
17032 # drive letters (cygwin fileutils understands them), so leave them,
17033 # especially as we might pass files found there to a mingw objdump,
17034 # which wouldn't understand a cygwinified path. Ahh.
17035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17036 else
17037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17038 fi
17039 ;;
17040 pw32*)
17041 # pw32 DLLs use 'pw' prefix rather than 'lib'
17042 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17043 ;;
17044 esac
17045 ;;
17046
17047 *)
17048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17049 ;;
17050 esac
17051 dynamic_linker='Win32 ld.exe'
17052 # FIXME: first we should search . and the directory the executable is in
17053 shlibpath_var=PATH
17054 ;;
17055
17056darwin* | rhapsody*)
17057 dynamic_linker="$host_os dyld"
17058 version_type=darwin
17059 need_lib_prefix=no
17060 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017061 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017062 soname_spec='${libname}${release}${major}$shared_ext'
17063 shlibpath_overrides_runpath=yes
17064 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017065 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017066 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017067 if test "$GCC" = yes; then
17068 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"`
17069 else
17070 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017071 fi
17072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17073 ;;
17074
17075dgux*)
17076 version_type=linux
17077 need_lib_prefix=no
17078 need_version=no
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17080 soname_spec='${libname}${release}${shared_ext}$major'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 ;;
17083
17084freebsd1*)
17085 dynamic_linker=no
17086 ;;
17087
Reid Spencer2706f8c2004-09-19 23:53:36 +000017088kfreebsd*-gnu)
17089 version_type=linux
17090 need_lib_prefix=no
17091 need_version=no
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 shlibpath_overrides_runpath=no
17096 hardcode_into_libs=yes
17097 dynamic_linker='GNU ld.so'
17098 ;;
17099
John Criswell47fdd832003-07-14 16:52:07 +000017100freebsd*)
17101 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17102 version_type=freebsd-$objformat
17103 case $version_type in
17104 freebsd-elf*)
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17106 need_version=no
17107 need_lib_prefix=no
17108 ;;
17109 freebsd-*)
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17111 need_version=yes
17112 ;;
17113 esac
17114 shlibpath_var=LD_LIBRARY_PATH
17115 case $host_os in
17116 freebsd2*)
17117 shlibpath_overrides_runpath=yes
17118 ;;
17119 freebsd3.01* | freebsdelf3.01*)
17120 shlibpath_overrides_runpath=yes
17121 hardcode_into_libs=yes
17122 ;;
17123 *) # from 3.2 on
17124 shlibpath_overrides_runpath=no
17125 hardcode_into_libs=yes
17126 ;;
17127 esac
17128 ;;
17129
17130gnu*)
17131 version_type=linux
17132 need_lib_prefix=no
17133 need_version=no
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 hardcode_into_libs=yes
17138 ;;
17139
17140hpux9* | hpux10* | hpux11*)
17141 # Give a soname corresponding to the major version so that dld.sl refuses to
17142 # link against other versions.
17143 version_type=sunos
17144 need_lib_prefix=no
17145 need_version=no
17146 case "$host_cpu" in
17147 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017148 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017149 hardcode_into_libs=yes
17150 dynamic_linker="$host_os dld.so"
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 if test "X$HPUX_IA64_MODE" = X32; then
17156 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17157 else
17158 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17159 fi
17160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17161 ;;
17162 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017163 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017164 hardcode_into_libs=yes
17165 dynamic_linker="$host_os dld.sl"
17166 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 soname_spec='${libname}${release}${shared_ext}$major'
17170 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17172 ;;
17173 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017174 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017175 dynamic_linker="$host_os dld.sl"
17176 shlibpath_var=SHLIB_PATH
17177 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179 soname_spec='${libname}${release}${shared_ext}$major'
17180 ;;
17181 esac
17182 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17183 postinstall_cmds='chmod 555 $lib'
17184 ;;
17185
17186irix5* | irix6* | nonstopux*)
17187 case $host_os in
17188 nonstopux*) version_type=nonstopux ;;
17189 *)
17190 if test "$lt_cv_prog_gnu_ld" = yes; then
17191 version_type=linux
17192 else
17193 version_type=irix
17194 fi ;;
17195 esac
17196 need_lib_prefix=no
17197 need_version=no
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17200 case $host_os in
17201 irix5* | nonstopux*)
17202 libsuff= shlibsuff=
17203 ;;
17204 *)
17205 case $LD in # libtool.m4 will add one of these switches to LD
17206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17207 libsuff= shlibsuff= libmagic=32-bit;;
17208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17209 libsuff=32 shlibsuff=N32 libmagic=N32;;
17210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17212 *) libsuff= shlibsuff= libmagic=never-match;;
17213 esac
17214 ;;
17215 esac
17216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17217 shlibpath_overrides_runpath=no
17218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17220 hardcode_into_libs=yes
17221 ;;
17222
17223# No shared lib support for Linux oldld, aout, or coff.
17224linux*oldld* | linux*aout* | linux*coff*)
17225 dynamic_linker=no
17226 ;;
17227
17228# This must be Linux ELF.
17229linux*)
17230 version_type=linux
17231 need_lib_prefix=no
17232 need_version=no
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=no
17238 # This implies no fast_install, which is unacceptable.
17239 # Some rework will be needed to allow for fast_install
17240 # before this can be enabled.
17241 hardcode_into_libs=yes
17242
Reid Spencer2706f8c2004-09-19 23:53:36 +000017243 # Append ld.so.conf contents to the search path
17244 if test -f /etc/ld.so.conf; then
17245 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17247 fi
17248
John Criswell47fdd832003-07-14 16:52:07 +000017249 # We used to test for /lib/ld.so.1 and disable shared libraries on
17250 # powerpc, because MkLinux only supported shared libraries with the
17251 # GNU dynamic linker. Since this was broken with cross compilers,
17252 # most powerpc-linux boxes support dynamic linking these days and
17253 # people can always --disable-shared, the test was removed, and we
17254 # assume the GNU/Linux dynamic linker is in use.
17255 dynamic_linker='GNU/Linux ld.so'
17256 ;;
17257
Reid Spencer2706f8c2004-09-19 23:53:36 +000017258knetbsd*-gnu)
17259 version_type=linux
17260 need_lib_prefix=no
17261 need_version=no
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 shlibpath_overrides_runpath=no
17266 hardcode_into_libs=yes
17267 dynamic_linker='GNU ld.so'
17268 ;;
17269
John Criswell47fdd832003-07-14 16:52:07 +000017270netbsd*)
17271 version_type=sunos
17272 need_lib_prefix=no
17273 need_version=no
17274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17277 dynamic_linker='NetBSD (a.out) ld.so'
17278 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017280 soname_spec='${libname}${release}${shared_ext}$major'
17281 dynamic_linker='NetBSD ld.elf_so'
17282 fi
17283 shlibpath_var=LD_LIBRARY_PATH
17284 shlibpath_overrides_runpath=yes
17285 hardcode_into_libs=yes
17286 ;;
17287
17288newsos6)
17289 version_type=linux
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 ;;
17294
Reid Spencer2706f8c2004-09-19 23:53:36 +000017295nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017296 version_type=linux
17297 need_lib_prefix=no
17298 need_version=no
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes
17303 ;;
17304
17305openbsd*)
17306 version_type=sunos
17307 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017308 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17313 case $host_os in
17314 openbsd2.[89] | openbsd2.[89].*)
17315 shlibpath_overrides_runpath=no
17316 ;;
17317 *)
17318 shlibpath_overrides_runpath=yes
17319 ;;
17320 esac
17321 else
17322 shlibpath_overrides_runpath=yes
17323 fi
17324 ;;
17325
17326os2*)
17327 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017328 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017329 need_lib_prefix=no
17330 library_names_spec='$libname${shared_ext} $libname.a'
17331 dynamic_linker='OS/2 ld.exe'
17332 shlibpath_var=LIBPATH
17333 ;;
17334
17335osf3* | osf4* | osf5*)
17336 version_type=osf
17337 need_lib_prefix=no
17338 need_version=no
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17344 ;;
17345
17346sco3.2v5*)
17347 version_type=osf
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 ;;
17352
17353solaris*)
17354 version_type=linux
17355 need_lib_prefix=no
17356 need_version=no
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath=yes
17361 hardcode_into_libs=yes
17362 # ldd complains unless libraries are executable
17363 postinstall_cmds='chmod +x $lib'
17364 ;;
17365
17366sunos4*)
17367 version_type=sunos
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes
17372 if test "$with_gnu_ld" = yes; then
17373 need_lib_prefix=no
17374 fi
17375 need_version=yes
17376 ;;
17377
17378sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17379 version_type=linux
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381 soname_spec='${libname}${release}${shared_ext}$major'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 case $host_vendor in
17384 sni)
17385 shlibpath_overrides_runpath=no
17386 need_lib_prefix=no
17387 export_dynamic_flag_spec='${wl}-Blargedynsym'
17388 runpath_var=LD_RUN_PATH
17389 ;;
17390 siemens)
17391 need_lib_prefix=no
17392 ;;
17393 motorola)
17394 need_lib_prefix=no
17395 need_version=no
17396 shlibpath_overrides_runpath=no
17397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17398 ;;
17399 esac
17400 ;;
17401
17402sysv4*MP*)
17403 if test -d /usr/nec ;then
17404 version_type=linux
17405 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17406 soname_spec='$libname${shared_ext}.$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 fi
17409 ;;
17410
17411uts4*)
17412 version_type=linux
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414 soname_spec='${libname}${release}${shared_ext}$major'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 ;;
17417
17418*)
17419 dynamic_linker=no
17420 ;;
17421esac
17422echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17423echo "${ECHO_T}$dynamic_linker" >&6
17424test "$dynamic_linker" = no && can_build_shared=no
17425
Reid Spencer2706f8c2004-09-19 23:53:36 +000017426echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17427echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17428hardcode_action_CXX=
17429if test -n "$hardcode_libdir_flag_spec_CXX" || \
17430 test -n "$runpath_var_CXX" || \
17431 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17432
17433 # We can hardcode non-existant directories.
17434 if test "$hardcode_direct_CXX" != no &&
17435 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17436 # have to relink, otherwise we might link with an installed library
17437 # when we should be linking with a yet-to-be-installed one
17438 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17439 test "$hardcode_minus_L_CXX" != no; then
17440 # Linking always hardcodes the temporary library directory.
17441 hardcode_action_CXX=relink
17442 else
17443 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17444 hardcode_action_CXX=immediate
17445 fi
17446else
17447 # We cannot hardcode anything, or else we can only hardcode existing
17448 # directories.
17449 hardcode_action_CXX=unsupported
17450fi
17451echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17452echo "${ECHO_T}$hardcode_action_CXX" >&6
17453
17454if test "$hardcode_action_CXX" = relink; then
17455 # Fast installation is not supported
17456 enable_fast_install=no
17457elif test "$shlibpath_overrides_runpath" = yes ||
17458 test "$enable_shared" = no; then
17459 # Fast installation is not necessary
17460 enable_fast_install=needless
17461fi
17462
17463striplib=
17464old_striplib=
17465echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17466echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17467if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17468 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17469 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17470 echo "$as_me:$LINENO: result: yes" >&5
17471echo "${ECHO_T}yes" >&6
17472else
17473# FIXME - insert some real tests, host_os isn't really good enough
17474 case $host_os in
17475 darwin*)
17476 if test -n "$STRIP" ; then
17477 striplib="$STRIP -x"
17478 echo "$as_me:$LINENO: result: yes" >&5
17479echo "${ECHO_T}yes" >&6
17480 else
17481 echo "$as_me:$LINENO: result: no" >&5
17482echo "${ECHO_T}no" >&6
17483fi
17484 ;;
17485 *)
17486 echo "$as_me:$LINENO: result: no" >&5
17487echo "${ECHO_T}no" >&6
17488 ;;
17489 esac
17490fi
17491
John Criswell47fdd832003-07-14 16:52:07 +000017492if test "x$enable_dlopen" != xyes; then
17493 enable_dlopen=unknown
17494 enable_dlopen_self=unknown
17495 enable_dlopen_self_static=unknown
17496else
17497 lt_cv_dlopen=no
17498 lt_cv_dlopen_libs=
17499
17500 case $host_os in
17501 beos*)
17502 lt_cv_dlopen="load_add_on"
17503 lt_cv_dlopen_libs=
17504 lt_cv_dlopen_self=yes
17505 ;;
17506
17507 mingw* | pw32*)
17508 lt_cv_dlopen="LoadLibrary"
17509 lt_cv_dlopen_libs=
17510 ;;
17511
17512 cygwin*)
17513 lt_cv_dlopen="dlopen"
17514 lt_cv_dlopen_libs=
17515 ;;
17516
17517 darwin*)
17518 # if libdl is installed we need to link against it
17519 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17520echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17521if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523else
17524 ac_check_lib_save_LIBS=$LIBS
17525LIBS="-ldl $LIBS"
17526cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017527/* confdefs.h. */
17528_ACEOF
17529cat confdefs.h >>conftest.$ac_ext
17530cat >>conftest.$ac_ext <<_ACEOF
17531/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017532
17533/* Override any gcc2 internal prototype to avoid an error. */
17534#ifdef __cplusplus
17535extern "C"
17536#endif
17537/* We use char because int might match the return type of a gcc2
17538 builtin and then its argument prototype would still apply. */
17539char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017540int
17541main ()
17542{
17543dlopen ();
17544 ;
17545 return 0;
17546}
17547_ACEOF
17548rm -f conftest.$ac_objext conftest$ac_exeext
17549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017550 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017551 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017552 grep -v '^ *+' conftest.er1 >conftest.err
17553 rm -f conftest.er1
17554 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017557 { ac_try='test -z "$ac_cxx_werror_flag"
17558 || test ! -s conftest.err'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 ac_cv_lib_dl_dlopen=yes
17571else
17572 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017573sed 's/^/| /' conftest.$ac_ext >&5
17574
John Criswell47fdd832003-07-14 16:52:07 +000017575ac_cv_lib_dl_dlopen=no
17576fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017577rm -f conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017579LIBS=$ac_check_lib_save_LIBS
17580fi
17581echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17582echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17583if test $ac_cv_lib_dl_dlopen = yes; then
17584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17585else
17586
17587 lt_cv_dlopen="dyld"
17588 lt_cv_dlopen_libs=
17589 lt_cv_dlopen_self=yes
17590
17591fi
17592
17593 ;;
17594
17595 *)
17596 echo "$as_me:$LINENO: checking for shl_load" >&5
17597echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17598if test "${ac_cv_func_shl_load+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600else
17601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017602/* confdefs.h. */
17603_ACEOF
17604cat confdefs.h >>conftest.$ac_ext
17605cat >>conftest.$ac_ext <<_ACEOF
17606/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017607/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17609#define shl_load innocuous_shl_load
17610
John Criswell47fdd832003-07-14 16:52:07 +000017611/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017612 which can conflict with char shl_load (); below.
17613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17614 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017615
John Criswell0c38eaf2003-09-10 15:17:25 +000017616#ifdef __STDC__
17617# include <limits.h>
17618#else
17619# include <assert.h>
17620#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017621
17622#undef shl_load
17623
John Criswell47fdd832003-07-14 16:52:07 +000017624/* Override any gcc2 internal prototype to avoid an error. */
17625#ifdef __cplusplus
17626extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017627{
John Criswell47fdd832003-07-14 16:52:07 +000017628#endif
17629/* We use char because int might match the return type of a gcc2
17630 builtin and then its argument prototype would still apply. */
17631char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017632/* The GNU C library defines this for functions which it implements
17633 to always fail with ENOSYS. Some functions are actually named
17634 something starting with __ and the normal name is an alias. */
17635#if defined (__stub_shl_load) || defined (__stub___shl_load)
17636choke me
17637#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017638char (*f) () = shl_load;
17639#endif
17640#ifdef __cplusplus
17641}
John Criswell47fdd832003-07-14 16:52:07 +000017642#endif
17643
John Criswell0c38eaf2003-09-10 15:17:25 +000017644int
17645main ()
17646{
17647return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017648 ;
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_func_shl_load=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_func_shl_load=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 +000017683fi
17684echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17685echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17686if test $ac_cv_func_shl_load = yes; then
17687 lt_cv_dlopen="shl_load"
17688else
17689 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17690echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17691if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693else
17694 ac_check_lib_save_LIBS=$LIBS
17695LIBS="-ldld $LIBS"
17696cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
17701/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017702
17703/* Override any gcc2 internal prototype to avoid an error. */
17704#ifdef __cplusplus
17705extern "C"
17706#endif
17707/* We use char because int might match the return type of a gcc2
17708 builtin and then its argument prototype would still apply. */
17709char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017710int
17711main ()
17712{
17713shl_load ();
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext conftest$ac_exeext
17719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017720 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017721 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017727 { ac_try='test -z "$ac_cxx_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_lib_dld_shl_load=yes
17741else
17742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017743sed 's/^/| /' conftest.$ac_ext >&5
17744
John Criswell47fdd832003-07-14 16:52:07 +000017745ac_cv_lib_dld_shl_load=no
17746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017747rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017749LIBS=$ac_check_lib_save_LIBS
17750fi
17751echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17752echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17753if test $ac_cv_lib_dld_shl_load = yes; then
17754 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17755else
17756 echo "$as_me:$LINENO: checking for dlopen" >&5
17757echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17758if test "${ac_cv_func_dlopen+set}" = set; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17760else
17761 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017762/* confdefs.h. */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017767/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17769#define dlopen innocuous_dlopen
17770
John Criswell47fdd832003-07-14 16:52:07 +000017771/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017772 which can conflict with char dlopen (); below.
17773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17774 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775
John Criswell0c38eaf2003-09-10 15:17:25 +000017776#ifdef __STDC__
17777# include <limits.h>
17778#else
17779# include <assert.h>
17780#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017781
17782#undef dlopen
17783
John Criswell47fdd832003-07-14 16:52:07 +000017784/* Override any gcc2 internal prototype to avoid an error. */
17785#ifdef __cplusplus
17786extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017787{
John Criswell47fdd832003-07-14 16:52:07 +000017788#endif
17789/* We use char because int might match the return type of a gcc2
17790 builtin and then its argument prototype would still apply. */
17791char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017792/* The GNU C library defines this for functions which it implements
17793 to always fail with ENOSYS. Some functions are actually named
17794 something starting with __ and the normal name is an alias. */
17795#if defined (__stub_dlopen) || defined (__stub___dlopen)
17796choke me
17797#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017798char (*f) () = dlopen;
17799#endif
17800#ifdef __cplusplus
17801}
John Criswell47fdd832003-07-14 16:52:07 +000017802#endif
17803
John Criswell0c38eaf2003-09-10 15:17:25 +000017804int
17805main ()
17806{
17807return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017808 ;
17809 return 0;
17810}
17811_ACEOF
17812rm -f conftest.$ac_objext conftest$ac_exeext
17813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017814 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017815 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017821 { ac_try='test -z "$ac_cxx_werror_flag"
17822 || test ! -s conftest.err'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_cv_func_dlopen=yes
17835else
17836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017837sed 's/^/| /' conftest.$ac_ext >&5
17838
John Criswell47fdd832003-07-14 16:52:07 +000017839ac_cv_func_dlopen=no
17840fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017841rm -f conftest.err conftest.$ac_objext \
17842 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017843fi
17844echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17845echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17846if test $ac_cv_func_dlopen = yes; then
17847 lt_cv_dlopen="dlopen"
17848else
17849 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17850echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17851if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853else
17854 ac_check_lib_save_LIBS=$LIBS
17855LIBS="-ldl $LIBS"
17856cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017862
17863/* Override any gcc2 internal prototype to avoid an error. */
17864#ifdef __cplusplus
17865extern "C"
17866#endif
17867/* We use char because int might match the return type of a gcc2
17868 builtin and then its argument prototype would still apply. */
17869char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017870int
17871main ()
17872{
17873dlopen ();
17874 ;
17875 return 0;
17876}
17877_ACEOF
17878rm -f conftest.$ac_objext conftest$ac_exeext
17879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017880 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017881 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017887 { ac_try='test -z "$ac_cxx_werror_flag"
17888 || test ! -s conftest.err'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_cv_lib_dl_dlopen=yes
17901else
17902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017903sed 's/^/| /' conftest.$ac_ext >&5
17904
John Criswell47fdd832003-07-14 16:52:07 +000017905ac_cv_lib_dl_dlopen=no
17906fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017907rm -f conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017909LIBS=$ac_check_lib_save_LIBS
17910fi
17911echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17912echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17913if test $ac_cv_lib_dl_dlopen = yes; then
17914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17915else
17916 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17917echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17918if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17920else
17921 ac_check_lib_save_LIBS=$LIBS
17922LIBS="-lsvld $LIBS"
17923cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017924/* confdefs.h. */
17925_ACEOF
17926cat confdefs.h >>conftest.$ac_ext
17927cat >>conftest.$ac_ext <<_ACEOF
17928/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017929
17930/* Override any gcc2 internal prototype to avoid an error. */
17931#ifdef __cplusplus
17932extern "C"
17933#endif
17934/* We use char because int might match the return type of a gcc2
17935 builtin and then its argument prototype would still apply. */
17936char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017937int
17938main ()
17939{
17940dlopen ();
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext conftest$ac_exeext
17946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017947 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017948 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017954 { ac_try='test -z "$ac_cxx_werror_flag"
17955 || test ! -s conftest.err'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 ac_cv_lib_svld_dlopen=yes
17968else
17969 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017970sed 's/^/| /' conftest.$ac_ext >&5
17971
John Criswell47fdd832003-07-14 16:52:07 +000017972ac_cv_lib_svld_dlopen=no
17973fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017974rm -f conftest.err conftest.$ac_objext \
17975 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017976LIBS=$ac_check_lib_save_LIBS
17977fi
17978echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17979echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17980if test $ac_cv_lib_svld_dlopen = yes; then
17981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17982else
17983 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17984echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17985if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
17988 ac_check_lib_save_LIBS=$LIBS
17989LIBS="-ldld $LIBS"
17990cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017991/* confdefs.h. */
17992_ACEOF
17993cat confdefs.h >>conftest.$ac_ext
17994cat >>conftest.$ac_ext <<_ACEOF
17995/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017996
17997/* Override any gcc2 internal prototype to avoid an error. */
17998#ifdef __cplusplus
17999extern "C"
18000#endif
18001/* We use char because int might match the return type of a gcc2
18002 builtin and then its argument prototype would still apply. */
18003char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018004int
18005main ()
18006{
18007dld_link ();
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext conftest$ac_exeext
18013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018014 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018015 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018021 { ac_try='test -z "$ac_cxx_werror_flag"
18022 || test ! -s conftest.err'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034 ac_cv_lib_dld_dld_link=yes
18035else
18036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018037sed 's/^/| /' conftest.$ac_ext >&5
18038
John Criswell47fdd832003-07-14 16:52:07 +000018039ac_cv_lib_dld_dld_link=no
18040fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018041rm -f conftest.err conftest.$ac_objext \
18042 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018043LIBS=$ac_check_lib_save_LIBS
18044fi
18045echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18046echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18047if test $ac_cv_lib_dld_dld_link = yes; then
18048 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18049fi
18050
18051
18052fi
18053
18054
18055fi
18056
18057
18058fi
18059
18060
18061fi
18062
18063
18064fi
18065
18066 ;;
18067 esac
18068
18069 if test "x$lt_cv_dlopen" != xno; then
18070 enable_dlopen=yes
18071 else
18072 enable_dlopen=no
18073 fi
18074
18075 case $lt_cv_dlopen in
18076 dlopen)
18077 save_CPPFLAGS="$CPPFLAGS"
18078 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18079
18080 save_LDFLAGS="$LDFLAGS"
18081 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18082
18083 save_LIBS="$LIBS"
18084 LIBS="$lt_cv_dlopen_libs $LIBS"
18085
18086 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18087echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18088if test "${lt_cv_dlopen_self+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090else
18091 if test "$cross_compiling" = yes; then :
18092 lt_cv_dlopen_self=cross
18093else
18094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18095 lt_status=$lt_dlunknown
18096 cat > conftest.$ac_ext <<EOF
John Criswell241116f2005-12-19 20:27:24 +000018097#line 18097 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018098#include "confdefs.h"
18099
18100#if HAVE_DLFCN_H
18101#include <dlfcn.h>
18102#endif
18103
18104#include <stdio.h>
18105
18106#ifdef RTLD_GLOBAL
18107# define LT_DLGLOBAL RTLD_GLOBAL
18108#else
18109# ifdef DL_GLOBAL
18110# define LT_DLGLOBAL DL_GLOBAL
18111# else
18112# define LT_DLGLOBAL 0
18113# endif
18114#endif
18115
18116/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18117 find out it does not work in some platform. */
18118#ifndef LT_DLLAZY_OR_NOW
18119# ifdef RTLD_LAZY
18120# define LT_DLLAZY_OR_NOW RTLD_LAZY
18121# else
18122# ifdef DL_LAZY
18123# define LT_DLLAZY_OR_NOW DL_LAZY
18124# else
18125# ifdef RTLD_NOW
18126# define LT_DLLAZY_OR_NOW RTLD_NOW
18127# else
18128# ifdef DL_NOW
18129# define LT_DLLAZY_OR_NOW DL_NOW
18130# else
18131# define LT_DLLAZY_OR_NOW 0
18132# endif
18133# endif
18134# endif
18135# endif
18136#endif
18137
18138#ifdef __cplusplus
18139extern "C" void exit (int);
18140#endif
18141
18142void fnord() { int i=42;}
18143int main ()
18144{
18145 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18146 int status = $lt_dlunknown;
18147
18148 if (self)
18149 {
18150 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18151 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18152 /* dlclose (self); */
18153 }
18154
18155 exit (status);
18156}
18157EOF
18158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159 (eval $ac_link) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18163 (./conftest; exit; ) 2>/dev/null
18164 lt_status=$?
18165 case x$lt_status in
18166 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18167 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18168 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18169 esac
18170 else :
18171 # compilation failed
18172 lt_cv_dlopen_self=no
18173 fi
18174fi
18175rm -fr conftest*
18176
18177
18178fi
18179echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18180echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18181
18182 if test "x$lt_cv_dlopen_self" = xyes; then
18183 LDFLAGS="$LDFLAGS $link_static_flag"
18184 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18185echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18186if test "${lt_cv_dlopen_self_static+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188else
18189 if test "$cross_compiling" = yes; then :
18190 lt_cv_dlopen_self_static=cross
18191else
18192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18193 lt_status=$lt_dlunknown
18194 cat > conftest.$ac_ext <<EOF
John Criswell241116f2005-12-19 20:27:24 +000018195#line 18195 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018196#include "confdefs.h"
18197
18198#if HAVE_DLFCN_H
18199#include <dlfcn.h>
18200#endif
18201
18202#include <stdio.h>
18203
18204#ifdef RTLD_GLOBAL
18205# define LT_DLGLOBAL RTLD_GLOBAL
18206#else
18207# ifdef DL_GLOBAL
18208# define LT_DLGLOBAL DL_GLOBAL
18209# else
18210# define LT_DLGLOBAL 0
18211# endif
18212#endif
18213
18214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18215 find out it does not work in some platform. */
18216#ifndef LT_DLLAZY_OR_NOW
18217# ifdef RTLD_LAZY
18218# define LT_DLLAZY_OR_NOW RTLD_LAZY
18219# else
18220# ifdef DL_LAZY
18221# define LT_DLLAZY_OR_NOW DL_LAZY
18222# else
18223# ifdef RTLD_NOW
18224# define LT_DLLAZY_OR_NOW RTLD_NOW
18225# else
18226# ifdef DL_NOW
18227# define LT_DLLAZY_OR_NOW DL_NOW
18228# else
18229# define LT_DLLAZY_OR_NOW 0
18230# endif
18231# endif
18232# endif
18233# endif
18234#endif
18235
18236#ifdef __cplusplus
18237extern "C" void exit (int);
18238#endif
18239
18240void fnord() { int i=42;}
18241int main ()
18242{
18243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18244 int status = $lt_dlunknown;
18245
18246 if (self)
18247 {
18248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18250 /* dlclose (self); */
18251 }
18252
18253 exit (status);
18254}
18255EOF
18256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18257 (eval $ac_link) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18261 (./conftest; exit; ) 2>/dev/null
18262 lt_status=$?
18263 case x$lt_status in
18264 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18265 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18266 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18267 esac
18268 else :
18269 # compilation failed
18270 lt_cv_dlopen_self_static=no
18271 fi
18272fi
18273rm -fr conftest*
18274
18275
18276fi
18277echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18278echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18279 fi
18280
18281 CPPFLAGS="$save_CPPFLAGS"
18282 LDFLAGS="$save_LDFLAGS"
18283 LIBS="$save_LIBS"
18284 ;;
18285 esac
18286
18287 case $lt_cv_dlopen_self in
18288 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18289 *) enable_dlopen_self=unknown ;;
18290 esac
18291
18292 case $lt_cv_dlopen_self_static in
18293 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18294 *) enable_dlopen_self_static=unknown ;;
18295 esac
18296fi
18297
18298
18299# The else clause should only fire when bootstrapping the
18300# libtool distribution, otherwise you forgot to ship ltmain.sh
18301# with your package, and you will get complaints that there are
18302# no rules to generate ltmain.sh.
18303if test -f "$ltmain"; then
18304 # See if we are running on zsh, and set the options which allow our commands through
18305 # without removal of \ escapes.
18306 if test -n "${ZSH_VERSION+set}" ; then
18307 setopt NO_GLOB_SUBST
18308 fi
18309 # Now quote all the things that may contain metacharacters while being
18310 # careful not to overquote the AC_SUBSTed values. We take copies of the
18311 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018312 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18313 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018314 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18315 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18316 deplibs_check_method reload_flag reload_cmds need_locks \
18317 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18318 lt_cv_sys_global_symbol_to_c_name_address \
18319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18320 old_postinstall_cmds old_postuninstall_cmds \
18321 compiler_CXX \
18322 CC_CXX \
18323 LD_CXX \
18324 lt_prog_compiler_wl_CXX \
18325 lt_prog_compiler_pic_CXX \
18326 lt_prog_compiler_static_CXX \
18327 lt_prog_compiler_no_builtin_flag_CXX \
18328 export_dynamic_flag_spec_CXX \
18329 thread_safe_flag_spec_CXX \
18330 whole_archive_flag_spec_CXX \
18331 enable_shared_with_static_runtimes_CXX \
18332 old_archive_cmds_CXX \
18333 old_archive_from_new_cmds_CXX \
18334 predep_objects_CXX \
18335 postdep_objects_CXX \
18336 predeps_CXX \
18337 postdeps_CXX \
18338 compiler_lib_search_path_CXX \
18339 archive_cmds_CXX \
18340 archive_expsym_cmds_CXX \
18341 postinstall_cmds_CXX \
18342 postuninstall_cmds_CXX \
18343 old_archive_from_expsyms_cmds_CXX \
18344 allow_undefined_flag_CXX \
18345 no_undefined_flag_CXX \
18346 export_symbols_cmds_CXX \
18347 hardcode_libdir_flag_spec_CXX \
18348 hardcode_libdir_flag_spec_ld_CXX \
18349 hardcode_libdir_separator_CXX \
18350 hardcode_automatic_CXX \
18351 module_cmds_CXX \
18352 module_expsym_cmds_CXX \
18353 lt_cv_prog_compiler_c_o_CXX \
18354 exclude_expsyms_CXX \
18355 include_expsyms_CXX; do
18356
18357 case $var in
18358 old_archive_cmds_CXX | \
18359 old_archive_from_new_cmds_CXX | \
18360 archive_cmds_CXX | \
18361 archive_expsym_cmds_CXX | \
18362 module_cmds_CXX | \
18363 module_expsym_cmds_CXX | \
18364 old_archive_from_expsyms_cmds_CXX | \
18365 export_symbols_cmds_CXX | \
18366 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18367 postinstall_cmds | postuninstall_cmds | \
18368 old_postinstall_cmds | old_postuninstall_cmds | \
18369 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18370 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018371 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 +000018372 ;;
18373 *)
18374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18375 ;;
18376 esac
18377 done
18378
18379 case $lt_echo in
18380 *'\$0 --fallback-echo"')
18381 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18382 ;;
18383 esac
18384
18385cfgfile="$ofile"
18386
18387 cat <<__EOF__ >> "$cfgfile"
18388# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18389
18390# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18391
18392# Shell to use when invoking shell scripts.
18393SHELL=$lt_SHELL
18394
18395# Whether or not to build shared libraries.
18396build_libtool_libs=$enable_shared
18397
18398# Whether or not to build static libraries.
18399build_old_libs=$enable_static
18400
18401# Whether or not to add -lc for building shared libraries.
18402build_libtool_need_lc=$archive_cmds_need_lc_CXX
18403
18404# Whether or not to disallow shared libs when runtime libs are static
18405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18406
18407# Whether or not to optimize for fast installation.
18408fast_install=$enable_fast_install
18409
18410# The host system.
18411host_alias=$host_alias
18412host=$host
18413
18414# An echo program that does not interpret backslashes.
18415echo=$lt_echo
18416
18417# The archiver.
18418AR=$lt_AR
18419AR_FLAGS=$lt_AR_FLAGS
18420
18421# A C compiler.
18422LTCC=$lt_LTCC
18423
18424# A language-specific compiler.
18425CC=$lt_compiler_CXX
18426
18427# Is the compiler the GNU C compiler?
18428with_gcc=$GCC_CXX
18429
18430# An ERE matcher.
18431EGREP=$lt_EGREP
18432
18433# The linker used to build libraries.
18434LD=$lt_LD_CXX
18435
18436# Whether we need hard or soft links.
18437LN_S=$lt_LN_S
18438
18439# A BSD-compatible nm program.
18440NM=$lt_NM
18441
18442# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018443STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018444
18445# Used to examine libraries when file_magic_cmd begins "file"
18446MAGIC_CMD=$MAGIC_CMD
18447
18448# Used on cygwin: DLL creation program.
18449DLLTOOL="$DLLTOOL"
18450
18451# Used on cygwin: object dumper.
18452OBJDUMP="$OBJDUMP"
18453
18454# Used on cygwin: assembler.
18455AS="$AS"
18456
18457# The name of the directory that contains temporary libtool files.
18458objdir=$objdir
18459
18460# How to create reloadable object files.
18461reload_flag=$lt_reload_flag
18462reload_cmds=$lt_reload_cmds
18463
18464# How to pass a linker flag through the compiler.
18465wl=$lt_lt_prog_compiler_wl_CXX
18466
18467# Object file suffix (normally "o").
18468objext="$ac_objext"
18469
18470# Old archive suffix (normally "a").
18471libext="$libext"
18472
18473# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018474shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018475
18476# Executable file suffix (normally "").
18477exeext="$exeext"
18478
18479# Additional compiler flags for building library objects.
18480pic_flag=$lt_lt_prog_compiler_pic_CXX
18481pic_mode=$pic_mode
18482
18483# What is the maximum length of a command?
18484max_cmd_len=$lt_cv_sys_max_cmd_len
18485
18486# Does compiler simultaneously support -c and -o options?
18487compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18488
18489# Must we lock files when doing compilation ?
18490need_locks=$lt_need_locks
18491
18492# Do we need the lib prefix for modules?
18493need_lib_prefix=$need_lib_prefix
18494
18495# Do we need a version for libraries?
18496need_version=$need_version
18497
18498# Whether dlopen is supported.
18499dlopen_support=$enable_dlopen
18500
18501# Whether dlopen of programs is supported.
18502dlopen_self=$enable_dlopen_self
18503
18504# Whether dlopen of statically linked programs is supported.
18505dlopen_self_static=$enable_dlopen_self_static
18506
18507# Compiler flag to prevent dynamic linking.
18508link_static_flag=$lt_lt_prog_compiler_static_CXX
18509
18510# Compiler flag to turn off builtin functions.
18511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18512
18513# Compiler flag to allow reflexive dlopens.
18514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18515
18516# Compiler flag to generate shared objects directly from archives.
18517whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18518
18519# Compiler flag to generate thread-safe objects.
18520thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18521
18522# Library versioning type.
18523version_type=$version_type
18524
18525# Format of library name prefix.
18526libname_spec=$lt_libname_spec
18527
18528# List of archive names. First name is the real one, the rest are links.
18529# The last name is the one that the linker finds with -lNAME.
18530library_names_spec=$lt_library_names_spec
18531
18532# The coded name of the library, if different from the real name.
18533soname_spec=$lt_soname_spec
18534
18535# Commands used to build and install an old-style archive.
18536RANLIB=$lt_RANLIB
18537old_archive_cmds=$lt_old_archive_cmds_CXX
18538old_postinstall_cmds=$lt_old_postinstall_cmds
18539old_postuninstall_cmds=$lt_old_postuninstall_cmds
18540
18541# Create an old-style archive from a shared archive.
18542old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18543
18544# Create a temporary old-style archive to link instead of a shared archive.
18545old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18546
18547# Commands used to build and install a shared archive.
18548archive_cmds=$lt_archive_cmds_CXX
18549archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18550postinstall_cmds=$lt_postinstall_cmds
18551postuninstall_cmds=$lt_postuninstall_cmds
18552
18553# Commands used to build a loadable module (assumed same as above if empty)
18554module_cmds=$lt_module_cmds_CXX
18555module_expsym_cmds=$lt_module_expsym_cmds_CXX
18556
18557# Commands to strip libraries.
18558old_striplib=$lt_old_striplib
18559striplib=$lt_striplib
18560
18561# Dependencies to place before the objects being linked to create a
18562# shared library.
18563predep_objects=$lt_predep_objects_CXX
18564
18565# Dependencies to place after the objects being linked to create a
18566# shared library.
18567postdep_objects=$lt_postdep_objects_CXX
18568
18569# Dependencies to place before the objects being linked to create a
18570# shared library.
18571predeps=$lt_predeps_CXX
18572
18573# Dependencies to place after the objects being linked to create a
18574# shared library.
18575postdeps=$lt_postdeps_CXX
18576
18577# The library search path used internally by the compiler when linking
18578# a shared library.
18579compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18580
18581# Method to check whether dependent libraries are shared objects.
18582deplibs_check_method=$lt_deplibs_check_method
18583
18584# Command to use when deplibs_check_method == file_magic.
18585file_magic_cmd=$lt_file_magic_cmd
18586
18587# Flag that allows shared libraries with undefined symbols to be built.
18588allow_undefined_flag=$lt_allow_undefined_flag_CXX
18589
18590# Flag that forces no undefined symbols.
18591no_undefined_flag=$lt_no_undefined_flag_CXX
18592
18593# Commands used to finish a libtool library installation in a directory.
18594finish_cmds=$lt_finish_cmds
18595
18596# Same as above, but a single script fragment to be evaled but not shown.
18597finish_eval=$lt_finish_eval
18598
18599# Take the output of nm and produce a listing of raw symbols and C names.
18600global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18601
18602# Transform the output of nm in a proper C declaration
18603global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18604
18605# Transform the output of nm in a C name address pair
18606global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18607
18608# This is the shared library runtime path variable.
18609runpath_var=$runpath_var
18610
18611# This is the shared library path variable.
18612shlibpath_var=$shlibpath_var
18613
18614# Is shlibpath searched before the hard-coded library search path?
18615shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18616
18617# How to hardcode a shared library path into an executable.
18618hardcode_action=$hardcode_action_CXX
18619
18620# Whether we should hardcode library paths into libraries.
18621hardcode_into_libs=$hardcode_into_libs
18622
18623# Flag to hardcode \$libdir into a binary during linking.
18624# This must work even if \$libdir does not exist.
18625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18626
18627# If ld is used when linking, flag to hardcode \$libdir into
18628# a binary during linking. This must work even if \$libdir does
18629# not exist.
18630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18631
18632# Whether we need a single -rpath flag with a separated argument.
18633hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18634
18635# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18636# resulting binary.
18637hardcode_direct=$hardcode_direct_CXX
18638
18639# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18640# resulting binary.
18641hardcode_minus_L=$hardcode_minus_L_CXX
18642
18643# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18644# the resulting binary.
18645hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18646
18647# Set to yes if building a shared library automatically hardcodes DIR into the library
18648# and all subsequent libraries and executables linked against it.
18649hardcode_automatic=$hardcode_automatic_CXX
18650
18651# Variables whose values should be saved in libtool wrapper scripts and
18652# restored at relink time.
18653variables_saved_for_relink="$variables_saved_for_relink"
18654
18655# Whether libtool must link a program against all its dependency libraries.
18656link_all_deplibs=$link_all_deplibs_CXX
18657
18658# Compile-time system search path for libraries
18659sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18660
18661# Run-time system search path for libraries
18662sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18663
18664# Fix the shell variable \$srcfile for the compiler.
18665fix_srcfile_path="$fix_srcfile_path_CXX"
18666
18667# Set to yes if exported symbols are required.
18668always_export_symbols=$always_export_symbols_CXX
18669
18670# The commands to list exported symbols.
18671export_symbols_cmds=$lt_export_symbols_cmds_CXX
18672
18673# The commands to extract the exported symbol list from a shared archive.
18674extract_expsyms_cmds=$lt_extract_expsyms_cmds
18675
18676# Symbols that should not be listed in the preloaded symbols.
18677exclude_expsyms=$lt_exclude_expsyms_CXX
18678
18679# Symbols that must always be exported.
18680include_expsyms=$lt_include_expsyms_CXX
18681
18682# ### END LIBTOOL TAG CONFIG: $tagname
18683
18684__EOF__
18685
18686
18687else
18688 # If there is no Makefile yet, we rely on a make rule to execute
18689 # `config.status --recheck' to rerun these tests and create the
18690 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18692 if test -f "$ltmain_in"; then
18693 test -f Makefile && make "$ltmain"
18694 fi
John Criswell47fdd832003-07-14 16:52:07 +000018695fi
18696
18697
18698ac_ext=c
18699ac_cpp='$CPP $CPPFLAGS'
18700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18702ac_compiler_gnu=$ac_cv_c_compiler_gnu
18703
18704CC=$lt_save_CC
18705LDCXX=$LD
18706LD=$lt_save_LD
18707GCC=$lt_save_GCC
18708with_gnu_ldcxx=$with_gnu_ld
18709with_gnu_ld=$lt_save_with_gnu_ld
18710lt_cv_path_LDCXX=$lt_cv_path_LD
18711lt_cv_path_LD=$lt_save_path_LD
18712lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18713lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18714
18715 else
18716 tagname=""
18717 fi
18718 ;;
18719
18720 F77)
18721 if test -n "$F77" && test "X$F77" != "Xno"; then
18722
18723ac_ext=f
18724ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18725ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18726ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18727
18728
18729archive_cmds_need_lc_F77=no
18730allow_undefined_flag_F77=
18731always_export_symbols_F77=no
18732archive_expsym_cmds_F77=
18733export_dynamic_flag_spec_F77=
18734hardcode_direct_F77=no
18735hardcode_libdir_flag_spec_F77=
18736hardcode_libdir_flag_spec_ld_F77=
18737hardcode_libdir_separator_F77=
18738hardcode_minus_L_F77=no
18739hardcode_automatic_F77=no
18740module_cmds_F77=
18741module_expsym_cmds_F77=
18742link_all_deplibs_F77=unknown
18743old_archive_cmds_F77=$old_archive_cmds
18744no_undefined_flag_F77=
18745whole_archive_flag_spec_F77=
18746enable_shared_with_static_runtimes_F77=no
18747
18748# Source file extension for f77 test sources.
18749ac_ext=f
18750
18751# Object file extension for compiled f77 test sources.
18752objext=o
18753objext_F77=$objext
18754
18755# Code to be used in simple compile tests
18756lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18757
18758# Code to be used in simple link tests
18759lt_simple_link_test_code=" program t\n end\n"
18760
18761# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18762
18763# If no C compiler was specified, use CC.
18764LTCC=${LTCC-"$CC"}
18765
18766# Allow CC to be a program name with arguments.
18767compiler=$CC
18768
18769
18770# Allow CC to be a program name with arguments.
18771lt_save_CC="$CC"
18772CC=${F77-"f77"}
18773compiler=$CC
18774compiler_F77=$CC
18775cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18776
18777echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18778echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18779echo "$as_me:$LINENO: result: $can_build_shared" >&5
18780echo "${ECHO_T}$can_build_shared" >&6
18781
18782echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18783echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18784test "$can_build_shared" = "no" && enable_shared=no
18785
18786# On AIX, shared libraries and static libraries use the same namespace, and
18787# are all built from PIC.
18788case "$host_os" in
18789aix3*)
18790 test "$enable_shared" = yes && enable_static=no
18791 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018793 postinstall_cmds='$RANLIB $lib'
18794 fi
18795 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018796aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018797 test "$enable_shared" = yes && enable_static=no
18798 ;;
18799esac
18800echo "$as_me:$LINENO: result: $enable_shared" >&5
18801echo "${ECHO_T}$enable_shared" >&6
18802
18803echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18804echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18805# Make sure either enable_shared or enable_static is yes.
18806test "$enable_shared" = yes || enable_static=yes
18807echo "$as_me:$LINENO: result: $enable_static" >&5
18808echo "${ECHO_T}$enable_static" >&6
18809
18810test "$ld_shlibs_F77" = no && can_build_shared=no
18811
18812GCC_F77="$G77"
18813LD_F77="$LD"
18814
18815lt_prog_compiler_wl_F77=
18816lt_prog_compiler_pic_F77=
18817lt_prog_compiler_static_F77=
18818
18819echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18820echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18821
18822 if test "$GCC" = yes; then
18823 lt_prog_compiler_wl_F77='-Wl,'
18824 lt_prog_compiler_static_F77='-static'
18825
18826 case $host_os in
18827 aix*)
18828 # All AIX code is PIC.
18829 if test "$host_cpu" = ia64; then
18830 # AIX 5 now supports IA64 processor
18831 lt_prog_compiler_static_F77='-Bstatic'
18832 fi
18833 ;;
18834
18835 amigaos*)
18836 # FIXME: we need at least 68020 code to build shared libraries, but
18837 # adding the `-m68020' flag to GCC prevents building anything better,
18838 # like `-m68040'.
18839 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18840 ;;
18841
18842 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18843 # PIC is the default for these OSes.
18844 ;;
18845
18846 mingw* | pw32* | os2*)
18847 # This hack is so that the source file can tell whether it is being
18848 # built for inclusion in a dll (and should export symbols for example).
18849 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18850 ;;
18851
18852 darwin* | rhapsody*)
18853 # PIC is the default on this platform
18854 # Common symbols not allowed in MH_DYLIB files
18855 lt_prog_compiler_pic_F77='-fno-common'
18856 ;;
18857
18858 msdosdjgpp*)
18859 # Just because we use GCC doesn't mean we suddenly get shared libraries
18860 # on systems that don't support them.
18861 lt_prog_compiler_can_build_shared_F77=no
18862 enable_shared=no
18863 ;;
18864
18865 sysv4*MP*)
18866 if test -d /usr/nec; then
18867 lt_prog_compiler_pic_F77=-Kconform_pic
18868 fi
18869 ;;
18870
18871 hpux*)
18872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18873 # not for PA HP-UX.
18874 case "$host_cpu" in
18875 hppa*64*|ia64*)
18876 # +Z the default
18877 ;;
18878 *)
18879 lt_prog_compiler_pic_F77='-fPIC'
18880 ;;
18881 esac
18882 ;;
18883
18884 *)
18885 lt_prog_compiler_pic_F77='-fPIC'
18886 ;;
18887 esac
18888 else
18889 # PORTME Check for flag to pass linker flags through the system compiler.
18890 case $host_os in
18891 aix*)
18892 lt_prog_compiler_wl_F77='-Wl,'
18893 if test "$host_cpu" = ia64; then
18894 # AIX 5 now supports IA64 processor
18895 lt_prog_compiler_static_F77='-Bstatic'
18896 else
18897 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18898 fi
18899 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018900 darwin*)
18901 # PIC is the default on this platform
18902 # Common symbols not allowed in MH_DYLIB files
18903 case "$cc_basename" in
18904 xlc*)
18905 lt_prog_compiler_pic_F77='-qnocommon'
18906 lt_prog_compiler_wl_F77='-Wl,'
18907 ;;
18908 esac
18909 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018910
18911 mingw* | pw32* | os2*)
18912 # This hack is so that the source file can tell whether it is being
18913 # built for inclusion in a dll (and should export symbols for example).
18914 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18915 ;;
18916
18917 hpux9* | hpux10* | hpux11*)
18918 lt_prog_compiler_wl_F77='-Wl,'
18919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18920 # not for PA HP-UX.
18921 case "$host_cpu" in
18922 hppa*64*|ia64*)
18923 # +Z the default
18924 ;;
18925 *)
18926 lt_prog_compiler_pic_F77='+Z'
18927 ;;
18928 esac
18929 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18930 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18931 ;;
18932
18933 irix5* | irix6* | nonstopux*)
18934 lt_prog_compiler_wl_F77='-Wl,'
18935 # PIC (with -KPIC) is the default.
18936 lt_prog_compiler_static_F77='-non_shared'
18937 ;;
18938
18939 newsos6)
18940 lt_prog_compiler_pic_F77='-KPIC'
18941 lt_prog_compiler_static_F77='-Bstatic'
18942 ;;
18943
18944 linux*)
18945 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018946 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018947 lt_prog_compiler_wl_F77='-Wl,'
18948 lt_prog_compiler_pic_F77='-KPIC'
18949 lt_prog_compiler_static_F77='-static'
18950 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018951 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018952 lt_prog_compiler_wl_F77='-Wl,'
18953 # All Alpha code is PIC.
18954 lt_prog_compiler_static_F77='-non_shared'
18955 ;;
18956 esac
18957 ;;
18958
18959 osf3* | osf4* | osf5*)
18960 lt_prog_compiler_wl_F77='-Wl,'
18961 # All OSF/1 code is PIC.
18962 lt_prog_compiler_static_F77='-non_shared'
18963 ;;
18964
18965 sco3.2v5*)
18966 lt_prog_compiler_pic_F77='-Kpic'
18967 lt_prog_compiler_static_F77='-dn'
18968 ;;
18969
18970 solaris*)
18971 lt_prog_compiler_wl_F77='-Wl,'
18972 lt_prog_compiler_pic_F77='-KPIC'
18973 lt_prog_compiler_static_F77='-Bstatic'
18974 ;;
18975
18976 sunos4*)
18977 lt_prog_compiler_wl_F77='-Qoption ld '
18978 lt_prog_compiler_pic_F77='-PIC'
18979 lt_prog_compiler_static_F77='-Bstatic'
18980 ;;
18981
18982 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18983 lt_prog_compiler_wl_F77='-Wl,'
18984 lt_prog_compiler_pic_F77='-KPIC'
18985 lt_prog_compiler_static_F77='-Bstatic'
18986 ;;
18987
18988 sysv4*MP*)
18989 if test -d /usr/nec ;then
18990 lt_prog_compiler_pic_F77='-Kconform_pic'
18991 lt_prog_compiler_static_F77='-Bstatic'
18992 fi
18993 ;;
18994
18995 uts4*)
18996 lt_prog_compiler_pic_F77='-pic'
18997 lt_prog_compiler_static_F77='-Bstatic'
18998 ;;
18999
19000 *)
19001 lt_prog_compiler_can_build_shared_F77=no
19002 ;;
19003 esac
19004 fi
19005
19006echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19007echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19008
19009#
19010# Check to make sure the PIC flag actually works.
19011#
19012if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019013
19014echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019015echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19016if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19018else
19019 lt_prog_compiler_pic_works_F77=no
19020 ac_outfile=conftest.$ac_objext
19021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19022 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19023 # Insert the option either (1) after the last *FLAGS variable, or
19024 # (2) before a word containing "conftest.", or (3) at the end.
19025 # Note that $ac_compile itself does not contain backslashes and begins
19026 # with a dollar sign (not a hyphen), so the echo should work correctly.
19027 # The option is referenced via a variable to avoid confusing sed.
19028 lt_compile=`echo "$ac_compile" | $SED \
19029 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19031 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000019032 (eval echo "\"\$as_me:19032: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019033 (eval "$lt_compile" 2>conftest.err)
19034 ac_status=$?
19035 cat conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000019036 echo "$as_me:19036: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019037 if (exit $ac_status) && test -s "$ac_outfile"; then
19038 # The compiler can only warn and ignore the option if not recognized
19039 # So say no if there are warnings
19040 if test ! -s conftest.err; then
19041 lt_prog_compiler_pic_works_F77=yes
19042 fi
19043 fi
19044 $rm conftest*
19045
19046fi
19047echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19048echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19049
19050if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19051 case $lt_prog_compiler_pic_F77 in
19052 "" | " "*) ;;
19053 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19054 esac
19055else
19056 lt_prog_compiler_pic_F77=
19057 lt_prog_compiler_can_build_shared_F77=no
19058fi
19059
19060fi
19061case "$host_os" in
19062 # For platforms which do not support PIC, -DPIC is meaningless:
19063 *djgpp*)
19064 lt_prog_compiler_pic_F77=
19065 ;;
19066 *)
19067 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19068 ;;
19069esac
19070
19071echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19072echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19073if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19075else
19076 lt_cv_prog_compiler_c_o_F77=no
19077 $rm -r conftest 2>/dev/null
19078 mkdir conftest
19079 cd conftest
19080 mkdir out
19081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19082
John Criswell47fdd832003-07-14 16:52:07 +000019083 lt_compiler_flag="-o out/conftest2.$ac_objext"
19084 # Insert the option either (1) after the last *FLAGS variable, or
19085 # (2) before a word containing "conftest.", or (3) at the end.
19086 # Note that $ac_compile itself does not contain backslashes and begins
19087 # with a dollar sign (not a hyphen), so the echo should work correctly.
19088 lt_compile=`echo "$ac_compile" | $SED \
19089 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19091 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000019092 (eval echo "\"\$as_me:19092: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019093 (eval "$lt_compile" 2>out/conftest.err)
19094 ac_status=$?
19095 cat out/conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000019096 echo "$as_me:19096: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19098 then
19099 # The compiler can only warn and ignore the option if not recognized
19100 # So say no if there are warnings
19101 if test ! -s out/conftest.err; then
19102 lt_cv_prog_compiler_c_o_F77=yes
19103 fi
19104 fi
19105 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019106 $rm conftest*
19107 # SGI C++ compiler will create directory out/ii_files/ for
19108 # template instantiation
19109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19110 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019111 cd ..
19112 rmdir conftest
19113 $rm conftest*
19114
19115fi
19116echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19117echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19118
19119
19120hard_links="nottested"
19121if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19122 # do not overwrite the value of need_locks provided by the user
19123 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19124echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19125 hard_links=yes
19126 $rm conftest*
19127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19128 touch conftest.a
19129 ln conftest.a conftest.b 2>&5 || hard_links=no
19130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19131 echo "$as_me:$LINENO: result: $hard_links" >&5
19132echo "${ECHO_T}$hard_links" >&6
19133 if test "$hard_links" = no; then
19134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19135echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19136 need_locks=warn
19137 fi
19138else
19139 need_locks=no
19140fi
19141
19142echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19143echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19144
19145 runpath_var=
19146 allow_undefined_flag_F77=
19147 enable_shared_with_static_runtimes_F77=no
19148 archive_cmds_F77=
19149 archive_expsym_cmds_F77=
19150 old_archive_From_new_cmds_F77=
19151 old_archive_from_expsyms_cmds_F77=
19152 export_dynamic_flag_spec_F77=
19153 whole_archive_flag_spec_F77=
19154 thread_safe_flag_spec_F77=
19155 hardcode_libdir_flag_spec_F77=
19156 hardcode_libdir_flag_spec_ld_F77=
19157 hardcode_libdir_separator_F77=
19158 hardcode_direct_F77=no
19159 hardcode_minus_L_F77=no
19160 hardcode_shlibpath_var_F77=unsupported
19161 link_all_deplibs_F77=unknown
19162 hardcode_automatic_F77=no
19163 module_cmds_F77=
19164 module_expsym_cmds_F77=
19165 always_export_symbols_F77=no
19166 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19167 # include_expsyms should be a list of space-separated symbols to be *always*
19168 # included in the symbol list
19169 include_expsyms_F77=
19170 # exclude_expsyms can be an extended regexp of symbols to exclude
19171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19173 # as well as any symbol that contains `d'.
19174 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19176 # platforms (ab)use it in PIC code, but their linkers get confused if
19177 # the symbol is explicitly referenced. Since portable code cannot
19178 # rely on this symbol name, it's probably fine to never include it in
19179 # preloaded symbol tables.
19180 extract_expsyms_cmds=
19181
19182 case $host_os in
19183 cygwin* | mingw* | pw32*)
19184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19185 # When not using gcc, we currently assume that we are using
19186 # Microsoft Visual C++.
19187 if test "$GCC" != yes; then
19188 with_gnu_ld=no
19189 fi
19190 ;;
19191 openbsd*)
19192 with_gnu_ld=no
19193 ;;
19194 esac
19195
19196 ld_shlibs_F77=yes
19197 if test "$with_gnu_ld" = yes; then
19198 # If archive_cmds runs LD, not CC, wlarc should be empty
19199 wlarc='${wl}'
19200
19201 # See if GNU ld supports shared libraries.
19202 case $host_os in
19203 aix3* | aix4* | aix5*)
19204 # On AIX/PPC, the GNU linker is very broken
19205 if test "$host_cpu" != ia64; then
19206 ld_shlibs_F77=no
19207 cat <<EOF 1>&2
19208
19209*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19210*** to be unable to reliably create shared libraries on AIX.
19211*** Therefore, libtool is disabling shared libraries support. If you
19212*** really care for shared libraries, you may want to modify your PATH
19213*** so that a non-GNU linker is found, and then restart.
19214
19215EOF
19216 fi
19217 ;;
19218
19219 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019220 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 +000019221 hardcode_libdir_flag_spec_F77='-L$libdir'
19222 hardcode_minus_L_F77=yes
19223
19224 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19225 # that the semantics of dynamic libraries on AmigaOS, at least up
19226 # to version 4, is to share data among multiple programs linked
19227 # with the same dynamic library. Since this doesn't match the
19228 # behavior of shared libraries on other platforms, we can't use
19229 # them.
19230 ld_shlibs_F77=no
19231 ;;
19232
19233 beos*)
19234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19235 allow_undefined_flag_F77=unsupported
19236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19237 # support --undefined. This deserves some investigation. FIXME
19238 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 else
19240 ld_shlibs_F77=no
19241 fi
19242 ;;
19243
19244 cygwin* | mingw* | pw32*)
19245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19246 # as there is no search path for DLLs.
19247 hardcode_libdir_flag_spec_F77='-L$libdir'
19248 allow_undefined_flag_F77=unsupported
19249 always_export_symbols_F77=no
19250 enable_shared_with_static_runtimes_F77=yes
19251 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19252
19253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19255 # If the export-symbols file already is a .def file (1st line
19256 # is EXPORTS), use it as is; otherwise, prepend...
19257 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19258 cp $export_symbols $output_objdir/$soname.def;
19259 else
19260 echo EXPORTS > $output_objdir/$soname.def;
19261 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019262 fi~
19263 $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 +000019264 else
19265 ld_shlibs=no
19266 fi
19267 ;;
19268
19269 netbsd*)
19270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19271 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19272 wlarc=
19273 else
19274 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19275 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19276 fi
19277 ;;
19278
19279 solaris* | sysv5*)
19280 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19281 ld_shlibs_F77=no
19282 cat <<EOF 1>&2
19283
19284*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19285*** create shared libraries on Solaris systems. Therefore, libtool
19286*** is disabling shared libraries support. We urge you to upgrade GNU
19287*** binutils to release 2.9.1 or newer. Another option is to modify
19288*** your PATH or compiler configuration so that the native linker is
19289*** used, and then restart.
19290
19291EOF
19292 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19293 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19294 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19295 else
19296 ld_shlibs_F77=no
19297 fi
19298 ;;
19299
19300 sunos4*)
19301 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19302 wlarc=
19303 hardcode_direct_F77=yes
19304 hardcode_shlibpath_var_F77=no
19305 ;;
19306
Reid Spencer2706f8c2004-09-19 23:53:36 +000019307 linux*)
19308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19309 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19310 archive_cmds_F77="$tmp_archive_cmds"
19311 supports_anon_versioning=no
19312 case `$LD -v 2>/dev/null` in
19313 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19316 *\ 2.11.*) ;; # other 2.11 versions
19317 *) supports_anon_versioning=yes ;;
19318 esac
19319 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019320 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19321cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19322$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019323 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19324 else
19325 archive_expsym_cmds_F77="$tmp_archive_cmds"
19326 fi
19327 else
19328 ld_shlibs_F77=no
19329 fi
19330 ;;
19331
John Criswell47fdd832003-07-14 16:52:07 +000019332 *)
19333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19334 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19335 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19336 else
19337 ld_shlibs_F77=no
19338 fi
19339 ;;
19340 esac
19341
19342 if test "$ld_shlibs_F77" = yes; then
19343 runpath_var=LD_RUN_PATH
19344 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19345 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19346 # ancient GNU ld didn't support --whole-archive et. al.
19347 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19348 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19349 else
19350 whole_archive_flag_spec_F77=
19351 fi
19352 fi
19353 else
19354 # PORTME fill in a description of your system's linker (not GNU ld)
19355 case $host_os in
19356 aix3*)
19357 allow_undefined_flag_F77=unsupported
19358 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019359 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 +000019360 # Note: this linker hardcodes the directories in LIBPATH if there
19361 # are no directories specified by -L.
19362 hardcode_minus_L_F77=yes
19363 if test "$GCC" = yes && test -z "$link_static_flag"; then
19364 # Neither direct hardcoding nor static linking is supported with a
19365 # broken collect2.
19366 hardcode_direct_F77=unsupported
19367 fi
19368 ;;
19369
19370 aix4* | aix5*)
19371 if test "$host_cpu" = ia64; then
19372 # On IA64, the linker does run time linking by default, so we don't
19373 # have to do anything special.
19374 aix_use_runtimelinking=no
19375 exp_sym_flag='-Bexport'
19376 no_entry_flag=""
19377 else
19378 # If we're using GNU nm, then we don't want the "-C" option.
19379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19380 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19381 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'
19382 else
19383 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'
19384 fi
19385 aix_use_runtimelinking=no
19386
19387 # Test if we are trying to use run time linking or normal
19388 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19389 # need to do runtime linking.
19390 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19391 for ld_flag in $LDFLAGS; do
19392 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19393 aix_use_runtimelinking=yes
19394 break
19395 fi
19396 done
19397 esac
19398
19399 exp_sym_flag='-bexport'
19400 no_entry_flag='-bnoentry'
19401 fi
19402
19403 # When large executables or shared objects are built, AIX ld can
19404 # have problems creating the table of contents. If linking a library
19405 # or program results in "error TOC overflow" add -mminimal-toc to
19406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19408
19409 archive_cmds_F77=''
19410 hardcode_direct_F77=yes
19411 hardcode_libdir_separator_F77=':'
19412 link_all_deplibs_F77=yes
19413
19414 if test "$GCC" = yes; then
19415 case $host_os in aix4.012|aix4.012.*)
19416 # We only want to do this on AIX 4.2 and lower, the check
19417 # below for broken collect2 doesn't work under 4.3+
19418 collect2name=`${CC} -print-prog-name=collect2`
19419 if test -f "$collect2name" && \
19420 strings "$collect2name" | grep resolve_lib_name >/dev/null
19421 then
19422 # We have reworked collect2
19423 hardcode_direct_F77=yes
19424 else
19425 # We have old collect2
19426 hardcode_direct_F77=unsupported
19427 # It fails to find uninstalled libraries when the uninstalled
19428 # path is not listed in the libpath. Setting hardcode_minus_L
19429 # to unsupported forces relinking
19430 hardcode_minus_L_F77=yes
19431 hardcode_libdir_flag_spec_F77='-L$libdir'
19432 hardcode_libdir_separator_F77=
19433 fi
19434 esac
19435 shared_flag='-shared'
19436 else
19437 # not using gcc
19438 if test "$host_cpu" = ia64; then
19439 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19440 # chokes on -Wl,-G. The following line is correct:
19441 shared_flag='-G'
19442 else
19443 if test "$aix_use_runtimelinking" = yes; then
19444 shared_flag='${wl}-G'
19445 else
19446 shared_flag='${wl}-bM:SRE'
19447 fi
19448 fi
19449 fi
19450
19451 # It seems that -bexpall does not export symbols beginning with
19452 # underscore (_), so it is better to generate a list of symbols to export.
19453 always_export_symbols_F77=yes
19454 if test "$aix_use_runtimelinking" = yes; then
19455 # Warning - without using the other runtime loading flags (-brtl),
19456 # -berok will link without error, but may produce a broken library.
19457 allow_undefined_flag_F77='-berok'
19458 # Determine the default libpath from the value encoded in an empty executable.
19459 cat >conftest.$ac_ext <<_ACEOF
19460 program main
19461
19462 end
19463_ACEOF
19464rm -f conftest.$ac_objext conftest$ac_exeext
19465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019466 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019467 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019473 { ac_try='test -z "$ac_f77_werror_flag"
19474 || test ! -s conftest.err'
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486
19487aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19488}'`
19489# Check for a 64-bit object if we didn't find anything.
19490if 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; }
19491}'`; fi
19492else
19493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019494sed 's/^/| /' conftest.$ac_ext >&5
19495
John Criswell47fdd832003-07-14 16:52:07 +000019496fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019497rm -f conftest.err conftest.$ac_objext \
19498 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19500
19501 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19502 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"
19503 else
19504 if test "$host_cpu" = ia64; then
19505 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19506 allow_undefined_flag_F77="-z nodefs"
19507 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"
19508 else
19509 # Determine the default libpath from the value encoded in an empty executable.
19510 cat >conftest.$ac_ext <<_ACEOF
19511 program main
19512
19513 end
19514_ACEOF
19515rm -f conftest.$ac_objext conftest$ac_exeext
19516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019517 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019518 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019524 { ac_try='test -z "$ac_f77_werror_flag"
19525 || test ! -s conftest.err'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537
19538aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19539}'`
19540# Check for a 64-bit object if we didn't find anything.
19541if 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; }
19542}'`; fi
19543else
19544 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019545sed 's/^/| /' conftest.$ac_ext >&5
19546
John Criswell47fdd832003-07-14 16:52:07 +000019547fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019548rm -f conftest.err conftest.$ac_objext \
19549 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019550if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19551
19552 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19553 # Warning - without using the other run time loading flags,
19554 # -berok will link without error, but may produce a broken library.
19555 no_undefined_flag_F77=' ${wl}-bernotok'
19556 allow_undefined_flag_F77=' ${wl}-berok'
19557 # -bexpall does not export symbols beginning with underscore (_)
19558 always_export_symbols_F77=yes
19559 # Exported symbols can be pulled into shared objects from archives
19560 whole_archive_flag_spec_F77=' '
19561 archive_cmds_need_lc_F77=yes
19562 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019563 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 +000019564 fi
19565 fi
19566 ;;
19567
19568 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019569 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 +000019570 hardcode_libdir_flag_spec_F77='-L$libdir'
19571 hardcode_minus_L_F77=yes
19572 # see comment about different semantics on the GNU ld section
19573 ld_shlibs_F77=no
19574 ;;
19575
Reid Spencer2706f8c2004-09-19 23:53:36 +000019576 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019577 export_dynamic_flag_spec_F77=-rdynamic
19578 ;;
19579
19580 cygwin* | mingw* | pw32*)
19581 # When not using gcc, we currently assume that we are using
19582 # Microsoft Visual C++.
19583 # hardcode_libdir_flag_spec is actually meaningless, as there is
19584 # no search path for DLLs.
19585 hardcode_libdir_flag_spec_F77=' '
19586 allow_undefined_flag_F77=unsupported
19587 # Tell ltmain to make .lib files, not .a files.
19588 libext=lib
19589 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019590 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019591 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019592 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 +000019593 # The linker will automatically build a .lib file if we build a DLL.
19594 old_archive_From_new_cmds_F77='true'
19595 # FIXME: Should let the user specify the lib program.
19596 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19597 fix_srcfile_path='`cygpath -w "$srcfile"`'
19598 enable_shared_with_static_runtimes_F77=yes
19599 ;;
19600
19601 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019602 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019603 rhapsody* | darwin1.[012])
19604 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19605 ;;
19606 *) # Darwin 1.3 on
19607 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19608 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19609 else
19610 case ${MACOSX_DEPLOYMENT_TARGET} in
19611 10.[012])
19612 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19613 ;;
19614 10.*)
19615 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19616 ;;
19617 esac
19618 fi
19619 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019620 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019621 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019622 hardcode_direct_F77=no
19623 hardcode_automatic_F77=yes
19624 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019625 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019626 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019627 if test "$GCC" = yes ; then
19628 output_verbose_link_cmd='echo'
19629 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19630 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19631 # 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 +000019632 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}'
19633 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 +000019634 else
19635 case "$cc_basename" in
19636 xlc*)
19637 output_verbose_link_cmd='echo'
19638 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19639 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19640 # 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 +000019641 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}'
19642 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 +000019643 ;;
19644 *)
19645 ld_shlibs_F77=no
19646 ;;
19647 esac
John Criswell47fdd832003-07-14 16:52:07 +000019648 fi
19649 ;;
19650
19651 dgux*)
19652 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19653 hardcode_libdir_flag_spec_F77='-L$libdir'
19654 hardcode_shlibpath_var_F77=no
19655 ;;
19656
19657 freebsd1*)
19658 ld_shlibs_F77=no
19659 ;;
19660
19661 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19662 # support. Future versions do this automatically, but an explicit c++rt0.o
19663 # does not break anything, and helps significantly (at the cost of a little
19664 # extra space).
19665 freebsd2.2*)
19666 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19667 hardcode_libdir_flag_spec_F77='-R$libdir'
19668 hardcode_direct_F77=yes
19669 hardcode_shlibpath_var_F77=no
19670 ;;
19671
19672 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19673 freebsd2*)
19674 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19675 hardcode_direct_F77=yes
19676 hardcode_minus_L_F77=yes
19677 hardcode_shlibpath_var_F77=no
19678 ;;
19679
19680 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019681 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019682 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19683 hardcode_libdir_flag_spec_F77='-R$libdir'
19684 hardcode_direct_F77=yes
19685 hardcode_shlibpath_var_F77=no
19686 ;;
19687
19688 hpux9*)
19689 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019690 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 +000019691 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019692 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 +000019693 fi
19694 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19695 hardcode_libdir_separator_F77=:
19696 hardcode_direct_F77=yes
19697
19698 # hardcode_minus_L: Not really in the search PATH,
19699 # but as the default location of the library.
19700 hardcode_minus_L_F77=yes
19701 export_dynamic_flag_spec_F77='${wl}-E'
19702 ;;
19703
19704 hpux10* | hpux11*)
19705 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19706 case "$host_cpu" in
19707 hppa*64*|ia64*)
19708 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19709 ;;
19710 *)
19711 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19712 ;;
19713 esac
19714 else
19715 case "$host_cpu" in
19716 hppa*64*|ia64*)
19717 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19718 ;;
19719 *)
19720 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19721 ;;
19722 esac
19723 fi
19724 if test "$with_gnu_ld" = no; then
19725 case "$host_cpu" in
19726 hppa*64*)
19727 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19728 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19729 hardcode_libdir_separator_F77=:
19730 hardcode_direct_F77=no
19731 hardcode_shlibpath_var_F77=no
19732 ;;
19733 ia64*)
19734 hardcode_libdir_flag_spec_F77='-L$libdir'
19735 hardcode_direct_F77=no
19736 hardcode_shlibpath_var_F77=no
19737
19738 # hardcode_minus_L: Not really in the search PATH,
19739 # but as the default location of the library.
19740 hardcode_minus_L_F77=yes
19741 ;;
19742 *)
19743 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19744 hardcode_libdir_separator_F77=:
19745 hardcode_direct_F77=yes
19746 export_dynamic_flag_spec_F77='${wl}-E'
19747
19748 # hardcode_minus_L: Not really in the search PATH,
19749 # but as the default location of the library.
19750 hardcode_minus_L_F77=yes
19751 ;;
19752 esac
19753 fi
19754 ;;
19755
19756 irix5* | irix6* | nonstopux*)
19757 if test "$GCC" = yes; then
19758 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'
19759 else
19760 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'
19761 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19762 fi
19763 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19764 hardcode_libdir_separator_F77=:
19765 link_all_deplibs_F77=yes
19766 ;;
19767
19768 netbsd*)
19769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19770 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19771 else
19772 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19773 fi
19774 hardcode_libdir_flag_spec_F77='-R$libdir'
19775 hardcode_direct_F77=yes
19776 hardcode_shlibpath_var_F77=no
19777 ;;
19778
19779 newsos6)
19780 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19781 hardcode_direct_F77=yes
19782 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19783 hardcode_libdir_separator_F77=:
19784 hardcode_shlibpath_var_F77=no
19785 ;;
19786
19787 openbsd*)
19788 hardcode_direct_F77=yes
19789 hardcode_shlibpath_var_F77=no
19790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19791 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019792 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 +000019793 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19794 export_dynamic_flag_spec_F77='${wl}-E'
19795 else
19796 case $host_os in
19797 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19798 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19799 hardcode_libdir_flag_spec_F77='-R$libdir'
19800 ;;
19801 *)
19802 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19803 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19804 ;;
19805 esac
19806 fi
19807 ;;
19808
19809 os2*)
19810 hardcode_libdir_flag_spec_F77='-L$libdir'
19811 hardcode_minus_L_F77=yes
19812 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019813 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 +000019814 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19815 ;;
19816
19817 osf3*)
19818 if test "$GCC" = yes; then
19819 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19820 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'
19821 else
19822 allow_undefined_flag_F77=' -expect_unresolved \*'
19823 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'
19824 fi
19825 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19826 hardcode_libdir_separator_F77=:
19827 ;;
19828
19829 osf4* | osf5*) # as osf3* with the addition of -msym flag
19830 if test "$GCC" = yes; then
19831 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19832 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'
19833 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19834 else
19835 allow_undefined_flag_F77=' -expect_unresolved \*'
19836 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 +000019837 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~
19838 $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'
19839
John Criswell47fdd832003-07-14 16:52:07 +000019840 # Both c and cxx compiler support -rpath directly
19841 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19842 fi
19843 hardcode_libdir_separator_F77=:
19844 ;;
19845
19846 sco3.2v5*)
19847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19848 hardcode_shlibpath_var_F77=no
19849 export_dynamic_flag_spec_F77='${wl}-Bexport'
19850 runpath_var=LD_RUN_PATH
19851 hardcode_runpath_var=yes
19852 ;;
19853
19854 solaris*)
19855 no_undefined_flag_F77=' -z text'
19856 if test "$GCC" = yes; then
19857 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019858 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19859 $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 +000019860 else
19861 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019862 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19863 $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 +000019864 fi
19865 hardcode_libdir_flag_spec_F77='-R$libdir'
19866 hardcode_shlibpath_var_F77=no
19867 case $host_os in
19868 solaris2.[0-5] | solaris2.[0-5].*) ;;
19869 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19870 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19871 esac
19872 link_all_deplibs_F77=yes
19873 ;;
19874
19875 sunos4*)
19876 if test "x$host_vendor" = xsequent; then
19877 # Use $CC to link under sequent, because it throws in some extra .o
19878 # files that make .init and .fini sections work.
19879 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19880 else
19881 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19882 fi
19883 hardcode_libdir_flag_spec_F77='-L$libdir'
19884 hardcode_direct_F77=yes
19885 hardcode_minus_L_F77=yes
19886 hardcode_shlibpath_var_F77=no
19887 ;;
19888
19889 sysv4)
19890 case $host_vendor in
19891 sni)
19892 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19893 hardcode_direct_F77=yes # is this really true???
19894 ;;
19895 siemens)
19896 ## LD is ld it makes a PLAMLIB
19897 ## CC just makes a GrossModule.
19898 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19899 reload_cmds_F77='$CC -r -o $output$reload_objs'
19900 hardcode_direct_F77=no
19901 ;;
19902 motorola)
19903 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19904 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19905 ;;
19906 esac
19907 runpath_var='LD_RUN_PATH'
19908 hardcode_shlibpath_var_F77=no
19909 ;;
19910
19911 sysv4.3*)
19912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19913 hardcode_shlibpath_var_F77=no
19914 export_dynamic_flag_spec_F77='-Bexport'
19915 ;;
19916
19917 sysv4*MP*)
19918 if test -d /usr/nec; then
19919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19920 hardcode_shlibpath_var_F77=no
19921 runpath_var=LD_RUN_PATH
19922 hardcode_runpath_var=yes
19923 ld_shlibs_F77=yes
19924 fi
19925 ;;
19926
19927 sysv4.2uw2*)
19928 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19929 hardcode_direct_F77=yes
19930 hardcode_minus_L_F77=no
19931 hardcode_shlibpath_var_F77=no
19932 hardcode_runpath_var=yes
19933 runpath_var=LD_RUN_PATH
19934 ;;
19935
19936 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19937 no_undefined_flag_F77='${wl}-z ${wl}text'
19938 if test "$GCC" = yes; then
19939 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19940 else
19941 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19942 fi
19943 runpath_var='LD_RUN_PATH'
19944 hardcode_shlibpath_var_F77=no
19945 ;;
19946
19947 sysv5*)
19948 no_undefined_flag_F77=' -z text'
19949 # $CC -shared without GNU ld will not create a library from C++
19950 # object files and a static libstdc++, better avoid it by now
19951 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019952 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19953 $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 +000019954 hardcode_libdir_flag_spec_F77=
19955 hardcode_shlibpath_var_F77=no
19956 runpath_var='LD_RUN_PATH'
19957 ;;
19958
19959 uts4*)
19960 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19961 hardcode_libdir_flag_spec_F77='-L$libdir'
19962 hardcode_shlibpath_var_F77=no
19963 ;;
19964
19965 *)
19966 ld_shlibs_F77=no
19967 ;;
19968 esac
19969 fi
19970
19971echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19972echo "${ECHO_T}$ld_shlibs_F77" >&6
19973test "$ld_shlibs_F77" = no && can_build_shared=no
19974
19975variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19976if test "$GCC" = yes; then
19977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19978fi
19979
19980#
19981# Do we need to explicitly link libc?
19982#
19983case "x$archive_cmds_need_lc_F77" in
19984x|xyes)
19985 # Assume -lc should be added
19986 archive_cmds_need_lc_F77=yes
19987
19988 if test "$enable_shared" = yes && test "$GCC" = yes; then
19989 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019990 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019991 # FIXME: we may have to deal with multi-command sequences.
19992 ;;
19993 '$CC '*)
19994 # Test whether the compiler implicitly links with -lc since on some
19995 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19996 # to ld, don't add -lc before -lgcc.
19997 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19998echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19999 $rm conftest*
20000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20001
20002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003 (eval $ac_compile) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } 2>conftest.err; then
20007 soname=conftest
20008 lib=conftest
20009 libobjs=conftest.$ac_objext
20010 deplibs=
20011 wl=$lt_prog_compiler_wl_F77
20012 compiler_flags=-v
20013 linker_flags=-v
20014 verstring=
20015 output_objdir=.
20016 libname=conftest
20017 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20018 allow_undefined_flag_F77=
20019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20020 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }
20024 then
20025 archive_cmds_need_lc_F77=no
20026 else
20027 archive_cmds_need_lc_F77=yes
20028 fi
20029 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20030 else
20031 cat conftest.err 1>&5
20032 fi
20033 $rm conftest*
20034 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20035echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20036 ;;
20037 esac
20038 fi
20039 ;;
20040esac
20041
John Criswell47fdd832003-07-14 16:52:07 +000020042echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20043echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20044library_names_spec=
20045libname_spec='lib$name'
20046soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020047shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020048postinstall_cmds=
20049postuninstall_cmds=
20050finish_cmds=
20051finish_eval=
20052shlibpath_var=
20053shlibpath_overrides_runpath=unknown
20054version_type=none
20055dynamic_linker="$host_os ld.so"
20056sys_lib_dlsearch_path_spec="/lib /usr/lib"
20057if test "$GCC" = yes; then
20058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20059 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20060 # if the path contains ";" then we assume it to be the separator
20061 # otherwise default to the standard path separator (i.e. ":") - it is
20062 # assumed that no part of a normal pathname contains ";" but that should
20063 # okay in the real world where ";" in dirpaths is itself problematic.
20064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20065 else
20066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20067 fi
20068else
20069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20070fi
20071need_lib_prefix=unknown
20072hardcode_into_libs=no
20073
20074# when you set need_version to no, make sure it does not cause -set_version
20075# flags to be left without arguments
20076need_version=unknown
20077
20078case $host_os in
20079aix3*)
20080 version_type=linux
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20082 shlibpath_var=LIBPATH
20083
20084 # AIX 3 has no versioning support, so we append a major version to the name.
20085 soname_spec='${libname}${release}${shared_ext}$major'
20086 ;;
20087
20088aix4* | aix5*)
20089 version_type=linux
20090 need_lib_prefix=no
20091 need_version=no
20092 hardcode_into_libs=yes
20093 if test "$host_cpu" = ia64; then
20094 # AIX 5 supports IA64
20095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20096 shlibpath_var=LD_LIBRARY_PATH
20097 else
20098 # With GCC up to 2.95.x, collect2 would create an import file
20099 # for dependence libraries. The import file would start with
20100 # the line `#! .'. This would cause the generated library to
20101 # depend on `.', always an invalid library. This was fixed in
20102 # development snapshots of GCC prior to 3.0.
20103 case $host_os in
20104 aix4 | aix4.[01] | aix4.[01].*)
20105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20106 echo ' yes '
20107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20108 :
20109 else
20110 can_build_shared=no
20111 fi
20112 ;;
20113 esac
20114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20115 # soname into executable. Probably we can add versioning support to
20116 # collect2, so additional links can be useful in future.
20117 if test "$aix_use_runtimelinking" = yes; then
20118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20119 # instead of lib<name>.a to let people know that these are not
20120 # typical AIX shared libraries.
20121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20122 else
20123 # We preserve .a as extension for shared libraries through AIX4.2
20124 # and later when we are not doing run time linking.
20125 library_names_spec='${libname}${release}.a $libname.a'
20126 soname_spec='${libname}${release}${shared_ext}$major'
20127 fi
20128 shlibpath_var=LIBPATH
20129 fi
20130 ;;
20131
20132amigaos*)
20133 library_names_spec='$libname.ixlibrary $libname.a'
20134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020135 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 +000020136 ;;
20137
20138beos*)
20139 library_names_spec='${libname}${shared_ext}'
20140 dynamic_linker="$host_os ld.so"
20141 shlibpath_var=LIBRARY_PATH
20142 ;;
20143
Reid Spencer2706f8c2004-09-19 23:53:36 +000020144bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020145 version_type=linux
20146 need_version=no
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20148 soname_spec='${libname}${release}${shared_ext}$major'
20149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20150 shlibpath_var=LD_LIBRARY_PATH
20151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20153 # the default ld.so.conf also contains /usr/contrib/lib and
20154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20155 # libtool to hard-code these into programs
20156 ;;
20157
20158cygwin* | mingw* | pw32*)
20159 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020160 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020161 need_version=no
20162 need_lib_prefix=no
20163
20164 case $GCC,$host_os in
20165 yes,cygwin* | yes,mingw* | yes,pw32*)
20166 library_names_spec='$libname.dll.a'
20167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020168 postinstall_cmds='base_file=`basename \${file}`~
20169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20170 dldir=$destdir/`dirname \$dlpath`~
20171 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020172 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20174 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020175 $rm \$dlpath'
20176 shlibpath_overrides_runpath=yes
20177
20178 case $host_os in
20179 cygwin*)
20180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20181 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 +000020182 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020183 ;;
20184 mingw*)
20185 # MinGW DLLs use traditional 'lib' prefix
20186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20188 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20189 # It is most probably a Windows format PATH printed by
20190 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20191 # path with ; separators, and with drive letters. We can handle the
20192 # drive letters (cygwin fileutils understands them), so leave them,
20193 # especially as we might pass files found there to a mingw objdump,
20194 # which wouldn't understand a cygwinified path. Ahh.
20195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20196 else
20197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20198 fi
20199 ;;
20200 pw32*)
20201 # pw32 DLLs use 'pw' prefix rather than 'lib'
20202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20203 ;;
20204 esac
20205 ;;
20206
20207 *)
20208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20209 ;;
20210 esac
20211 dynamic_linker='Win32 ld.exe'
20212 # FIXME: first we should search . and the directory the executable is in
20213 shlibpath_var=PATH
20214 ;;
20215
20216darwin* | rhapsody*)
20217 dynamic_linker="$host_os dyld"
20218 version_type=darwin
20219 need_lib_prefix=no
20220 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020221 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020222 soname_spec='${libname}${release}${major}$shared_ext'
20223 shlibpath_overrides_runpath=yes
20224 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020225 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020226 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020227 if test "$GCC" = yes; then
20228 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"`
20229 else
20230 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020231 fi
20232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20233 ;;
20234
20235dgux*)
20236 version_type=linux
20237 need_lib_prefix=no
20238 need_version=no
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 shlibpath_var=LD_LIBRARY_PATH
20242 ;;
20243
20244freebsd1*)
20245 dynamic_linker=no
20246 ;;
20247
Reid Spencer2706f8c2004-09-19 23:53:36 +000020248kfreebsd*-gnu)
20249 version_type=linux
20250 need_lib_prefix=no
20251 need_version=no
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20253 soname_spec='${libname}${release}${shared_ext}$major'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=no
20256 hardcode_into_libs=yes
20257 dynamic_linker='GNU ld.so'
20258 ;;
20259
John Criswell47fdd832003-07-14 16:52:07 +000020260freebsd*)
20261 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20262 version_type=freebsd-$objformat
20263 case $version_type in
20264 freebsd-elf*)
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20266 need_version=no
20267 need_lib_prefix=no
20268 ;;
20269 freebsd-*)
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20271 need_version=yes
20272 ;;
20273 esac
20274 shlibpath_var=LD_LIBRARY_PATH
20275 case $host_os in
20276 freebsd2*)
20277 shlibpath_overrides_runpath=yes
20278 ;;
20279 freebsd3.01* | freebsdelf3.01*)
20280 shlibpath_overrides_runpath=yes
20281 hardcode_into_libs=yes
20282 ;;
20283 *) # from 3.2 on
20284 shlibpath_overrides_runpath=no
20285 hardcode_into_libs=yes
20286 ;;
20287 esac
20288 ;;
20289
20290gnu*)
20291 version_type=linux
20292 need_lib_prefix=no
20293 need_version=no
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20295 soname_spec='${libname}${release}${shared_ext}$major'
20296 shlibpath_var=LD_LIBRARY_PATH
20297 hardcode_into_libs=yes
20298 ;;
20299
20300hpux9* | hpux10* | hpux11*)
20301 # Give a soname corresponding to the major version so that dld.sl refuses to
20302 # link against other versions.
20303 version_type=sunos
20304 need_lib_prefix=no
20305 need_version=no
20306 case "$host_cpu" in
20307 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020308 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020309 hardcode_into_libs=yes
20310 dynamic_linker="$host_os dld.so"
20311 shlibpath_var=LD_LIBRARY_PATH
20312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 if test "X$HPUX_IA64_MODE" = X32; then
20316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20317 else
20318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20319 fi
20320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20321 ;;
20322 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020323 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020324 hardcode_into_libs=yes
20325 dynamic_linker="$host_os dld.sl"
20326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 soname_spec='${libname}${release}${shared_ext}$major'
20330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20332 ;;
20333 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020334 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020335 dynamic_linker="$host_os dld.sl"
20336 shlibpath_var=SHLIB_PATH
20337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20339 soname_spec='${libname}${release}${shared_ext}$major'
20340 ;;
20341 esac
20342 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20343 postinstall_cmds='chmod 555 $lib'
20344 ;;
20345
20346irix5* | irix6* | nonstopux*)
20347 case $host_os in
20348 nonstopux*) version_type=nonstopux ;;
20349 *)
20350 if test "$lt_cv_prog_gnu_ld" = yes; then
20351 version_type=linux
20352 else
20353 version_type=irix
20354 fi ;;
20355 esac
20356 need_lib_prefix=no
20357 need_version=no
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20360 case $host_os in
20361 irix5* | nonstopux*)
20362 libsuff= shlibsuff=
20363 ;;
20364 *)
20365 case $LD in # libtool.m4 will add one of these switches to LD
20366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20367 libsuff= shlibsuff= libmagic=32-bit;;
20368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20369 libsuff=32 shlibsuff=N32 libmagic=N32;;
20370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20371 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20372 *) libsuff= shlibsuff= libmagic=never-match;;
20373 esac
20374 ;;
20375 esac
20376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20377 shlibpath_overrides_runpath=no
20378 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20379 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20380 hardcode_into_libs=yes
20381 ;;
20382
20383# No shared lib support for Linux oldld, aout, or coff.
20384linux*oldld* | linux*aout* | linux*coff*)
20385 dynamic_linker=no
20386 ;;
20387
20388# This must be Linux ELF.
20389linux*)
20390 version_type=linux
20391 need_lib_prefix=no
20392 need_version=no
20393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 shlibpath_overrides_runpath=no
20398 # This implies no fast_install, which is unacceptable.
20399 # Some rework will be needed to allow for fast_install
20400 # before this can be enabled.
20401 hardcode_into_libs=yes
20402
Reid Spencer2706f8c2004-09-19 23:53:36 +000020403 # Append ld.so.conf contents to the search path
20404 if test -f /etc/ld.so.conf; then
20405 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20406 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20407 fi
20408
John Criswell47fdd832003-07-14 16:52:07 +000020409 # We used to test for /lib/ld.so.1 and disable shared libraries on
20410 # powerpc, because MkLinux only supported shared libraries with the
20411 # GNU dynamic linker. Since this was broken with cross compilers,
20412 # most powerpc-linux boxes support dynamic linking these days and
20413 # people can always --disable-shared, the test was removed, and we
20414 # assume the GNU/Linux dynamic linker is in use.
20415 dynamic_linker='GNU/Linux ld.so'
20416 ;;
20417
Reid Spencer2706f8c2004-09-19 23:53:36 +000020418knetbsd*-gnu)
20419 version_type=linux
20420 need_lib_prefix=no
20421 need_version=no
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20423 soname_spec='${libname}${release}${shared_ext}$major'
20424 shlibpath_var=LD_LIBRARY_PATH
20425 shlibpath_overrides_runpath=no
20426 hardcode_into_libs=yes
20427 dynamic_linker='GNU ld.so'
20428 ;;
20429
John Criswell47fdd832003-07-14 16:52:07 +000020430netbsd*)
20431 version_type=sunos
20432 need_lib_prefix=no
20433 need_version=no
20434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20437 dynamic_linker='NetBSD (a.out) ld.so'
20438 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020440 soname_spec='${libname}${release}${shared_ext}$major'
20441 dynamic_linker='NetBSD ld.elf_so'
20442 fi
20443 shlibpath_var=LD_LIBRARY_PATH
20444 shlibpath_overrides_runpath=yes
20445 hardcode_into_libs=yes
20446 ;;
20447
20448newsos6)
20449 version_type=linux
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 shlibpath_overrides_runpath=yes
20453 ;;
20454
Reid Spencer2706f8c2004-09-19 23:53:36 +000020455nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020456 version_type=linux
20457 need_lib_prefix=no
20458 need_version=no
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20460 soname_spec='${libname}${release}${shared_ext}$major'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath=yes
20463 ;;
20464
20465openbsd*)
20466 version_type=sunos
20467 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020468 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20471 shlibpath_var=LD_LIBRARY_PATH
20472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20473 case $host_os in
20474 openbsd2.[89] | openbsd2.[89].*)
20475 shlibpath_overrides_runpath=no
20476 ;;
20477 *)
20478 shlibpath_overrides_runpath=yes
20479 ;;
20480 esac
20481 else
20482 shlibpath_overrides_runpath=yes
20483 fi
20484 ;;
20485
20486os2*)
20487 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020488 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020489 need_lib_prefix=no
20490 library_names_spec='$libname${shared_ext} $libname.a'
20491 dynamic_linker='OS/2 ld.exe'
20492 shlibpath_var=LIBPATH
20493 ;;
20494
20495osf3* | osf4* | osf5*)
20496 version_type=osf
20497 need_lib_prefix=no
20498 need_version=no
20499 soname_spec='${libname}${release}${shared_ext}$major'
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20501 shlibpath_var=LD_LIBRARY_PATH
20502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20504 ;;
20505
20506sco3.2v5*)
20507 version_type=osf
20508 soname_spec='${libname}${release}${shared_ext}$major'
20509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 ;;
20512
20513solaris*)
20514 version_type=linux
20515 need_lib_prefix=no
20516 need_version=no
20517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20518 soname_spec='${libname}${release}${shared_ext}$major'
20519 shlibpath_var=LD_LIBRARY_PATH
20520 shlibpath_overrides_runpath=yes
20521 hardcode_into_libs=yes
20522 # ldd complains unless libraries are executable
20523 postinstall_cmds='chmod +x $lib'
20524 ;;
20525
20526sunos4*)
20527 version_type=sunos
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20530 shlibpath_var=LD_LIBRARY_PATH
20531 shlibpath_overrides_runpath=yes
20532 if test "$with_gnu_ld" = yes; then
20533 need_lib_prefix=no
20534 fi
20535 need_version=yes
20536 ;;
20537
20538sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20539 version_type=linux
20540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 case $host_vendor in
20544 sni)
20545 shlibpath_overrides_runpath=no
20546 need_lib_prefix=no
20547 export_dynamic_flag_spec='${wl}-Blargedynsym'
20548 runpath_var=LD_RUN_PATH
20549 ;;
20550 siemens)
20551 need_lib_prefix=no
20552 ;;
20553 motorola)
20554 need_lib_prefix=no
20555 need_version=no
20556 shlibpath_overrides_runpath=no
20557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20558 ;;
20559 esac
20560 ;;
20561
20562sysv4*MP*)
20563 if test -d /usr/nec ;then
20564 version_type=linux
20565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20566 soname_spec='$libname${shared_ext}.$major'
20567 shlibpath_var=LD_LIBRARY_PATH
20568 fi
20569 ;;
20570
20571uts4*)
20572 version_type=linux
20573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20574 soname_spec='${libname}${release}${shared_ext}$major'
20575 shlibpath_var=LD_LIBRARY_PATH
20576 ;;
20577
20578*)
20579 dynamic_linker=no
20580 ;;
20581esac
20582echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20583echo "${ECHO_T}$dynamic_linker" >&6
20584test "$dynamic_linker" = no && can_build_shared=no
20585
Reid Spencer2706f8c2004-09-19 23:53:36 +000020586echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20587echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20588hardcode_action_F77=
20589if test -n "$hardcode_libdir_flag_spec_F77" || \
20590 test -n "$runpath_var_F77" || \
20591 test "X$hardcode_automatic_F77" = "Xyes" ; then
20592
20593 # We can hardcode non-existant directories.
20594 if test "$hardcode_direct_F77" != no &&
20595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20596 # have to relink, otherwise we might link with an installed library
20597 # when we should be linking with a yet-to-be-installed one
20598 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20599 test "$hardcode_minus_L_F77" != no; then
20600 # Linking always hardcodes the temporary library directory.
20601 hardcode_action_F77=relink
20602 else
20603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20604 hardcode_action_F77=immediate
20605 fi
20606else
20607 # We cannot hardcode anything, or else we can only hardcode existing
20608 # directories.
20609 hardcode_action_F77=unsupported
20610fi
20611echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20612echo "${ECHO_T}$hardcode_action_F77" >&6
20613
20614if test "$hardcode_action_F77" = relink; then
20615 # Fast installation is not supported
20616 enable_fast_install=no
20617elif test "$shlibpath_overrides_runpath" = yes ||
20618 test "$enable_shared" = no; then
20619 # Fast installation is not necessary
20620 enable_fast_install=needless
20621fi
20622
20623striplib=
20624old_striplib=
20625echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20626echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20627if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20628 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20629 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20630 echo "$as_me:$LINENO: result: yes" >&5
20631echo "${ECHO_T}yes" >&6
20632else
20633# FIXME - insert some real tests, host_os isn't really good enough
20634 case $host_os in
20635 darwin*)
20636 if test -n "$STRIP" ; then
20637 striplib="$STRIP -x"
20638 echo "$as_me:$LINENO: result: yes" >&5
20639echo "${ECHO_T}yes" >&6
20640 else
20641 echo "$as_me:$LINENO: result: no" >&5
20642echo "${ECHO_T}no" >&6
20643fi
20644 ;;
20645 *)
20646 echo "$as_me:$LINENO: result: no" >&5
20647echo "${ECHO_T}no" >&6
20648 ;;
20649 esac
20650fi
20651
20652
John Criswell47fdd832003-07-14 16:52:07 +000020653
20654# The else clause should only fire when bootstrapping the
20655# libtool distribution, otherwise you forgot to ship ltmain.sh
20656# with your package, and you will get complaints that there are
20657# no rules to generate ltmain.sh.
20658if test -f "$ltmain"; then
20659 # See if we are running on zsh, and set the options which allow our commands through
20660 # without removal of \ escapes.
20661 if test -n "${ZSH_VERSION+set}" ; then
20662 setopt NO_GLOB_SUBST
20663 fi
20664 # Now quote all the things that may contain metacharacters while being
20665 # careful not to overquote the AC_SUBSTed values. We take copies of the
20666 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020667 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20668 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020669 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20670 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20671 deplibs_check_method reload_flag reload_cmds need_locks \
20672 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20673 lt_cv_sys_global_symbol_to_c_name_address \
20674 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20675 old_postinstall_cmds old_postuninstall_cmds \
20676 compiler_F77 \
20677 CC_F77 \
20678 LD_F77 \
20679 lt_prog_compiler_wl_F77 \
20680 lt_prog_compiler_pic_F77 \
20681 lt_prog_compiler_static_F77 \
20682 lt_prog_compiler_no_builtin_flag_F77 \
20683 export_dynamic_flag_spec_F77 \
20684 thread_safe_flag_spec_F77 \
20685 whole_archive_flag_spec_F77 \
20686 enable_shared_with_static_runtimes_F77 \
20687 old_archive_cmds_F77 \
20688 old_archive_from_new_cmds_F77 \
20689 predep_objects_F77 \
20690 postdep_objects_F77 \
20691 predeps_F77 \
20692 postdeps_F77 \
20693 compiler_lib_search_path_F77 \
20694 archive_cmds_F77 \
20695 archive_expsym_cmds_F77 \
20696 postinstall_cmds_F77 \
20697 postuninstall_cmds_F77 \
20698 old_archive_from_expsyms_cmds_F77 \
20699 allow_undefined_flag_F77 \
20700 no_undefined_flag_F77 \
20701 export_symbols_cmds_F77 \
20702 hardcode_libdir_flag_spec_F77 \
20703 hardcode_libdir_flag_spec_ld_F77 \
20704 hardcode_libdir_separator_F77 \
20705 hardcode_automatic_F77 \
20706 module_cmds_F77 \
20707 module_expsym_cmds_F77 \
20708 lt_cv_prog_compiler_c_o_F77 \
20709 exclude_expsyms_F77 \
20710 include_expsyms_F77; do
20711
20712 case $var in
20713 old_archive_cmds_F77 | \
20714 old_archive_from_new_cmds_F77 | \
20715 archive_cmds_F77 | \
20716 archive_expsym_cmds_F77 | \
20717 module_cmds_F77 | \
20718 module_expsym_cmds_F77 | \
20719 old_archive_from_expsyms_cmds_F77 | \
20720 export_symbols_cmds_F77 | \
20721 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20722 postinstall_cmds | postuninstall_cmds | \
20723 old_postinstall_cmds | old_postuninstall_cmds | \
20724 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20725 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020726 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 +000020727 ;;
20728 *)
20729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20730 ;;
20731 esac
20732 done
20733
20734 case $lt_echo in
20735 *'\$0 --fallback-echo"')
20736 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20737 ;;
20738 esac
20739
20740cfgfile="$ofile"
20741
20742 cat <<__EOF__ >> "$cfgfile"
20743# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20744
20745# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20746
20747# Shell to use when invoking shell scripts.
20748SHELL=$lt_SHELL
20749
20750# Whether or not to build shared libraries.
20751build_libtool_libs=$enable_shared
20752
20753# Whether or not to build static libraries.
20754build_old_libs=$enable_static
20755
20756# Whether or not to add -lc for building shared libraries.
20757build_libtool_need_lc=$archive_cmds_need_lc_F77
20758
20759# Whether or not to disallow shared libs when runtime libs are static
20760allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20761
20762# Whether or not to optimize for fast installation.
20763fast_install=$enable_fast_install
20764
20765# The host system.
20766host_alias=$host_alias
20767host=$host
20768
20769# An echo program that does not interpret backslashes.
20770echo=$lt_echo
20771
20772# The archiver.
20773AR=$lt_AR
20774AR_FLAGS=$lt_AR_FLAGS
20775
20776# A C compiler.
20777LTCC=$lt_LTCC
20778
20779# A language-specific compiler.
20780CC=$lt_compiler_F77
20781
20782# Is the compiler the GNU C compiler?
20783with_gcc=$GCC_F77
20784
20785# An ERE matcher.
20786EGREP=$lt_EGREP
20787
20788# The linker used to build libraries.
20789LD=$lt_LD_F77
20790
20791# Whether we need hard or soft links.
20792LN_S=$lt_LN_S
20793
20794# A BSD-compatible nm program.
20795NM=$lt_NM
20796
20797# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020798STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020799
20800# Used to examine libraries when file_magic_cmd begins "file"
20801MAGIC_CMD=$MAGIC_CMD
20802
20803# Used on cygwin: DLL creation program.
20804DLLTOOL="$DLLTOOL"
20805
20806# Used on cygwin: object dumper.
20807OBJDUMP="$OBJDUMP"
20808
20809# Used on cygwin: assembler.
20810AS="$AS"
20811
20812# The name of the directory that contains temporary libtool files.
20813objdir=$objdir
20814
20815# How to create reloadable object files.
20816reload_flag=$lt_reload_flag
20817reload_cmds=$lt_reload_cmds
20818
20819# How to pass a linker flag through the compiler.
20820wl=$lt_lt_prog_compiler_wl_F77
20821
20822# Object file suffix (normally "o").
20823objext="$ac_objext"
20824
20825# Old archive suffix (normally "a").
20826libext="$libext"
20827
20828# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020829shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020830
20831# Executable file suffix (normally "").
20832exeext="$exeext"
20833
20834# Additional compiler flags for building library objects.
20835pic_flag=$lt_lt_prog_compiler_pic_F77
20836pic_mode=$pic_mode
20837
20838# What is the maximum length of a command?
20839max_cmd_len=$lt_cv_sys_max_cmd_len
20840
20841# Does compiler simultaneously support -c and -o options?
20842compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20843
20844# Must we lock files when doing compilation ?
20845need_locks=$lt_need_locks
20846
20847# Do we need the lib prefix for modules?
20848need_lib_prefix=$need_lib_prefix
20849
20850# Do we need a version for libraries?
20851need_version=$need_version
20852
20853# Whether dlopen is supported.
20854dlopen_support=$enable_dlopen
20855
20856# Whether dlopen of programs is supported.
20857dlopen_self=$enable_dlopen_self
20858
20859# Whether dlopen of statically linked programs is supported.
20860dlopen_self_static=$enable_dlopen_self_static
20861
20862# Compiler flag to prevent dynamic linking.
20863link_static_flag=$lt_lt_prog_compiler_static_F77
20864
20865# Compiler flag to turn off builtin functions.
20866no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20867
20868# Compiler flag to allow reflexive dlopens.
20869export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20870
20871# Compiler flag to generate shared objects directly from archives.
20872whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20873
20874# Compiler flag to generate thread-safe objects.
20875thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20876
20877# Library versioning type.
20878version_type=$version_type
20879
20880# Format of library name prefix.
20881libname_spec=$lt_libname_spec
20882
20883# List of archive names. First name is the real one, the rest are links.
20884# The last name is the one that the linker finds with -lNAME.
20885library_names_spec=$lt_library_names_spec
20886
20887# The coded name of the library, if different from the real name.
20888soname_spec=$lt_soname_spec
20889
20890# Commands used to build and install an old-style archive.
20891RANLIB=$lt_RANLIB
20892old_archive_cmds=$lt_old_archive_cmds_F77
20893old_postinstall_cmds=$lt_old_postinstall_cmds
20894old_postuninstall_cmds=$lt_old_postuninstall_cmds
20895
20896# Create an old-style archive from a shared archive.
20897old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20898
20899# Create a temporary old-style archive to link instead of a shared archive.
20900old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20901
20902# Commands used to build and install a shared archive.
20903archive_cmds=$lt_archive_cmds_F77
20904archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20905postinstall_cmds=$lt_postinstall_cmds
20906postuninstall_cmds=$lt_postuninstall_cmds
20907
20908# Commands used to build a loadable module (assumed same as above if empty)
20909module_cmds=$lt_module_cmds_F77
20910module_expsym_cmds=$lt_module_expsym_cmds_F77
20911
20912# Commands to strip libraries.
20913old_striplib=$lt_old_striplib
20914striplib=$lt_striplib
20915
20916# Dependencies to place before the objects being linked to create a
20917# shared library.
20918predep_objects=$lt_predep_objects_F77
20919
20920# Dependencies to place after the objects being linked to create a
20921# shared library.
20922postdep_objects=$lt_postdep_objects_F77
20923
20924# Dependencies to place before the objects being linked to create a
20925# shared library.
20926predeps=$lt_predeps_F77
20927
20928# Dependencies to place after the objects being linked to create a
20929# shared library.
20930postdeps=$lt_postdeps_F77
20931
20932# The library search path used internally by the compiler when linking
20933# a shared library.
20934compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20935
20936# Method to check whether dependent libraries are shared objects.
20937deplibs_check_method=$lt_deplibs_check_method
20938
20939# Command to use when deplibs_check_method == file_magic.
20940file_magic_cmd=$lt_file_magic_cmd
20941
20942# Flag that allows shared libraries with undefined symbols to be built.
20943allow_undefined_flag=$lt_allow_undefined_flag_F77
20944
20945# Flag that forces no undefined symbols.
20946no_undefined_flag=$lt_no_undefined_flag_F77
20947
20948# Commands used to finish a libtool library installation in a directory.
20949finish_cmds=$lt_finish_cmds
20950
20951# Same as above, but a single script fragment to be evaled but not shown.
20952finish_eval=$lt_finish_eval
20953
20954# Take the output of nm and produce a listing of raw symbols and C names.
20955global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20956
20957# Transform the output of nm in a proper C declaration
20958global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20959
20960# Transform the output of nm in a C name address pair
20961global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20962
20963# This is the shared library runtime path variable.
20964runpath_var=$runpath_var
20965
20966# This is the shared library path variable.
20967shlibpath_var=$shlibpath_var
20968
20969# Is shlibpath searched before the hard-coded library search path?
20970shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20971
20972# How to hardcode a shared library path into an executable.
20973hardcode_action=$hardcode_action_F77
20974
20975# Whether we should hardcode library paths into libraries.
20976hardcode_into_libs=$hardcode_into_libs
20977
20978# Flag to hardcode \$libdir into a binary during linking.
20979# This must work even if \$libdir does not exist.
20980hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20981
20982# If ld is used when linking, flag to hardcode \$libdir into
20983# a binary during linking. This must work even if \$libdir does
20984# not exist.
20985hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20986
20987# Whether we need a single -rpath flag with a separated argument.
20988hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20989
20990# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20991# resulting binary.
20992hardcode_direct=$hardcode_direct_F77
20993
20994# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20995# resulting binary.
20996hardcode_minus_L=$hardcode_minus_L_F77
20997
20998# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20999# the resulting binary.
21000hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21001
21002# Set to yes if building a shared library automatically hardcodes DIR into the library
21003# and all subsequent libraries and executables linked against it.
21004hardcode_automatic=$hardcode_automatic_F77
21005
21006# Variables whose values should be saved in libtool wrapper scripts and
21007# restored at relink time.
21008variables_saved_for_relink="$variables_saved_for_relink"
21009
21010# Whether libtool must link a program against all its dependency libraries.
21011link_all_deplibs=$link_all_deplibs_F77
21012
21013# Compile-time system search path for libraries
21014sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21015
21016# Run-time system search path for libraries
21017sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21018
21019# Fix the shell variable \$srcfile for the compiler.
21020fix_srcfile_path="$fix_srcfile_path_F77"
21021
21022# Set to yes if exported symbols are required.
21023always_export_symbols=$always_export_symbols_F77
21024
21025# The commands to list exported symbols.
21026export_symbols_cmds=$lt_export_symbols_cmds_F77
21027
21028# The commands to extract the exported symbol list from a shared archive.
21029extract_expsyms_cmds=$lt_extract_expsyms_cmds
21030
21031# Symbols that should not be listed in the preloaded symbols.
21032exclude_expsyms=$lt_exclude_expsyms_F77
21033
21034# Symbols that must always be exported.
21035include_expsyms=$lt_include_expsyms_F77
21036
21037# ### END LIBTOOL TAG CONFIG: $tagname
21038
21039__EOF__
21040
21041
21042else
21043 # If there is no Makefile yet, we rely on a make rule to execute
21044 # `config.status --recheck' to rerun these tests and create the
21045 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021046 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21047 if test -f "$ltmain_in"; then
21048 test -f Makefile && make "$ltmain"
21049 fi
John Criswell47fdd832003-07-14 16:52:07 +000021050fi
21051
21052
21053ac_ext=c
21054ac_cpp='$CPP $CPPFLAGS'
21055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21057ac_compiler_gnu=$ac_cv_c_compiler_gnu
21058
21059CC="$lt_save_CC"
21060
21061 else
21062 tagname=""
21063 fi
21064 ;;
21065
21066 GCJ)
21067 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021068 ac_ext=c
21069ac_cpp='$CPP $CPPFLAGS'
21070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021073
21074
21075# Source file extension for Java test sources.
21076ac_ext=java
21077
21078# Object file extension for compiled Java test sources.
21079objext=o
21080objext_GCJ=$objext
21081
21082# Code to be used in simple compile tests
21083lt_simple_compile_test_code="class foo {}\n"
21084
21085# Code to be used in simple link tests
21086lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21087
21088# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21089
21090# If no C compiler was specified, use CC.
21091LTCC=${LTCC-"$CC"}
21092
21093# Allow CC to be a program name with arguments.
21094compiler=$CC
21095
21096
21097# Allow CC to be a program name with arguments.
21098lt_save_CC="$CC"
21099CC=${GCJ-"gcj"}
21100compiler=$CC
21101compiler_GCJ=$CC
21102
21103# GCJ did not exist at the time GCC didn't implicitly link libc in.
21104archive_cmds_need_lc_GCJ=no
21105
John Criswell47fdd832003-07-14 16:52:07 +000021106
21107lt_prog_compiler_no_builtin_flag_GCJ=
21108
21109if test "$GCC" = yes; then
21110 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21111
Reid Spencer2706f8c2004-09-19 23:53:36 +000021112
21113echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021114echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21115if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21117else
21118 lt_cv_prog_compiler_rtti_exceptions=no
21119 ac_outfile=conftest.$ac_objext
21120 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21121 lt_compiler_flag="-fno-rtti -fno-exceptions"
21122 # Insert the option either (1) after the last *FLAGS variable, or
21123 # (2) before a word containing "conftest.", or (3) at the end.
21124 # Note that $ac_compile itself does not contain backslashes and begins
21125 # with a dollar sign (not a hyphen), so the echo should work correctly.
21126 # The option is referenced via a variable to avoid confusing sed.
21127 lt_compile=`echo "$ac_compile" | $SED \
21128 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21130 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000021131 (eval echo "\"\$as_me:21131: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021132 (eval "$lt_compile" 2>conftest.err)
21133 ac_status=$?
21134 cat conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000021135 echo "$as_me:21135: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021136 if (exit $ac_status) && test -s "$ac_outfile"; then
21137 # The compiler can only warn and ignore the option if not recognized
21138 # So say no if there are warnings
21139 if test ! -s conftest.err; then
21140 lt_cv_prog_compiler_rtti_exceptions=yes
21141 fi
21142 fi
21143 $rm conftest*
21144
21145fi
21146echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21147echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21148
21149if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21150 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21151else
21152 :
21153fi
21154
21155fi
21156
21157lt_prog_compiler_wl_GCJ=
21158lt_prog_compiler_pic_GCJ=
21159lt_prog_compiler_static_GCJ=
21160
21161echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21162echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21163
21164 if test "$GCC" = yes; then
21165 lt_prog_compiler_wl_GCJ='-Wl,'
21166 lt_prog_compiler_static_GCJ='-static'
21167
21168 case $host_os in
21169 aix*)
21170 # All AIX code is PIC.
21171 if test "$host_cpu" = ia64; then
21172 # AIX 5 now supports IA64 processor
21173 lt_prog_compiler_static_GCJ='-Bstatic'
21174 fi
21175 ;;
21176
21177 amigaos*)
21178 # FIXME: we need at least 68020 code to build shared libraries, but
21179 # adding the `-m68020' flag to GCC prevents building anything better,
21180 # like `-m68040'.
21181 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21182 ;;
21183
21184 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21185 # PIC is the default for these OSes.
21186 ;;
21187
21188 mingw* | pw32* | os2*)
21189 # This hack is so that the source file can tell whether it is being
21190 # built for inclusion in a dll (and should export symbols for example).
21191 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21192 ;;
21193
21194 darwin* | rhapsody*)
21195 # PIC is the default on this platform
21196 # Common symbols not allowed in MH_DYLIB files
21197 lt_prog_compiler_pic_GCJ='-fno-common'
21198 ;;
21199
21200 msdosdjgpp*)
21201 # Just because we use GCC doesn't mean we suddenly get shared libraries
21202 # on systems that don't support them.
21203 lt_prog_compiler_can_build_shared_GCJ=no
21204 enable_shared=no
21205 ;;
21206
21207 sysv4*MP*)
21208 if test -d /usr/nec; then
21209 lt_prog_compiler_pic_GCJ=-Kconform_pic
21210 fi
21211 ;;
21212
21213 hpux*)
21214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21215 # not for PA HP-UX.
21216 case "$host_cpu" in
21217 hppa*64*|ia64*)
21218 # +Z the default
21219 ;;
21220 *)
21221 lt_prog_compiler_pic_GCJ='-fPIC'
21222 ;;
21223 esac
21224 ;;
21225
21226 *)
21227 lt_prog_compiler_pic_GCJ='-fPIC'
21228 ;;
21229 esac
21230 else
21231 # PORTME Check for flag to pass linker flags through the system compiler.
21232 case $host_os in
21233 aix*)
21234 lt_prog_compiler_wl_GCJ='-Wl,'
21235 if test "$host_cpu" = ia64; then
21236 # AIX 5 now supports IA64 processor
21237 lt_prog_compiler_static_GCJ='-Bstatic'
21238 else
21239 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21240 fi
21241 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021242 darwin*)
21243 # PIC is the default on this platform
21244 # Common symbols not allowed in MH_DYLIB files
21245 case "$cc_basename" in
21246 xlc*)
21247 lt_prog_compiler_pic_GCJ='-qnocommon'
21248 lt_prog_compiler_wl_GCJ='-Wl,'
21249 ;;
21250 esac
21251 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021252
21253 mingw* | pw32* | os2*)
21254 # This hack is so that the source file can tell whether it is being
21255 # built for inclusion in a dll (and should export symbols for example).
21256 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21257 ;;
21258
21259 hpux9* | hpux10* | hpux11*)
21260 lt_prog_compiler_wl_GCJ='-Wl,'
21261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21262 # not for PA HP-UX.
21263 case "$host_cpu" in
21264 hppa*64*|ia64*)
21265 # +Z the default
21266 ;;
21267 *)
21268 lt_prog_compiler_pic_GCJ='+Z'
21269 ;;
21270 esac
21271 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21272 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21273 ;;
21274
21275 irix5* | irix6* | nonstopux*)
21276 lt_prog_compiler_wl_GCJ='-Wl,'
21277 # PIC (with -KPIC) is the default.
21278 lt_prog_compiler_static_GCJ='-non_shared'
21279 ;;
21280
21281 newsos6)
21282 lt_prog_compiler_pic_GCJ='-KPIC'
21283 lt_prog_compiler_static_GCJ='-Bstatic'
21284 ;;
21285
21286 linux*)
21287 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021288 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021289 lt_prog_compiler_wl_GCJ='-Wl,'
21290 lt_prog_compiler_pic_GCJ='-KPIC'
21291 lt_prog_compiler_static_GCJ='-static'
21292 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021293 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021294 lt_prog_compiler_wl_GCJ='-Wl,'
21295 # All Alpha code is PIC.
21296 lt_prog_compiler_static_GCJ='-non_shared'
21297 ;;
21298 esac
21299 ;;
21300
21301 osf3* | osf4* | osf5*)
21302 lt_prog_compiler_wl_GCJ='-Wl,'
21303 # All OSF/1 code is PIC.
21304 lt_prog_compiler_static_GCJ='-non_shared'
21305 ;;
21306
21307 sco3.2v5*)
21308 lt_prog_compiler_pic_GCJ='-Kpic'
21309 lt_prog_compiler_static_GCJ='-dn'
21310 ;;
21311
21312 solaris*)
21313 lt_prog_compiler_wl_GCJ='-Wl,'
21314 lt_prog_compiler_pic_GCJ='-KPIC'
21315 lt_prog_compiler_static_GCJ='-Bstatic'
21316 ;;
21317
21318 sunos4*)
21319 lt_prog_compiler_wl_GCJ='-Qoption ld '
21320 lt_prog_compiler_pic_GCJ='-PIC'
21321 lt_prog_compiler_static_GCJ='-Bstatic'
21322 ;;
21323
21324 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21325 lt_prog_compiler_wl_GCJ='-Wl,'
21326 lt_prog_compiler_pic_GCJ='-KPIC'
21327 lt_prog_compiler_static_GCJ='-Bstatic'
21328 ;;
21329
21330 sysv4*MP*)
21331 if test -d /usr/nec ;then
21332 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21333 lt_prog_compiler_static_GCJ='-Bstatic'
21334 fi
21335 ;;
21336
21337 uts4*)
21338 lt_prog_compiler_pic_GCJ='-pic'
21339 lt_prog_compiler_static_GCJ='-Bstatic'
21340 ;;
21341
21342 *)
21343 lt_prog_compiler_can_build_shared_GCJ=no
21344 ;;
21345 esac
21346 fi
21347
21348echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21349echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21350
21351#
21352# Check to make sure the PIC flag actually works.
21353#
21354if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021355
21356echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021357echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21358if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360else
21361 lt_prog_compiler_pic_works_GCJ=no
21362 ac_outfile=conftest.$ac_objext
21363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21364 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21365 # Insert the option either (1) after the last *FLAGS variable, or
21366 # (2) before a word containing "conftest.", or (3) at the end.
21367 # Note that $ac_compile itself does not contain backslashes and begins
21368 # with a dollar sign (not a hyphen), so the echo should work correctly.
21369 # The option is referenced via a variable to avoid confusing sed.
21370 lt_compile=`echo "$ac_compile" | $SED \
21371 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21373 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000021374 (eval echo "\"\$as_me:21374: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021375 (eval "$lt_compile" 2>conftest.err)
21376 ac_status=$?
21377 cat conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000021378 echo "$as_me:21378: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021379 if (exit $ac_status) && test -s "$ac_outfile"; then
21380 # The compiler can only warn and ignore the option if not recognized
21381 # So say no if there are warnings
21382 if test ! -s conftest.err; then
21383 lt_prog_compiler_pic_works_GCJ=yes
21384 fi
21385 fi
21386 $rm conftest*
21387
21388fi
21389echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21390echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21391
21392if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21393 case $lt_prog_compiler_pic_GCJ in
21394 "" | " "*) ;;
21395 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21396 esac
21397else
21398 lt_prog_compiler_pic_GCJ=
21399 lt_prog_compiler_can_build_shared_GCJ=no
21400fi
21401
21402fi
21403case "$host_os" in
21404 # For platforms which do not support PIC, -DPIC is meaningless:
21405 *djgpp*)
21406 lt_prog_compiler_pic_GCJ=
21407 ;;
21408 *)
21409 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21410 ;;
21411esac
21412
21413echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21414echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21415if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21417else
21418 lt_cv_prog_compiler_c_o_GCJ=no
21419 $rm -r conftest 2>/dev/null
21420 mkdir conftest
21421 cd conftest
21422 mkdir out
21423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21424
John Criswell47fdd832003-07-14 16:52:07 +000021425 lt_compiler_flag="-o out/conftest2.$ac_objext"
21426 # Insert the option either (1) after the last *FLAGS variable, or
21427 # (2) before a word containing "conftest.", or (3) at the end.
21428 # Note that $ac_compile itself does not contain backslashes and begins
21429 # with a dollar sign (not a hyphen), so the echo should work correctly.
21430 lt_compile=`echo "$ac_compile" | $SED \
21431 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21433 -e 's:$: $lt_compiler_flag:'`
John Criswell241116f2005-12-19 20:27:24 +000021434 (eval echo "\"\$as_me:21434: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021435 (eval "$lt_compile" 2>out/conftest.err)
21436 ac_status=$?
21437 cat out/conftest.err >&5
John Criswell241116f2005-12-19 20:27:24 +000021438 echo "$as_me:21438: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21440 then
21441 # The compiler can only warn and ignore the option if not recognized
21442 # So say no if there are warnings
21443 if test ! -s out/conftest.err; then
21444 lt_cv_prog_compiler_c_o_GCJ=yes
21445 fi
21446 fi
21447 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021448 $rm conftest*
21449 # SGI C++ compiler will create directory out/ii_files/ for
21450 # template instantiation
21451 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21452 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021453 cd ..
21454 rmdir conftest
21455 $rm conftest*
21456
21457fi
21458echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21459echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21460
21461
21462hard_links="nottested"
21463if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21464 # do not overwrite the value of need_locks provided by the user
21465 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21466echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21467 hard_links=yes
21468 $rm conftest*
21469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21470 touch conftest.a
21471 ln conftest.a conftest.b 2>&5 || hard_links=no
21472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21473 echo "$as_me:$LINENO: result: $hard_links" >&5
21474echo "${ECHO_T}$hard_links" >&6
21475 if test "$hard_links" = no; then
21476 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21477echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21478 need_locks=warn
21479 fi
21480else
21481 need_locks=no
21482fi
21483
21484echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21485echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21486
21487 runpath_var=
21488 allow_undefined_flag_GCJ=
21489 enable_shared_with_static_runtimes_GCJ=no
21490 archive_cmds_GCJ=
21491 archive_expsym_cmds_GCJ=
21492 old_archive_From_new_cmds_GCJ=
21493 old_archive_from_expsyms_cmds_GCJ=
21494 export_dynamic_flag_spec_GCJ=
21495 whole_archive_flag_spec_GCJ=
21496 thread_safe_flag_spec_GCJ=
21497 hardcode_libdir_flag_spec_GCJ=
21498 hardcode_libdir_flag_spec_ld_GCJ=
21499 hardcode_libdir_separator_GCJ=
21500 hardcode_direct_GCJ=no
21501 hardcode_minus_L_GCJ=no
21502 hardcode_shlibpath_var_GCJ=unsupported
21503 link_all_deplibs_GCJ=unknown
21504 hardcode_automatic_GCJ=no
21505 module_cmds_GCJ=
21506 module_expsym_cmds_GCJ=
21507 always_export_symbols_GCJ=no
21508 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21509 # include_expsyms should be a list of space-separated symbols to be *always*
21510 # included in the symbol list
21511 include_expsyms_GCJ=
21512 # exclude_expsyms can be an extended regexp of symbols to exclude
21513 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21514 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21515 # as well as any symbol that contains `d'.
21516 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21517 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21518 # platforms (ab)use it in PIC code, but their linkers get confused if
21519 # the symbol is explicitly referenced. Since portable code cannot
21520 # rely on this symbol name, it's probably fine to never include it in
21521 # preloaded symbol tables.
21522 extract_expsyms_cmds=
21523
21524 case $host_os in
21525 cygwin* | mingw* | pw32*)
21526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21527 # When not using gcc, we currently assume that we are using
21528 # Microsoft Visual C++.
21529 if test "$GCC" != yes; then
21530 with_gnu_ld=no
21531 fi
21532 ;;
21533 openbsd*)
21534 with_gnu_ld=no
21535 ;;
21536 esac
21537
21538 ld_shlibs_GCJ=yes
21539 if test "$with_gnu_ld" = yes; then
21540 # If archive_cmds runs LD, not CC, wlarc should be empty
21541 wlarc='${wl}'
21542
21543 # See if GNU ld supports shared libraries.
21544 case $host_os in
21545 aix3* | aix4* | aix5*)
21546 # On AIX/PPC, the GNU linker is very broken
21547 if test "$host_cpu" != ia64; then
21548 ld_shlibs_GCJ=no
21549 cat <<EOF 1>&2
21550
21551*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21552*** to be unable to reliably create shared libraries on AIX.
21553*** Therefore, libtool is disabling shared libraries support. If you
21554*** really care for shared libraries, you may want to modify your PATH
21555*** so that a non-GNU linker is found, and then restart.
21556
21557EOF
21558 fi
21559 ;;
21560
21561 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021562 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 +000021563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21564 hardcode_minus_L_GCJ=yes
21565
21566 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21567 # that the semantics of dynamic libraries on AmigaOS, at least up
21568 # to version 4, is to share data among multiple programs linked
21569 # with the same dynamic library. Since this doesn't match the
21570 # behavior of shared libraries on other platforms, we can't use
21571 # them.
21572 ld_shlibs_GCJ=no
21573 ;;
21574
21575 beos*)
21576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21577 allow_undefined_flag_GCJ=unsupported
21578 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21579 # support --undefined. This deserves some investigation. FIXME
21580 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21581 else
21582 ld_shlibs_GCJ=no
21583 fi
21584 ;;
21585
21586 cygwin* | mingw* | pw32*)
21587 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21588 # as there is no search path for DLLs.
21589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21590 allow_undefined_flag_GCJ=unsupported
21591 always_export_symbols_GCJ=no
21592 enable_shared_with_static_runtimes_GCJ=yes
21593 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21594
21595 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21597 # If the export-symbols file already is a .def file (1st line
21598 # is EXPORTS), use it as is; otherwise, prepend...
21599 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21600 cp $export_symbols $output_objdir/$soname.def;
21601 else
21602 echo EXPORTS > $output_objdir/$soname.def;
21603 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021604 fi~
21605 $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 +000021606 else
21607 ld_shlibs=no
21608 fi
21609 ;;
21610
21611 netbsd*)
21612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21613 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21614 wlarc=
21615 else
21616 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21617 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21618 fi
21619 ;;
21620
21621 solaris* | sysv5*)
21622 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21623 ld_shlibs_GCJ=no
21624 cat <<EOF 1>&2
21625
21626*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21627*** create shared libraries on Solaris systems. Therefore, libtool
21628*** is disabling shared libraries support. We urge you to upgrade GNU
21629*** binutils to release 2.9.1 or newer. Another option is to modify
21630*** your PATH or compiler configuration so that the native linker is
21631*** used, and then restart.
21632
21633EOF
21634 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21635 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21636 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21637 else
21638 ld_shlibs_GCJ=no
21639 fi
21640 ;;
21641
21642 sunos4*)
21643 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21644 wlarc=
21645 hardcode_direct_GCJ=yes
21646 hardcode_shlibpath_var_GCJ=no
21647 ;;
21648
Reid Spencer2706f8c2004-09-19 23:53:36 +000021649 linux*)
21650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21651 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652 archive_cmds_GCJ="$tmp_archive_cmds"
21653 supports_anon_versioning=no
21654 case `$LD -v 2>/dev/null` in
21655 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21656 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21657 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21658 *\ 2.11.*) ;; # other 2.11 versions
21659 *) supports_anon_versioning=yes ;;
21660 esac
21661 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021662 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21663cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21664$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021665 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21666 else
21667 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21668 fi
21669 else
21670 ld_shlibs_GCJ=no
21671 fi
21672 ;;
21673
John Criswell47fdd832003-07-14 16:52:07 +000021674 *)
21675 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21676 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21677 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21678 else
21679 ld_shlibs_GCJ=no
21680 fi
21681 ;;
21682 esac
21683
21684 if test "$ld_shlibs_GCJ" = yes; then
21685 runpath_var=LD_RUN_PATH
21686 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21687 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21688 # ancient GNU ld didn't support --whole-archive et. al.
21689 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21690 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21691 else
21692 whole_archive_flag_spec_GCJ=
21693 fi
21694 fi
21695 else
21696 # PORTME fill in a description of your system's linker (not GNU ld)
21697 case $host_os in
21698 aix3*)
21699 allow_undefined_flag_GCJ=unsupported
21700 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021701 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 +000021702 # Note: this linker hardcodes the directories in LIBPATH if there
21703 # are no directories specified by -L.
21704 hardcode_minus_L_GCJ=yes
21705 if test "$GCC" = yes && test -z "$link_static_flag"; then
21706 # Neither direct hardcoding nor static linking is supported with a
21707 # broken collect2.
21708 hardcode_direct_GCJ=unsupported
21709 fi
21710 ;;
21711
21712 aix4* | aix5*)
21713 if test "$host_cpu" = ia64; then
21714 # On IA64, the linker does run time linking by default, so we don't
21715 # have to do anything special.
21716 aix_use_runtimelinking=no
21717 exp_sym_flag='-Bexport'
21718 no_entry_flag=""
21719 else
21720 # If we're using GNU nm, then we don't want the "-C" option.
21721 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21722 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21723 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'
21724 else
21725 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'
21726 fi
21727 aix_use_runtimelinking=no
21728
21729 # Test if we are trying to use run time linking or normal
21730 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21731 # need to do runtime linking.
21732 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21733 for ld_flag in $LDFLAGS; do
21734 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21735 aix_use_runtimelinking=yes
21736 break
21737 fi
21738 done
21739 esac
21740
21741 exp_sym_flag='-bexport'
21742 no_entry_flag='-bnoentry'
21743 fi
21744
21745 # When large executables or shared objects are built, AIX ld can
21746 # have problems creating the table of contents. If linking a library
21747 # or program results in "error TOC overflow" add -mminimal-toc to
21748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21750
21751 archive_cmds_GCJ=''
21752 hardcode_direct_GCJ=yes
21753 hardcode_libdir_separator_GCJ=':'
21754 link_all_deplibs_GCJ=yes
21755
21756 if test "$GCC" = yes; then
21757 case $host_os in aix4.012|aix4.012.*)
21758 # We only want to do this on AIX 4.2 and lower, the check
21759 # below for broken collect2 doesn't work under 4.3+
21760 collect2name=`${CC} -print-prog-name=collect2`
21761 if test -f "$collect2name" && \
21762 strings "$collect2name" | grep resolve_lib_name >/dev/null
21763 then
21764 # We have reworked collect2
21765 hardcode_direct_GCJ=yes
21766 else
21767 # We have old collect2
21768 hardcode_direct_GCJ=unsupported
21769 # It fails to find uninstalled libraries when the uninstalled
21770 # path is not listed in the libpath. Setting hardcode_minus_L
21771 # to unsupported forces relinking
21772 hardcode_minus_L_GCJ=yes
21773 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21774 hardcode_libdir_separator_GCJ=
21775 fi
21776 esac
21777 shared_flag='-shared'
21778 else
21779 # not using gcc
21780 if test "$host_cpu" = ia64; then
21781 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21782 # chokes on -Wl,-G. The following line is correct:
21783 shared_flag='-G'
21784 else
21785 if test "$aix_use_runtimelinking" = yes; then
21786 shared_flag='${wl}-G'
21787 else
21788 shared_flag='${wl}-bM:SRE'
21789 fi
21790 fi
21791 fi
21792
21793 # It seems that -bexpall does not export symbols beginning with
21794 # underscore (_), so it is better to generate a list of symbols to export.
21795 always_export_symbols_GCJ=yes
21796 if test "$aix_use_runtimelinking" = yes; then
21797 # Warning - without using the other runtime loading flags (-brtl),
21798 # -berok will link without error, but may produce a broken library.
21799 allow_undefined_flag_GCJ='-berok'
21800 # Determine the default libpath from the value encoded in an empty executable.
21801 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021802/* confdefs.h. */
21803_ACEOF
21804cat confdefs.h >>conftest.$ac_ext
21805cat >>conftest.$ac_ext <<_ACEOF
21806/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021807
John Criswell47fdd832003-07-14 16:52:07 +000021808int
21809main ()
21810{
21811
21812 ;
21813 return 0;
21814}
21815_ACEOF
21816rm -f conftest.$ac_objext conftest$ac_exeext
21817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021818 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021825 { ac_try='test -z "$ac_c_werror_flag"
21826 || test ! -s conftest.err'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; } &&
21832 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; }; then
21838
21839aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21840}'`
21841# Check for a 64-bit object if we didn't find anything.
21842if 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; }
21843}'`; fi
21844else
21845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021846sed 's/^/| /' conftest.$ac_ext >&5
21847
John Criswell47fdd832003-07-14 16:52:07 +000021848fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021849rm -f conftest.err conftest.$ac_objext \
21850 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21852
21853 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21854 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"
21855 else
21856 if test "$host_cpu" = ia64; then
21857 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21858 allow_undefined_flag_GCJ="-z nodefs"
21859 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"
21860 else
21861 # Determine the default libpath from the value encoded in an empty executable.
21862 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021863/* confdefs.h. */
21864_ACEOF
21865cat confdefs.h >>conftest.$ac_ext
21866cat >>conftest.$ac_ext <<_ACEOF
21867/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021868
John Criswell47fdd832003-07-14 16:52:07 +000021869int
21870main ()
21871{
21872
21873 ;
21874 return 0;
21875}
21876_ACEOF
21877rm -f conftest.$ac_objext conftest$ac_exeext
21878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021879 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899
21900aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21901}'`
21902# Check for a 64-bit object if we didn't find anything.
21903if 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; }
21904}'`; fi
21905else
21906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021907sed 's/^/| /' conftest.$ac_ext >&5
21908
John Criswell47fdd832003-07-14 16:52:07 +000021909fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021910rm -f conftest.err conftest.$ac_objext \
21911 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021912if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21913
21914 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21915 # Warning - without using the other run time loading flags,
21916 # -berok will link without error, but may produce a broken library.
21917 no_undefined_flag_GCJ=' ${wl}-bernotok'
21918 allow_undefined_flag_GCJ=' ${wl}-berok'
21919 # -bexpall does not export symbols beginning with underscore (_)
21920 always_export_symbols_GCJ=yes
21921 # Exported symbols can be pulled into shared objects from archives
21922 whole_archive_flag_spec_GCJ=' '
21923 archive_cmds_need_lc_GCJ=yes
21924 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021925 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 +000021926 fi
21927 fi
21928 ;;
21929
21930 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021931 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 +000021932 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21933 hardcode_minus_L_GCJ=yes
21934 # see comment about different semantics on the GNU ld section
21935 ld_shlibs_GCJ=no
21936 ;;
21937
Reid Spencer2706f8c2004-09-19 23:53:36 +000021938 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021939 export_dynamic_flag_spec_GCJ=-rdynamic
21940 ;;
21941
21942 cygwin* | mingw* | pw32*)
21943 # When not using gcc, we currently assume that we are using
21944 # Microsoft Visual C++.
21945 # hardcode_libdir_flag_spec is actually meaningless, as there is
21946 # no search path for DLLs.
21947 hardcode_libdir_flag_spec_GCJ=' '
21948 allow_undefined_flag_GCJ=unsupported
21949 # Tell ltmain to make .lib files, not .a files.
21950 libext=lib
21951 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021952 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021953 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021954 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 +000021955 # The linker will automatically build a .lib file if we build a DLL.
21956 old_archive_From_new_cmds_GCJ='true'
21957 # FIXME: Should let the user specify the lib program.
21958 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21959 fix_srcfile_path='`cygpath -w "$srcfile"`'
21960 enable_shared_with_static_runtimes_GCJ=yes
21961 ;;
21962
21963 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021964 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021965 rhapsody* | darwin1.[012])
21966 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21967 ;;
21968 *) # Darwin 1.3 on
21969 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21970 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21971 else
21972 case ${MACOSX_DEPLOYMENT_TARGET} in
21973 10.[012])
21974 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21975 ;;
21976 10.*)
21977 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21978 ;;
21979 esac
21980 fi
21981 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021982 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021983 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021984 hardcode_direct_GCJ=no
21985 hardcode_automatic_GCJ=yes
21986 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021987 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021988 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021989 if test "$GCC" = yes ; then
21990 output_verbose_link_cmd='echo'
21991 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21992 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21993 # 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 +000021994 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}'
21995 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 +000021996 else
21997 case "$cc_basename" in
21998 xlc*)
21999 output_verbose_link_cmd='echo'
22000 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22001 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22002 # 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 +000022003 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}'
22004 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 +000022005 ;;
22006 *)
22007 ld_shlibs_GCJ=no
22008 ;;
22009 esac
John Criswell47fdd832003-07-14 16:52:07 +000022010 fi
22011 ;;
22012
22013 dgux*)
22014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22016 hardcode_shlibpath_var_GCJ=no
22017 ;;
22018
22019 freebsd1*)
22020 ld_shlibs_GCJ=no
22021 ;;
22022
22023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22024 # support. Future versions do this automatically, but an explicit c++rt0.o
22025 # does not break anything, and helps significantly (at the cost of a little
22026 # extra space).
22027 freebsd2.2*)
22028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22030 hardcode_direct_GCJ=yes
22031 hardcode_shlibpath_var_GCJ=no
22032 ;;
22033
22034 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22035 freebsd2*)
22036 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22037 hardcode_direct_GCJ=yes
22038 hardcode_minus_L_GCJ=yes
22039 hardcode_shlibpath_var_GCJ=no
22040 ;;
22041
22042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022043 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022044 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22046 hardcode_direct_GCJ=yes
22047 hardcode_shlibpath_var_GCJ=no
22048 ;;
22049
22050 hpux9*)
22051 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022052 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 +000022053 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022054 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 +000022055 fi
22056 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22057 hardcode_libdir_separator_GCJ=:
22058 hardcode_direct_GCJ=yes
22059
22060 # hardcode_minus_L: Not really in the search PATH,
22061 # but as the default location of the library.
22062 hardcode_minus_L_GCJ=yes
22063 export_dynamic_flag_spec_GCJ='${wl}-E'
22064 ;;
22065
22066 hpux10* | hpux11*)
22067 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22068 case "$host_cpu" in
22069 hppa*64*|ia64*)
22070 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22071 ;;
22072 *)
22073 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22074 ;;
22075 esac
22076 else
22077 case "$host_cpu" in
22078 hppa*64*|ia64*)
22079 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22080 ;;
22081 *)
22082 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22083 ;;
22084 esac
22085 fi
22086 if test "$with_gnu_ld" = no; then
22087 case "$host_cpu" in
22088 hppa*64*)
22089 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22090 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22091 hardcode_libdir_separator_GCJ=:
22092 hardcode_direct_GCJ=no
22093 hardcode_shlibpath_var_GCJ=no
22094 ;;
22095 ia64*)
22096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22097 hardcode_direct_GCJ=no
22098 hardcode_shlibpath_var_GCJ=no
22099
22100 # hardcode_minus_L: Not really in the search PATH,
22101 # but as the default location of the library.
22102 hardcode_minus_L_GCJ=yes
22103 ;;
22104 *)
22105 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22106 hardcode_libdir_separator_GCJ=:
22107 hardcode_direct_GCJ=yes
22108 export_dynamic_flag_spec_GCJ='${wl}-E'
22109
22110 # hardcode_minus_L: Not really in the search PATH,
22111 # but as the default location of the library.
22112 hardcode_minus_L_GCJ=yes
22113 ;;
22114 esac
22115 fi
22116 ;;
22117
22118 irix5* | irix6* | nonstopux*)
22119 if test "$GCC" = yes; then
22120 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'
22121 else
22122 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'
22123 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22124 fi
22125 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22126 hardcode_libdir_separator_GCJ=:
22127 link_all_deplibs_GCJ=yes
22128 ;;
22129
22130 netbsd*)
22131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22132 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22133 else
22134 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22135 fi
22136 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22137 hardcode_direct_GCJ=yes
22138 hardcode_shlibpath_var_GCJ=no
22139 ;;
22140
22141 newsos6)
22142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22143 hardcode_direct_GCJ=yes
22144 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22145 hardcode_libdir_separator_GCJ=:
22146 hardcode_shlibpath_var_GCJ=no
22147 ;;
22148
22149 openbsd*)
22150 hardcode_direct_GCJ=yes
22151 hardcode_shlibpath_var_GCJ=no
22152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22153 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022154 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 +000022155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22156 export_dynamic_flag_spec_GCJ='${wl}-E'
22157 else
22158 case $host_os in
22159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22160 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22161 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22162 ;;
22163 *)
22164 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22165 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22166 ;;
22167 esac
22168 fi
22169 ;;
22170
22171 os2*)
22172 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22173 hardcode_minus_L_GCJ=yes
22174 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022175 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 +000022176 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22177 ;;
22178
22179 osf3*)
22180 if test "$GCC" = yes; then
22181 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22182 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'
22183 else
22184 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22185 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'
22186 fi
22187 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22188 hardcode_libdir_separator_GCJ=:
22189 ;;
22190
22191 osf4* | osf5*) # as osf3* with the addition of -msym flag
22192 if test "$GCC" = yes; then
22193 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22194 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'
22195 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22196 else
22197 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22198 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 +000022199 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~
22200 $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'
22201
John Criswell47fdd832003-07-14 16:52:07 +000022202 # Both c and cxx compiler support -rpath directly
22203 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22204 fi
22205 hardcode_libdir_separator_GCJ=:
22206 ;;
22207
22208 sco3.2v5*)
22209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22210 hardcode_shlibpath_var_GCJ=no
22211 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22212 runpath_var=LD_RUN_PATH
22213 hardcode_runpath_var=yes
22214 ;;
22215
22216 solaris*)
22217 no_undefined_flag_GCJ=' -z text'
22218 if test "$GCC" = yes; then
22219 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022220 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22221 $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 +000022222 else
22223 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022224 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22225 $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 +000022226 fi
22227 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22228 hardcode_shlibpath_var_GCJ=no
22229 case $host_os in
22230 solaris2.[0-5] | solaris2.[0-5].*) ;;
22231 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22232 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22233 esac
22234 link_all_deplibs_GCJ=yes
22235 ;;
22236
22237 sunos4*)
22238 if test "x$host_vendor" = xsequent; then
22239 # Use $CC to link under sequent, because it throws in some extra .o
22240 # files that make .init and .fini sections work.
22241 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22242 else
22243 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22244 fi
22245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22246 hardcode_direct_GCJ=yes
22247 hardcode_minus_L_GCJ=yes
22248 hardcode_shlibpath_var_GCJ=no
22249 ;;
22250
22251 sysv4)
22252 case $host_vendor in
22253 sni)
22254 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22255 hardcode_direct_GCJ=yes # is this really true???
22256 ;;
22257 siemens)
22258 ## LD is ld it makes a PLAMLIB
22259 ## CC just makes a GrossModule.
22260 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22261 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22262 hardcode_direct_GCJ=no
22263 ;;
22264 motorola)
22265 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22266 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22267 ;;
22268 esac
22269 runpath_var='LD_RUN_PATH'
22270 hardcode_shlibpath_var_GCJ=no
22271 ;;
22272
22273 sysv4.3*)
22274 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22275 hardcode_shlibpath_var_GCJ=no
22276 export_dynamic_flag_spec_GCJ='-Bexport'
22277 ;;
22278
22279 sysv4*MP*)
22280 if test -d /usr/nec; then
22281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22282 hardcode_shlibpath_var_GCJ=no
22283 runpath_var=LD_RUN_PATH
22284 hardcode_runpath_var=yes
22285 ld_shlibs_GCJ=yes
22286 fi
22287 ;;
22288
22289 sysv4.2uw2*)
22290 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22291 hardcode_direct_GCJ=yes
22292 hardcode_minus_L_GCJ=no
22293 hardcode_shlibpath_var_GCJ=no
22294 hardcode_runpath_var=yes
22295 runpath_var=LD_RUN_PATH
22296 ;;
22297
22298 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22299 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22300 if test "$GCC" = yes; then
22301 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22302 else
22303 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22304 fi
22305 runpath_var='LD_RUN_PATH'
22306 hardcode_shlibpath_var_GCJ=no
22307 ;;
22308
22309 sysv5*)
22310 no_undefined_flag_GCJ=' -z text'
22311 # $CC -shared without GNU ld will not create a library from C++
22312 # object files and a static libstdc++, better avoid it by now
22313 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022314 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22315 $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 +000022316 hardcode_libdir_flag_spec_GCJ=
22317 hardcode_shlibpath_var_GCJ=no
22318 runpath_var='LD_RUN_PATH'
22319 ;;
22320
22321 uts4*)
22322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22324 hardcode_shlibpath_var_GCJ=no
22325 ;;
22326
22327 *)
22328 ld_shlibs_GCJ=no
22329 ;;
22330 esac
22331 fi
22332
22333echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22334echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22335test "$ld_shlibs_GCJ" = no && can_build_shared=no
22336
22337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22338if test "$GCC" = yes; then
22339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22340fi
22341
22342#
22343# Do we need to explicitly link libc?
22344#
22345case "x$archive_cmds_need_lc_GCJ" in
22346x|xyes)
22347 # Assume -lc should be added
22348 archive_cmds_need_lc_GCJ=yes
22349
22350 if test "$enable_shared" = yes && test "$GCC" = yes; then
22351 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022352 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022353 # FIXME: we may have to deal with multi-command sequences.
22354 ;;
22355 '$CC '*)
22356 # Test whether the compiler implicitly links with -lc since on some
22357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22358 # to ld, don't add -lc before -lgcc.
22359 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22360echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22361 $rm conftest*
22362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22363
22364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22365 (eval $ac_compile) 2>&5
22366 ac_status=$?
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } 2>conftest.err; then
22369 soname=conftest
22370 lib=conftest
22371 libobjs=conftest.$ac_objext
22372 deplibs=
22373 wl=$lt_prog_compiler_wl_GCJ
22374 compiler_flags=-v
22375 linker_flags=-v
22376 verstring=
22377 output_objdir=.
22378 libname=conftest
22379 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22380 allow_undefined_flag_GCJ=
22381 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22382 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22383 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }
22386 then
22387 archive_cmds_need_lc_GCJ=no
22388 else
22389 archive_cmds_need_lc_GCJ=yes
22390 fi
22391 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22392 else
22393 cat conftest.err 1>&5
22394 fi
22395 $rm conftest*
22396 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22397echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22398 ;;
22399 esac
22400 fi
22401 ;;
22402esac
22403
John Criswell47fdd832003-07-14 16:52:07 +000022404echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22405echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22406library_names_spec=
22407libname_spec='lib$name'
22408soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022409shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022410postinstall_cmds=
22411postuninstall_cmds=
22412finish_cmds=
22413finish_eval=
22414shlibpath_var=
22415shlibpath_overrides_runpath=unknown
22416version_type=none
22417dynamic_linker="$host_os ld.so"
22418sys_lib_dlsearch_path_spec="/lib /usr/lib"
22419if test "$GCC" = yes; then
22420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22421 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22422 # if the path contains ";" then we assume it to be the separator
22423 # otherwise default to the standard path separator (i.e. ":") - it is
22424 # assumed that no part of a normal pathname contains ";" but that should
22425 # okay in the real world where ";" in dirpaths is itself problematic.
22426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22427 else
22428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22429 fi
22430else
22431 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22432fi
22433need_lib_prefix=unknown
22434hardcode_into_libs=no
22435
22436# when you set need_version to no, make sure it does not cause -set_version
22437# flags to be left without arguments
22438need_version=unknown
22439
22440case $host_os in
22441aix3*)
22442 version_type=linux
22443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22444 shlibpath_var=LIBPATH
22445
22446 # AIX 3 has no versioning support, so we append a major version to the name.
22447 soname_spec='${libname}${release}${shared_ext}$major'
22448 ;;
22449
22450aix4* | aix5*)
22451 version_type=linux
22452 need_lib_prefix=no
22453 need_version=no
22454 hardcode_into_libs=yes
22455 if test "$host_cpu" = ia64; then
22456 # AIX 5 supports IA64
22457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22458 shlibpath_var=LD_LIBRARY_PATH
22459 else
22460 # With GCC up to 2.95.x, collect2 would create an import file
22461 # for dependence libraries. The import file would start with
22462 # the line `#! .'. This would cause the generated library to
22463 # depend on `.', always an invalid library. This was fixed in
22464 # development snapshots of GCC prior to 3.0.
22465 case $host_os in
22466 aix4 | aix4.[01] | aix4.[01].*)
22467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22468 echo ' yes '
22469 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22470 :
22471 else
22472 can_build_shared=no
22473 fi
22474 ;;
22475 esac
22476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22477 # soname into executable. Probably we can add versioning support to
22478 # collect2, so additional links can be useful in future.
22479 if test "$aix_use_runtimelinking" = yes; then
22480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22481 # instead of lib<name>.a to let people know that these are not
22482 # typical AIX shared libraries.
22483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22484 else
22485 # We preserve .a as extension for shared libraries through AIX4.2
22486 # and later when we are not doing run time linking.
22487 library_names_spec='${libname}${release}.a $libname.a'
22488 soname_spec='${libname}${release}${shared_ext}$major'
22489 fi
22490 shlibpath_var=LIBPATH
22491 fi
22492 ;;
22493
22494amigaos*)
22495 library_names_spec='$libname.ixlibrary $libname.a'
22496 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022497 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 +000022498 ;;
22499
22500beos*)
22501 library_names_spec='${libname}${shared_ext}'
22502 dynamic_linker="$host_os ld.so"
22503 shlibpath_var=LIBRARY_PATH
22504 ;;
22505
Reid Spencer2706f8c2004-09-19 23:53:36 +000022506bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022507 version_type=linux
22508 need_version=no
22509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22510 soname_spec='${libname}${release}${shared_ext}$major'
22511 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22512 shlibpath_var=LD_LIBRARY_PATH
22513 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22514 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22515 # the default ld.so.conf also contains /usr/contrib/lib and
22516 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22517 # libtool to hard-code these into programs
22518 ;;
22519
22520cygwin* | mingw* | pw32*)
22521 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022522 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022523 need_version=no
22524 need_lib_prefix=no
22525
22526 case $GCC,$host_os in
22527 yes,cygwin* | yes,mingw* | yes,pw32*)
22528 library_names_spec='$libname.dll.a'
22529 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022530 postinstall_cmds='base_file=`basename \${file}`~
22531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22532 dldir=$destdir/`dirname \$dlpath`~
22533 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022534 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22536 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022537 $rm \$dlpath'
22538 shlibpath_overrides_runpath=yes
22539
22540 case $host_os in
22541 cygwin*)
22542 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22543 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 +000022544 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022545 ;;
22546 mingw*)
22547 # MinGW DLLs use traditional 'lib' prefix
22548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22549 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22550 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22551 # It is most probably a Windows format PATH printed by
22552 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22553 # path with ; separators, and with drive letters. We can handle the
22554 # drive letters (cygwin fileutils understands them), so leave them,
22555 # especially as we might pass files found there to a mingw objdump,
22556 # which wouldn't understand a cygwinified path. Ahh.
22557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22558 else
22559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22560 fi
22561 ;;
22562 pw32*)
22563 # pw32 DLLs use 'pw' prefix rather than 'lib'
22564 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22565 ;;
22566 esac
22567 ;;
22568
22569 *)
22570 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22571 ;;
22572 esac
22573 dynamic_linker='Win32 ld.exe'
22574 # FIXME: first we should search . and the directory the executable is in
22575 shlibpath_var=PATH
22576 ;;
22577
22578darwin* | rhapsody*)
22579 dynamic_linker="$host_os dyld"
22580 version_type=darwin
22581 need_lib_prefix=no
22582 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022583 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022584 soname_spec='${libname}${release}${major}$shared_ext'
22585 shlibpath_overrides_runpath=yes
22586 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022587 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022588 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022589 if test "$GCC" = yes; then
22590 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"`
22591 else
22592 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022593 fi
22594 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22595 ;;
22596
22597dgux*)
22598 version_type=linux
22599 need_lib_prefix=no
22600 need_version=no
22601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22602 soname_spec='${libname}${release}${shared_ext}$major'
22603 shlibpath_var=LD_LIBRARY_PATH
22604 ;;
22605
22606freebsd1*)
22607 dynamic_linker=no
22608 ;;
22609
Reid Spencer2706f8c2004-09-19 23:53:36 +000022610kfreebsd*-gnu)
22611 version_type=linux
22612 need_lib_prefix=no
22613 need_version=no
22614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22615 soname_spec='${libname}${release}${shared_ext}$major'
22616 shlibpath_var=LD_LIBRARY_PATH
22617 shlibpath_overrides_runpath=no
22618 hardcode_into_libs=yes
22619 dynamic_linker='GNU ld.so'
22620 ;;
22621
John Criswell47fdd832003-07-14 16:52:07 +000022622freebsd*)
22623 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22624 version_type=freebsd-$objformat
22625 case $version_type in
22626 freebsd-elf*)
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22628 need_version=no
22629 need_lib_prefix=no
22630 ;;
22631 freebsd-*)
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22633 need_version=yes
22634 ;;
22635 esac
22636 shlibpath_var=LD_LIBRARY_PATH
22637 case $host_os in
22638 freebsd2*)
22639 shlibpath_overrides_runpath=yes
22640 ;;
22641 freebsd3.01* | freebsdelf3.01*)
22642 shlibpath_overrides_runpath=yes
22643 hardcode_into_libs=yes
22644 ;;
22645 *) # from 3.2 on
22646 shlibpath_overrides_runpath=no
22647 hardcode_into_libs=yes
22648 ;;
22649 esac
22650 ;;
22651
22652gnu*)
22653 version_type=linux
22654 need_lib_prefix=no
22655 need_version=no
22656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22657 soname_spec='${libname}${release}${shared_ext}$major'
22658 shlibpath_var=LD_LIBRARY_PATH
22659 hardcode_into_libs=yes
22660 ;;
22661
22662hpux9* | hpux10* | hpux11*)
22663 # Give a soname corresponding to the major version so that dld.sl refuses to
22664 # link against other versions.
22665 version_type=sunos
22666 need_lib_prefix=no
22667 need_version=no
22668 case "$host_cpu" in
22669 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022670 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022671 hardcode_into_libs=yes
22672 dynamic_linker="$host_os dld.so"
22673 shlibpath_var=LD_LIBRARY_PATH
22674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22676 soname_spec='${libname}${release}${shared_ext}$major'
22677 if test "X$HPUX_IA64_MODE" = X32; then
22678 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22679 else
22680 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22681 fi
22682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22683 ;;
22684 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022685 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022686 hardcode_into_libs=yes
22687 dynamic_linker="$host_os dld.sl"
22688 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691 soname_spec='${libname}${release}${shared_ext}$major'
22692 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22694 ;;
22695 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022696 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022697 dynamic_linker="$host_os dld.sl"
22698 shlibpath_var=SHLIB_PATH
22699 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22701 soname_spec='${libname}${release}${shared_ext}$major'
22702 ;;
22703 esac
22704 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22705 postinstall_cmds='chmod 555 $lib'
22706 ;;
22707
22708irix5* | irix6* | nonstopux*)
22709 case $host_os in
22710 nonstopux*) version_type=nonstopux ;;
22711 *)
22712 if test "$lt_cv_prog_gnu_ld" = yes; then
22713 version_type=linux
22714 else
22715 version_type=irix
22716 fi ;;
22717 esac
22718 need_lib_prefix=no
22719 need_version=no
22720 soname_spec='${libname}${release}${shared_ext}$major'
22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22722 case $host_os in
22723 irix5* | nonstopux*)
22724 libsuff= shlibsuff=
22725 ;;
22726 *)
22727 case $LD in # libtool.m4 will add one of these switches to LD
22728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22729 libsuff= shlibsuff= libmagic=32-bit;;
22730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22731 libsuff=32 shlibsuff=N32 libmagic=N32;;
22732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22734 *) libsuff= shlibsuff= libmagic=never-match;;
22735 esac
22736 ;;
22737 esac
22738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22739 shlibpath_overrides_runpath=no
22740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22742 hardcode_into_libs=yes
22743 ;;
22744
22745# No shared lib support for Linux oldld, aout, or coff.
22746linux*oldld* | linux*aout* | linux*coff*)
22747 dynamic_linker=no
22748 ;;
22749
22750# This must be Linux ELF.
22751linux*)
22752 version_type=linux
22753 need_lib_prefix=no
22754 need_version=no
22755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22756 soname_spec='${libname}${release}${shared_ext}$major'
22757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 shlibpath_overrides_runpath=no
22760 # This implies no fast_install, which is unacceptable.
22761 # Some rework will be needed to allow for fast_install
22762 # before this can be enabled.
22763 hardcode_into_libs=yes
22764
Reid Spencer2706f8c2004-09-19 23:53:36 +000022765 # Append ld.so.conf contents to the search path
22766 if test -f /etc/ld.so.conf; then
22767 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22769 fi
22770
John Criswell47fdd832003-07-14 16:52:07 +000022771 # We used to test for /lib/ld.so.1 and disable shared libraries on
22772 # powerpc, because MkLinux only supported shared libraries with the
22773 # GNU dynamic linker. Since this was broken with cross compilers,
22774 # most powerpc-linux boxes support dynamic linking these days and
22775 # people can always --disable-shared, the test was removed, and we
22776 # assume the GNU/Linux dynamic linker is in use.
22777 dynamic_linker='GNU/Linux ld.so'
22778 ;;
22779
Reid Spencer2706f8c2004-09-19 23:53:36 +000022780knetbsd*-gnu)
22781 version_type=linux
22782 need_lib_prefix=no
22783 need_version=no
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22785 soname_spec='${libname}${release}${shared_ext}$major'
22786 shlibpath_var=LD_LIBRARY_PATH
22787 shlibpath_overrides_runpath=no
22788 hardcode_into_libs=yes
22789 dynamic_linker='GNU ld.so'
22790 ;;
22791
John Criswell47fdd832003-07-14 16:52:07 +000022792netbsd*)
22793 version_type=sunos
22794 need_lib_prefix=no
22795 need_version=no
22796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22799 dynamic_linker='NetBSD (a.out) ld.so'
22800 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022802 soname_spec='${libname}${release}${shared_ext}$major'
22803 dynamic_linker='NetBSD ld.elf_so'
22804 fi
22805 shlibpath_var=LD_LIBRARY_PATH
22806 shlibpath_overrides_runpath=yes
22807 hardcode_into_libs=yes
22808 ;;
22809
22810newsos6)
22811 version_type=linux
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 shlibpath_overrides_runpath=yes
22815 ;;
22816
Reid Spencer2706f8c2004-09-19 23:53:36 +000022817nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022818 version_type=linux
22819 need_lib_prefix=no
22820 need_version=no
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822 soname_spec='${libname}${release}${shared_ext}$major'
22823 shlibpath_var=LD_LIBRARY_PATH
22824 shlibpath_overrides_runpath=yes
22825 ;;
22826
22827openbsd*)
22828 version_type=sunos
22829 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022830 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22833 shlibpath_var=LD_LIBRARY_PATH
22834 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22835 case $host_os in
22836 openbsd2.[89] | openbsd2.[89].*)
22837 shlibpath_overrides_runpath=no
22838 ;;
22839 *)
22840 shlibpath_overrides_runpath=yes
22841 ;;
22842 esac
22843 else
22844 shlibpath_overrides_runpath=yes
22845 fi
22846 ;;
22847
22848os2*)
22849 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022850 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022851 need_lib_prefix=no
22852 library_names_spec='$libname${shared_ext} $libname.a'
22853 dynamic_linker='OS/2 ld.exe'
22854 shlibpath_var=LIBPATH
22855 ;;
22856
22857osf3* | osf4* | osf5*)
22858 version_type=osf
22859 need_lib_prefix=no
22860 need_version=no
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22863 shlibpath_var=LD_LIBRARY_PATH
22864 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22865 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22866 ;;
22867
22868sco3.2v5*)
22869 version_type=osf
22870 soname_spec='${libname}${release}${shared_ext}$major'
22871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 ;;
22874
22875solaris*)
22876 version_type=linux
22877 need_lib_prefix=no
22878 need_version=no
22879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22880 soname_spec='${libname}${release}${shared_ext}$major'
22881 shlibpath_var=LD_LIBRARY_PATH
22882 shlibpath_overrides_runpath=yes
22883 hardcode_into_libs=yes
22884 # ldd complains unless libraries are executable
22885 postinstall_cmds='chmod +x $lib'
22886 ;;
22887
22888sunos4*)
22889 version_type=sunos
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22892 shlibpath_var=LD_LIBRARY_PATH
22893 shlibpath_overrides_runpath=yes
22894 if test "$with_gnu_ld" = yes; then
22895 need_lib_prefix=no
22896 fi
22897 need_version=yes
22898 ;;
22899
22900sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22901 version_type=linux
22902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22903 soname_spec='${libname}${release}${shared_ext}$major'
22904 shlibpath_var=LD_LIBRARY_PATH
22905 case $host_vendor in
22906 sni)
22907 shlibpath_overrides_runpath=no
22908 need_lib_prefix=no
22909 export_dynamic_flag_spec='${wl}-Blargedynsym'
22910 runpath_var=LD_RUN_PATH
22911 ;;
22912 siemens)
22913 need_lib_prefix=no
22914 ;;
22915 motorola)
22916 need_lib_prefix=no
22917 need_version=no
22918 shlibpath_overrides_runpath=no
22919 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22920 ;;
22921 esac
22922 ;;
22923
22924sysv4*MP*)
22925 if test -d /usr/nec ;then
22926 version_type=linux
22927 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22928 soname_spec='$libname${shared_ext}.$major'
22929 shlibpath_var=LD_LIBRARY_PATH
22930 fi
22931 ;;
22932
22933uts4*)
22934 version_type=linux
22935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22936 soname_spec='${libname}${release}${shared_ext}$major'
22937 shlibpath_var=LD_LIBRARY_PATH
22938 ;;
22939
22940*)
22941 dynamic_linker=no
22942 ;;
22943esac
22944echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22945echo "${ECHO_T}$dynamic_linker" >&6
22946test "$dynamic_linker" = no && can_build_shared=no
22947
Reid Spencer2706f8c2004-09-19 23:53:36 +000022948echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22949echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22950hardcode_action_GCJ=
22951if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22952 test -n "$runpath_var_GCJ" || \
22953 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22954
22955 # We can hardcode non-existant directories.
22956 if test "$hardcode_direct_GCJ" != no &&
22957 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22958 # have to relink, otherwise we might link with an installed library
22959 # when we should be linking with a yet-to-be-installed one
22960 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22961 test "$hardcode_minus_L_GCJ" != no; then
22962 # Linking always hardcodes the temporary library directory.
22963 hardcode_action_GCJ=relink
22964 else
22965 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22966 hardcode_action_GCJ=immediate
22967 fi
22968else
22969 # We cannot hardcode anything, or else we can only hardcode existing
22970 # directories.
22971 hardcode_action_GCJ=unsupported
22972fi
22973echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22974echo "${ECHO_T}$hardcode_action_GCJ" >&6
22975
22976if test "$hardcode_action_GCJ" = relink; then
22977 # Fast installation is not supported
22978 enable_fast_install=no
22979elif test "$shlibpath_overrides_runpath" = yes ||
22980 test "$enable_shared" = no; then
22981 # Fast installation is not necessary
22982 enable_fast_install=needless
22983fi
22984
22985striplib=
22986old_striplib=
22987echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22988echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22989if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22990 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22991 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22992 echo "$as_me:$LINENO: result: yes" >&5
22993echo "${ECHO_T}yes" >&6
22994else
22995# FIXME - insert some real tests, host_os isn't really good enough
22996 case $host_os in
22997 darwin*)
22998 if test -n "$STRIP" ; then
22999 striplib="$STRIP -x"
23000 echo "$as_me:$LINENO: result: yes" >&5
23001echo "${ECHO_T}yes" >&6
23002 else
23003 echo "$as_me:$LINENO: result: no" >&5
23004echo "${ECHO_T}no" >&6
23005fi
23006 ;;
23007 *)
23008 echo "$as_me:$LINENO: result: no" >&5
23009echo "${ECHO_T}no" >&6
23010 ;;
23011 esac
23012fi
23013
John Criswell47fdd832003-07-14 16:52:07 +000023014if test "x$enable_dlopen" != xyes; then
23015 enable_dlopen=unknown
23016 enable_dlopen_self=unknown
23017 enable_dlopen_self_static=unknown
23018else
23019 lt_cv_dlopen=no
23020 lt_cv_dlopen_libs=
23021
23022 case $host_os in
23023 beos*)
23024 lt_cv_dlopen="load_add_on"
23025 lt_cv_dlopen_libs=
23026 lt_cv_dlopen_self=yes
23027 ;;
23028
23029 mingw* | pw32*)
23030 lt_cv_dlopen="LoadLibrary"
23031 lt_cv_dlopen_libs=
23032 ;;
23033
23034 cygwin*)
23035 lt_cv_dlopen="dlopen"
23036 lt_cv_dlopen_libs=
23037 ;;
23038
23039 darwin*)
23040 # if libdl is installed we need to link against it
23041 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23042echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23043if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23045else
23046 ac_check_lib_save_LIBS=$LIBS
23047LIBS="-ldl $LIBS"
23048cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023049/* confdefs.h. */
23050_ACEOF
23051cat confdefs.h >>conftest.$ac_ext
23052cat >>conftest.$ac_ext <<_ACEOF
23053/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023054
23055/* Override any gcc2 internal prototype to avoid an error. */
23056#ifdef __cplusplus
23057extern "C"
23058#endif
23059/* We use char because int might match the return type of a gcc2
23060 builtin and then its argument prototype would still apply. */
23061char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023062int
23063main ()
23064{
23065dlopen ();
23066 ;
23067 return 0;
23068}
23069_ACEOF
23070rm -f conftest.$ac_objext conftest$ac_exeext
23071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023072 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023073 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023079 { ac_try='test -z "$ac_c_werror_flag"
23080 || test ! -s conftest.err'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; } &&
23086 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23088 (eval $ac_try) 2>&5
23089 ac_status=$?
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); }; }; then
23092 ac_cv_lib_dl_dlopen=yes
23093else
23094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023095sed 's/^/| /' conftest.$ac_ext >&5
23096
John Criswell47fdd832003-07-14 16:52:07 +000023097ac_cv_lib_dl_dlopen=no
23098fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023099rm -f conftest.err conftest.$ac_objext \
23100 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023101LIBS=$ac_check_lib_save_LIBS
23102fi
23103echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23104echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23105if test $ac_cv_lib_dl_dlopen = yes; then
23106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23107else
23108
23109 lt_cv_dlopen="dyld"
23110 lt_cv_dlopen_libs=
23111 lt_cv_dlopen_self=yes
23112
23113fi
23114
23115 ;;
23116
23117 *)
23118 echo "$as_me:$LINENO: checking for shl_load" >&5
23119echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23120if test "${ac_cv_func_shl_load+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23122else
23123 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023124/* confdefs.h. */
23125_ACEOF
23126cat confdefs.h >>conftest.$ac_ext
23127cat >>conftest.$ac_ext <<_ACEOF
23128/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023129/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23131#define shl_load innocuous_shl_load
23132
John Criswell47fdd832003-07-14 16:52:07 +000023133/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023134 which can conflict with char shl_load (); below.
23135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23136 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023137
John Criswell0c38eaf2003-09-10 15:17:25 +000023138#ifdef __STDC__
23139# include <limits.h>
23140#else
23141# include <assert.h>
23142#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023143
23144#undef shl_load
23145
John Criswell47fdd832003-07-14 16:52:07 +000023146/* Override any gcc2 internal prototype to avoid an error. */
23147#ifdef __cplusplus
23148extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023149{
John Criswell47fdd832003-07-14 16:52:07 +000023150#endif
23151/* We use char because int might match the return type of a gcc2
23152 builtin and then its argument prototype would still apply. */
23153char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023154/* The GNU C library defines this for functions which it implements
23155 to always fail with ENOSYS. Some functions are actually named
23156 something starting with __ and the normal name is an alias. */
23157#if defined (__stub_shl_load) || defined (__stub___shl_load)
23158choke me
23159#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023160char (*f) () = shl_load;
23161#endif
23162#ifdef __cplusplus
23163}
John Criswell47fdd832003-07-14 16:52:07 +000023164#endif
23165
John Criswell0c38eaf2003-09-10 15:17:25 +000023166int
23167main ()
23168{
23169return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023170 ;
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_func_shl_load=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_func_shl_load=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 +000023205fi
23206echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23207echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23208if test $ac_cv_func_shl_load = yes; then
23209 lt_cv_dlopen="shl_load"
23210else
23211 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23212echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23213if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23215else
23216 ac_check_lib_save_LIBS=$LIBS
23217LIBS="-ldld $LIBS"
23218cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023219/* confdefs.h. */
23220_ACEOF
23221cat confdefs.h >>conftest.$ac_ext
23222cat >>conftest.$ac_ext <<_ACEOF
23223/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023224
23225/* Override any gcc2 internal prototype to avoid an error. */
23226#ifdef __cplusplus
23227extern "C"
23228#endif
23229/* We use char because int might match the return type of a gcc2
23230 builtin and then its argument prototype would still apply. */
23231char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023232int
23233main ()
23234{
23235shl_load ();
23236 ;
23237 return 0;
23238}
23239_ACEOF
23240rm -f conftest.$ac_objext conftest$ac_exeext
23241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023242 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023243 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023244 grep -v '^ *+' conftest.er1 >conftest.err
23245 rm -f conftest.er1
23246 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023249 { ac_try='test -z "$ac_c_werror_flag"
23250 || test ! -s conftest.err'
23251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23252 (eval $ac_try) 2>&5
23253 ac_status=$?
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); }; } &&
23256 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23259 ac_status=$?
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; }; then
23262 ac_cv_lib_dld_shl_load=yes
23263else
23264 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023265sed 's/^/| /' conftest.$ac_ext >&5
23266
John Criswell47fdd832003-07-14 16:52:07 +000023267ac_cv_lib_dld_shl_load=no
23268fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023269rm -f conftest.err conftest.$ac_objext \
23270 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023271LIBS=$ac_check_lib_save_LIBS
23272fi
23273echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23274echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23275if test $ac_cv_lib_dld_shl_load = yes; then
23276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23277else
23278 echo "$as_me:$LINENO: checking for dlopen" >&5
23279echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23280if test "${ac_cv_func_dlopen+set}" = set; then
23281 echo $ECHO_N "(cached) $ECHO_C" >&6
23282else
23283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023284/* confdefs.h. */
23285_ACEOF
23286cat confdefs.h >>conftest.$ac_ext
23287cat >>conftest.$ac_ext <<_ACEOF
23288/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023289/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23291#define dlopen innocuous_dlopen
23292
John Criswell47fdd832003-07-14 16:52:07 +000023293/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023294 which can conflict with char dlopen (); below.
23295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23296 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023297
John Criswell0c38eaf2003-09-10 15:17:25 +000023298#ifdef __STDC__
23299# include <limits.h>
23300#else
23301# include <assert.h>
23302#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023303
23304#undef dlopen
23305
John Criswell47fdd832003-07-14 16:52:07 +000023306/* Override any gcc2 internal prototype to avoid an error. */
23307#ifdef __cplusplus
23308extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023309{
John Criswell47fdd832003-07-14 16:52:07 +000023310#endif
23311/* We use char because int might match the return type of a gcc2
23312 builtin and then its argument prototype would still apply. */
23313char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023314/* The GNU C library defines this for functions which it implements
23315 to always fail with ENOSYS. Some functions are actually named
23316 something starting with __ and the normal name is an alias. */
23317#if defined (__stub_dlopen) || defined (__stub___dlopen)
23318choke me
23319#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023320char (*f) () = dlopen;
23321#endif
23322#ifdef __cplusplus
23323}
John Criswell47fdd832003-07-14 16:52:07 +000023324#endif
23325
John Criswell0c38eaf2003-09-10 15:17:25 +000023326int
23327main ()
23328{
23329return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023330 ;
23331 return 0;
23332}
23333_ACEOF
23334rm -f conftest.$ac_objext conftest$ac_exeext
23335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023336 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023337 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023338 grep -v '^ *+' conftest.er1 >conftest.err
23339 rm -f conftest.er1
23340 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023343 { ac_try='test -z "$ac_c_werror_flag"
23344 || test ! -s conftest.err'
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23347 ac_status=$?
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; } &&
23350 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23356 ac_cv_func_dlopen=yes
23357else
23358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023359sed 's/^/| /' conftest.$ac_ext >&5
23360
John Criswell47fdd832003-07-14 16:52:07 +000023361ac_cv_func_dlopen=no
23362fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023363rm -f conftest.err conftest.$ac_objext \
23364 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023365fi
23366echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23367echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23368if test $ac_cv_func_dlopen = yes; then
23369 lt_cv_dlopen="dlopen"
23370else
23371 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23372echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23373if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23375else
23376 ac_check_lib_save_LIBS=$LIBS
23377LIBS="-ldl $LIBS"
23378cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023379/* confdefs.h. */
23380_ACEOF
23381cat confdefs.h >>conftest.$ac_ext
23382cat >>conftest.$ac_ext <<_ACEOF
23383/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023384
23385/* Override any gcc2 internal prototype to avoid an error. */
23386#ifdef __cplusplus
23387extern "C"
23388#endif
23389/* We use char because int might match the return type of a gcc2
23390 builtin and then its argument prototype would still apply. */
23391char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023392int
23393main ()
23394{
23395dlopen ();
23396 ;
23397 return 0;
23398}
23399_ACEOF
23400rm -f conftest.$ac_objext conftest$ac_exeext
23401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023402 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023404 grep -v '^ *+' conftest.er1 >conftest.err
23405 rm -f conftest.er1
23406 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023409 { ac_try='test -z "$ac_c_werror_flag"
23410 || test ! -s conftest.err'
23411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); }; } &&
23416 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23419 ac_status=$?
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; }; then
23422 ac_cv_lib_dl_dlopen=yes
23423else
23424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023425sed 's/^/| /' conftest.$ac_ext >&5
23426
John Criswell47fdd832003-07-14 16:52:07 +000023427ac_cv_lib_dl_dlopen=no
23428fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023429rm -f conftest.err conftest.$ac_objext \
23430 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023431LIBS=$ac_check_lib_save_LIBS
23432fi
23433echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23434echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23435if test $ac_cv_lib_dl_dlopen = yes; then
23436 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23437else
23438 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23439echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23440if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442else
23443 ac_check_lib_save_LIBS=$LIBS
23444LIBS="-lsvld $LIBS"
23445cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023446/* confdefs.h. */
23447_ACEOF
23448cat confdefs.h >>conftest.$ac_ext
23449cat >>conftest.$ac_ext <<_ACEOF
23450/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023451
23452/* Override any gcc2 internal prototype to avoid an error. */
23453#ifdef __cplusplus
23454extern "C"
23455#endif
23456/* We use char because int might match the return type of a gcc2
23457 builtin and then its argument prototype would still apply. */
23458char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023459int
23460main ()
23461{
23462dlopen ();
23463 ;
23464 return 0;
23465}
23466_ACEOF
23467rm -f conftest.$ac_objext conftest$ac_exeext
23468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023469 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023471 grep -v '^ *+' conftest.er1 >conftest.err
23472 rm -f conftest.er1
23473 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023476 { ac_try='test -z "$ac_c_werror_flag"
23477 || test ! -s conftest.err'
23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479 (eval $ac_try) 2>&5
23480 ac_status=$?
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; } &&
23483 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485 (eval $ac_try) 2>&5
23486 ac_status=$?
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); }; }; then
23489 ac_cv_lib_svld_dlopen=yes
23490else
23491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023492sed 's/^/| /' conftest.$ac_ext >&5
23493
John Criswell47fdd832003-07-14 16:52:07 +000023494ac_cv_lib_svld_dlopen=no
23495fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023496rm -f conftest.err conftest.$ac_objext \
23497 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023498LIBS=$ac_check_lib_save_LIBS
23499fi
23500echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23501echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23502if test $ac_cv_lib_svld_dlopen = yes; then
23503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23504else
23505 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23506echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23507if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23509else
23510 ac_check_lib_save_LIBS=$LIBS
23511LIBS="-ldld $LIBS"
23512cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023513/* confdefs.h. */
23514_ACEOF
23515cat confdefs.h >>conftest.$ac_ext
23516cat >>conftest.$ac_ext <<_ACEOF
23517/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023518
23519/* Override any gcc2 internal prototype to avoid an error. */
23520#ifdef __cplusplus
23521extern "C"
23522#endif
23523/* We use char because int might match the return type of a gcc2
23524 builtin and then its argument prototype would still apply. */
23525char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023526int
23527main ()
23528{
23529dld_link ();
23530 ;
23531 return 0;
23532}
23533_ACEOF
23534rm -f conftest.$ac_objext conftest$ac_exeext
23535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023536 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023538 grep -v '^ *+' conftest.er1 >conftest.err
23539 rm -f conftest.er1
23540 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023543 { ac_try='test -z "$ac_c_werror_flag"
23544 || test ! -s conftest.err'
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 ac_cv_lib_dld_dld_link=yes
23557else
23558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023559sed 's/^/| /' conftest.$ac_ext >&5
23560
John Criswell47fdd832003-07-14 16:52:07 +000023561ac_cv_lib_dld_dld_link=no
23562fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023563rm -f conftest.err conftest.$ac_objext \
23564 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023565LIBS=$ac_check_lib_save_LIBS
23566fi
23567echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23568echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23569if test $ac_cv_lib_dld_dld_link = yes; then
23570 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23571fi
23572
23573
23574fi
23575
23576
23577fi
23578
23579
23580fi
23581
23582
23583fi
23584
23585
23586fi
23587
23588 ;;
23589 esac
23590
23591 if test "x$lt_cv_dlopen" != xno; then
23592 enable_dlopen=yes
23593 else
23594 enable_dlopen=no
23595 fi
23596
23597 case $lt_cv_dlopen in
23598 dlopen)
23599 save_CPPFLAGS="$CPPFLAGS"
23600 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23601
23602 save_LDFLAGS="$LDFLAGS"
23603 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23604
23605 save_LIBS="$LIBS"
23606 LIBS="$lt_cv_dlopen_libs $LIBS"
23607
23608 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23609echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23610if test "${lt_cv_dlopen_self+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23612else
23613 if test "$cross_compiling" = yes; then :
23614 lt_cv_dlopen_self=cross
23615else
23616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23617 lt_status=$lt_dlunknown
23618 cat > conftest.$ac_ext <<EOF
John Criswell241116f2005-12-19 20:27:24 +000023619#line 23619 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023620#include "confdefs.h"
23621
23622#if HAVE_DLFCN_H
23623#include <dlfcn.h>
23624#endif
23625
23626#include <stdio.h>
23627
23628#ifdef RTLD_GLOBAL
23629# define LT_DLGLOBAL RTLD_GLOBAL
23630#else
23631# ifdef DL_GLOBAL
23632# define LT_DLGLOBAL DL_GLOBAL
23633# else
23634# define LT_DLGLOBAL 0
23635# endif
23636#endif
23637
23638/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23639 find out it does not work in some platform. */
23640#ifndef LT_DLLAZY_OR_NOW
23641# ifdef RTLD_LAZY
23642# define LT_DLLAZY_OR_NOW RTLD_LAZY
23643# else
23644# ifdef DL_LAZY
23645# define LT_DLLAZY_OR_NOW DL_LAZY
23646# else
23647# ifdef RTLD_NOW
23648# define LT_DLLAZY_OR_NOW RTLD_NOW
23649# else
23650# ifdef DL_NOW
23651# define LT_DLLAZY_OR_NOW DL_NOW
23652# else
23653# define LT_DLLAZY_OR_NOW 0
23654# endif
23655# endif
23656# endif
23657# endif
23658#endif
23659
23660#ifdef __cplusplus
23661extern "C" void exit (int);
23662#endif
23663
23664void fnord() { int i=42;}
23665int main ()
23666{
23667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23668 int status = $lt_dlunknown;
23669
23670 if (self)
23671 {
23672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23673 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23674 /* dlclose (self); */
23675 }
23676
23677 exit (status);
23678}
23679EOF
23680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23681 (eval $ac_link) 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23685 (./conftest; exit; ) 2>/dev/null
23686 lt_status=$?
23687 case x$lt_status in
23688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23690 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23691 esac
23692 else :
23693 # compilation failed
23694 lt_cv_dlopen_self=no
23695 fi
23696fi
23697rm -fr conftest*
23698
23699
23700fi
23701echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23702echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23703
23704 if test "x$lt_cv_dlopen_self" = xyes; then
23705 LDFLAGS="$LDFLAGS $link_static_flag"
23706 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23707echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23708if test "${lt_cv_dlopen_self_static+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23710else
23711 if test "$cross_compiling" = yes; then :
23712 lt_cv_dlopen_self_static=cross
23713else
23714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23715 lt_status=$lt_dlunknown
23716 cat > conftest.$ac_ext <<EOF
John Criswell241116f2005-12-19 20:27:24 +000023717#line 23717 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023718#include "confdefs.h"
23719
23720#if HAVE_DLFCN_H
23721#include <dlfcn.h>
23722#endif
23723
23724#include <stdio.h>
23725
23726#ifdef RTLD_GLOBAL
23727# define LT_DLGLOBAL RTLD_GLOBAL
23728#else
23729# ifdef DL_GLOBAL
23730# define LT_DLGLOBAL DL_GLOBAL
23731# else
23732# define LT_DLGLOBAL 0
23733# endif
23734#endif
23735
23736/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23737 find out it does not work in some platform. */
23738#ifndef LT_DLLAZY_OR_NOW
23739# ifdef RTLD_LAZY
23740# define LT_DLLAZY_OR_NOW RTLD_LAZY
23741# else
23742# ifdef DL_LAZY
23743# define LT_DLLAZY_OR_NOW DL_LAZY
23744# else
23745# ifdef RTLD_NOW
23746# define LT_DLLAZY_OR_NOW RTLD_NOW
23747# else
23748# ifdef DL_NOW
23749# define LT_DLLAZY_OR_NOW DL_NOW
23750# else
23751# define LT_DLLAZY_OR_NOW 0
23752# endif
23753# endif
23754# endif
23755# endif
23756#endif
23757
23758#ifdef __cplusplus
23759extern "C" void exit (int);
23760#endif
23761
23762void fnord() { int i=42;}
23763int main ()
23764{
23765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23766 int status = $lt_dlunknown;
23767
23768 if (self)
23769 {
23770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23772 /* dlclose (self); */
23773 }
23774
23775 exit (status);
23776}
23777EOF
23778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23779 (eval $ac_link) 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23783 (./conftest; exit; ) 2>/dev/null
23784 lt_status=$?
23785 case x$lt_status in
23786 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23787 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23788 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23789 esac
23790 else :
23791 # compilation failed
23792 lt_cv_dlopen_self_static=no
23793 fi
23794fi
23795rm -fr conftest*
23796
23797
23798fi
23799echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23800echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23801 fi
23802
23803 CPPFLAGS="$save_CPPFLAGS"
23804 LDFLAGS="$save_LDFLAGS"
23805 LIBS="$save_LIBS"
23806 ;;
23807 esac
23808
23809 case $lt_cv_dlopen_self in
23810 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23811 *) enable_dlopen_self=unknown ;;
23812 esac
23813
23814 case $lt_cv_dlopen_self_static in
23815 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23816 *) enable_dlopen_self_static=unknown ;;
23817 esac
23818fi
23819
23820
23821# The else clause should only fire when bootstrapping the
23822# libtool distribution, otherwise you forgot to ship ltmain.sh
23823# with your package, and you will get complaints that there are
23824# no rules to generate ltmain.sh.
23825if test -f "$ltmain"; then
23826 # See if we are running on zsh, and set the options which allow our commands through
23827 # without removal of \ escapes.
23828 if test -n "${ZSH_VERSION+set}" ; then
23829 setopt NO_GLOB_SUBST
23830 fi
23831 # Now quote all the things that may contain metacharacters while being
23832 # careful not to overquote the AC_SUBSTed values. We take copies of the
23833 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23835 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23838 deplibs_check_method reload_flag reload_cmds need_locks \
23839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23840 lt_cv_sys_global_symbol_to_c_name_address \
23841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23842 old_postinstall_cmds old_postuninstall_cmds \
23843 compiler_GCJ \
23844 CC_GCJ \
23845 LD_GCJ \
23846 lt_prog_compiler_wl_GCJ \
23847 lt_prog_compiler_pic_GCJ \
23848 lt_prog_compiler_static_GCJ \
23849 lt_prog_compiler_no_builtin_flag_GCJ \
23850 export_dynamic_flag_spec_GCJ \
23851 thread_safe_flag_spec_GCJ \
23852 whole_archive_flag_spec_GCJ \
23853 enable_shared_with_static_runtimes_GCJ \
23854 old_archive_cmds_GCJ \
23855 old_archive_from_new_cmds_GCJ \
23856 predep_objects_GCJ \
23857 postdep_objects_GCJ \
23858 predeps_GCJ \
23859 postdeps_GCJ \
23860 compiler_lib_search_path_GCJ \
23861 archive_cmds_GCJ \
23862 archive_expsym_cmds_GCJ \
23863 postinstall_cmds_GCJ \
23864 postuninstall_cmds_GCJ \
23865 old_archive_from_expsyms_cmds_GCJ \
23866 allow_undefined_flag_GCJ \
23867 no_undefined_flag_GCJ \
23868 export_symbols_cmds_GCJ \
23869 hardcode_libdir_flag_spec_GCJ \
23870 hardcode_libdir_flag_spec_ld_GCJ \
23871 hardcode_libdir_separator_GCJ \
23872 hardcode_automatic_GCJ \
23873 module_cmds_GCJ \
23874 module_expsym_cmds_GCJ \
23875 lt_cv_prog_compiler_c_o_GCJ \
23876 exclude_expsyms_GCJ \
23877 include_expsyms_GCJ; do
23878
23879 case $var in
23880 old_archive_cmds_GCJ | \
23881 old_archive_from_new_cmds_GCJ | \
23882 archive_cmds_GCJ | \
23883 archive_expsym_cmds_GCJ | \
23884 module_cmds_GCJ | \
23885 module_expsym_cmds_GCJ | \
23886 old_archive_from_expsyms_cmds_GCJ | \
23887 export_symbols_cmds_GCJ | \
23888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23889 postinstall_cmds | postuninstall_cmds | \
23890 old_postinstall_cmds | old_postuninstall_cmds | \
23891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23892 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023893 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 +000023894 ;;
23895 *)
23896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23897 ;;
23898 esac
23899 done
23900
23901 case $lt_echo in
23902 *'\$0 --fallback-echo"')
23903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23904 ;;
23905 esac
23906
23907cfgfile="$ofile"
23908
23909 cat <<__EOF__ >> "$cfgfile"
23910# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23911
23912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23913
23914# Shell to use when invoking shell scripts.
23915SHELL=$lt_SHELL
23916
23917# Whether or not to build shared libraries.
23918build_libtool_libs=$enable_shared
23919
23920# Whether or not to build static libraries.
23921build_old_libs=$enable_static
23922
23923# Whether or not to add -lc for building shared libraries.
23924build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23925
23926# Whether or not to disallow shared libs when runtime libs are static
23927allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23928
23929# Whether or not to optimize for fast installation.
23930fast_install=$enable_fast_install
23931
23932# The host system.
23933host_alias=$host_alias
23934host=$host
23935
23936# An echo program that does not interpret backslashes.
23937echo=$lt_echo
23938
23939# The archiver.
23940AR=$lt_AR
23941AR_FLAGS=$lt_AR_FLAGS
23942
23943# A C compiler.
23944LTCC=$lt_LTCC
23945
23946# A language-specific compiler.
23947CC=$lt_compiler_GCJ
23948
23949# Is the compiler the GNU C compiler?
23950with_gcc=$GCC_GCJ
23951
23952# An ERE matcher.
23953EGREP=$lt_EGREP
23954
23955# The linker used to build libraries.
23956LD=$lt_LD_GCJ
23957
23958# Whether we need hard or soft links.
23959LN_S=$lt_LN_S
23960
23961# A BSD-compatible nm program.
23962NM=$lt_NM
23963
23964# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023965STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023966
23967# Used to examine libraries when file_magic_cmd begins "file"
23968MAGIC_CMD=$MAGIC_CMD
23969
23970# Used on cygwin: DLL creation program.
23971DLLTOOL="$DLLTOOL"
23972
23973# Used on cygwin: object dumper.
23974OBJDUMP="$OBJDUMP"
23975
23976# Used on cygwin: assembler.
23977AS="$AS"
23978
23979# The name of the directory that contains temporary libtool files.
23980objdir=$objdir
23981
23982# How to create reloadable object files.
23983reload_flag=$lt_reload_flag
23984reload_cmds=$lt_reload_cmds
23985
23986# How to pass a linker flag through the compiler.
23987wl=$lt_lt_prog_compiler_wl_GCJ
23988
23989# Object file suffix (normally "o").
23990objext="$ac_objext"
23991
23992# Old archive suffix (normally "a").
23993libext="$libext"
23994
23995# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023996shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023997
23998# Executable file suffix (normally "").
23999exeext="$exeext"
24000
24001# Additional compiler flags for building library objects.
24002pic_flag=$lt_lt_prog_compiler_pic_GCJ
24003pic_mode=$pic_mode
24004
24005# What is the maximum length of a command?
24006max_cmd_len=$lt_cv_sys_max_cmd_len
24007
24008# Does compiler simultaneously support -c and -o options?
24009compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24010
24011# Must we lock files when doing compilation ?
24012need_locks=$lt_need_locks
24013
24014# Do we need the lib prefix for modules?
24015need_lib_prefix=$need_lib_prefix
24016
24017# Do we need a version for libraries?
24018need_version=$need_version
24019
24020# Whether dlopen is supported.
24021dlopen_support=$enable_dlopen
24022
24023# Whether dlopen of programs is supported.
24024dlopen_self=$enable_dlopen_self
24025
24026# Whether dlopen of statically linked programs is supported.
24027dlopen_self_static=$enable_dlopen_self_static
24028
24029# Compiler flag to prevent dynamic linking.
24030link_static_flag=$lt_lt_prog_compiler_static_GCJ
24031
24032# Compiler flag to turn off builtin functions.
24033no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24034
24035# Compiler flag to allow reflexive dlopens.
24036export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24037
24038# Compiler flag to generate shared objects directly from archives.
24039whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24040
24041# Compiler flag to generate thread-safe objects.
24042thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24043
24044# Library versioning type.
24045version_type=$version_type
24046
24047# Format of library name prefix.
24048libname_spec=$lt_libname_spec
24049
24050# List of archive names. First name is the real one, the rest are links.
24051# The last name is the one that the linker finds with -lNAME.
24052library_names_spec=$lt_library_names_spec
24053
24054# The coded name of the library, if different from the real name.
24055soname_spec=$lt_soname_spec
24056
24057# Commands used to build and install an old-style archive.
24058RANLIB=$lt_RANLIB
24059old_archive_cmds=$lt_old_archive_cmds_GCJ
24060old_postinstall_cmds=$lt_old_postinstall_cmds
24061old_postuninstall_cmds=$lt_old_postuninstall_cmds
24062
24063# Create an old-style archive from a shared archive.
24064old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24065
24066# Create a temporary old-style archive to link instead of a shared archive.
24067old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24068
24069# Commands used to build and install a shared archive.
24070archive_cmds=$lt_archive_cmds_GCJ
24071archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24072postinstall_cmds=$lt_postinstall_cmds
24073postuninstall_cmds=$lt_postuninstall_cmds
24074
24075# Commands used to build a loadable module (assumed same as above if empty)
24076module_cmds=$lt_module_cmds_GCJ
24077module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24078
24079# Commands to strip libraries.
24080old_striplib=$lt_old_striplib
24081striplib=$lt_striplib
24082
24083# Dependencies to place before the objects being linked to create a
24084# shared library.
24085predep_objects=$lt_predep_objects_GCJ
24086
24087# Dependencies to place after the objects being linked to create a
24088# shared library.
24089postdep_objects=$lt_postdep_objects_GCJ
24090
24091# Dependencies to place before the objects being linked to create a
24092# shared library.
24093predeps=$lt_predeps_GCJ
24094
24095# Dependencies to place after the objects being linked to create a
24096# shared library.
24097postdeps=$lt_postdeps_GCJ
24098
24099# The library search path used internally by the compiler when linking
24100# a shared library.
24101compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24102
24103# Method to check whether dependent libraries are shared objects.
24104deplibs_check_method=$lt_deplibs_check_method
24105
24106# Command to use when deplibs_check_method == file_magic.
24107file_magic_cmd=$lt_file_magic_cmd
24108
24109# Flag that allows shared libraries with undefined symbols to be built.
24110allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24111
24112# Flag that forces no undefined symbols.
24113no_undefined_flag=$lt_no_undefined_flag_GCJ
24114
24115# Commands used to finish a libtool library installation in a directory.
24116finish_cmds=$lt_finish_cmds
24117
24118# Same as above, but a single script fragment to be evaled but not shown.
24119finish_eval=$lt_finish_eval
24120
24121# Take the output of nm and produce a listing of raw symbols and C names.
24122global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24123
24124# Transform the output of nm in a proper C declaration
24125global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24126
24127# Transform the output of nm in a C name address pair
24128global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24129
24130# This is the shared library runtime path variable.
24131runpath_var=$runpath_var
24132
24133# This is the shared library path variable.
24134shlibpath_var=$shlibpath_var
24135
24136# Is shlibpath searched before the hard-coded library search path?
24137shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24138
24139# How to hardcode a shared library path into an executable.
24140hardcode_action=$hardcode_action_GCJ
24141
24142# Whether we should hardcode library paths into libraries.
24143hardcode_into_libs=$hardcode_into_libs
24144
24145# Flag to hardcode \$libdir into a binary during linking.
24146# This must work even if \$libdir does not exist.
24147hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24148
24149# If ld is used when linking, flag to hardcode \$libdir into
24150# a binary during linking. This must work even if \$libdir does
24151# not exist.
24152hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24153
24154# Whether we need a single -rpath flag with a separated argument.
24155hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24156
24157# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24158# resulting binary.
24159hardcode_direct=$hardcode_direct_GCJ
24160
24161# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24162# resulting binary.
24163hardcode_minus_L=$hardcode_minus_L_GCJ
24164
24165# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24166# the resulting binary.
24167hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24168
24169# Set to yes if building a shared library automatically hardcodes DIR into the library
24170# and all subsequent libraries and executables linked against it.
24171hardcode_automatic=$hardcode_automatic_GCJ
24172
24173# Variables whose values should be saved in libtool wrapper scripts and
24174# restored at relink time.
24175variables_saved_for_relink="$variables_saved_for_relink"
24176
24177# Whether libtool must link a program against all its dependency libraries.
24178link_all_deplibs=$link_all_deplibs_GCJ
24179
24180# Compile-time system search path for libraries
24181sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24182
24183# Run-time system search path for libraries
24184sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24185
24186# Fix the shell variable \$srcfile for the compiler.
24187fix_srcfile_path="$fix_srcfile_path_GCJ"
24188
24189# Set to yes if exported symbols are required.
24190always_export_symbols=$always_export_symbols_GCJ
24191
24192# The commands to list exported symbols.
24193export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24194
24195# The commands to extract the exported symbol list from a shared archive.
24196extract_expsyms_cmds=$lt_extract_expsyms_cmds
24197
24198# Symbols that should not be listed in the preloaded symbols.
24199exclude_expsyms=$lt_exclude_expsyms_GCJ
24200
24201# Symbols that must always be exported.
24202include_expsyms=$lt_include_expsyms_GCJ
24203
24204# ### END LIBTOOL TAG CONFIG: $tagname
24205
24206__EOF__
24207
24208
24209else
24210 # If there is no Makefile yet, we rely on a make rule to execute
24211 # `config.status --recheck' to rerun these tests and create the
24212 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024213 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24214 if test -f "$ltmain_in"; then
24215 test -f Makefile && make "$ltmain"
24216 fi
John Criswell47fdd832003-07-14 16:52:07 +000024217fi
24218
24219
24220ac_ext=c
24221ac_cpp='$CPP $CPPFLAGS'
24222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24224ac_compiler_gnu=$ac_cv_c_compiler_gnu
24225
24226CC="$lt_save_CC"
24227
24228 else
24229 tagname=""
24230 fi
24231 ;;
24232
24233 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024234 ac_ext=c
24235ac_cpp='$CPP $CPPFLAGS'
24236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24238ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024239
24240
24241# Source file extension for RC test sources.
24242ac_ext=rc
24243
24244# Object file extension for compiled RC test sources.
24245objext=o
24246objext_RC=$objext
24247
24248# Code to be used in simple compile tests
24249lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24250
24251# Code to be used in simple link tests
24252lt_simple_link_test_code="$lt_simple_compile_test_code"
24253
24254# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24255
24256# If no C compiler was specified, use CC.
24257LTCC=${LTCC-"$CC"}
24258
24259# Allow CC to be a program name with arguments.
24260compiler=$CC
24261
24262
24263# Allow CC to be a program name with arguments.
24264lt_save_CC="$CC"
24265CC=${RC-"windres"}
24266compiler=$CC
24267compiler_RC=$CC
24268lt_cv_prog_compiler_c_o_RC=yes
24269
24270# The else clause should only fire when bootstrapping the
24271# libtool distribution, otherwise you forgot to ship ltmain.sh
24272# with your package, and you will get complaints that there are
24273# no rules to generate ltmain.sh.
24274if test -f "$ltmain"; then
24275 # See if we are running on zsh, and set the options which allow our commands through
24276 # without removal of \ escapes.
24277 if test -n "${ZSH_VERSION+set}" ; then
24278 setopt NO_GLOB_SUBST
24279 fi
24280 # Now quote all the things that may contain metacharacters while being
24281 # careful not to overquote the AC_SUBSTed values. We take copies of the
24282 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024283 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24284 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024285 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24286 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24287 deplibs_check_method reload_flag reload_cmds need_locks \
24288 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24289 lt_cv_sys_global_symbol_to_c_name_address \
24290 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24291 old_postinstall_cmds old_postuninstall_cmds \
24292 compiler_RC \
24293 CC_RC \
24294 LD_RC \
24295 lt_prog_compiler_wl_RC \
24296 lt_prog_compiler_pic_RC \
24297 lt_prog_compiler_static_RC \
24298 lt_prog_compiler_no_builtin_flag_RC \
24299 export_dynamic_flag_spec_RC \
24300 thread_safe_flag_spec_RC \
24301 whole_archive_flag_spec_RC \
24302 enable_shared_with_static_runtimes_RC \
24303 old_archive_cmds_RC \
24304 old_archive_from_new_cmds_RC \
24305 predep_objects_RC \
24306 postdep_objects_RC \
24307 predeps_RC \
24308 postdeps_RC \
24309 compiler_lib_search_path_RC \
24310 archive_cmds_RC \
24311 archive_expsym_cmds_RC \
24312 postinstall_cmds_RC \
24313 postuninstall_cmds_RC \
24314 old_archive_from_expsyms_cmds_RC \
24315 allow_undefined_flag_RC \
24316 no_undefined_flag_RC \
24317 export_symbols_cmds_RC \
24318 hardcode_libdir_flag_spec_RC \
24319 hardcode_libdir_flag_spec_ld_RC \
24320 hardcode_libdir_separator_RC \
24321 hardcode_automatic_RC \
24322 module_cmds_RC \
24323 module_expsym_cmds_RC \
24324 lt_cv_prog_compiler_c_o_RC \
24325 exclude_expsyms_RC \
24326 include_expsyms_RC; do
24327
24328 case $var in
24329 old_archive_cmds_RC | \
24330 old_archive_from_new_cmds_RC | \
24331 archive_cmds_RC | \
24332 archive_expsym_cmds_RC | \
24333 module_cmds_RC | \
24334 module_expsym_cmds_RC | \
24335 old_archive_from_expsyms_cmds_RC | \
24336 export_symbols_cmds_RC | \
24337 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24338 postinstall_cmds | postuninstall_cmds | \
24339 old_postinstall_cmds | old_postuninstall_cmds | \
24340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24341 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024342 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 +000024343 ;;
24344 *)
24345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24346 ;;
24347 esac
24348 done
24349
24350 case $lt_echo in
24351 *'\$0 --fallback-echo"')
24352 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24353 ;;
24354 esac
24355
24356cfgfile="$ofile"
24357
24358 cat <<__EOF__ >> "$cfgfile"
24359# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24360
24361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24362
24363# Shell to use when invoking shell scripts.
24364SHELL=$lt_SHELL
24365
24366# Whether or not to build shared libraries.
24367build_libtool_libs=$enable_shared
24368
24369# Whether or not to build static libraries.
24370build_old_libs=$enable_static
24371
24372# Whether or not to add -lc for building shared libraries.
24373build_libtool_need_lc=$archive_cmds_need_lc_RC
24374
24375# Whether or not to disallow shared libs when runtime libs are static
24376allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24377
24378# Whether or not to optimize for fast installation.
24379fast_install=$enable_fast_install
24380
24381# The host system.
24382host_alias=$host_alias
24383host=$host
24384
24385# An echo program that does not interpret backslashes.
24386echo=$lt_echo
24387
24388# The archiver.
24389AR=$lt_AR
24390AR_FLAGS=$lt_AR_FLAGS
24391
24392# A C compiler.
24393LTCC=$lt_LTCC
24394
24395# A language-specific compiler.
24396CC=$lt_compiler_RC
24397
24398# Is the compiler the GNU C compiler?
24399with_gcc=$GCC_RC
24400
24401# An ERE matcher.
24402EGREP=$lt_EGREP
24403
24404# The linker used to build libraries.
24405LD=$lt_LD_RC
24406
24407# Whether we need hard or soft links.
24408LN_S=$lt_LN_S
24409
24410# A BSD-compatible nm program.
24411NM=$lt_NM
24412
24413# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024414STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024415
24416# Used to examine libraries when file_magic_cmd begins "file"
24417MAGIC_CMD=$MAGIC_CMD
24418
24419# Used on cygwin: DLL creation program.
24420DLLTOOL="$DLLTOOL"
24421
24422# Used on cygwin: object dumper.
24423OBJDUMP="$OBJDUMP"
24424
24425# Used on cygwin: assembler.
24426AS="$AS"
24427
24428# The name of the directory that contains temporary libtool files.
24429objdir=$objdir
24430
24431# How to create reloadable object files.
24432reload_flag=$lt_reload_flag
24433reload_cmds=$lt_reload_cmds
24434
24435# How to pass a linker flag through the compiler.
24436wl=$lt_lt_prog_compiler_wl_RC
24437
24438# Object file suffix (normally "o").
24439objext="$ac_objext"
24440
24441# Old archive suffix (normally "a").
24442libext="$libext"
24443
24444# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024445shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024446
24447# Executable file suffix (normally "").
24448exeext="$exeext"
24449
24450# Additional compiler flags for building library objects.
24451pic_flag=$lt_lt_prog_compiler_pic_RC
24452pic_mode=$pic_mode
24453
24454# What is the maximum length of a command?
24455max_cmd_len=$lt_cv_sys_max_cmd_len
24456
24457# Does compiler simultaneously support -c and -o options?
24458compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24459
24460# Must we lock files when doing compilation ?
24461need_locks=$lt_need_locks
24462
24463# Do we need the lib prefix for modules?
24464need_lib_prefix=$need_lib_prefix
24465
24466# Do we need a version for libraries?
24467need_version=$need_version
24468
24469# Whether dlopen is supported.
24470dlopen_support=$enable_dlopen
24471
24472# Whether dlopen of programs is supported.
24473dlopen_self=$enable_dlopen_self
24474
24475# Whether dlopen of statically linked programs is supported.
24476dlopen_self_static=$enable_dlopen_self_static
24477
24478# Compiler flag to prevent dynamic linking.
24479link_static_flag=$lt_lt_prog_compiler_static_RC
24480
24481# Compiler flag to turn off builtin functions.
24482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24483
24484# Compiler flag to allow reflexive dlopens.
24485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24486
24487# Compiler flag to generate shared objects directly from archives.
24488whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24489
24490# Compiler flag to generate thread-safe objects.
24491thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24492
24493# Library versioning type.
24494version_type=$version_type
24495
24496# Format of library name prefix.
24497libname_spec=$lt_libname_spec
24498
24499# List of archive names. First name is the real one, the rest are links.
24500# The last name is the one that the linker finds with -lNAME.
24501library_names_spec=$lt_library_names_spec
24502
24503# The coded name of the library, if different from the real name.
24504soname_spec=$lt_soname_spec
24505
24506# Commands used to build and install an old-style archive.
24507RANLIB=$lt_RANLIB
24508old_archive_cmds=$lt_old_archive_cmds_RC
24509old_postinstall_cmds=$lt_old_postinstall_cmds
24510old_postuninstall_cmds=$lt_old_postuninstall_cmds
24511
24512# Create an old-style archive from a shared archive.
24513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24514
24515# Create a temporary old-style archive to link instead of a shared archive.
24516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24517
24518# Commands used to build and install a shared archive.
24519archive_cmds=$lt_archive_cmds_RC
24520archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24521postinstall_cmds=$lt_postinstall_cmds
24522postuninstall_cmds=$lt_postuninstall_cmds
24523
24524# Commands used to build a loadable module (assumed same as above if empty)
24525module_cmds=$lt_module_cmds_RC
24526module_expsym_cmds=$lt_module_expsym_cmds_RC
24527
24528# Commands to strip libraries.
24529old_striplib=$lt_old_striplib
24530striplib=$lt_striplib
24531
24532# Dependencies to place before the objects being linked to create a
24533# shared library.
24534predep_objects=$lt_predep_objects_RC
24535
24536# Dependencies to place after the objects being linked to create a
24537# shared library.
24538postdep_objects=$lt_postdep_objects_RC
24539
24540# Dependencies to place before the objects being linked to create a
24541# shared library.
24542predeps=$lt_predeps_RC
24543
24544# Dependencies to place after the objects being linked to create a
24545# shared library.
24546postdeps=$lt_postdeps_RC
24547
24548# The library search path used internally by the compiler when linking
24549# a shared library.
24550compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24551
24552# Method to check whether dependent libraries are shared objects.
24553deplibs_check_method=$lt_deplibs_check_method
24554
24555# Command to use when deplibs_check_method == file_magic.
24556file_magic_cmd=$lt_file_magic_cmd
24557
24558# Flag that allows shared libraries with undefined symbols to be built.
24559allow_undefined_flag=$lt_allow_undefined_flag_RC
24560
24561# Flag that forces no undefined symbols.
24562no_undefined_flag=$lt_no_undefined_flag_RC
24563
24564# Commands used to finish a libtool library installation in a directory.
24565finish_cmds=$lt_finish_cmds
24566
24567# Same as above, but a single script fragment to be evaled but not shown.
24568finish_eval=$lt_finish_eval
24569
24570# Take the output of nm and produce a listing of raw symbols and C names.
24571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24572
24573# Transform the output of nm in a proper C declaration
24574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24575
24576# Transform the output of nm in a C name address pair
24577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24578
24579# This is the shared library runtime path variable.
24580runpath_var=$runpath_var
24581
24582# This is the shared library path variable.
24583shlibpath_var=$shlibpath_var
24584
24585# Is shlibpath searched before the hard-coded library search path?
24586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24587
24588# How to hardcode a shared library path into an executable.
24589hardcode_action=$hardcode_action_RC
24590
24591# Whether we should hardcode library paths into libraries.
24592hardcode_into_libs=$hardcode_into_libs
24593
24594# Flag to hardcode \$libdir into a binary during linking.
24595# This must work even if \$libdir does not exist.
24596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24597
24598# If ld is used when linking, flag to hardcode \$libdir into
24599# a binary during linking. This must work even if \$libdir does
24600# not exist.
24601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24602
24603# Whether we need a single -rpath flag with a separated argument.
24604hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24605
24606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24607# resulting binary.
24608hardcode_direct=$hardcode_direct_RC
24609
24610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24611# resulting binary.
24612hardcode_minus_L=$hardcode_minus_L_RC
24613
24614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24615# the resulting binary.
24616hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24617
24618# Set to yes if building a shared library automatically hardcodes DIR into the library
24619# and all subsequent libraries and executables linked against it.
24620hardcode_automatic=$hardcode_automatic_RC
24621
24622# Variables whose values should be saved in libtool wrapper scripts and
24623# restored at relink time.
24624variables_saved_for_relink="$variables_saved_for_relink"
24625
24626# Whether libtool must link a program against all its dependency libraries.
24627link_all_deplibs=$link_all_deplibs_RC
24628
24629# Compile-time system search path for libraries
24630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24631
24632# Run-time system search path for libraries
24633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24634
24635# Fix the shell variable \$srcfile for the compiler.
24636fix_srcfile_path="$fix_srcfile_path_RC"
24637
24638# Set to yes if exported symbols are required.
24639always_export_symbols=$always_export_symbols_RC
24640
24641# The commands to list exported symbols.
24642export_symbols_cmds=$lt_export_symbols_cmds_RC
24643
24644# The commands to extract the exported symbol list from a shared archive.
24645extract_expsyms_cmds=$lt_extract_expsyms_cmds
24646
24647# Symbols that should not be listed in the preloaded symbols.
24648exclude_expsyms=$lt_exclude_expsyms_RC
24649
24650# Symbols that must always be exported.
24651include_expsyms=$lt_include_expsyms_RC
24652
24653# ### END LIBTOOL TAG CONFIG: $tagname
24654
24655__EOF__
24656
24657
24658else
24659 # If there is no Makefile yet, we rely on a make rule to execute
24660 # `config.status --recheck' to rerun these tests and create the
24661 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024662 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24663 if test -f "$ltmain_in"; then
24664 test -f Makefile && make "$ltmain"
24665 fi
John Criswell47fdd832003-07-14 16:52:07 +000024666fi
24667
24668
24669ac_ext=c
24670ac_cpp='$CPP $CPPFLAGS'
24671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24673ac_compiler_gnu=$ac_cv_c_compiler_gnu
24674
24675CC="$lt_save_CC"
24676
24677 ;;
24678
24679 *)
24680 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24681echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24682 { (exit 1); exit 1; }; }
24683 ;;
24684 esac
24685
24686 # Append the new tag name to the list of available tags.
24687 if test -n "$tagname" ; then
24688 available_tags="$available_tags $tagname"
24689 fi
24690 fi
24691 done
24692 IFS="$lt_save_ifs"
24693
24694 # Now substitute the updated list of available tags.
24695 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24696 mv "${ofile}T" "$ofile"
24697 chmod +x "$ofile"
24698 else
24699 rm -f "${ofile}T"
24700 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24701echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24702 { (exit 1); exit 1; }; }
24703 fi
24704fi
John Criswell7a73b802003-06-30 21:59:07 +000024705
24706
24707
24708# This can be used to rebuild libtool when needed
24709LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24710
24711# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024712LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024713
24714# Prevent multiple expansion
24715
24716
24717
John Criswell47fdd832003-07-14 16:52:07 +000024718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024735
Reid Spencer582a23c2004-12-29 07:07:57 +000024736if test "$lt_cv_dlopen_self" = "yes" ; then
24737
24738cat >>confdefs.h <<\_ACEOF
24739#define CAN_DLOPEN_SELF 1
24740_ACEOF
24741
24742fi
24743
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024744etags_version=`$ETAGS --version 2>&1`
24745case "$etags_version" in
24746 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24747 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24748 *) ETAGSFLAGS="" ;;
24749esac
24750ETAGSFLAGS=$ETAGSFLAGS
24751
24752
Reid Spencer7931a782004-12-27 06:15:02 +000024753if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024754 LLVMGCC="llvm-gcc${EXEEXT}"
24755 LLVMGXX="llvm-g++${EXEEXT}"
24756 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24757set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024758echo "$as_me:$LINENO: checking for $ac_word" >&5
24759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24760if test "${ac_cv_path_LLVMGCC+set}" = set; then
24761 echo $ECHO_N "(cached) $ECHO_C" >&6
24762else
24763 case $LLVMGCC in
24764 [\\/]* | ?:[\\/]*)
24765 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24766 ;;
24767 *)
24768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24769for as_dir in $PATH
24770do
24771 IFS=$as_save_IFS
24772 test -z "$as_dir" && as_dir=.
24773 for ac_exec_ext in '' $ac_executable_extensions; do
24774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24775 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24777 break 2
24778 fi
24779done
24780done
24781
Reid Spencer59473af2004-12-25 07:31:29 +000024782 ;;
24783esac
24784fi
24785LLVMGCC=$ac_cv_path_LLVMGCC
24786
24787if test -n "$LLVMGCC"; then
24788 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24789echo "${ECHO_T}$LLVMGCC" >&6
24790else
24791 echo "$as_me:$LINENO: result: no" >&5
24792echo "${ECHO_T}no" >&6
24793fi
24794
Reid Spencerc84492c2005-06-02 22:34:49 +000024795 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24796set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024797echo "$as_me:$LINENO: checking for $ac_word" >&5
24798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24799if test "${ac_cv_path_LLVMGXX+set}" = set; then
24800 echo $ECHO_N "(cached) $ECHO_C" >&6
24801else
24802 case $LLVMGXX in
24803 [\\/]* | ?:[\\/]*)
24804 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24805 ;;
24806 *)
24807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24808for as_dir in $PATH
24809do
24810 IFS=$as_save_IFS
24811 test -z "$as_dir" && as_dir=.
24812 for ac_exec_ext in '' $ac_executable_extensions; do
24813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24814 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24816 break 2
24817 fi
24818done
24819done
24820
Reid Spencer59473af2004-12-25 07:31:29 +000024821 ;;
24822esac
24823fi
24824LLVMGXX=$ac_cv_path_LLVMGXX
24825
24826if test -n "$LLVMGXX"; then
24827 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24828echo "${ECHO_T}$LLVMGXX" >&6
24829else
24830 echo "$as_me:$LINENO: result: no" >&5
24831echo "${ECHO_T}no" >&6
24832fi
24833
24834else
Reid Spencerc84492c2005-06-02 22:34:49 +000024835 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24836 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024837 LLVMGCC=$LLVMGCC
24838
24839 LLVMGXX=$LLVMGXX
24840
24841fi
24842
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024843echo "$as_me:$LINENO: checking tool compatibility" >&5
24844echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24845
Reid Spencer86901802004-12-08 23:07:27 +000024846ICC=no
24847IXX=no
24848case $CC in
24849 icc*|icpc*)
24850 ICC=yes
24851 IXX=yes
24852 ;;
24853 *)
24854 ;;
24855esac
24856
24857if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024858then
Reid Spencer86901802004-12-08 23:07:27 +000024859 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24860echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024861 { (exit 1); exit 1; }; }
24862fi
24863
Reid Spencer86901802004-12-08 23:07:27 +000024864if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024865then
Reid Spencer86901802004-12-08 23:07:27 +000024866 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24867echo "$as_me: error: g++|icc required but not found" >&2;}
24868 { (exit 1); exit 1; }; }
24869fi
24870
24871if test "$GCC" = "yes"
24872then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000024873 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000024874 if test "$gccmajor" -lt "3"
24875 then
24876 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024877echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24878 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024879 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024880fi
24881
24882if test -z "$llvm_cv_gnu_make_command"
24883then
24884 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24885echo "$as_me: error: GNU Make required but not found" >&2;}
24886 { (exit 1); exit 1; }; }
24887fi
24888
24889echo "$as_me:$LINENO: result: ok" >&5
24890echo "${ECHO_T}ok" >&6
24891
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024892
John Criswell7a73b802003-06-30 21:59:07 +000024893
John Criswell7a73b802003-06-30 21:59:07 +000024894echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24895echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24896if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24898else
24899 ac_check_lib_save_LIBS=$LIBS
24900LIBS="-lelf $LIBS"
24901cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024902/* confdefs.h. */
24903_ACEOF
24904cat confdefs.h >>conftest.$ac_ext
24905cat >>conftest.$ac_ext <<_ACEOF
24906/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024907
24908/* Override any gcc2 internal prototype to avoid an error. */
24909#ifdef __cplusplus
24910extern "C"
24911#endif
24912/* We use char because int might match the return type of a gcc2
24913 builtin and then its argument prototype would still apply. */
24914char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024915int
24916main ()
24917{
24918elf_begin ();
24919 ;
24920 return 0;
24921}
24922_ACEOF
24923rm -f conftest.$ac_objext conftest$ac_exeext
24924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024925 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024926 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024927 grep -v '^ *+' conftest.er1 >conftest.err
24928 rm -f conftest.er1
24929 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024932 { ac_try='test -z "$ac_c_werror_flag"
24933 || test ! -s conftest.err'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; } &&
24939 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 ac_cv_lib_elf_elf_begin=yes
24946else
24947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024948sed 's/^/| /' conftest.$ac_ext >&5
24949
John Criswell7a73b802003-06-30 21:59:07 +000024950ac_cv_lib_elf_elf_begin=no
24951fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024952rm -f conftest.err conftest.$ac_objext \
24953 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024954LIBS=$ac_check_lib_save_LIBS
24955fi
24956echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24957echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24958if test $ac_cv_lib_elf_elf_begin = yes; then
24959 cat >>confdefs.h <<_ACEOF
24960#define HAVE_LIBELF 1
24961_ACEOF
24962
24963 LIBS="-lelf $LIBS"
24964
24965fi
24966
24967
Reid Spencer22177fe2005-07-12 15:24:20 +000024968
Reid Spencer17795972004-11-18 09:47:37 +000024969echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24970echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24971if test "${ac_cv_search_lt_dlopen+set}" = set; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
24973else
24974 ac_func_search_save_LIBS=$LIBS
24975ac_cv_search_lt_dlopen=no
24976cat >conftest.$ac_ext <<_ACEOF
24977/* confdefs.h. */
24978_ACEOF
24979cat confdefs.h >>conftest.$ac_ext
24980cat >>conftest.$ac_ext <<_ACEOF
24981/* end confdefs.h. */
24982
24983/* Override any gcc2 internal prototype to avoid an error. */
24984#ifdef __cplusplus
24985extern "C"
24986#endif
24987/* We use char because int might match the return type of a gcc2
24988 builtin and then its argument prototype would still apply. */
24989char lt_dlopen ();
24990int
24991main ()
24992{
24993lt_dlopen ();
24994 ;
24995 return 0;
24996}
24997_ACEOF
24998rm -f conftest.$ac_objext conftest$ac_exeext
24999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000 (eval $ac_link) 2>conftest.er1
25001 ac_status=$?
25002 grep -v '^ *+' conftest.er1 >conftest.err
25003 rm -f conftest.er1
25004 cat conftest.err >&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } &&
25007 { ac_try='test -z "$ac_c_werror_flag"
25008 || test ! -s conftest.err'
25009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010 (eval $ac_try) 2>&5
25011 ac_status=$?
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); }; } &&
25014 { ac_try='test -s conftest$ac_exeext'
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25017 ac_status=$?
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 ac_cv_search_lt_dlopen="none required"
25021else
25022 echo "$as_me: failed program was:" >&5
25023sed 's/^/| /' conftest.$ac_ext >&5
25024
25025fi
25026rm -f conftest.err conftest.$ac_objext \
25027 conftest$ac_exeext conftest.$ac_ext
25028if test "$ac_cv_search_lt_dlopen" = no; then
25029 for ac_lib in ltdl; do
25030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25031 cat >conftest.$ac_ext <<_ACEOF
25032/* confdefs.h. */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h. */
25037
25038/* Override any gcc2 internal prototype to avoid an error. */
25039#ifdef __cplusplus
25040extern "C"
25041#endif
25042/* We use char because int might match the return type of a gcc2
25043 builtin and then its argument prototype would still apply. */
25044char lt_dlopen ();
25045int
25046main ()
25047{
25048lt_dlopen ();
25049 ;
25050 return 0;
25051}
25052_ACEOF
25053rm -f conftest.$ac_objext conftest$ac_exeext
25054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25055 (eval $ac_link) 2>conftest.er1
25056 ac_status=$?
25057 grep -v '^ *+' conftest.er1 >conftest.err
25058 rm -f conftest.er1
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
25062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest$ac_exeext'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 ac_cv_search_lt_dlopen="-l$ac_lib"
25076break
25077else
25078 echo "$as_me: failed program was:" >&5
25079sed 's/^/| /' conftest.$ac_ext >&5
25080
25081fi
25082rm -f conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
25084 done
25085fi
25086LIBS=$ac_func_search_save_LIBS
25087fi
25088echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25089echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25090if test "$ac_cv_search_lt_dlopen" != no; then
25091 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25092
25093cat >>confdefs.h <<\_ACEOF
25094#define HAVE_LT_DLOPEN 1
25095_ACEOF
25096
25097else
25098 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25099 not be available" >&5
25100echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25101 not be available" >&2;}
25102fi
25103
25104
John Criswell7a73b802003-06-30 21:59:07 +000025105echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25106echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25107if test "${ac_cv_search_dlopen+set}" = set; then
25108 echo $ECHO_N "(cached) $ECHO_C" >&6
25109else
25110 ac_func_search_save_LIBS=$LIBS
25111ac_cv_search_dlopen=no
25112cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025113/* confdefs.h. */
25114_ACEOF
25115cat confdefs.h >>conftest.$ac_ext
25116cat >>conftest.$ac_ext <<_ACEOF
25117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025118
25119/* Override any gcc2 internal prototype to avoid an error. */
25120#ifdef __cplusplus
25121extern "C"
25122#endif
25123/* We use char because int might match the return type of a gcc2
25124 builtin and then its argument prototype would still apply. */
25125char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025126int
25127main ()
25128{
25129dlopen ();
25130 ;
25131 return 0;
25132}
25133_ACEOF
25134rm -f conftest.$ac_objext conftest$ac_exeext
25135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025136 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025137 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025138 grep -v '^ *+' conftest.er1 >conftest.err
25139 rm -f conftest.er1
25140 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025143 { ac_try='test -z "$ac_c_werror_flag"
25144 || test ! -s conftest.err'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; } &&
25150 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152 (eval $ac_try) 2>&5
25153 ac_status=$?
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); }; }; then
25156 ac_cv_search_dlopen="none required"
25157else
25158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025159sed 's/^/| /' conftest.$ac_ext >&5
25160
John Criswell7a73b802003-06-30 21:59:07 +000025161fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025162rm -f conftest.err conftest.$ac_objext \
25163 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025164if test "$ac_cv_search_dlopen" = no; then
25165 for ac_lib in dl; do
25166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25167 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025173
25174/* Override any gcc2 internal prototype to avoid an error. */
25175#ifdef __cplusplus
25176extern "C"
25177#endif
25178/* We use char because int might match the return type of a gcc2
25179 builtin and then its argument prototype would still apply. */
25180char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025181int
25182main ()
25183{
25184dlopen ();
25185 ;
25186 return 0;
25187}
25188_ACEOF
25189rm -f conftest.$ac_objext conftest$ac_exeext
25190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025191 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025192 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 grep -v '^ *+' conftest.er1 >conftest.err
25194 rm -f conftest.er1
25195 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025198 { ac_try='test -z "$ac_c_werror_flag"
25199 || test ! -s conftest.err'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; } &&
25205 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25208 ac_status=$?
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; }; then
25211 ac_cv_search_dlopen="-l$ac_lib"
25212break
25213else
25214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025215sed 's/^/| /' conftest.$ac_ext >&5
25216
John Criswell7a73b802003-06-30 21:59:07 +000025217fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025218rm -f conftest.err conftest.$ac_objext \
25219 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025220 done
25221fi
25222LIBS=$ac_func_search_save_LIBS
25223fi
25224echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25225echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25226if test "$ac_cv_search_dlopen" != no; then
25227 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025228
25229cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025230#define HAVE_DLOPEN 1
25231_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025232
25233else
Brian Gaekec45be042003-10-07 06:01:34 +000025234 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25235echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025236fi
25237
25238
25239echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25240echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25241if test "${ac_cv_search_mallinfo+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25243else
25244 ac_func_search_save_LIBS=$LIBS
25245ac_cv_search_mallinfo=no
25246cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025247/* confdefs.h. */
25248_ACEOF
25249cat confdefs.h >>conftest.$ac_ext
25250cat >>conftest.$ac_ext <<_ACEOF
25251/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025252
25253/* Override any gcc2 internal prototype to avoid an error. */
25254#ifdef __cplusplus
25255extern "C"
25256#endif
25257/* We use char because int might match the return type of a gcc2
25258 builtin and then its argument prototype would still apply. */
25259char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025260int
25261main ()
25262{
25263mallinfo ();
25264 ;
25265 return 0;
25266}
25267_ACEOF
25268rm -f conftest.$ac_objext conftest$ac_exeext
25269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025270 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025272 grep -v '^ *+' conftest.er1 >conftest.err
25273 rm -f conftest.er1
25274 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025277 { ac_try='test -z "$ac_c_werror_flag"
25278 || test ! -s conftest.err'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; } &&
25284 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286 (eval $ac_try) 2>&5
25287 ac_status=$?
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); }; }; then
25290 ac_cv_search_mallinfo="none required"
25291else
25292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025293sed 's/^/| /' conftest.$ac_ext >&5
25294
John Criswell7a73b802003-06-30 21:59:07 +000025295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025296rm -f conftest.err conftest.$ac_objext \
25297 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025298if test "$ac_cv_search_mallinfo" = no; then
25299 for ac_lib in malloc; do
25300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025302/* confdefs.h. */
25303_ACEOF
25304cat confdefs.h >>conftest.$ac_ext
25305cat >>conftest.$ac_ext <<_ACEOF
25306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025307
25308/* Override any gcc2 internal prototype to avoid an error. */
25309#ifdef __cplusplus
25310extern "C"
25311#endif
25312/* We use char because int might match the return type of a gcc2
25313 builtin and then its argument prototype would still apply. */
25314char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025315int
25316main ()
25317{
25318mallinfo ();
25319 ;
25320 return 0;
25321}
25322_ACEOF
25323rm -f conftest.$ac_objext conftest$ac_exeext
25324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025325 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025327 grep -v '^ *+' conftest.er1 >conftest.err
25328 rm -f conftest.er1
25329 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025332 { ac_try='test -z "$ac_c_werror_flag"
25333 || test ! -s conftest.err'
25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; } &&
25339 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; }; then
25345 ac_cv_search_mallinfo="-l$ac_lib"
25346break
25347else
25348 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025349sed 's/^/| /' conftest.$ac_ext >&5
25350
John Criswell7a73b802003-06-30 21:59:07 +000025351fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025352rm -f conftest.err conftest.$ac_objext \
25353 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025354 done
25355fi
25356LIBS=$ac_func_search_save_LIBS
25357fi
25358echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25359echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25360if test "$ac_cv_search_mallinfo" != no; then
25361 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025362
25363cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025364#define HAVE_MALLINFO 1
25365_ACEOF
25366
25367fi
25368
25369
Reid Spencer0a262ba2005-08-24 10:07:20 +000025370if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025371
25372echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25373echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25374if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25375 echo $ECHO_N "(cached) $ECHO_C" >&6
25376else
25377 ac_check_lib_save_LIBS=$LIBS
25378LIBS="-lpthread $LIBS"
25379cat >conftest.$ac_ext <<_ACEOF
25380/* confdefs.h. */
25381_ACEOF
25382cat confdefs.h >>conftest.$ac_ext
25383cat >>conftest.$ac_ext <<_ACEOF
25384/* end confdefs.h. */
25385
25386/* Override any gcc2 internal prototype to avoid an error. */
25387#ifdef __cplusplus
25388extern "C"
25389#endif
25390/* We use char because int might match the return type of a gcc2
25391 builtin and then its argument prototype would still apply. */
25392char pthread_mutex_init ();
25393int
25394main ()
25395{
25396pthread_mutex_init ();
25397 ;
25398 return 0;
25399}
25400_ACEOF
25401rm -f conftest.$ac_objext conftest$ac_exeext
25402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25403 (eval $ac_link) 2>conftest.er1
25404 ac_status=$?
25405 grep -v '^ *+' conftest.er1 >conftest.err
25406 rm -f conftest.er1
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } &&
25410 { ac_try='test -z "$ac_c_werror_flag"
25411 || test ! -s conftest.err'
25412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413 (eval $ac_try) 2>&5
25414 ac_status=$?
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); }; } &&
25417 { ac_try='test -s conftest$ac_exeext'
25418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419 (eval $ac_try) 2>&5
25420 ac_status=$?
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; }; then
25423 ac_cv_lib_pthread_pthread_mutex_init=yes
25424else
25425 echo "$as_me: failed program was:" >&5
25426sed 's/^/| /' conftest.$ac_ext >&5
25427
25428ac_cv_lib_pthread_pthread_mutex_init=no
25429fi
25430rm -f conftest.err conftest.$ac_objext \
25431 conftest$ac_exeext conftest.$ac_ext
25432LIBS=$ac_check_lib_save_LIBS
25433fi
25434echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25435echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25436if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25437 cat >>confdefs.h <<_ACEOF
25438#define HAVE_LIBPTHREAD 1
25439_ACEOF
25440
25441 LIBS="-lpthread $LIBS"
25442
25443fi
25444
Reid Spencer0a262ba2005-08-24 10:07:20 +000025445 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025446echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25447if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25449else
25450 ac_func_search_save_LIBS=$LIBS
25451ac_cv_search_pthread_mutex_lock=no
25452cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025453/* confdefs.h. */
25454_ACEOF
25455cat confdefs.h >>conftest.$ac_ext
25456cat >>conftest.$ac_ext <<_ACEOF
25457/* end confdefs.h. */
25458
25459/* Override any gcc2 internal prototype to avoid an error. */
25460#ifdef __cplusplus
25461extern "C"
25462#endif
25463/* We use char because int might match the return type of a gcc2
25464 builtin and then its argument prototype would still apply. */
25465char pthread_mutex_lock ();
25466int
25467main ()
25468{
25469pthread_mutex_lock ();
25470 ;
25471 return 0;
25472}
25473_ACEOF
25474rm -f conftest.$ac_objext conftest$ac_exeext
25475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025476 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025477 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025478 grep -v '^ *+' conftest.er1 >conftest.err
25479 rm -f conftest.er1
25480 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025483 { ac_try='test -z "$ac_c_werror_flag"
25484 || test ! -s conftest.err'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25487 ac_status=$?
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; } &&
25490 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25493 ac_status=$?
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496 ac_cv_search_pthread_mutex_lock="none required"
25497else
25498 echo "$as_me: failed program was:" >&5
25499sed 's/^/| /' conftest.$ac_ext >&5
25500
25501fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025502rm -f conftest.err conftest.$ac_objext \
25503 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025504if test "$ac_cv_search_pthread_mutex_lock" = no; then
25505 for ac_lib in pthread; do
25506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25507 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025508/* confdefs.h. */
25509_ACEOF
25510cat confdefs.h >>conftest.$ac_ext
25511cat >>conftest.$ac_ext <<_ACEOF
25512/* end confdefs.h. */
25513
25514/* Override any gcc2 internal prototype to avoid an error. */
25515#ifdef __cplusplus
25516extern "C"
25517#endif
25518/* We use char because int might match the return type of a gcc2
25519 builtin and then its argument prototype would still apply. */
25520char pthread_mutex_lock ();
25521int
25522main ()
25523{
25524pthread_mutex_lock ();
25525 ;
25526 return 0;
25527}
25528_ACEOF
25529rm -f conftest.$ac_objext conftest$ac_exeext
25530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025531 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025532 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025533 grep -v '^ *+' conftest.er1 >conftest.err
25534 rm -f conftest.er1
25535 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025538 { ac_try='test -z "$ac_c_werror_flag"
25539 || test ! -s conftest.err'
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25542 ac_status=$?
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; } &&
25545 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); }; }; then
25551 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25552break
25553else
25554 echo "$as_me: failed program was:" >&5
25555sed 's/^/| /' conftest.$ac_ext >&5
25556
25557fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025558rm -f conftest.err conftest.$ac_objext \
25559 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025560 done
25561fi
25562LIBS=$ac_func_search_save_LIBS
25563fi
25564echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25565echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25566if test "$ac_cv_search_pthread_mutex_lock" != no; then
25567 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025568
John Criswell40468462004-09-24 21:19:06 +000025569cat >>confdefs.h <<\_ACEOF
25570#define HAVE_PTHREAD_MUTEX_LOCK 1
25571_ACEOF
25572
25573fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025574
Reid Spencer0a262ba2005-08-24 10:07:20 +000025575fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025577
Reid Spencer59473af2004-12-25 07:31:29 +000025578
25579
25580
25581
25582
25583ac_header_dirent=no
25584for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25585 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25586echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25587echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25588if eval "test \"\${$as_ac_Header+set}\" = set"; then
25589 echo $ECHO_N "(cached) $ECHO_C" >&6
25590else
25591 cat >conftest.$ac_ext <<_ACEOF
25592/* confdefs.h. */
25593_ACEOF
25594cat confdefs.h >>conftest.$ac_ext
25595cat >>conftest.$ac_ext <<_ACEOF
25596/* end confdefs.h. */
25597#include <sys/types.h>
25598#include <$ac_hdr>
25599
25600int
25601main ()
25602{
25603if ((DIR *) 0)
25604return 0;
25605 ;
25606 return 0;
25607}
25608_ACEOF
25609rm -f conftest.$ac_objext
25610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25611 (eval $ac_compile) 2>conftest.er1
25612 ac_status=$?
25613 grep -v '^ *+' conftest.er1 >conftest.err
25614 rm -f conftest.er1
25615 cat conftest.err >&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } &&
25618 { ac_try='test -z "$ac_c_werror_flag"
25619 || test ! -s conftest.err'
25620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25621 (eval $ac_try) 2>&5
25622 ac_status=$?
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); }; } &&
25625 { ac_try='test -s conftest.$ac_objext'
25626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25627 (eval $ac_try) 2>&5
25628 ac_status=$?
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); }; }; then
25631 eval "$as_ac_Header=yes"
25632else
25633 echo "$as_me: failed program was:" >&5
25634sed 's/^/| /' conftest.$ac_ext >&5
25635
25636eval "$as_ac_Header=no"
25637fi
25638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25639fi
25640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25642if test `eval echo '${'$as_ac_Header'}'` = yes; then
25643 cat >>confdefs.h <<_ACEOF
25644#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25645_ACEOF
25646
25647ac_header_dirent=$ac_hdr; break
25648fi
25649
25650done
25651# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25652if test $ac_header_dirent = dirent.h; then
25653 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25654echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25655if test "${ac_cv_search_opendir+set}" = set; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
25657else
25658 ac_func_search_save_LIBS=$LIBS
25659ac_cv_search_opendir=no
25660cat >conftest.$ac_ext <<_ACEOF
25661/* confdefs.h. */
25662_ACEOF
25663cat confdefs.h >>conftest.$ac_ext
25664cat >>conftest.$ac_ext <<_ACEOF
25665/* end confdefs.h. */
25666
25667/* Override any gcc2 internal prototype to avoid an error. */
25668#ifdef __cplusplus
25669extern "C"
25670#endif
25671/* We use char because int might match the return type of a gcc2
25672 builtin and then its argument prototype would still apply. */
25673char opendir ();
25674int
25675main ()
25676{
25677opendir ();
25678 ;
25679 return 0;
25680}
25681_ACEOF
25682rm -f conftest.$ac_objext conftest$ac_exeext
25683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25684 (eval $ac_link) 2>conftest.er1
25685 ac_status=$?
25686 grep -v '^ *+' conftest.er1 >conftest.err
25687 rm -f conftest.er1
25688 cat conftest.err >&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); } &&
25691 { ac_try='test -z "$ac_c_werror_flag"
25692 || test ! -s conftest.err'
25693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694 (eval $ac_try) 2>&5
25695 ac_status=$?
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); }; } &&
25698 { ac_try='test -s conftest$ac_exeext'
25699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25700 (eval $ac_try) 2>&5
25701 ac_status=$?
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); }; }; then
25704 ac_cv_search_opendir="none required"
25705else
25706 echo "$as_me: failed program was:" >&5
25707sed 's/^/| /' conftest.$ac_ext >&5
25708
25709fi
25710rm -f conftest.err conftest.$ac_objext \
25711 conftest$ac_exeext conftest.$ac_ext
25712if test "$ac_cv_search_opendir" = no; then
25713 for ac_lib in dir; do
25714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25715 cat >conftest.$ac_ext <<_ACEOF
25716/* confdefs.h. */
25717_ACEOF
25718cat confdefs.h >>conftest.$ac_ext
25719cat >>conftest.$ac_ext <<_ACEOF
25720/* end confdefs.h. */
25721
25722/* Override any gcc2 internal prototype to avoid an error. */
25723#ifdef __cplusplus
25724extern "C"
25725#endif
25726/* We use char because int might match the return type of a gcc2
25727 builtin and then its argument prototype would still apply. */
25728char opendir ();
25729int
25730main ()
25731{
25732opendir ();
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737rm -f conftest.$ac_objext conftest$ac_exeext
25738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25739 (eval $ac_link) 2>conftest.er1
25740 ac_status=$?
25741 grep -v '^ *+' conftest.er1 >conftest.err
25742 rm -f conftest.er1
25743 cat conftest.err >&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } &&
25746 { ac_try='test -z "$ac_c_werror_flag"
25747 || test ! -s conftest.err'
25748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); }; } &&
25753 { ac_try='test -s conftest$ac_exeext'
25754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25755 (eval $ac_try) 2>&5
25756 ac_status=$?
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; }; then
25759 ac_cv_search_opendir="-l$ac_lib"
25760break
25761else
25762 echo "$as_me: failed program was:" >&5
25763sed 's/^/| /' conftest.$ac_ext >&5
25764
25765fi
25766rm -f conftest.err conftest.$ac_objext \
25767 conftest$ac_exeext conftest.$ac_ext
25768 done
25769fi
25770LIBS=$ac_func_search_save_LIBS
25771fi
25772echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25773echo "${ECHO_T}$ac_cv_search_opendir" >&6
25774if test "$ac_cv_search_opendir" != no; then
25775 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25776
25777fi
25778
25779else
25780 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25781echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25782if test "${ac_cv_search_opendir+set}" = set; then
25783 echo $ECHO_N "(cached) $ECHO_C" >&6
25784else
25785 ac_func_search_save_LIBS=$LIBS
25786ac_cv_search_opendir=no
25787cat >conftest.$ac_ext <<_ACEOF
25788/* confdefs.h. */
25789_ACEOF
25790cat confdefs.h >>conftest.$ac_ext
25791cat >>conftest.$ac_ext <<_ACEOF
25792/* end confdefs.h. */
25793
25794/* Override any gcc2 internal prototype to avoid an error. */
25795#ifdef __cplusplus
25796extern "C"
25797#endif
25798/* We use char because int might match the return type of a gcc2
25799 builtin and then its argument prototype would still apply. */
25800char opendir ();
25801int
25802main ()
25803{
25804opendir ();
25805 ;
25806 return 0;
25807}
25808_ACEOF
25809rm -f conftest.$ac_objext conftest$ac_exeext
25810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25811 (eval $ac_link) 2>conftest.er1
25812 ac_status=$?
25813 grep -v '^ *+' conftest.er1 >conftest.err
25814 rm -f conftest.er1
25815 cat conftest.err >&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } &&
25818 { ac_try='test -z "$ac_c_werror_flag"
25819 || test ! -s conftest.err'
25820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25821 (eval $ac_try) 2>&5
25822 ac_status=$?
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); }; } &&
25825 { ac_try='test -s conftest$ac_exeext'
25826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25827 (eval $ac_try) 2>&5
25828 ac_status=$?
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); }; }; then
25831 ac_cv_search_opendir="none required"
25832else
25833 echo "$as_me: failed program was:" >&5
25834sed 's/^/| /' conftest.$ac_ext >&5
25835
25836fi
25837rm -f conftest.err conftest.$ac_objext \
25838 conftest$ac_exeext conftest.$ac_ext
25839if test "$ac_cv_search_opendir" = no; then
25840 for ac_lib in x; do
25841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25842 cat >conftest.$ac_ext <<_ACEOF
25843/* confdefs.h. */
25844_ACEOF
25845cat confdefs.h >>conftest.$ac_ext
25846cat >>conftest.$ac_ext <<_ACEOF
25847/* end confdefs.h. */
25848
25849/* Override any gcc2 internal prototype to avoid an error. */
25850#ifdef __cplusplus
25851extern "C"
25852#endif
25853/* We use char because int might match the return type of a gcc2
25854 builtin and then its argument prototype would still apply. */
25855char opendir ();
25856int
25857main ()
25858{
25859opendir ();
25860 ;
25861 return 0;
25862}
25863_ACEOF
25864rm -f conftest.$ac_objext conftest$ac_exeext
25865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25866 (eval $ac_link) 2>conftest.er1
25867 ac_status=$?
25868 grep -v '^ *+' conftest.er1 >conftest.err
25869 rm -f conftest.er1
25870 cat conftest.err >&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } &&
25873 { ac_try='test -z "$ac_c_werror_flag"
25874 || test ! -s conftest.err'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; } &&
25880 { ac_try='test -s conftest$ac_exeext'
25881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882 (eval $ac_try) 2>&5
25883 ac_status=$?
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); }; }; then
25886 ac_cv_search_opendir="-l$ac_lib"
25887break
25888else
25889 echo "$as_me: failed program was:" >&5
25890sed 's/^/| /' conftest.$ac_ext >&5
25891
25892fi
25893rm -f conftest.err conftest.$ac_objext \
25894 conftest$ac_exeext conftest.$ac_ext
25895 done
25896fi
25897LIBS=$ac_func_search_save_LIBS
25898fi
25899echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25900echo "${ECHO_T}$ac_cv_search_opendir" >&6
25901if test "$ac_cv_search_opendir" != no; then
25902 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25903
25904fi
25905
25906fi
25907
25908echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25909echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25910if test "${ac_cv_header_mmap_anon+set}" = set; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25912else
25913 ac_ext=c
25914ac_cpp='$CPP $CPPFLAGS'
25915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25917ac_compiler_gnu=$ac_cv_c_compiler_gnu
25918
25919 cat >conftest.$ac_ext <<_ACEOF
25920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
25925#include <sys/mman.h>
25926#include <unistd.h>
25927#include <fcntl.h>
25928int
25929main ()
25930{
25931mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25932 ;
25933 return 0;
25934}
25935_ACEOF
25936rm -f conftest.$ac_objext
25937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25938 (eval $ac_compile) 2>conftest.er1
25939 ac_status=$?
25940 grep -v '^ *+' conftest.er1 >conftest.err
25941 rm -f conftest.er1
25942 cat conftest.err >&5
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); } &&
25945 { ac_try='test -z "$ac_c_werror_flag"
25946 || test ! -s conftest.err'
25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948 (eval $ac_try) 2>&5
25949 ac_status=$?
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }; } &&
25952 { ac_try='test -s conftest.$ac_objext'
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25955 ac_status=$?
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 ac_cv_header_mmap_anon=yes
25959else
25960 echo "$as_me: failed program was:" >&5
25961sed 's/^/| /' conftest.$ac_ext >&5
25962
25963ac_cv_header_mmap_anon=no
25964fi
25965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25966 ac_ext=c
25967ac_cpp='$CPP $CPPFLAGS'
25968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25970ac_compiler_gnu=$ac_cv_c_compiler_gnu
25971
25972
25973fi
25974echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25975echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25976if test "$ac_cv_header_mmap_anon" = yes; then
25977
25978cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025979#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025980_ACEOF
25981
25982fi
25983
25984echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25985echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25986if test "${ac_cv_header_stat_broken+set}" = set; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25988else
25989 cat >conftest.$ac_ext <<_ACEOF
25990/* confdefs.h. */
25991_ACEOF
25992cat confdefs.h >>conftest.$ac_ext
25993cat >>conftest.$ac_ext <<_ACEOF
25994/* end confdefs.h. */
25995#include <sys/types.h>
25996#include <sys/stat.h>
25997
25998#if defined(S_ISBLK) && defined(S_IFDIR)
25999# if S_ISBLK (S_IFDIR)
26000You lose.
26001# endif
26002#endif
26003
26004#if defined(S_ISBLK) && defined(S_IFCHR)
26005# if S_ISBLK (S_IFCHR)
26006You lose.
26007# endif
26008#endif
26009
26010#if defined(S_ISLNK) && defined(S_IFREG)
26011# if S_ISLNK (S_IFREG)
26012You lose.
26013# endif
26014#endif
26015
26016#if defined(S_ISSOCK) && defined(S_IFREG)
26017# if S_ISSOCK (S_IFREG)
26018You lose.
26019# endif
26020#endif
26021
26022_ACEOF
26023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26024 $EGREP "You lose" >/dev/null 2>&1; then
26025 ac_cv_header_stat_broken=yes
26026else
26027 ac_cv_header_stat_broken=no
26028fi
26029rm -f conftest*
26030
26031fi
26032echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26033echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26034if test $ac_cv_header_stat_broken = yes; then
26035
26036cat >>confdefs.h <<\_ACEOF
26037#define STAT_MACROS_BROKEN 1
26038_ACEOF
26039
26040fi
26041
John Criswell7a73b802003-06-30 21:59:07 +000026042echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26043echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26044if test "${ac_cv_header_stdc+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26046else
26047 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026048/* confdefs.h. */
26049_ACEOF
26050cat confdefs.h >>conftest.$ac_ext
26051cat >>conftest.$ac_ext <<_ACEOF
26052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026053#include <stdlib.h>
26054#include <stdarg.h>
26055#include <string.h>
26056#include <float.h>
26057
John Criswell0c38eaf2003-09-10 15:17:25 +000026058int
26059main ()
26060{
26061
26062 ;
26063 return 0;
26064}
John Criswell7a73b802003-06-30 21:59:07 +000026065_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026066rm -f conftest.$ac_objext
26067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026068 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026070 grep -v '^ *+' conftest.er1 >conftest.err
26071 rm -f conftest.er1
26072 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026074 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026075 { ac_try='test -z "$ac_c_werror_flag"
26076 || test ! -s conftest.err'
26077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; } &&
26082 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26084 (eval $ac_try) 2>&5
26085 ac_status=$?
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026088 ac_cv_header_stdc=yes
26089else
26090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026091sed 's/^/| /' conftest.$ac_ext >&5
26092
26093ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026094fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026096
26097if test $ac_cv_header_stdc = yes; then
26098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26099 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026100/* confdefs.h. */
26101_ACEOF
26102cat confdefs.h >>conftest.$ac_ext
26103cat >>conftest.$ac_ext <<_ACEOF
26104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026105#include <string.h>
26106
26107_ACEOF
26108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026109 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026110 :
26111else
26112 ac_cv_header_stdc=no
26113fi
26114rm -f conftest*
26115
26116fi
26117
26118if test $ac_cv_header_stdc = yes; then
26119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26120 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026121/* confdefs.h. */
26122_ACEOF
26123cat confdefs.h >>conftest.$ac_ext
26124cat >>conftest.$ac_ext <<_ACEOF
26125/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026126#include <stdlib.h>
26127
26128_ACEOF
26129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026130 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026131 :
26132else
26133 ac_cv_header_stdc=no
26134fi
26135rm -f conftest*
26136
26137fi
26138
26139if test $ac_cv_header_stdc = yes; then
26140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26141 if test "$cross_compiling" = yes; then
26142 :
26143else
26144 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026145/* confdefs.h. */
26146_ACEOF
26147cat confdefs.h >>conftest.$ac_ext
26148cat >>conftest.$ac_ext <<_ACEOF
26149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026150#include <ctype.h>
26151#if ((' ' & 0x0FF) == 0x020)
26152# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26153# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26154#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026155# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026156 (('a' <= (c) && (c) <= 'i') \
26157 || ('j' <= (c) && (c) <= 'r') \
26158 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026159# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26160#endif
26161
26162#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26163int
26164main ()
26165{
26166 int i;
26167 for (i = 0; i < 256; i++)
26168 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026169 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026170 exit(2);
26171 exit (0);
26172}
26173_ACEOF
26174rm -f conftest$ac_exeext
26175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26176 (eval $ac_link) 2>&5
26177 ac_status=$?
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185 :
26186else
26187 echo "$as_me: program exited with status $ac_status" >&5
26188echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026189sed 's/^/| /' conftest.$ac_ext >&5
26190
John Criswell7a73b802003-06-30 21:59:07 +000026191( exit $ac_status )
26192ac_cv_header_stdc=no
26193fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026195fi
26196fi
26197fi
26198echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26199echo "${ECHO_T}$ac_cv_header_stdc" >&6
26200if test $ac_cv_header_stdc = yes; then
26201
26202cat >>confdefs.h <<\_ACEOF
26203#define STDC_HEADERS 1
26204_ACEOF
26205
26206fi
26207
26208echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26209echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26210if test "${ac_cv_header_sys_wait_h+set}" = set; then
26211 echo $ECHO_N "(cached) $ECHO_C" >&6
26212else
26213 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026219#include <sys/types.h>
26220#include <sys/wait.h>
26221#ifndef WEXITSTATUS
26222# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26223#endif
26224#ifndef WIFEXITED
26225# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26226#endif
26227
John Criswell7a73b802003-06-30 21:59:07 +000026228int
26229main ()
26230{
26231 int s;
26232 wait (&s);
26233 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26234 ;
26235 return 0;
26236}
26237_ACEOF
26238rm -f conftest.$ac_objext
26239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026240 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026241 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026242 grep -v '^ *+' conftest.er1 >conftest.err
26243 rm -f conftest.er1
26244 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247 { ac_try='test -z "$ac_c_werror_flag"
26248 || test ! -s conftest.err'
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; } &&
26254 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; }; then
26260 ac_cv_header_sys_wait_h=yes
26261else
26262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026263sed 's/^/| /' conftest.$ac_ext >&5
26264
John Criswell7a73b802003-06-30 21:59:07 +000026265ac_cv_header_sys_wait_h=no
26266fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026268fi
26269echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26270echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26271if test $ac_cv_header_sys_wait_h = yes; then
26272
26273cat >>confdefs.h <<\_ACEOF
26274#define HAVE_SYS_WAIT_H 1
26275_ACEOF
26276
26277fi
26278
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026279echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26280echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26281if test "${ac_cv_header_time+set}" = set; then
26282 echo $ECHO_N "(cached) $ECHO_C" >&6
26283else
26284 cat >conftest.$ac_ext <<_ACEOF
26285/* confdefs.h. */
26286_ACEOF
26287cat confdefs.h >>conftest.$ac_ext
26288cat >>conftest.$ac_ext <<_ACEOF
26289/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026290#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026291#include <sys/time.h>
26292#include <time.h>
26293
26294int
26295main ()
26296{
26297if ((struct tm *) 0)
26298return 0;
26299 ;
26300 return 0;
26301}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026302_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026303rm -f conftest.$ac_objext
26304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26305 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026306 ac_status=$?
26307 grep -v '^ *+' conftest.er1 >conftest.err
26308 rm -f conftest.er1
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026311 (exit $ac_status); } &&
26312 { ac_try='test -z "$ac_c_werror_flag"
26313 || test ! -s conftest.err'
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; } &&
26319 { ac_try='test -s conftest.$ac_objext'
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; }; then
26325 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026326else
26327 echo "$as_me: failed program was:" >&5
26328sed 's/^/| /' conftest.$ac_ext >&5
26329
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026330ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026331fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26333fi
26334echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26335echo "${ECHO_T}$ac_cv_header_time" >&6
26336if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026337
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026338cat >>confdefs.h <<\_ACEOF
26339#define TIME_WITH_SYS_TIME 1
26340_ACEOF
26341
26342fi
26343
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026344
Reid Spencer59473af2004-12-25 07:31:29 +000026345
26346
26347
26348
26349
26350
26351for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26352do
26353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26354if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355 echo "$as_me:$LINENO: checking for $ac_header" >&5
26356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26357if eval "test \"\${$as_ac_Header+set}\" = set"; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26359fi
26360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26362else
26363 # Is the header compilable?
26364echo "$as_me:$LINENO: checking $ac_header usability" >&5
26365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26366cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026367/* confdefs.h. */
26368_ACEOF
26369cat confdefs.h >>conftest.$ac_ext
26370cat >>conftest.$ac_ext <<_ACEOF
26371/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026372$ac_includes_default
26373#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026374_ACEOF
26375rm -f conftest.$ac_objext
26376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26377 (eval $ac_compile) 2>conftest.er1
26378 ac_status=$?
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } &&
26384 { ac_try='test -z "$ac_c_werror_flag"
26385 || test ! -s conftest.err'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; } &&
26391 { ac_try='test -s conftest.$ac_objext'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026397 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026398else
26399 echo "$as_me: failed program was:" >&5
26400sed 's/^/| /' conftest.$ac_ext >&5
26401
Reid Spencer59473af2004-12-25 07:31:29 +000026402ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026403fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26406echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026407
Reid Spencer59473af2004-12-25 07:31:29 +000026408# Is the header present?
26409echo "$as_me:$LINENO: checking $ac_header presence" >&5
26410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26411cat >conftest.$ac_ext <<_ACEOF
26412/* confdefs.h. */
26413_ACEOF
26414cat confdefs.h >>conftest.$ac_ext
26415cat >>conftest.$ac_ext <<_ACEOF
26416/* end confdefs.h. */
26417#include <$ac_header>
26418_ACEOF
26419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26421 ac_status=$?
26422 grep -v '^ *+' conftest.er1 >conftest.err
26423 rm -f conftest.er1
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } >/dev/null; then
26427 if test -s conftest.err; then
26428 ac_cpp_err=$ac_c_preproc_warn_flag
26429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26430 else
26431 ac_cpp_err=
26432 fi
26433else
26434 ac_cpp_err=yes
26435fi
26436if test -z "$ac_cpp_err"; then
26437 ac_header_preproc=yes
26438else
26439 echo "$as_me: failed program was:" >&5
26440sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 ac_header_preproc=no
26443fi
26444rm -f conftest.err conftest.$ac_ext
26445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446echo "${ECHO_T}$ac_header_preproc" >&6
26447
26448# So? What about this header?
26449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26450 yes:no: )
26451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455 ac_header_preproc=yes
26456 ;;
26457 no:yes:* )
26458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26470 (
26471 cat <<\_ASBOX
26472## ----------------------------------- ##
26473## Report this to llvmbugs@cs.uiuc.edu ##
26474## ----------------------------------- ##
26475_ASBOX
26476 ) |
26477 sed "s/^/$as_me: WARNING: /" >&2
26478 ;;
26479esac
26480echo "$as_me:$LINENO: checking for $ac_header" >&5
26481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26484else
26485 eval "$as_ac_Header=\$ac_header_preproc"
26486fi
26487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026489
26490fi
Reid Spencer59473af2004-12-25 07:31:29 +000026491if test `eval echo '${'$as_ac_Header'}'` = yes; then
26492 cat >>confdefs.h <<_ACEOF
26493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026494_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026495
26496fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026497
Reid Spencer59473af2004-12-25 07:31:29 +000026498done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026499
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026500
26501
Reid Spencer59473af2004-12-25 07:31:29 +000026502
26503
26504
26505
Reid Spencer0a262ba2005-08-24 10:07:20 +000026506for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026507do
26508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26509if eval "test \"\${$as_ac_Header+set}\" = set"; then
26510 echo "$as_me:$LINENO: checking for $ac_header" >&5
26511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26512if eval "test \"\${$as_ac_Header+set}\" = set"; then
26513 echo $ECHO_N "(cached) $ECHO_C" >&6
26514fi
26515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26517else
26518 # Is the header compilable?
26519echo "$as_me:$LINENO: checking $ac_header usability" >&5
26520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26521cat >conftest.$ac_ext <<_ACEOF
26522/* confdefs.h. */
26523_ACEOF
26524cat confdefs.h >>conftest.$ac_ext
26525cat >>conftest.$ac_ext <<_ACEOF
26526/* end confdefs.h. */
26527$ac_includes_default
26528#include <$ac_header>
26529_ACEOF
26530rm -f conftest.$ac_objext
26531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26532 (eval $ac_compile) 2>conftest.er1
26533 ac_status=$?
26534 grep -v '^ *+' conftest.er1 >conftest.err
26535 rm -f conftest.er1
26536 cat conftest.err >&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); } &&
26539 { ac_try='test -z "$ac_c_werror_flag"
26540 || test ! -s conftest.err'
26541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542 (eval $ac_try) 2>&5
26543 ac_status=$?
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); }; } &&
26546 { ac_try='test -s conftest.$ac_objext'
26547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548 (eval $ac_try) 2>&5
26549 ac_status=$?
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); }; }; then
26552 ac_header_compiler=yes
26553else
26554 echo "$as_me: failed program was:" >&5
26555sed 's/^/| /' conftest.$ac_ext >&5
26556
26557ac_header_compiler=no
26558fi
26559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26561echo "${ECHO_T}$ac_header_compiler" >&6
26562
26563# Is the header present?
26564echo "$as_me:$LINENO: checking $ac_header presence" >&5
26565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26566cat >conftest.$ac_ext <<_ACEOF
26567/* confdefs.h. */
26568_ACEOF
26569cat confdefs.h >>conftest.$ac_ext
26570cat >>conftest.$ac_ext <<_ACEOF
26571/* end confdefs.h. */
26572#include <$ac_header>
26573_ACEOF
26574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26576 ac_status=$?
26577 grep -v '^ *+' conftest.er1 >conftest.err
26578 rm -f conftest.er1
26579 cat conftest.err >&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); } >/dev/null; then
26582 if test -s conftest.err; then
26583 ac_cpp_err=$ac_c_preproc_warn_flag
26584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26585 else
26586 ac_cpp_err=
26587 fi
26588else
26589 ac_cpp_err=yes
26590fi
26591if test -z "$ac_cpp_err"; then
26592 ac_header_preproc=yes
26593else
26594 echo "$as_me: failed program was:" >&5
26595sed 's/^/| /' conftest.$ac_ext >&5
26596
26597 ac_header_preproc=no
26598fi
26599rm -f conftest.err conftest.$ac_ext
26600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26601echo "${ECHO_T}$ac_header_preproc" >&6
26602
26603# So? What about this header?
26604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26605 yes:no: )
26606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26610 ac_header_preproc=yes
26611 ;;
26612 no:yes:* )
26613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26625 (
26626 cat <<\_ASBOX
26627## ----------------------------------- ##
26628## Report this to llvmbugs@cs.uiuc.edu ##
26629## ----------------------------------- ##
26630_ASBOX
26631 ) |
26632 sed "s/^/$as_me: WARNING: /" >&2
26633 ;;
26634esac
26635echo "$as_me:$LINENO: checking for $ac_header" >&5
26636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26637if eval "test \"\${$as_ac_Header+set}\" = set"; then
26638 echo $ECHO_N "(cached) $ECHO_C" >&6
26639else
26640 eval "$as_ac_Header=\$ac_header_preproc"
26641fi
26642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26644
26645fi
26646if test `eval echo '${'$as_ac_Header'}'` = yes; then
26647 cat >>confdefs.h <<_ACEOF
26648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26649_ACEOF
26650
26651fi
26652
26653done
26654
26655
26656
26657
26658
26659
26660for 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 +000026661do
26662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26663if eval "test \"\${$as_ac_Header+set}\" = set"; then
26664 echo "$as_me:$LINENO: checking for $ac_header" >&5
26665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26666if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026667 echo $ECHO_N "(cached) $ECHO_C" >&6
26668fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026671else
26672 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026673echo "$as_me:$LINENO: checking $ac_header usability" >&5
26674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026675cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026676/* confdefs.h. */
26677_ACEOF
26678cat confdefs.h >>conftest.$ac_ext
26679cat >>conftest.$ac_ext <<_ACEOF
26680/* end confdefs.h. */
26681$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026682#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026683_ACEOF
26684rm -f conftest.$ac_objext
26685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026686 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026688 grep -v '^ *+' conftest.er1 >conftest.err
26689 rm -f conftest.er1
26690 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026693 { ac_try='test -z "$ac_c_werror_flag"
26694 || test ! -s conftest.err'
26695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26696 (eval $ac_try) 2>&5
26697 ac_status=$?
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); }; } &&
26700 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26702 (eval $ac_try) 2>&5
26703 ac_status=$?
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); }; }; then
26706 ac_header_compiler=yes
26707else
26708 echo "$as_me: failed program was:" >&5
26709sed 's/^/| /' conftest.$ac_ext >&5
26710
26711ac_header_compiler=no
26712fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26715echo "${ECHO_T}$ac_header_compiler" >&6
26716
26717# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026718echo "$as_me:$LINENO: checking $ac_header presence" >&5
26719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026720cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026721/* confdefs.h. */
26722_ACEOF
26723cat confdefs.h >>conftest.$ac_ext
26724cat >>conftest.$ac_ext <<_ACEOF
26725/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026726#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026727_ACEOF
26728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26730 ac_status=$?
26731 grep -v '^ *+' conftest.er1 >conftest.err
26732 rm -f conftest.er1
26733 cat conftest.err >&5
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } >/dev/null; then
26736 if test -s conftest.err; then
26737 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026739 else
26740 ac_cpp_err=
26741 fi
26742else
26743 ac_cpp_err=yes
26744fi
26745if test -z "$ac_cpp_err"; then
26746 ac_header_preproc=yes
26747else
26748 echo "$as_me: failed program was:" >&5
26749sed 's/^/| /' conftest.$ac_ext >&5
26750
26751 ac_header_preproc=no
26752fi
26753rm -f conftest.err conftest.$ac_ext
26754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26755echo "${ECHO_T}$ac_header_preproc" >&6
26756
26757# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26759 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026764 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026765 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026766 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026779 (
26780 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026781## ----------------------------------- ##
26782## Report this to llvmbugs@cs.uiuc.edu ##
26783## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026784_ASBOX
26785 ) |
26786 sed "s/^/$as_me: WARNING: /" >&2
26787 ;;
26788esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026789echo "$as_me:$LINENO: checking for $ac_header" >&5
26790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26791if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026792 echo $ECHO_N "(cached) $ECHO_C" >&6
26793else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026794 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026795fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026798
26799fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026800if test `eval echo '${'$as_ac_Header'}'` = yes; then
26801 cat >>confdefs.h <<_ACEOF
26802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026803_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026804
26805fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026806
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026807done
26808
John Criswell7ed43ad2004-07-19 16:12:29 +000026809
Chris Lattner0b142592005-11-14 06:57:34 +000026810for ac_header in malloc/malloc.h
26811do
26812as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26813if eval "test \"\${$as_ac_Header+set}\" = set"; then
26814 echo "$as_me:$LINENO: checking for $ac_header" >&5
26815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26816if eval "test \"\${$as_ac_Header+set}\" = set"; then
26817 echo $ECHO_N "(cached) $ECHO_C" >&6
26818fi
26819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26821else
26822 # Is the header compilable?
26823echo "$as_me:$LINENO: checking $ac_header usability" >&5
26824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26825cat >conftest.$ac_ext <<_ACEOF
26826/* confdefs.h. */
26827_ACEOF
26828cat confdefs.h >>conftest.$ac_ext
26829cat >>conftest.$ac_ext <<_ACEOF
26830/* end confdefs.h. */
26831$ac_includes_default
26832#include <$ac_header>
26833_ACEOF
26834rm -f conftest.$ac_objext
26835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26836 (eval $ac_compile) 2>conftest.er1
26837 ac_status=$?
26838 grep -v '^ *+' conftest.er1 >conftest.err
26839 rm -f conftest.er1
26840 cat conftest.err >&5
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); } &&
26843 { ac_try='test -z "$ac_c_werror_flag"
26844 || test ! -s conftest.err'
26845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846 (eval $ac_try) 2>&5
26847 ac_status=$?
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; } &&
26850 { ac_try='test -s conftest.$ac_objext'
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; }; then
26856 ac_header_compiler=yes
26857else
26858 echo "$as_me: failed program was:" >&5
26859sed 's/^/| /' conftest.$ac_ext >&5
26860
26861ac_header_compiler=no
26862fi
26863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26865echo "${ECHO_T}$ac_header_compiler" >&6
26866
26867# Is the header present?
26868echo "$as_me:$LINENO: checking $ac_header presence" >&5
26869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26870cat >conftest.$ac_ext <<_ACEOF
26871/* confdefs.h. */
26872_ACEOF
26873cat confdefs.h >>conftest.$ac_ext
26874cat >>conftest.$ac_ext <<_ACEOF
26875/* end confdefs.h. */
26876#include <$ac_header>
26877_ACEOF
26878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26880 ac_status=$?
26881 grep -v '^ *+' conftest.er1 >conftest.err
26882 rm -f conftest.er1
26883 cat conftest.err >&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } >/dev/null; then
26886 if test -s conftest.err; then
26887 ac_cpp_err=$ac_c_preproc_warn_flag
26888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26889 else
26890 ac_cpp_err=
26891 fi
26892else
26893 ac_cpp_err=yes
26894fi
26895if test -z "$ac_cpp_err"; then
26896 ac_header_preproc=yes
26897else
26898 echo "$as_me: failed program was:" >&5
26899sed 's/^/| /' conftest.$ac_ext >&5
26900
26901 ac_header_preproc=no
26902fi
26903rm -f conftest.err conftest.$ac_ext
26904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26905echo "${ECHO_T}$ac_header_preproc" >&6
26906
26907# So? What about this header?
26908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26909 yes:no: )
26910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26914 ac_header_preproc=yes
26915 ;;
26916 no:yes:* )
26917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26929 (
26930 cat <<\_ASBOX
26931## ----------------------------------- ##
26932## Report this to llvmbugs@cs.uiuc.edu ##
26933## ----------------------------------- ##
26934_ASBOX
26935 ) |
26936 sed "s/^/$as_me: WARNING: /" >&2
26937 ;;
26938esac
26939echo "$as_me:$LINENO: checking for $ac_header" >&5
26940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26941if eval "test \"\${$as_ac_Header+set}\" = set"; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26943else
26944 eval "$as_ac_Header=\$ac_header_preproc"
26945fi
26946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26948
26949fi
26950if test `eval echo '${'$as_ac_Header'}'` = yes; then
26951 cat >>confdefs.h <<_ACEOF
26952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26953_ACEOF
26954
26955fi
26956
26957done
26958
26959
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026960
Reid Spencer8085cff2005-01-16 02:58:39 +000026961for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26962do
26963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26964if eval "test \"\${$as_ac_Header+set}\" = set"; then
26965 echo "$as_me:$LINENO: checking for $ac_header" >&5
26966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26967if eval "test \"\${$as_ac_Header+set}\" = set"; then
26968 echo $ECHO_N "(cached) $ECHO_C" >&6
26969fi
26970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26972else
26973 # Is the header compilable?
26974echo "$as_me:$LINENO: checking $ac_header usability" >&5
26975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26976cat >conftest.$ac_ext <<_ACEOF
26977/* confdefs.h. */
26978_ACEOF
26979cat confdefs.h >>conftest.$ac_ext
26980cat >>conftest.$ac_ext <<_ACEOF
26981/* end confdefs.h. */
26982$ac_includes_default
26983#include <$ac_header>
26984_ACEOF
26985rm -f conftest.$ac_objext
26986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26987 (eval $ac_compile) 2>conftest.er1
26988 ac_status=$?
26989 grep -v '^ *+' conftest.er1 >conftest.err
26990 rm -f conftest.er1
26991 cat conftest.err >&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } &&
26994 { ac_try='test -z "$ac_c_werror_flag"
26995 || test ! -s conftest.err'
26996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997 (eval $ac_try) 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; } &&
27001 { ac_try='test -s conftest.$ac_objext'
27002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003 (eval $ac_try) 2>&5
27004 ac_status=$?
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); }; }; then
27007 ac_header_compiler=yes
27008else
27009 echo "$as_me: failed program was:" >&5
27010sed 's/^/| /' conftest.$ac_ext >&5
27011
27012ac_header_compiler=no
27013fi
27014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27016echo "${ECHO_T}$ac_header_compiler" >&6
27017
27018# Is the header present?
27019echo "$as_me:$LINENO: checking $ac_header presence" >&5
27020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27021cat >conftest.$ac_ext <<_ACEOF
27022/* confdefs.h. */
27023_ACEOF
27024cat confdefs.h >>conftest.$ac_ext
27025cat >>conftest.$ac_ext <<_ACEOF
27026/* end confdefs.h. */
27027#include <$ac_header>
27028_ACEOF
27029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27031 ac_status=$?
27032 grep -v '^ *+' conftest.er1 >conftest.err
27033 rm -f conftest.er1
27034 cat conftest.err >&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); } >/dev/null; then
27037 if test -s conftest.err; then
27038 ac_cpp_err=$ac_c_preproc_warn_flag
27039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27040 else
27041 ac_cpp_err=
27042 fi
27043else
27044 ac_cpp_err=yes
27045fi
27046if test -z "$ac_cpp_err"; then
27047 ac_header_preproc=yes
27048else
27049 echo "$as_me: failed program was:" >&5
27050sed 's/^/| /' conftest.$ac_ext >&5
27051
27052 ac_header_preproc=no
27053fi
27054rm -f conftest.err conftest.$ac_ext
27055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27056echo "${ECHO_T}$ac_header_preproc" >&6
27057
27058# So? What about this header?
27059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27060 yes:no: )
27061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27065 ac_header_preproc=yes
27066 ;;
27067 no:yes:* )
27068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27080 (
27081 cat <<\_ASBOX
27082## ----------------------------------- ##
27083## Report this to llvmbugs@cs.uiuc.edu ##
27084## ----------------------------------- ##
27085_ASBOX
27086 ) |
27087 sed "s/^/$as_me: WARNING: /" >&2
27088 ;;
27089esac
27090echo "$as_me:$LINENO: checking for $ac_header" >&5
27091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27092if eval "test \"\${$as_ac_Header+set}\" = set"; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27094else
27095 eval "$as_ac_Header=\$ac_header_preproc"
27096fi
27097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27099
27100fi
27101if test `eval echo '${'$as_ac_Header'}'` = yes; then
27102 cat >>confdefs.h <<_ACEOF
27103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27104_ACEOF
27105
27106fi
27107
27108done
27109
Reid Spencer0a262ba2005-08-24 10:07:20 +000027110if test "$ENABLE_THREADS" -eq 1 ; then
27111
27112for ac_header in pthread.h
27113do
27114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27115if eval "test \"\${$as_ac_Header+set}\" = set"; then
27116 echo "$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
27120fi
27121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27123else
27124 # Is the header compilable?
27125echo "$as_me:$LINENO: checking $ac_header usability" >&5
27126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27127cat >conftest.$ac_ext <<_ACEOF
27128/* confdefs.h. */
27129_ACEOF
27130cat confdefs.h >>conftest.$ac_ext
27131cat >>conftest.$ac_ext <<_ACEOF
27132/* end confdefs.h. */
27133$ac_includes_default
27134#include <$ac_header>
27135_ACEOF
27136rm -f conftest.$ac_objext
27137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27138 (eval $ac_compile) 2>conftest.er1
27139 ac_status=$?
27140 grep -v '^ *+' conftest.er1 >conftest.err
27141 rm -f conftest.er1
27142 cat conftest.err >&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } &&
27145 { ac_try='test -z "$ac_c_werror_flag"
27146 || test ! -s conftest.err'
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; } &&
27152 { ac_try='test -s conftest.$ac_objext'
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; }; then
27158 ac_header_compiler=yes
27159else
27160 echo "$as_me: failed program was:" >&5
27161sed 's/^/| /' conftest.$ac_ext >&5
27162
27163ac_header_compiler=no
27164fi
27165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27167echo "${ECHO_T}$ac_header_compiler" >&6
27168
27169# Is the header present?
27170echo "$as_me:$LINENO: checking $ac_header presence" >&5
27171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27172cat >conftest.$ac_ext <<_ACEOF
27173/* confdefs.h. */
27174_ACEOF
27175cat confdefs.h >>conftest.$ac_ext
27176cat >>conftest.$ac_ext <<_ACEOF
27177/* end confdefs.h. */
27178#include <$ac_header>
27179_ACEOF
27180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27182 ac_status=$?
27183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } >/dev/null; then
27188 if test -s conftest.err; then
27189 ac_cpp_err=$ac_c_preproc_warn_flag
27190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27191 else
27192 ac_cpp_err=
27193 fi
27194else
27195 ac_cpp_err=yes
27196fi
27197if test -z "$ac_cpp_err"; then
27198 ac_header_preproc=yes
27199else
27200 echo "$as_me: failed program was:" >&5
27201sed 's/^/| /' conftest.$ac_ext >&5
27202
27203 ac_header_preproc=no
27204fi
27205rm -f conftest.err conftest.$ac_ext
27206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27207echo "${ECHO_T}$ac_header_preproc" >&6
27208
27209# So? What about this header?
27210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27211 yes:no: )
27212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27216 ac_header_preproc=yes
27217 ;;
27218 no:yes:* )
27219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27231 (
27232 cat <<\_ASBOX
27233## ----------------------------------- ##
27234## Report this to llvmbugs@cs.uiuc.edu ##
27235## ----------------------------------- ##
27236_ASBOX
27237 ) |
27238 sed "s/^/$as_me: WARNING: /" >&2
27239 ;;
27240esac
27241echo "$as_me:$LINENO: checking for $ac_header" >&5
27242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27243if eval "test \"\${$as_ac_Header+set}\" = set"; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27245else
27246 eval "$as_ac_Header=\$ac_header_preproc"
27247fi
27248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27250
27251fi
27252if test `eval echo '${'$as_ac_Header'}'` = yes; then
27253 cat >>confdefs.h <<_ACEOF
27254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27255_ACEOF
27256
27257fi
27258
27259done
27260
27261fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027262
27263
John Criswell7a73b802003-06-30 21:59:07 +000027264echo "$as_me:$LINENO: checking for pid_t" >&5
27265echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27266if test "${ac_cv_type_pid_t+set}" = set; then
27267 echo $ECHO_N "(cached) $ECHO_C" >&6
27268else
27269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027270/* confdefs.h. */
27271_ACEOF
27272cat confdefs.h >>conftest.$ac_ext
27273cat >>conftest.$ac_ext <<_ACEOF
27274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027275$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027276int
27277main ()
27278{
27279if ((pid_t *) 0)
27280 return 0;
27281if (sizeof (pid_t))
27282 return 0;
27283 ;
27284 return 0;
27285}
27286_ACEOF
27287rm -f conftest.$ac_objext
27288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027289 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027291 grep -v '^ *+' conftest.er1 >conftest.err
27292 rm -f conftest.er1
27293 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027296 { ac_try='test -z "$ac_c_werror_flag"
27297 || test ! -s conftest.err'
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; } &&
27303 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305 (eval $ac_try) 2>&5
27306 ac_status=$?
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
27309 ac_cv_type_pid_t=yes
27310else
27311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027312sed 's/^/| /' conftest.$ac_ext >&5
27313
John Criswell7a73b802003-06-30 21:59:07 +000027314ac_cv_type_pid_t=no
27315fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027317fi
27318echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27319echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27320if test $ac_cv_type_pid_t = yes; then
27321 :
27322else
27323
27324cat >>confdefs.h <<_ACEOF
27325#define pid_t int
27326_ACEOF
27327
27328fi
27329
27330echo "$as_me:$LINENO: checking for size_t" >&5
27331echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27332if test "${ac_cv_type_size_t+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27334else
27335 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027336/* confdefs.h. */
27337_ACEOF
27338cat confdefs.h >>conftest.$ac_ext
27339cat >>conftest.$ac_ext <<_ACEOF
27340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027341$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027342int
27343main ()
27344{
27345if ((size_t *) 0)
27346 return 0;
27347if (sizeof (size_t))
27348 return 0;
27349 ;
27350 return 0;
27351}
27352_ACEOF
27353rm -f conftest.$ac_objext
27354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027355 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027357 grep -v '^ *+' conftest.er1 >conftest.err
27358 rm -f conftest.er1
27359 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027362 { ac_try='test -z "$ac_c_werror_flag"
27363 || test ! -s conftest.err'
27364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365 (eval $ac_try) 2>&5
27366 ac_status=$?
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; } &&
27369 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27375 ac_cv_type_size_t=yes
27376else
27377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027378sed 's/^/| /' conftest.$ac_ext >&5
27379
John Criswell7a73b802003-06-30 21:59:07 +000027380ac_cv_type_size_t=no
27381fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027383fi
27384echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27385echo "${ECHO_T}$ac_cv_type_size_t" >&6
27386if test $ac_cv_type_size_t = yes; then
27387 :
27388else
27389
27390cat >>confdefs.h <<_ACEOF
27391#define size_t unsigned
27392_ACEOF
27393
27394fi
27395
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027396echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27397echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27398if test "${ac_cv_type_signal+set}" = set; then
27399 echo $ECHO_N "(cached) $ECHO_C" >&6
27400else
27401 cat >conftest.$ac_ext <<_ACEOF
27402/* confdefs.h. */
27403_ACEOF
27404cat confdefs.h >>conftest.$ac_ext
27405cat >>conftest.$ac_ext <<_ACEOF
27406/* end confdefs.h. */
27407#include <sys/types.h>
27408#include <signal.h>
27409#ifdef signal
27410# undef signal
27411#endif
27412#ifdef __cplusplus
27413extern "C" void (*signal (int, void (*)(int)))(int);
27414#else
27415void (*signal ()) ();
27416#endif
27417
27418int
27419main ()
27420{
27421int i;
27422 ;
27423 return 0;
27424}
27425_ACEOF
27426rm -f conftest.$ac_objext
27427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27428 (eval $ac_compile) 2>conftest.er1
27429 ac_status=$?
27430 grep -v '^ *+' conftest.er1 >conftest.err
27431 rm -f conftest.er1
27432 cat conftest.err >&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); } &&
27435 { ac_try='test -z "$ac_c_werror_flag"
27436 || test ! -s conftest.err'
27437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438 (eval $ac_try) 2>&5
27439 ac_status=$?
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; } &&
27442 { ac_try='test -s conftest.$ac_objext'
27443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444 (eval $ac_try) 2>&5
27445 ac_status=$?
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); }; }; then
27448 ac_cv_type_signal=void
27449else
27450 echo "$as_me: failed program was:" >&5
27451sed 's/^/| /' conftest.$ac_ext >&5
27452
27453ac_cv_type_signal=int
27454fi
27455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27456fi
27457echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27458echo "${ECHO_T}$ac_cv_type_signal" >&6
27459
27460cat >>confdefs.h <<_ACEOF
27461#define RETSIGTYPE $ac_cv_type_signal
27462_ACEOF
27463
27464
27465echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27466echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27467if test "${ac_cv_struct_tm+set}" = set; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
27469else
27470 cat >conftest.$ac_ext <<_ACEOF
27471/* confdefs.h. */
27472_ACEOF
27473cat confdefs.h >>conftest.$ac_ext
27474cat >>conftest.$ac_ext <<_ACEOF
27475/* end confdefs.h. */
27476#include <sys/types.h>
27477#include <time.h>
27478
27479int
27480main ()
27481{
27482struct tm *tp; tp->tm_sec;
27483 ;
27484 return 0;
27485}
27486_ACEOF
27487rm -f conftest.$ac_objext
27488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27489 (eval $ac_compile) 2>conftest.er1
27490 ac_status=$?
27491 grep -v '^ *+' conftest.er1 >conftest.err
27492 rm -f conftest.er1
27493 cat conftest.err >&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } &&
27496 { ac_try='test -z "$ac_c_werror_flag"
27497 || test ! -s conftest.err'
27498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499 (eval $ac_try) 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; } &&
27503 { ac_try='test -s conftest.$ac_objext'
27504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27505 (eval $ac_try) 2>&5
27506 ac_status=$?
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); }; }; then
27509 ac_cv_struct_tm=time.h
27510else
27511 echo "$as_me: failed program was:" >&5
27512sed 's/^/| /' conftest.$ac_ext >&5
27513
27514ac_cv_struct_tm=sys/time.h
27515fi
27516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27517fi
27518echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27519echo "${ECHO_T}$ac_cv_struct_tm" >&6
27520if test $ac_cv_struct_tm = sys/time.h; then
27521
27522cat >>confdefs.h <<\_ACEOF
27523#define TM_IN_SYS_TIME 1
27524_ACEOF
27525
27526fi
27527
John Criswell7a73b802003-06-30 21:59:07 +000027528echo "$as_me:$LINENO: checking for int64_t" >&5
27529echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27530if test "${ac_cv_type_int64_t+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27532else
27533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027534/* confdefs.h. */
27535_ACEOF
27536cat confdefs.h >>conftest.$ac_ext
27537cat >>conftest.$ac_ext <<_ACEOF
27538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027539$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027540int
27541main ()
27542{
27543if ((int64_t *) 0)
27544 return 0;
27545if (sizeof (int64_t))
27546 return 0;
27547 ;
27548 return 0;
27549}
27550_ACEOF
27551rm -f conftest.$ac_objext
27552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027553 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027560 { ac_try='test -z "$ac_c_werror_flag"
27561 || test ! -s conftest.err'
27562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563 (eval $ac_try) 2>&5
27564 ac_status=$?
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569 (eval $ac_try) 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
27573 ac_cv_type_int64_t=yes
27574else
27575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027576sed 's/^/| /' conftest.$ac_ext >&5
27577
John Criswell7a73b802003-06-30 21:59:07 +000027578ac_cv_type_int64_t=no
27579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027581fi
27582echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27583echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27584if test $ac_cv_type_int64_t = yes; then
27585
27586cat >>confdefs.h <<_ACEOF
27587#define HAVE_INT64_T 1
27588_ACEOF
27589
27590
27591else
27592 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27593echo "$as_me: error: Type int64_t required but not found" >&2;}
27594 { (exit 1); exit 1; }; }
27595fi
27596
27597echo "$as_me:$LINENO: checking for uint64_t" >&5
27598echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27599if test "${ac_cv_type_uint64_t+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601else
27602 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027603/* confdefs.h. */
27604_ACEOF
27605cat confdefs.h >>conftest.$ac_ext
27606cat >>conftest.$ac_ext <<_ACEOF
27607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027608$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027609int
27610main ()
27611{
27612if ((uint64_t *) 0)
27613 return 0;
27614if (sizeof (uint64_t))
27615 return 0;
27616 ;
27617 return 0;
27618}
27619_ACEOF
27620rm -f conftest.$ac_objext
27621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027622 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027623 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027624 grep -v '^ *+' conftest.er1 >conftest.err
27625 rm -f conftest.er1
27626 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027629 { ac_try='test -z "$ac_c_werror_flag"
27630 || test ! -s conftest.err'
27631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632 (eval $ac_try) 2>&5
27633 ac_status=$?
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; } &&
27636 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638 (eval $ac_try) 2>&5
27639 ac_status=$?
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
27642 ac_cv_type_uint64_t=yes
27643else
27644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027645sed 's/^/| /' conftest.$ac_ext >&5
27646
John Criswell7a73b802003-06-30 21:59:07 +000027647ac_cv_type_uint64_t=no
27648fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027650fi
27651echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27652echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27653if test $ac_cv_type_uint64_t = yes; then
27654
27655cat >>confdefs.h <<_ACEOF
27656#define HAVE_UINT64_T 1
27657_ACEOF
27658
27659
27660else
Misha Brukmanceca9042004-09-02 23:02:30 +000027661 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027662echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27663if test "${ac_cv_type_u_int64_t+set}" = set; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27665else
27666 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027667/* confdefs.h. */
27668_ACEOF
27669cat confdefs.h >>conftest.$ac_ext
27670cat >>conftest.$ac_ext <<_ACEOF
27671/* end confdefs.h. */
27672$ac_includes_default
27673int
27674main ()
27675{
27676if ((u_int64_t *) 0)
27677 return 0;
27678if (sizeof (u_int64_t))
27679 return 0;
27680 ;
27681 return 0;
27682}
27683_ACEOF
27684rm -f conftest.$ac_objext
27685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027686 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027688 grep -v '^ *+' conftest.er1 >conftest.err
27689 rm -f conftest.er1
27690 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027693 { ac_try='test -z "$ac_c_werror_flag"
27694 || test ! -s conftest.err'
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27703 ac_status=$?
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; }; then
27706 ac_cv_type_u_int64_t=yes
27707else
27708 echo "$as_me: failed program was:" >&5
27709sed 's/^/| /' conftest.$ac_ext >&5
27710
27711ac_cv_type_u_int64_t=no
27712fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027714fi
27715echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27716echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27717if test $ac_cv_type_u_int64_t = yes; then
27718
27719cat >>confdefs.h <<_ACEOF
27720#define HAVE_U_INT64_T 1
27721_ACEOF
27722
27723
Misha Brukmanceca9042004-09-02 23:02:30 +000027724else
27725 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27726echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27727 { (exit 1); exit 1; }; }
27728fi
27729
John Criswell679ff312004-09-02 18:44:44 +000027730fi
27731
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027732
27733
27734
27735
27736
27737
27738
Reid Spencerb9a5d682005-05-15 22:15:11 +000027739for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
Reid Spencerab5eaea2004-12-20 00:59:04 +000027740do
27741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27742echo "$as_me:$LINENO: checking for $ac_func" >&5
27743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27744if eval "test \"\${$as_ac_var+set}\" = set"; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746else
27747 cat >conftest.$ac_ext <<_ACEOF
27748/* confdefs.h. */
27749_ACEOF
27750cat confdefs.h >>conftest.$ac_ext
27751cat >>conftest.$ac_ext <<_ACEOF
27752/* end confdefs.h. */
27753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27755#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027756
Reid Spencerab5eaea2004-12-20 00:59:04 +000027757/* System header to define __stub macros and hopefully few prototypes,
27758 which can conflict with char $ac_func (); below.
27759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27760 <limits.h> exists even on freestanding compilers. */
27761
27762#ifdef __STDC__
27763# include <limits.h>
27764#else
27765# include <assert.h>
27766#endif
27767
27768#undef $ac_func
27769
27770/* Override any gcc2 internal prototype to avoid an error. */
27771#ifdef __cplusplus
27772extern "C"
27773{
27774#endif
27775/* We use char because int might match the return type of a gcc2
27776 builtin and then its argument prototype would still apply. */
27777char $ac_func ();
27778/* The GNU C library defines this for functions which it implements
27779 to always fail with ENOSYS. Some functions are actually named
27780 something starting with __ and the normal name is an alias. */
27781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27782choke me
27783#else
27784char (*f) () = $ac_func;
27785#endif
27786#ifdef __cplusplus
27787}
27788#endif
27789
27790int
27791main ()
27792{
27793return f != $ac_func;
27794 ;
27795 return 0;
27796}
27797_ACEOF
27798rm -f conftest.$ac_objext conftest$ac_exeext
27799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27800 (eval $ac_link) 2>conftest.er1
27801 ac_status=$?
27802 grep -v '^ *+' conftest.er1 >conftest.err
27803 rm -f conftest.er1
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
27807 { ac_try='test -z "$ac_c_werror_flag"
27808 || test ! -s conftest.err'
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; } &&
27814 { ac_try='test -s conftest$ac_exeext'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; }; then
27820 eval "$as_ac_var=yes"
27821else
27822 echo "$as_me: failed program was:" >&5
27823sed 's/^/| /' conftest.$ac_ext >&5
27824
27825eval "$as_ac_var=no"
27826fi
27827rm -f conftest.err conftest.$ac_objext \
27828 conftest$ac_exeext conftest.$ac_ext
27829fi
27830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27832if test `eval echo '${'$as_ac_var'}'` = yes; then
27833 cat >>confdefs.h <<_ACEOF
27834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27835_ACEOF
27836
27837fi
27838done
27839
27840
27841
27842
Reid Spencerc29b13d2005-05-14 16:42:52 +000027843
27844for ac_func in isatty mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027845do
27846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27847echo "$as_me:$LINENO: checking for $ac_func" >&5
27848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27849if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027850 echo $ECHO_N "(cached) $ECHO_C" >&6
27851else
27852 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027853/* confdefs.h. */
27854_ACEOF
27855cat confdefs.h >>conftest.$ac_ext
27856cat >>conftest.$ac_ext <<_ACEOF
27857/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27860#define $ac_func innocuous_$ac_func
27861
27862/* System header to define __stub macros and hopefully few prototypes,
27863 which can conflict with char $ac_func (); below.
27864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27865 <limits.h> exists even on freestanding compilers. */
27866
27867#ifdef __STDC__
27868# include <limits.h>
27869#else
27870# include <assert.h>
27871#endif
27872
27873#undef $ac_func
27874
27875/* Override any gcc2 internal prototype to avoid an error. */
27876#ifdef __cplusplus
27877extern "C"
27878{
27879#endif
27880/* We use char because int might match the return type of a gcc2
27881 builtin and then its argument prototype would still apply. */
27882char $ac_func ();
27883/* The GNU C library defines this for functions which it implements
27884 to always fail with ENOSYS. Some functions are actually named
27885 something starting with __ and the normal name is an alias. */
27886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27887choke me
27888#else
27889char (*f) () = $ac_func;
27890#endif
27891#ifdef __cplusplus
27892}
27893#endif
John Criswell7a73b802003-06-30 21:59:07 +000027894
John Criswell7a73b802003-06-30 21:59:07 +000027895int
27896main ()
27897{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027898return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027899 ;
27900 return 0;
27901}
27902_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027903rm -f conftest.$ac_objext conftest$ac_exeext
27904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27905 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027907 grep -v '^ *+' conftest.er1 >conftest.err
27908 rm -f conftest.er1
27909 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027912 { ac_try='test -z "$ac_c_werror_flag"
27913 || test ! -s conftest.err'
27914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27915 (eval $ac_try) 2>&5
27916 ac_status=$?
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027919 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27921 (eval $ac_try) 2>&5
27922 ac_status=$?
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027925 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027926else
27927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027928sed 's/^/| /' conftest.$ac_ext >&5
27929
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027930eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027931fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027932rm -f conftest.err conftest.$ac_objext \
27933 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027934fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27937if test `eval echo '${'$as_ac_var'}'` = yes; then
27938 cat >>confdefs.h <<_ACEOF
27939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027940_ACEOF
27941
27942fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027943done
John Criswell7a73b802003-06-30 21:59:07 +000027944
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027945
27946
27947
Reid Spencer6af3d262004-12-15 04:01:48 +000027948
27949
Reid Spencer59473af2004-12-25 07:31:29 +000027950
Reid Spencerba46ca32004-12-31 05:49:15 +000027951for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027952do
27953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27954echo "$as_me:$LINENO: checking for $ac_func" >&5
27955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27956if eval "test \"\${$as_ac_var+set}\" = set"; then
27957 echo $ECHO_N "(cached) $ECHO_C" >&6
27958else
27959 cat >conftest.$ac_ext <<_ACEOF
27960/* confdefs.h. */
27961_ACEOF
27962cat confdefs.h >>conftest.$ac_ext
27963cat >>conftest.$ac_ext <<_ACEOF
27964/* end confdefs.h. */
27965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27967#define $ac_func innocuous_$ac_func
27968
27969/* System header to define __stub macros and hopefully few prototypes,
27970 which can conflict with char $ac_func (); below.
27971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27972 <limits.h> exists even on freestanding compilers. */
27973
27974#ifdef __STDC__
27975# include <limits.h>
27976#else
27977# include <assert.h>
27978#endif
27979
27980#undef $ac_func
27981
27982/* Override any gcc2 internal prototype to avoid an error. */
27983#ifdef __cplusplus
27984extern "C"
27985{
27986#endif
27987/* We use char because int might match the return type of a gcc2
27988 builtin and then its argument prototype would still apply. */
27989char $ac_func ();
27990/* The GNU C library defines this for functions which it implements
27991 to always fail with ENOSYS. Some functions are actually named
27992 something starting with __ and the normal name is an alias. */
27993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27994choke me
27995#else
27996char (*f) () = $ac_func;
27997#endif
27998#ifdef __cplusplus
27999}
28000#endif
28001
28002int
28003main ()
28004{
28005return f != $ac_func;
28006 ;
28007 return 0;
28008}
28009_ACEOF
28010rm -f conftest.$ac_objext conftest$ac_exeext
28011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28012 (eval $ac_link) 2>conftest.er1
28013 ac_status=$?
28014 grep -v '^ *+' conftest.er1 >conftest.err
28015 rm -f conftest.er1
28016 cat conftest.err >&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } &&
28019 { ac_try='test -z "$ac_c_werror_flag"
28020 || test ! -s conftest.err'
28021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022 (eval $ac_try) 2>&5
28023 ac_status=$?
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; } &&
28026 { ac_try='test -s conftest$ac_exeext'
28027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28028 (eval $ac_try) 2>&5
28029 ac_status=$?
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; }; then
28032 eval "$as_ac_var=yes"
28033else
28034 echo "$as_me: failed program was:" >&5
28035sed 's/^/| /' conftest.$ac_ext >&5
28036
28037eval "$as_ac_var=no"
28038fi
28039rm -f conftest.err conftest.$ac_objext \
28040 conftest$ac_exeext conftest.$ac_ext
28041fi
28042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28044if test `eval echo '${'$as_ac_var'}'` = yes; then
28045 cat >>confdefs.h <<_ACEOF
28046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28047_ACEOF
28048
28049fi
28050done
28051
28052
Reid Spencerba46ca32004-12-31 05:49:15 +000028053
28054
Chris Lattner0b142592005-11-14 06:57:34 +000028055
Chris Lattner511f11d2005-11-14 07:25:50 +000028056for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028057do
28058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28059echo "$as_me:$LINENO: checking for $ac_func" >&5
28060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28061if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028062 echo $ECHO_N "(cached) $ECHO_C" >&6
28063else
28064 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028065/* confdefs.h. */
28066_ACEOF
28067cat confdefs.h >>conftest.$ac_ext
28068cat >>conftest.$ac_ext <<_ACEOF
28069/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28072#define $ac_func innocuous_$ac_func
28073
28074/* System header to define __stub macros and hopefully few prototypes,
28075 which can conflict with char $ac_func (); below.
28076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28077 <limits.h> exists even on freestanding compilers. */
28078
28079#ifdef __STDC__
28080# include <limits.h>
28081#else
28082# include <assert.h>
28083#endif
28084
28085#undef $ac_func
28086
28087/* Override any gcc2 internal prototype to avoid an error. */
28088#ifdef __cplusplus
28089extern "C"
28090{
28091#endif
28092/* We use char because int might match the return type of a gcc2
28093 builtin and then its argument prototype would still apply. */
28094char $ac_func ();
28095/* The GNU C library defines this for functions which it implements
28096 to always fail with ENOSYS. Some functions are actually named
28097 something starting with __ and the normal name is an alias. */
28098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28099choke me
28100#else
28101char (*f) () = $ac_func;
28102#endif
28103#ifdef __cplusplus
28104}
28105#endif
John Criswell7a73b802003-06-30 21:59:07 +000028106
John Criswell7a73b802003-06-30 21:59:07 +000028107int
28108main ()
28109{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028110return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028111 ;
28112 return 0;
28113}
28114_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028115rm -f conftest.$ac_objext conftest$ac_exeext
28116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28117 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028118 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028119 grep -v '^ *+' conftest.er1 >conftest.err
28120 rm -f conftest.er1
28121 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028124 { ac_try='test -z "$ac_c_werror_flag"
28125 || test ! -s conftest.err'
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28128 ac_status=$?
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028131 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28134 ac_status=$?
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028137 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028138else
28139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028140sed 's/^/| /' conftest.$ac_ext >&5
28141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028142eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028143fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028144rm -f conftest.err conftest.$ac_objext \
28145 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028146fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28148echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28149if test `eval echo '${'$as_ac_var'}'` = yes; then
28150 cat >>confdefs.h <<_ACEOF
28151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028152_ACEOF
28153
28154fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028155done
John Criswell7a73b802003-06-30 21:59:07 +000028156
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028157echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28158echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028159if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028160 echo $ECHO_N "(cached) $ECHO_C" >&6
28161else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028162 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028163ac_cpp='$CPP $CPPFLAGS'
28164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28166ac_compiler_gnu=$ac_cv_c_compiler_gnu
28167
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028168 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028169 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028170else
28171 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028172
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028173 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028174_ACEOF
28175cat confdefs.h >>conftest.$ac_ext
28176cat >>conftest.$ac_ext <<_ACEOF
28177/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028178
John Criswella0137d32003-10-13 16:22:01 +000028179#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028180#include <stdlib.h>
28181
John Criswella0137d32003-10-13 16:22:01 +000028182int
28183main ()
28184{
28185
Reid Spencer2706f8c2004-09-19 23:53:36 +000028186volatile double A, B;
28187char Buffer[100];
28188A = 1;
28189A /= 10.0;
28190sprintf(Buffer, "%a", A);
28191B = atof(Buffer);
28192if (A != B)
28193 return (1);
28194if (A != 0x1.999999999999ap-4)
28195 return (1);
28196return (0);
John Criswella0137d32003-10-13 16:22:01 +000028197 ;
28198 return 0;
28199}
28200_ACEOF
28201rm -f conftest$ac_exeext
28202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28203 (eval $ac_link) 2>&5
28204 ac_status=$?
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028212 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028213else
28214 echo "$as_me: program exited with status $ac_status" >&5
28215echo "$as_me: failed program was:" >&5
28216sed 's/^/| /' conftest.$ac_ext >&5
28217
28218( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028219llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028220fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028221rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028222fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028223 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028224ac_cpp='$CPP $CPPFLAGS'
28225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28227ac_compiler_gnu=$ac_cv_c_compiler_gnu
28228
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028229fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028230echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28231echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28232 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028233
28234cat >>confdefs.h <<\_ACEOF
28235#define HAVE_PRINTF_A 1
28236_ACEOF
28237
Reid Spencer2706f8c2004-09-19 23:53:36 +000028238 fi
John Criswella0137d32003-10-13 16:22:01 +000028239
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028240# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28241# for constant arguments. Useless!
28242echo "$as_me:$LINENO: checking for working alloca.h" >&5
28243echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28244if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028245 echo $ECHO_N "(cached) $ECHO_C" >&6
28246else
John Criswell0021c312004-02-13 21:57:29 +000028247 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028248/* confdefs.h. */
28249_ACEOF
28250cat confdefs.h >>conftest.$ac_ext
28251cat >>conftest.$ac_ext <<_ACEOF
28252/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028253#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028254int
28255main ()
28256{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028257char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028258 ;
28259 return 0;
28260}
28261_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028262rm -f conftest.$ac_objext conftest$ac_exeext
28263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28264 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028265 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028266 grep -v '^ *+' conftest.er1 >conftest.err
28267 rm -f conftest.er1
28268 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028271 { ac_try='test -z "$ac_c_werror_flag"
28272 || test ! -s conftest.err'
28273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28274 (eval $ac_try) 2>&5
28275 ac_status=$?
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028278 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280 (eval $ac_try) 2>&5
28281 ac_status=$?
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028284 ac_cv_working_alloca_h=yes
28285else
28286 echo "$as_me: failed program was:" >&5
28287sed 's/^/| /' conftest.$ac_ext >&5
28288
28289ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028290fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028291rm -f conftest.err conftest.$ac_objext \
28292 conftest$ac_exeext conftest.$ac_ext
28293fi
28294echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28295echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28296if test $ac_cv_working_alloca_h = yes; then
28297
28298cat >>confdefs.h <<\_ACEOF
28299#define HAVE_ALLOCA_H 1
28300_ACEOF
28301
28302fi
28303
28304echo "$as_me:$LINENO: checking for alloca" >&5
28305echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28306if test "${ac_cv_func_alloca_works+set}" = set; then
28307 echo $ECHO_N "(cached) $ECHO_C" >&6
28308else
28309 cat >conftest.$ac_ext <<_ACEOF
28310/* confdefs.h. */
28311_ACEOF
28312cat confdefs.h >>conftest.$ac_ext
28313cat >>conftest.$ac_ext <<_ACEOF
28314/* end confdefs.h. */
28315#ifdef __GNUC__
28316# define alloca __builtin_alloca
28317#else
28318# ifdef _MSC_VER
28319# include <malloc.h>
28320# define alloca _alloca
28321# else
28322# if HAVE_ALLOCA_H
28323# include <alloca.h>
28324# else
28325# ifdef _AIX
28326 #pragma alloca
28327# else
28328# ifndef alloca /* predefined by HP cc +Olibcalls */
28329char *alloca ();
28330# endif
28331# endif
28332# endif
28333# endif
28334#endif
28335
28336int
28337main ()
28338{
28339char *p = (char *) alloca (1);
28340 ;
28341 return 0;
28342}
28343_ACEOF
28344rm -f conftest.$ac_objext conftest$ac_exeext
28345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28346 (eval $ac_link) 2>conftest.er1
28347 ac_status=$?
28348 grep -v '^ *+' conftest.er1 >conftest.err
28349 rm -f conftest.er1
28350 cat conftest.err >&5
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } &&
28353 { ac_try='test -z "$ac_c_werror_flag"
28354 || test ! -s conftest.err'
28355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356 (eval $ac_try) 2>&5
28357 ac_status=$?
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); }; } &&
28360 { ac_try='test -s conftest$ac_exeext'
28361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28362 (eval $ac_try) 2>&5
28363 ac_status=$?
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); }; }; then
28366 ac_cv_func_alloca_works=yes
28367else
28368 echo "$as_me: failed program was:" >&5
28369sed 's/^/| /' conftest.$ac_ext >&5
28370
28371ac_cv_func_alloca_works=no
28372fi
28373rm -f conftest.err conftest.$ac_objext \
28374 conftest$ac_exeext conftest.$ac_ext
28375fi
28376echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28377echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28378
28379if test $ac_cv_func_alloca_works = yes; then
28380
28381cat >>confdefs.h <<\_ACEOF
28382#define HAVE_ALLOCA 1
28383_ACEOF
28384
28385else
28386 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28387# that cause trouble. Some versions do not even contain alloca or
28388# contain a buggy version. If you still want to use their alloca,
28389# use ar to extract alloca.o from them instead of compiling alloca.c.
28390
28391ALLOCA=alloca.$ac_objext
28392
28393cat >>confdefs.h <<\_ACEOF
28394#define C_ALLOCA 1
28395_ACEOF
28396
28397
28398echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28399echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28400if test "${ac_cv_os_cray+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28402else
28403 cat >conftest.$ac_ext <<_ACEOF
28404/* confdefs.h. */
28405_ACEOF
28406cat confdefs.h >>conftest.$ac_ext
28407cat >>conftest.$ac_ext <<_ACEOF
28408/* end confdefs.h. */
28409#if defined(CRAY) && ! defined(CRAY2)
28410webecray
28411#else
28412wenotbecray
28413#endif
28414
28415_ACEOF
28416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28417 $EGREP "webecray" >/dev/null 2>&1; then
28418 ac_cv_os_cray=yes
28419else
28420 ac_cv_os_cray=no
28421fi
28422rm -f conftest*
28423
28424fi
28425echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28426echo "${ECHO_T}$ac_cv_os_cray" >&6
28427if test $ac_cv_os_cray = yes; then
28428 for ac_func in _getb67 GETB67 getb67; do
28429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28430echo "$as_me:$LINENO: checking for $ac_func" >&5
28431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28432if eval "test \"\${$as_ac_var+set}\" = set"; then
28433 echo $ECHO_N "(cached) $ECHO_C" >&6
28434else
28435 cat >conftest.$ac_ext <<_ACEOF
28436/* confdefs.h. */
28437_ACEOF
28438cat confdefs.h >>conftest.$ac_ext
28439cat >>conftest.$ac_ext <<_ACEOF
28440/* end confdefs.h. */
28441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28443#define $ac_func innocuous_$ac_func
28444
28445/* System header to define __stub macros and hopefully few prototypes,
28446 which can conflict with char $ac_func (); below.
28447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28448 <limits.h> exists even on freestanding compilers. */
28449
28450#ifdef __STDC__
28451# include <limits.h>
28452#else
28453# include <assert.h>
28454#endif
28455
28456#undef $ac_func
28457
28458/* Override any gcc2 internal prototype to avoid an error. */
28459#ifdef __cplusplus
28460extern "C"
28461{
28462#endif
28463/* We use char because int might match the return type of a gcc2
28464 builtin and then its argument prototype would still apply. */
28465char $ac_func ();
28466/* The GNU C library defines this for functions which it implements
28467 to always fail with ENOSYS. Some functions are actually named
28468 something starting with __ and the normal name is an alias. */
28469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28470choke me
28471#else
28472char (*f) () = $ac_func;
28473#endif
28474#ifdef __cplusplus
28475}
28476#endif
28477
28478int
28479main ()
28480{
28481return f != $ac_func;
28482 ;
28483 return 0;
28484}
28485_ACEOF
28486rm -f conftest.$ac_objext conftest$ac_exeext
28487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28488 (eval $ac_link) 2>conftest.er1
28489 ac_status=$?
28490 grep -v '^ *+' conftest.er1 >conftest.err
28491 rm -f conftest.er1
28492 cat conftest.err >&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); } &&
28495 { ac_try='test -z "$ac_c_werror_flag"
28496 || test ! -s conftest.err'
28497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28498 (eval $ac_try) 2>&5
28499 ac_status=$?
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); }; } &&
28502 { ac_try='test -s conftest$ac_exeext'
28503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504 (eval $ac_try) 2>&5
28505 ac_status=$?
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; }; then
28508 eval "$as_ac_var=yes"
28509else
28510 echo "$as_me: failed program was:" >&5
28511sed 's/^/| /' conftest.$ac_ext >&5
28512
28513eval "$as_ac_var=no"
28514fi
28515rm -f conftest.err conftest.$ac_objext \
28516 conftest$ac_exeext conftest.$ac_ext
28517fi
28518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28520if test `eval echo '${'$as_ac_var'}'` = yes; then
28521
28522cat >>confdefs.h <<_ACEOF
28523#define CRAY_STACKSEG_END $ac_func
28524_ACEOF
28525
28526 break
28527fi
28528
28529 done
28530fi
28531
28532echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28533echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28534if test "${ac_cv_c_stack_direction+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28536else
28537 if test "$cross_compiling" = yes; then
28538 ac_cv_c_stack_direction=0
28539else
28540 cat >conftest.$ac_ext <<_ACEOF
28541/* confdefs.h. */
28542_ACEOF
28543cat confdefs.h >>conftest.$ac_ext
28544cat >>conftest.$ac_ext <<_ACEOF
28545/* end confdefs.h. */
28546int
28547find_stack_direction ()
28548{
28549 static char *addr = 0;
28550 auto char dummy;
28551 if (addr == 0)
28552 {
28553 addr = &dummy;
28554 return find_stack_direction ();
28555 }
John Criswell0021c312004-02-13 21:57:29 +000028556 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028557 return (&dummy > addr) ? 1 : -1;
28558}
John Criswell0021c312004-02-13 21:57:29 +000028559
John Criswell0021c312004-02-13 21:57:29 +000028560int
28561main ()
28562{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028563 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028564}
28565_ACEOF
28566rm -f conftest$ac_exeext
28567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28568 (eval $ac_link) 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573 (eval $ac_try) 2>&5
28574 ac_status=$?
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028577 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028578else
28579 echo "$as_me: program exited with status $ac_status" >&5
28580echo "$as_me: failed program was:" >&5
28581sed 's/^/| /' conftest.$ac_ext >&5
28582
28583( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028584ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028585fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028586rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028587fi
28588fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028589echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28590echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28591
28592cat >>confdefs.h <<_ACEOF
28593#define STACK_DIRECTION $ac_cv_c_stack_direction
28594_ACEOF
28595
28596
John Criswell0021c312004-02-13 21:57:29 +000028597fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028598
28599
28600echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28601echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28602if test "${ac_cv_func_rand48+set}" = set; then
28603 echo $ECHO_N "(cached) $ECHO_C" >&6
28604else
28605 ac_ext=cc
28606ac_cpp='$CXXCPP $CPPFLAGS'
28607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28610
28611 cat >conftest.$ac_ext <<_ACEOF
28612/* confdefs.h. */
28613_ACEOF
28614cat confdefs.h >>conftest.$ac_ext
28615cat >>conftest.$ac_ext <<_ACEOF
28616/* end confdefs.h. */
28617#include <stdlib.h>
28618int
28619main ()
28620{
28621srand48(0);lrand48();drand48();
28622 ;
28623 return 0;
28624}
28625_ACEOF
28626rm -f conftest.$ac_objext
28627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28628 (eval $ac_compile) 2>conftest.er1
28629 ac_status=$?
28630 grep -v '^ *+' conftest.er1 >conftest.err
28631 rm -f conftest.er1
28632 cat conftest.err >&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); } &&
28635 { ac_try='test -z "$ac_cxx_werror_flag"
28636 || test ! -s conftest.err'
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; } &&
28642 { ac_try='test -s conftest.$ac_objext'
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
28648 ac_cv_func_rand48=yes
28649else
28650 echo "$as_me: failed program was:" >&5
28651sed 's/^/| /' conftest.$ac_ext >&5
28652
28653ac_cv_func_rand48=no
28654fi
28655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28656 ac_ext=c
28657ac_cpp='$CPP $CPPFLAGS'
28658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28660ac_compiler_gnu=$ac_cv_c_compiler_gnu
28661
28662fi
28663echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28664echo "${ECHO_T}$ac_cv_func_rand48" >&6
28665
28666if test "$ac_cv_func_rand48" = "yes" ; then
28667
28668cat >>confdefs.h <<\_ACEOF
28669#define HAVE_RAND48 1
28670_ACEOF
28671
28672fi
John Criswell0021c312004-02-13 21:57:29 +000028673
28674
John Criswell7a73b802003-06-30 21:59:07 +000028675echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28676echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28677if test "${ac_cv_cxx_namespaces+set}" = set; then
28678 echo $ECHO_N "(cached) $ECHO_C" >&6
28679else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028680 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028681ac_cpp='$CXXCPP $CPPFLAGS'
28682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28685
28686 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028687/* confdefs.h. */
28688_ACEOF
28689cat confdefs.h >>conftest.$ac_ext
28690cat >>conftest.$ac_ext <<_ACEOF
28691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028692namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028693int
28694main ()
28695{
28696using namespace Outer::Inner; return i;
28697 ;
28698 return 0;
28699}
28700_ACEOF
28701rm -f conftest.$ac_objext
28702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028703 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028704 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028705 grep -v '^ *+' conftest.er1 >conftest.err
28706 rm -f conftest.er1
28707 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028710 { ac_try='test -z "$ac_cxx_werror_flag"
28711 || test ! -s conftest.err'
28712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28714 ac_status=$?
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; } &&
28717 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719 (eval $ac_try) 2>&5
28720 ac_status=$?
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); }; }; then
28723 ac_cv_cxx_namespaces=yes
28724else
28725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028726sed 's/^/| /' conftest.$ac_ext >&5
28727
John Criswell7a73b802003-06-30 21:59:07 +000028728ac_cv_cxx_namespaces=no
28729fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028731 ac_ext=c
28732ac_cpp='$CPP $CPPFLAGS'
28733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28735ac_compiler_gnu=$ac_cv_c_compiler_gnu
28736
28737
28738fi
28739echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28740echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28741if test "$ac_cv_cxx_namespaces" = yes; then
28742
28743cat >>confdefs.h <<\_ACEOF
28744#define HAVE_NAMESPACES
28745_ACEOF
28746
28747fi
28748
Brian Gaeke90583492003-11-10 03:06:28 +000028749echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28750echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28751if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028752 echo $ECHO_N "(cached) $ECHO_C" >&6
28753else
28754
John Criswell7a73b802003-06-30 21:59:07 +000028755 ac_ext=cc
28756ac_cpp='$CXXCPP $CPPFLAGS'
28757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28760
28761 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028762/* confdefs.h. */
28763_ACEOF
28764cat confdefs.h >>conftest.$ac_ext
28765cat >>conftest.$ac_ext <<_ACEOF
28766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028767#include <ext/hash_map>
28768#ifdef HAVE_NAMESPACES
28769using namespace std;
28770#endif
John Criswell7a73b802003-06-30 21:59:07 +000028771int
28772main ()
28773{
Brian Gaeke90583492003-11-10 03:06:28 +000028774hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028775 ;
28776 return 0;
28777}
28778_ACEOF
28779rm -f conftest.$ac_objext
28780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028781 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028782 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028783 grep -v '^ *+' conftest.er1 >conftest.err
28784 rm -f conftest.er1
28785 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028788 { ac_try='test -z "$ac_cxx_werror_flag"
28789 || test ! -s conftest.err'
28790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791 (eval $ac_try) 2>&5
28792 ac_status=$?
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); }; } &&
28795 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028801 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028802else
28803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028804sed 's/^/| /' conftest.$ac_ext >&5
28805
Brian Gaeke90583492003-11-10 03:06:28 +000028806ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028807fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028809 ac_ext=c
28810ac_cpp='$CPP $CPPFLAGS'
28811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28813ac_compiler_gnu=$ac_cv_c_compiler_gnu
28814
John Criswell7a73b802003-06-30 21:59:07 +000028815fi
Brian Gaeke90583492003-11-10 03:06:28 +000028816echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28817echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028818 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28819 then
John Criswell9f011862004-09-24 18:28:00 +000028820
28821cat >>confdefs.h <<\_ACEOF
28822#define HAVE_STD_EXT_HASH_MAP 1
28823_ACEOF
28824
28825 else
28826
28827cat >>confdefs.h <<\_ACEOF
28828#define HAVE_STD_EXT_HASH_MAP 0
28829_ACEOF
28830
Brian Gaeke90583492003-11-10 03:06:28 +000028831 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028832
Brian Gaeke90583492003-11-10 03:06:28 +000028833 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28834echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28835if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28837else
28838
Brian Gaeke90583492003-11-10 03:06:28 +000028839 ac_ext=cc
28840ac_cpp='$CXXCPP $CPPFLAGS'
28841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28844
28845 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028846/* confdefs.h. */
28847_ACEOF
28848cat confdefs.h >>conftest.$ac_ext
28849cat >>conftest.$ac_ext <<_ACEOF
28850/* end confdefs.h. */
28851#include <ext/hash_map>
28852#ifdef HAVE_NAMESPACES
28853using namespace __gnu_cxx;
28854#endif
28855int
28856main ()
28857{
28858hash_map<int,int> t;
28859 ;
28860 return 0;
28861}
28862_ACEOF
28863rm -f conftest.$ac_objext
28864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028865 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028867 grep -v '^ *+' conftest.er1 >conftest.err
28868 rm -f conftest.er1
28869 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028872 { ac_try='test -z "$ac_cxx_werror_flag"
28873 || test ! -s conftest.err'
28874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875 (eval $ac_try) 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28882 ac_status=$?
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; }; then
28885 ac_cv_cxx_have_gnu_ext_hash_map=yes
28886else
28887 echo "$as_me: failed program was:" >&5
28888sed 's/^/| /' conftest.$ac_ext >&5
28889
28890ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028891fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028893 ac_ext=c
28894ac_cpp='$CPP $CPPFLAGS'
28895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28897ac_compiler_gnu=$ac_cv_c_compiler_gnu
28898
28899fi
28900echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28901echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028902 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28903 then
John Criswell9f011862004-09-24 18:28:00 +000028904
28905cat >>confdefs.h <<\_ACEOF
28906#define HAVE_GNU_EXT_HASH_MAP 1
28907_ACEOF
28908
28909 else
28910
28911cat >>confdefs.h <<\_ACEOF
28912#define HAVE_GNU_EXT_HASH_MAP 0
28913_ACEOF
28914
Brian Gaeke90583492003-11-10 03:06:28 +000028915 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028916
Brian Gaeke90583492003-11-10 03:06:28 +000028917 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28918echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28919if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28920 echo $ECHO_N "(cached) $ECHO_C" >&6
28921else
John Criswell7a73b802003-06-30 21:59:07 +000028922
Brian Gaeke90583492003-11-10 03:06:28 +000028923 ac_ext=cc
28924ac_cpp='$CXXCPP $CPPFLAGS'
28925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28928
28929 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028930/* confdefs.h. */
28931_ACEOF
28932cat confdefs.h >>conftest.$ac_ext
28933cat >>conftest.$ac_ext <<_ACEOF
28934/* end confdefs.h. */
28935#include <hash_map>
28936int
28937main ()
28938{
28939hash_map<int,int> t;
28940 ;
28941 return 0;
28942}
28943_ACEOF
28944rm -f conftest.$ac_objext
28945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028946 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028947 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028948 grep -v '^ *+' conftest.er1 >conftest.err
28949 rm -f conftest.er1
28950 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028953 { ac_try='test -z "$ac_cxx_werror_flag"
28954 || test ! -s conftest.err'
28955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28956 (eval $ac_try) 2>&5
28957 ac_status=$?
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; } &&
28960 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28962 (eval $ac_try) 2>&5
28963 ac_status=$?
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); }; }; then
28966 ac_cv_cxx_have_global_hash_map=yes
28967else
28968 echo "$as_me: failed program was:" >&5
28969sed 's/^/| /' conftest.$ac_ext >&5
28970
28971ac_cv_cxx_have_global_hash_map=no
28972fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028974 ac_ext=c
28975ac_cpp='$CPP $CPPFLAGS'
28976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28978ac_compiler_gnu=$ac_cv_c_compiler_gnu
28979
28980fi
28981echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28982echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028983 if test "$ac_cv_cxx_have_global_hash_map" = yes
28984 then
John Criswell9f011862004-09-24 18:28:00 +000028985
28986cat >>confdefs.h <<\_ACEOF
28987#define HAVE_GLOBAL_HASH_MAP 1
28988_ACEOF
28989
28990 else
28991
28992cat >>confdefs.h <<\_ACEOF
28993#define HAVE_GLOBAL_HASH_MAP 0
28994_ACEOF
28995
Brian Gaeke90583492003-11-10 03:06:28 +000028996 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028997
Brian Gaeke90583492003-11-10 03:06:28 +000028998echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28999echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29000if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029001 echo $ECHO_N "(cached) $ECHO_C" >&6
29002else
29003
John Criswell7a73b802003-06-30 21:59:07 +000029004 ac_ext=cc
29005ac_cpp='$CXXCPP $CPPFLAGS'
29006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29009
29010 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029011/* confdefs.h. */
29012_ACEOF
29013cat confdefs.h >>conftest.$ac_ext
29014cat >>conftest.$ac_ext <<_ACEOF
29015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029016#include <ext/hash_set>
29017#ifdef HAVE_NAMESPACES
29018using namespace std;
29019#endif
John Criswell7a73b802003-06-30 21:59:07 +000029020int
29021main ()
29022{
Brian Gaeke90583492003-11-10 03:06:28 +000029023hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029024 ;
29025 return 0;
29026}
29027_ACEOF
29028rm -f conftest.$ac_objext
29029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029030 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029031 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029032 grep -v '^ *+' conftest.er1 >conftest.err
29033 rm -f conftest.er1
29034 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029037 { ac_try='test -z "$ac_cxx_werror_flag"
29038 || test ! -s conftest.err'
29039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29040 (eval $ac_try) 2>&5
29041 ac_status=$?
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); }; } &&
29044 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29046 (eval $ac_try) 2>&5
29047 ac_status=$?
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029050 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029051else
29052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029053sed 's/^/| /' conftest.$ac_ext >&5
29054
Brian Gaeke90583492003-11-10 03:06:28 +000029055ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029056fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029058 ac_ext=c
29059ac_cpp='$CPP $CPPFLAGS'
29060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29062ac_compiler_gnu=$ac_cv_c_compiler_gnu
29063
29064fi
29065echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29066echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029067 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29068 then
John Criswell9f011862004-09-24 18:28:00 +000029069
29070cat >>confdefs.h <<\_ACEOF
29071#define HAVE_STD_EXT_HASH_SET 1
29072_ACEOF
29073
29074 else
29075
29076cat >>confdefs.h <<\_ACEOF
29077#define HAVE_STD_EXT_HASH_SET 0
29078_ACEOF
29079
Brian Gaeke90583492003-11-10 03:06:28 +000029080 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029081
Brian Gaeke90583492003-11-10 03:06:28 +000029082 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29083echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29084if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29085 echo $ECHO_N "(cached) $ECHO_C" >&6
29086else
29087
Brian Gaeke90583492003-11-10 03:06:28 +000029088 ac_ext=cc
29089ac_cpp='$CXXCPP $CPPFLAGS'
29090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29093
John Criswell7a73b802003-06-30 21:59:07 +000029094 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029095/* confdefs.h. */
29096_ACEOF
29097cat confdefs.h >>conftest.$ac_ext
29098cat >>conftest.$ac_ext <<_ACEOF
29099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029100#include <ext/hash_set>
29101#ifdef HAVE_NAMESPACES
29102using namespace __gnu_cxx;
29103#endif
John Criswell7a73b802003-06-30 21:59:07 +000029104int
29105main ()
29106{
Brian Gaeke90583492003-11-10 03:06:28 +000029107hash_set<int> t;
29108 ;
29109 return 0;
29110}
29111_ACEOF
29112rm -f conftest.$ac_objext
29113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029114 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029115 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029121 { ac_try='test -z "$ac_cxx_werror_flag"
29122 || test ! -s conftest.err'
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29125 ac_status=$?
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; }; then
29134 ac_cv_cxx_have_gnu_ext_hash_set=yes
29135else
29136 echo "$as_me: failed program was:" >&5
29137sed 's/^/| /' conftest.$ac_ext >&5
29138
29139ac_cv_cxx_have_gnu_ext_hash_set=no
29140fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029142 ac_ext=c
29143ac_cpp='$CPP $CPPFLAGS'
29144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29146ac_compiler_gnu=$ac_cv_c_compiler_gnu
29147
29148fi
29149echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29150echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029151 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29152 then
John Criswell9f011862004-09-24 18:28:00 +000029153
29154cat >>confdefs.h <<\_ACEOF
29155#define HAVE_GNU_EXT_HASH_SET 1
29156_ACEOF
29157
29158 else
29159
29160cat >>confdefs.h <<\_ACEOF
29161#define HAVE_GNU_EXT_HASH_SET 0
29162_ACEOF
29163
Brian Gaeke90583492003-11-10 03:06:28 +000029164 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029165
Brian Gaeke90583492003-11-10 03:06:28 +000029166 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29167echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29168if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29170else
29171
Brian Gaeke90583492003-11-10 03:06:28 +000029172 ac_ext=cc
29173ac_cpp='$CXXCPP $CPPFLAGS'
29174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29177
29178 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029179/* confdefs.h. */
29180_ACEOF
29181cat confdefs.h >>conftest.$ac_ext
29182cat >>conftest.$ac_ext <<_ACEOF
29183/* end confdefs.h. */
29184#include <hash_set>
29185int
29186main ()
29187{
John Criswell7a73b802003-06-30 21:59:07 +000029188hash_set<int> t; return 0;
29189 ;
29190 return 0;
29191}
29192_ACEOF
29193rm -f conftest.$ac_objext
29194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029195 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029196 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029197 grep -v '^ *+' conftest.er1 >conftest.err
29198 rm -f conftest.er1
29199 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029202 { ac_try='test -z "$ac_cxx_werror_flag"
29203 || test ! -s conftest.err'
29204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205 (eval $ac_try) 2>&5
29206 ac_status=$?
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); }; } &&
29209 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211 (eval $ac_try) 2>&5
29212 ac_status=$?
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029215 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029216else
29217 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029218sed 's/^/| /' conftest.$ac_ext >&5
29219
Brian Gaeke90583492003-11-10 03:06:28 +000029220ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029221fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029223 ac_ext=c
29224ac_cpp='$CPP $CPPFLAGS'
29225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29227ac_compiler_gnu=$ac_cv_c_compiler_gnu
29228
John Criswell7a73b802003-06-30 21:59:07 +000029229fi
Brian Gaeke90583492003-11-10 03:06:28 +000029230echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29231echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029232 if test "$ac_cv_cxx_have_global_hash_set" = yes
29233 then
John Criswell9f011862004-09-24 18:28:00 +000029234
29235cat >>confdefs.h <<\_ACEOF
29236#define HAVE_GLOBAL_HASH_SET 1
29237_ACEOF
29238
29239 else
29240
29241cat >>confdefs.h <<\_ACEOF
29242#define HAVE_GLOBAL_HASH_SET 0
29243_ACEOF
29244
Brian Gaeke90583492003-11-10 03:06:28 +000029245 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029246
John Criswell7a73b802003-06-30 21:59:07 +000029247echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29248echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29249if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29250 echo $ECHO_N "(cached) $ECHO_C" >&6
29251else
29252
John Criswell7a73b802003-06-30 21:59:07 +000029253 ac_ext=cc
29254ac_cpp='$CXXCPP $CPPFLAGS'
29255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29258
29259 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029260/* confdefs.h. */
29261_ACEOF
29262cat confdefs.h >>conftest.$ac_ext
29263cat >>conftest.$ac_ext <<_ACEOF
29264/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029265#include <iterator>
29266#ifdef HAVE_NAMESPACES
29267using namespace std;
29268#endif
John Criswell7a73b802003-06-30 21:59:07 +000029269int
29270main ()
29271{
29272iterator<int,int,int> t; return 0;
29273 ;
29274 return 0;
29275}
29276_ACEOF
29277rm -f conftest.$ac_objext
29278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029279 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029280 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029281 grep -v '^ *+' conftest.er1 >conftest.err
29282 rm -f conftest.er1
29283 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029286 { ac_try='test -z "$ac_cxx_werror_flag"
29287 || test ! -s conftest.err'
29288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29289 (eval $ac_try) 2>&5
29290 ac_status=$?
29291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 (exit $ac_status); }; } &&
29293 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29295 (eval $ac_try) 2>&5
29296 ac_status=$?
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); }; }; then
29299 ac_cv_cxx_have_std_iterator=yes
29300else
29301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029302sed 's/^/| /' conftest.$ac_ext >&5
29303
John Criswell7a73b802003-06-30 21:59:07 +000029304ac_cv_cxx_have_std_iterator=no
29305fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029307 ac_ext=c
29308ac_cpp='$CPP $CPPFLAGS'
29309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29311ac_compiler_gnu=$ac_cv_c_compiler_gnu
29312
29313
29314fi
29315echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29316echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029317if test "$ac_cv_cxx_have_std_iterator" = yes
29318then
John Criswell40468462004-09-24 21:19:06 +000029319
29320cat >>confdefs.h <<\_ACEOF
29321#define HAVE_STD_ITERATOR 1
29322_ACEOF
29323
29324else
29325
29326cat >>confdefs.h <<\_ACEOF
29327#define HAVE_STD_ITERATOR 0
29328_ACEOF
29329
John Criswell7a73b802003-06-30 21:59:07 +000029330fi
29331
29332echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29333echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29334if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29335 echo $ECHO_N "(cached) $ECHO_C" >&6
29336else
29337
John Criswell7a73b802003-06-30 21:59:07 +000029338 ac_ext=cc
29339ac_cpp='$CXXCPP $CPPFLAGS'
29340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29343
29344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029345/* confdefs.h. */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029350#include <iterator>
29351#ifdef HAVE_NAMESPACES
29352using namespace std;
29353#endif
John Criswell7a73b802003-06-30 21:59:07 +000029354int
29355main ()
29356{
John Criswellc78022e2003-07-29 19:11:58 +000029357bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029358 ;
29359 return 0;
29360}
29361_ACEOF
29362rm -f conftest.$ac_objext
29363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029364 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029366 grep -v '^ *+' conftest.er1 >conftest.err
29367 rm -f conftest.er1
29368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029371 { ac_try='test -z "$ac_cxx_werror_flag"
29372 || test ! -s conftest.err'
29373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29374 (eval $ac_try) 2>&5
29375 ac_status=$?
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); }; } &&
29378 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380 (eval $ac_try) 2>&5
29381 ac_status=$?
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); }; }; then
29384 ac_cv_cxx_have_bi_iterator=yes
29385else
29386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029387sed 's/^/| /' conftest.$ac_ext >&5
29388
John Criswell7a73b802003-06-30 21:59:07 +000029389ac_cv_cxx_have_bi_iterator=no
29390fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029392 ac_ext=c
29393ac_cpp='$CPP $CPPFLAGS'
29394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29396ac_compiler_gnu=$ac_cv_c_compiler_gnu
29397
29398
29399fi
29400echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29401echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029402if test "$ac_cv_cxx_have_bi_iterator" = yes
29403then
John Criswell40468462004-09-24 21:19:06 +000029404
29405cat >>confdefs.h <<\_ACEOF
29406#define HAVE_BI_ITERATOR 1
29407_ACEOF
29408
29409else
29410
29411cat >>confdefs.h <<\_ACEOF
29412#define HAVE_BI_ITERATOR 0
29413_ACEOF
29414
John Criswell7a73b802003-06-30 21:59:07 +000029415fi
29416
29417echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29418echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29419if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421else
29422
John Criswell7a73b802003-06-30 21:59:07 +000029423 ac_ext=cc
29424ac_cpp='$CXXCPP $CPPFLAGS'
29425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29428
29429 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029430/* confdefs.h. */
29431_ACEOF
29432cat confdefs.h >>conftest.$ac_ext
29433cat >>conftest.$ac_ext <<_ACEOF
29434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029435#include <iterator>
29436#ifdef HAVE_NAMESPACES
29437using namespace std;
29438#endif
John Criswell7a73b802003-06-30 21:59:07 +000029439int
29440main ()
29441{
John Criswellc78022e2003-07-29 19:11:58 +000029442forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029443 ;
29444 return 0;
29445}
29446_ACEOF
29447rm -f conftest.$ac_objext
29448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029449 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029450 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029451 grep -v '^ *+' conftest.er1 >conftest.err
29452 rm -f conftest.er1
29453 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029456 { ac_try='test -z "$ac_cxx_werror_flag"
29457 || test ! -s conftest.err'
29458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459 (eval $ac_try) 2>&5
29460 ac_status=$?
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; } &&
29463 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465 (eval $ac_try) 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; }; then
29469 ac_cv_cxx_have_fwd_iterator=yes
29470else
29471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029472sed 's/^/| /' conftest.$ac_ext >&5
29473
John Criswell7a73b802003-06-30 21:59:07 +000029474ac_cv_cxx_have_fwd_iterator=no
29475fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029477 ac_ext=c
29478ac_cpp='$CPP $CPPFLAGS'
29479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29481ac_compiler_gnu=$ac_cv_c_compiler_gnu
29482
29483
29484fi
29485echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29486echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029487if test "$ac_cv_cxx_have_fwd_iterator" = yes
29488then
John Criswell40468462004-09-24 21:19:06 +000029489
29490cat >>confdefs.h <<\_ACEOF
29491#define HAVE_FWD_ITERATOR 1
29492_ACEOF
29493
29494else
29495
29496cat >>confdefs.h <<\_ACEOF
29497#define HAVE_FWD_ITERATOR 0
29498_ACEOF
29499
John Criswell7a73b802003-06-30 21:59:07 +000029500fi
29501
29502
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029503echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29504echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29505if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29506 echo $ECHO_N "(cached) $ECHO_C" >&6
29507else
29508 ac_ext=cc
29509ac_cpp='$CXXCPP $CPPFLAGS'
29510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29513
Reid Spencerabec8f92004-10-27 23:03:44 +000029514 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029515/* confdefs.h. */
29516_ACEOF
29517cat confdefs.h >>conftest.$ac_ext
29518cat >>conftest.$ac_ext <<_ACEOF
29519/* end confdefs.h. */
29520#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029521int
29522main ()
29523{
29524float f; isnan(f);
29525 ;
29526 return 0;
29527}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029528_ACEOF
29529rm -f conftest.$ac_objext
29530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029531 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029532 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029533 grep -v '^ *+' conftest.er1 >conftest.err
29534 rm -f conftest.er1
29535 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029538 { ac_try='test -z "$ac_cxx_werror_flag"
29539 || test ! -s conftest.err'
29540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541 (eval $ac_try) 2>&5
29542 ac_status=$?
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; } &&
29545 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547 (eval $ac_try) 2>&5
29548 ac_status=$?
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); }; }; then
29551 ac_cv_func_isnan_in_math_h=yes
29552else
29553 echo "$as_me: failed program was:" >&5
29554sed 's/^/| /' conftest.$ac_ext >&5
29555
29556ac_cv_func_isnan_in_math_h=no
29557fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029559 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029560ac_cpp='$CPP $CPPFLAGS'
29561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29563ac_compiler_gnu=$ac_cv_c_compiler_gnu
29564
29565fi
29566echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29567echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029568
29569
29570if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029571
29572cat >>confdefs.h <<\_ACEOF
29573#define HAVE_ISNAN_IN_MATH_H 1
29574_ACEOF
29575
Reid Spencerabec8f92004-10-27 23:03:44 +000029576fi
29577
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029578echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29579echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29580if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29581 echo $ECHO_N "(cached) $ECHO_C" >&6
29582else
29583 ac_ext=cc
29584ac_cpp='$CXXCPP $CPPFLAGS'
29585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29588
Reid Spencerabec8f92004-10-27 23:03:44 +000029589 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029590/* confdefs.h. */
29591_ACEOF
29592cat confdefs.h >>conftest.$ac_ext
29593cat >>conftest.$ac_ext <<_ACEOF
29594/* end confdefs.h. */
29595#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029596int
29597main ()
29598{
29599float f; isnan(f);
29600 ;
29601 return 0;
29602}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029603_ACEOF
29604rm -f conftest.$ac_objext
29605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029606 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029608 grep -v '^ *+' conftest.er1 >conftest.err
29609 rm -f conftest.er1
29610 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029613 { ac_try='test -z "$ac_cxx_werror_flag"
29614 || test ! -s conftest.err'
29615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29616 (eval $ac_try) 2>&5
29617 ac_status=$?
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; } &&
29620 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622 (eval $ac_try) 2>&5
29623 ac_status=$?
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; }; then
29626 ac_cv_func_isnan_in_cmath=yes
29627else
29628 echo "$as_me: failed program was:" >&5
29629sed 's/^/| /' conftest.$ac_ext >&5
29630
29631ac_cv_func_isnan_in_cmath=no
29632fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029634 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029635ac_cpp='$CPP $CPPFLAGS'
29636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29638ac_compiler_gnu=$ac_cv_c_compiler_gnu
29639
29640fi
29641echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29642echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029643
29644if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029645
29646cat >>confdefs.h <<\_ACEOF
29647#define HAVE_ISNAN_IN_CMATH 1
29648_ACEOF
29649
Reid Spencerabec8f92004-10-27 23:03:44 +000029650fi
29651
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029652echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29653echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29654if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29656else
29657 ac_ext=cc
29658ac_cpp='$CXXCPP $CPPFLAGS'
29659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29662
Reid Spencerabec8f92004-10-27 23:03:44 +000029663 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029664/* confdefs.h. */
29665_ACEOF
29666cat confdefs.h >>conftest.$ac_ext
29667cat >>conftest.$ac_ext <<_ACEOF
29668/* end confdefs.h. */
29669#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029670int
29671main ()
29672{
29673float f; std::isnan(f);
29674 ;
29675 return 0;
29676}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029677_ACEOF
29678rm -f conftest.$ac_objext
29679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029680 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029681 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029682 grep -v '^ *+' conftest.er1 >conftest.err
29683 rm -f conftest.er1
29684 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029687 { ac_try='test -z "$ac_cxx_werror_flag"
29688 || test ! -s conftest.err'
29689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690 (eval $ac_try) 2>&5
29691 ac_status=$?
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29696 (eval $ac_try) 2>&5
29697 ac_status=$?
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); }; }; then
29700 ac_cv_func_std_isnan_in_cmath=yes
29701else
29702 echo "$as_me: failed program was:" >&5
29703sed 's/^/| /' conftest.$ac_ext >&5
29704
29705ac_cv_func_std_isnan_in_cmath=no
29706fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029708 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029709ac_cpp='$CPP $CPPFLAGS'
29710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29712ac_compiler_gnu=$ac_cv_c_compiler_gnu
29713
29714fi
29715echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29716echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029717
29718if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029719
29720cat >>confdefs.h <<\_ACEOF
29721#define HAVE_STD_ISNAN_IN_CMATH 1
29722_ACEOF
29723
Reid Spencerabec8f92004-10-27 23:03:44 +000029724fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029725
29726
Brian Gaeke52a551d2004-07-21 03:14:12 +000029727echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29728echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29729if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29731else
29732 ac_ext=cc
29733ac_cpp='$CXXCPP $CPPFLAGS'
29734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29737
Reid Spencerabec8f92004-10-27 23:03:44 +000029738 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029739/* confdefs.h. */
29740_ACEOF
29741cat confdefs.h >>conftest.$ac_ext
29742cat >>conftest.$ac_ext <<_ACEOF
29743/* end confdefs.h. */
29744#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029745int
29746main ()
29747{
29748float f; isinf(f);
29749 ;
29750 return 0;
29751}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029752_ACEOF
29753rm -f conftest.$ac_objext
29754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029755 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029756 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029757 grep -v '^ *+' conftest.er1 >conftest.err
29758 rm -f conftest.er1
29759 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029762 { ac_try='test -z "$ac_cxx_werror_flag"
29763 || test ! -s conftest.err'
29764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29765 (eval $ac_try) 2>&5
29766 ac_status=$?
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); }; } &&
29769 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29772 ac_status=$?
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29775 ac_cv_func_isinf_in_math_h=yes
29776else
29777 echo "$as_me: failed program was:" >&5
29778sed 's/^/| /' conftest.$ac_ext >&5
29779
29780ac_cv_func_isinf_in_math_h=no
29781fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029783 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029784ac_cpp='$CPP $CPPFLAGS'
29785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29787ac_compiler_gnu=$ac_cv_c_compiler_gnu
29788
29789fi
29790echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29791echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029792
29793if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029794
29795cat >>confdefs.h <<\_ACEOF
29796#define HAVE_ISINF_IN_MATH_H 1
29797_ACEOF
29798
Reid Spencerabec8f92004-10-27 23:03:44 +000029799fi
29800
Brian Gaeke52a551d2004-07-21 03:14:12 +000029801echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29802echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29803if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29805else
29806 ac_ext=cc
29807ac_cpp='$CXXCPP $CPPFLAGS'
29808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29811
Reid Spencerabec8f92004-10-27 23:03:44 +000029812 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029813/* confdefs.h. */
29814_ACEOF
29815cat confdefs.h >>conftest.$ac_ext
29816cat >>conftest.$ac_ext <<_ACEOF
29817/* end confdefs.h. */
29818#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029819int
29820main ()
29821{
29822float f; isinf(f);
29823 ;
29824 return 0;
29825}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029826_ACEOF
29827rm -f conftest.$ac_objext
29828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029829 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029830 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029831 grep -v '^ *+' conftest.er1 >conftest.err
29832 rm -f conftest.er1
29833 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029836 { ac_try='test -z "$ac_cxx_werror_flag"
29837 || test ! -s conftest.err'
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; } &&
29843 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29845 (eval $ac_try) 2>&5
29846 ac_status=$?
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); }; }; then
29849 ac_cv_func_isinf_in_cmath=yes
29850else
29851 echo "$as_me: failed program was:" >&5
29852sed 's/^/| /' conftest.$ac_ext >&5
29853
29854ac_cv_func_isinf_in_cmath=no
29855fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029857 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029858ac_cpp='$CPP $CPPFLAGS'
29859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29861ac_compiler_gnu=$ac_cv_c_compiler_gnu
29862
29863fi
29864echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29865echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029866
29867if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029868
29869cat >>confdefs.h <<\_ACEOF
29870#define HAVE_ISINF_IN_CMATH 1
29871_ACEOF
29872
Reid Spencerabec8f92004-10-27 23:03:44 +000029873fi
29874
Brian Gaeke52a551d2004-07-21 03:14:12 +000029875echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29876echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29877if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29878 echo $ECHO_N "(cached) $ECHO_C" >&6
29879else
29880 ac_ext=cc
29881ac_cpp='$CXXCPP $CPPFLAGS'
29882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29885
Reid Spencerabec8f92004-10-27 23:03:44 +000029886 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
29892#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029893int
29894main ()
29895{
29896float f; std::isinf(f)}
29897 ;
29898 return 0;
29899}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029900_ACEOF
29901rm -f conftest.$ac_objext
29902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029903 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029904 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029905 grep -v '^ *+' conftest.er1 >conftest.err
29906 rm -f conftest.er1
29907 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029910 { ac_try='test -z "$ac_cxx_werror_flag"
29911 || test ! -s conftest.err'
29912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29913 (eval $ac_try) 2>&5
29914 ac_status=$?
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); }; } &&
29917 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29919 (eval $ac_try) 2>&5
29920 ac_status=$?
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); }; }; then
29923 ac_cv_func_std_isinf_in_cmath=yes
29924else
29925 echo "$as_me: failed program was:" >&5
29926sed 's/^/| /' conftest.$ac_ext >&5
29927
29928ac_cv_func_std_isinf_in_cmath=no
29929fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029931 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029932ac_cpp='$CPP $CPPFLAGS'
29933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29935ac_compiler_gnu=$ac_cv_c_compiler_gnu
29936
29937fi
29938echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29939echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029940
29941if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029942
29943cat >>confdefs.h <<\_ACEOF
29944#define HAVE_STD_ISINF_IN_CMATH 1
29945_ACEOF
29946
Reid Spencerabec8f92004-10-27 23:03:44 +000029947fi
29948
Brian Gaeked59a6472004-07-21 03:33:58 +000029949echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29950echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29951if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29952 echo $ECHO_N "(cached) $ECHO_C" >&6
29953else
29954 ac_ext=cc
29955ac_cpp='$CXXCPP $CPPFLAGS'
29956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29959
Reid Spencerabec8f92004-10-27 23:03:44 +000029960 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029961/* confdefs.h. */
29962_ACEOF
29963cat confdefs.h >>conftest.$ac_ext
29964cat >>conftest.$ac_ext <<_ACEOF
29965/* end confdefs.h. */
29966#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029967int
29968main ()
29969{
29970float f; finite(f);
29971 ;
29972 return 0;
29973}
Brian Gaeked59a6472004-07-21 03:33:58 +000029974_ACEOF
29975rm -f conftest.$ac_objext
29976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029977 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029978 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029984 { ac_try='test -z "$ac_cxx_werror_flag"
29985 || test ! -s conftest.err'
29986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29987 (eval $ac_try) 2>&5
29988 ac_status=$?
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); }; } &&
29991 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29993 (eval $ac_try) 2>&5
29994 ac_status=$?
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); }; }; then
29997 ac_cv_func_finite_in_ieeefp_h=yes
29998else
29999 echo "$as_me: failed program was:" >&5
30000sed 's/^/| /' conftest.$ac_ext >&5
30001
30002ac_cv_func_finite_in_ieeefp_h=no
30003fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030005 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030006ac_cpp='$CPP $CPPFLAGS'
30007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30009ac_compiler_gnu=$ac_cv_c_compiler_gnu
30010
30011fi
30012echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30013echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030014
Brian Gaeke6802b552004-10-28 05:06:45 +000030015if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030016
30017cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030018#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030019_ACEOF
30020
Reid Spencerabec8f92004-10-27 23:03:44 +000030021fi
30022
30023
30024
John Criswell7a73b802003-06-30 21:59:07 +000030025
30026
30027for ac_header in stdlib.h unistd.h
30028do
30029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30030if eval "test \"\${$as_ac_Header+set}\" = set"; then
30031 echo "$as_me:$LINENO: checking for $ac_header" >&5
30032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30033if eval "test \"\${$as_ac_Header+set}\" = set"; then
30034 echo $ECHO_N "(cached) $ECHO_C" >&6
30035fi
30036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30038else
30039 # Is the header compilable?
30040echo "$as_me:$LINENO: checking $ac_header usability" >&5
30041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30042cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030043/* confdefs.h. */
30044_ACEOF
30045cat confdefs.h >>conftest.$ac_ext
30046cat >>conftest.$ac_ext <<_ACEOF
30047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030048$ac_includes_default
30049#include <$ac_header>
30050_ACEOF
30051rm -f conftest.$ac_objext
30052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030053 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030054 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030055 grep -v '^ *+' conftest.er1 >conftest.err
30056 rm -f conftest.er1
30057 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030060 { ac_try='test -z "$ac_c_werror_flag"
30061 || test ! -s conftest.err'
30062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063 (eval $ac_try) 2>&5
30064 ac_status=$?
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); }; } &&
30067 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069 (eval $ac_try) 2>&5
30070 ac_status=$?
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; }; then
30073 ac_header_compiler=yes
30074else
30075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030076sed 's/^/| /' conftest.$ac_ext >&5
30077
John Criswell7a73b802003-06-30 21:59:07 +000030078ac_header_compiler=no
30079fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30082echo "${ECHO_T}$ac_header_compiler" >&6
30083
30084# Is the header present?
30085echo "$as_me:$LINENO: checking $ac_header presence" >&5
30086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30087cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030088/* confdefs.h. */
30089_ACEOF
30090cat confdefs.h >>conftest.$ac_ext
30091cat >>conftest.$ac_ext <<_ACEOF
30092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030093#include <$ac_header>
30094_ACEOF
30095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30097 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030098 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030099 rm -f conftest.er1
30100 cat conftest.err >&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); } >/dev/null; then
30103 if test -s conftest.err; then
30104 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030106 else
30107 ac_cpp_err=
30108 fi
30109else
30110 ac_cpp_err=yes
30111fi
30112if test -z "$ac_cpp_err"; then
30113 ac_header_preproc=yes
30114else
30115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030116sed 's/^/| /' conftest.$ac_ext >&5
30117
John Criswell7a73b802003-06-30 21:59:07 +000030118 ac_header_preproc=no
30119fi
30120rm -f conftest.err conftest.$ac_ext
30121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30122echo "${ECHO_T}$ac_header_preproc" >&6
30123
30124# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30126 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30131 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030132 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030133 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030146 (
30147 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030148## ----------------------------------- ##
30149## Report this to llvmbugs@cs.uiuc.edu ##
30150## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030151_ASBOX
30152 ) |
30153 sed "s/^/$as_me: WARNING: /" >&2
30154 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030155esac
30156echo "$as_me:$LINENO: checking for $ac_header" >&5
30157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30158if eval "test \"\${$as_ac_Header+set}\" = set"; then
30159 echo $ECHO_N "(cached) $ECHO_C" >&6
30160else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030161 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030162fi
30163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30165
30166fi
30167if test `eval echo '${'$as_ac_Header'}'` = yes; then
30168 cat >>confdefs.h <<_ACEOF
30169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30170_ACEOF
30171
30172fi
30173
30174done
30175
30176
30177for ac_func in getpagesize
30178do
30179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30180echo "$as_me:$LINENO: checking for $ac_func" >&5
30181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30182if eval "test \"\${$as_ac_var+set}\" = set"; then
30183 echo $ECHO_N "(cached) $ECHO_C" >&6
30184else
30185 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030186/* confdefs.h. */
30187_ACEOF
30188cat confdefs.h >>conftest.$ac_ext
30189cat >>conftest.$ac_ext <<_ACEOF
30190/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30193#define $ac_func innocuous_$ac_func
30194
John Criswell7a73b802003-06-30 21:59:07 +000030195/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030196 which can conflict with char $ac_func (); below.
30197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30198 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030199
John Criswell0c38eaf2003-09-10 15:17:25 +000030200#ifdef __STDC__
30201# include <limits.h>
30202#else
30203# include <assert.h>
30204#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030205
30206#undef $ac_func
30207
John Criswell7a73b802003-06-30 21:59:07 +000030208/* Override any gcc2 internal prototype to avoid an error. */
30209#ifdef __cplusplus
30210extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030211{
John Criswell7a73b802003-06-30 21:59:07 +000030212#endif
30213/* We use char because int might match the return type of a gcc2
30214 builtin and then its argument prototype would still apply. */
30215char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030216/* The GNU C library defines this for functions which it implements
30217 to always fail with ENOSYS. Some functions are actually named
30218 something starting with __ and the normal name is an alias. */
30219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30220choke me
30221#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030222char (*f) () = $ac_func;
30223#endif
30224#ifdef __cplusplus
30225}
John Criswell7a73b802003-06-30 21:59:07 +000030226#endif
30227
John Criswell0c38eaf2003-09-10 15:17:25 +000030228int
30229main ()
30230{
30231return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030232 ;
30233 return 0;
30234}
30235_ACEOF
30236rm -f conftest.$ac_objext conftest$ac_exeext
30237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030238 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030239 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030240 grep -v '^ *+' conftest.er1 >conftest.err
30241 rm -f conftest.er1
30242 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030245 { ac_try='test -z "$ac_c_werror_flag"
30246 || test ! -s conftest.err'
30247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30248 (eval $ac_try) 2>&5
30249 ac_status=$?
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); }; } &&
30252 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254 (eval $ac_try) 2>&5
30255 ac_status=$?
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; }; then
30258 eval "$as_ac_var=yes"
30259else
30260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030261sed 's/^/| /' conftest.$ac_ext >&5
30262
John Criswell7a73b802003-06-30 21:59:07 +000030263eval "$as_ac_var=no"
30264fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030265rm -f conftest.err conftest.$ac_objext \
30266 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030267fi
30268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30270if test `eval echo '${'$as_ac_var'}'` = yes; then
30271 cat >>confdefs.h <<_ACEOF
30272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30273_ACEOF
30274
30275fi
30276done
30277
30278echo "$as_me:$LINENO: checking for working mmap" >&5
30279echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30280if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30281 echo $ECHO_N "(cached) $ECHO_C" >&6
30282else
30283 if test "$cross_compiling" = yes; then
30284 ac_cv_func_mmap_fixed_mapped=no
30285else
30286 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030287/* confdefs.h. */
30288_ACEOF
30289cat confdefs.h >>conftest.$ac_ext
30290cat >>conftest.$ac_ext <<_ACEOF
30291/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030292$ac_includes_default
30293/* malloc might have been renamed as rpl_malloc. */
30294#undef malloc
30295
30296/* Thanks to Mike Haertel and Jim Avera for this test.
30297 Here is a matrix of mmap possibilities:
30298 mmap private not fixed
30299 mmap private fixed at somewhere currently unmapped
30300 mmap private fixed at somewhere already mapped
30301 mmap shared not fixed
30302 mmap shared fixed at somewhere currently unmapped
30303 mmap shared fixed at somewhere already mapped
30304 For private mappings, we should verify that changes cannot be read()
30305 back from the file, nor mmap's back from the file at a different
30306 address. (There have been systems where private was not correctly
30307 implemented like the infamous i386 svr4.0, and systems where the
30308 VM page cache was not coherent with the file system buffer cache
30309 like early versions of FreeBSD and possibly contemporary NetBSD.)
30310 For shared mappings, we should conversely verify that changes get
30311 propagated back to all the places they're supposed to be.
30312
30313 Grep wants private fixed already mapped.
30314 The main things grep needs to know about mmap are:
30315 * does it exist and is it safe to write into the mmap'd area
30316 * how to use it (BSD variants) */
30317
30318#include <fcntl.h>
30319#include <sys/mman.h>
30320
30321#if !STDC_HEADERS && !HAVE_STDLIB_H
30322char *malloc ();
30323#endif
30324
30325/* This mess was copied from the GNU getpagesize.h. */
30326#if !HAVE_GETPAGESIZE
30327/* Assume that all systems that can run configure have sys/param.h. */
30328# if !HAVE_SYS_PARAM_H
30329# define HAVE_SYS_PARAM_H 1
30330# endif
30331
30332# ifdef _SC_PAGESIZE
30333# define getpagesize() sysconf(_SC_PAGESIZE)
30334# else /* no _SC_PAGESIZE */
30335# if HAVE_SYS_PARAM_H
30336# include <sys/param.h>
30337# ifdef EXEC_PAGESIZE
30338# define getpagesize() EXEC_PAGESIZE
30339# else /* no EXEC_PAGESIZE */
30340# ifdef NBPG
30341# define getpagesize() NBPG * CLSIZE
30342# ifndef CLSIZE
30343# define CLSIZE 1
30344# endif /* no CLSIZE */
30345# else /* no NBPG */
30346# ifdef NBPC
30347# define getpagesize() NBPC
30348# else /* no NBPC */
30349# ifdef PAGESIZE
30350# define getpagesize() PAGESIZE
30351# endif /* PAGESIZE */
30352# endif /* no NBPC */
30353# endif /* no NBPG */
30354# endif /* no EXEC_PAGESIZE */
30355# else /* no HAVE_SYS_PARAM_H */
30356# define getpagesize() 8192 /* punt totally */
30357# endif /* no HAVE_SYS_PARAM_H */
30358# endif /* no _SC_PAGESIZE */
30359
30360#endif /* no HAVE_GETPAGESIZE */
30361
30362int
30363main ()
30364{
30365 char *data, *data2, *data3;
30366 int i, pagesize;
30367 int fd;
30368
30369 pagesize = getpagesize ();
30370
30371 /* First, make a file with some known garbage in it. */
30372 data = (char *) malloc (pagesize);
30373 if (!data)
30374 exit (1);
30375 for (i = 0; i < pagesize; ++i)
30376 *(data + i) = rand ();
30377 umask (0);
30378 fd = creat ("conftest.mmap", 0600);
30379 if (fd < 0)
30380 exit (1);
30381 if (write (fd, data, pagesize) != pagesize)
30382 exit (1);
30383 close (fd);
30384
30385 /* Next, try to mmap the file at a fixed address which already has
30386 something else allocated at it. If we can, also make sure that
30387 we see the same garbage. */
30388 fd = open ("conftest.mmap", O_RDWR);
30389 if (fd < 0)
30390 exit (1);
30391 data2 = (char *) malloc (2 * pagesize);
30392 if (!data2)
30393 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030394 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030397 exit (1);
30398 for (i = 0; i < pagesize; ++i)
30399 if (*(data + i) != *(data2 + i))
30400 exit (1);
30401
30402 /* Finally, make sure that changes to the mapped area do not
30403 percolate back to the file as seen by read(). (This is a bug on
30404 some variants of i386 svr4.0.) */
30405 for (i = 0; i < pagesize; ++i)
30406 *(data2 + i) = *(data2 + i) + 1;
30407 data3 = (char *) malloc (pagesize);
30408 if (!data3)
30409 exit (1);
30410 if (read (fd, data3, pagesize) != pagesize)
30411 exit (1);
30412 for (i = 0; i < pagesize; ++i)
30413 if (*(data + i) != *(data3 + i))
30414 exit (1);
30415 close (fd);
30416 exit (0);
30417}
30418_ACEOF
30419rm -f conftest$ac_exeext
30420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30421 (eval $ac_link) 2>&5
30422 ac_status=$?
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30426 (eval $ac_try) 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; }; then
30430 ac_cv_func_mmap_fixed_mapped=yes
30431else
30432 echo "$as_me: program exited with status $ac_status" >&5
30433echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030434sed 's/^/| /' conftest.$ac_ext >&5
30435
John Criswell7a73b802003-06-30 21:59:07 +000030436( exit $ac_status )
30437ac_cv_func_mmap_fixed_mapped=no
30438fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030439rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030440fi
30441fi
30442echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30443echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30444if test $ac_cv_func_mmap_fixed_mapped = yes; then
30445
30446cat >>confdefs.h <<\_ACEOF
30447#define HAVE_MMAP 1
30448_ACEOF
30449
30450fi
30451rm -f conftest.mmap
30452
30453echo "$as_me:$LINENO: checking for mmap of files" >&5
30454echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30455if test "${ac_cv_func_mmap_file+set}" = set; then
30456 echo $ECHO_N "(cached) $ECHO_C" >&6
30457else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030458 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030459ac_cpp='$CPP $CPPFLAGS'
30460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30462ac_compiler_gnu=$ac_cv_c_compiler_gnu
30463
30464 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030465 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030466else
30467 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030468
Reid Spencer777ce172004-09-20 04:09:56 +000030469 /* confdefs.h. */
30470_ACEOF
30471cat confdefs.h >>conftest.$ac_ext
30472cat >>conftest.$ac_ext <<_ACEOF
30473/* end confdefs.h. */
30474
John Criswell7a73b802003-06-30 21:59:07 +000030475#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030476#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030477#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030478
30479int
30480main ()
30481{
John Criswell7a73b802003-06-30 21:59:07 +000030482
30483 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030484 fd = creat ("foo",0777);
30485 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30486 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030487 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030488 ;
30489 return 0;
30490}
John Criswell7a73b802003-06-30 21:59:07 +000030491_ACEOF
30492rm -f conftest$ac_exeext
30493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30494 (eval $ac_link) 2>&5
30495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; }; then
30503 ac_cv_func_mmap_file=yes
30504else
30505 echo "$as_me: program exited with status $ac_status" >&5
30506echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030507sed 's/^/| /' conftest.$ac_ext >&5
30508
John Criswell7a73b802003-06-30 21:59:07 +000030509( exit $ac_status )
30510ac_cv_func_mmap_file=no
30511fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030512rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030513fi
30514 ac_ext=c
30515ac_cpp='$CPP $CPPFLAGS'
30516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30518ac_compiler_gnu=$ac_cv_c_compiler_gnu
30519
30520
30521fi
30522echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30523echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30524if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030525
30526cat >>confdefs.h <<\_ACEOF
30527#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030528_ACEOF
30529
30530 MMAP_FILE=yes
30531
30532fi
30533
Reid Spencer7931a782004-12-27 06:15:02 +000030534echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30535echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30536if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30538else
Reid Spencer582a23c2004-12-29 07:07:57 +000030539 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030540 ac_cv_need_dev_zero_for_mmap=yes
30541 else
30542 ac_cv_need_dev_zero_for_mmap=no
30543 fi
30544
30545fi
30546echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30547echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30548if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30549
30550cat >>confdefs.h <<\_ACEOF
30551#define NEED_DEV_ZERO_FOR_MMAP 1
30552_ACEOF
30553
30554fi
John Criswell7a73b802003-06-30 21:59:07 +000030555echo "$as_me:$LINENO: checking for mprotect" >&5
30556echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30557if test "${ac_cv_func_mprotect+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
30559else
30560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030561/* confdefs.h. */
30562_ACEOF
30563cat confdefs.h >>conftest.$ac_ext
30564cat >>conftest.$ac_ext <<_ACEOF
30565/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030566/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30568#define mprotect innocuous_mprotect
30569
John Criswell7a73b802003-06-30 21:59:07 +000030570/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030571 which can conflict with char mprotect (); below.
30572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30573 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030574
John Criswell0c38eaf2003-09-10 15:17:25 +000030575#ifdef __STDC__
30576# include <limits.h>
30577#else
30578# include <assert.h>
30579#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030580
30581#undef mprotect
30582
John Criswell7a73b802003-06-30 21:59:07 +000030583/* Override any gcc2 internal prototype to avoid an error. */
30584#ifdef __cplusplus
30585extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030586{
John Criswell7a73b802003-06-30 21:59:07 +000030587#endif
30588/* We use char because int might match the return type of a gcc2
30589 builtin and then its argument prototype would still apply. */
30590char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030591/* The GNU C library defines this for functions which it implements
30592 to always fail with ENOSYS. Some functions are actually named
30593 something starting with __ and the normal name is an alias. */
30594#if defined (__stub_mprotect) || defined (__stub___mprotect)
30595choke me
30596#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030597char (*f) () = mprotect;
30598#endif
30599#ifdef __cplusplus
30600}
John Criswell7a73b802003-06-30 21:59:07 +000030601#endif
30602
John Criswell0c38eaf2003-09-10 15:17:25 +000030603int
30604main ()
30605{
30606return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030607 ;
30608 return 0;
30609}
30610_ACEOF
30611rm -f conftest.$ac_objext conftest$ac_exeext
30612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030613 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030615 grep -v '^ *+' conftest.er1 >conftest.err
30616 rm -f conftest.er1
30617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030620 { ac_try='test -z "$ac_c_werror_flag"
30621 || test ! -s conftest.err'
30622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623 (eval $ac_try) 2>&5
30624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; } &&
30627 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30629 (eval $ac_try) 2>&5
30630 ac_status=$?
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); }; }; then
30633 ac_cv_func_mprotect=yes
30634else
30635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030636sed 's/^/| /' conftest.$ac_ext >&5
30637
John Criswell7a73b802003-06-30 21:59:07 +000030638ac_cv_func_mprotect=no
30639fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030640rm -f conftest.err conftest.$ac_objext \
30641 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030642fi
30643echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30644echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30645if test $ac_cv_func_mprotect = yes; then
30646 :
30647else
30648 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30649echo "$as_me: error: Function mprotect() required but not found" >&2;}
30650 { (exit 1); exit 1; }; }
30651fi
30652
30653
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030654if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030655then
Reid Spencer582a23c2004-12-29 07:07:57 +000030656 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30657echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030658fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030659if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030660then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030661 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30662echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030663fi
John Criswell7a73b802003-06-30 21:59:07 +000030664
30665
Brian Gaekef3b24102003-11-16 18:38:14 +000030666echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30667echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030668if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30669 echo $ECHO_N "(cached) $ECHO_C" >&6
30670else
30671 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030672if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030673 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030674 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030675 if test $? -eq 0 ; then
30676 llvm_cv_llvmgcc_sanity="yes"
30677 fi
30678 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030679fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030680fi
30681echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30682echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30683
30684if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030685 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030686 LLVMCC1=$llvmcc1path
30687
Reid Spencer502935f2004-12-22 05:56:56 +000030688 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030689 LLVMCC1PLUS=$llvmcc1pluspath
30690
Reid Spencer502935f2004-12-22 05:56:56 +000030691 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30692 LLVMGCCDIR=$llvmgccdir
30693
Brian Gaekef3b24102003-11-16 18:38:14 +000030694fi
30695
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030696SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030697
30698
Reid Spencere9de0912004-08-20 09:03:57 +000030699# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030700# information into substitutions that will end up in Makefile.config.in
30701# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030702eval LLVM_PREFIX="${prefix}";
30703eval LLVM_BINDIR="${prefix}/bin";
30704eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030705eval LLVM_DATADIR="${prefix}/share/llvm";
30706eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30707eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030708eval LLVM_INCLUDEDIR="${prefix}/include";
30709eval LLVM_INFODIR="${prefix}/info";
30710eval LLVM_MANDIR="${prefix}/man";
30711LLVM_CONFIGTIME=`date`
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030723# Place the various directores into the config.h file as #defines so that we
30724# can know about the installation paths within LLVM.
30725
Reid Spencere9de0912004-08-20 09:03:57 +000030726cat >>confdefs.h <<_ACEOF
30727#define LLVM_PREFIX "$LLVM_PREFIX"
30728_ACEOF
30729
30730
30731cat >>confdefs.h <<_ACEOF
30732#define LLVM_BINDIR "$LLVM_BINDIR"
30733_ACEOF
30734
30735
30736cat >>confdefs.h <<_ACEOF
30737#define LLVM_LIBDIR "$LLVM_LIBDIR"
30738_ACEOF
30739
30740
30741cat >>confdefs.h <<_ACEOF
30742#define LLVM_DATADIR "$LLVM_DATADIR"
30743_ACEOF
30744
30745
30746cat >>confdefs.h <<_ACEOF
30747#define LLVM_DATADIR "$LLVM_DOCSDIR"
30748_ACEOF
30749
30750
30751cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030752#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030753_ACEOF
30754
30755
30756cat >>confdefs.h <<_ACEOF
30757#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30758_ACEOF
30759
30760
30761cat >>confdefs.h <<_ACEOF
30762#define LLVM_INFODIR "$LLVM_INFODIR"
30763_ACEOF
30764
30765
30766cat >>confdefs.h <<_ACEOF
30767#define LLVM_MANDIR "$LLVM_MANDIR"
30768_ACEOF
30769
30770
30771cat >>confdefs.h <<_ACEOF
30772#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30773_ACEOF
30774
30775
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030776
30777 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30778
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030779 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30780
30781 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30782
30783 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30784
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030785 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30786
30787
30788 ac_config_files="$ac_config_files Makefile.config"
30789
30790
Reid Spencer1f319422004-11-29 04:56:35 +000030791 ac_config_files="$ac_config_files docs/doxygen.cfg"
30792
30793
Reid Spencerc0682832005-02-24 19:05:19 +000030794 ac_config_commands="$ac_config_commands setup"
30795
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030796 ac_config_commands="$ac_config_commands Makefile"
30797
30798
30799 ac_config_commands="$ac_config_commands Makefile.common"
30800
30801
30802 ac_config_commands="$ac_config_commands examples/Makefile"
30803
30804
30805 ac_config_commands="$ac_config_commands lib/Makefile"
30806
30807
30808 ac_config_commands="$ac_config_commands runtime/Makefile"
30809
30810
30811 ac_config_commands="$ac_config_commands test/Makefile"
30812
30813
30814 ac_config_commands="$ac_config_commands test/Makefile.tests"
30815
30816
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030817 ac_config_commands="$ac_config_commands tools/Makefile"
30818
30819
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030820 ac_config_commands="$ac_config_commands utils/Makefile"
30821
30822
30823 ac_config_commands="$ac_config_commands projects/Makefile"
30824
30825
30826
John Criswell7a73b802003-06-30 21:59:07 +000030827cat >confcache <<\_ACEOF
30828# This file is a shell script that caches the results of configure
30829# tests run on this system so they can be shared between configure
30830# scripts and configure runs, see configure's option --config-cache.
30831# It is not useful on other systems. If it contains results you don't
30832# want to keep, you may remove or edit it.
30833#
30834# config.status only pays attention to the cache file if you give it
30835# the --recheck option to rerun configure.
30836#
John Criswell0c38eaf2003-09-10 15:17:25 +000030837# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030838# loading this file, other *unset* `ac_cv_foo' will be assigned the
30839# following values.
30840
30841_ACEOF
30842
30843# The following way of writing the cache mishandles newlines in values,
30844# but we know of no workaround that is simple, portable, and efficient.
30845# So, don't put newlines in cache variables' values.
30846# Ultrix sh set writes to stderr and can't be redirected directly,
30847# and sets the high bit in the cache file unless we assign to the vars.
30848{
30849 (set) 2>&1 |
30850 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30851 *ac_space=\ *)
30852 # `set' does not quote correctly, so add quotes (double-quote
30853 # substitution turns \\\\ into \\, and sed turns \\ into \).
30854 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030855 "s/'/'\\\\''/g;
30856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030857 ;;
30858 *)
30859 # `set' quotes correctly as required by POSIX, so do not add quotes.
30860 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030862 ;;
30863 esac;
30864} |
30865 sed '
30866 t clear
30867 : clear
30868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30869 t end
30870 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30871 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030872if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030873 if test -w $cache_file; then
30874 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30875 cat confcache >$cache_file
30876 else
30877 echo "not updating unwritable cache $cache_file"
30878 fi
30879fi
30880rm -f confcache
30881
30882test "x$prefix" = xNONE && prefix=$ac_default_prefix
30883# Let make expand exec_prefix.
30884test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30885
30886# VPATH may cause trouble with some makes, so we remove $(srcdir),
30887# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30888# trailing colons and then remove the whole line if VPATH becomes empty
30889# (actually we leave an empty line to preserve line numbers).
30890if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030891 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030892s/:*\$(srcdir):*/:/;
30893s/:*\${srcdir}:*/:/;
30894s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030895s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030896s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030897s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030898}'
30899fi
30900
30901DEFS=-DHAVE_CONFIG_H
30902
John Criswell0c38eaf2003-09-10 15:17:25 +000030903ac_libobjs=
30904ac_ltlibobjs=
30905for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30906 # 1. Remove the extension, and $U if already installed.
30907 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030908 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030909 # 2. Add them.
30910 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30911 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30912done
30913LIBOBJS=$ac_libobjs
30914
30915LTLIBOBJS=$ac_ltlibobjs
30916
30917
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030918if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30919 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30920Usually this means the macro was only invoked conditionally." >&5
30921echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30922Usually this means the macro was only invoked conditionally." >&2;}
30923 { (exit 1); exit 1; }; }
30924fi
30925if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30926 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30927Usually this means the macro was only invoked conditionally." >&5
30928echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30929Usually this means the macro was only invoked conditionally." >&2;}
30930 { (exit 1); exit 1; }; }
30931fi
John Criswell7a73b802003-06-30 21:59:07 +000030932
30933: ${CONFIG_STATUS=./config.status}
30934ac_clean_files_save=$ac_clean_files
30935ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30936{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30937echo "$as_me: creating $CONFIG_STATUS" >&6;}
30938cat >$CONFIG_STATUS <<_ACEOF
30939#! $SHELL
30940# Generated by $as_me.
30941# Run this file to recreate the current configuration.
30942# Compiler output produced by configure, useful for debugging
30943# configure, is in config.log if it exists.
30944
30945debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030946ac_cs_recheck=false
30947ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030948SHELL=\${CONFIG_SHELL-$SHELL}
30949_ACEOF
30950
30951cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030952## --------------------- ##
30953## M4sh Initialization. ##
30954## --------------------- ##
30955
30956# Be Bourne compatible
30957if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30958 emulate sh
30959 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030960 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30961 # is contrary to our usage. Disable this feature.
30962 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030963elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30964 set -o posix
30965fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030966DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030967
John Criswell7a73b802003-06-30 21:59:07 +000030968# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030969if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030970 as_unset=unset
30971else
30972 as_unset=false
30973fi
30974
John Criswell0c38eaf2003-09-10 15:17:25 +000030975
30976# Work around bugs in pre-3.0 UWIN ksh.
30977$as_unset ENV MAIL MAILPATH
30978PS1='$ '
30979PS2='> '
30980PS4='+ '
30981
30982# NLS nuisances.
30983for as_var in \
30984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30986 LC_TELEPHONE LC_TIME
30987do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030988 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030989 eval $as_var=C; export $as_var
30990 else
30991 $as_unset $as_var
30992 fi
30993done
30994
30995# Required to use basename.
30996if expr a : '\(a\)' >/dev/null 2>&1; then
30997 as_expr=expr
30998else
30999 as_expr=false
31000fi
31001
31002if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31003 as_basename=basename
31004else
31005 as_basename=false
31006fi
John Criswell7a73b802003-06-30 21:59:07 +000031007
31008
31009# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031010as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031011$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31012 X"$0" : 'X\(//\)$' \| \
31013 X"$0" : 'X\(/\)$' \| \
31014 . : '\(.\)' 2>/dev/null ||
31015echo X/"$0" |
31016 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31017 /^X\/\(\/\/\)$/{ s//\1/; q; }
31018 /^X\/\(\/\).*/{ s//\1/; q; }
31019 s/.*/./; q'`
31020
John Criswell0c38eaf2003-09-10 15:17:25 +000031021
John Criswell7a73b802003-06-30 21:59:07 +000031022# PATH needs CR, and LINENO needs CR and PATH.
31023# Avoid depending upon Character Ranges.
31024as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31025as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31026as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31027as_cr_digits='0123456789'
31028as_cr_alnum=$as_cr_Letters$as_cr_digits
31029
31030# The user is always right.
31031if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031032 echo "#! /bin/sh" >conf$$.sh
31033 echo "exit 0" >>conf$$.sh
31034 chmod +x conf$$.sh
31035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031036 PATH_SEPARATOR=';'
31037 else
31038 PATH_SEPARATOR=:
31039 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031040 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031041fi
31042
31043
31044 as_lineno_1=$LINENO
31045 as_lineno_2=$LINENO
31046 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31047 test "x$as_lineno_1" != "x$as_lineno_2" &&
31048 test "x$as_lineno_3" = "x$as_lineno_2" || {
31049 # Find who we are. Look in the path if we contain no path at all
31050 # relative or not.
31051 case $0 in
31052 *[\\/]* ) as_myself=$0 ;;
31053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31054for as_dir in $PATH
31055do
31056 IFS=$as_save_IFS
31057 test -z "$as_dir" && as_dir=.
31058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31059done
31060
31061 ;;
31062 esac
31063 # We did not find ourselves, most probably we were run as `sh COMMAND'
31064 # in which case we are not to be found in the path.
31065 if test "x$as_myself" = x; then
31066 as_myself=$0
31067 fi
31068 if test ! -f "$as_myself"; then
31069 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31070echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31071 { (exit 1); exit 1; }; }
31072 fi
31073 case $CONFIG_SHELL in
31074 '')
31075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31076for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31077do
31078 IFS=$as_save_IFS
31079 test -z "$as_dir" && as_dir=.
31080 for as_base in sh bash ksh sh5; do
31081 case $as_dir in
31082 /*)
31083 if ("$as_dir/$as_base" -c '
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" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031089 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31090 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031091 CONFIG_SHELL=$as_dir/$as_base
31092 export CONFIG_SHELL
31093 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31094 fi;;
31095 esac
31096 done
31097done
31098;;
31099 esac
31100
31101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31102 # uniformly replaced by the line number. The first 'sed' inserts a
31103 # line-number line before each line; the second 'sed' does the real
31104 # work. The second script uses 'N' to pair each line-number line
31105 # with the numbered line, and appends trailing '-' during
31106 # substitution so that $LINENO is not a special case at line end.
31107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31108 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31109 sed '=' <$as_myself |
31110 sed '
31111 N
31112 s,$,-,
31113 : loop
31114 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31115 t loop
31116 s,-$,,
31117 s,^['$as_cr_digits']*\n,,
31118 ' >$as_me.lineno &&
31119 chmod +x $as_me.lineno ||
31120 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31121echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31122 { (exit 1); exit 1; }; }
31123
31124 # Don't try to exec as it changes $[0], causing all sort of problems
31125 # (the dirname of $[0] is not the place where we might find the
31126 # original and so on. Autoconf is especially sensible to this).
31127 . ./$as_me.lineno
31128 # Exit status is that of the last command.
31129 exit
31130}
31131
31132
31133case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31134 *c*,-n*) ECHO_N= ECHO_C='
31135' ECHO_T=' ' ;;
31136 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31137 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31138esac
31139
31140if expr a : '\(a\)' >/dev/null 2>&1; then
31141 as_expr=expr
31142else
31143 as_expr=false
31144fi
31145
31146rm -f conf$$ conf$$.exe conf$$.file
31147echo >conf$$.file
31148if ln -s conf$$.file conf$$ 2>/dev/null; then
31149 # We could just check for DJGPP; but this test a) works b) is more generic
31150 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31151 if test -f conf$$.exe; then
31152 # Don't use ln at all; we don't have any links
31153 as_ln_s='cp -p'
31154 else
31155 as_ln_s='ln -s'
31156 fi
31157elif ln conf$$.file conf$$ 2>/dev/null; then
31158 as_ln_s=ln
31159else
31160 as_ln_s='cp -p'
31161fi
31162rm -f conf$$ conf$$.exe conf$$.file
31163
John Criswell0c38eaf2003-09-10 15:17:25 +000031164if mkdir -p . 2>/dev/null; then
31165 as_mkdir_p=:
31166else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031167 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031168 as_mkdir_p=false
31169fi
31170
John Criswell7a73b802003-06-30 21:59:07 +000031171as_executable_p="test -f"
31172
31173# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031174as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031175
31176# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031177as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031178
31179
31180# IFS
31181# We need space, tab and new line, in precisely that order.
31182as_nl='
31183'
31184IFS=" $as_nl"
31185
31186# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031187$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031188
31189exec 6>&1
31190
31191# Open the log real soon, to keep \$[0] and so on meaningful, and to
31192# report actual input values of CONFIG_FILES etc. instead of their
31193# values after options handling. Logging --version etc. is OK.
31194exec 5>>config.log
31195{
31196 echo
31197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31198## Running $as_me. ##
31199_ASBOX
31200} >&5
31201cat >&5 <<_CSEOF
31202
John Criswelle2503892005-11-08 21:13:01 +000031203This file was extended by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031204generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031205
31206 CONFIG_FILES = $CONFIG_FILES
31207 CONFIG_HEADERS = $CONFIG_HEADERS
31208 CONFIG_LINKS = $CONFIG_LINKS
31209 CONFIG_COMMANDS = $CONFIG_COMMANDS
31210 $ $0 $@
31211
31212_CSEOF
31213echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31214echo >&5
31215_ACEOF
31216
31217# Files that config.status was made for.
31218if test -n "$ac_config_files"; then
31219 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31220fi
31221
31222if test -n "$ac_config_headers"; then
31223 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31224fi
31225
31226if test -n "$ac_config_links"; then
31227 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31228fi
31229
31230if test -n "$ac_config_commands"; then
31231 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31232fi
31233
31234cat >>$CONFIG_STATUS <<\_ACEOF
31235
31236ac_cs_usage="\
31237\`$as_me' instantiates files from templates according to the
31238current configuration.
31239
31240Usage: $0 [OPTIONS] [FILE]...
31241
31242 -h, --help print this help, then exit
31243 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031244 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031245 -d, --debug don't remove temporary files
31246 --recheck update $as_me by reconfiguring in the same conditions
31247 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031248 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031249 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031250 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031251
31252Configuration files:
31253$config_files
31254
31255Configuration headers:
31256$config_headers
31257
John Criswellc764fbc2003-09-06 15:17:13 +000031258Configuration commands:
31259$config_commands
31260
John Criswell7a73b802003-06-30 21:59:07 +000031261Report bugs to <bug-autoconf@gnu.org>."
31262_ACEOF
31263
31264cat >>$CONFIG_STATUS <<_ACEOF
31265ac_cs_version="\\
John Criswelle2503892005-11-08 21:13:01 +000031266llvm config.status 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031267configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031268 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31269
Reid Spencer2706f8c2004-09-19 23:53:36 +000031270Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031271This config.status script is free software; the Free Software Foundation
31272gives unlimited permission to copy, distribute and modify it."
31273srcdir=$srcdir
31274INSTALL="$INSTALL"
31275_ACEOF
31276
31277cat >>$CONFIG_STATUS <<\_ACEOF
31278# If no file are specified by the user, then we need to provide default
31279# value. By we need to know if files were specified by the user.
31280ac_need_defaults=:
31281while test $# != 0
31282do
31283 case $1 in
31284 --*=*)
31285 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31286 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031287 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031288 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031289 -*)
31290 ac_option=$1
31291 ac_optarg=$2
31292 ac_shift=shift
31293 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031294 *) # This is not an option, so the user has probably given explicit
31295 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031296 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031297 ac_need_defaults=false;;
31298 esac
31299
John Criswell0c38eaf2003-09-10 15:17:25 +000031300 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031301 # Handling of the options.
31302_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031303cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31305 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031306 --version | --vers* | -V )
31307 echo "$ac_cs_version"; exit 0 ;;
31308 --he | --h)
31309 # Conflict between --help and --header
31310 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31311Try \`$0 --help' for more information." >&5
31312echo "$as_me: error: ambiguous option: $1
31313Try \`$0 --help' for more information." >&2;}
31314 { (exit 1); exit 1; }; };;
31315 --help | --hel | -h )
31316 echo "$ac_cs_usage"; exit 0 ;;
31317 --debug | --d* | -d )
31318 debug=: ;;
31319 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031320 $ac_shift
31321 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031322 ac_need_defaults=false;;
31323 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031324 $ac_shift
31325 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031326 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31328 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31329 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031330
31331 # This is an error.
31332 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31333Try \`$0 --help' for more information." >&5
31334echo "$as_me: error: unrecognized option: $1
31335Try \`$0 --help' for more information." >&2;}
31336 { (exit 1); exit 1; }; } ;;
31337
31338 *) ac_config_targets="$ac_config_targets $1" ;;
31339
31340 esac
31341 shift
31342done
31343
John Criswell0c38eaf2003-09-10 15:17:25 +000031344ac_configure_extra_args=
31345
31346if $ac_cs_silent; then
31347 exec 6>/dev/null
31348 ac_configure_extra_args="$ac_configure_extra_args --silent"
31349fi
31350
31351_ACEOF
31352cat >>$CONFIG_STATUS <<_ACEOF
31353if \$ac_cs_recheck; then
31354 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31355 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31356fi
31357
John Criswell7a73b802003-06-30 21:59:07 +000031358_ACEOF
31359
John Criswellc764fbc2003-09-06 15:17:13 +000031360cat >>$CONFIG_STATUS <<_ACEOF
31361#
31362# INIT-COMMANDS section.
31363#
John Criswell7a73b802003-06-30 21:59:07 +000031364
Reid Spencerc0682832005-02-24 19:05:19 +000031365llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031366
31367_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031368
31369
31370
31371cat >>$CONFIG_STATUS <<\_ACEOF
31372for ac_config_target in $ac_config_targets
31373do
31374 case "$ac_config_target" in
31375 # Handling of arguments.
31376 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031377 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031378 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031379 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31380 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031381 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031382 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031383 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031384 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31385 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031386 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031387 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031388 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031389 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031390 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031391 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31392 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031393 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031394 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31395echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31396 { (exit 1); exit 1; }; };;
31397 esac
31398done
31399
31400# If the user did not use the arguments to specify the items to instantiate,
31401# then the envvar interface is used. Set only those that are not.
31402# We use the long form for the default assignment because of an extremely
31403# bizarre bug on SunOS 4.1.3.
31404if $ac_need_defaults; then
31405 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31406 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031407 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031408fi
31409
John Criswell0c38eaf2003-09-10 15:17:25 +000031410# Have a temporary directory for convenience. Make it in the build tree
31411# simply because there is no reason to put it here, and in addition,
31412# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031413# Create a temporary directory, and hook for its removal unless debugging.
31414$debug ||
31415{
31416 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31417 trap '{ (exit 1); exit 1; }' 1 2 13 15
31418}
31419
31420# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031421
John Criswell7a73b802003-06-30 21:59:07 +000031422{
John Criswell0c38eaf2003-09-10 15:17:25 +000031423 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031424 test -n "$tmp" && test -d "$tmp"
31425} ||
31426{
John Criswell0c38eaf2003-09-10 15:17:25 +000031427 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031428 (umask 077 && mkdir $tmp)
31429} ||
31430{
John Criswell0c38eaf2003-09-10 15:17:25 +000031431 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031432 { (exit 1); exit 1; }
31433}
31434
31435_ACEOF
31436
31437cat >>$CONFIG_STATUS <<_ACEOF
31438
31439#
31440# CONFIG_FILES section.
31441#
31442
31443# No need to generate the scripts if there are no CONFIG_FILES.
31444# This happens for instance when ./config.status config.h
31445if test -n "\$CONFIG_FILES"; then
31446 # Protect against being on the right side of a sed subst in config.status.
31447 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31448 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31449s,@SHELL@,$SHELL,;t t
31450s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31451s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31452s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31453s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31454s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31455s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31456s,@exec_prefix@,$exec_prefix,;t t
31457s,@prefix@,$prefix,;t t
31458s,@program_transform_name@,$program_transform_name,;t t
31459s,@bindir@,$bindir,;t t
31460s,@sbindir@,$sbindir,;t t
31461s,@libexecdir@,$libexecdir,;t t
31462s,@datadir@,$datadir,;t t
31463s,@sysconfdir@,$sysconfdir,;t t
31464s,@sharedstatedir@,$sharedstatedir,;t t
31465s,@localstatedir@,$localstatedir,;t t
31466s,@libdir@,$libdir,;t t
31467s,@includedir@,$includedir,;t t
31468s,@oldincludedir@,$oldincludedir,;t t
31469s,@infodir@,$infodir,;t t
31470s,@mandir@,$mandir,;t t
31471s,@build_alias@,$build_alias,;t t
31472s,@host_alias@,$host_alias,;t t
31473s,@target_alias@,$target_alias,;t t
31474s,@DEFS@,$DEFS,;t t
31475s,@ECHO_C@,$ECHO_C,;t t
31476s,@ECHO_N@,$ECHO_N,;t t
31477s,@ECHO_T@,$ECHO_T,;t t
31478s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031479s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031480s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031481s,@build@,$build,;t t
31482s,@build_cpu@,$build_cpu,;t t
31483s,@build_vendor@,$build_vendor,;t t
31484s,@build_os@,$build_os,;t t
31485s,@host@,$host,;t t
31486s,@host_cpu@,$host_cpu,;t t
31487s,@host_vendor@,$host_vendor,;t t
31488s,@host_os@,$host_os,;t t
31489s,@target@,$target,;t t
31490s,@target_cpu@,$target_cpu,;t t
31491s,@target_vendor@,$target_vendor,;t t
31492s,@target_os@,$target_os,;t t
31493s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031494s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31495s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031496s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031497s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031498s,@CC@,$CC,;t t
31499s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031500s,@LDFLAGS@,$LDFLAGS,;t t
31501s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031502s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031503s,@EXEEXT@,$EXEEXT,;t t
31504s,@OBJEXT@,$OBJEXT,;t t
31505s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31506s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031507s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031508s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031509s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031510s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031511s,@CXX@,$CXX,;t t
31512s,@CXXFLAGS@,$CXXFLAGS,;t t
31513s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031514s,@LEX@,$LEX,;t t
31515s,@LEXLIB@,$LEXLIB,;t t
31516s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031517s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031518s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031519s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031520s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031521s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031522s,@CMP@,$CMP,;t t
31523s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031524s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031525s,@FIND@,$FIND,;t t
31526s,@GREP@,$GREP,;t t
31527s,@MKDIR@,$MKDIR,;t t
31528s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031529s,@RANLIB@,$RANLIB,;t t
31530s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031531s,@RM@,$RM,;t t
31532s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031533s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031534s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031535s,@GV@,$GV,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031536s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31537s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31538s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031539s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031540s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031541s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031542s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031543s,@GROFF@,$GROFF,;t t
31544s,@GZIP@,$GZIP,;t t
31545s,@POD2HTML@,$POD2HTML,;t t
31546s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031547s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031548s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031549s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031550s,@EGREP@,$EGREP,;t t
31551s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31552s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31553s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31554s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31555s,@LIBADD_DL@,$LIBADD_DL,;t t
31556s,@ECHO@,$ECHO,;t t
31557s,@AR@,$AR,;t t
31558s,@ac_ct_AR@,$ac_ct_AR,;t t
31559s,@STRIP@,$STRIP,;t t
31560s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31561s,@CXXCPP@,$CXXCPP,;t t
31562s,@F77@,$F77,;t t
31563s,@FFLAGS@,$FFLAGS,;t t
31564s,@ac_ct_F77@,$ac_ct_F77,;t t
31565s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031566s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031567s,@LLVMGCC@,$LLVMGCC,;t t
31568s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031569s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031570s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031571s,@LLVMCC1@,$LLVMCC1,;t t
31572s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031573s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031574s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031575s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31576s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31577s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31578s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31579s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31580s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31581s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31582s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31583s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31584s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031585s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031586s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031587CEOF
31588
31589_ACEOF
31590
31591 cat >>$CONFIG_STATUS <<\_ACEOF
31592 # Split the substitutions into bite-sized pieces for seds with
31593 # small command number limits, like on Digital OSF/1 and HP-UX.
31594 ac_max_sed_lines=48
31595 ac_sed_frag=1 # Number of current file.
31596 ac_beg=1 # First line for current file.
31597 ac_end=$ac_max_sed_lines # Line after last line for current file.
31598 ac_more_lines=:
31599 ac_sed_cmds=
31600 while $ac_more_lines; do
31601 if test $ac_beg -gt 1; then
31602 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31603 else
31604 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31605 fi
31606 if test ! -s $tmp/subs.frag; then
31607 ac_more_lines=false
31608 else
31609 # The purpose of the label and of the branching condition is to
31610 # speed up the sed processing (if there are no `@' at all, there
31611 # is no need to browse any of the substitutions).
31612 # These are the two extra sed commands mentioned above.
31613 (echo ':t
31614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31615 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031616 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031617 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031618 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031619 fi
31620 ac_sed_frag=`expr $ac_sed_frag + 1`
31621 ac_beg=$ac_end
31622 ac_end=`expr $ac_end + $ac_max_sed_lines`
31623 fi
31624 done
31625 if test -z "$ac_sed_cmds"; then
31626 ac_sed_cmds=cat
31627 fi
31628fi # test -n "$CONFIG_FILES"
31629
31630_ACEOF
31631cat >>$CONFIG_STATUS <<\_ACEOF
31632for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31634 case $ac_file in
31635 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031636 cat >$tmp/stdin
31637 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031639 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031640 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031641 * ) ac_file_in=$ac_file.in ;;
31642 esac
31643
31644 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31645 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31646$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031647 X"$ac_file" : 'X\(//\)[^/]' \| \
31648 X"$ac_file" : 'X\(//\)$' \| \
31649 X"$ac_file" : 'X\(/\)' \| \
31650 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031651echo X"$ac_file" |
31652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31654 /^X\(\/\/\)$/{ s//\1/; q; }
31655 /^X\(\/\).*/{ s//\1/; q; }
31656 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031657 { if $as_mkdir_p; then
31658 mkdir -p "$ac_dir"
31659 else
31660 as_dir="$ac_dir"
31661 as_dirs=
31662 while test ! -d "$as_dir"; do
31663 as_dirs="$as_dir $as_dirs"
31664 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31665$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031666 X"$as_dir" : 'X\(//\)[^/]' \| \
31667 X"$as_dir" : 'X\(//\)$' \| \
31668 X"$as_dir" : 'X\(/\)' \| \
31669 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031670echo X"$as_dir" |
31671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31673 /^X\(\/\/\)$/{ s//\1/; q; }
31674 /^X\(\/\).*/{ s//\1/; q; }
31675 s/.*/./; q'`
31676 done
31677 test ! -n "$as_dirs" || mkdir $as_dirs
31678 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31679echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31680 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031681
31682 ac_builddir=.
31683
31684if test "$ac_dir" != .; then
31685 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31686 # A "../" for each directory in $ac_dir_suffix.
31687 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31688else
31689 ac_dir_suffix= ac_top_builddir=
31690fi
31691
31692case $srcdir in
31693 .) # No --srcdir option. We are building in place.
31694 ac_srcdir=.
31695 if test -z "$ac_top_builddir"; then
31696 ac_top_srcdir=.
31697 else
31698 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31699 fi ;;
31700 [\\/]* | ?:[\\/]* ) # Absolute path.
31701 ac_srcdir=$srcdir$ac_dir_suffix;
31702 ac_top_srcdir=$srcdir ;;
31703 *) # Relative path.
31704 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31705 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31706esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031707
31708# Do not use `cd foo && pwd` to compute absolute paths, because
31709# the directories may not exist.
31710case `pwd` in
31711.) ac_abs_builddir="$ac_dir";;
31712*)
31713 case "$ac_dir" in
31714 .) ac_abs_builddir=`pwd`;;
31715 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31716 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31717 esac;;
31718esac
31719case $ac_abs_builddir in
31720.) ac_abs_top_builddir=${ac_top_builddir}.;;
31721*)
31722 case ${ac_top_builddir}. in
31723 .) ac_abs_top_builddir=$ac_abs_builddir;;
31724 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31725 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31726 esac;;
31727esac
31728case $ac_abs_builddir in
31729.) ac_abs_srcdir=$ac_srcdir;;
31730*)
31731 case $ac_srcdir in
31732 .) ac_abs_srcdir=$ac_abs_builddir;;
31733 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31734 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31735 esac;;
31736esac
31737case $ac_abs_builddir in
31738.) ac_abs_top_srcdir=$ac_top_srcdir;;
31739*)
31740 case $ac_top_srcdir in
31741 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31742 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31743 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31744 esac;;
31745esac
John Criswell7a73b802003-06-30 21:59:07 +000031746
31747
31748 case $INSTALL in
31749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31750 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31751 esac
31752
31753 if test x"$ac_file" != x-; then
31754 { echo "$as_me:$LINENO: creating $ac_file" >&5
31755echo "$as_me: creating $ac_file" >&6;}
31756 rm -f "$ac_file"
31757 fi
31758 # Let's still pretend it is `configure' which instantiates (i.e., don't
31759 # use $as_me), people would be surprised to read:
31760 # /* config.h. Generated by config.status. */
31761 if test x"$ac_file" = x-; then
31762 configure_input=
31763 else
31764 configure_input="$ac_file. "
31765 fi
31766 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031767 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031768
31769 # First look for the input files in the build tree, otherwise in the
31770 # src tree.
31771 ac_file_inputs=`IFS=:
31772 for f in $ac_file_in; do
31773 case $f in
31774 -) echo $tmp/stdin ;;
31775 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031776 # Absolute (can't be DOS-style, as IFS=:)
31777 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031778echo "$as_me: error: cannot find input file: $f" >&2;}
31779 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031780 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031781 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031782 if test -f "$f"; then
31783 # Build tree
31784 echo "$f"
31785 elif test -f "$srcdir/$f"; then
31786 # Source tree
31787 echo "$srcdir/$f"
31788 else
31789 # /dev/null tree
31790 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031791echo "$as_me: error: cannot find input file: $f" >&2;}
31792 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031793 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031794 esac
31795 done` || { (exit 1); exit 1; }
31796_ACEOF
31797cat >>$CONFIG_STATUS <<_ACEOF
31798 sed "$ac_vpsub
31799$extrasub
31800_ACEOF
31801cat >>$CONFIG_STATUS <<\_ACEOF
31802:t
31803/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31804s,@configure_input@,$configure_input,;t t
31805s,@srcdir@,$ac_srcdir,;t t
31806s,@abs_srcdir@,$ac_abs_srcdir,;t t
31807s,@top_srcdir@,$ac_top_srcdir,;t t
31808s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31809s,@builddir@,$ac_builddir,;t t
31810s,@abs_builddir@,$ac_abs_builddir,;t t
31811s,@top_builddir@,$ac_top_builddir,;t t
31812s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31813s,@INSTALL@,$ac_INSTALL,;t t
31814" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31815 rm -f $tmp/stdin
31816 if test x"$ac_file" != x-; then
31817 mv $tmp/out $ac_file
31818 else
31819 cat $tmp/out
31820 rm -f $tmp/out
31821 fi
31822
31823done
31824_ACEOF
31825cat >>$CONFIG_STATUS <<\_ACEOF
31826
31827#
31828# CONFIG_HEADER section.
31829#
31830
31831# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31832# NAME is the cpp macro being defined and VALUE is the value it is being given.
31833#
31834# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031835ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31836ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031837ac_dC=' '
31838ac_dD=',;t'
31839# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031840ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031841ac_uB='$,\1#\2define\3'
31842ac_uC=' '
31843ac_uD=',;t'
31844
31845for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31847 case $ac_file in
31848 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031849 cat >$tmp/stdin
31850 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31851 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031852 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031854 * ) ac_file_in=$ac_file.in ;;
31855 esac
31856
31857 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31858echo "$as_me: creating $ac_file" >&6;}
31859
31860 # First look for the input files in the build tree, otherwise in the
31861 # src tree.
31862 ac_file_inputs=`IFS=:
31863 for f in $ac_file_in; do
31864 case $f in
31865 -) echo $tmp/stdin ;;
31866 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031867 # Absolute (can't be DOS-style, as IFS=:)
31868 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031869echo "$as_me: error: cannot find input file: $f" >&2;}
31870 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031871 # Do quote $f, to prevent DOS paths from being IFS'd.
31872 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031873 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031874 if test -f "$f"; then
31875 # Build tree
31876 echo "$f"
31877 elif test -f "$srcdir/$f"; then
31878 # Source tree
31879 echo "$srcdir/$f"
31880 else
31881 # /dev/null tree
31882 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031883echo "$as_me: error: cannot find input file: $f" >&2;}
31884 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031885 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031886 esac
31887 done` || { (exit 1); exit 1; }
31888 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031889 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031890
31891_ACEOF
31892
31893# Transform confdefs.h into two sed scripts, `conftest.defines' and
31894# `conftest.undefs', that substitutes the proper values into
31895# config.h.in to produce config.h. The first handles `#define'
31896# templates, and the second `#undef' templates.
31897# And first: Protect against being on the right side of a sed subst in
31898# config.status. Protect against being in an unquoted here document
31899# in config.status.
31900rm -f conftest.defines conftest.undefs
31901# Using a here document instead of a string reduces the quoting nightmare.
31902# Putting comments in sed scripts is not portable.
31903#
31904# `end' is used to avoid that the second main sed command (meant for
31905# 0-ary CPP macros) applies to n-ary macro definitions.
31906# See the Autoconf documentation for `clear'.
31907cat >confdef2sed.sed <<\_ACEOF
31908s/[\\&,]/\\&/g
31909s,[\\$`],\\&,g
31910t clear
31911: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031912s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031913t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031914s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031915: end
31916_ACEOF
31917# If some macros were called several times there might be several times
31918# the same #defines, which is useless. Nevertheless, we may not want to
31919# sort them, since we want the *last* AC-DEFINE to be honored.
31920uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31921sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31922rm -f confdef2sed.sed
31923
31924# This sed command replaces #undef with comments. This is necessary, for
31925# example, in the case of _POSIX_SOURCE, which is predefined and required
31926# on some systems where configure will not decide to define it.
31927cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031928s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031929_ACEOF
31930
31931# Break up conftest.defines because some shells have a limit on the size
31932# of here documents, and old seds have small limits too (100 cmds).
31933echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031934echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031935echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31936echo ' :' >>$CONFIG_STATUS
31937rm -f conftest.tail
31938while grep . conftest.defines >/dev/null
31939do
31940 # Write a limited-size here document to $tmp/defines.sed.
31941 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31942 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031943 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031944 # Work around the forget-to-reset-the-flag bug.
31945 echo 't clr' >>$CONFIG_STATUS
31946 echo ': clr' >>$CONFIG_STATUS
31947 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31948 echo 'CEOF
31949 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31950 rm -f $tmp/in
31951 mv $tmp/out $tmp/in
31952' >>$CONFIG_STATUS
31953 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31954 rm -f conftest.defines
31955 mv conftest.tail conftest.defines
31956done
31957rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031958echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031959echo >>$CONFIG_STATUS
31960
31961# Break up conftest.undefs because some shells have a limit on the size
31962# of here documents, and old seds have small limits too (100 cmds).
31963echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31964rm -f conftest.tail
31965while grep . conftest.undefs >/dev/null
31966do
31967 # Write a limited-size here document to $tmp/undefs.sed.
31968 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31969 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031970 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031971 # Work around the forget-to-reset-the-flag bug.
31972 echo 't clr' >>$CONFIG_STATUS
31973 echo ': clr' >>$CONFIG_STATUS
31974 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31975 echo 'CEOF
31976 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31977 rm -f $tmp/in
31978 mv $tmp/out $tmp/in
31979' >>$CONFIG_STATUS
31980 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31981 rm -f conftest.undefs
31982 mv conftest.tail conftest.undefs
31983done
31984rm -f conftest.undefs
31985
31986cat >>$CONFIG_STATUS <<\_ACEOF
31987 # Let's still pretend it is `configure' which instantiates (i.e., don't
31988 # use $as_me), people would be surprised to read:
31989 # /* config.h. Generated by config.status. */
31990 if test x"$ac_file" = x-; then
31991 echo "/* Generated by configure. */" >$tmp/config.h
31992 else
31993 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31994 fi
31995 cat $tmp/in >>$tmp/config.h
31996 rm -f $tmp/in
31997 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031998 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031999 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32000echo "$as_me: $ac_file is unchanged" >&6;}
32001 else
32002 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32003$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032004 X"$ac_file" : 'X\(//\)[^/]' \| \
32005 X"$ac_file" : 'X\(//\)$' \| \
32006 X"$ac_file" : 'X\(/\)' \| \
32007 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032008echo X"$ac_file" |
32009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32011 /^X\(\/\/\)$/{ s//\1/; q; }
32012 /^X\(\/\).*/{ s//\1/; q; }
32013 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032014 { if $as_mkdir_p; then
32015 mkdir -p "$ac_dir"
32016 else
32017 as_dir="$ac_dir"
32018 as_dirs=
32019 while test ! -d "$as_dir"; do
32020 as_dirs="$as_dir $as_dirs"
32021 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032023 X"$as_dir" : 'X\(//\)[^/]' \| \
32024 X"$as_dir" : 'X\(//\)$' \| \
32025 X"$as_dir" : 'X\(/\)' \| \
32026 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032027echo X"$as_dir" |
32028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32030 /^X\(\/\/\)$/{ s//\1/; q; }
32031 /^X\(\/\).*/{ s//\1/; q; }
32032 s/.*/./; q'`
32033 done
32034 test ! -n "$as_dirs" || mkdir $as_dirs
32035 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32036echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32037 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032038
32039 rm -f $ac_file
32040 mv $tmp/config.h $ac_file
32041 fi
32042 else
32043 cat $tmp/config.h
32044 rm -f $tmp/config.h
32045 fi
32046done
32047_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032048cat >>$CONFIG_STATUS <<\_ACEOF
32049
32050#
32051# CONFIG_COMMANDS section.
32052#
32053for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32054 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32055 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32056 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32057$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032058 X"$ac_dest" : 'X\(//\)[^/]' \| \
32059 X"$ac_dest" : 'X\(//\)$' \| \
32060 X"$ac_dest" : 'X\(/\)' \| \
32061 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032062echo X"$ac_dest" |
32063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32065 /^X\(\/\/\)$/{ s//\1/; q; }
32066 /^X\(\/\).*/{ s//\1/; q; }
32067 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032068 { if $as_mkdir_p; then
32069 mkdir -p "$ac_dir"
32070 else
32071 as_dir="$ac_dir"
32072 as_dirs=
32073 while test ! -d "$as_dir"; do
32074 as_dirs="$as_dir $as_dirs"
32075 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32076$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32077 X"$as_dir" : 'X\(//\)[^/]' \| \
32078 X"$as_dir" : 'X\(//\)$' \| \
32079 X"$as_dir" : 'X\(/\)' \| \
32080 . : '\(.\)' 2>/dev/null ||
32081echo X"$as_dir" |
32082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32084 /^X\(\/\/\)$/{ s//\1/; q; }
32085 /^X\(\/\).*/{ s//\1/; q; }
32086 s/.*/./; q'`
32087 done
32088 test ! -n "$as_dirs" || mkdir $as_dirs
32089 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32090echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32091 { (exit 1); exit 1; }; }; }
32092
John Criswellc764fbc2003-09-06 15:17:13 +000032093 ac_builddir=.
32094
32095if test "$ac_dir" != .; then
32096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32097 # A "../" for each directory in $ac_dir_suffix.
32098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32099else
32100 ac_dir_suffix= ac_top_builddir=
32101fi
32102
32103case $srcdir in
32104 .) # No --srcdir option. We are building in place.
32105 ac_srcdir=.
32106 if test -z "$ac_top_builddir"; then
32107 ac_top_srcdir=.
32108 else
32109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32110 fi ;;
32111 [\\/]* | ?:[\\/]* ) # Absolute path.
32112 ac_srcdir=$srcdir$ac_dir_suffix;
32113 ac_top_srcdir=$srcdir ;;
32114 *) # Relative path.
32115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32117esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032118
32119# Do not use `cd foo && pwd` to compute absolute paths, because
32120# the directories may not exist.
32121case `pwd` in
32122.) ac_abs_builddir="$ac_dir";;
32123*)
32124 case "$ac_dir" in
32125 .) ac_abs_builddir=`pwd`;;
32126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32127 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32128 esac;;
32129esac
32130case $ac_abs_builddir in
32131.) ac_abs_top_builddir=${ac_top_builddir}.;;
32132*)
32133 case ${ac_top_builddir}. in
32134 .) ac_abs_top_builddir=$ac_abs_builddir;;
32135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32137 esac;;
32138esac
32139case $ac_abs_builddir in
32140.) ac_abs_srcdir=$ac_srcdir;;
32141*)
32142 case $ac_srcdir in
32143 .) ac_abs_srcdir=$ac_abs_builddir;;
32144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32146 esac;;
32147esac
32148case $ac_abs_builddir in
32149.) ac_abs_top_srcdir=$ac_top_srcdir;;
32150*)
32151 case $ac_top_srcdir in
32152 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32155 esac;;
32156esac
John Criswellc764fbc2003-09-06 15:17:13 +000032157
32158
32159 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32160echo "$as_me: executing $ac_dest commands" >&6;}
32161 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032162 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32163 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32164 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32165 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32166 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32167 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32168 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32169 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32170 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32171 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32172 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32173 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32174 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32175 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32176 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32177 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32178 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32179 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32180 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32181 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032182 esac
32183done
32184_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032185
32186cat >>$CONFIG_STATUS <<\_ACEOF
32187
32188{ (exit 0); exit 0; }
32189_ACEOF
32190chmod +x $CONFIG_STATUS
32191ac_clean_files=$ac_clean_files_save
32192
32193
32194# configure is writing to config.log, and then calls config.status.
32195# config.status does its own redirection, appending to config.log.
32196# Unfortunately, on DOS this fails, as config.log is still kept open
32197# by configure, so config.status won't be able to write to it; its
32198# output is simply discarded. So we exec the FD to /dev/null,
32199# effectively closing config.log, so it can be properly (re)opened and
32200# appended to by config.status. When coming back to configure, we
32201# need to make the FD available again.
32202if test "$no_create" != yes; then
32203 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032204 ac_config_status_args=
32205 test "$silent" = yes &&
32206 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032207 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032209 exec 5>>config.log
32210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32211 # would make configure fail if this is the last instruction.
32212 $ac_cs_success || { (exit 1); exit 1; }
32213fi
32214
John Criswell12399a12003-09-30 15:55:44 +000032215#
32216# CONFIG_SUBDIRS section.
32217#
32218if test "$no_recursion" != yes; then
32219
32220 # Remove --cache-file and --srcdir arguments so they do not pile up.
32221 ac_sub_configure_args=
32222 ac_prev=
32223 for ac_arg in $ac_configure_args; do
32224 if test -n "$ac_prev"; then
32225 ac_prev=
32226 continue
32227 fi
32228 case $ac_arg in
32229 -cache-file | --cache-file | --cache-fil | --cache-fi \
32230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32231 ac_prev=cache_file ;;
32232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32234 | --c=*)
32235 ;;
32236 --config-cache | -C)
32237 ;;
32238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32239 ac_prev=srcdir ;;
32240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32241 ;;
32242 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32243 ac_prev=prefix ;;
32244 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32245 ;;
32246 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32247 esac
32248 done
32249
32250 # Always prepend --prefix to ensure using the same prefix
32251 # in subdir configurations.
32252 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32253
32254 ac_popdir=`pwd`
32255 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32256
32257 # Do not complain, so a configure script can configure whichever
32258 # parts of a large source tree are present.
32259 test -d $srcdir/$ac_dir || continue
32260
32261 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32262echo "$as_me: configuring in $ac_dir" >&6;}
32263 { if $as_mkdir_p; then
32264 mkdir -p "$ac_dir"
32265 else
32266 as_dir="$ac_dir"
32267 as_dirs=
32268 while test ! -d "$as_dir"; do
32269 as_dirs="$as_dir $as_dirs"
32270 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32271$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032272 X"$as_dir" : 'X\(//\)[^/]' \| \
32273 X"$as_dir" : 'X\(//\)$' \| \
32274 X"$as_dir" : 'X\(/\)' \| \
32275 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032276echo X"$as_dir" |
32277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32279 /^X\(\/\/\)$/{ s//\1/; q; }
32280 /^X\(\/\).*/{ s//\1/; q; }
32281 s/.*/./; q'`
32282 done
32283 test ! -n "$as_dirs" || mkdir $as_dirs
32284 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32285echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32286 { (exit 1); exit 1; }; }; }
32287
32288 ac_builddir=.
32289
32290if test "$ac_dir" != .; then
32291 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32292 # A "../" for each directory in $ac_dir_suffix.
32293 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32294else
32295 ac_dir_suffix= ac_top_builddir=
32296fi
32297
32298case $srcdir in
32299 .) # No --srcdir option. We are building in place.
32300 ac_srcdir=.
32301 if test -z "$ac_top_builddir"; then
32302 ac_top_srcdir=.
32303 else
32304 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32305 fi ;;
32306 [\\/]* | ?:[\\/]* ) # Absolute path.
32307 ac_srcdir=$srcdir$ac_dir_suffix;
32308 ac_top_srcdir=$srcdir ;;
32309 *) # Relative path.
32310 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32311 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32312esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032313
32314# Do not use `cd foo && pwd` to compute absolute paths, because
32315# the directories may not exist.
32316case `pwd` in
32317.) ac_abs_builddir="$ac_dir";;
32318*)
32319 case "$ac_dir" in
32320 .) ac_abs_builddir=`pwd`;;
32321 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32322 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32323 esac;;
32324esac
32325case $ac_abs_builddir in
32326.) ac_abs_top_builddir=${ac_top_builddir}.;;
32327*)
32328 case ${ac_top_builddir}. in
32329 .) ac_abs_top_builddir=$ac_abs_builddir;;
32330 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32331 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32332 esac;;
32333esac
32334case $ac_abs_builddir in
32335.) ac_abs_srcdir=$ac_srcdir;;
32336*)
32337 case $ac_srcdir in
32338 .) ac_abs_srcdir=$ac_abs_builddir;;
32339 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32340 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32341 esac;;
32342esac
32343case $ac_abs_builddir in
32344.) ac_abs_top_srcdir=$ac_top_srcdir;;
32345*)
32346 case $ac_top_srcdir in
32347 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32348 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32349 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32350 esac;;
32351esac
John Criswell12399a12003-09-30 15:55:44 +000032352
32353
32354 cd $ac_dir
32355
32356 # Check for guested configure; otherwise get Cygnus style configure.
32357 if test -f $ac_srcdir/configure.gnu; then
32358 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32359 elif test -f $ac_srcdir/configure; then
32360 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32361 elif test -f $ac_srcdir/configure.in; then
32362 ac_sub_configure=$ac_configure
32363 else
32364 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32365echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32366 ac_sub_configure=
32367 fi
32368
32369 # The recursion is here.
32370 if test -n "$ac_sub_configure"; then
32371 # Make the cache file name correct relative to the subdirectory.
32372 case $cache_file in
32373 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32374 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032375 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032376 esac
32377
32378 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32379echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32380 # The eval makes quoting arguments work.
32381 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032382 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32383 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032384echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32385 { (exit 1); exit 1; }; }
32386 fi
32387
32388 cd $ac_popdir
32389 done
32390fi
32391
Brian Gaekef3b24102003-11-16 18:38:14 +000032392
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032393if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032394 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32395echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032396 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32397echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32398 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32399echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32400 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32401echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32402 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32403echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032404fi