blob: e5fcc89ce38b0aa21f196c2b9c3fd0ac764f0223 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer78ba11d2005-02-16 16:21:00 +00003# Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
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#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencer78ba11d2005-02-16 16:21:00 +0000428PACKAGE_VERSION='1.5cvs'
429PACKAGE_STRING='llvm 1.5cvs'
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"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
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 Spencer945de9b2005-04-22 07:27:28 +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 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 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
Reid Spencer78ba11d2005-02-16 16:21:00 +0000968\`configure' configures llvm 1.5cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencer78ba11d2005-02-16 16:21:00 +00001030 short | recursive ) echo "Configuration of llvm 1.5cvs:";;
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 Spencer99d1fcc2005-04-22 17:02:18 +00001040 --enable-target Build specific host targets:
1041 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001042 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001043 --enable-shared[=PKGS]
1044 build shared libraries [default=yes]
1045 --enable-static[=PKGS]
1046 build static libraries [default=yes]
1047 --enable-fast-install[=PKGS]
1048 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001049 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001050
1051Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001054 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1055 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001056 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001057 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1058 --with-pic try to use only PIC/non-PIC objects [default=use
1059 both]
1060 --with-tags[=TAGS]
1061 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001062
1063Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001064 CC C compiler command
1065 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001066 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1067 nonstandard directory <lib dir>
1068 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001070 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001071 CXX C++ compiler command
1072 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001073 CXXCPP C++ preprocessor
1074 F77 Fortran 77 compiler command
1075 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001076
1077Use these variables to override the choices made by `configure' or to help
1078it to find libraries and programs with nonstandard names/locations.
1079
1080Report bugs to <llvmbugs@cs.uiuc.edu>.
1081_ACEOF
1082fi
1083
1084if test "$ac_init_help" = "recursive"; then
1085 # If there are subdirs, report their specific --help.
1086 ac_popdir=`pwd`
1087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088 test -d $ac_dir || continue
1089 ac_builddir=.
1090
1091if test "$ac_dir" != .; then
1092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093 # A "../" for each directory in $ac_dir_suffix.
1094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095else
1096 ac_dir_suffix= ac_top_builddir=
1097fi
1098
1099case $srcdir in
1100 .) # No --srcdir option. We are building in place.
1101 ac_srcdir=.
1102 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=.
1104 else
1105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 fi ;;
1107 [\\/]* | ?:[\\/]* ) # Absolute path.
1108 ac_srcdir=$srcdir$ac_dir_suffix;
1109 ac_top_srcdir=$srcdir ;;
1110 *) # Relative path.
1111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001114
1115# Do not use `cd foo && pwd` to compute absolute paths, because
1116# the directories may not exist.
1117case `pwd` in
1118.) ac_abs_builddir="$ac_dir";;
1119*)
1120 case "$ac_dir" in
1121 .) ac_abs_builddir=`pwd`;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_builddir=${ac_top_builddir}.;;
1128*)
1129 case ${ac_top_builddir}. in
1130 .) ac_abs_top_builddir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_srcdir=$ac_srcdir;;
1137*)
1138 case $ac_srcdir in
1139 .) ac_abs_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_srcdir=$ac_top_srcdir;;
1146*)
1147 case $ac_top_srcdir in
1148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 esac;;
1152esac
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 cd $ac_dir
1155 # Check for guested configure; otherwise get Cygnus style configure.
1156 if test -f $ac_srcdir/configure.gnu; then
1157 echo
1158 $SHELL $ac_srcdir/configure.gnu --help=recursive
1159 elif test -f $ac_srcdir/configure; then
1160 echo
1161 $SHELL $ac_srcdir/configure --help=recursive
1162 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001163 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001164 echo
1165 $ac_configure --help
1166 else
1167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 fi
1169 cd $ac_popdir
1170 done
1171fi
1172
1173test -n "$ac_init_help" && exit 0
1174if $ac_init_version; then
1175 cat <<\_ACEOF
Reid Spencer78ba11d2005-02-16 16:21:00 +00001176llvm configure 1.5cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001177generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001178
Reid Spencer2706f8c2004-09-19 23:53:36 +00001179Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001180This configure script is free software; the Free Software Foundation
1181gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001182
1183$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001184_ACEOF
1185 exit 0
1186fi
1187exec 5>config.log
1188cat >&5 <<_ACEOF
1189This file contains any messages produced by compilers while
1190running configure, to aid debugging if configure makes a mistake.
1191
Reid Spencer78ba11d2005-02-16 16:21:00 +00001192It was created by llvm $as_me 1.5cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001193generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001194
1195 $ $0 $@
1196
1197_ACEOF
1198{
1199cat <<_ASUNAME
1200## --------- ##
1201## Platform. ##
1202## --------- ##
1203
1204hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209
1210/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1212
1213/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1214/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1215/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1217/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1218/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1219/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1220
1221_ASUNAME
1222
1223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224for as_dir in $PATH
1225do
1226 IFS=$as_save_IFS
1227 test -z "$as_dir" && as_dir=.
1228 echo "PATH: $as_dir"
1229done
1230
1231} >&5
1232
1233cat >&5 <<_ACEOF
1234
1235
1236## ----------- ##
1237## Core tests. ##
1238## ----------- ##
1239
1240_ACEOF
1241
1242
1243# Keep a trace of the command line.
1244# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001245# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001246# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001247# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001248ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001249ac_configure_args0=
1250ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001251ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001252ac_must_keep_next=false
1253for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001254do
John Criswell0c38eaf2003-09-10 15:17:25 +00001255 for ac_arg
1256 do
1257 case $ac_arg in
1258 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1261 continue ;;
1262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 esac
1265 case $ac_pass in
1266 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267 2)
1268 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001270 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001271 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001272 case $ac_arg in
1273 *=* | --config-cache | -C | -disable-* | --disable-* \
1274 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276 | -with-* | --with-* | -without-* | --without-* | --x)
1277 case "$ac_configure_args0 " in
1278 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 esac
1280 ;;
1281 -* ) ac_must_keep_next=true ;;
1282 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001283 fi
1284 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285 # Get rid of the leading space.
1286 ac_sep=" "
1287 ;;
1288 esac
1289 done
John Criswell7a73b802003-06-30 21:59:07 +00001290done
John Criswell0c38eaf2003-09-10 15:17:25 +00001291$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292$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 +00001293
1294# When interrupted or exit'd, cleanup temporary files, and complete
1295# config.log. We remove comments because anyway the quotes in there
1296# would cause problems or look ugly.
1297# WARNING: Be sure not to use single quotes in there, as some shells,
1298# such as our DU 5.0 friend, will then `close' the trap.
1299trap 'exit_status=$?
1300 # Save into config.log some information that might help in debugging.
1301 {
1302 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001303
John Criswell7a73b802003-06-30 21:59:07 +00001304 cat <<\_ASBOX
1305## ---------------- ##
1306## Cache variables. ##
1307## ---------------- ##
1308_ASBOX
1309 echo
1310 # The following way of writing the cache mishandles newlines in values,
1311{
1312 (set) 2>&1 |
1313 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 *ac_space=\ *)
1315 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001316 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001318 ;;
1319 *)
1320 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001321 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001322 ;;
1323 esac;
1324}
1325 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001326
1327 cat <<\_ASBOX
1328## ----------------- ##
1329## Output variables. ##
1330## ----------------- ##
1331_ASBOX
1332 echo
1333 for ac_var in $ac_subst_vars
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1339
1340 if test -n "$ac_subst_files"; then
1341 cat <<\_ASBOX
1342## ------------- ##
1343## Output files. ##
1344## ------------- ##
1345_ASBOX
1346 echo
1347 for ac_var in $ac_subst_files
1348 do
1349 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001350 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001351 done | sort
1352 echo
1353 fi
1354
John Criswell7a73b802003-06-30 21:59:07 +00001355 if test -s confdefs.h; then
1356 cat <<\_ASBOX
1357## ----------- ##
1358## confdefs.h. ##
1359## ----------- ##
1360_ASBOX
1361 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001362 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001363 echo
1364 fi
1365 test "$ac_signal" != 0 &&
1366 echo "$as_me: caught signal $ac_signal"
1367 echo "$as_me: exit $exit_status"
1368 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001369 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001370 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 exit $exit_status
1372 ' 0
1373for ac_signal in 1 2 13 15; do
1374 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375done
1376ac_signal=0
1377
1378# confdefs.h avoids OS command line length limits that DEFS can exceed.
1379rm -rf conftest* confdefs.h
1380# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381echo >confdefs.h
1382
1383# Predefined preprocessor variables.
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_NAME "$PACKAGE_NAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_VERSION "$PACKAGE_VERSION"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_STRING "$PACKAGE_STRING"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407_ACEOF
1408
1409
1410# Let the site file select an alternate cache file if it wants to.
1411# Prefer explicitly selected file to automatically selected ones.
1412if test -z "$CONFIG_SITE"; then
1413 if test "x$prefix" != xNONE; then
1414 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415 else
1416 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 fi
1418fi
1419for ac_site_file in $CONFIG_SITE; do
1420 if test -r "$ac_site_file"; then
1421 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422echo "$as_me: loading site script $ac_site_file" >&6;}
1423 sed 's/^/| /' "$ac_site_file" >&5
1424 . "$ac_site_file"
1425 fi
1426done
1427
1428if test -r "$cache_file"; then
1429 # Some versions of bash will fail to source /dev/null (special
1430 # files actually), so we avoid doing that.
1431 if test -f "$cache_file"; then
1432 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433echo "$as_me: loading cache $cache_file" >&6;}
1434 case $cache_file in
1435 [\\/]* | ?:[\\/]* ) . $cache_file;;
1436 *) . ./$cache_file;;
1437 esac
1438 fi
1439else
1440 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441echo "$as_me: creating cache $cache_file" >&6;}
1442 >$cache_file
1443fi
1444
1445# Check that the precious variables saved in the cache have kept the same
1446# value.
1447ac_cache_corrupted=false
1448for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001449 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451 eval ac_new_set=\$ac_env_${ac_var}_set
1452 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453 eval ac_new_val="\$ac_env_${ac_var}_value"
1454 case $ac_old_set,$ac_new_set in
1455 set,)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,set)
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1463 ,);;
1464 *)
1465 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001466 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001467echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001469echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001471echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001472 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001473 fi;;
1474 esac
1475 # Pass precious variables to config.status.
1476 if test "$ac_new_set" = set; then
1477 case $ac_new_val in
1478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480 *) ac_arg=$ac_var=$ac_new_val ;;
1481 esac
1482 case " $ac_configure_args " in
1483 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1484 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 esac
1486 fi
1487done
1488if $ac_cache_corrupted; then
1489 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493 { (exit 1); exit 1; }; }
1494fi
1495
1496ac_ext=c
1497ac_cpp='$CPP $CPPFLAGS'
1498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501
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
John Criswell0c38eaf2003-09-10 15:17:25 +00001528
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1530
1531
1532
1533
1534
1535
1536
John Criswell7a73b802003-06-30 21:59:07 +00001537ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001538for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001539 if test -f $ac_dir/install-sh; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/install-sh -c"
1542 break
1543 elif test -f $ac_dir/install.sh; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/install.sh -c"
1546 break
1547 elif test -f $ac_dir/shtool; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/shtool install -c"
1550 break
1551 fi
1552done
1553if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001554 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1555echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001556 { (exit 1); exit 1; }; }
1557fi
1558ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561
John Criswell392aaa32003-07-22 19:18:09 +00001562
Reid Spencer2706f8c2004-09-19 23:53:36 +00001563if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001564 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1565 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001566echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1567 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001568 fi
John Criswell93e1c722003-09-15 17:04:06 +00001569fi
1570
John Criswell33a911a2003-11-25 20:36:46 +00001571for i in `ls ${srcdir}/projects`
1572do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001573 if test -d ${srcdir}/projects/${i} ; then
1574 case ${i} in
1575 "CVS") ;;
1576 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001577
Reid Spencer4d68ba22004-09-07 16:35:45 +00001578subdirs="$subdirs projects/sample"
1579 ;;
1580 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001581
Reid Spencer4d68ba22004-09-07 16:35:45 +00001582subdirs="$subdirs projects/Stacker"
1583 ;;
1584 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001585
Reid Spencer4d68ba22004-09-07 16:35:45 +00001586subdirs="$subdirs projects/llvm-test"
1587 ;;
1588 "llvm-reopt")
1589
1590subdirs="$subdirs projects/llvm-reopt"
1591;;
1592 "llvm-gcc")
1593
1594subdirs="$subdirs projects/llvm-gcc"
1595 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001596 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001597
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001598subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001599 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001600 "llvm-tv")
1601
1602subdirs="$subdirs projects/llvm-tv"
1603 ;;
1604 "llvm-fefw")
1605
1606subdirs="$subdirs projects/llvm-fefw"
1607 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001608 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001609
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001610subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001611 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001612 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001613 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1614echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001615 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001616 esac
John Criswell33a911a2003-11-25 20:36:46 +00001617 fi
1618done
John Criswell559a6c12003-09-30 16:31:48 +00001619
John Criswell7a73b802003-06-30 21:59:07 +00001620
1621# Make sure we can run config.sub.
1622$ac_config_sub sun4 >/dev/null 2>&1 ||
1623 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1624echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627echo "$as_me:$LINENO: checking build system type" >&5
1628echo $ECHO_N "checking build system type... $ECHO_C" >&6
1629if test "${ac_cv_build+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 ac_cv_build_alias=$build_alias
1633test -z "$ac_cv_build_alias" &&
1634 ac_cv_build_alias=`$ac_config_guess`
1635test -z "$ac_cv_build_alias" &&
1636 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1637echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1638 { (exit 1); exit 1; }; }
1639ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1641echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1643
1644fi
1645echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1646echo "${ECHO_T}$ac_cv_build" >&6
1647build=$ac_cv_build
1648build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653echo "$as_me:$LINENO: checking host system type" >&5
1654echo $ECHO_N "checking host system type... $ECHO_C" >&6
1655if test "${ac_cv_host+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 ac_cv_host_alias=$host_alias
1659test -z "$ac_cv_host_alias" &&
1660 ac_cv_host_alias=$ac_cv_build_alias
1661ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1662 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1663echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1664 { (exit 1); exit 1; }; }
1665
1666fi
1667echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1668echo "${ECHO_T}$ac_cv_host" >&6
1669host=$ac_cv_host
1670host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1671host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1672host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673
1674
1675echo "$as_me:$LINENO: checking target system type" >&5
1676echo $ECHO_N "checking target system type... $ECHO_C" >&6
1677if test "${ac_cv_target+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679else
1680 ac_cv_target_alias=$target_alias
1681test "x$ac_cv_target_alias" = "x" &&
1682 ac_cv_target_alias=$ac_cv_host_alias
1683ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1684 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1685echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1686 { (exit 1); exit 1; }; }
1687
1688fi
1689echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1690echo "${ECHO_T}$ac_cv_target" >&6
1691target=$ac_cv_target
1692target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1693target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1694target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1695
1696
1697# The aliases save the names the user supplied, while $host etc.
1698# will get canonicalized.
1699test -n "$target_alias" &&
1700 test "$program_prefix$program_suffix$program_transform_name" = \
1701 NONENONEs,x,x, &&
1702 program_prefix=${target_alias}-
1703
Reid Spencer7b3e8512004-12-24 06:29:05 +00001704echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1705echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1706if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001710 *-*-aix*)
1711 llvm_cv_os_type="AIX"
1712 llvm_cv_platform_type="Unix" ;;
1713 *-*-cygwin*)
1714 llvm_cv_os_type="Cygwin"
1715 llvm_cv_platform_type="Unix" ;;
1716 *-*-darwin*)
1717 llvm_cv_os_type="Darwin"
1718 llvm_cv_platform_type="Unix" ;;
1719 *-*-freebsd*)
1720 llvm_cv_os_type="FreeBSD"
1721 llvm_cv_platform_type="Unix" ;;
1722 *-*-interix*)
1723 llvm_cv_os_type="Interix"
1724 llvm_cv_platform_type="Unix" ;;
1725 *-*-linux*)
1726 llvm_cv_os_type="Linux"
1727 llvm_cv_platform_type="Unix" ;;
1728 *-*-solaris*)
1729 llvm_cv_os_type="SunOS"
1730 llvm_cv_platform_type="Unix" ;;
1731 *-*-win32*)
1732 llvm_cv_os_type="Win32"
1733 llvm_cv_platform_type="Win32" ;;
1734 *-*-mingw*)
1735 llvm_cv_os_type="MingW"
1736 llvm_cv_platform_type="Win32" ;;
1737 *)
1738 llvm_cv_os_type="Unknown"
1739 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001740esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001741fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001742echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1743echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001744
Reid Spencer7b3e8512004-12-24 06:29:05 +00001745if test "$llvm_cv_os_type" = "Unknown" ; then
1746 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1747echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001748 { (exit 1); exit 1; }; }
1749fi
1750
Reid Spencer7b3e8512004-12-24 06:29:05 +00001751OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001752
1753
Reid Spencer7b3e8512004-12-24 06:29:05 +00001754case $llvm_cv_platform_type in
1755 Unix)
1756
1757cat >>confdefs.h <<\_ACEOF
1758#define LLVM_ON_UNIX 1
1759_ACEOF
1760
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001761 LLVM_ON_UNIX=1
1762
1763 LLVM_ON_WIN32=0
1764
Reid Spencer7b3e8512004-12-24 06:29:05 +00001765 ;;
1766 Win32)
1767
1768cat >>confdefs.h <<\_ACEOF
1769#define LLVM_ON_WIN32 1
1770_ACEOF
1771
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001772 LLVM_ON_UNIX=0
1773
1774 LLVM_ON_WIN32=1
1775
Reid Spencer7b3e8512004-12-24 06:29:05 +00001776 ;;
1777esac
1778
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001779case $target in
1780 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1781
1782 ;;
1783esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001784
1785echo "$as_me:$LINENO: checking target architecture" >&5
1786echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001787if test "${llvm_cv_target_arch+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001791 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001792 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001793 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1794 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001795 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001796 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001797 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001798esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001799fi
1800echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1801echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001802
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001803if test "$llvm_cv_target_arch" = "Unknown" ; then
1804 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1805echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1806fi
John Criswell76595452003-07-01 22:07:39 +00001807
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001808ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001809
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001810
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001811ac_ext=c
1812ac_cpp='$CPP $CPPFLAGS'
1813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001816if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818set dummy ${ac_tool_prefix}gcc; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826else
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838done
1839done
1840
1841fi
1842fi
1843CC=$ac_cv_prog_CC
1844if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846echo "${ECHO_T}$CC" >&6
1847else
1848 echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852fi
1853if test -z "$ac_cv_prog_CC"; then
1854 ac_ct_CC=$CC
1855 # Extract the first word of "gcc", so it can be a program name with args.
1856set dummy gcc; ac_word=$2
1857echo "$as_me:$LINENO: checking for $ac_word" >&5
1858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864else
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="gcc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876done
1877done
1878
1879fi
1880fi
1881ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884echo "${ECHO_T}$ac_ct_CC" >&6
1885else
1886 echo "$as_me:$LINENO: result: no" >&5
1887echo "${ECHO_T}no" >&6
1888fi
1889
1890 CC=$ac_ct_CC
1891else
1892 CC="$ac_cv_prog_CC"
1893fi
1894
1895if test -z "$CC"; then
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898set dummy ${ac_tool_prefix}cc; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC="${ac_tool_prefix}cc"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1917 fi
1918done
1919done
1920
1921fi
1922fi
1923CC=$ac_cv_prog_CC
1924if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926echo "${ECHO_T}$CC" >&6
1927else
1928 echo "$as_me:$LINENO: result: no" >&5
1929echo "${ECHO_T}no" >&6
1930fi
1931
1932fi
1933if test -z "$ac_cv_prog_CC"; then
1934 ac_ct_CC=$CC
1935 # Extract the first word of "cc", so it can be a program name with args.
1936set dummy cc; ac_word=$2
1937echo "$as_me:$LINENO: checking for $ac_word" >&5
1938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941else
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944else
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1955 fi
1956done
1957done
1958
1959fi
1960fi
1961ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964echo "${ECHO_T}$ac_ct_CC" >&6
1965else
1966 echo "$as_me:$LINENO: result: no" >&5
1967echo "${ECHO_T}no" >&6
1968fi
1969
1970 CC=$ac_ct_CC
1971else
1972 CC="$ac_cv_prog_CC"
1973fi
1974
1975fi
1976if test -z "$CC"; then
1977 # Extract the first word of "cc", so it can be a program name with args.
1978set dummy cc; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
1987 ac_prog_rejected=no
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996 ac_prog_rejected=yes
1997 continue
1998 fi
1999 ac_cv_prog_CC="cc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003done
2004done
2005
2006if test $ac_prog_rejected = yes; then
2007 # We found a bogon in the path, so make sure we never use it.
2008 set dummy $ac_cv_prog_CC
2009 shift
2010 if test $# != 0; then
2011 # We chose a different compiler from the bogus one.
2012 # However, it has the same basename, so the bogon will be chosen
2013 # first if we set CC to just the basename; use the full file name.
2014 shift
2015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016 fi
2017fi
2018fi
2019fi
2020CC=$ac_cv_prog_CC
2021if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023echo "${ECHO_T}$CC" >&6
2024else
2025 echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6
2027fi
2028
2029fi
2030if test -z "$CC"; then
2031 if test -n "$ac_tool_prefix"; then
2032 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002033 do
2034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055done
2056done
2057
2058fi
2059fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060CC=$ac_cv_prog_CC
2061if test -n "$CC"; then
2062 echo "$as_me:$LINENO: result: $CC" >&5
2063echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002064else
2065 echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002070 done
2071fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072if test -z "$CC"; then
2073 ac_ct_CC=$CC
2074 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002075do
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077set dummy $ac_prog; ac_word=$2
2078echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002093 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097done
2098done
2099
2100fi
2101fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
2104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002106else
2107 echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6
2109fi
2110
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002111 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002112done
John Criswell7a73b802003-06-30 21:59:07 +00002113
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002114 CC=$ac_ct_CC
2115fi
2116
John Criswell7a73b802003-06-30 21:59:07 +00002117fi
2118
2119
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2125
John Criswell7a73b802003-06-30 21:59:07 +00002126# Provide some information about the compiler.
2127echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002128 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002129ac_compiler=`set X $ac_compile; echo $2`
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131 (eval $ac_compiler --version </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136 (eval $ac_compiler -v </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141 (eval $ac_compiler -V </dev/null >&5) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145
2146cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002147/* confdefs.h. */
2148_ACEOF
2149cat confdefs.h >>conftest.$ac_ext
2150cat >>conftest.$ac_ext <<_ACEOF
2151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002152
John Criswell7a73b802003-06-30 21:59:07 +00002153int
2154main ()
2155{
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002162ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002163# Try to create an executable without -o first, disregard a.out.
2164# It will help us diagnose broken compilers, and finding out an intuition
2165# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002166echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002168ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170 (eval $ac_link_default) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # Find the output, starting from the most likely. This scheme is
2175# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176# resort.
2177
2178# Be careful to initialize this variable, since it used to be cached.
2179# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002181# b.out is created by i960 compilers.
2182for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183do
2184 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002185 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002188 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 # This is the source file.
2190 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 # We found the default executable, but exeext='' is most
2193 # certainly right.
2194 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002195 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 # FIXME: I believe we export ac_cv_exeext for Libtool,
2198 # but it would be cool to find out if it's true. Does anybody
2199 # maintain Libtool? --akim.
2200 export ac_cv_exeext
2201 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002202 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002203 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002204 esac
2205done
2206else
2207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002208sed 's/^/| /' conftest.$ac_ext >&5
2209
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002210{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002211See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002212echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002213See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002214 { (exit 77); exit 77; }; }
2215fi
2216
2217ac_exeext=$ac_cv_exeext
2218echo "$as_me:$LINENO: result: $ac_file" >&5
2219echo "${ECHO_T}$ac_file" >&6
2220
2221# Check the compiler produces executables we can run. If not, either
2222# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002223echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002225# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226# If not cross compiling, check that we can run a simple program.
2227if test "$cross_compiling" != yes; then
2228 if { ac_try='./$ac_file'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 cross_compiling=no
2235 else
2236 if test "$cross_compiling" = maybe; then
2237 cross_compiling=yes
2238 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002239 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002242echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002245 { (exit 1); exit 1; }; }
2246 fi
2247 fi
2248fi
2249echo "$as_me:$LINENO: result: yes" >&5
2250echo "${ECHO_T}yes" >&6
2251
John Criswell0c38eaf2003-09-10 15:17:25 +00002252rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002253ac_clean_files=$ac_clean_files_save
2254# Check the compiler produces executables we can run. If not, either
2255# the compiler is broken, or we cross compile.
2256echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259echo "${ECHO_T}$cross_compiling" >&6
2260
2261echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264 (eval $ac_link) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270# work properly (i.e., refer to `conftest.exe'), while it won't with
2271# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002272for ac_file in conftest.exe conftest conftest.*; do
2273 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002274 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002277 export ac_cv_exeext
2278 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002279 * ) break;;
2280 esac
2281done
2282else
John Criswell0c38eaf2003-09-10 15:17:25 +00002283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002287 { (exit 1); exit 1; }; }
2288fi
2289
2290rm -f conftest$ac_cv_exeext
2291echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292echo "${ECHO_T}$ac_cv_exeext" >&6
2293
2294rm -f conftest.$ac_ext
2295EXEEXT=$ac_cv_exeext
2296ac_exeext=$EXEEXT
2297echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002303/* confdefs.h. */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002308
John Criswell7a73b802003-06-30 21:59:07 +00002309int
2310main ()
2311{
2312
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317rm -f conftest.o conftest.obj
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 break;;
2328 esac
2329done
2330else
2331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002338 { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342fi
2343echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344echo "${ECHO_T}$ac_cv_objext" >&6
2345OBJEXT=$ac_cv_objext
2346ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002347echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002358
John Criswell7a73b802003-06-30 21:59:07 +00002359int
2360main ()
2361{
2362#ifndef __GNUC__
2363 choke me
2364#endif
2365
2366 ;
2367 return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_compiler_gnu=yes
2393else
2394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002395sed 's/^/| /' conftest.$ac_ext >&5
2396
John Criswell7a73b802003-06-30 21:59:07 +00002397ac_compiler_gnu=no
2398fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002401
2402fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405GCC=`test $ac_compiler_gnu = yes && echo yes`
2406ac_test_CFLAGS=${CFLAGS+set}
2407ac_save_CFLAGS=$CFLAGS
2408CFLAGS="-g"
2409echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002415/* confdefs.h. */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002420
John Criswell7a73b802003-06-30 21:59:07 +00002421int
2422main ()
2423{
2424
2425 ;
2426 return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002452else
2453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002454sed 's/^/| /' conftest.$ac_ext >&5
2455
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002459fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462if test "$ac_test_CFLAGS" = set; then
2463 CFLAGS=$ac_save_CFLAGS
2464elif test $ac_cv_prog_cc_g = yes; then
2465 if test "$GCC" = yes; then
2466 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002467 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002469 fi
2470else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 if test "$GCC" = yes; then
2472 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002473 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002475 fi
2476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482 ac_cv_prog_cc_stdc=no
2483ac_save_CC=$CC
2484cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490#include <stdarg.h>
2491#include <stdio.h>
2492#include <sys/types.h>
2493#include <sys/stat.h>
2494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2495struct buf { int x; };
2496FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497static char *e (p, i)
2498 char **p;
2499 int i;
2500{
2501 return p[i];
2502}
2503static char *f (char * (*g) (char **, int), char **p, ...)
2504{
2505 char *s;
2506 va_list v;
2507 va_start (v,p);
2508 s = g (p, va_arg (v,int));
2509 va_end (v);
2510 return s;
2511}
2512
2513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2514 function prototypes and stuff, but not '\xHH' hex character constants.
2515 These don't provoke an error unfortunately, instead are silently treated
2516 as 'x'. The following induces an error, until -std1 is added to get
2517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2518 array size at least. It's necessary to write '\x00'==0 to get something
2519 that's true only with -std1. */
2520int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521
2522int test (int i, double x);
2523struct s1 {int (*f) (int a);};
2524struct s2 {int (*f) (double a);};
2525int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526int argc;
2527char **argv;
2528int
2529main ()
2530{
2531return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536# Don't try gcc -ansi; that turns off useful extensions and
2537# breaks some systems' header files.
2538# AIX -qlanglvl=ansi
2539# Ultrix and OSF/1 -std1
2540# HP-UX 10.20 and later -Ae
2541# HP-UX older versions -Aa -D_HPUX_SOURCE
2542# SVR4 -Xc -D__EXTENSIONS__
2543for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544do
2545 CC="$ac_save_CC $ac_arg"
2546 rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_cv_prog_cc_stdc=$ac_arg
2569break
2570else
2571 echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574fi
2575rm -f conftest.err conftest.$ac_objext
2576done
2577rm -f conftest.$ac_ext conftest.$ac_objext
2578CC=$ac_save_CC
2579
2580fi
2581
2582case "x$ac_cv_prog_cc_stdc" in
2583 x|xno)
2584 echo "$as_me:$LINENO: result: none needed" >&5
2585echo "${ECHO_T}none needed" >&6 ;;
2586 *)
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590esac
2591
2592# Some people use a C++ compiler to compile C. Since we use `exit',
2593# in C++ we need to declare it. In case someone uses the same compiler
2594# for both compiling C and C++ we need to have the C++ compiler decide
2595# the declaration of exit, since it's the most demanding environment.
2596cat >conftest.$ac_ext <<_ACEOF
2597#ifndef __cplusplus
2598 choke me
2599#endif
2600_ACEOF
2601rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002624 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2629 'void exit (int);'
2630do
2631 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002632/* confdefs.h. */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002637$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002638#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002639int
2640main ()
2641{
2642exit (42);
2643 ;
2644 return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002649 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002650 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 :
2670else
2671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002672sed 's/^/| /' conftest.$ac_ext >&5
2673
John Criswell7a73b802003-06-30 21:59:07 +00002674continue
2675fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002678/* confdefs.h. */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002683$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002684int
2685main ()
2686{
2687exit (42);
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002694 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002701 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 break
2715else
2716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002717sed 's/^/| /' conftest.$ac_ext >&5
2718
John Criswell7a73b802003-06-30 21:59:07 +00002719fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002721done
2722rm -f conftest*
2723if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2727fi
2728
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729else
2730 echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733fi
2734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741
2742echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2743echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2744if test "${ac_cv_c_bigendian+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747 # See if sys/param.h defines the BYTE_ORDER macro.
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
2754#include <sys/types.h>
2755#include <sys/param.h>
2756
2757int
2758main ()
2759{
2760#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2761 bogus endian macros
2762#endif
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 # It does; now see whether it defined to BIG_ENDIAN or not.
2791cat >conftest.$ac_ext <<_ACEOF
2792/* confdefs.h. */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h. */
2797#include <sys/types.h>
2798#include <sys/param.h>
2799
2800int
2801main ()
2802{
2803#if BYTE_ORDER != BIG_ENDIAN
2804 not big endian
2805#endif
2806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>conftest.er1
2814 ac_status=$?
2815 grep -v '^ *+' conftest.er1 >conftest.err
2816 rm -f conftest.er1
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -z "$ac_c_werror_flag"
2821 || test ! -s conftest.err'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 (eval $ac_try) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 ac_cv_c_bigendian=yes
2834else
2835 echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838ac_cv_c_bigendian=no
2839fi
2840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841else
2842 echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845# It does not; compile a test program.
2846if test "$cross_compiling" = yes; then
2847 # try to guess the endianness by grepping values into an object file
2848 ac_cv_c_bigendian=unknown
2849 cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h. */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h. */
2855short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2856short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2857void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2858short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2859short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2860void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2861int
2862main ()
2863{
2864 _ascii (); _ebcdic ();
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext
2870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag"
2879 || test ! -s conftest.err'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; } &&
2885 { ac_try='test -s conftest.$ac_objext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2892 ac_cv_c_bigendian=yes
2893fi
2894if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2895 if test "$ac_cv_c_bigendian" = unknown; then
2896 ac_cv_c_bigendian=no
2897 else
2898 # finding both strings is unlikely to happen, but who knows?
2899 ac_cv_c_bigendian=unknown
2900 fi
2901fi
2902else
2903 echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915int
2916main ()
2917{
2918 /* Are we little or big endian? From Harbison&Steele. */
2919 union
2920 {
2921 long l;
2922 char c[sizeof (long)];
2923 } u;
2924 u.l = 1;
2925 exit (u.c[sizeof (long) - 1] == 1);
2926}
2927_ACEOF
2928rm -f conftest$ac_exeext
2929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_c_bigendian=no
2940else
2941 echo "$as_me: program exited with status $ac_status" >&5
2942echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945( exit $ac_status )
2946ac_cv_c_bigendian=yes
2947fi
2948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949fi
2950fi
2951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952fi
2953echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2954echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2955case $ac_cv_c_bigendian in
2956 yes)
2957 ENDIAN=big
2958 ;;
2959 no)
2960 ENDIAN=little
2961 ;;
2962 *)
2963 { { echo "$as_me:$LINENO: error: unknown endianness
2964presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2965echo "$as_me: error: unknown endianness
2966presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2967 { (exit 1); exit 1; }; } ;;
2968esac
2969
2970
2971
2972# Check whether --enable-optimized or --disable-optimized was given.
2973if test "${enable_optimized+set}" = set; then
2974 enableval="$enable_optimized"
2975
2976else
2977 enableval=no
2978fi;
2979if test ${enableval} = "no" ; then
2980 ENABLE_OPTIMIZED=
2981
2982else
2983 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2984
2985fi
2986
2987# Check whether --enable-jit or --disable-jit was given.
2988if test "${enable_jit+set}" = set; then
2989 enableval="$enable_jit"
2990
2991else
2992 enableval=default
2993fi;
2994if test ${enableval} = "no"
2995then
2996 JIT=
2997
2998else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002999 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003000 x86) JIT=TARGET_HAS_JIT=1
3001 ;;
3002 Sparc) JIT=TARGET_HAS_JIT=1
3003 ;;
3004 PowerPC) JIT=TARGET_HAS_JIT=1
3005 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003006 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003007 ;;
Reid Spencer945de9b2005-04-22 07:27:28 +00003008 Alpha) JIT=
3009 ;;
3010 IA64) JIT=
3011 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003012 *) JIT=
3013 ;;
3014 esac
3015fi
3016
Reid Spencer1f319422004-11-29 04:56:35 +00003017# Check whether --enable-doxygen or --disable-doxygen was given.
3018if test "${enable_doxygen+set}" = set; then
3019 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003020
Reid Spencer1f319422004-11-29 04:56:35 +00003021else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003022 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003023fi;
3024case "$enableval" in
3025 yes) ENABLE_DOXYGEN=1
3026 ;;
3027 no) ENABLE_DOXYGEN=0
3028 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003029 default) ENABLE_DOXYGEN=0
3030 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003031 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3032echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3033 { (exit 1); exit 1; }; } ;;
3034esac
3035
Reid Spencer945de9b2005-04-22 07:27:28 +00003036TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003037# Check whether --enable-targets or --disable-targets was given.
3038if test "${enable_targets+set}" = set; then
3039 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003040
3041else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003042 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003043fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003044case "$enableval" in
Misha Brukmanccc1c162005-04-22 18:00:34 +00003045 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003046 host-only)
3047 case "$llvm_cv_target_arch" in
3048 x86) TARGETS_TO_BUILD="X86" ;;
3049 x86_64) TARGETS_TO_BUILD="X86" ;;
3050 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3051 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3052 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3053 IA64) TARGETS_TO_BUILD="IA64" ;;
3054 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003055echo "$as_me: error: Can not set target to build" >&2;}
3056 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003057 esac
3058 ;;
3059 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3060 case "$a_target" in
3061 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3062 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3063 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3064 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3065 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3066 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3067 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3068 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3069echo "$as_me: error: Unrecognized target $a_target" >&2;}
3070 { (exit 1); exit 1; }; } ;;
3071 esac
3072 done
3073 ;;
3074esac
Reid Spencer675f0922005-04-22 17:06:18 +00003075TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003076TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3077
3078
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003079
Reid Spencer59473af2004-12-25 07:31:29 +00003080# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3081if test "${with_llvmgccdir+set}" = set; then
3082 withval="$with_llvmgccdir"
3083
3084else
3085 withval=default
3086fi;
3087case "$withval" in
3088 default) WITH_LLVMGCCDIR=default ;;
3089 /*) WITH_LLVMGCCDIR=$withval ;;
3090 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3091echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3092 { (exit 1); exit 1; }; } ;;
3093esac
3094
3095
Reid Spencer945de9b2005-04-22 07:27:28 +00003096
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3103echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3104# On Suns, sometimes $CPP names a directory.
3105if test -n "$CPP" && test -d "$CPP"; then
3106 CPP=
3107fi
3108if test -z "$CPP"; then
3109 if test "${ac_cv_prog_CPP+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112 # Double quotes because CPP needs to be expanded
3113 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3114 do
3115 ac_preproc_ok=false
3116for ac_c_preproc_warn_flag in '' yes
3117do
3118 # Use a header file that comes with gcc, so configuring glibc
3119 # with a fresh cross-compiler works.
3120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121 # <limits.h> exists even on freestanding compilers.
3122 # On the NeXT, cc -E runs the code through the compiler's parser,
3123 # not just through cpp. "Syntax error" is here to catch this case.
3124 cat >conftest.$ac_ext <<_ACEOF
3125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
3130#ifdef __STDC__
3131# include <limits.h>
3132#else
3133# include <assert.h>
3134#endif
3135 Syntax error
3136_ACEOF
3137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
3147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3148 else
3149 ac_cpp_err=
3150 fi
3151else
3152 ac_cpp_err=yes
3153fi
3154if test -z "$ac_cpp_err"; then
3155 :
3156else
3157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 # Broken: fails on valid input.
3161continue
3162fi
3163rm -f conftest.err conftest.$ac_ext
3164
3165 # OK, works on sane cases. Now check whether non-existent headers
3166 # can be detected and how.
3167 cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h. */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h. */
3173#include <ac_nonexistent.h>
3174_ACEOF
3175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev/null; then
3183 if test -s conftest.err; then
3184 ac_cpp_err=$ac_c_preproc_warn_flag
3185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3186 else
3187 ac_cpp_err=
3188 fi
3189else
3190 ac_cpp_err=yes
3191fi
3192if test -z "$ac_cpp_err"; then
3193 # Broken: success on invalid input.
3194continue
3195else
3196 echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 # Passes both tests.
3200ac_preproc_ok=:
3201break
3202fi
3203rm -f conftest.err conftest.$ac_ext
3204
3205done
3206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207rm -f conftest.err conftest.$ac_ext
3208if $ac_preproc_ok; then
3209 break
3210fi
3211
3212 done
3213 ac_cv_prog_CPP=$CPP
3214
3215fi
3216 CPP=$ac_cv_prog_CPP
3217else
3218 ac_cv_prog_CPP=$CPP
3219fi
3220echo "$as_me:$LINENO: result: $CPP" >&5
3221echo "${ECHO_T}$CPP" >&6
3222ac_preproc_ok=false
3223for ac_c_preproc_warn_flag in '' yes
3224do
3225 # Use a header file that comes with gcc, so configuring glibc
3226 # with a fresh cross-compiler works.
3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 # <limits.h> exists even on freestanding compilers.
3229 # On the NeXT, cc -E runs the code through the compiler's parser,
3230 # not just through cpp. "Syntax error" is here to catch this case.
3231 cat >conftest.$ac_ext <<_ACEOF
3232/* confdefs.h. */
3233_ACEOF
3234cat confdefs.h >>conftest.$ac_ext
3235cat >>conftest.$ac_ext <<_ACEOF
3236/* end confdefs.h. */
3237#ifdef __STDC__
3238# include <limits.h>
3239#else
3240# include <assert.h>
3241#endif
3242 Syntax error
3243_ACEOF
3244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255 else
3256 ac_cpp_err=
3257 fi
3258else
3259 ac_cpp_err=yes
3260fi
3261if test -z "$ac_cpp_err"; then
3262 :
3263else
3264 echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 # Broken: fails on valid input.
3268continue
3269fi
3270rm -f conftest.err conftest.$ac_ext
3271
3272 # OK, works on sane cases. Now check whether non-existent headers
3273 # can be detected and how.
3274 cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280#include <ac_nonexistent.h>
3281_ACEOF
3282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } >/dev/null; then
3290 if test -s conftest.err; then
3291 ac_cpp_err=$ac_c_preproc_warn_flag
3292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 else
3294 ac_cpp_err=
3295 fi
3296else
3297 ac_cpp_err=yes
3298fi
3299if test -z "$ac_cpp_err"; then
3300 # Broken: success on invalid input.
3301continue
3302else
3303 echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 # Passes both tests.
3307ac_preproc_ok=:
3308break
3309fi
3310rm -f conftest.err conftest.$ac_ext
3311
3312done
3313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3314rm -f conftest.err conftest.$ac_ext
3315if $ac_preproc_ok; then
3316 :
3317else
3318 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3319See \`config.log' for more details." >&5
3320echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3321See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3323fi
3324
John Criswell7a73b802003-06-30 21:59:07 +00003325ac_ext=c
3326ac_cpp='$CPP $CPPFLAGS'
3327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330
3331ac_ext=c
3332ac_cpp='$CPP $CPPFLAGS'
3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336if test -n "$ac_tool_prefix"; then
3337 for ac_prog in gcc
3338 do
3339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341echo "$as_me:$LINENO: checking for $ac_word" >&5
3342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343if test "${ac_cv_prog_CC+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346 if test -n "$CC"; then
3347 ac_cv_prog_CC="$CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361done
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367 echo "$as_me:$LINENO: result: $CC" >&5
3368echo "${ECHO_T}$CC" >&6
3369else
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372fi
3373
3374 test -n "$CC" && break
3375 done
3376fi
3377if test -z "$CC"; then
3378 ac_ct_CC=$CC
3379 for ac_prog in gcc
3380do
3381 # Extract the first word of "$ac_prog", so it can be a program name with args.
3382set dummy $ac_prog; ac_word=$2
3383echo "$as_me:$LINENO: checking for $ac_word" >&5
3384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388 if test -n "$ac_ct_CC"; then
3389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3390else
3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH
3393do
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398 ac_cv_prog_ac_ct_CC="$ac_prog"
3399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3401 fi
3402done
3403done
3404
3405fi
3406fi
3407ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408if test -n "$ac_ct_CC"; then
3409 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3410echo "${ECHO_T}$ac_ct_CC" >&6
3411else
3412 echo "$as_me:$LINENO: result: no" >&5
3413echo "${ECHO_T}no" >&6
3414fi
3415
3416 test -n "$ac_ct_CC" && break
3417done
3418
3419 CC=$ac_ct_CC
3420fi
3421
3422
John Criswell0c38eaf2003-09-10 15:17:25 +00003423test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3424See \`config.log' for more details." >&5
3425echo "$as_me: error: no acceptable C compiler found in \$PATH
3426See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003427 { (exit 1); exit 1; }; }
3428
3429# Provide some information about the compiler.
3430echo "$as_me:$LINENO:" \
3431 "checking for C compiler version" >&5
3432ac_compiler=`set X $ac_compile; echo $2`
3433{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3434 (eval $ac_compiler --version </dev/null >&5) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }
3438{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3439 (eval $ac_compiler -v </dev/null >&5) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }
3443{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3444 (eval $ac_compiler -V </dev/null >&5) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }
3448
3449echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3450echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3451if test "${ac_cv_c_compiler_gnu+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003460
John Criswell7a73b802003-06-30 21:59:07 +00003461int
3462main ()
3463{
3464#ifndef __GNUC__
3465 choke me
3466#endif
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472rm -f conftest.$ac_objext
3473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003474 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003475 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003481 { ac_try='test -z "$ac_c_werror_flag"
3482 || test ! -s conftest.err'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 (eval $ac_try) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; } &&
3488 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 ac_compiler_gnu=yes
3495else
3496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003497sed 's/^/| /' conftest.$ac_ext >&5
3498
John Criswell7a73b802003-06-30 21:59:07 +00003499ac_compiler_gnu=no
3500fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003502ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503
3504fi
3505echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3506echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3507GCC=`test $ac_compiler_gnu = yes && echo yes`
3508ac_test_CFLAGS=${CFLAGS+set}
3509ac_save_CFLAGS=$CFLAGS
3510CFLAGS="-g"
3511echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3512echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3513if test "${ac_cv_prog_cc_g+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515else
3516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003517/* confdefs.h. */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003522
John Criswell7a73b802003-06-30 21:59:07 +00003523int
3524main ()
3525{
3526
3527 ;
3528 return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext
3532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003533 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003534 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003540 { ac_try='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_cv_prog_cc_g=yes
3554else
3555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003556sed 's/^/| /' conftest.$ac_ext >&5
3557
John Criswell7a73b802003-06-30 21:59:07 +00003558ac_cv_prog_cc_g=no
3559fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003561fi
3562echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3563echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3564if test "$ac_test_CFLAGS" = set; then
3565 CFLAGS=$ac_save_CFLAGS
3566elif test $ac_cv_prog_cc_g = yes; then
3567 if test "$GCC" = yes; then
3568 CFLAGS="-g -O2"
3569 else
3570 CFLAGS="-g"
3571 fi
3572else
3573 if test "$GCC" = yes; then
3574 CFLAGS="-O2"
3575 else
3576 CFLAGS=
3577 fi
3578fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003579echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3580echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3581if test "${ac_cv_prog_cc_stdc+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583else
3584 ac_cv_prog_cc_stdc=no
3585ac_save_CC=$CC
3586cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003587/* confdefs.h. */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h. */
3592#include <stdarg.h>
3593#include <stdio.h>
3594#include <sys/types.h>
3595#include <sys/stat.h>
3596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597struct buf { int x; };
3598FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599static char *e (p, i)
3600 char **p;
3601 int i;
3602{
3603 return p[i];
3604}
3605static char *f (char * (*g) (char **, int), char **p, ...)
3606{
3607 char *s;
3608 va_list v;
3609 va_start (v,p);
3610 s = g (p, va_arg (v,int));
3611 va_end (v);
3612 return s;
3613}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003614
3615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616 function prototypes and stuff, but not '\xHH' hex character constants.
3617 These don't provoke an error unfortunately, instead are silently treated
3618 as 'x'. The following induces an error, until -std1 is added to get
3619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620 array size at least. It's necessary to write '\x00'==0 to get something
3621 that's true only with -std1. */
3622int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623
John Criswell0c38eaf2003-09-10 15:17:25 +00003624int test (int i, double x);
3625struct s1 {int (*f) (int a);};
3626struct s2 {int (*f) (double a);};
3627int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628int argc;
3629char **argv;
3630int
3631main ()
3632{
3633return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3634 ;
3635 return 0;
3636}
3637_ACEOF
3638# Don't try gcc -ansi; that turns off useful extensions and
3639# breaks some systems' header files.
3640# AIX -qlanglvl=ansi
3641# Ultrix and OSF/1 -std1
3642# HP-UX 10.20 and later -Ae
3643# HP-UX older versions -Aa -D_HPUX_SOURCE
3644# SVR4 -Xc -D__EXTENSIONS__
3645for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646do
3647 CC="$ac_save_CC $ac_arg"
3648 rm -f conftest.$ac_objext
3649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003650 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003651 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003657 { ac_try='test -z "$ac_c_werror_flag"
3658 || test ! -s conftest.err'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; } &&
3664 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 ac_cv_prog_cc_stdc=$ac_arg
3671break
3672else
3673 echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003677rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003678done
3679rm -f conftest.$ac_ext conftest.$ac_objext
3680CC=$ac_save_CC
3681
3682fi
3683
3684case "x$ac_cv_prog_cc_stdc" in
3685 x|xno)
3686 echo "$as_me:$LINENO: result: none needed" >&5
3687echo "${ECHO_T}none needed" >&6 ;;
3688 *)
3689 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3690echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3691 CC="$CC $ac_cv_prog_cc_stdc" ;;
3692esac
3693
John Criswell7a73b802003-06-30 21:59:07 +00003694# Some people use a C++ compiler to compile C. Since we use `exit',
3695# in C++ we need to declare it. In case someone uses the same compiler
3696# for both compiling C and C++ we need to have the C++ compiler decide
3697# the declaration of exit, since it's the most demanding environment.
3698cat >conftest.$ac_ext <<_ACEOF
3699#ifndef __cplusplus
3700 choke me
3701#endif
3702_ACEOF
3703rm -f conftest.$ac_objext
3704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003705 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003726 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003727 'extern "C" void std::exit (int) throw (); using std::exit;' \
3728 'extern "C" void std::exit (int); using std::exit;' \
3729 'extern "C" void exit (int) throw ();' \
3730 'extern "C" void exit (int);' \
3731 'void exit (int);'
3732do
3733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003734/* confdefs.h. */
3735_ACEOF
3736cat confdefs.h >>conftest.$ac_ext
3737cat >>conftest.$ac_ext <<_ACEOF
3738/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003739$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003740#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003741int
3742main ()
3743{
3744exit (42);
3745 ;
3746 return 0;
3747}
3748_ACEOF
3749rm -f conftest.$ac_objext
3750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003751 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003752 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003758 { ac_try='test -z "$ac_c_werror_flag"
3759 || test ! -s conftest.err'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 :
3772else
3773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003774sed 's/^/| /' conftest.$ac_ext >&5
3775
John Criswell7a73b802003-06-30 21:59:07 +00003776continue
3777fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003779 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003780/* confdefs.h. */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003785$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003786int
3787main ()
3788{
3789exit (42);
3790 ;
3791 return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext
3795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003796 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003797 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003803 { ac_try='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 break
3817else
3818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003819sed 's/^/| /' conftest.$ac_ext >&5
3820
John Criswell7a73b802003-06-30 21:59:07 +00003821fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003823done
3824rm -f conftest*
3825if test -n "$ac_declaration"; then
3826 echo '#ifdef __cplusplus' >>confdefs.h
3827 echo $ac_declaration >>confdefs.h
3828 echo '#endif' >>confdefs.h
3829fi
3830
3831else
3832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003833sed 's/^/| /' conftest.$ac_ext >&5
3834
John Criswell7a73b802003-06-30 21:59:07 +00003835fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003837ac_ext=c
3838ac_cpp='$CPP $CPPFLAGS'
3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003843ac_ext=cc
3844ac_cpp='$CXXCPP $CPPFLAGS'
3845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3848if test -n "$ac_tool_prefix"; then
3849 for ac_prog in $CCC g++
3850 do
3851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3853echo "$as_me:$LINENO: checking for $ac_word" >&5
3854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003858 if test -n "$CXX"; then
3859 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003863do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872done
3873done
3874
3875fi
3876fi
3877CXX=$ac_cv_prog_CXX
3878if test -n "$CXX"; then
3879 echo "$as_me:$LINENO: result: $CXX" >&5
3880echo "${ECHO_T}$CXX" >&6
3881else
3882 echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6
3884fi
3885
3886 test -n "$CXX" && break
3887 done
3888fi
3889if test -z "$CXX"; then
3890 ac_ct_CXX=$CXX
3891 for ac_prog in $CCC g++
3892do
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894set dummy $ac_prog; ac_word=$2
3895echo "$as_me:$LINENO: checking for $ac_word" >&5
3896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900 if test -n "$ac_ct_CXX"; then
3901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_CXX="$ac_prog"
3911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914done
3915done
3916
3917fi
3918fi
3919ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3920if test -n "$ac_ct_CXX"; then
3921 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3922echo "${ECHO_T}$ac_ct_CXX" >&6
3923else
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926fi
3927
3928 test -n "$ac_ct_CXX" && break
3929done
3930test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3931
3932 CXX=$ac_ct_CXX
3933fi
3934
3935
3936# Provide some information about the compiler.
3937echo "$as_me:$LINENO:" \
3938 "checking for C++ compiler version" >&5
3939ac_compiler=`set X $ac_compile; echo $2`
3940{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3941 (eval $ac_compiler --version </dev/null >&5) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }
3945{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3946 (eval $ac_compiler -v </dev/null >&5) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }
3950{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3951 (eval $ac_compiler -V </dev/null >&5) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }
3955
3956echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3957echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3958if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
John Criswell7a73b802003-06-30 21:59:07 +00003961 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003962/* confdefs.h. */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003967
3968int
3969main ()
3970{
3971#ifndef __GNUC__
3972 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003973#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003974
3975 ;
3976 return 0;
3977}
John Criswell7a73b802003-06-30 21:59:07 +00003978_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003979rm -f conftest.$ac_objext
3980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003982 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003983 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003987 (exit $ac_status); } &&
3988 { ac_try='test -z "$ac_cxx_werror_flag"
3989 || test ! -s conftest.err'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_compiler_gnu=yes
4002else
4003 echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006ac_compiler_gnu=no
4007fi
4008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4010
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4013echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4014GXX=`test $ac_compiler_gnu = yes && echo yes`
4015ac_test_CXXFLAGS=${CXXFLAGS+set}
4016ac_save_CXXFLAGS=$CXXFLAGS
4017CXXFLAGS="-g"
4018echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4019echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4020if test "${ac_cv_prog_cxx_g+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029
4030int
4031main ()
4032{
4033
4034 ;
4035 return 0;
4036}
4037_ACEOF
4038rm -f conftest.$ac_objext
4039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_cxx_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_prog_cxx_g=yes
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065ac_cv_prog_cxx_g=no
4066fi
4067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4068fi
4069echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4070echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4071if test "$ac_test_CXXFLAGS" = set; then
4072 CXXFLAGS=$ac_save_CXXFLAGS
4073elif test $ac_cv_prog_cxx_g = yes; then
4074 if test "$GXX" = yes; then
4075 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004076 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004077 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004078 fi
4079else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004080 if test "$GXX" = yes; then
4081 CXXFLAGS="-O2"
4082 else
4083 CXXFLAGS=
4084 fi
John Criswell7a73b802003-06-30 21:59:07 +00004085fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004086for ac_declaration in \
4087 '' \
4088 'extern "C" void std::exit (int) throw (); using std::exit;' \
4089 'extern "C" void std::exit (int); using std::exit;' \
4090 'extern "C" void exit (int) throw ();' \
4091 'extern "C" void exit (int);' \
4092 'void exit (int);'
4093do
4094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h. */
4100$ac_declaration
4101#include <stdlib.h>
4102int
4103main ()
4104{
4105exit (42);
4106 ;
4107 return 0;
4108}
4109_ACEOF
4110rm -f conftest.$ac_objext
4111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_cxx_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004132 :
4133else
4134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004135sed 's/^/| /' conftest.$ac_ext >&5
4136
John Criswell7a73b802003-06-30 21:59:07 +00004137continue
4138fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004140 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004146$ac_declaration
4147int
4148main ()
4149{
4150exit (42);
4151 ;
4152 return 0;
4153}
John Criswell7a73b802003-06-30 21:59:07 +00004154_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004155rm -f conftest.$ac_objext
4156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004158 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004159 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_cxx_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004177 break
John Criswell7a73b802003-06-30 21:59:07 +00004178else
4179 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004180sed 's/^/| /' conftest.$ac_ext >&5
4181
John Criswell7a73b802003-06-30 21:59:07 +00004182fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004184done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004185rm -f conftest*
4186if test -n "$ac_declaration"; then
4187 echo '#ifdef __cplusplus' >>confdefs.h
4188 echo $ac_declaration >>confdefs.h
4189 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004190fi
4191
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
John Criswell7a73b802003-06-30 21:59:07 +00004198echo "$as_me:$LINENO: checking " >&5
4199echo $ECHO_N "checking ... $ECHO_C" >&6
4200if test "${ac_cv_has_flex+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203 for ac_prog in flex lex
4204do
4205 # Extract the first word of "$ac_prog", so it can be a program name with args.
4206set dummy $ac_prog; ac_word=$2
4207echo "$as_me:$LINENO: checking for $ac_word" >&5
4208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209if test "${ac_cv_prog_LEX+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212 if test -n "$LEX"; then
4213 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_LEX="$ac_prog"
4223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226done
4227done
4228
4229fi
4230fi
4231LEX=$ac_cv_prog_LEX
4232if test -n "$LEX"; then
4233 echo "$as_me:$LINENO: result: $LEX" >&5
4234echo "${ECHO_T}$LEX" >&6
4235else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238fi
4239
4240 test -n "$LEX" && break
4241done
4242test -n "$LEX" || LEX=":"
4243
4244if test -z "$LEXLIB"
4245then
4246 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4247echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4248if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251 ac_check_lib_save_LIBS=$LIBS
4252LIBS="-lfl $LIBS"
4253cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004259
4260/* Override any gcc2 internal prototype to avoid an error. */
4261#ifdef __cplusplus
4262extern "C"
4263#endif
4264/* We use char because int might match the return type of a gcc2
4265 builtin and then its argument prototype would still apply. */
4266char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004267int
4268main ()
4269{
4270yywrap ();
4271 ;
4272 return 0;
4273}
4274_ACEOF
4275rm -f conftest.$ac_objext conftest$ac_exeext
4276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004277 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004278 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004284 { ac_try='test -z "$ac_c_werror_flag"
4285 || test ! -s conftest.err'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_lib_fl_yywrap=yes
4298else
4299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004300sed 's/^/| /' conftest.$ac_ext >&5
4301
John Criswell7a73b802003-06-30 21:59:07 +00004302ac_cv_lib_fl_yywrap=no
4303fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004304rm -f conftest.err conftest.$ac_objext \
4305 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004306LIBS=$ac_check_lib_save_LIBS
4307fi
4308echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4309echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4310if test $ac_cv_lib_fl_yywrap = yes; then
4311 LEXLIB="-lfl"
4312else
4313 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4314echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4315if test "${ac_cv_lib_l_yywrap+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317else
4318 ac_check_lib_save_LIBS=$LIBS
4319LIBS="-ll $LIBS"
4320cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004321/* confdefs.h. */
4322_ACEOF
4323cat confdefs.h >>conftest.$ac_ext
4324cat >>conftest.$ac_ext <<_ACEOF
4325/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004326
4327/* Override any gcc2 internal prototype to avoid an error. */
4328#ifdef __cplusplus
4329extern "C"
4330#endif
4331/* We use char because int might match the return type of a gcc2
4332 builtin and then its argument prototype would still apply. */
4333char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004334int
4335main ()
4336{
4337yywrap ();
4338 ;
4339 return 0;
4340}
4341_ACEOF
4342rm -f conftest.$ac_objext conftest$ac_exeext
4343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004344 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004345 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004351 { ac_try='test -z "$ac_c_werror_flag"
4352 || test ! -s conftest.err'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 ac_cv_lib_l_yywrap=yes
4365else
4366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004367sed 's/^/| /' conftest.$ac_ext >&5
4368
John Criswell7a73b802003-06-30 21:59:07 +00004369ac_cv_lib_l_yywrap=no
4370fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004371rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004373LIBS=$ac_check_lib_save_LIBS
4374fi
4375echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4376echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4377if test $ac_cv_lib_l_yywrap = yes; then
4378 LEXLIB="-ll"
4379fi
4380
4381fi
4382
4383fi
4384
4385if test "x$LEX" != "x:"; then
4386 echo "$as_me:$LINENO: checking lex output file root" >&5
4387echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4388if test "${ac_cv_prog_lex_root+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391 # The minimal lex program is just a single line: %%. But some broken lexes
4392# (Solaris, I think it was) want two %% lines, so accommodate them.
4393cat >conftest.l <<_ACEOF
4394%%
4395%%
4396_ACEOF
4397{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4398 (eval $LEX conftest.l) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }
4402if test -f lex.yy.c; then
4403 ac_cv_prog_lex_root=lex.yy
4404elif test -f lexyy.c; then
4405 ac_cv_prog_lex_root=lexyy
4406else
4407 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4408echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4409 { (exit 1); exit 1; }; }
4410fi
4411fi
4412echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4413echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4414rm -f conftest.l
4415LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4416
4417echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4418echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4419if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422 # POSIX says lex can declare yytext either as a pointer or an array; the
4423# default is implementation-dependent. Figure out which it is, since
4424# not all implementations provide the %pointer and %array declarations.
4425ac_cv_prog_lex_yytext_pointer=no
4426echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4427ac_save_LIBS=$LIBS
4428LIBS="$LIBS $LEXLIB"
4429cat >conftest.$ac_ext <<_ACEOF
4430`cat $LEX_OUTPUT_ROOT.c`
4431_ACEOF
4432rm -f conftest.$ac_objext conftest$ac_exeext
4433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004434 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004441 { ac_try='test -z "$ac_c_werror_flag"
4442 || test ! -s conftest.err'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_prog_lex_yytext_pointer=yes
4455else
4456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004457sed 's/^/| /' conftest.$ac_ext >&5
4458
John Criswell7a73b802003-06-30 21:59:07 +00004459fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004460rm -f conftest.err conftest.$ac_objext \
4461 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004462LIBS=$ac_save_LIBS
4463rm -f "${LEX_OUTPUT_ROOT}.c"
4464
4465fi
4466echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4467echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4468if test $ac_cv_prog_lex_yytext_pointer = yes; then
4469
4470cat >>confdefs.h <<\_ACEOF
4471#define YYTEXT_POINTER 1
4472_ACEOF
4473
4474fi
4475
4476fi
4477
4478fi
4479echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4480echo "${ECHO_T}$ac_cv_has_flex" >&6
4481if test "$LEX" != "flex"; then
4482 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4483echo "$as_me: error: flex not found but required" >&2;}
4484 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004485else
4486 FLEX=flex
4487
John Criswell7a73b802003-06-30 21:59:07 +00004488fi
4489
4490echo "$as_me:$LINENO: checking " >&5
4491echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004492if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 for ac_prog in 'bison -y' byacc
4496do
4497 # Extract the first word of "$ac_prog", so it can be a program name with args.
4498set dummy $ac_prog; ac_word=$2
4499echo "$as_me:$LINENO: checking for $ac_word" >&5
4500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501if test "${ac_cv_prog_YACC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 if test -n "$YACC"; then
4505 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_YACC="$ac_prog"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4517 fi
4518done
4519done
4520
4521fi
4522fi
4523YACC=$ac_cv_prog_YACC
4524if test -n "$YACC"; then
4525 echo "$as_me:$LINENO: result: $YACC" >&5
4526echo "${ECHO_T}$YACC" >&6
4527else
4528 echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
4530fi
4531
4532 test -n "$YACC" && break
4533done
4534test -n "$YACC" || YACC="yacc"
4535
John Criswell7a73b802003-06-30 21:59:07 +00004536fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004537echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4538echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004539if test "$YACC" != "bison -y"; then
4540 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4541echo "$as_me: error: bison not found but required" >&2;}
4542 { (exit 1); exit 1; }; }
4543else
Brian Gaeke12810632004-01-13 06:52:10 +00004544 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004545
4546fi
4547
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004548echo "$as_me:$LINENO: checking for GNU make" >&5
4549echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4550if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004553 llvm_cv_gnu_make_command=''
4554 for a in "$MAKE" make gmake gnumake ; do
4555 if test -z "$a" ; then continue ; fi ;
4556 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4557 then
4558 llvm_cv_gnu_make_command=$a ;
4559 break;
John Criswell47fdd832003-07-14 16:52:07 +00004560 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004561 done
John Criswell7a73b802003-06-30 21:59:07 +00004562fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004563echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4564echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4565 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4566 ifGNUmake='' ;
4567 else
4568 ifGNUmake='#' ;
4569 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4570echo "${ECHO_T}\"Not found\"" >&6;
4571 fi
John Criswell7a73b802003-06-30 21:59:07 +00004572
John Criswell7a73b802003-06-30 21:59:07 +00004573
4574echo "$as_me:$LINENO: checking whether ln -s works" >&5
4575echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4576LN_S=$as_ln_s
4577if test "$LN_S" = "ln -s"; then
4578 echo "$as_me:$LINENO: result: yes" >&5
4579echo "${ECHO_T}yes" >&6
4580else
4581 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4582echo "${ECHO_T}no, using $LN_S" >&6
4583fi
4584
Reid Spencer8a2d4712004-12-16 17:48:14 +00004585# Extract the first word of "cmp", so it can be a program name with args.
4586set dummy cmp; ac_word=$2
4587echo "$as_me:$LINENO: checking for $ac_word" >&5
4588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4589if test "${ac_cv_path_CMP+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591else
4592 case $CMP in
4593 [\\/]* | ?:[\\/]*)
4594 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4595 ;;
4596 *)
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608done
4609done
4610
4611 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4612 ;;
4613esac
4614fi
4615CMP=$ac_cv_path_CMP
4616
4617if test -n "$CMP"; then
4618 echo "$as_me:$LINENO: result: $CMP" >&5
4619echo "${ECHO_T}$CMP" >&6
4620else
4621 echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6
4623fi
4624
4625# Extract the first word of "cp", so it can be a program name with args.
4626set dummy cp; ac_word=$2
4627echo "$as_me:$LINENO: checking for $ac_word" >&5
4628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629if test "${ac_cv_path_CP+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 case $CP in
4633 [\\/]* | ?:[\\/]*)
4634 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4635 ;;
4636 *)
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648done
4649done
4650
4651 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4652 ;;
4653esac
4654fi
4655CP=$ac_cv_path_CP
4656
4657if test -n "$CP"; then
4658 echo "$as_me:$LINENO: result: $CP" >&5
4659echo "${ECHO_T}$CP" >&6
4660else
4661 echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6
4663fi
4664
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004665# Extract the first word of "date", so it can be a program name with args.
4666set dummy date; ac_word=$2
4667echo "$as_me:$LINENO: checking for $ac_word" >&5
4668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4669if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004672 case $DATE in
4673 [\\/]* | ?:[\\/]*)
4674 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004675 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004676 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004687 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004688done
4689done
John Criswell7a73b802003-06-30 21:59:07 +00004690
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004691 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004692 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004693esac
John Criswell7a73b802003-06-30 21:59:07 +00004694fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004695DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004696
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004697if test -n "$DATE"; then
4698 echo "$as_me:$LINENO: result: $DATE" >&5
4699echo "${ECHO_T}$DATE" >&6
4700else
4701 echo "$as_me:$LINENO: result: no" >&5
4702echo "${ECHO_T}no" >&6
4703fi
John Criswell7a73b802003-06-30 21:59:07 +00004704
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004705# Extract the first word of "find", so it can be a program name with args.
4706set dummy find; ac_word=$2
4707echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004712 case $FIND in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
4729done
4730
4731 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4732 ;;
4733esac
4734fi
4735FIND=$ac_cv_path_FIND
4736
4737if test -n "$FIND"; then
4738 echo "$as_me:$LINENO: result: $FIND" >&5
4739echo "${ECHO_T}$FIND" >&6
4740else
4741 echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6
4743fi
4744
4745# Extract the first word of "grep", so it can be a program name with args.
4746set dummy grep; ac_word=$2
4747echo "$as_me:$LINENO: checking for $ac_word" >&5
4748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4749if test "${ac_cv_path_GREP+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752 case $GREP in
4753 [\\/]* | ?:[\\/]*)
4754 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4755 ;;
4756 *)
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768done
4769done
4770
4771 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4772 ;;
4773esac
4774fi
4775GREP=$ac_cv_path_GREP
4776
4777if test -n "$GREP"; then
4778 echo "$as_me:$LINENO: result: $GREP" >&5
4779echo "${ECHO_T}$GREP" >&6
4780else
4781 echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6
4783fi
4784
4785# Extract the first word of "mkdir", so it can be a program name with args.
4786set dummy mkdir; ac_word=$2
4787echo "$as_me:$LINENO: checking for $ac_word" >&5
4788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789if test "${ac_cv_path_MKDIR+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792 case $MKDIR in
4793 [\\/]* | ?:[\\/]*)
4794 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4795 ;;
4796 *)
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4807 fi
4808done
4809done
4810
4811 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4812 ;;
4813esac
4814fi
4815MKDIR=$ac_cv_path_MKDIR
4816
4817if test -n "$MKDIR"; then
4818 echo "$as_me:$LINENO: result: $MKDIR" >&5
4819echo "${ECHO_T}$MKDIR" >&6
4820else
4821 echo "$as_me:$LINENO: result: no" >&5
4822echo "${ECHO_T}no" >&6
4823fi
4824
4825# Extract the first word of "mv", so it can be a program name with args.
4826set dummy mv; ac_word=$2
4827echo "$as_me:$LINENO: checking for $ac_word" >&5
4828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829if test "${ac_cv_path_MV+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832 case $MV in
4833 [\\/]* | ?:[\\/]*)
4834 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4835 ;;
4836 *)
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4847 fi
4848done
4849done
4850
4851 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4852 ;;
4853esac
4854fi
4855MV=$ac_cv_path_MV
4856
4857if test -n "$MV"; then
4858 echo "$as_me:$LINENO: result: $MV" >&5
4859echo "${ECHO_T}$MV" >&6
4860else
4861 echo "$as_me:$LINENO: result: no" >&5
4862echo "${ECHO_T}no" >&6
4863fi
4864
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004865if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4868echo "$as_me:$LINENO: checking for $ac_word" >&5
4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870if test "${ac_cv_prog_RANLIB+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872else
4873 if test -n "$RANLIB"; then
4874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887done
4888done
4889
4890fi
4891fi
4892RANLIB=$ac_cv_prog_RANLIB
4893if test -n "$RANLIB"; then
4894 echo "$as_me:$LINENO: result: $RANLIB" >&5
4895echo "${ECHO_T}$RANLIB" >&6
4896else
4897 echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6
4899fi
4900
4901fi
4902if test -z "$ac_cv_prog_RANLIB"; then
4903 ac_ct_RANLIB=$RANLIB
4904 # Extract the first word of "ranlib", so it can be a program name with args.
4905set dummy ranlib; ac_word=$2
4906echo "$as_me:$LINENO: checking for $ac_word" >&5
4907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4908if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910else
4911 if test -n "$ac_ct_RANLIB"; then
4912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4913else
4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921 ac_cv_prog_ac_ct_RANLIB="ranlib"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4924 fi
4925done
4926done
4927
4928 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4929fi
4930fi
4931ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4932if test -n "$ac_ct_RANLIB"; then
4933 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4934echo "${ECHO_T}$ac_ct_RANLIB" >&6
4935else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938fi
4939
4940 RANLIB=$ac_ct_RANLIB
4941else
4942 RANLIB="$ac_cv_prog_RANLIB"
4943fi
4944
4945# Extract the first word of "rm", so it can be a program name with args.
4946set dummy rm; ac_word=$2
4947echo "$as_me:$LINENO: checking for $ac_word" >&5
4948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4949if test "${ac_cv_path_RM+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951else
4952 case $RM in
4953 [\\/]* | ?:[\\/]*)
4954 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4955 ;;
4956 *)
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968done
4969done
4970
4971 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4972 ;;
4973esac
4974fi
4975RM=$ac_cv_path_RM
4976
4977if test -n "$RM"; then
4978 echo "$as_me:$LINENO: result: $RM" >&5
4979echo "${ECHO_T}$RM" >&6
4980else
4981 echo "$as_me:$LINENO: result: no" >&5
4982echo "${ECHO_T}no" >&6
4983fi
4984
4985# Extract the first word of "sed", so it can be a program name with args.
4986set dummy sed; ac_word=$2
4987echo "$as_me:$LINENO: checking for $ac_word" >&5
4988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989if test "${ac_cv_path_SED+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991else
4992 case $SED in
4993 [\\/]* | ?:[\\/]*)
4994 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4995 ;;
4996 *)
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH
4999do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008done
5009done
5010
5011 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5012 ;;
5013esac
5014fi
5015SED=$ac_cv_path_SED
5016
5017if test -n "$SED"; then
5018 echo "$as_me:$LINENO: result: $SED" >&5
5019echo "${ECHO_T}$SED" >&6
5020else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023fi
5024
5025# Extract the first word of "tar", so it can be a program name with args.
5026set dummy tar; ac_word=$2
5027echo "$as_me:$LINENO: checking for $ac_word" >&5
5028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5029if test "${ac_cv_path_TAR+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032 case $TAR in
5033 [\\/]* | ?:[\\/]*)
5034 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5035 ;;
5036 *)
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048done
5049done
5050
5051 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5052 ;;
5053esac
5054fi
5055TAR=$ac_cv_path_TAR
5056
5057if test -n "$TAR"; then
5058 echo "$as_me:$LINENO: result: $TAR" >&5
5059echo "${ECHO_T}$TAR" >&6
5060else
5061 echo "$as_me:$LINENO: result: no" >&5
5062echo "${ECHO_T}no" >&6
5063fi
5064
5065
5066# Find a good install program. We prefer a C program (faster),
5067# so one script is as good as another. But avoid the broken or
5068# incompatible versions:
5069# SysV /etc/install, /usr/sbin/install
5070# SunOS /usr/etc/install
5071# IRIX /sbin/install
5072# AIX /bin/install
5073# AmigaOS /C/install, which installs bootblocks on floppy discs
5074# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5075# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5076# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5077# OS/2's system install, which has a completely different semantic
5078# ./install, which can be erroneously created by make from ./install.sh.
5079echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5080echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5081if test -z "$INSTALL"; then
5082if test "${ac_cv_path_install+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH
5087do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 # Account for people who put trailing slashes in PATH elements.
5091case $as_dir/ in
5092 ./ | .// | /cC/* | \
5093 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5094 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5095 /usr/ucb/* ) ;;
5096 *)
5097 # OSF1 and SCO ODT 3.0 have their own names for install.
5098 # Don't use installbsd from OSF since it installs stuff as root
5099 # by default.
5100 for ac_prog in ginstall scoinst install; do
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5103 if test $ac_prog = install &&
5104 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5105 # AIX install. It has an incompatible calling convention.
5106 :
5107 elif test $ac_prog = install &&
5108 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5109 # program-specific install script used by HP pwplus--don't use.
5110 :
5111 else
5112 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5113 break 3
5114 fi
5115 fi
5116 done
5117 done
5118 ;;
5119esac
5120done
5121
5122
5123fi
5124 if test "${ac_cv_path_install+set}" = set; then
5125 INSTALL=$ac_cv_path_install
5126 else
5127 # As a last resort, use the slow shell script. We don't cache a
5128 # path for INSTALL within a source directory, because that will
5129 # break other packages using the cache if that directory is
5130 # removed, or if the path is relative.
5131 INSTALL=$ac_install_sh
5132 fi
5133fi
5134echo "$as_me:$LINENO: result: $INSTALL" >&5
5135echo "${ECHO_T}$INSTALL" >&6
5136
5137# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5138# It thinks the first close brace ends the variable substitution.
5139test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5140
5141test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5142
5143test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5144
5145
5146# Extract the first word of "bzip2", so it can be a program name with args.
5147set dummy bzip2; ac_word=$2
5148echo "$as_me:$LINENO: checking for $ac_word" >&5
5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150if test "${ac_cv_path_BZIP2+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153 case $BZIP2 in
5154 [\\/]* | ?:[\\/]*)
5155 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5156 ;;
5157 *)
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169done
5170done
5171
5172 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5173 ;;
5174esac
5175fi
5176BZIP2=$ac_cv_path_BZIP2
5177
5178if test -n "$BZIP2"; then
5179 echo "$as_me:$LINENO: result: $BZIP2" >&5
5180echo "${ECHO_T}$BZIP2" >&6
5181else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184fi
5185
5186# Extract the first word of "dot", so it can be a program name with args.
5187set dummy dot; ac_word=$2
5188echo "$as_me:$LINENO: checking for $ac_word" >&5
5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190if test "${ac_cv_path_DOT+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 case $DOT in
5194 [\\/]* | ?:[\\/]*)
5195 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5196 ;;
5197 *)
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209done
5210done
5211
5212 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5213 ;;
5214esac
5215fi
5216DOT=$ac_cv_path_DOT
5217
5218if test -n "$DOT"; then
5219 echo "$as_me:$LINENO: result: $DOT" >&5
5220echo "${ECHO_T}$DOT" >&6
5221else
5222 echo "$as_me:$LINENO: result: no" >&5
5223echo "${ECHO_T}no" >&6
5224fi
5225
5226# Extract the first word of "doxygen", so it can be a program name with args.
5227set dummy doxygen; ac_word=$2
5228echo "$as_me:$LINENO: checking for $ac_word" >&5
5229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5230if test "${ac_cv_path_DOXYGEN+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232else
5233 case $DOXYGEN in
5234 [\\/]* | ?:[\\/]*)
5235 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5236 ;;
5237 *)
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249done
5250done
5251
5252 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5253 ;;
5254esac
5255fi
5256DOXYGEN=$ac_cv_path_DOXYGEN
5257
5258if test -n "$DOXYGEN"; then
5259 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5260echo "${ECHO_T}$DOXYGEN" >&6
5261else
5262 echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264fi
5265
5266# Extract the first word of "etags", so it can be a program name with args.
5267set dummy etags; ac_word=$2
5268echo "$as_me:$LINENO: checking for $ac_word" >&5
5269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270if test "${ac_cv_path_ETAGS+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273 case $ETAGS in
5274 [\\/]* | ?:[\\/]*)
5275 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5276 ;;
5277 *)
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289done
5290done
5291
5292 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5293 ;;
5294esac
5295fi
5296ETAGS=$ac_cv_path_ETAGS
5297
5298if test -n "$ETAGS"; then
5299 echo "$as_me:$LINENO: result: $ETAGS" >&5
5300echo "${ECHO_T}$ETAGS" >&6
5301else
5302 echo "$as_me:$LINENO: result: no" >&5
5303echo "${ECHO_T}no" >&6
5304fi
5305
5306# Extract the first word of "groff", so it can be a program name with args.
5307set dummy groff; ac_word=$2
5308echo "$as_me:$LINENO: checking for $ac_word" >&5
5309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310if test "${ac_cv_path_GROFF+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312else
5313 case $GROFF in
5314 [\\/]* | ?:[\\/]*)
5315 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5316 ;;
5317 *)
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329done
5330done
5331
5332 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5333 ;;
5334esac
5335fi
5336GROFF=$ac_cv_path_GROFF
5337
5338if test -n "$GROFF"; then
5339 echo "$as_me:$LINENO: result: $GROFF" >&5
5340echo "${ECHO_T}$GROFF" >&6
5341else
5342 echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
5344fi
5345
5346# Extract the first word of "gzip", so it can be a program name with args.
5347set dummy gzip; ac_word=$2
5348echo "$as_me:$LINENO: checking for $ac_word" >&5
5349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350if test "${ac_cv_path_GZIP+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353 case $GZIP in
5354 [\\/]* | ?:[\\/]*)
5355 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5356 ;;
5357 *)
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370done
5371
5372 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5373 ;;
5374esac
5375fi
5376GZIP=$ac_cv_path_GZIP
5377
5378if test -n "$GZIP"; then
5379 echo "$as_me:$LINENO: result: $GZIP" >&5
5380echo "${ECHO_T}$GZIP" >&6
5381else
5382 echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6
5384fi
5385
5386# Extract the first word of "pod2html", so it can be a program name with args.
5387set dummy pod2html; ac_word=$2
5388echo "$as_me:$LINENO: checking for $ac_word" >&5
5389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5390if test "${ac_cv_path_POD2HTML+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393 case $POD2HTML in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5396 ;;
5397 *)
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410done
5411
5412 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5413 ;;
5414esac
5415fi
5416POD2HTML=$ac_cv_path_POD2HTML
5417
5418if test -n "$POD2HTML"; then
5419 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5420echo "${ECHO_T}$POD2HTML" >&6
5421else
5422 echo "$as_me:$LINENO: result: no" >&5
5423echo "${ECHO_T}no" >&6
5424fi
5425
5426# Extract the first word of "pod2man", so it can be a program name with args.
5427set dummy pod2man; ac_word=$2
5428echo "$as_me:$LINENO: checking for $ac_word" >&5
5429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430if test "${ac_cv_path_POD2MAN+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433 case $POD2MAN in
5434 [\\/]* | ?:[\\/]*)
5435 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5436 ;;
5437 *)
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH
5440do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5448 fi
5449done
5450done
5451
5452 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5453 ;;
5454esac
5455fi
5456POD2MAN=$ac_cv_path_POD2MAN
5457
5458if test -n "$POD2MAN"; then
5459 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5460echo "${ECHO_T}$POD2MAN" >&6
5461else
5462 echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464fi
5465
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005466# Extract the first word of "runtest", so it can be a program name with args.
5467set dummy runtest; ac_word=$2
5468echo "$as_me:$LINENO: checking for $ac_word" >&5
5469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5470if test "${ac_cv_path_RUNTEST+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473 case $RUNTEST in
5474 [\\/]* | ?:[\\/]*)
5475 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5476 ;;
5477 *)
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489done
5490done
5491
5492 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5493 ;;
5494esac
5495fi
5496RUNTEST=$ac_cv_path_RUNTEST
5497
5498if test -n "$RUNTEST"; then
5499 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5500echo "${ECHO_T}$RUNTEST" >&6
5501else
5502 echo "$as_me:$LINENO: result: no" >&5
5503echo "${ECHO_T}no" >&6
5504fi
5505
Reid Spencer0fcb9412004-11-30 08:11:54 +00005506
Reid Spencer0fcb9412004-11-30 08:11:54 +00005507no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005508echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5509echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005510
5511# Check whether --with-tclinclude or --without-tclinclude was given.
5512if test "${with_tclinclude+set}" = set; then
5513 withval="$with_tclinclude"
5514 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005515else
5516 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005517fi;
5518if test "${ac_cv_path_tclsh+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521
5522if test x"${with_tclinclude}" != x ; then
5523 if test -f ${with_tclinclude}/tclsh ; then
5524 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5525 elif test -f ${with_tclinclude}/src/tclsh ; then
5526 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5527 else
5528 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5529echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5530 { (exit 1); exit 1; }; }
5531 fi
5532fi
5533
Reid Spencer0fcb9412004-11-30 08:11:54 +00005534if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005535 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005536echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005537 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 +00005538do
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005541echo "$as_me:$LINENO: checking for $ac_word" >&5
5542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005543if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
Reid Spencercda35f82004-12-02 04:17:20 +00005546 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005547 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005548 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005549 ;;
5550 *)
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005558 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5561 fi
5562done
5563done
5564
5565 ;;
5566esac
5567fi
Reid Spencercda35f82004-12-02 04:17:20 +00005568TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005569
Reid Spencercda35f82004-12-02 04:17:20 +00005570if test -n "$TCLSH"; then
5571 echo "$as_me:$LINENO: result: $TCLSH" >&5
5572echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005573else
5574 echo "$as_me:$LINENO: result: no" >&5
5575echo "${ECHO_T}no" >&6
5576fi
5577
Reid Spencercda35f82004-12-02 04:17:20 +00005578 test -n "$TCLSH" && break
5579done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005580
Reid Spencercda35f82004-12-02 04:17:20 +00005581 if test x"${TCLSH}" = x ; then
5582 ac_cv_path_tclsh='';
5583 else
5584 ac_cv_path_tclsh="${TCLSH}";
5585 fi
5586else
5587 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5588echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5589 TCLSH="${ac_cv_path_tclsh}"
5590
5591fi
5592
5593fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005594
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005595# Extract the first word of "zip", so it can be a program name with args.
5596set dummy zip; ac_word=$2
5597echo "$as_me:$LINENO: checking for $ac_word" >&5
5598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5599if test "${ac_cv_path_ZIP+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 case $ZIP in
5603 [\\/]* | ?:[\\/]*)
5604 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5605 ;;
5606 *)
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618done
5619done
5620
5621 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5622 ;;
5623esac
5624fi
5625ZIP=$ac_cv_path_ZIP
5626
5627if test -n "$ZIP"; then
5628 echo "$as_me:$LINENO: result: $ZIP" >&5
5629echo "${ECHO_T}$ZIP" >&6
5630else
5631 echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633fi
5634
5635
5636echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5637echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5638if test "${llvm_cv_link_use_r+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005647 oldcflags="$CFLAGS"
5648 CFLAGS="$CFLAGS -Wl,-R."
5649 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005655
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005656int
5657main ()
5658{
5659int main() { return 0; }
5660 ;
5661 return 0;
5662}
John Criswell47fdd832003-07-14 16:52:07 +00005663_ACEOF
5664rm -f conftest.$ac_objext conftest$ac_exeext
5665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005666 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005667 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005672 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005686 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005687else
John Criswell47fdd832003-07-14 16:52:07 +00005688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005689sed 's/^/| /' conftest.$ac_ext >&5
5690
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005691llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005692fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005693rm -f conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005695 CFLAGS="$oldcflags"
5696 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005697ac_cpp='$CPP $CPPFLAGS'
5698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005702
John Criswell7a73b802003-06-30 21:59:07 +00005703fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005704echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5705echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5706if test "$llvm_cv_link_use_r" = yes ; then
5707
5708cat >>confdefs.h <<\_ACEOF
5709#define HAVE_LINK_R 1
5710_ACEOF
5711
John Criswell47fdd832003-07-14 16:52:07 +00005712 fi
John Criswell47fdd832003-07-14 16:52:07 +00005713
John Criswell47fdd832003-07-14 16:52:07 +00005714
John Criswell47fdd832003-07-14 16:52:07 +00005715
John Criswell7a73b802003-06-30 21:59:07 +00005716
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005717echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5718echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5719if test "${ac_cv_c_const+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722 cat >conftest.$ac_ext <<_ACEOF
5723/* confdefs.h. */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h. */
5728
5729int
5730main ()
5731{
5732/* FIXME: Include the comments suggested by Paul. */
5733#ifndef __cplusplus
5734 /* Ultrix mips cc rejects this. */
5735 typedef int charset[2];
5736 const charset x;
5737 /* SunOS 4.1.1 cc rejects this. */
5738 char const *const *ccp;
5739 char **p;
5740 /* NEC SVR4.0.2 mips cc rejects this. */
5741 struct point {int x, y;};
5742 static struct point const zero = {0,0};
5743 /* AIX XL C 1.02.0.0 rejects this.
5744 It does not let you subtract one const X* pointer from another in
5745 an arm of an if-expression whose if-part is not a constant
5746 expression */
5747 const char *g = "string";
5748 ccp = &g + (g ? g-g : 0);
5749 /* HPUX 7.0 cc rejects these. */
5750 ++ccp;
5751 p = (char**) ccp;
5752 ccp = (char const *const *) p;
5753 { /* SCO 3.2v4 cc rejects this. */
5754 char *t;
5755 char const *s = 0 ? (char *) 0 : (char const *) 0;
5756
5757 *t++ = 0;
5758 }
5759 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5760 int x[] = {25, 17};
5761 const int *foo = &x[0];
5762 ++foo;
5763 }
5764 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5765 typedef const int *iptr;
5766 iptr p = 0;
5767 ++p;
5768 }
5769 { /* AIX XL C 1.02.0.0 rejects this saying
5770 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5771 struct s { int j; const int *ap[3]; };
5772 struct s *b; b->j = 5;
5773 }
5774 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5775 const int foo = 10;
5776 }
5777#endif
5778
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783rm -f conftest.$ac_objext
5784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_cv_c_const=yes
5806else
5807 echo "$as_me: failed program was:" >&5
5808sed 's/^/| /' conftest.$ac_ext >&5
5809
5810ac_cv_c_const=no
5811fi
5812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813fi
5814echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5815echo "${ECHO_T}$ac_cv_c_const" >&6
5816if test $ac_cv_c_const = no; then
5817
5818cat >>confdefs.h <<\_ACEOF
5819#define const
5820_ACEOF
5821
5822fi
5823
5824
5825echo "$as_me:$LINENO: checking for egrep" >&5
5826echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5827if test "${ac_cv_prog_egrep+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5831 then ac_cv_prog_egrep='grep -E'
5832 else ac_cv_prog_egrep='egrep'
5833 fi
5834fi
5835echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5836echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5837 EGREP=$ac_cv_prog_egrep
5838
John Criswell7a73b802003-06-30 21:59:07 +00005839
5840echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5841echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5842if test "${ac_cv_header_stdc+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005846/* confdefs.h. */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005851#include <stdlib.h>
5852#include <stdarg.h>
5853#include <string.h>
5854#include <float.h>
5855
John Criswell0c38eaf2003-09-10 15:17:25 +00005856int
5857main ()
5858{
5859
5860 ;
5861 return 0;
5862}
John Criswell7a73b802003-06-30 21:59:07 +00005863_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005864rm -f conftest.$ac_objext
5865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005866 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005867 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005872 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005886 ac_cv_header_stdc=yes
5887else
5888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005892fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005894
5895if test $ac_cv_header_stdc = yes; then
5896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5897 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005898/* confdefs.h. */
5899_ACEOF
5900cat confdefs.h >>conftest.$ac_ext
5901cat >>conftest.$ac_ext <<_ACEOF
5902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005903#include <string.h>
5904
5905_ACEOF
5906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005907 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005908 :
5909else
5910 ac_cv_header_stdc=no
5911fi
5912rm -f conftest*
5913
5914fi
5915
5916if test $ac_cv_header_stdc = yes; then
5917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005919/* confdefs.h. */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005924#include <stdlib.h>
5925
5926_ACEOF
5927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005928 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005929 :
5930else
5931 ac_cv_header_stdc=no
5932fi
5933rm -f conftest*
5934
5935fi
5936
5937if test $ac_cv_header_stdc = yes; then
5938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5939 if test "$cross_compiling" = yes; then
5940 :
5941else
5942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005948#include <ctype.h>
5949#if ((' ' & 0x0FF) == 0x020)
5950# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5951# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5952#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005953# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005954 (('a' <= (c) && (c) <= 'i') \
5955 || ('j' <= (c) && (c) <= 'r') \
5956 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005957# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5958#endif
5959
5960#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5961int
5962main ()
5963{
5964 int i;
5965 for (i = 0; i < 256; i++)
5966 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005967 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005968 exit(2);
5969 exit (0);
5970}
5971_ACEOF
5972rm -f conftest$ac_exeext
5973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974 (eval $ac_link) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 :
5984else
5985 echo "$as_me: program exited with status $ac_status" >&5
5986echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005987sed 's/^/| /' conftest.$ac_ext >&5
5988
John Criswell7a73b802003-06-30 21:59:07 +00005989( exit $ac_status )
5990ac_cv_header_stdc=no
5991fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005992rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005993fi
5994fi
5995fi
5996echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5997echo "${ECHO_T}$ac_cv_header_stdc" >&6
5998if test $ac_cv_header_stdc = yes; then
5999
6000cat >>confdefs.h <<\_ACEOF
6001#define STDC_HEADERS 1
6002_ACEOF
6003
6004fi
6005
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006006
6007
6008
6009
6010
6011ac_header_dirent=no
6012for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6013 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6014echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6015echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6016if eval "test \"\${$as_ac_Header+set}\" = set"; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018else
6019 cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h. */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h. */
6025#include <sys/types.h>
6026#include <$ac_hdr>
6027
6028int
6029main ()
6030{
6031if ((DIR *) 0)
6032return 0;
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext
6038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039 (eval $ac_compile) 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -z "$ac_c_werror_flag"
6047 || test ! -s conftest.err'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; } &&
6053 { ac_try='test -s conftest.$ac_objext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 eval "$as_ac_Header=yes"
6060else
6061 echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064eval "$as_ac_Header=no"
6065fi
6066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6067fi
6068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070if test `eval echo '${'$as_ac_Header'}'` = yes; then
6071 cat >>confdefs.h <<_ACEOF
6072#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6073_ACEOF
6074
6075ac_header_dirent=$ac_hdr; break
6076fi
6077
6078done
6079# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6080if test $ac_header_dirent = dirent.h; then
6081 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6082echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6083if test "${ac_cv_search_opendir+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086 ac_func_search_save_LIBS=$LIBS
6087ac_cv_search_opendir=no
6088cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */
6094
6095/* Override any gcc2 internal prototype to avoid an error. */
6096#ifdef __cplusplus
6097extern "C"
6098#endif
6099/* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6101char opendir ();
6102int
6103main ()
6104{
6105opendir ();
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext
6111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag"
6120 || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest$ac_exeext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_search_opendir="none required"
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137fi
6138rm -f conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
6140if test "$ac_cv_search_opendir" = no; then
6141 for ac_lib in dir; do
6142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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
6150/* Override any gcc2 internal prototype to avoid an error. */
6151#ifdef __cplusplus
6152extern "C"
6153#endif
6154/* We use char because int might match the return type of a gcc2
6155 builtin and then its argument prototype would still apply. */
6156char opendir ();
6157int
6158main ()
6159{
6160opendir ();
6161 ;
6162 return 0;
6163}
6164_ACEOF
6165rm -f conftest.$ac_objext conftest$ac_exeext
6166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167 (eval $ac_link) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest$ac_exeext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_search_opendir="-l$ac_lib"
6188break
6189else
6190 echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193fi
6194rm -f conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6196 done
6197fi
6198LIBS=$ac_func_search_save_LIBS
6199fi
6200echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6201echo "${ECHO_T}$ac_cv_search_opendir" >&6
6202if test "$ac_cv_search_opendir" != no; then
6203 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6204
6205fi
6206
6207else
6208 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6209echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6210if test "${ac_cv_search_opendir+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213 ac_func_search_save_LIBS=$LIBS
6214ac_cv_search_opendir=no
6215cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
6221
6222/* Override any gcc2 internal prototype to avoid an error. */
6223#ifdef __cplusplus
6224extern "C"
6225#endif
6226/* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6228char opendir ();
6229int
6230main ()
6231{
6232opendir ();
6233 ;
6234 return 0;
6235}
6236_ACEOF
6237rm -f conftest.$ac_objext conftest$ac_exeext
6238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239 (eval $ac_link) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -z "$ac_c_werror_flag"
6247 || test ! -s conftest.err'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; } &&
6253 { ac_try='test -s conftest$ac_exeext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 ac_cv_search_opendir="none required"
6260else
6261 echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264fi
6265rm -f conftest.err conftest.$ac_objext \
6266 conftest$ac_exeext conftest.$ac_ext
6267if test "$ac_cv_search_opendir" = no; then
6268 for ac_lib in x; do
6269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6270 cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h. */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h. */
6276
6277/* Override any gcc2 internal prototype to avoid an error. */
6278#ifdef __cplusplus
6279extern "C"
6280#endif
6281/* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6283char opendir ();
6284int
6285main ()
6286{
6287opendir ();
6288 ;
6289 return 0;
6290}
6291_ACEOF
6292rm -f conftest.$ac_objext conftest$ac_exeext
6293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294 (eval $ac_link) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag"
6302 || test ! -s conftest.err'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; } &&
6308 { ac_try='test -s conftest$ac_exeext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 ac_cv_search_opendir="-l$ac_lib"
6315break
6316else
6317 echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320fi
6321rm -f conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6323 done
6324fi
6325LIBS=$ac_func_search_save_LIBS
6326fi
6327echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6328echo "${ECHO_T}$ac_cv_search_opendir" >&6
6329if test "$ac_cv_search_opendir" != no; then
6330 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6331
6332fi
6333
6334fi
6335
John Criswell7a73b802003-06-30 21:59:07 +00006336# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006347 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006348do
6349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350echo "$as_me:$LINENO: checking for $ac_header" >&5
6351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6352if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006356/* confdefs.h. */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006361$ac_includes_default
6362
6363#include <$ac_header>
6364_ACEOF
6365rm -f conftest.$ac_objext
6366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006367 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006374 { ac_try='test -z "$ac_c_werror_flag"
6375 || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 eval "$as_ac_Header=yes"
6388else
6389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006390sed 's/^/| /' conftest.$ac_ext >&5
6391
John Criswell7a73b802003-06-30 21:59:07 +00006392eval "$as_ac_Header=no"
6393fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006395fi
6396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6398if test `eval echo '${'$as_ac_Header'}'` = yes; then
6399 cat >>confdefs.h <<_ACEOF
6400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401_ACEOF
6402
6403fi
6404
6405done
6406
6407
6408
6409for ac_header in dlfcn.h
6410do
6411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006412if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6415if eval "test \"\${$as_ac_Header+set}\" = set"; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006417fi
6418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006420else
Brian Gaeke0a621332004-09-08 20:38:05 +00006421 # Is the header compilable?
6422echo "$as_me:$LINENO: checking $ac_header usability" >&5
6423echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6424cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006425/* confdefs.h. */
6426_ACEOF
6427cat confdefs.h >>conftest.$ac_ext
6428cat >>conftest.$ac_ext <<_ACEOF
6429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006430$ac_includes_default
6431#include <$ac_header>
6432_ACEOF
6433rm -f conftest.$ac_objext
6434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006435 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006442 { ac_try='test -z "$ac_c_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006455 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006456else
6457 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006458sed 's/^/| /' conftest.$ac_ext >&5
6459
Brian Gaeke0a621332004-09-08 20:38:05 +00006460ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006461fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006463echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6464echo "${ECHO_T}$ac_header_compiler" >&6
6465
6466# Is the header present?
6467echo "$as_me:$LINENO: checking $ac_header presence" >&5
6468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6469cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006470/* confdefs.h. */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h. */
6475#include <$ac_header>
6476_ACEOF
6477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } >/dev/null; then
6485 if test -s conftest.err; then
6486 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006488 else
6489 ac_cpp_err=
6490 fi
6491else
6492 ac_cpp_err=yes
6493fi
6494if test -z "$ac_cpp_err"; then
6495 ac_header_preproc=yes
6496else
6497 echo "$as_me: failed program was:" >&5
6498sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 ac_header_preproc=no
6501fi
6502rm -f conftest.err conftest.$ac_ext
6503echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6504echo "${ECHO_T}$ac_header_preproc" >&6
6505
6506# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6508 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6513 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006514 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006515 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006528 (
6529 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006530## ----------------------------------- ##
6531## Report this to llvmbugs@cs.uiuc.edu ##
6532## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006533_ASBOX
6534 ) |
6535 sed "s/^/$as_me: WARNING: /" >&2
6536 ;;
6537esac
6538echo "$as_me:$LINENO: checking for $ac_header" >&5
6539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6540if eval "test \"\${$as_ac_Header+set}\" = set"; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006543 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006544fi
6545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006547
6548fi
John Criswell7a73b802003-06-30 21:59:07 +00006549if test `eval echo '${'$as_ac_Header'}'` = yes; then
6550 cat >>confdefs.h <<_ACEOF
6551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6552_ACEOF
6553
6554fi
6555
6556done
6557
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006558# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6559if test "${enable_ltdl_install+set}" = set; then
6560 enableval="$enable_ltdl_install"
6561
6562fi;
6563
6564
6565
6566if test x"${enable_ltdl_install-no}" != xno; then
6567 INSTALL_LTDL_TRUE=
6568 INSTALL_LTDL_FALSE='#'
6569else
6570 INSTALL_LTDL_TRUE='#'
6571 INSTALL_LTDL_FALSE=
6572fi
6573
6574
6575
6576if test x"${enable_ltdl_convenience-no}" != xno; then
6577 CONVENIENCE_LTDL_TRUE=
6578 CONVENIENCE_LTDL_FALSE='#'
6579else
6580 CONVENIENCE_LTDL_TRUE='#'
6581 CONVENIENCE_LTDL_FALSE=
6582fi
6583
6584
6585echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6586echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6587library_names_spec=
6588libname_spec='lib$name'
6589soname_spec=
6590shrext_cmds=".so"
6591postinstall_cmds=
6592postuninstall_cmds=
6593finish_cmds=
6594finish_eval=
6595shlibpath_var=
6596shlibpath_overrides_runpath=unknown
6597version_type=none
6598dynamic_linker="$host_os ld.so"
6599sys_lib_dlsearch_path_spec="/lib /usr/lib"
6600if test "$GCC" = yes; then
6601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6602 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6603 # if the path contains ";" then we assume it to be the separator
6604 # otherwise default to the standard path separator (i.e. ":") - it is
6605 # assumed that no part of a normal pathname contains ";" but that should
6606 # okay in the real world where ";" in dirpaths is itself problematic.
6607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6608 else
6609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6610 fi
6611else
6612 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6613fi
6614need_lib_prefix=unknown
6615hardcode_into_libs=no
6616
6617# when you set need_version to no, make sure it does not cause -set_version
6618# flags to be left without arguments
6619need_version=unknown
6620
6621case $host_os in
6622aix3*)
6623 version_type=linux
6624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6625 shlibpath_var=LIBPATH
6626
6627 # AIX 3 has no versioning support, so we append a major version to the name.
6628 soname_spec='${libname}${release}${shared_ext}$major'
6629 ;;
6630
6631aix4* | aix5*)
6632 version_type=linux
6633 need_lib_prefix=no
6634 need_version=no
6635 hardcode_into_libs=yes
6636 if test "$host_cpu" = ia64; then
6637 # AIX 5 supports IA64
6638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6639 shlibpath_var=LD_LIBRARY_PATH
6640 else
6641 # With GCC up to 2.95.x, collect2 would create an import file
6642 # for dependence libraries. The import file would start with
6643 # the line `#! .'. This would cause the generated library to
6644 # depend on `.', always an invalid library. This was fixed in
6645 # development snapshots of GCC prior to 3.0.
6646 case $host_os in
6647 aix4 | aix4.[01] | aix4.[01].*)
6648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6649 echo ' yes '
6650 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6651 :
6652 else
6653 can_build_shared=no
6654 fi
6655 ;;
6656 esac
6657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6658 # soname into executable. Probably we can add versioning support to
6659 # collect2, so additional links can be useful in future.
6660 if test "$aix_use_runtimelinking" = yes; then
6661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6662 # instead of lib<name>.a to let people know that these are not
6663 # typical AIX shared libraries.
6664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6665 else
6666 # We preserve .a as extension for shared libraries through AIX4.2
6667 # and later when we are not doing run time linking.
6668 library_names_spec='${libname}${release}.a $libname.a'
6669 soname_spec='${libname}${release}${shared_ext}$major'
6670 fi
6671 shlibpath_var=LIBPATH
6672 fi
6673 ;;
6674
6675amigaos*)
6676 library_names_spec='$libname.ixlibrary $libname.a'
6677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6678 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'
6679 ;;
6680
6681beos*)
6682 library_names_spec='${libname}${shared_ext}'
6683 dynamic_linker="$host_os ld.so"
6684 shlibpath_var=LIBRARY_PATH
6685 ;;
6686
6687bsdi[45]*)
6688 version_type=linux
6689 need_version=no
6690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6691 soname_spec='${libname}${release}${shared_ext}$major'
6692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6693 shlibpath_var=LD_LIBRARY_PATH
6694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6696 # the default ld.so.conf also contains /usr/contrib/lib and
6697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6698 # libtool to hard-code these into programs
6699 ;;
6700
6701cygwin* | mingw* | pw32*)
6702 version_type=windows
6703 shrext_cmds=".dll"
6704 need_version=no
6705 need_lib_prefix=no
6706
6707 case $GCC,$host_os in
6708 yes,cygwin* | yes,mingw* | yes,pw32*)
6709 library_names_spec='$libname.dll.a'
6710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6711 postinstall_cmds='base_file=`basename \${file}`~
6712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6713 dldir=$destdir/`dirname \$dlpath`~
6714 test -d \$dldir || mkdir -p \$dldir~
6715 $install_prog $dir/$dlname \$dldir/$dlname'
6716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6717 dlpath=$dir/\$dldll~
6718 $rm \$dlpath'
6719 shlibpath_overrides_runpath=yes
6720
6721 case $host_os in
6722 cygwin*)
6723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6726 ;;
6727 mingw*)
6728 # MinGW DLLs use traditional 'lib' prefix
6729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6732 # It is most probably a Windows format PATH printed by
6733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6734 # path with ; separators, and with drive letters. We can handle the
6735 # drive letters (cygwin fileutils understands them), so leave them,
6736 # especially as we might pass files found there to a mingw objdump,
6737 # which wouldn't understand a cygwinified path. Ahh.
6738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6739 else
6740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6741 fi
6742 ;;
6743 pw32*)
6744 # pw32 DLLs use 'pw' prefix rather than 'lib'
6745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6746 ;;
6747 esac
6748 ;;
6749
6750 *)
6751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6752 ;;
6753 esac
6754 dynamic_linker='Win32 ld.exe'
6755 # FIXME: first we should search . and the directory the executable is in
6756 shlibpath_var=PATH
6757 ;;
6758
6759darwin* | rhapsody*)
6760 dynamic_linker="$host_os dyld"
6761 version_type=darwin
6762 need_lib_prefix=no
6763 need_version=no
6764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6765 soname_spec='${libname}${release}${major}$shared_ext'
6766 shlibpath_overrides_runpath=yes
6767 shlibpath_var=DYLD_LIBRARY_PATH
6768 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6769 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6770 if test "$GCC" = yes; then
6771 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"`
6772 else
6773 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6774 fi
6775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6776 ;;
6777
6778dgux*)
6779 version_type=linux
6780 need_lib_prefix=no
6781 need_version=no
6782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6783 soname_spec='${libname}${release}${shared_ext}$major'
6784 shlibpath_var=LD_LIBRARY_PATH
6785 ;;
6786
6787freebsd1*)
6788 dynamic_linker=no
6789 ;;
6790
6791kfreebsd*-gnu)
6792 version_type=linux
6793 need_lib_prefix=no
6794 need_version=no
6795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6796 soname_spec='${libname}${release}${shared_ext}$major'
6797 shlibpath_var=LD_LIBRARY_PATH
6798 shlibpath_overrides_runpath=no
6799 hardcode_into_libs=yes
6800 dynamic_linker='GNU ld.so'
6801 ;;
6802
6803freebsd*)
6804 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6805 version_type=freebsd-$objformat
6806 case $version_type in
6807 freebsd-elf*)
6808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6809 need_version=no
6810 need_lib_prefix=no
6811 ;;
6812 freebsd-*)
6813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6814 need_version=yes
6815 ;;
6816 esac
6817 shlibpath_var=LD_LIBRARY_PATH
6818 case $host_os in
6819 freebsd2*)
6820 shlibpath_overrides_runpath=yes
6821 ;;
6822 freebsd3.01* | freebsdelf3.01*)
6823 shlibpath_overrides_runpath=yes
6824 hardcode_into_libs=yes
6825 ;;
6826 *) # from 3.2 on
6827 shlibpath_overrides_runpath=no
6828 hardcode_into_libs=yes
6829 ;;
6830 esac
6831 ;;
6832
6833gnu*)
6834 version_type=linux
6835 need_lib_prefix=no
6836 need_version=no
6837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6838 soname_spec='${libname}${release}${shared_ext}$major'
6839 shlibpath_var=LD_LIBRARY_PATH
6840 hardcode_into_libs=yes
6841 ;;
6842
6843hpux9* | hpux10* | hpux11*)
6844 # Give a soname corresponding to the major version so that dld.sl refuses to
6845 # link against other versions.
6846 version_type=sunos
6847 need_lib_prefix=no
6848 need_version=no
6849 case "$host_cpu" in
6850 ia64*)
6851 shrext_cmds='.so'
6852 hardcode_into_libs=yes
6853 dynamic_linker="$host_os dld.so"
6854 shlibpath_var=LD_LIBRARY_PATH
6855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6857 soname_spec='${libname}${release}${shared_ext}$major'
6858 if test "X$HPUX_IA64_MODE" = X32; then
6859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6860 else
6861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6862 fi
6863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6864 ;;
6865 hppa*64*)
6866 shrext_cmds='.sl'
6867 hardcode_into_libs=yes
6868 dynamic_linker="$host_os dld.sl"
6869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6872 soname_spec='${libname}${release}${shared_ext}$major'
6873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6875 ;;
6876 *)
6877 shrext_cmds='.sl'
6878 dynamic_linker="$host_os dld.sl"
6879 shlibpath_var=SHLIB_PATH
6880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6882 soname_spec='${libname}${release}${shared_ext}$major'
6883 ;;
6884 esac
6885 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6886 postinstall_cmds='chmod 555 $lib'
6887 ;;
6888
6889irix5* | irix6* | nonstopux*)
6890 case $host_os in
6891 nonstopux*) version_type=nonstopux ;;
6892 *)
6893 if test "$lt_cv_prog_gnu_ld" = yes; then
6894 version_type=linux
6895 else
6896 version_type=irix
6897 fi ;;
6898 esac
6899 need_lib_prefix=no
6900 need_version=no
6901 soname_spec='${libname}${release}${shared_ext}$major'
6902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6903 case $host_os in
6904 irix5* | nonstopux*)
6905 libsuff= shlibsuff=
6906 ;;
6907 *)
6908 case $LD in # libtool.m4 will add one of these switches to LD
6909 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6910 libsuff= shlibsuff= libmagic=32-bit;;
6911 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6912 libsuff=32 shlibsuff=N32 libmagic=N32;;
6913 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6914 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6915 *) libsuff= shlibsuff= libmagic=never-match;;
6916 esac
6917 ;;
6918 esac
6919 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6920 shlibpath_overrides_runpath=no
6921 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6922 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6923 hardcode_into_libs=yes
6924 ;;
6925
6926# No shared lib support for Linux oldld, aout, or coff.
6927linux*oldld* | linux*aout* | linux*coff*)
6928 dynamic_linker=no
6929 ;;
6930
6931# This must be Linux ELF.
6932linux*)
6933 version_type=linux
6934 need_lib_prefix=no
6935 need_version=no
6936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6937 soname_spec='${libname}${release}${shared_ext}$major'
6938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6939 shlibpath_var=LD_LIBRARY_PATH
6940 shlibpath_overrides_runpath=no
6941 # This implies no fast_install, which is unacceptable.
6942 # Some rework will be needed to allow for fast_install
6943 # before this can be enabled.
6944 hardcode_into_libs=yes
6945
6946 # Append ld.so.conf contents to the search path
6947 if test -f /etc/ld.so.conf; then
6948 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6950 fi
6951
6952 # We used to test for /lib/ld.so.1 and disable shared libraries on
6953 # powerpc, because MkLinux only supported shared libraries with the
6954 # GNU dynamic linker. Since this was broken with cross compilers,
6955 # most powerpc-linux boxes support dynamic linking these days and
6956 # people can always --disable-shared, the test was removed, and we
6957 # assume the GNU/Linux dynamic linker is in use.
6958 dynamic_linker='GNU/Linux ld.so'
6959 ;;
6960
6961knetbsd*-gnu)
6962 version_type=linux
6963 need_lib_prefix=no
6964 need_version=no
6965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6966 soname_spec='${libname}${release}${shared_ext}$major'
6967 shlibpath_var=LD_LIBRARY_PATH
6968 shlibpath_overrides_runpath=no
6969 hardcode_into_libs=yes
6970 dynamic_linker='GNU ld.so'
6971 ;;
6972
6973netbsd*)
6974 version_type=sunos
6975 need_lib_prefix=no
6976 need_version=no
6977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6980 dynamic_linker='NetBSD (a.out) ld.so'
6981 else
6982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6983 soname_spec='${libname}${release}${shared_ext}$major'
6984 dynamic_linker='NetBSD ld.elf_so'
6985 fi
6986 shlibpath_var=LD_LIBRARY_PATH
6987 shlibpath_overrides_runpath=yes
6988 hardcode_into_libs=yes
6989 ;;
6990
6991newsos6)
6992 version_type=linux
6993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6994 shlibpath_var=LD_LIBRARY_PATH
6995 shlibpath_overrides_runpath=yes
6996 ;;
6997
6998nto-qnx*)
6999 version_type=linux
7000 need_lib_prefix=no
7001 need_version=no
7002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7003 soname_spec='${libname}${release}${shared_ext}$major'
7004 shlibpath_var=LD_LIBRARY_PATH
7005 shlibpath_overrides_runpath=yes
7006 ;;
7007
7008openbsd*)
7009 version_type=sunos
7010 need_lib_prefix=no
7011 need_version=no
7012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7014 shlibpath_var=LD_LIBRARY_PATH
7015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7016 case $host_os in
7017 openbsd2.[89] | openbsd2.[89].*)
7018 shlibpath_overrides_runpath=no
7019 ;;
7020 *)
7021 shlibpath_overrides_runpath=yes
7022 ;;
7023 esac
7024 else
7025 shlibpath_overrides_runpath=yes
7026 fi
7027 ;;
7028
7029os2*)
7030 libname_spec='$name'
7031 shrext_cmds=".dll"
7032 need_lib_prefix=no
7033 library_names_spec='$libname${shared_ext} $libname.a'
7034 dynamic_linker='OS/2 ld.exe'
7035 shlibpath_var=LIBPATH
7036 ;;
7037
7038osf3* | osf4* | osf5*)
7039 version_type=osf
7040 need_lib_prefix=no
7041 need_version=no
7042 soname_spec='${libname}${release}${shared_ext}$major'
7043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7044 shlibpath_var=LD_LIBRARY_PATH
7045 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7046 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7047 ;;
7048
7049sco3.2v5*)
7050 version_type=osf
7051 soname_spec='${libname}${release}${shared_ext}$major'
7052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7053 shlibpath_var=LD_LIBRARY_PATH
7054 ;;
7055
7056solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
7063 shlibpath_overrides_runpath=yes
7064 hardcode_into_libs=yes
7065 # ldd complains unless libraries are executable
7066 postinstall_cmds='chmod +x $lib'
7067 ;;
7068
7069sunos4*)
7070 version_type=sunos
7071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7073 shlibpath_var=LD_LIBRARY_PATH
7074 shlibpath_overrides_runpath=yes
7075 if test "$with_gnu_ld" = yes; then
7076 need_lib_prefix=no
7077 fi
7078 need_version=yes
7079 ;;
7080
7081sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7082 version_type=linux
7083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7084 soname_spec='${libname}${release}${shared_ext}$major'
7085 shlibpath_var=LD_LIBRARY_PATH
7086 case $host_vendor in
7087 sni)
7088 shlibpath_overrides_runpath=no
7089 need_lib_prefix=no
7090 export_dynamic_flag_spec='${wl}-Blargedynsym'
7091 runpath_var=LD_RUN_PATH
7092 ;;
7093 siemens)
7094 need_lib_prefix=no
7095 ;;
7096 motorola)
7097 need_lib_prefix=no
7098 need_version=no
7099 shlibpath_overrides_runpath=no
7100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7101 ;;
7102 esac
7103 ;;
7104
7105sysv4*MP*)
7106 if test -d /usr/nec ;then
7107 version_type=linux
7108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7109 soname_spec='$libname${shared_ext}.$major'
7110 shlibpath_var=LD_LIBRARY_PATH
7111 fi
7112 ;;
7113
7114uts4*)
7115 version_type=linux
7116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7117 soname_spec='${libname}${release}${shared_ext}$major'
7118 shlibpath_var=LD_LIBRARY_PATH
7119 ;;
7120
7121*)
7122 dynamic_linker=no
7123 ;;
7124esac
7125echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7126echo "${ECHO_T}$dynamic_linker" >&6
7127test "$dynamic_linker" = no && can_build_shared=no
7128
7129
7130echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7131echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7132if test "${libltdl_cv_shlibext+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135
7136module=yes
7137eval libltdl_cv_shlibext=$shrext_cmds
7138
7139fi
7140echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7141echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7142if test -n "$libltdl_cv_shlibext"; then
7143
7144cat >>confdefs.h <<_ACEOF
7145#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7146_ACEOF
7147
7148fi
7149
7150
7151echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7152echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7153if test "${libltdl_cv_shlibpath_var+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156 libltdl_cv_shlibpath_var="$shlibpath_var"
7157fi
7158echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7159echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7160if test -n "$libltdl_cv_shlibpath_var"; then
7161
7162cat >>confdefs.h <<_ACEOF
7163#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7164_ACEOF
7165
7166fi
7167
7168
7169echo "$as_me:$LINENO: checking for the default library search path" >&5
7170echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7171if test "${libltdl_cv_sys_search_path+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7175fi
7176echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7177echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7178if test -n "$libltdl_cv_sys_search_path"; then
7179 sys_search_path=
7180 for dir in $libltdl_cv_sys_search_path; do
7181 if test -z "$sys_search_path"; then
7182 sys_search_path="$dir"
7183 else
7184 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7185 fi
7186 done
7187
7188cat >>confdefs.h <<_ACEOF
7189#define LTDL_SYSSEARCHPATH "$sys_search_path"
7190_ACEOF
7191
7192fi
7193
7194echo "$as_me:$LINENO: checking for objdir" >&5
7195echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7196if test "${libltdl_cv_objdir+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199 libltdl_cv_objdir="$objdir"
7200 if test -n "$objdir"; then
7201 :
7202 else
7203 rm -f .libs 2>/dev/null
7204 mkdir .libs 2>/dev/null
7205 if test -d .libs; then
7206 libltdl_cv_objdir=.libs
7207 else
7208 # MS-DOS does not allow filenames that begin with a dot.
7209 libltdl_cv_objdir=_libs
7210 fi
7211 rmdir .libs 2>/dev/null
7212 fi
7213
7214fi
7215echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7216echo "${ECHO_T}$libltdl_cv_objdir" >&6
7217
7218cat >>confdefs.h <<_ACEOF
7219#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7220_ACEOF
7221
7222
7223echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7224echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7225if test "${lt_cv_path_NM+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228 if test -n "$NM"; then
7229 # Let the user override the test.
7230 lt_cv_path_NM="$NM"
7231else
7232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7233 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7234 IFS="$lt_save_ifs"
7235 test -z "$ac_dir" && ac_dir=.
7236 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7237 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7238 # Check to see if the nm accepts a BSD-compat flag.
7239 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7240 # nm: unknown option "B" ignored
7241 # Tru64's nm complains that /dev/null is an invalid object file
7242 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7243 */dev/null* | *'Invalid file or object type'*)
7244 lt_cv_path_NM="$tmp_nm -B"
7245 break
7246 ;;
7247 *)
7248 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7249 */dev/null*)
7250 lt_cv_path_NM="$tmp_nm -p"
7251 break
7252 ;;
7253 *)
7254 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7255 continue # so that we can try to find one that supports BSD flags
7256 ;;
7257 esac
7258 esac
7259 fi
7260 done
7261 IFS="$lt_save_ifs"
7262 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7263fi
7264fi
7265echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7266echo "${ECHO_T}$lt_cv_path_NM" >&6
7267NM="$lt_cv_path_NM"
7268
7269
7270
7271
7272
7273# Check for command to grab the raw symbol name followed by C symbol from nm.
7274echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7275echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7276if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279
7280# These are sane defaults that work on at least a few old systems.
7281# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7282
7283# Character class describing NM global symbol codes.
7284symcode='[BCDEGRST]'
7285
7286# Regexp to match symbols that can be accessed directly from C.
7287sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7288
7289# Transform the above into a raw symbol and a C symbol.
7290symxfrm='\1 \2\3 \3'
7291
7292# Transform an extracted symbol line into a proper C declaration
7293lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7294
7295# Transform an extracted symbol line into symbol name and symbol address
7296lt_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'"
7297
7298# Define system-specific variables.
7299case $host_os in
7300aix*)
7301 symcode='[BCDT]'
7302 ;;
7303cygwin* | mingw* | pw32*)
7304 symcode='[ABCDGISTW]'
7305 ;;
7306hpux*) # Its linker distinguishes data from code symbols
7307 if test "$host_cpu" = ia64; then
7308 symcode='[ABCDEGRST]'
7309 fi
7310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7311 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'"
7312 ;;
7313linux*)
7314 if test "$host_cpu" = ia64; then
7315 symcode='[ABCDGIRSTW]'
7316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7317 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'"
7318 fi
7319 ;;
7320irix* | nonstopux*)
7321 symcode='[BCDEGRST]'
7322 ;;
7323osf*)
7324 symcode='[BCDEGQRST]'
7325 ;;
7326solaris* | sysv5*)
7327 symcode='[BDRT]'
7328 ;;
7329sysv4)
7330 symcode='[DFNSTU]'
7331 ;;
7332esac
7333
7334# Handle CRLF in mingw tool chain
7335opt_cr=
7336case $build_os in
7337mingw*)
7338 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7339 ;;
7340esac
7341
7342# If we're using GNU nm, then use its standard symbol codes.
7343case `$NM -V 2>&1` in
7344*GNU* | *'with BFD'*)
7345 symcode='[ABCDGIRSTW]' ;;
7346esac
7347
7348# Try without a prefix undercore, then with it.
7349for ac_symprfx in "" "_"; do
7350
7351 # Write the raw and C identifiers.
7352 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7353
7354 # Check to see that the pipe works correctly.
7355 pipe_works=no
7356
7357 rm -f conftest*
7358 cat > conftest.$ac_ext <<EOF
7359#ifdef __cplusplus
7360extern "C" {
7361#endif
7362char nm_test_var;
7363void nm_test_func(){}
7364#ifdef __cplusplus
7365}
7366#endif
7367int main(){nm_test_var='a';nm_test_func();return(0);}
7368EOF
7369
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>&5
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; then
7375 # Now try to grab the symbols.
7376 nlist=conftest.nm
7377 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7378 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && test -s "$nlist"; then
7382 # Try sorting and uniquifying the output.
7383 if sort "$nlist" | uniq > "$nlist"T; then
7384 mv -f "$nlist"T "$nlist"
7385 else
7386 rm -f "$nlist"T
7387 fi
7388
7389 # Make sure that we snagged all the symbols we need.
7390 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7391 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7392 cat <<EOF > conftest.$ac_ext
7393#ifdef __cplusplus
7394extern "C" {
7395#endif
7396
7397EOF
7398 # Now generate the symbol file.
7399 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7400
7401 cat <<EOF >> conftest.$ac_ext
7402#if defined (__STDC__) && __STDC__
7403# define lt_ptr_t void *
7404#else
7405# define lt_ptr_t char *
7406# define const
7407#endif
7408
7409/* The mapping between symbol names and symbols. */
7410const struct {
7411 const char *name;
7412 lt_ptr_t address;
7413}
7414lt_preloaded_symbols[] =
7415{
7416EOF
7417 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7418 cat <<\EOF >> conftest.$ac_ext
7419 {0, (lt_ptr_t) 0}
7420};
7421
7422#ifdef __cplusplus
7423}
7424#endif
7425EOF
7426 # Now try linking the two files.
7427 mv conftest.$ac_objext conftstm.$ac_objext
7428 lt_save_LIBS="$LIBS"
7429 lt_save_CFLAGS="$CFLAGS"
7430 LIBS="conftstm.$ac_objext"
7431 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433 (eval $ac_link) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7437 pipe_works=yes
7438 fi
7439 LIBS="$lt_save_LIBS"
7440 CFLAGS="$lt_save_CFLAGS"
7441 else
7442 echo "cannot find nm_test_func in $nlist" >&5
7443 fi
7444 else
7445 echo "cannot find nm_test_var in $nlist" >&5
7446 fi
7447 else
7448 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7449 fi
7450 else
7451 echo "$progname: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 fi
7454 rm -f conftest* conftst*
7455
7456 # Do not use the global_symbol_pipe unless it works.
7457 if test "$pipe_works" = yes; then
7458 break
7459 else
7460 lt_cv_sys_global_symbol_pipe=
7461 fi
7462done
7463
7464fi
7465
7466if test -z "$lt_cv_sys_global_symbol_pipe"; then
7467 lt_cv_sys_global_symbol_to_cdecl=
7468fi
7469if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7470 echo "$as_me:$LINENO: result: failed" >&5
7471echo "${ECHO_T}failed" >&6
7472else
7473 echo "$as_me:$LINENO: result: ok" >&5
7474echo "${ECHO_T}ok" >&6
7475fi
7476
7477
7478echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7479echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7480if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7484 libltdl_cv_preloaded_symbols=yes
7485 else
7486 libltdl_cv_preloaded_symbols=no
7487 fi
7488
7489fi
7490echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7491echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7492if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7493
7494cat >>confdefs.h <<\_ACEOF
7495#define HAVE_PRELOADED_SYMBOLS 1
7496_ACEOF
7497
7498fi
7499
7500LIBADD_DL=
7501
7502ac_ext=c
7503ac_cpp='$CPP $CPPFLAGS'
7504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
7508
7509echo "$as_me:$LINENO: checking for shl_load" >&5
7510echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7511if test "${ac_cv_func_shl_load+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514 cat >conftest.$ac_ext <<_ACEOF
7515/* confdefs.h. */
7516_ACEOF
7517cat confdefs.h >>conftest.$ac_ext
7518cat >>conftest.$ac_ext <<_ACEOF
7519/* end confdefs.h. */
7520/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7522#define shl_load innocuous_shl_load
7523
7524/* System header to define __stub macros and hopefully few prototypes,
7525 which can conflict with char shl_load (); below.
7526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7527 <limits.h> exists even on freestanding compilers. */
7528
7529#ifdef __STDC__
7530# include <limits.h>
7531#else
7532# include <assert.h>
7533#endif
7534
7535#undef shl_load
7536
7537/* Override any gcc2 internal prototype to avoid an error. */
7538#ifdef __cplusplus
7539extern "C"
7540{
7541#endif
7542/* We use char because int might match the return type of a gcc2
7543 builtin and then its argument prototype would still apply. */
7544char shl_load ();
7545/* The GNU C library defines this for functions which it implements
7546 to always fail with ENOSYS. Some functions are actually named
7547 something starting with __ and the normal name is an alias. */
7548#if defined (__stub_shl_load) || defined (__stub___shl_load)
7549choke me
7550#else
7551char (*f) () = shl_load;
7552#endif
7553#ifdef __cplusplus
7554}
7555#endif
7556
7557int
7558main ()
7559{
7560return f != shl_load;
7561 ;
7562 return 0;
7563}
7564_ACEOF
7565rm -f conftest.$ac_objext conftest$ac_exeext
7566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567 (eval $ac_link) 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -z "$ac_c_werror_flag"
7575 || test ! -s conftest.err'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; } &&
7581 { ac_try='test -s conftest$ac_exeext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 (eval $ac_try) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 ac_cv_func_shl_load=yes
7588else
7589 echo "$as_me: failed program was:" >&5
7590sed 's/^/| /' conftest.$ac_ext >&5
7591
7592ac_cv_func_shl_load=no
7593fi
7594rm -f conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7596fi
7597echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7598echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7599if test $ac_cv_func_shl_load = yes; then
7600
7601cat >>confdefs.h <<\_ACEOF
7602#define HAVE_SHL_LOAD 1
7603_ACEOF
7604
7605else
7606 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7607echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7608if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610else
7611 ac_check_lib_save_LIBS=$LIBS
7612LIBS="-ldld $LIBS"
7613cat >conftest.$ac_ext <<_ACEOF
7614/* confdefs.h. */
7615_ACEOF
7616cat confdefs.h >>conftest.$ac_ext
7617cat >>conftest.$ac_ext <<_ACEOF
7618/* end confdefs.h. */
7619
7620/* Override any gcc2 internal prototype to avoid an error. */
7621#ifdef __cplusplus
7622extern "C"
7623#endif
7624/* We use char because int might match the return type of a gcc2
7625 builtin and then its argument prototype would still apply. */
7626char shl_load ();
7627int
7628main ()
7629{
7630shl_load ();
7631 ;
7632 return 0;
7633}
7634_ACEOF
7635rm -f conftest.$ac_objext conftest$ac_exeext
7636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7637 (eval $ac_link) 2>conftest.er1
7638 ac_status=$?
7639 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -f conftest.er1
7641 cat conftest.err >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try='test -z "$ac_c_werror_flag"
7645 || test ! -s conftest.err'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; } &&
7651 { ac_try='test -s conftest$ac_exeext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 (eval $ac_try) 2>&5
7654 ac_status=$?
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 ac_cv_lib_dld_shl_load=yes
7658else
7659 echo "$as_me: failed program was:" >&5
7660sed 's/^/| /' conftest.$ac_ext >&5
7661
7662ac_cv_lib_dld_shl_load=no
7663fi
7664rm -f conftest.err conftest.$ac_objext \
7665 conftest$ac_exeext conftest.$ac_ext
7666LIBS=$ac_check_lib_save_LIBS
7667fi
7668echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7669echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7670if test $ac_cv_lib_dld_shl_load = yes; then
7671
7672cat >>confdefs.h <<\_ACEOF
7673#define HAVE_SHL_LOAD 1
7674_ACEOF
7675
7676 LIBADD_DL="$LIBADD_DL -ldld"
7677else
7678 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7679echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7680if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683 ac_check_lib_save_LIBS=$LIBS
7684LIBS="-ldl $LIBS"
7685cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h. */
7691
7692/* Override any gcc2 internal prototype to avoid an error. */
7693#ifdef __cplusplus
7694extern "C"
7695#endif
7696/* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7698char dlopen ();
7699int
7700main ()
7701{
7702dlopen ();
7703 ;
7704 return 0;
7705}
7706_ACEOF
7707rm -f conftest.$ac_objext conftest$ac_exeext
7708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest$ac_exeext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_lib_dl_dlopen=yes
7730else
7731 echo "$as_me: failed program was:" >&5
7732sed 's/^/| /' conftest.$ac_ext >&5
7733
7734ac_cv_lib_dl_dlopen=no
7735fi
7736rm -f conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7738LIBS=$ac_check_lib_save_LIBS
7739fi
7740echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7741echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7742if test $ac_cv_lib_dl_dlopen = yes; then
7743
7744cat >>confdefs.h <<\_ACEOF
7745#define HAVE_LIBDL 1
7746_ACEOF
7747
7748 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7749else
7750 cat >conftest.$ac_ext <<_ACEOF
7751/* confdefs.h. */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h. */
7756#if HAVE_DLFCN_H
7757# include <dlfcn.h>
7758#endif
7759
7760int
7761main ()
7762{
7763dlopen(0, 0);
7764 ;
7765 return 0;
7766}
7767_ACEOF
7768rm -f conftest.$ac_objext conftest$ac_exeext
7769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7770 (eval $ac_link) 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -z "$ac_c_werror_flag"
7778 || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest$ac_exeext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790
7791cat >>confdefs.h <<\_ACEOF
7792#define HAVE_LIBDL 1
7793_ACEOF
7794 libltdl_cv_func_dlopen="yes"
7795else
7796 echo "$as_me: failed program was:" >&5
7797sed 's/^/| /' conftest.$ac_ext >&5
7798
7799echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7800echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7801if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
7804 ac_check_lib_save_LIBS=$LIBS
7805LIBS="-lsvld $LIBS"
7806cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
7812
7813/* Override any gcc2 internal prototype to avoid an error. */
7814#ifdef __cplusplus
7815extern "C"
7816#endif
7817/* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819char dlopen ();
7820int
7821main ()
7822{
7823dlopen ();
7824 ;
7825 return 0;
7826}
7827_ACEOF
7828rm -f conftest.$ac_objext conftest$ac_exeext
7829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_lib_svld_dlopen=yes
7851else
7852 echo "$as_me: failed program was:" >&5
7853sed 's/^/| /' conftest.$ac_ext >&5
7854
7855ac_cv_lib_svld_dlopen=no
7856fi
7857rm -f conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859LIBS=$ac_check_lib_save_LIBS
7860fi
7861echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7862echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7863if test $ac_cv_lib_svld_dlopen = yes; then
7864
7865cat >>confdefs.h <<\_ACEOF
7866#define HAVE_LIBDL 1
7867_ACEOF
7868
7869 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7870else
7871 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7872echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7873if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 ac_check_lib_save_LIBS=$LIBS
7877LIBS="-ldld $LIBS"
7878cat >conftest.$ac_ext <<_ACEOF
7879/* confdefs.h. */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h. */
7884
7885/* Override any gcc2 internal prototype to avoid an error. */
7886#ifdef __cplusplus
7887extern "C"
7888#endif
7889/* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891char dld_link ();
7892int
7893main ()
7894{
7895dld_link ();
7896 ;
7897 return 0;
7898}
7899_ACEOF
7900rm -f conftest.$ac_objext conftest$ac_exeext
7901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902 (eval $ac_link) 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest$ac_exeext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_lib_dld_dld_link=yes
7923else
7924 echo "$as_me: failed program was:" >&5
7925sed 's/^/| /' conftest.$ac_ext >&5
7926
7927ac_cv_lib_dld_dld_link=no
7928fi
7929rm -f conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7931LIBS=$ac_check_lib_save_LIBS
7932fi
7933echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7934echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7935if test $ac_cv_lib_dld_dld_link = yes; then
7936
7937cat >>confdefs.h <<\_ACEOF
7938#define HAVE_DLD 1
7939_ACEOF
7940
7941 LIBADD_DL="$LIBADD_DL -ldld"
7942else
7943 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7944echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7945if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947else
7948 cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
7954/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7956#define _dyld_func_lookup innocuous__dyld_func_lookup
7957
7958/* System header to define __stub macros and hopefully few prototypes,
7959 which can conflict with char _dyld_func_lookup (); below.
7960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7961 <limits.h> exists even on freestanding compilers. */
7962
7963#ifdef __STDC__
7964# include <limits.h>
7965#else
7966# include <assert.h>
7967#endif
7968
7969#undef _dyld_func_lookup
7970
7971/* Override any gcc2 internal prototype to avoid an error. */
7972#ifdef __cplusplus
7973extern "C"
7974{
7975#endif
7976/* We use char because int might match the return type of a gcc2
7977 builtin and then its argument prototype would still apply. */
7978char _dyld_func_lookup ();
7979/* The GNU C library defines this for functions which it implements
7980 to always fail with ENOSYS. Some functions are actually named
7981 something starting with __ and the normal name is an alias. */
7982#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7983choke me
7984#else
7985char (*f) () = _dyld_func_lookup;
7986#endif
7987#ifdef __cplusplus
7988}
7989#endif
7990
7991int
7992main ()
7993{
7994return f != _dyld_func_lookup;
7995 ;
7996 return 0;
7997}
7998_ACEOF
7999rm -f conftest.$ac_objext conftest$ac_exeext
8000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -z "$ac_c_werror_flag"
8009 || test ! -s conftest.err'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 (eval $ac_try) 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; } &&
8015 { ac_try='test -s conftest$ac_exeext'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 ac_cv_func__dyld_func_lookup=yes
8022else
8023 echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
8025
8026ac_cv_func__dyld_func_lookup=no
8027fi
8028rm -f conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030fi
8031echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8032echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8033if test $ac_cv_func__dyld_func_lookup = yes; then
8034
8035cat >>confdefs.h <<\_ACEOF
8036#define HAVE_DYLD 1
8037_ACEOF
8038
8039fi
8040
8041
8042fi
8043
8044
8045fi
8046
8047
8048fi
8049rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051
8052fi
8053
8054
8055fi
8056
8057
8058fi
8059
8060
8061if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8062then
8063 lt_save_LIBS="$LIBS"
8064 LIBS="$LIBS $LIBADD_DL"
8065
8066for ac_func in dlerror
8067do
8068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8069echo "$as_me:$LINENO: checking for $ac_func" >&5
8070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8071if eval "test \"\${$as_ac_var+set}\" = set"; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073else
8074 cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h. */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h. */
8080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8082#define $ac_func innocuous_$ac_func
8083
8084/* System header to define __stub macros and hopefully few prototypes,
8085 which can conflict with char $ac_func (); below.
8086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087 <limits.h> exists even on freestanding compilers. */
8088
8089#ifdef __STDC__
8090# include <limits.h>
8091#else
8092# include <assert.h>
8093#endif
8094
8095#undef $ac_func
8096
8097/* Override any gcc2 internal prototype to avoid an error. */
8098#ifdef __cplusplus
8099extern "C"
8100{
8101#endif
8102/* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8104char $ac_func ();
8105/* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
8108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8109choke me
8110#else
8111char (*f) () = $ac_func;
8112#endif
8113#ifdef __cplusplus
8114}
8115#endif
8116
8117int
8118main ()
8119{
8120return f != $ac_func;
8121 ;
8122 return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext conftest$ac_exeext
8126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127 (eval $ac_link) 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -z "$ac_c_werror_flag"
8135 || test ! -s conftest.err'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest$ac_exeext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 eval "$as_ac_var=yes"
8148else
8149 echo "$as_me: failed program was:" >&5
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
8152eval "$as_ac_var=no"
8153fi
8154rm -f conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8156fi
8157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8159if test `eval echo '${'$as_ac_var'}'` = yes; then
8160 cat >>confdefs.h <<_ACEOF
8161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8162_ACEOF
8163
8164fi
8165done
8166
8167 LIBS="$lt_save_LIBS"
8168fi
8169ac_ext=c
8170ac_cpp='$CPP $CPPFLAGS'
8171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8173ac_compiler_gnu=$ac_cv_c_compiler_gnu
8174
8175
8176
8177echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8178echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8179if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182 ac_cv_sys_symbol_underscore=no
8183 cat > conftest.$ac_ext <<EOF
8184void nm_test_func(){}
8185int main(){nm_test_func;return 0;}
8186EOF
8187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188 (eval $ac_compile) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; then
8192 # Now try to grab the symbols.
8193 ac_nlist=conftest.nm
8194 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8195 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && test -s "$ac_nlist"; then
8199 # See whether the symbols have a leading underscore.
8200 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8201 ac_cv_sys_symbol_underscore=yes
8202 else
8203 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8204 :
8205 else
8206 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8207 fi
8208 fi
8209 else
8210 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8211 fi
8212 else
8213 echo "configure: failed program was:" >&5
8214 cat conftest.c >&5
8215 fi
8216 rm -rf conftest*
8217
8218fi
8219echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8220echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8221
8222
8223if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8224 if test x"$libltdl_cv_func_dlopen" = xyes ||
8225 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8226 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8227echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8228if test "${libltdl_cv_need_uscore+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230else
8231 libltdl_cv_need_uscore=unknown
8232 save_LIBS="$LIBS"
8233 LIBS="$LIBS $LIBADD_DL"
8234 if test "$cross_compiling" = yes; then :
8235 libltdl_cv_need_uscore=cross
8236else
8237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8238 lt_status=$lt_dlunknown
8239 cat > conftest.$ac_ext <<EOF
Reid Spencer675f0922005-04-22 17:06:18 +00008240#line 8240 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008241#include "confdefs.h"
8242
8243#if HAVE_DLFCN_H
8244#include <dlfcn.h>
8245#endif
8246
8247#include <stdio.h>
8248
8249#ifdef RTLD_GLOBAL
8250# define LT_DLGLOBAL RTLD_GLOBAL
8251#else
8252# ifdef DL_GLOBAL
8253# define LT_DLGLOBAL DL_GLOBAL
8254# else
8255# define LT_DLGLOBAL 0
8256# endif
8257#endif
8258
8259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8260 find out it does not work in some platform. */
8261#ifndef LT_DLLAZY_OR_NOW
8262# ifdef RTLD_LAZY
8263# define LT_DLLAZY_OR_NOW RTLD_LAZY
8264# else
8265# ifdef DL_LAZY
8266# define LT_DLLAZY_OR_NOW DL_LAZY
8267# else
8268# ifdef RTLD_NOW
8269# define LT_DLLAZY_OR_NOW RTLD_NOW
8270# else
8271# ifdef DL_NOW
8272# define LT_DLLAZY_OR_NOW DL_NOW
8273# else
8274# define LT_DLLAZY_OR_NOW 0
8275# endif
8276# endif
8277# endif
8278# endif
8279#endif
8280
8281#ifdef __cplusplus
8282extern "C" void exit (int);
8283#endif
8284
8285void fnord() { int i=42;}
8286int main ()
8287{
8288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8289 int status = $lt_dlunknown;
8290
8291 if (self)
8292 {
8293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8295 /* dlclose (self); */
8296 }
8297
8298 exit (status);
8299}
8300EOF
8301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302 (eval $ac_link) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8306 (./conftest; exit; ) 2>/dev/null
8307 lt_status=$?
8308 case x$lt_status in
8309 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8310 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8311 x$lt_unknown|x*) ;;
8312 esac
8313 else :
8314 # compilation failed
8315
8316 fi
8317fi
8318rm -fr conftest*
8319
8320 LIBS="$save_LIBS"
8321
8322fi
8323echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8324echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8325 fi
8326fi
8327
8328if test x"$libltdl_cv_need_uscore" = xyes; then
8329
8330cat >>confdefs.h <<\_ACEOF
8331#define NEED_USCORE 1
8332_ACEOF
8333
8334fi
8335
8336
8337echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8338echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8339if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 # PORTME does your system automatically load deplibs for dlopen?
8343 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8344 # For now, we just catch OSes we know something about -- in the
8345 # future, we'll try test this programmatically.
8346 libltdl_cv_sys_dlopen_deplibs=unknown
8347 case "$host_os" in
8348 aix3*|aix4.1.*|aix4.2.*)
8349 # Unknown whether this is true for these versions of AIX, but
8350 # we want this `case' here to explicitly catch those versions.
8351 libltdl_cv_sys_dlopen_deplibs=unknown
8352 ;;
8353 aix[45]*)
8354 libltdl_cv_sys_dlopen_deplibs=yes
8355 ;;
8356 darwin*)
8357 # Assuming the user has installed a libdl from somewhere, this is true
8358 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8359 libltdl_cv_sys_dlopen_deplibs=yes
8360 ;;
8361 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8362 # GNU and its variants, using gnu ld.so (Glibc)
8363 libltdl_cv_sys_dlopen_deplibs=yes
8364 ;;
8365 hpux10*|hpux11*)
8366 libltdl_cv_sys_dlopen_deplibs=yes
8367 ;;
8368 irix[12345]*|irix6.[01]*)
8369 # Catch all versions of IRIX before 6.2, and indicate that we don't
8370 # know how it worked for any of those versions.
8371 libltdl_cv_sys_dlopen_deplibs=unknown
8372 ;;
8373 irix*)
8374 # The case above catches anything before 6.2, and it's known that
8375 # at 6.2 and later dlopen does load deplibs.
8376 libltdl_cv_sys_dlopen_deplibs=yes
8377 ;;
8378 netbsd*)
8379 libltdl_cv_sys_dlopen_deplibs=yes
8380 ;;
8381 openbsd*)
8382 libltdl_cv_sys_dlopen_deplibs=yes
8383 ;;
8384 osf[1234]*)
8385 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8386 # it did *not* use an RPATH in a shared library to find objects the
8387 # library depends on, so we explictly say `no'.
8388 libltdl_cv_sys_dlopen_deplibs=no
8389 ;;
8390 osf5.0|osf5.0a|osf5.1)
8391 # dlopen *does* load deplibs and with the right loader patch applied
8392 # it even uses RPATH in a shared library to search for shared objects
8393 # that the library depends on, but there's no easy way to know if that
8394 # patch is installed. Since this is the case, all we can really
8395 # say is unknown -- it depends on the patch being installed. If
8396 # it is, this changes to `yes'. Without it, it would be `no'.
8397 libltdl_cv_sys_dlopen_deplibs=unknown
8398 ;;
8399 osf*)
8400 # the two cases above should catch all versions of osf <= 5.1. Read
8401 # the comments above for what we know about them.
8402 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8403 # is used to find them so we can finally say `yes'.
8404 libltdl_cv_sys_dlopen_deplibs=yes
8405 ;;
8406 solaris*)
8407 libltdl_cv_sys_dlopen_deplibs=yes
8408 ;;
8409 esac
8410
8411fi
8412echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8413echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8414if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8415
8416cat >>confdefs.h <<\_ACEOF
8417#define LTDL_DLOPEN_DEPLIBS 1
8418_ACEOF
8419
8420fi
8421
8422
8423for ac_header in argz.h
8424do
8425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8426if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427 echo "$as_me:$LINENO: checking for $ac_header" >&5
8428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8429if eval "test \"\${$as_ac_Header+set}\" = set"; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431fi
8432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8434else
8435 # Is the header compilable?
8436echo "$as_me:$LINENO: checking $ac_header usability" >&5
8437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8438cat >conftest.$ac_ext <<_ACEOF
8439/* confdefs.h. */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
8443/* end confdefs.h. */
8444$ac_includes_default
8445#include <$ac_header>
8446_ACEOF
8447rm -f conftest.$ac_objext
8448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449 (eval $ac_compile) 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -z "$ac_c_werror_flag"
8457 || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest.$ac_objext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_header_compiler=yes
8470else
8471 echo "$as_me: failed program was:" >&5
8472sed 's/^/| /' conftest.$ac_ext >&5
8473
8474ac_header_compiler=no
8475fi
8476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8478echo "${ECHO_T}$ac_header_compiler" >&6
8479
8480# Is the header present?
8481echo "$as_me:$LINENO: checking $ac_header presence" >&5
8482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8483cat >conftest.$ac_ext <<_ACEOF
8484/* confdefs.h. */
8485_ACEOF
8486cat confdefs.h >>conftest.$ac_ext
8487cat >>conftest.$ac_ext <<_ACEOF
8488/* end confdefs.h. */
8489#include <$ac_header>
8490_ACEOF
8491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } >/dev/null; then
8499 if test -s conftest.err; then
8500 ac_cpp_err=$ac_c_preproc_warn_flag
8501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8502 else
8503 ac_cpp_err=
8504 fi
8505else
8506 ac_cpp_err=yes
8507fi
8508if test -z "$ac_cpp_err"; then
8509 ac_header_preproc=yes
8510else
8511 echo "$as_me: failed program was:" >&5
8512sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ac_header_preproc=no
8515fi
8516rm -f conftest.err conftest.$ac_ext
8517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8518echo "${ECHO_T}$ac_header_preproc" >&6
8519
8520# So? What about this header?
8521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8522 yes:no: )
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8527 ac_header_preproc=yes
8528 ;;
8529 no:yes:* )
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8542 (
8543 cat <<\_ASBOX
8544## ----------------------------------- ##
8545## Report this to llvmbugs@cs.uiuc.edu ##
8546## ----------------------------------- ##
8547_ASBOX
8548 ) |
8549 sed "s/^/$as_me: WARNING: /" >&2
8550 ;;
8551esac
8552echo "$as_me:$LINENO: checking for $ac_header" >&5
8553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8554if eval "test \"\${$as_ac_Header+set}\" = set"; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557 eval "$as_ac_Header=\$ac_header_preproc"
8558fi
8559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8561
8562fi
8563if test `eval echo '${'$as_ac_Header'}'` = yes; then
8564 cat >>confdefs.h <<_ACEOF
8565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8566_ACEOF
8567
8568fi
8569
8570done
8571
8572
8573echo "$as_me:$LINENO: checking for error_t" >&5
8574echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8575if test "${ac_cv_type_error_t+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578 cat >conftest.$ac_ext <<_ACEOF
8579/* confdefs.h. */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h. */
8584#if HAVE_ARGZ_H
8585# include <argz.h>
8586#endif
8587
8588int
8589main ()
8590{
8591if ((error_t *) 0)
8592 return 0;
8593if (sizeof (error_t))
8594 return 0;
8595 ;
8596 return 0;
8597}
8598_ACEOF
8599rm -f conftest.$ac_objext
8600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 ac_cv_type_error_t=yes
8622else
8623 echo "$as_me: failed program was:" >&5
8624sed 's/^/| /' conftest.$ac_ext >&5
8625
8626ac_cv_type_error_t=no
8627fi
8628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8629fi
8630echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8631echo "${ECHO_T}$ac_cv_type_error_t" >&6
8632if test $ac_cv_type_error_t = yes; then
8633
8634cat >>confdefs.h <<_ACEOF
8635#define HAVE_ERROR_T 1
8636_ACEOF
8637
8638
8639else
8640
8641cat >>confdefs.h <<\_ACEOF
8642#define error_t int
8643_ACEOF
8644
8645fi
8646
8647
8648
8649
8650
8651
8652
8653for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8654do
8655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656echo "$as_me:$LINENO: checking for $ac_func" >&5
8657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8658if eval "test \"\${$as_ac_var+set}\" = set"; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h. */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h. */
8667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8669#define $ac_func innocuous_$ac_func
8670
8671/* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func (); below.
8673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 <limits.h> exists even on freestanding compilers. */
8675
8676#ifdef __STDC__
8677# include <limits.h>
8678#else
8679# include <assert.h>
8680#endif
8681
8682#undef $ac_func
8683
8684/* Override any gcc2 internal prototype to avoid an error. */
8685#ifdef __cplusplus
8686extern "C"
8687{
8688#endif
8689/* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8691char $ac_func ();
8692/* The GNU C library defines this for functions which it implements
8693 to always fail with ENOSYS. Some functions are actually named
8694 something starting with __ and the normal name is an alias. */
8695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8696choke me
8697#else
8698char (*f) () = $ac_func;
8699#endif
8700#ifdef __cplusplus
8701}
8702#endif
8703
8704int
8705main ()
8706{
8707return f != $ac_func;
8708 ;
8709 return 0;
8710}
8711_ACEOF
8712rm -f conftest.$ac_objext conftest$ac_exeext
8713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8735else
8736 echo "$as_me: failed program was:" >&5
8737sed 's/^/| /' conftest.$ac_ext >&5
8738
8739eval "$as_ac_var=no"
8740fi
8741rm -f conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8743fi
8744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8749_ACEOF
8750
8751fi
8752done
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8782 stdio.h unistd.h
8783do
8784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo "$as_me:$LINENO: checking for $ac_header" >&5
8787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8788if eval "test \"\${$as_ac_Header+set}\" = set"; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790fi
8791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793else
8794 # Is the header compilable?
8795echo "$as_me:$LINENO: checking $ac_header usability" >&5
8796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8797cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h. */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h. */
8803$ac_includes_default
8804#include <$ac_header>
8805_ACEOF
8806rm -f conftest.$ac_objext
8807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_header_compiler=yes
8829else
8830 echo "$as_me: failed program was:" >&5
8831sed 's/^/| /' conftest.$ac_ext >&5
8832
8833ac_header_compiler=no
8834fi
8835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8837echo "${ECHO_T}$ac_header_compiler" >&6
8838
8839# Is the header present?
8840echo "$as_me:$LINENO: checking $ac_header presence" >&5
8841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8842cat >conftest.$ac_ext <<_ACEOF
8843/* confdefs.h. */
8844_ACEOF
8845cat confdefs.h >>conftest.$ac_ext
8846cat >>conftest.$ac_ext <<_ACEOF
8847/* end confdefs.h. */
8848#include <$ac_header>
8849_ACEOF
8850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } >/dev/null; then
8858 if test -s conftest.err; then
8859 ac_cpp_err=$ac_c_preproc_warn_flag
8860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8861 else
8862 ac_cpp_err=
8863 fi
8864else
8865 ac_cpp_err=yes
8866fi
8867if test -z "$ac_cpp_err"; then
8868 ac_header_preproc=yes
8869else
8870 echo "$as_me: failed program was:" >&5
8871sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 ac_header_preproc=no
8874fi
8875rm -f conftest.err conftest.$ac_ext
8876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8877echo "${ECHO_T}$ac_header_preproc" >&6
8878
8879# So? What about this header?
8880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8881 yes:no: )
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8886 ac_header_preproc=yes
8887 ;;
8888 no:yes:* )
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8896echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8901 (
8902 cat <<\_ASBOX
8903## ----------------------------------- ##
8904## Report this to llvmbugs@cs.uiuc.edu ##
8905## ----------------------------------- ##
8906_ASBOX
8907 ) |
8908 sed "s/^/$as_me: WARNING: /" >&2
8909 ;;
8910esac
8911echo "$as_me:$LINENO: checking for $ac_header" >&5
8912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8913if eval "test \"\${$as_ac_Header+set}\" = set"; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915else
8916 eval "$as_ac_Header=\$ac_header_preproc"
8917fi
8918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8920
8921fi
8922if test `eval echo '${'$as_ac_Header'}'` = yes; then
8923 cat >>confdefs.h <<_ACEOF
8924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8925_ACEOF
8926
8927fi
8928
8929done
8930
8931
8932
8933
8934
8935for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8936do
8937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8938if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939 echo "$as_me:$LINENO: checking for $ac_header" >&5
8940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8941if eval "test \"\${$as_ac_Header+set}\" = set"; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943fi
8944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946else
8947 # Is the header compilable?
8948echo "$as_me:$LINENO: checking $ac_header usability" >&5
8949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8950cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956$ac_includes_default
8957#include <$ac_header>
8958_ACEOF
8959rm -f conftest.$ac_objext
8960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961 (eval $ac_compile) 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -z "$ac_c_werror_flag"
8969 || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8981 ac_header_compiler=yes
8982else
8983 echo "$as_me: failed program was:" >&5
8984sed 's/^/| /' conftest.$ac_ext >&5
8985
8986ac_header_compiler=no
8987fi
8988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990echo "${ECHO_T}$ac_header_compiler" >&6
8991
8992# Is the header present?
8993echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8995cat >conftest.$ac_ext <<_ACEOF
8996/* confdefs.h. */
8997_ACEOF
8998cat confdefs.h >>conftest.$ac_ext
8999cat >>conftest.$ac_ext <<_ACEOF
9000/* end confdefs.h. */
9001#include <$ac_header>
9002_ACEOF
9003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null; then
9011 if test -s conftest.err; then
9012 ac_cpp_err=$ac_c_preproc_warn_flag
9013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9014 else
9015 ac_cpp_err=
9016 fi
9017else
9018 ac_cpp_err=yes
9019fi
9020if test -z "$ac_cpp_err"; then
9021 ac_header_preproc=yes
9022else
9023 echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 ac_header_preproc=no
9027fi
9028rm -f conftest.err conftest.$ac_ext
9029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030echo "${ECHO_T}$ac_header_preproc" >&6
9031
9032# So? What about this header?
9033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034 yes:no: )
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039 ac_header_preproc=yes
9040 ;;
9041 no:yes:* )
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9054 (
9055 cat <<\_ASBOX
9056## ----------------------------------- ##
9057## Report this to llvmbugs@cs.uiuc.edu ##
9058## ----------------------------------- ##
9059_ASBOX
9060 ) |
9061 sed "s/^/$as_me: WARNING: /" >&2
9062 ;;
9063esac
9064echo "$as_me:$LINENO: checking for $ac_header" >&5
9065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068else
9069 eval "$as_ac_Header=\$ac_header_preproc"
9070fi
9071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073
9074fi
9075if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078_ACEOF
9079
9080fi
9081
9082done
9083
9084
9085
9086for ac_header in string.h strings.h
9087do
9088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9089if eval "test \"\${$as_ac_Header+set}\" = set"; then
9090 echo "$as_me:$LINENO: checking for $ac_header" >&5
9091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9092if eval "test \"\${$as_ac_Header+set}\" = set"; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094fi
9095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9097else
9098 # Is the header compilable?
9099echo "$as_me:$LINENO: checking $ac_header usability" >&5
9100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9101cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h. */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h. */
9107$ac_includes_default
9108#include <$ac_header>
9109_ACEOF
9110rm -f conftest.$ac_objext
9111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112 (eval $ac_compile) 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -z "$ac_c_werror_flag"
9120 || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_header_compiler=yes
9133else
9134 echo "$as_me: failed program was:" >&5
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
9137ac_header_compiler=no
9138fi
9139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9141echo "${ECHO_T}$ac_header_compiler" >&6
9142
9143# Is the header present?
9144echo "$as_me:$LINENO: checking $ac_header presence" >&5
9145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9146cat >conftest.$ac_ext <<_ACEOF
9147/* confdefs.h. */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h. */
9152#include <$ac_header>
9153_ACEOF
9154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9156 ac_status=$?
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } >/dev/null; then
9162 if test -s conftest.err; then
9163 ac_cpp_err=$ac_c_preproc_warn_flag
9164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9165 else
9166 ac_cpp_err=
9167 fi
9168else
9169 ac_cpp_err=yes
9170fi
9171if test -z "$ac_cpp_err"; then
9172 ac_header_preproc=yes
9173else
9174 echo "$as_me: failed program was:" >&5
9175sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 ac_header_preproc=no
9178fi
9179rm -f conftest.err conftest.$ac_ext
9180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9181echo "${ECHO_T}$ac_header_preproc" >&6
9182
9183# So? What about this header?
9184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9185 yes:no: )
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9190 ac_header_preproc=yes
9191 ;;
9192 no:yes:* )
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9205 (
9206 cat <<\_ASBOX
9207## ----------------------------------- ##
9208## Report this to llvmbugs@cs.uiuc.edu ##
9209## ----------------------------------- ##
9210_ASBOX
9211 ) |
9212 sed "s/^/$as_me: WARNING: /" >&2
9213 ;;
9214esac
9215echo "$as_me:$LINENO: checking for $ac_header" >&5
9216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9217if eval "test \"\${$as_ac_Header+set}\" = set"; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219else
9220 eval "$as_ac_Header=\$ac_header_preproc"
9221fi
9222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9224
9225fi
9226if test `eval echo '${'$as_ac_Header'}'` = yes; then
9227 cat >>confdefs.h <<_ACEOF
9228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9229_ACEOF
9230 break
9231fi
9232
9233done
9234
9235
9236
9237
9238for ac_func in strchr index
9239do
9240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9241echo "$as_me:$LINENO: checking for $ac_func" >&5
9242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9243if eval "test \"\${$as_ac_var+set}\" = set"; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9245else
9246 cat >conftest.$ac_ext <<_ACEOF
9247/* confdefs.h. */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h. */
9252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9254#define $ac_func innocuous_$ac_func
9255
9256/* System header to define __stub macros and hopefully few prototypes,
9257 which can conflict with char $ac_func (); below.
9258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9259 <limits.h> exists even on freestanding compilers. */
9260
9261#ifdef __STDC__
9262# include <limits.h>
9263#else
9264# include <assert.h>
9265#endif
9266
9267#undef $ac_func
9268
9269/* Override any gcc2 internal prototype to avoid an error. */
9270#ifdef __cplusplus
9271extern "C"
9272{
9273#endif
9274/* We use char because int might match the return type of a gcc2
9275 builtin and then its argument prototype would still apply. */
9276char $ac_func ();
9277/* The GNU C library defines this for functions which it implements
9278 to always fail with ENOSYS. Some functions are actually named
9279 something starting with __ and the normal name is an alias. */
9280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9281choke me
9282#else
9283char (*f) () = $ac_func;
9284#endif
9285#ifdef __cplusplus
9286}
9287#endif
9288
9289int
9290main ()
9291{
9292return f != $ac_func;
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext conftest$ac_exeext
9298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 eval "$as_ac_var=yes"
9320else
9321 echo "$as_me: failed program was:" >&5
9322sed 's/^/| /' conftest.$ac_ext >&5
9323
9324eval "$as_ac_var=no"
9325fi
9326rm -f conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328fi
9329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9331if test `eval echo '${'$as_ac_var'}'` = yes; then
9332 cat >>confdefs.h <<_ACEOF
9333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9334_ACEOF
9335 break
9336fi
9337done
9338
9339
9340
9341for ac_func in strrchr rindex
9342do
9343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9344echo "$as_me:$LINENO: checking for $ac_func" >&5
9345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9346if eval "test \"\${$as_ac_var+set}\" = set"; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348else
9349 cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
9355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9357#define $ac_func innocuous_$ac_func
9358
9359/* System header to define __stub macros and hopefully few prototypes,
9360 which can conflict with char $ac_func (); below.
9361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9362 <limits.h> exists even on freestanding compilers. */
9363
9364#ifdef __STDC__
9365# include <limits.h>
9366#else
9367# include <assert.h>
9368#endif
9369
9370#undef $ac_func
9371
9372/* Override any gcc2 internal prototype to avoid an error. */
9373#ifdef __cplusplus
9374extern "C"
9375{
9376#endif
9377/* We use char because int might match the return type of a gcc2
9378 builtin and then its argument prototype would still apply. */
9379char $ac_func ();
9380/* The GNU C library defines this for functions which it implements
9381 to always fail with ENOSYS. Some functions are actually named
9382 something starting with __ and the normal name is an alias. */
9383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9384choke me
9385#else
9386char (*f) () = $ac_func;
9387#endif
9388#ifdef __cplusplus
9389}
9390#endif
9391
9392int
9393main ()
9394{
9395return f != $ac_func;
9396 ;
9397 return 0;
9398}
9399_ACEOF
9400rm -f conftest.$ac_objext conftest$ac_exeext
9401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402 (eval $ac_link) 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -z "$ac_c_werror_flag"
9410 || test ! -s conftest.err'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 eval "$as_ac_var=yes"
9423else
9424 echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
9427eval "$as_ac_var=no"
9428fi
9429rm -f conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
9431fi
9432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9434if test `eval echo '${'$as_ac_var'}'` = yes; then
9435 cat >>confdefs.h <<_ACEOF
9436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9437_ACEOF
9438 break
9439fi
9440done
9441
9442
9443
9444for ac_func in memcpy bcopy
9445do
9446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9447echo "$as_me:$LINENO: checking for $ac_func" >&5
9448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9449if eval "test \"\${$as_ac_var+set}\" = set"; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451else
9452 cat >conftest.$ac_ext <<_ACEOF
9453/* confdefs.h. */
9454_ACEOF
9455cat confdefs.h >>conftest.$ac_ext
9456cat >>conftest.$ac_ext <<_ACEOF
9457/* end confdefs.h. */
9458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9460#define $ac_func innocuous_$ac_func
9461
9462/* System header to define __stub macros and hopefully few prototypes,
9463 which can conflict with char $ac_func (); below.
9464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9465 <limits.h> exists even on freestanding compilers. */
9466
9467#ifdef __STDC__
9468# include <limits.h>
9469#else
9470# include <assert.h>
9471#endif
9472
9473#undef $ac_func
9474
9475/* Override any gcc2 internal prototype to avoid an error. */
9476#ifdef __cplusplus
9477extern "C"
9478{
9479#endif
9480/* We use char because int might match the return type of a gcc2
9481 builtin and then its argument prototype would still apply. */
9482char $ac_func ();
9483/* The GNU C library defines this for functions which it implements
9484 to always fail with ENOSYS. Some functions are actually named
9485 something starting with __ and the normal name is an alias. */
9486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9487choke me
9488#else
9489char (*f) () = $ac_func;
9490#endif
9491#ifdef __cplusplus
9492}
9493#endif
9494
9495int
9496main ()
9497{
9498return f != $ac_func;
9499 ;
9500 return 0;
9501}
9502_ACEOF
9503rm -f conftest.$ac_objext conftest$ac_exeext
9504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9505 (eval $ac_link) 2>conftest.er1
9506 ac_status=$?
9507 grep -v '^ *+' conftest.er1 >conftest.err
9508 rm -f conftest.er1
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -z "$ac_c_werror_flag"
9513 || test ! -s conftest.err'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; } &&
9519 { ac_try='test -s conftest$ac_exeext'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; }; then
9525 eval "$as_ac_var=yes"
9526else
9527 echo "$as_me: failed program was:" >&5
9528sed 's/^/| /' conftest.$ac_ext >&5
9529
9530eval "$as_ac_var=no"
9531fi
9532rm -f conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534fi
9535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9536echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9537if test `eval echo '${'$as_ac_var'}'` = yes; then
9538 cat >>confdefs.h <<_ACEOF
9539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9540_ACEOF
9541 break
9542fi
9543done
9544
9545
9546
9547for ac_func in memmove strcmp
9548do
9549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9550echo "$as_me:$LINENO: checking for $ac_func" >&5
9551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9552if eval "test \"\${$as_ac_var+set}\" = set"; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555 cat >conftest.$ac_ext <<_ACEOF
9556/* confdefs.h. */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h. */
9561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9563#define $ac_func innocuous_$ac_func
9564
9565/* System header to define __stub macros and hopefully few prototypes,
9566 which can conflict with char $ac_func (); below.
9567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9568 <limits.h> exists even on freestanding compilers. */
9569
9570#ifdef __STDC__
9571# include <limits.h>
9572#else
9573# include <assert.h>
9574#endif
9575
9576#undef $ac_func
9577
9578/* Override any gcc2 internal prototype to avoid an error. */
9579#ifdef __cplusplus
9580extern "C"
9581{
9582#endif
9583/* We use char because int might match the return type of a gcc2
9584 builtin and then its argument prototype would still apply. */
9585char $ac_func ();
9586/* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
9589#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9590choke me
9591#else
9592char (*f) () = $ac_func;
9593#endif
9594#ifdef __cplusplus
9595}
9596#endif
9597
9598int
9599main ()
9600{
9601return f != $ac_func;
9602 ;
9603 return 0;
9604}
9605_ACEOF
9606rm -f conftest.$ac_objext conftest$ac_exeext
9607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag"
9616 || test ! -s conftest.err'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; } &&
9622 { ac_try='test -s conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 eval "$as_ac_var=yes"
9629else
9630 echo "$as_me: failed program was:" >&5
9631sed 's/^/| /' conftest.$ac_ext >&5
9632
9633eval "$as_ac_var=no"
9634fi
9635rm -f conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637fi
9638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9639echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9640if test `eval echo '${'$as_ac_var'}'` = yes; then
9641 cat >>confdefs.h <<_ACEOF
9642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9643_ACEOF
9644
9645fi
9646done
9647
9648
9649
9650
9651for ac_func in closedir opendir readdir
9652do
9653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9654echo "$as_me:$LINENO: checking for $ac_func" >&5
9655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9656if eval "test \"\${$as_ac_var+set}\" = set"; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658else
9659 cat >conftest.$ac_ext <<_ACEOF
9660/* confdefs.h. */
9661_ACEOF
9662cat confdefs.h >>conftest.$ac_ext
9663cat >>conftest.$ac_ext <<_ACEOF
9664/* end confdefs.h. */
9665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9667#define $ac_func innocuous_$ac_func
9668
9669/* System header to define __stub macros and hopefully few prototypes,
9670 which can conflict with char $ac_func (); below.
9671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9672 <limits.h> exists even on freestanding compilers. */
9673
9674#ifdef __STDC__
9675# include <limits.h>
9676#else
9677# include <assert.h>
9678#endif
9679
9680#undef $ac_func
9681
9682/* Override any gcc2 internal prototype to avoid an error. */
9683#ifdef __cplusplus
9684extern "C"
9685{
9686#endif
9687/* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9689char $ac_func ();
9690/* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9694choke me
9695#else
9696char (*f) () = $ac_func;
9697#endif
9698#ifdef __cplusplus
9699}
9700#endif
9701
9702int
9703main ()
9704{
9705return f != $ac_func;
9706 ;
9707 return 0;
9708}
9709_ACEOF
9710rm -f conftest.$ac_objext conftest$ac_exeext
9711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag"
9720 || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 eval "$as_ac_var=yes"
9733else
9734 echo "$as_me: failed program was:" >&5
9735sed 's/^/| /' conftest.$ac_ext >&5
9736
9737eval "$as_ac_var=no"
9738fi
9739rm -f conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741fi
9742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9744if test `eval echo '${'$as_ac_var'}'` = yes; then
9745 cat >>confdefs.h <<_ACEOF
9746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9747_ACEOF
9748
9749fi
9750done
9751
9752
9753# Check whether --enable-shared or --disable-shared was given.
9754if test "${enable_shared+set}" = set; then
9755 enableval="$enable_shared"
9756 p=${PACKAGE-default}
9757 case $enableval in
9758 yes) enable_shared=yes ;;
9759 no) enable_shared=no ;;
9760 *)
9761 enable_shared=no
9762 # Look at the argument we got. We use all the common list separators.
9763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9764 for pkg in $enableval; do
9765 IFS="$lt_save_ifs"
9766 if test "X$pkg" = "X$p"; then
9767 enable_shared=yes
9768 fi
9769 done
9770 IFS="$lt_save_ifs"
9771 ;;
9772 esac
9773else
9774 enable_shared=yes
9775fi;
9776
9777# Check whether --enable-static or --disable-static was given.
9778if test "${enable_static+set}" = set; then
9779 enableval="$enable_static"
9780 p=${PACKAGE-default}
9781 case $enableval in
9782 yes) enable_static=yes ;;
9783 no) enable_static=no ;;
9784 *)
9785 enable_static=no
9786 # Look at the argument we got. We use all the common list separators.
9787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9788 for pkg in $enableval; do
9789 IFS="$lt_save_ifs"
9790 if test "X$pkg" = "X$p"; then
9791 enable_static=yes
9792 fi
9793 done
9794 IFS="$lt_save_ifs"
9795 ;;
9796 esac
9797else
9798 enable_static=yes
9799fi;
9800
9801# Check whether --enable-fast-install or --disable-fast-install was given.
9802if test "${enable_fast_install+set}" = set; then
9803 enableval="$enable_fast_install"
9804 p=${PACKAGE-default}
9805 case $enableval in
9806 yes) enable_fast_install=yes ;;
9807 no) enable_fast_install=no ;;
9808 *)
9809 enable_fast_install=no
9810 # Look at the argument we got. We use all the common list separators.
9811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9812 for pkg in $enableval; do
9813 IFS="$lt_save_ifs"
9814 if test "X$pkg" = "X$p"; then
9815 enable_fast_install=yes
9816 fi
9817 done
9818 IFS="$lt_save_ifs"
9819 ;;
9820 esac
9821else
9822 enable_fast_install=yes
9823fi;
9824
9825echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9826echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9827if test "${lt_cv_path_SED+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830 # Loop through the user's path and test for sed and gsed.
9831# Then use that list of sed's as ones to test for truncation.
9832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for lt_ac_prog in sed gsed; do
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9840 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9841 fi
9842 done
9843 done
9844done
9845lt_ac_max=0
9846lt_ac_count=0
9847# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9848# along with /bin/sed that truncates output.
9849for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9850 test ! -f $lt_ac_sed && break
9851 cat /dev/null > conftest.in
9852 lt_ac_count=0
9853 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9854 # Check for GNU sed and select it if it is found.
9855 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9856 lt_cv_path_SED=$lt_ac_sed
9857 break
9858 fi
9859 while true; do
9860 cat conftest.in conftest.in >conftest.tmp
9861 mv conftest.tmp conftest.in
9862 cp conftest.in conftest.nl
9863 echo >>conftest.nl
9864 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9865 cmp -s conftest.out conftest.nl || break
9866 # 10000 chars as input seems more than enough
9867 test $lt_ac_count -gt 10 && break
9868 lt_ac_count=`expr $lt_ac_count + 1`
9869 if test $lt_ac_count -gt $lt_ac_max; then
9870 lt_ac_max=$lt_ac_count
9871 lt_cv_path_SED=$lt_ac_sed
9872 fi
9873 done
9874done
9875
9876fi
9877
9878SED=$lt_cv_path_SED
9879echo "$as_me:$LINENO: result: $SED" >&5
9880echo "${ECHO_T}$SED" >&6
9881
9882
9883# Check whether --with-gnu-ld or --without-gnu-ld was given.
9884if test "${with_gnu_ld+set}" = set; then
9885 withval="$with_gnu_ld"
9886 test "$withval" = no || with_gnu_ld=yes
9887else
9888 with_gnu_ld=no
9889fi;
9890ac_prog=ld
9891if test "$GCC" = yes; then
9892 # Check if gcc -print-prog-name=ld gives a path.
9893 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9894echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9895 case $host in
9896 *-*-mingw*)
9897 # gcc leaves a trailing carriage return which upsets mingw
9898 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9899 *)
9900 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9901 esac
9902 case $ac_prog in
9903 # Accept absolute paths.
9904 [\\/]* | ?:[\\/]*)
9905 re_direlt='/[^/][^/]*/\.\./'
9906 # Canonicalize the pathname of ld
9907 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9908 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9909 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9910 done
9911 test -z "$LD" && LD="$ac_prog"
9912 ;;
9913 "")
9914 # If it fails, then pretend we aren't using GCC.
9915 ac_prog=ld
9916 ;;
9917 *)
9918 # If it is relative, then search for the first ld in PATH.
9919 with_gnu_ld=unknown
9920 ;;
9921 esac
9922elif test "$with_gnu_ld" = yes; then
9923 echo "$as_me:$LINENO: checking for GNU ld" >&5
9924echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9925else
9926 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9927echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9928fi
9929if test "${lt_cv_path_LD+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931else
9932 if test -z "$LD"; then
9933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9934 for ac_dir in $PATH; do
9935 IFS="$lt_save_ifs"
9936 test -z "$ac_dir" && ac_dir=.
9937 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9938 lt_cv_path_LD="$ac_dir/$ac_prog"
9939 # Check to see if the program is GNU ld. I'd rather use --version,
9940 # but apparently some GNU ld's only accept -v.
9941 # Break only if it was the GNU/non-GNU ld that we prefer.
9942 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9943 *GNU* | *'with BFD'*)
9944 test "$with_gnu_ld" != no && break
9945 ;;
9946 *)
9947 test "$with_gnu_ld" != yes && break
9948 ;;
9949 esac
9950 fi
9951 done
9952 IFS="$lt_save_ifs"
9953else
9954 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9955fi
9956fi
9957
9958LD="$lt_cv_path_LD"
9959if test -n "$LD"; then
9960 echo "$as_me:$LINENO: result: $LD" >&5
9961echo "${ECHO_T}$LD" >&6
9962else
9963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
9965fi
9966test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9967echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9968 { (exit 1); exit 1; }; }
9969echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9970echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9971if test "${lt_cv_prog_gnu_ld+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9975case `$LD -v 2>&1 </dev/null` in
9976*GNU* | *'with BFD'*)
9977 lt_cv_prog_gnu_ld=yes
9978 ;;
9979*)
9980 lt_cv_prog_gnu_ld=no
9981 ;;
9982esac
9983fi
9984echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9985echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9986with_gnu_ld=$lt_cv_prog_gnu_ld
9987
9988
9989echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9990echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9991if test "${lt_cv_ld_reload_flag+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994 lt_cv_ld_reload_flag='-r'
9995fi
9996echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9997echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9998reload_flag=$lt_cv_ld_reload_flag
9999case $reload_flag in
10000"" | " "*) ;;
10001*) reload_flag=" $reload_flag" ;;
10002esac
10003reload_cmds='$LD$reload_flag -o $output$reload_objs'
10004case $host_os in
10005 darwin*)
10006 if test "$GCC" = yes; then
10007 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10008 else
10009 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10010 fi
10011 ;;
10012esac
10013
10014echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10015echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10016if test "${lt_cv_deplibs_check_method+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018else
10019 lt_cv_file_magic_cmd='$MAGIC_CMD'
10020lt_cv_file_magic_test_file=
10021lt_cv_deplibs_check_method='unknown'
10022# Need to set the preceding variable on all platforms that support
10023# interlibrary dependencies.
10024# 'none' -- dependencies not supported.
10025# `unknown' -- same as none, but documents that we really don't know.
10026# 'pass_all' -- all dependencies passed with no checks.
10027# 'test_compile' -- check by making test program.
10028# 'file_magic [[regex]]' -- check by looking for files in library path
10029# which responds to the $file_magic_cmd with a given extended regex.
10030# If you have `file' or equivalent on your system and you're not sure
10031# whether `pass_all' will *always* work, you probably want this one.
10032
10033case $host_os in
10034aix4* | aix5*)
10035 lt_cv_deplibs_check_method=pass_all
10036 ;;
10037
10038beos*)
10039 lt_cv_deplibs_check_method=pass_all
10040 ;;
10041
10042bsdi[45]*)
10043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10044 lt_cv_file_magic_cmd='/usr/bin/file -L'
10045 lt_cv_file_magic_test_file=/shlib/libc.so
10046 ;;
10047
10048cygwin*)
10049 # func_win32_libid is a shell function defined in ltmain.sh
10050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10051 lt_cv_file_magic_cmd='func_win32_libid'
10052 ;;
10053
10054mingw* | pw32*)
10055 # Base MSYS/MinGW do not provide the 'file' command needed by
10056 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10058 lt_cv_file_magic_cmd='$OBJDUMP -f'
10059 ;;
10060
10061darwin* | rhapsody*)
10062 lt_cv_deplibs_check_method=pass_all
10063 ;;
10064
10065freebsd* | kfreebsd*-gnu)
10066 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10067 case $host_cpu in
10068 i*86 )
10069 # Not sure whether the presence of OpenBSD here was a mistake.
10070 # Let's accept both of them until this is cleared up.
10071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10072 lt_cv_file_magic_cmd=/usr/bin/file
10073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10074 ;;
10075 esac
10076 else
10077 lt_cv_deplibs_check_method=pass_all
10078 fi
10079 ;;
10080
10081gnu*)
10082 lt_cv_deplibs_check_method=pass_all
10083 ;;
10084
10085hpux10.20* | hpux11*)
10086 lt_cv_file_magic_cmd=/usr/bin/file
10087 case "$host_cpu" in
10088 ia64*)
10089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10091 ;;
10092 hppa*64*)
10093 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]'
10094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10095 ;;
10096 *)
10097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10099 ;;
10100 esac
10101 ;;
10102
10103irix5* | irix6* | nonstopux*)
10104 case $LD in
10105 *-32|*"-32 ") libmagic=32-bit;;
10106 *-n32|*"-n32 ") libmagic=N32;;
10107 *-64|*"-64 ") libmagic=64-bit;;
10108 *) libmagic=never-match;;
10109 esac
10110 lt_cv_deplibs_check_method=pass_all
10111 ;;
10112
10113# This must be Linux ELF.
10114linux*)
10115 lt_cv_deplibs_check_method=pass_all
10116 ;;
10117
10118netbsd*)
10119 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10121 else
10122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10123 fi
10124 ;;
10125
10126newos6*)
10127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10128 lt_cv_file_magic_cmd=/usr/bin/file
10129 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10130 ;;
10131
10132nto-qnx*)
10133 lt_cv_deplibs_check_method=unknown
10134 ;;
10135
10136openbsd*)
10137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10139 else
10140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10141 fi
10142 ;;
10143
10144osf3* | osf4* | osf5*)
10145 lt_cv_deplibs_check_method=pass_all
10146 ;;
10147
10148sco3.2v5*)
10149 lt_cv_deplibs_check_method=pass_all
10150 ;;
10151
10152solaris*)
10153 lt_cv_deplibs_check_method=pass_all
10154 ;;
10155
10156sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10157 case $host_vendor in
10158 motorola)
10159 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]'
10160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10161 ;;
10162 ncr)
10163 lt_cv_deplibs_check_method=pass_all
10164 ;;
10165 sequent)
10166 lt_cv_file_magic_cmd='/bin/file'
10167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10168 ;;
10169 sni)
10170 lt_cv_file_magic_cmd='/bin/file'
10171 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10172 lt_cv_file_magic_test_file=/lib/libc.so
10173 ;;
10174 siemens)
10175 lt_cv_deplibs_check_method=pass_all
10176 ;;
10177 esac
10178 ;;
10179
10180sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10181 lt_cv_deplibs_check_method=pass_all
10182 ;;
10183esac
10184
10185fi
10186echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10187echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10188file_magic_cmd=$lt_cv_file_magic_cmd
10189deplibs_check_method=$lt_cv_deplibs_check_method
10190test -z "$deplibs_check_method" && deplibs_check_method=unknown
10191
10192
10193
10194# If no C compiler was specified, use CC.
10195LTCC=${LTCC-"$CC"}
10196
10197# Allow CC to be a program name with arguments.
10198compiler=$CC
10199
10200# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10201if test "${enable_libtool_lock+set}" = set; then
10202 enableval="$enable_libtool_lock"
10203
10204fi;
10205test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10206
10207# Some flags need to be propagated to the compiler or linker for good
10208# libtool support.
10209case $host in
10210ia64-*-hpux*)
10211 # Find out which ABI we are using.
10212 echo 'int i;' > conftest.$ac_ext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214 (eval $ac_compile) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; then
10218 case `/usr/bin/file conftest.$ac_objext` in
10219 *ELF-32*)
10220 HPUX_IA64_MODE="32"
10221 ;;
10222 *ELF-64*)
10223 HPUX_IA64_MODE="64"
10224 ;;
10225 esac
10226 fi
10227 rm -rf conftest*
10228 ;;
10229*-*-irix6*)
10230 # Find out which ABI we are using.
Reid Spencer675f0922005-04-22 17:06:18 +000010231 echo '#line 10231 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233 (eval $ac_compile) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; then
10237 if test "$lt_cv_prog_gnu_ld" = yes; then
10238 case `/usr/bin/file conftest.$ac_objext` in
10239 *32-bit*)
10240 LD="${LD-ld} -melf32bsmip"
10241 ;;
10242 *N32*)
10243 LD="${LD-ld} -melf32bmipn32"
10244 ;;
10245 *64-bit*)
10246 LD="${LD-ld} -melf64bmip"
10247 ;;
10248 esac
10249 else
10250 case `/usr/bin/file conftest.$ac_objext` in
10251 *32-bit*)
10252 LD="${LD-ld} -32"
10253 ;;
10254 *N32*)
10255 LD="${LD-ld} -n32"
10256 ;;
10257 *64-bit*)
10258 LD="${LD-ld} -64"
10259 ;;
10260 esac
10261 fi
10262 fi
10263 rm -rf conftest*
10264 ;;
10265
10266x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10267 # Find out which ABI we are using.
10268 echo 'int i;' > conftest.$ac_ext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10270 (eval $ac_compile) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; then
10274 case "`/usr/bin/file conftest.o`" in
10275 *32-bit*)
10276 case $host in
10277 x86_64-*linux*)
10278 LD="${LD-ld} -m elf_i386"
10279 ;;
10280 ppc64-*linux*|powerpc64-*linux*)
10281 LD="${LD-ld} -m elf32ppclinux"
10282 ;;
10283 s390x-*linux*)
10284 LD="${LD-ld} -m elf_s390"
10285 ;;
10286 sparc64-*linux*)
10287 LD="${LD-ld} -m elf32_sparc"
10288 ;;
10289 esac
10290 ;;
10291 *64-bit*)
10292 case $host in
10293 x86_64-*linux*)
10294 LD="${LD-ld} -m elf_x86_64"
10295 ;;
10296 ppc*-*linux*|powerpc*-*linux*)
10297 LD="${LD-ld} -m elf64ppc"
10298 ;;
10299 s390*-*linux*)
10300 LD="${LD-ld} -m elf64_s390"
10301 ;;
10302 sparc*-*linux*)
10303 LD="${LD-ld} -m elf64_sparc"
10304 ;;
10305 esac
10306 ;;
10307 esac
10308 fi
10309 rm -rf conftest*
10310 ;;
10311
10312*-*-sco3.2v5*)
10313 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10314 SAVE_CFLAGS="$CFLAGS"
10315 CFLAGS="$CFLAGS -belf"
10316 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10317echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10318if test "${lt_cv_cc_needs_belf+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321 ac_ext=c
10322ac_cpp='$CPP $CPPFLAGS'
10323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10325ac_compiler_gnu=$ac_cv_c_compiler_gnu
10326
10327 cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h. */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h. */
10333
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
10336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 lt_cv_cc_needs_belf=yes
10358else
10359 echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362lt_cv_cc_needs_belf=no
10363fi
10364rm -f conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 ac_ext=c
10367ac_cpp='$CPP $CPPFLAGS'
10368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10370ac_compiler_gnu=$ac_cv_c_compiler_gnu
10371
10372fi
10373echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10374echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10375 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10376 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10377 CFLAGS="$SAVE_CFLAGS"
10378 fi
10379 ;;
10380
10381esac
10382
10383need_locks="$enable_libtool_lock"
10384
10385
Reid Spencer2706f8c2004-09-19 23:53:36 +000010386
10387
10388if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10389 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10390 (test "X$CXX" != "Xg++"))) ; then
10391 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010392ac_cpp='$CXXCPP $CPPFLAGS'
10393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10396echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10397echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10398if test -z "$CXXCPP"; then
10399 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
John Criswell47fdd832003-07-14 16:52:07 +000010402 # Double quotes because CXXCPP needs to be expanded
10403 for CXXCPP in "$CXX -E" "/lib/cpp"
10404 do
10405 ac_preproc_ok=false
10406for ac_cxx_preproc_warn_flag in '' yes
10407do
10408 # Use a header file that comes with gcc, so configuring glibc
10409 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10411 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010412 # On the NeXT, cc -E runs the code through the compiler's parser,
10413 # not just through cpp. "Syntax error" is here to catch this case.
10414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010415/* confdefs.h. */
10416_ACEOF
10417cat confdefs.h >>conftest.$ac_ext
10418cat >>conftest.$ac_ext <<_ACEOF
10419/* end confdefs.h. */
10420#ifdef __STDC__
10421# include <limits.h>
10422#else
10423# include <assert.h>
10424#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010425 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010426_ACEOF
10427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10429 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010430 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } >/dev/null; then
10435 if test -s conftest.err; then
10436 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010437 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010438 else
John Criswell47fdd832003-07-14 16:52:07 +000010439 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010440 fi
John Criswell47fdd832003-07-14 16:52:07 +000010441else
10442 ac_cpp_err=yes
10443fi
10444if test -z "$ac_cpp_err"; then
10445 :
10446else
10447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010448sed 's/^/| /' conftest.$ac_ext >&5
10449
John Criswell47fdd832003-07-14 16:52:07 +000010450 # Broken: fails on valid input.
10451continue
10452fi
10453rm -f conftest.err conftest.$ac_ext
10454
10455 # OK, works on sane cases. Now check whether non-existent headers
10456 # can be detected and how.
10457 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010463#include <ac_nonexistent.h>
10464_ACEOF
10465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10467 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010468 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } >/dev/null; then
10473 if test -s conftest.err; then
10474 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010475 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010476 else
10477 ac_cpp_err=
10478 fi
10479else
10480 ac_cpp_err=yes
10481fi
10482if test -z "$ac_cpp_err"; then
10483 # Broken: success on invalid input.
10484continue
10485else
10486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010487sed 's/^/| /' conftest.$ac_ext >&5
10488
John Criswell47fdd832003-07-14 16:52:07 +000010489 # Passes both tests.
10490ac_preproc_ok=:
10491break
10492fi
10493rm -f conftest.err conftest.$ac_ext
10494
10495done
10496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10497rm -f conftest.err conftest.$ac_ext
10498if $ac_preproc_ok; then
10499 break
John Criswell7a73b802003-06-30 21:59:07 +000010500fi
10501
John Criswell47fdd832003-07-14 16:52:07 +000010502 done
10503 ac_cv_prog_CXXCPP=$CXXCPP
10504
10505fi
10506 CXXCPP=$ac_cv_prog_CXXCPP
10507else
10508 ac_cv_prog_CXXCPP=$CXXCPP
10509fi
10510echo "$as_me:$LINENO: result: $CXXCPP" >&5
10511echo "${ECHO_T}$CXXCPP" >&6
10512ac_preproc_ok=false
10513for ac_cxx_preproc_warn_flag in '' yes
10514do
10515 # Use a header file that comes with gcc, so configuring glibc
10516 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10518 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010519 # On the NeXT, cc -E runs the code through the compiler's parser,
10520 # not just through cpp. "Syntax error" is here to catch this case.
10521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010522/* confdefs.h. */
10523_ACEOF
10524cat confdefs.h >>conftest.$ac_ext
10525cat >>conftest.$ac_ext <<_ACEOF
10526/* end confdefs.h. */
10527#ifdef __STDC__
10528# include <limits.h>
10529#else
10530# include <assert.h>
10531#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010532 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010533_ACEOF
10534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10536 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010537 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } >/dev/null; then
10542 if test -s conftest.err; then
10543 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010544 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010545 else
10546 ac_cpp_err=
10547 fi
10548else
10549 ac_cpp_err=yes
10550fi
10551if test -z "$ac_cpp_err"; then
10552 :
10553else
10554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010555sed 's/^/| /' conftest.$ac_ext >&5
10556
John Criswell47fdd832003-07-14 16:52:07 +000010557 # Broken: fails on valid input.
10558continue
10559fi
10560rm -f conftest.err conftest.$ac_ext
10561
10562 # OK, works on sane cases. Now check whether non-existent headers
10563 # can be detected and how.
10564 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010565/* confdefs.h. */
10566_ACEOF
10567cat confdefs.h >>conftest.$ac_ext
10568cat >>conftest.$ac_ext <<_ACEOF
10569/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010570#include <ac_nonexistent.h>
10571_ACEOF
10572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10574 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010575 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } >/dev/null; then
10580 if test -s conftest.err; then
10581 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010582 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010583 else
10584 ac_cpp_err=
10585 fi
10586else
10587 ac_cpp_err=yes
10588fi
10589if test -z "$ac_cpp_err"; then
10590 # Broken: success on invalid input.
10591continue
10592else
10593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010594sed 's/^/| /' conftest.$ac_ext >&5
10595
John Criswell47fdd832003-07-14 16:52:07 +000010596 # Passes both tests.
10597ac_preproc_ok=:
10598break
10599fi
10600rm -f conftest.err conftest.$ac_ext
10601
10602done
10603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10604rm -f conftest.err conftest.$ac_ext
10605if $ac_preproc_ok; then
10606 :
10607else
John Criswell0c38eaf2003-09-10 15:17:25 +000010608 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10609See \`config.log' for more details." >&5
10610echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10611See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010612 { (exit 1); exit 1; }; }
10613fi
10614
10615ac_ext=cc
10616ac_cpp='$CXXCPP $CPPFLAGS'
10617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10620
Reid Spencer2706f8c2004-09-19 23:53:36 +000010621fi
10622
John Criswell47fdd832003-07-14 16:52:07 +000010623
10624ac_ext=f
10625ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10626ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10628if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010629 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 +000010630 do
10631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10633echo "$as_me:$LINENO: checking for $ac_word" >&5
10634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10635if test "${ac_cv_prog_F77+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637else
10638 if test -n "$F77"; then
10639 ac_cv_prog_F77="$F77" # Let the user override the test.
10640else
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10648 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10651 fi
10652done
10653done
10654
10655fi
10656fi
10657F77=$ac_cv_prog_F77
10658if test -n "$F77"; then
10659 echo "$as_me:$LINENO: result: $F77" >&5
10660echo "${ECHO_T}$F77" >&6
10661else
10662 echo "$as_me:$LINENO: result: no" >&5
10663echo "${ECHO_T}no" >&6
10664fi
10665
10666 test -n "$F77" && break
10667 done
10668fi
10669if test -z "$F77"; then
10670 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010671 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 +000010672do
10673 # Extract the first word of "$ac_prog", so it can be a program name with args.
10674set dummy $ac_prog; ac_word=$2
10675echo "$as_me:$LINENO: checking for $ac_word" >&5
10676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10677if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679else
10680 if test -n "$ac_ct_F77"; then
10681 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10682else
10683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684for as_dir in $PATH
10685do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_prog_ac_ct_F77="$ac_prog"
10691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10693 fi
10694done
10695done
10696
10697fi
10698fi
10699ac_ct_F77=$ac_cv_prog_ac_ct_F77
10700if test -n "$ac_ct_F77"; then
10701 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10702echo "${ECHO_T}$ac_ct_F77" >&6
10703else
10704 echo "$as_me:$LINENO: result: no" >&5
10705echo "${ECHO_T}no" >&6
10706fi
10707
10708 test -n "$ac_ct_F77" && break
10709done
10710
10711 F77=$ac_ct_F77
10712fi
10713
10714
10715# Provide some information about the compiler.
Reid Spencer675f0922005-04-22 17:06:18 +000010716echo "$as_me:10716:" \
John Criswell47fdd832003-07-14 16:52:07 +000010717 "checking for Fortran 77 compiler version" >&5
10718ac_compiler=`set X $ac_compile; echo $2`
10719{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10720 (eval $ac_compiler --version </dev/null >&5) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }
10724{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10725 (eval $ac_compiler -v </dev/null >&5) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }
10729{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10730 (eval $ac_compiler -V </dev/null >&5) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010734rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010735
10736# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010737# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010738ac_save_ext=$ac_ext
10739ac_ext=F
10740echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10741echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10742if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744else
10745 cat >conftest.$ac_ext <<_ACEOF
10746 program main
10747#ifndef __GNUC__
10748 choke me
10749#endif
10750
10751 end
10752_ACEOF
10753rm -f conftest.$ac_objext
10754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010755 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010756 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010762 { ac_try='test -z "$ac_f77_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_compiler_gnu=yes
10776else
10777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010778sed 's/^/| /' conftest.$ac_ext >&5
10779
John Criswell47fdd832003-07-14 16:52:07 +000010780ac_compiler_gnu=no
10781fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010783ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10784
10785fi
10786echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10787echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10788ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010789ac_test_FFLAGS=${FFLAGS+set}
10790ac_save_FFLAGS=$FFLAGS
10791FFLAGS=
10792echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10793echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10794if test "${ac_cv_prog_f77_g+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797 FFLAGS=-g
10798cat >conftest.$ac_ext <<_ACEOF
10799 program main
10800
10801 end
10802_ACEOF
10803rm -f conftest.$ac_objext
10804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010805 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010806 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010812 { ac_try='test -z "$ac_f77_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_cv_prog_f77_g=yes
10826else
10827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010828sed 's/^/| /' conftest.$ac_ext >&5
10829
John Criswell47fdd832003-07-14 16:52:07 +000010830ac_cv_prog_f77_g=no
10831fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010833
10834fi
10835echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10836echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10837if test "$ac_test_FFLAGS" = set; then
10838 FFLAGS=$ac_save_FFLAGS
10839elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010840 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010841 FFLAGS="-g -O2"
10842 else
10843 FFLAGS="-g"
10844 fi
10845else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010846 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010847 FFLAGS="-O2"
10848 else
10849 FFLAGS=
10850 fi
10851fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010852
10853G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010854ac_ext=c
10855ac_cpp='$CPP $CPPFLAGS'
10856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858ac_compiler_gnu=$ac_cv_c_compiler_gnu
10859
10860
10861
10862# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10863
10864# find the maximum length of command line arguments
10865echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10866echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10867if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010871 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010872
10873 case $build_os in
10874 msdosdjgpp*)
10875 # On DJGPP, this test can blow up pretty badly due to problems in libc
10876 # (any single argument exceeding 2000 bytes causes a buffer overrun
10877 # during glob expansion). Even if it were fixed, the result of this
10878 # check would be larger than it should be.
10879 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10880 ;;
10881
10882 gnu*)
10883 # Under GNU Hurd, this test is not required because there is
10884 # no limit to the length of command line arguments.
10885 # Libtool will interpret -1 as no limit whatsoever
10886 lt_cv_sys_max_cmd_len=-1;
10887 ;;
10888
10889 cygwin* | mingw*)
10890 # On Win9x/ME, this test blows up -- it succeeds, but takes
10891 # about 5 minutes as the teststring grows exponentially.
10892 # Worse, since 9x/ME are not pre-emptively multitasking,
10893 # you end up with a "frozen" computer, even though with patience
10894 # the test eventually succeeds (with a max line length of 256k).
10895 # Instead, let's just punt: use the minimum linelength reported by
10896 # all of the supported platforms: 8192 (on NT/2K/XP).
10897 lt_cv_sys_max_cmd_len=8192;
10898 ;;
10899
Reid Spencer2706f8c2004-09-19 23:53:36 +000010900 amigaos*)
10901 # On AmigaOS with pdksh, this test takes hours, literally.
10902 # So we just punt and use a minimum line length of 8192.
10903 lt_cv_sys_max_cmd_len=8192;
10904 ;;
10905
10906 netbsd* | freebsd* | openbsd* | darwin* )
10907 # This has been around since 386BSD, at least. Likely further.
10908 if test -x /sbin/sysctl; then
10909 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10910 elif test -x /usr/sbin/sysctl; then
10911 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10912 else
10913 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10914 fi
10915 # And add a safety zone
10916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10917 ;;
10918
John Criswell47fdd832003-07-14 16:52:07 +000010919 *)
10920 # If test is not a shell built-in, we'll probably end up computing a
10921 # maximum length that is only half of the actual maximum length, but
10922 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010923 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10924 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10925 = "XX$teststring") >/dev/null 2>&1 &&
10926 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010927 lt_cv_sys_max_cmd_len=$new_result &&
10928 test $i != 17 # 1/2 MB should be enough
10929 do
10930 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010931 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010932 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010933 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010934 # Add a significant safety factor because C++ compilers can tack on massive
10935 # amounts of additional arguments before passing them to the linker.
10936 # It appears as though 1/2 is a usable value.
10937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10938 ;;
10939 esac
10940
10941fi
10942
10943if test -n $lt_cv_sys_max_cmd_len ; then
10944 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10945echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10946else
10947 echo "$as_me:$LINENO: result: none" >&5
10948echo "${ECHO_T}none" >&6
10949fi
10950
10951
10952
10953
10954# Check for command to grab the raw symbol name followed by C symbol from nm.
10955echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10956echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10957if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960
10961# These are sane defaults that work on at least a few old systems.
10962# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10963
10964# Character class describing NM global symbol codes.
10965symcode='[BCDEGRST]'
10966
10967# Regexp to match symbols that can be accessed directly from C.
10968sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10969
10970# Transform the above into a raw symbol and a C symbol.
10971symxfrm='\1 \2\3 \3'
10972
10973# Transform an extracted symbol line into a proper C declaration
10974lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10975
10976# Transform an extracted symbol line into symbol name and symbol address
10977lt_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'"
10978
10979# Define system-specific variables.
10980case $host_os in
10981aix*)
10982 symcode='[BCDT]'
10983 ;;
10984cygwin* | mingw* | pw32*)
10985 symcode='[ABCDGISTW]'
10986 ;;
10987hpux*) # Its linker distinguishes data from code symbols
10988 if test "$host_cpu" = ia64; then
10989 symcode='[ABCDEGRST]'
10990 fi
10991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10992 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'"
10993 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010994linux*)
10995 if test "$host_cpu" = ia64; then
10996 symcode='[ABCDGIRSTW]'
10997 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10998 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'"
10999 fi
11000 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011001irix* | nonstopux*)
11002 symcode='[BCDEGRST]'
11003 ;;
11004osf*)
11005 symcode='[BCDEGQRST]'
11006 ;;
11007solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011008 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011009 ;;
11010sysv4)
11011 symcode='[DFNSTU]'
11012 ;;
11013esac
11014
11015# Handle CRLF in mingw tool chain
11016opt_cr=
11017case $build_os in
11018mingw*)
11019 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11020 ;;
11021esac
11022
11023# If we're using GNU nm, then use its standard symbol codes.
11024case `$NM -V 2>&1` in
11025*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011026 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011027esac
11028
11029# Try without a prefix undercore, then with it.
11030for ac_symprfx in "" "_"; do
11031
11032 # Write the raw and C identifiers.
11033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11034
11035 # Check to see that the pipe works correctly.
11036 pipe_works=no
11037
11038 rm -f conftest*
11039 cat > conftest.$ac_ext <<EOF
11040#ifdef __cplusplus
11041extern "C" {
11042#endif
11043char nm_test_var;
11044void nm_test_func(){}
11045#ifdef __cplusplus
11046}
11047#endif
11048int main(){nm_test_var='a';nm_test_func();return(0);}
11049EOF
11050
11051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052 (eval $ac_compile) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; then
11056 # Now try to grab the symbols.
11057 nlist=conftest.nm
11058 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11059 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } && test -s "$nlist"; then
11063 # Try sorting and uniquifying the output.
11064 if sort "$nlist" | uniq > "$nlist"T; then
11065 mv -f "$nlist"T "$nlist"
11066 else
11067 rm -f "$nlist"T
11068 fi
11069
11070 # Make sure that we snagged all the symbols we need.
11071 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11072 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11073 cat <<EOF > conftest.$ac_ext
11074#ifdef __cplusplus
11075extern "C" {
11076#endif
11077
11078EOF
11079 # Now generate the symbol file.
11080 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11081
11082 cat <<EOF >> conftest.$ac_ext
11083#if defined (__STDC__) && __STDC__
11084# define lt_ptr_t void *
11085#else
11086# define lt_ptr_t char *
11087# define const
11088#endif
11089
11090/* The mapping between symbol names and symbols. */
11091const struct {
11092 const char *name;
11093 lt_ptr_t address;
11094}
11095lt_preloaded_symbols[] =
11096{
11097EOF
11098 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11099 cat <<\EOF >> conftest.$ac_ext
11100 {0, (lt_ptr_t) 0}
11101};
11102
11103#ifdef __cplusplus
11104}
11105#endif
11106EOF
11107 # Now try linking the two files.
11108 mv conftest.$ac_objext conftstm.$ac_objext
11109 lt_save_LIBS="$LIBS"
11110 lt_save_CFLAGS="$CFLAGS"
11111 LIBS="conftstm.$ac_objext"
11112 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11118 pipe_works=yes
11119 fi
11120 LIBS="$lt_save_LIBS"
11121 CFLAGS="$lt_save_CFLAGS"
11122 else
11123 echo "cannot find nm_test_func in $nlist" >&5
11124 fi
11125 else
11126 echo "cannot find nm_test_var in $nlist" >&5
11127 fi
11128 else
11129 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11130 fi
11131 else
11132 echo "$progname: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 fi
11135 rm -f conftest* conftst*
11136
11137 # Do not use the global_symbol_pipe unless it works.
11138 if test "$pipe_works" = yes; then
11139 break
11140 else
11141 lt_cv_sys_global_symbol_pipe=
11142 fi
11143done
11144
11145fi
11146
11147if test -z "$lt_cv_sys_global_symbol_pipe"; then
11148 lt_cv_sys_global_symbol_to_cdecl=
11149fi
11150if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11151 echo "$as_me:$LINENO: result: failed" >&5
11152echo "${ECHO_T}failed" >&6
11153else
11154 echo "$as_me:$LINENO: result: ok" >&5
11155echo "${ECHO_T}ok" >&6
11156fi
11157
11158echo "$as_me:$LINENO: checking for objdir" >&5
11159echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11160if test "${lt_cv_objdir+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162else
11163 rm -f .libs 2>/dev/null
11164mkdir .libs 2>/dev/null
11165if test -d .libs; then
11166 lt_cv_objdir=.libs
11167else
11168 # MS-DOS does not allow filenames that begin with a dot.
11169 lt_cv_objdir=_libs
11170fi
11171rmdir .libs 2>/dev/null
11172fi
11173echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11174echo "${ECHO_T}$lt_cv_objdir" >&6
11175objdir=$lt_cv_objdir
11176
11177
11178
11179
11180
11181case $host_os in
11182aix3*)
11183 # AIX sometimes has problems with the GCC collect2 program. For some
11184 # reason, if we set the COLLECT_NAMES environment variable, the problems
11185 # vanish in a puff of smoke.
11186 if test "X${COLLECT_NAMES+set}" != Xset; then
11187 COLLECT_NAMES=
11188 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011189 fi
11190 ;;
11191esac
11192
John Criswell47fdd832003-07-14 16:52:07 +000011193# Sed substitution that helps us do robust quoting. It backslashifies
11194# metacharacters that are still active within double-quoted strings.
11195Xsed='sed -e s/^X//'
11196sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11197
11198# Same as above, but do not quote variable references.
11199double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11200
11201# Sed substitution to delay expansion of an escaped shell variable in a
11202# double_quote_subst'ed string.
11203delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11204
11205# Sed substitution to avoid accidental globbing in evaled expressions
11206no_glob_subst='s/\*/\\\*/g'
11207
11208# Constants:
11209rm="rm -f"
11210
11211# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011212default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011213can_build_shared=yes
11214
11215# All known linkers require a `.a' archive for static linking (except M$VC,
11216# which needs '.lib').
11217libext=a
11218ltmain="$ac_aux_dir/ltmain.sh"
11219ofile="$default_ofile"
11220with_gnu_ld="$lt_cv_prog_gnu_ld"
11221
11222if test -n "$ac_tool_prefix"; then
11223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11224set dummy ${ac_tool_prefix}ar; ac_word=$2
11225echo "$as_me:$LINENO: checking for $ac_word" >&5
11226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11227if test "${ac_cv_prog_AR+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
11230 if test -n "$AR"; then
11231 ac_cv_prog_AR="$AR" # Let the user override the test.
11232else
11233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234for as_dir in $PATH
11235do
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_prog_AR="${ac_tool_prefix}ar"
11241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11243 fi
11244done
11245done
11246
11247fi
11248fi
11249AR=$ac_cv_prog_AR
11250if test -n "$AR"; then
11251 echo "$as_me:$LINENO: result: $AR" >&5
11252echo "${ECHO_T}$AR" >&6
11253else
11254 echo "$as_me:$LINENO: result: no" >&5
11255echo "${ECHO_T}no" >&6
11256fi
11257
11258fi
11259if test -z "$ac_cv_prog_AR"; then
11260 ac_ct_AR=$AR
11261 # Extract the first word of "ar", so it can be a program name with args.
11262set dummy ar; ac_word=$2
11263echo "$as_me:$LINENO: checking for $ac_word" >&5
11264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11265if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267else
11268 if test -n "$ac_ct_AR"; then
11269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11270else
11271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278 ac_cv_prog_ac_ct_AR="ar"
11279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11281 fi
11282done
11283done
11284
11285 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11286fi
11287fi
11288ac_ct_AR=$ac_cv_prog_ac_ct_AR
11289if test -n "$ac_ct_AR"; then
11290 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11291echo "${ECHO_T}$ac_ct_AR" >&6
11292else
11293 echo "$as_me:$LINENO: result: no" >&5
11294echo "${ECHO_T}no" >&6
11295fi
11296
11297 AR=$ac_ct_AR
11298else
11299 AR="$ac_cv_prog_AR"
11300fi
11301
John Criswell7a73b802003-06-30 21:59:07 +000011302if test -n "$ac_tool_prefix"; then
11303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11305echo "$as_me:$LINENO: checking for $ac_word" >&5
11306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11307if test "${ac_cv_prog_RANLIB+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309else
11310 if test -n "$RANLIB"; then
11311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11312else
11313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314for as_dir in $PATH
11315do
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11323 fi
11324done
11325done
11326
11327fi
11328fi
11329RANLIB=$ac_cv_prog_RANLIB
11330if test -n "$RANLIB"; then
11331 echo "$as_me:$LINENO: result: $RANLIB" >&5
11332echo "${ECHO_T}$RANLIB" >&6
11333else
11334 echo "$as_me:$LINENO: result: no" >&5
11335echo "${ECHO_T}no" >&6
11336fi
11337
11338fi
11339if test -z "$ac_cv_prog_RANLIB"; then
11340 ac_ct_RANLIB=$RANLIB
11341 # Extract the first word of "ranlib", so it can be a program name with args.
11342set dummy ranlib; ac_word=$2
11343echo "$as_me:$LINENO: checking for $ac_word" >&5
11344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347else
11348 if test -n "$ac_ct_RANLIB"; then
11349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11350else
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358 ac_cv_prog_ac_ct_RANLIB="ranlib"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362done
11363done
11364
11365 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11366fi
11367fi
11368ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11369if test -n "$ac_ct_RANLIB"; then
11370 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11371echo "${ECHO_T}$ac_ct_RANLIB" >&6
11372else
11373 echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6
11375fi
11376
11377 RANLIB=$ac_ct_RANLIB
11378else
11379 RANLIB="$ac_cv_prog_RANLIB"
11380fi
11381
11382if test -n "$ac_tool_prefix"; then
11383 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11384set dummy ${ac_tool_prefix}strip; ac_word=$2
11385echo "$as_me:$LINENO: checking for $ac_word" >&5
11386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11387if test "${ac_cv_prog_STRIP+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389else
11390 if test -n "$STRIP"; then
11391 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11392else
11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404done
11405done
11406
11407fi
11408fi
11409STRIP=$ac_cv_prog_STRIP
11410if test -n "$STRIP"; then
11411 echo "$as_me:$LINENO: result: $STRIP" >&5
11412echo "${ECHO_T}$STRIP" >&6
11413else
11414 echo "$as_me:$LINENO: result: no" >&5
11415echo "${ECHO_T}no" >&6
11416fi
11417
11418fi
11419if test -z "$ac_cv_prog_STRIP"; then
11420 ac_ct_STRIP=$STRIP
11421 # Extract the first word of "strip", so it can be a program name with args.
11422set dummy strip; ac_word=$2
11423echo "$as_me:$LINENO: checking for $ac_word" >&5
11424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11425if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427else
11428 if test -n "$ac_ct_STRIP"; then
11429 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11430else
11431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432for as_dir in $PATH
11433do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11438 ac_cv_prog_ac_ct_STRIP="strip"
11439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11441 fi
11442done
11443done
11444
11445 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11446fi
11447fi
11448ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11449if test -n "$ac_ct_STRIP"; then
11450 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11451echo "${ECHO_T}$ac_ct_STRIP" >&6
11452else
11453 echo "$as_me:$LINENO: result: no" >&5
11454echo "${ECHO_T}no" >&6
11455fi
11456
11457 STRIP=$ac_ct_STRIP
11458else
11459 STRIP="$ac_cv_prog_STRIP"
11460fi
11461
11462
John Criswell7a73b802003-06-30 21:59:07 +000011463old_CC="$CC"
11464old_CFLAGS="$CFLAGS"
11465
11466# Set sane defaults for various variables
11467test -z "$AR" && AR=ar
11468test -z "$AR_FLAGS" && AR_FLAGS=cru
11469test -z "$AS" && AS=as
11470test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011471test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011472test -z "$DLLTOOL" && DLLTOOL=dlltool
11473test -z "$LD" && LD=ld
11474test -z "$LN_S" && LN_S="ln -s"
11475test -z "$MAGIC_CMD" && MAGIC_CMD=file
11476test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011477test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011478test -z "$OBJDUMP" && OBJDUMP=objdump
11479test -z "$RANLIB" && RANLIB=:
11480test -z "$STRIP" && STRIP=:
11481test -z "$ac_objext" && ac_objext=o
11482
John Criswell7a73b802003-06-30 21:59:07 +000011483# Determine commands to create old-style static archives.
11484old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11485old_postinstall_cmds='chmod 644 $oldlib'
11486old_postuninstall_cmds=
11487
11488if test -n "$RANLIB"; then
11489 case $host_os in
11490 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011491 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011492 ;;
11493 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011494 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011495 ;;
11496 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011497 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011498fi
11499
Reid Spencer2706f8c2004-09-19 23:53:36 +000011500cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11501
John Criswell47fdd832003-07-14 16:52:07 +000011502# Only perform the check for file, if the check method requires it
11503case $deplibs_check_method in
11504file_magic*)
11505 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11506 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11507echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11508if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011510else
John Criswell47fdd832003-07-14 16:52:07 +000011511 case $MAGIC_CMD in
11512[\\/*] | ?:[\\/]*)
11513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11514 ;;
11515*)
11516 lt_save_MAGIC_CMD="$MAGIC_CMD"
11517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11519 for ac_dir in $ac_dummy; do
11520 IFS="$lt_save_ifs"
11521 test -z "$ac_dir" && ac_dir=.
11522 if test -f $ac_dir/${ac_tool_prefix}file; then
11523 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11524 if test -n "$file_magic_test_file"; then
11525 case $deplibs_check_method in
11526 "file_magic "*)
11527 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11530 $EGREP "$file_magic_regex" > /dev/null; then
11531 :
11532 else
11533 cat <<EOF 1>&2
11534
11535*** Warning: the command libtool uses to detect shared libraries,
11536*** $file_magic_cmd, produces output that libtool cannot recognize.
11537*** The result is that libtool may fail to recognize shared libraries
11538*** as such. This will affect the creation of libtool libraries that
11539*** depend on shared libraries, but programs linked with such libtool
11540*** libraries will work regardless of this problem. Nevertheless, you
11541*** may want to report the problem to your system manager and/or to
11542*** bug-libtool@gnu.org
11543
11544EOF
11545 fi ;;
11546 esac
11547 fi
11548 break
11549 fi
11550 done
11551 IFS="$lt_save_ifs"
11552 MAGIC_CMD="$lt_save_MAGIC_CMD"
11553 ;;
11554esac
John Criswell7a73b802003-06-30 21:59:07 +000011555fi
John Criswell7a73b802003-06-30 21:59:07 +000011556
John Criswell47fdd832003-07-14 16:52:07 +000011557MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11558if test -n "$MAGIC_CMD"; then
11559 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11560echo "${ECHO_T}$MAGIC_CMD" >&6
11561else
11562 echo "$as_me:$LINENO: result: no" >&5
11563echo "${ECHO_T}no" >&6
11564fi
John Criswell7a73b802003-06-30 21:59:07 +000011565
John Criswell47fdd832003-07-14 16:52:07 +000011566if test -z "$lt_cv_path_MAGIC_CMD"; then
11567 if test -n "$ac_tool_prefix"; then
11568 echo "$as_me:$LINENO: checking for file" >&5
11569echo $ECHO_N "checking for file... $ECHO_C" >&6
11570if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
11573 case $MAGIC_CMD in
11574[\\/*] | ?:[\\/]*)
11575 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11576 ;;
11577*)
11578 lt_save_MAGIC_CMD="$MAGIC_CMD"
11579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11581 for ac_dir in $ac_dummy; do
11582 IFS="$lt_save_ifs"
11583 test -z "$ac_dir" && ac_dir=.
11584 if test -f $ac_dir/file; then
11585 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11586 if test -n "$file_magic_test_file"; then
11587 case $deplibs_check_method in
11588 "file_magic "*)
11589 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11592 $EGREP "$file_magic_regex" > /dev/null; then
11593 :
11594 else
11595 cat <<EOF 1>&2
11596
11597*** Warning: the command libtool uses to detect shared libraries,
11598*** $file_magic_cmd, produces output that libtool cannot recognize.
11599*** The result is that libtool may fail to recognize shared libraries
11600*** as such. This will affect the creation of libtool libraries that
11601*** depend on shared libraries, but programs linked with such libtool
11602*** libraries will work regardless of this problem. Nevertheless, you
11603*** may want to report the problem to your system manager and/or to
11604*** bug-libtool@gnu.org
11605
11606EOF
11607 fi ;;
11608 esac
11609 fi
11610 break
11611 fi
11612 done
11613 IFS="$lt_save_ifs"
11614 MAGIC_CMD="$lt_save_MAGIC_CMD"
11615 ;;
11616esac
11617fi
11618
11619MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11620if test -n "$MAGIC_CMD"; then
11621 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11622echo "${ECHO_T}$MAGIC_CMD" >&6
11623else
11624 echo "$as_me:$LINENO: result: no" >&5
11625echo "${ECHO_T}no" >&6
11626fi
11627
11628 else
11629 MAGIC_CMD=:
11630 fi
11631fi
11632
11633 fi
11634 ;;
11635esac
11636
Reid Spencer17795972004-11-18 09:47:37 +000011637enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011638enable_win32_dll=no
11639
11640# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11641if test "${enable_libtool_lock+set}" = set; then
11642 enableval="$enable_libtool_lock"
11643
11644fi;
11645test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11646
John Criswell7a73b802003-06-30 21:59:07 +000011647
11648# Check whether --with-pic or --without-pic was given.
11649if test "${with_pic+set}" = set; then
11650 withval="$with_pic"
11651 pic_mode="$withval"
11652else
11653 pic_mode=default
11654fi;
11655test -z "$pic_mode" && pic_mode=default
11656
John Criswell47fdd832003-07-14 16:52:07 +000011657# Use C for the default configuration in the libtool script
11658tagname=
11659lt_save_CC="$CC"
11660ac_ext=c
11661ac_cpp='$CPP $CPPFLAGS'
11662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664ac_compiler_gnu=$ac_cv_c_compiler_gnu
11665
11666
11667# Source file extension for C test sources.
11668ac_ext=c
11669
11670# Object file extension for compiled C test sources.
11671objext=o
11672objext=$objext
11673
11674# Code to be used in simple compile tests
11675lt_simple_compile_test_code="int some_variable = 0;\n"
11676
11677# Code to be used in simple link tests
11678lt_simple_link_test_code='int main(){return(0);}\n'
11679
11680
11681# If no C compiler was specified, use CC.
11682LTCC=${LTCC-"$CC"}
11683
11684# Allow CC to be a program name with arguments.
11685compiler=$CC
11686
11687
11688#
11689# Check for any special shared library compilation flags.
11690#
11691lt_prog_cc_shlib=
11692if test "$GCC" = no; then
11693 case $host_os in
11694 sco3.2v5*)
11695 lt_prog_cc_shlib='-belf'
11696 ;;
11697 esac
11698fi
11699if test -n "$lt_prog_cc_shlib"; then
11700 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11701echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11702 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11703 else
11704 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11705echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11706 lt_cv_prog_cc_can_build_shared=no
11707 fi
11708fi
11709
11710
11711#
11712# Check to make sure the static flag actually works.
11713#
11714echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11715echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11716if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718else
John Criswell47fdd832003-07-14 16:52:07 +000011719 lt_prog_compiler_static_works=no
11720 save_LDFLAGS="$LDFLAGS"
11721 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11722 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11724 # The compiler can only warn and ignore the option if not recognized
11725 # So say no if there are warnings
11726 if test -s conftest.err; then
11727 # Append any errors to the config.log.
11728 cat conftest.err 1>&5
11729 else
11730 lt_prog_compiler_static_works=yes
11731 fi
11732 fi
11733 $rm conftest*
11734 LDFLAGS="$save_LDFLAGS"
11735
11736fi
11737echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11738echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11739
11740if test x"$lt_prog_compiler_static_works" = xyes; then
11741 :
11742else
11743 lt_prog_compiler_static=
11744fi
11745
11746
11747
John Criswell47fdd832003-07-14 16:52:07 +000011748
11749lt_prog_compiler_no_builtin_flag=
11750
11751if test "$GCC" = yes; then
11752 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11753
Reid Spencer2706f8c2004-09-19 23:53:36 +000011754
11755echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011756echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11757if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759else
11760 lt_cv_prog_compiler_rtti_exceptions=no
11761 ac_outfile=conftest.$ac_objext
11762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11763 lt_compiler_flag="-fno-rtti -fno-exceptions"
11764 # Insert the option either (1) after the last *FLAGS variable, or
11765 # (2) before a word containing "conftest.", or (3) at the end.
11766 # Note that $ac_compile itself does not contain backslashes and begins
11767 # with a dollar sign (not a hyphen), so the echo should work correctly.
11768 # The option is referenced via a variable to avoid confusing sed.
11769 lt_compile=`echo "$ac_compile" | $SED \
11770 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11772 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000011773 (eval echo "\"\$as_me:11773: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011774 (eval "$lt_compile" 2>conftest.err)
11775 ac_status=$?
11776 cat conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000011777 echo "$as_me:11777: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011778 if (exit $ac_status) && test -s "$ac_outfile"; then
11779 # The compiler can only warn and ignore the option if not recognized
11780 # So say no if there are warnings
11781 if test ! -s conftest.err; then
11782 lt_cv_prog_compiler_rtti_exceptions=yes
11783 fi
11784 fi
11785 $rm conftest*
11786
11787fi
11788echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11789echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11790
11791if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11793else
11794 :
11795fi
11796
11797fi
11798
11799lt_prog_compiler_wl=
11800lt_prog_compiler_pic=
11801lt_prog_compiler_static=
11802
11803echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11804echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011805
11806 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011807 lt_prog_compiler_wl='-Wl,'
11808 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011809
11810 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011811 aix*)
11812 # All AIX code is PIC.
11813 if test "$host_cpu" = ia64; then
11814 # AIX 5 now supports IA64 processor
11815 lt_prog_compiler_static='-Bstatic'
11816 fi
John Criswell7a73b802003-06-30 21:59:07 +000011817 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011818
John Criswell7a73b802003-06-30 21:59:07 +000011819 amigaos*)
11820 # FIXME: we need at least 68020 code to build shared libraries, but
11821 # adding the `-m68020' flag to GCC prevents building anything better,
11822 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011823 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011824 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011825
11826 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011827 # PIC is the default for these OSes.
11828 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011829
11830 mingw* | pw32* | os2*)
11831 # This hack is so that the source file can tell whether it is being
11832 # built for inclusion in a dll (and should export symbols for example).
11833 lt_prog_compiler_pic='-DDLL_EXPORT'
11834 ;;
11835
John Criswell7a73b802003-06-30 21:59:07 +000011836 darwin* | rhapsody*)
11837 # PIC is the default on this platform
11838 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011839 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011840 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011841
11842 msdosdjgpp*)
11843 # Just because we use GCC doesn't mean we suddenly get shared libraries
11844 # on systems that don't support them.
11845 lt_prog_compiler_can_build_shared=no
11846 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011847 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011848
John Criswell7a73b802003-06-30 21:59:07 +000011849 sysv4*MP*)
11850 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011851 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011852 fi
11853 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011854
11855 hpux*)
11856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11857 # not for PA HP-UX.
11858 case "$host_cpu" in
11859 hppa*64*|ia64*)
11860 # +Z the default
11861 ;;
11862 *)
11863 lt_prog_compiler_pic='-fPIC'
11864 ;;
11865 esac
11866 ;;
11867
John Criswell7a73b802003-06-30 21:59:07 +000011868 *)
John Criswell47fdd832003-07-14 16:52:07 +000011869 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011870 ;;
11871 esac
11872 else
John Criswell47fdd832003-07-14 16:52:07 +000011873 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011874 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011875 aix*)
11876 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011877 if test "$host_cpu" = ia64; then
11878 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011879 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011880 else
John Criswell47fdd832003-07-14 16:52:07 +000011881 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011882 fi
11883 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011884 darwin*)
11885 # PIC is the default on this platform
11886 # Common symbols not allowed in MH_DYLIB files
11887 case "$cc_basename" in
11888 xlc*)
11889 lt_prog_compiler_pic='-qnocommon'
11890 lt_prog_compiler_wl='-Wl,'
11891 ;;
11892 esac
11893 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011894
John Criswell47fdd832003-07-14 16:52:07 +000011895 mingw* | pw32* | os2*)
11896 # This hack is so that the source file can tell whether it is being
11897 # built for inclusion in a dll (and should export symbols for example).
11898 lt_prog_compiler_pic='-DDLL_EXPORT'
11899 ;;
11900
John Criswell7a73b802003-06-30 21:59:07 +000011901 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011902 lt_prog_compiler_wl='-Wl,'
11903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11904 # not for PA HP-UX.
11905 case "$host_cpu" in
11906 hppa*64*|ia64*)
11907 # +Z the default
11908 ;;
11909 *)
11910 lt_prog_compiler_pic='+Z'
11911 ;;
11912 esac
11913 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11914 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011915 ;;
11916
John Criswell47fdd832003-07-14 16:52:07 +000011917 irix5* | irix6* | nonstopux*)
11918 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011919 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011920 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011921 ;;
11922
11923 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011924 lt_prog_compiler_pic='-KPIC'
11925 lt_prog_compiler_static='-Bstatic'
11926 ;;
11927
11928 linux*)
11929 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011930 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011931 lt_prog_compiler_wl='-Wl,'
11932 lt_prog_compiler_pic='-KPIC'
11933 lt_prog_compiler_static='-static'
11934 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011935 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011936 lt_prog_compiler_wl='-Wl,'
11937 # All Alpha code is PIC.
11938 lt_prog_compiler_static='-non_shared'
11939 ;;
11940 esac
John Criswell7a73b802003-06-30 21:59:07 +000011941 ;;
11942
11943 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011944 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011945 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011946 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011947 ;;
11948
11949 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011950 lt_prog_compiler_pic='-Kpic'
11951 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011952 ;;
11953
11954 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='-KPIC'
11957 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011958 ;;
11959
11960 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011961 lt_prog_compiler_wl='-Qoption ld '
11962 lt_prog_compiler_pic='-PIC'
11963 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011964 ;;
11965
11966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011967 lt_prog_compiler_wl='-Wl,'
11968 lt_prog_compiler_pic='-KPIC'
11969 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011970 ;;
11971
11972 sysv4*MP*)
11973 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011974 lt_prog_compiler_pic='-Kconform_pic'
11975 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011976 fi
11977 ;;
11978
John Criswell47fdd832003-07-14 16:52:07 +000011979 uts4*)
11980 lt_prog_compiler_pic='-pic'
11981 lt_prog_compiler_static='-Bstatic'
11982 ;;
11983
John Criswell7a73b802003-06-30 21:59:07 +000011984 *)
John Criswell47fdd832003-07-14 16:52:07 +000011985 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011986 ;;
11987 esac
11988 fi
11989
John Criswell47fdd832003-07-14 16:52:07 +000011990echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11991echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011992
John Criswell47fdd832003-07-14 16:52:07 +000011993#
11994# Check to make sure the PIC flag actually works.
11995#
11996if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011997
11998echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011999echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12000if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
John Criswell47fdd832003-07-14 16:52:07 +000012003 lt_prog_compiler_pic_works=no
12004 ac_outfile=conftest.$ac_objext
12005 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12007 # Insert the option either (1) after the last *FLAGS variable, or
12008 # (2) before a word containing "conftest.", or (3) at the end.
12009 # Note that $ac_compile itself does not contain backslashes and begins
12010 # with a dollar sign (not a hyphen), so the echo should work correctly.
12011 # The option is referenced via a variable to avoid confusing sed.
12012 lt_compile=`echo "$ac_compile" | $SED \
12013 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12015 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000012016 (eval echo "\"\$as_me:12016: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012017 (eval "$lt_compile" 2>conftest.err)
12018 ac_status=$?
12019 cat conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000012020 echo "$as_me:12020: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012021 if (exit $ac_status) && test -s "$ac_outfile"; then
12022 # The compiler can only warn and ignore the option if not recognized
12023 # So say no if there are warnings
12024 if test ! -s conftest.err; then
12025 lt_prog_compiler_pic_works=yes
12026 fi
12027 fi
12028 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012029
John Criswell47fdd832003-07-14 16:52:07 +000012030fi
12031echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12032echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012033
John Criswell47fdd832003-07-14 16:52:07 +000012034if test x"$lt_prog_compiler_pic_works" = xyes; then
12035 case $lt_prog_compiler_pic in
12036 "" | " "*) ;;
12037 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12038 esac
John Criswell7a73b802003-06-30 21:59:07 +000012039else
John Criswell47fdd832003-07-14 16:52:07 +000012040 lt_prog_compiler_pic=
12041 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012042fi
12043
John Criswell7a73b802003-06-30 21:59:07 +000012044fi
John Criswell47fdd832003-07-14 16:52:07 +000012045case "$host_os" in
12046 # For platforms which do not support PIC, -DPIC is meaningless:
12047 *djgpp*)
12048 lt_prog_compiler_pic=
12049 ;;
12050 *)
12051 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12052 ;;
12053esac
John Criswell7a73b802003-06-30 21:59:07 +000012054
John Criswell7a73b802003-06-30 21:59:07 +000012055echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12056echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012057if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
John Criswell47fdd832003-07-14 16:52:07 +000012060 lt_cv_prog_compiler_c_o=no
12061 $rm -r conftest 2>/dev/null
12062 mkdir conftest
12063 cd conftest
12064 mkdir out
12065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012066
John Criswell47fdd832003-07-14 16:52:07 +000012067 lt_compiler_flag="-o out/conftest2.$ac_objext"
12068 # Insert the option either (1) after the last *FLAGS variable, or
12069 # (2) before a word containing "conftest.", or (3) at the end.
12070 # Note that $ac_compile itself does not contain backslashes and begins
12071 # with a dollar sign (not a hyphen), so the echo should work correctly.
12072 lt_compile=`echo "$ac_compile" | $SED \
12073 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12075 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000012076 (eval echo "\"\$as_me:12076: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012077 (eval "$lt_compile" 2>out/conftest.err)
12078 ac_status=$?
12079 cat out/conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000012080 echo "$as_me:12080: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12082 then
12083 # The compiler can only warn and ignore the option if not recognized
12084 # So say no if there are warnings
12085 if test ! -s out/conftest.err; then
12086 lt_cv_prog_compiler_c_o=yes
12087 fi
12088 fi
12089 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012090 $rm conftest*
12091 # SGI C++ compiler will create directory out/ii_files/ for
12092 # template instantiation
12093 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12094 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012095 cd ..
12096 rmdir conftest
12097 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012098
12099fi
John Criswell47fdd832003-07-14 16:52:07 +000012100echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12101echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012102
John Criswell7a73b802003-06-30 21:59:07 +000012103
John Criswell7a73b802003-06-30 21:59:07 +000012104hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012105if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012106 # do not overwrite the value of need_locks provided by the user
12107 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12108echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12109 hard_links=yes
12110 $rm conftest*
12111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12112 touch conftest.a
12113 ln conftest.a conftest.b 2>&5 || hard_links=no
12114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12115 echo "$as_me:$LINENO: result: $hard_links" >&5
12116echo "${ECHO_T}$hard_links" >&6
12117 if test "$hard_links" = no; then
12118 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12119echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12120 need_locks=warn
12121 fi
12122else
12123 need_locks=no
12124fi
John Criswell7a73b802003-06-30 21:59:07 +000012125
John Criswell47fdd832003-07-14 16:52:07 +000012126echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12127echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12128
12129 runpath_var=
12130 allow_undefined_flag=
12131 enable_shared_with_static_runtimes=no
12132 archive_cmds=
12133 archive_expsym_cmds=
12134 old_archive_From_new_cmds=
12135 old_archive_from_expsyms_cmds=
12136 export_dynamic_flag_spec=
12137 whole_archive_flag_spec=
12138 thread_safe_flag_spec=
12139 hardcode_libdir_flag_spec=
12140 hardcode_libdir_flag_spec_ld=
12141 hardcode_libdir_separator=
12142 hardcode_direct=no
12143 hardcode_minus_L=no
12144 hardcode_shlibpath_var=unsupported
12145 link_all_deplibs=unknown
12146 hardcode_automatic=no
12147 module_cmds=
12148 module_expsym_cmds=
12149 always_export_symbols=no
12150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12151 # include_expsyms should be a list of space-separated symbols to be *always*
12152 # included in the symbol list
12153 include_expsyms=
12154 # exclude_expsyms can be an extended regexp of symbols to exclude
12155 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12157 # as well as any symbol that contains `d'.
12158 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12160 # platforms (ab)use it in PIC code, but their linkers get confused if
12161 # the symbol is explicitly referenced. Since portable code cannot
12162 # rely on this symbol name, it's probably fine to never include it in
12163 # preloaded symbol tables.
12164 extract_expsyms_cmds=
12165
12166 case $host_os in
12167 cygwin* | mingw* | pw32*)
12168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12169 # When not using gcc, we currently assume that we are using
12170 # Microsoft Visual C++.
12171 if test "$GCC" != yes; then
12172 with_gnu_ld=no
12173 fi
12174 ;;
12175 openbsd*)
12176 with_gnu_ld=no
12177 ;;
12178 esac
12179
12180 ld_shlibs=yes
12181 if test "$with_gnu_ld" = yes; then
12182 # If archive_cmds runs LD, not CC, wlarc should be empty
12183 wlarc='${wl}'
12184
12185 # See if GNU ld supports shared libraries.
12186 case $host_os in
12187 aix3* | aix4* | aix5*)
12188 # On AIX/PPC, the GNU linker is very broken
12189 if test "$host_cpu" != ia64; then
12190 ld_shlibs=no
12191 cat <<EOF 1>&2
12192
12193*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12194*** to be unable to reliably create shared libraries on AIX.
12195*** Therefore, libtool is disabling shared libraries support. If you
12196*** really care for shared libraries, you may want to modify your PATH
12197*** so that a non-GNU linker is found, and then restart.
12198
12199EOF
12200 fi
12201 ;;
12202
12203 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012204 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 +000012205 hardcode_libdir_flag_spec='-L$libdir'
12206 hardcode_minus_L=yes
12207
12208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12209 # that the semantics of dynamic libraries on AmigaOS, at least up
12210 # to version 4, is to share data among multiple programs linked
12211 # with the same dynamic library. Since this doesn't match the
12212 # behavior of shared libraries on other platforms, we can't use
12213 # them.
12214 ld_shlibs=no
12215 ;;
12216
12217 beos*)
12218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12219 allow_undefined_flag=unsupported
12220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12221 # support --undefined. This deserves some investigation. FIXME
12222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12223 else
12224 ld_shlibs=no
12225 fi
12226 ;;
12227
12228 cygwin* | mingw* | pw32*)
12229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12230 # as there is no search path for DLLs.
12231 hardcode_libdir_flag_spec='-L$libdir'
12232 allow_undefined_flag=unsupported
12233 always_export_symbols=no
12234 enable_shared_with_static_runtimes=yes
12235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12236
12237 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12239 # If the export-symbols file already is a .def file (1st line
12240 # is EXPORTS), use it as is; otherwise, prepend...
12241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12242 cp $export_symbols $output_objdir/$soname.def;
12243 else
12244 echo EXPORTS > $output_objdir/$soname.def;
12245 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012246 fi~
12247 $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 +000012248 else
12249 ld_shlibs=no
12250 fi
12251 ;;
12252
12253 netbsd*)
12254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12255 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12256 wlarc=
12257 else
12258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12260 fi
12261 ;;
12262
12263 solaris* | sysv5*)
12264 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12265 ld_shlibs=no
12266 cat <<EOF 1>&2
12267
12268*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12269*** create shared libraries on Solaris systems. Therefore, libtool
12270*** is disabling shared libraries support. We urge you to upgrade GNU
12271*** binutils to release 2.9.1 or newer. Another option is to modify
12272*** your PATH or compiler configuration so that the native linker is
12273*** used, and then restart.
12274
12275EOF
12276 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12279 else
12280 ld_shlibs=no
12281 fi
12282 ;;
12283
12284 sunos4*)
12285 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12286 wlarc=
12287 hardcode_direct=yes
12288 hardcode_shlibpath_var=no
12289 ;;
12290
Reid Spencer2706f8c2004-09-19 23:53:36 +000012291 linux*)
12292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12293 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12294 archive_cmds="$tmp_archive_cmds"
12295 supports_anon_versioning=no
12296 case `$LD -v 2>/dev/null` in
12297 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12300 *\ 2.11.*) ;; # other 2.11 versions
12301 *) supports_anon_versioning=yes ;;
12302 esac
12303 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012304 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12305cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12306$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012307 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12308 else
12309 archive_expsym_cmds="$tmp_archive_cmds"
12310 fi
12311 else
12312 ld_shlibs=no
12313 fi
12314 ;;
12315
John Criswell47fdd832003-07-14 16:52:07 +000012316 *)
12317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12320 else
12321 ld_shlibs=no
12322 fi
12323 ;;
12324 esac
12325
12326 if test "$ld_shlibs" = yes; then
12327 runpath_var=LD_RUN_PATH
12328 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12329 export_dynamic_flag_spec='${wl}--export-dynamic'
12330 # ancient GNU ld didn't support --whole-archive et. al.
12331 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12332 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12333 else
12334 whole_archive_flag_spec=
12335 fi
12336 fi
12337 else
12338 # PORTME fill in a description of your system's linker (not GNU ld)
12339 case $host_os in
12340 aix3*)
12341 allow_undefined_flag=unsupported
12342 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012343 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 +000012344 # Note: this linker hardcodes the directories in LIBPATH if there
12345 # are no directories specified by -L.
12346 hardcode_minus_L=yes
12347 if test "$GCC" = yes && test -z "$link_static_flag"; then
12348 # Neither direct hardcoding nor static linking is supported with a
12349 # broken collect2.
12350 hardcode_direct=unsupported
12351 fi
12352 ;;
12353
12354 aix4* | aix5*)
12355 if test "$host_cpu" = ia64; then
12356 # On IA64, the linker does run time linking by default, so we don't
12357 # have to do anything special.
12358 aix_use_runtimelinking=no
12359 exp_sym_flag='-Bexport'
12360 no_entry_flag=""
12361 else
12362 # If we're using GNU nm, then we don't want the "-C" option.
12363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12364 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12365 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'
12366 else
12367 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'
12368 fi
12369 aix_use_runtimelinking=no
12370
12371 # Test if we are trying to use run time linking or normal
12372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12373 # need to do runtime linking.
12374 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12375 for ld_flag in $LDFLAGS; do
12376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12377 aix_use_runtimelinking=yes
12378 break
12379 fi
12380 done
12381 esac
12382
12383 exp_sym_flag='-bexport'
12384 no_entry_flag='-bnoentry'
12385 fi
12386
12387 # When large executables or shared objects are built, AIX ld can
12388 # have problems creating the table of contents. If linking a library
12389 # or program results in "error TOC overflow" add -mminimal-toc to
12390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12392
12393 archive_cmds=''
12394 hardcode_direct=yes
12395 hardcode_libdir_separator=':'
12396 link_all_deplibs=yes
12397
12398 if test "$GCC" = yes; then
12399 case $host_os in aix4.012|aix4.012.*)
12400 # We only want to do this on AIX 4.2 and lower, the check
12401 # below for broken collect2 doesn't work under 4.3+
12402 collect2name=`${CC} -print-prog-name=collect2`
12403 if test -f "$collect2name" && \
12404 strings "$collect2name" | grep resolve_lib_name >/dev/null
12405 then
12406 # We have reworked collect2
12407 hardcode_direct=yes
12408 else
12409 # We have old collect2
12410 hardcode_direct=unsupported
12411 # It fails to find uninstalled libraries when the uninstalled
12412 # path is not listed in the libpath. Setting hardcode_minus_L
12413 # to unsupported forces relinking
12414 hardcode_minus_L=yes
12415 hardcode_libdir_flag_spec='-L$libdir'
12416 hardcode_libdir_separator=
12417 fi
12418 esac
12419 shared_flag='-shared'
12420 else
12421 # not using gcc
12422 if test "$host_cpu" = ia64; then
12423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12424 # chokes on -Wl,-G. The following line is correct:
12425 shared_flag='-G'
12426 else
12427 if test "$aix_use_runtimelinking" = yes; then
12428 shared_flag='${wl}-G'
12429 else
12430 shared_flag='${wl}-bM:SRE'
12431 fi
12432 fi
12433 fi
12434
12435 # It seems that -bexpall does not export symbols beginning with
12436 # underscore (_), so it is better to generate a list of symbols to export.
12437 always_export_symbols=yes
12438 if test "$aix_use_runtimelinking" = yes; then
12439 # Warning - without using the other runtime loading flags (-brtl),
12440 # -berok will link without error, but may produce a broken library.
12441 allow_undefined_flag='-berok'
12442 # Determine the default libpath from the value encoded in an empty executable.
12443 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012444/* confdefs.h. */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012449
John Criswell7a73b802003-06-30 21:59:07 +000012450int
12451main ()
12452{
John Criswell47fdd832003-07-14 16:52:07 +000012453
John Criswell7a73b802003-06-30 21:59:07 +000012454 ;
12455 return 0;
12456}
12457_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012458rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012460 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012467 { ac_try='test -z "$ac_c_werror_flag"
12468 || test ! -s conftest.err'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012480
John Criswell47fdd832003-07-14 16:52:07 +000012481aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12482}'`
12483# Check for a 64-bit object if we didn't find anything.
12484if 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; }
12485}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012486else
12487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012488sed 's/^/| /' conftest.$ac_ext >&5
12489
John Criswell7a73b802003-06-30 21:59:07 +000012490fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012491rm -f conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012493if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012494
John Criswell47fdd832003-07-14 16:52:07 +000012495 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12496 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"
12497 else
12498 if test "$host_cpu" = ia64; then
12499 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12500 allow_undefined_flag="-z nodefs"
12501 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"
12502 else
12503 # Determine the default libpath from the value encoded in an empty executable.
12504 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012510
John Criswell47fdd832003-07-14 16:52:07 +000012511int
12512main ()
12513{
John Criswell7a73b802003-06-30 21:59:07 +000012514
John Criswell47fdd832003-07-14 16:52:07 +000012515 ;
12516 return 0;
12517}
12518_ACEOF
12519rm -f conftest.$ac_objext conftest$ac_exeext
12520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012521 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012522 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012541
John Criswell47fdd832003-07-14 16:52:07 +000012542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12543}'`
12544# Check for a 64-bit object if we didn't find anything.
12545if 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; }
12546}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012547else
John Criswell47fdd832003-07-14 16:52:07 +000012548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012549sed 's/^/| /' conftest.$ac_ext >&5
12550
John Criswell47fdd832003-07-14 16:52:07 +000012551fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012552rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012554if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012555
John Criswell47fdd832003-07-14 16:52:07 +000012556 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12557 # Warning - without using the other run time loading flags,
12558 # -berok will link without error, but may produce a broken library.
12559 no_undefined_flag=' ${wl}-bernotok'
12560 allow_undefined_flag=' ${wl}-berok'
12561 # -bexpall does not export symbols beginning with underscore (_)
12562 always_export_symbols=yes
12563 # Exported symbols can be pulled into shared objects from archives
12564 whole_archive_flag_spec=' '
12565 archive_cmds_need_lc=yes
12566 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012567 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 +000012568 fi
12569 fi
John Criswell7a73b802003-06-30 21:59:07 +000012570 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012571
12572 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012573 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 +000012574 hardcode_libdir_flag_spec='-L$libdir'
12575 hardcode_minus_L=yes
12576 # see comment about different semantics on the GNU ld section
12577 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012578 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012579
Reid Spencer2706f8c2004-09-19 23:53:36 +000012580 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012581 export_dynamic_flag_spec=-rdynamic
12582 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012583
John Criswell47fdd832003-07-14 16:52:07 +000012584 cygwin* | mingw* | pw32*)
12585 # When not using gcc, we currently assume that we are using
12586 # Microsoft Visual C++.
12587 # hardcode_libdir_flag_spec is actually meaningless, as there is
12588 # no search path for DLLs.
12589 hardcode_libdir_flag_spec=' '
12590 allow_undefined_flag=unsupported
12591 # Tell ltmain to make .lib files, not .a files.
12592 libext=lib
12593 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012594 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012595 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012596 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012597 # The linker will automatically build a .lib file if we build a DLL.
12598 old_archive_From_new_cmds='true'
12599 # FIXME: Should let the user specify the lib program.
12600 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12601 fix_srcfile_path='`cygpath -w "$srcfile"`'
12602 enable_shared_with_static_runtimes=yes
12603 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012604
John Criswell47fdd832003-07-14 16:52:07 +000012605 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012606 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012607 rhapsody* | darwin1.[012])
12608 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12609 ;;
12610 *) # Darwin 1.3 on
12611 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12612 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12613 else
12614 case ${MACOSX_DEPLOYMENT_TARGET} in
12615 10.[012])
12616 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12617 ;;
12618 10.*)
12619 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12620 ;;
12621 esac
12622 fi
12623 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012624 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012625 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012626 hardcode_direct=no
12627 hardcode_automatic=yes
12628 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012629 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012630 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012631 if test "$GCC" = yes ; then
12632 output_verbose_link_cmd='echo'
12633 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12634 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12635 # 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 +000012636 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}'
12637 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 +000012638 else
12639 case "$cc_basename" in
12640 xlc*)
12641 output_verbose_link_cmd='echo'
12642 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12643 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12644 # 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 +000012645 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}'
12646 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 +000012647 ;;
12648 *)
12649 ld_shlibs=no
12650 ;;
12651 esac
John Criswell7a73b802003-06-30 21:59:07 +000012652 fi
John Criswell47fdd832003-07-14 16:52:07 +000012653 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012654
John Criswell47fdd832003-07-14 16:52:07 +000012655 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012657 hardcode_libdir_flag_spec='-L$libdir'
12658 hardcode_shlibpath_var=no
12659 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012660
John Criswell47fdd832003-07-14 16:52:07 +000012661 freebsd1*)
12662 ld_shlibs=no
12663 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012664
John Criswell47fdd832003-07-14 16:52:07 +000012665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12666 # support. Future versions do this automatically, but an explicit c++rt0.o
12667 # does not break anything, and helps significantly (at the cost of a little
12668 # extra space).
12669 freebsd2.2*)
12670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12671 hardcode_libdir_flag_spec='-R$libdir'
12672 hardcode_direct=yes
12673 hardcode_shlibpath_var=no
12674 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012675
John Criswell47fdd832003-07-14 16:52:07 +000012676 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12677 freebsd2*)
12678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12679 hardcode_direct=yes
12680 hardcode_minus_L=yes
12681 hardcode_shlibpath_var=no
12682 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012683
John Criswell47fdd832003-07-14 16:52:07 +000012684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012685 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012686 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12687 hardcode_libdir_flag_spec='-R$libdir'
12688 hardcode_direct=yes
12689 hardcode_shlibpath_var=no
12690 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012691
John Criswell47fdd832003-07-14 16:52:07 +000012692 hpux9*)
12693 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012694 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 +000012695 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012696 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 +000012697 fi
12698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12699 hardcode_libdir_separator=:
12700 hardcode_direct=yes
12701
12702 # hardcode_minus_L: Not really in the search PATH,
12703 # but as the default location of the library.
12704 hardcode_minus_L=yes
12705 export_dynamic_flag_spec='${wl}-E'
12706 ;;
12707
12708 hpux10* | hpux11*)
12709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12710 case "$host_cpu" in
12711 hppa*64*|ia64*)
12712 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12713 ;;
12714 *)
12715 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12716 ;;
12717 esac
12718 else
12719 case "$host_cpu" in
12720 hppa*64*|ia64*)
12721 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12722 ;;
12723 *)
12724 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12725 ;;
12726 esac
12727 fi
12728 if test "$with_gnu_ld" = no; then
12729 case "$host_cpu" in
12730 hppa*64*)
12731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12732 hardcode_libdir_flag_spec_ld='+b $libdir'
12733 hardcode_libdir_separator=:
12734 hardcode_direct=no
12735 hardcode_shlibpath_var=no
12736 ;;
12737 ia64*)
12738 hardcode_libdir_flag_spec='-L$libdir'
12739 hardcode_direct=no
12740 hardcode_shlibpath_var=no
12741
12742 # hardcode_minus_L: Not really in the search PATH,
12743 # but as the default location of the library.
12744 hardcode_minus_L=yes
12745 ;;
12746 *)
12747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12748 hardcode_libdir_separator=:
12749 hardcode_direct=yes
12750 export_dynamic_flag_spec='${wl}-E'
12751
12752 # hardcode_minus_L: Not really in the search PATH,
12753 # but as the default location of the library.
12754 hardcode_minus_L=yes
12755 ;;
12756 esac
12757 fi
12758 ;;
12759
12760 irix5* | irix6* | nonstopux*)
12761 if test "$GCC" = yes; then
12762 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'
12763 else
12764 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'
12765 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12766 fi
12767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12768 hardcode_libdir_separator=:
12769 link_all_deplibs=yes
12770 ;;
12771
12772 netbsd*)
12773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12775 else
12776 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12777 fi
12778 hardcode_libdir_flag_spec='-R$libdir'
12779 hardcode_direct=yes
12780 hardcode_shlibpath_var=no
12781 ;;
12782
12783 newsos6)
12784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12785 hardcode_direct=yes
12786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12787 hardcode_libdir_separator=:
12788 hardcode_shlibpath_var=no
12789 ;;
12790
12791 openbsd*)
12792 hardcode_direct=yes
12793 hardcode_shlibpath_var=no
12794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012796 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 +000012797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12798 export_dynamic_flag_spec='${wl}-E'
12799 else
12800 case $host_os in
12801 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12803 hardcode_libdir_flag_spec='-R$libdir'
12804 ;;
12805 *)
12806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12807 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12808 ;;
12809 esac
12810 fi
12811 ;;
12812
12813 os2*)
12814 hardcode_libdir_flag_spec='-L$libdir'
12815 hardcode_minus_L=yes
12816 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012817 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 +000012818 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12819 ;;
12820
12821 osf3*)
12822 if test "$GCC" = yes; then
12823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12824 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'
12825 else
12826 allow_undefined_flag=' -expect_unresolved \*'
12827 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'
12828 fi
12829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12830 hardcode_libdir_separator=:
12831 ;;
12832
12833 osf4* | osf5*) # as osf3* with the addition of -msym flag
12834 if test "$GCC" = yes; then
12835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12836 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'
12837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12838 else
12839 allow_undefined_flag=' -expect_unresolved \*'
12840 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 +000012841 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12842 $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'
12843
John Criswell47fdd832003-07-14 16:52:07 +000012844 # Both c and cxx compiler support -rpath directly
12845 hardcode_libdir_flag_spec='-rpath $libdir'
12846 fi
12847 hardcode_libdir_separator=:
12848 ;;
12849
12850 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012853 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012854 runpath_var=LD_RUN_PATH
12855 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012856 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012857
John Criswell47fdd832003-07-14 16:52:07 +000012858 solaris*)
12859 no_undefined_flag=' -z text'
12860 if test "$GCC" = yes; then
12861 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012862 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12863 $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 +000012864 else
12865 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012866 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12867 $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 +000012868 fi
12869 hardcode_libdir_flag_spec='-R$libdir'
12870 hardcode_shlibpath_var=no
12871 case $host_os in
12872 solaris2.[0-5] | solaris2.[0-5].*) ;;
12873 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12874 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12875 esac
12876 link_all_deplibs=yes
12877 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012878
John Criswell47fdd832003-07-14 16:52:07 +000012879 sunos4*)
12880 if test "x$host_vendor" = xsequent; then
12881 # Use $CC to link under sequent, because it throws in some extra .o
12882 # files that make .init and .fini sections work.
12883 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12884 else
12885 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12886 fi
12887 hardcode_libdir_flag_spec='-L$libdir'
12888 hardcode_direct=yes
12889 hardcode_minus_L=yes
12890 hardcode_shlibpath_var=no
12891 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012892
John Criswell47fdd832003-07-14 16:52:07 +000012893 sysv4)
12894 case $host_vendor in
12895 sni)
12896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_direct=yes # is this really true???
12898 ;;
12899 siemens)
12900 ## LD is ld it makes a PLAMLIB
12901 ## CC just makes a GrossModule.
12902 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12903 reload_cmds='$CC -r -o $output$reload_objs'
12904 hardcode_direct=no
12905 ;;
12906 motorola)
12907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12908 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12909 ;;
12910 esac
12911 runpath_var='LD_RUN_PATH'
12912 hardcode_shlibpath_var=no
12913 ;;
12914
12915 sysv4.3*)
12916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_shlibpath_var=no
12918 export_dynamic_flag_spec='-Bexport'
12919 ;;
12920
12921 sysv4*MP*)
12922 if test -d /usr/nec; then
12923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12924 hardcode_shlibpath_var=no
12925 runpath_var=LD_RUN_PATH
12926 hardcode_runpath_var=yes
12927 ld_shlibs=yes
12928 fi
12929 ;;
12930
12931 sysv4.2uw2*)
12932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12933 hardcode_direct=yes
12934 hardcode_minus_L=no
12935 hardcode_shlibpath_var=no
12936 hardcode_runpath_var=yes
12937 runpath_var=LD_RUN_PATH
12938 ;;
12939
12940 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12941 no_undefined_flag='${wl}-z ${wl}text'
12942 if test "$GCC" = yes; then
12943 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12944 else
12945 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12946 fi
12947 runpath_var='LD_RUN_PATH'
12948 hardcode_shlibpath_var=no
12949 ;;
12950
12951 sysv5*)
12952 no_undefined_flag=' -z text'
12953 # $CC -shared without GNU ld will not create a library from C++
12954 # object files and a static libstdc++, better avoid it by now
12955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012956 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12957 $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 +000012958 hardcode_libdir_flag_spec=
12959 hardcode_shlibpath_var=no
12960 runpath_var='LD_RUN_PATH'
12961 ;;
12962
12963 uts4*)
12964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12965 hardcode_libdir_flag_spec='-L$libdir'
12966 hardcode_shlibpath_var=no
12967 ;;
12968
12969 *)
12970 ld_shlibs=no
12971 ;;
12972 esac
12973 fi
12974
John Criswell7a73b802003-06-30 21:59:07 +000012975echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12976echo "${ECHO_T}$ld_shlibs" >&6
12977test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012978
John Criswell47fdd832003-07-14 16:52:07 +000012979variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12980if test "$GCC" = yes; then
12981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12982fi
12983
12984#
12985# Do we need to explicitly link libc?
12986#
12987case "x$archive_cmds_need_lc" in
12988x|xyes)
12989 # Assume -lc should be added
12990 archive_cmds_need_lc=yes
12991
12992 if test "$enable_shared" = yes && test "$GCC" = yes; then
12993 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012994 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012995 # FIXME: we may have to deal with multi-command sequences.
12996 ;;
12997 '$CC '*)
12998 # Test whether the compiler implicitly links with -lc since on some
12999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13000 # to ld, don't add -lc before -lgcc.
13001 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13002echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13003 $rm conftest*
13004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13005
13006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13007 (eval $ac_compile) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } 2>conftest.err; then
13011 soname=conftest
13012 lib=conftest
13013 libobjs=conftest.$ac_objext
13014 deplibs=
13015 wl=$lt_prog_compiler_wl
13016 compiler_flags=-v
13017 linker_flags=-v
13018 verstring=
13019 output_objdir=.
13020 libname=conftest
13021 lt_save_allow_undefined_flag=$allow_undefined_flag
13022 allow_undefined_flag=
13023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13024 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }
13028 then
13029 archive_cmds_need_lc=no
13030 else
13031 archive_cmds_need_lc=yes
13032 fi
13033 allow_undefined_flag=$lt_save_allow_undefined_flag
13034 else
13035 cat conftest.err 1>&5
13036 fi
13037 $rm conftest*
13038 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13039echo "${ECHO_T}$archive_cmds_need_lc" >&6
13040 ;;
13041 esac
13042 fi
13043 ;;
13044esac
13045
John Criswell7a73b802003-06-30 21:59:07 +000013046echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13047echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13048library_names_spec=
13049libname_spec='lib$name'
13050soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013051shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013052postinstall_cmds=
13053postuninstall_cmds=
13054finish_cmds=
13055finish_eval=
13056shlibpath_var=
13057shlibpath_overrides_runpath=unknown
13058version_type=none
13059dynamic_linker="$host_os ld.so"
13060sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013061if test "$GCC" = yes; then
13062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13063 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13064 # if the path contains ";" then we assume it to be the separator
13065 # otherwise default to the standard path separator (i.e. ":") - it is
13066 # assumed that no part of a normal pathname contains ";" but that should
13067 # okay in the real world where ";" in dirpaths is itself problematic.
13068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13069 else
13070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13071 fi
13072else
13073 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13074fi
13075need_lib_prefix=unknown
13076hardcode_into_libs=no
13077
13078# when you set need_version to no, make sure it does not cause -set_version
13079# flags to be left without arguments
13080need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013081
13082case $host_os in
13083aix3*)
13084 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013086 shlibpath_var=LIBPATH
13087
John Criswell47fdd832003-07-14 16:52:07 +000013088 # AIX 3 has no versioning support, so we append a major version to the name.
13089 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013090 ;;
13091
13092aix4* | aix5*)
13093 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013094 need_lib_prefix=no
13095 need_version=no
13096 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013097 if test "$host_cpu" = ia64; then
13098 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013100 shlibpath_var=LD_LIBRARY_PATH
13101 else
13102 # With GCC up to 2.95.x, collect2 would create an import file
13103 # for dependence libraries. The import file would start with
13104 # the line `#! .'. This would cause the generated library to
13105 # depend on `.', always an invalid library. This was fixed in
13106 # development snapshots of GCC prior to 3.0.
13107 case $host_os in
13108 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13110 echo ' yes '
13111 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13112 :
13113 else
13114 can_build_shared=no
13115 fi
13116 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013117 esac
John Criswell47fdd832003-07-14 16:52:07 +000013118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13119 # soname into executable. Probably we can add versioning support to
13120 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013121 if test "$aix_use_runtimelinking" = yes; then
13122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13123 # instead of lib<name>.a to let people know that these are not
13124 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013126 else
13127 # We preserve .a as extension for shared libraries through AIX4.2
13128 # and later when we are not doing run time linking.
13129 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013130 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013131 fi
13132 shlibpath_var=LIBPATH
13133 fi
13134 ;;
13135
13136amigaos*)
13137 library_names_spec='$libname.ixlibrary $libname.a'
13138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013139 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 +000013140 ;;
13141
13142beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013143 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013144 dynamic_linker="$host_os ld.so"
13145 shlibpath_var=LIBRARY_PATH
13146 ;;
13147
Reid Spencer2706f8c2004-09-19 23:53:36 +000013148bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013149 version_type=linux
13150 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13152 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013157 # the default ld.so.conf also contains /usr/contrib/lib and
13158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13159 # libtool to hard-code these into programs
13160 ;;
13161
13162cygwin* | mingw* | pw32*)
13163 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013164 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013165 need_version=no
13166 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013167
John Criswell7a73b802003-06-30 21:59:07 +000013168 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013169 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013170 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013172 postinstall_cmds='base_file=`basename \${file}`~
13173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13174 dldir=$destdir/`dirname \$dlpath`~
13175 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013176 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13178 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013179 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013180 shlibpath_overrides_runpath=yes
13181
13182 case $host_os in
13183 cygwin*)
13184 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13185 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 +000013186 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013187 ;;
13188 mingw*)
13189 # MinGW DLLs use traditional 'lib' prefix
13190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13192 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13193 # It is most probably a Windows format PATH printed by
13194 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13195 # path with ; separators, and with drive letters. We can handle the
13196 # drive letters (cygwin fileutils understands them), so leave them,
13197 # especially as we might pass files found there to a mingw objdump,
13198 # which wouldn't understand a cygwinified path. Ahh.
13199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13200 else
13201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13202 fi
13203 ;;
13204 pw32*)
13205 # pw32 DLLs use 'pw' prefix rather than 'lib'
13206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13207 ;;
13208 esac
John Criswell7a73b802003-06-30 21:59:07 +000013209 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013210
John Criswell7a73b802003-06-30 21:59:07 +000013211 *)
John Criswell47fdd832003-07-14 16:52:07 +000013212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013213 ;;
13214 esac
13215 dynamic_linker='Win32 ld.exe'
13216 # FIXME: first we should search . and the directory the executable is in
13217 shlibpath_var=PATH
13218 ;;
13219
13220darwin* | rhapsody*)
13221 dynamic_linker="$host_os dyld"
13222 version_type=darwin
13223 need_lib_prefix=no
13224 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013225 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013226 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013227 shlibpath_overrides_runpath=yes
13228 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013229 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013230 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013231 if test "$GCC" = yes; then
13232 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"`
13233 else
13234 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013235 fi
13236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13237 ;;
13238
13239dgux*)
13240 version_type=linux
13241 need_lib_prefix=no
13242 need_version=no
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013246 ;;
13247
13248freebsd1*)
13249 dynamic_linker=no
13250 ;;
13251
Reid Spencer2706f8c2004-09-19 23:53:36 +000013252kfreebsd*-gnu)
13253 version_type=linux
13254 need_lib_prefix=no
13255 need_version=no
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 shlibpath_var=LD_LIBRARY_PATH
13259 shlibpath_overrides_runpath=no
13260 hardcode_into_libs=yes
13261 dynamic_linker='GNU ld.so'
13262 ;;
13263
John Criswell7a73b802003-06-30 21:59:07 +000013264freebsd*)
13265 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13266 version_type=freebsd-$objformat
13267 case $version_type in
13268 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013270 need_version=no
13271 need_lib_prefix=no
13272 ;;
13273 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013275 need_version=yes
13276 ;;
13277 esac
13278 shlibpath_var=LD_LIBRARY_PATH
13279 case $host_os in
13280 freebsd2*)
13281 shlibpath_overrides_runpath=yes
13282 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013283 freebsd3.01* | freebsdelf3.01*)
13284 shlibpath_overrides_runpath=yes
13285 hardcode_into_libs=yes
13286 ;;
13287 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013288 shlibpath_overrides_runpath=no
13289 hardcode_into_libs=yes
13290 ;;
13291 esac
13292 ;;
13293
13294gnu*)
13295 version_type=linux
13296 need_lib_prefix=no
13297 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13299 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013300 shlibpath_var=LD_LIBRARY_PATH
13301 hardcode_into_libs=yes
13302 ;;
13303
13304hpux9* | hpux10* | hpux11*)
13305 # Give a soname corresponding to the major version so that dld.sl refuses to
13306 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013307 version_type=sunos
13308 need_lib_prefix=no
13309 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013310 case "$host_cpu" in
13311 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013312 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013313 hardcode_into_libs=yes
13314 dynamic_linker="$host_os dld.so"
13315 shlibpath_var=LD_LIBRARY_PATH
13316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318 soname_spec='${libname}${release}${shared_ext}$major'
13319 if test "X$HPUX_IA64_MODE" = X32; then
13320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13321 else
13322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13323 fi
13324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13325 ;;
13326 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013327 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013328 hardcode_into_libs=yes
13329 dynamic_linker="$host_os dld.sl"
13330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333 soname_spec='${libname}${release}${shared_ext}$major'
13334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13336 ;;
13337 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013338 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013339 dynamic_linker="$host_os dld.sl"
13340 shlibpath_var=SHLIB_PATH
13341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343 soname_spec='${libname}${release}${shared_ext}$major'
13344 ;;
13345 esac
John Criswell7a73b802003-06-30 21:59:07 +000013346 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13347 postinstall_cmds='chmod 555 $lib'
13348 ;;
13349
John Criswell47fdd832003-07-14 16:52:07 +000013350irix5* | irix6* | nonstopux*)
13351 case $host_os in
13352 nonstopux*) version_type=nonstopux ;;
13353 *)
13354 if test "$lt_cv_prog_gnu_ld" = yes; then
13355 version_type=linux
13356 else
13357 version_type=irix
13358 fi ;;
13359 esac
John Criswell7a73b802003-06-30 21:59:07 +000013360 need_lib_prefix=no
13361 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013362 soname_spec='${libname}${release}${shared_ext}$major'
13363 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 +000013364 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013365 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013366 libsuff= shlibsuff=
13367 ;;
13368 *)
13369 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13371 libsuff= shlibsuff= libmagic=32-bit;;
13372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13373 libsuff=32 shlibsuff=N32 libmagic=N32;;
13374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013376 *) libsuff= shlibsuff= libmagic=never-match;;
13377 esac
13378 ;;
13379 esac
13380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13381 shlibpath_overrides_runpath=no
13382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013384 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013385 ;;
13386
13387# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013388linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013389 dynamic_linker=no
13390 ;;
13391
13392# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013393linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013394 version_type=linux
13395 need_lib_prefix=no
13396 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 shlibpath_overrides_runpath=no
13402 # This implies no fast_install, which is unacceptable.
13403 # Some rework will be needed to allow for fast_install
13404 # before this can be enabled.
13405 hardcode_into_libs=yes
13406
Reid Spencer2706f8c2004-09-19 23:53:36 +000013407 # Append ld.so.conf contents to the search path
13408 if test -f /etc/ld.so.conf; then
13409 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13410 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13411 fi
13412
John Criswell7a73b802003-06-30 21:59:07 +000013413 # We used to test for /lib/ld.so.1 and disable shared libraries on
13414 # powerpc, because MkLinux only supported shared libraries with the
13415 # GNU dynamic linker. Since this was broken with cross compilers,
13416 # most powerpc-linux boxes support dynamic linking these days and
13417 # people can always --disable-shared, the test was removed, and we
13418 # assume the GNU/Linux dynamic linker is in use.
13419 dynamic_linker='GNU/Linux ld.so'
13420 ;;
13421
Reid Spencer2706f8c2004-09-19 23:53:36 +000013422knetbsd*-gnu)
13423 version_type=linux
13424 need_lib_prefix=no
13425 need_version=no
13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13427 soname_spec='${libname}${release}${shared_ext}$major'
13428 shlibpath_var=LD_LIBRARY_PATH
13429 shlibpath_overrides_runpath=no
13430 hardcode_into_libs=yes
13431 dynamic_linker='GNU ld.so'
13432 ;;
13433
John Criswell7a73b802003-06-30 21:59:07 +000013434netbsd*)
13435 version_type=sunos
13436 need_lib_prefix=no
13437 need_version=no
13438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13441 dynamic_linker='NetBSD (a.out) ld.so'
13442 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013444 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013445 dynamic_linker='NetBSD ld.elf_so'
13446 fi
13447 shlibpath_var=LD_LIBRARY_PATH
13448 shlibpath_overrides_runpath=yes
13449 hardcode_into_libs=yes
13450 ;;
13451
13452newsos6)
13453 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes
13457 ;;
13458
Reid Spencer2706f8c2004-09-19 23:53:36 +000013459nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013460 version_type=linux
13461 need_lib_prefix=no
13462 need_version=no
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013465 shlibpath_var=LD_LIBRARY_PATH
13466 shlibpath_overrides_runpath=yes
13467 ;;
13468
13469openbsd*)
13470 version_type=sunos
13471 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013472 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13475 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013476 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 +000013477 case $host_os in
13478 openbsd2.[89] | openbsd2.[89].*)
13479 shlibpath_overrides_runpath=no
13480 ;;
13481 *)
13482 shlibpath_overrides_runpath=yes
13483 ;;
13484 esac
John Criswell7a73b802003-06-30 21:59:07 +000013485 else
13486 shlibpath_overrides_runpath=yes
13487 fi
John Criswell7a73b802003-06-30 21:59:07 +000013488 ;;
13489
13490os2*)
13491 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013492 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013493 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013494 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013495 dynamic_linker='OS/2 ld.exe'
13496 shlibpath_var=LIBPATH
13497 ;;
13498
13499osf3* | osf4* | osf5*)
13500 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013501 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013502 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013503 soname_spec='${libname}${release}${shared_ext}$major'
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013505 shlibpath_var=LD_LIBRARY_PATH
13506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13508 ;;
13509
13510sco3.2v5*)
13511 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013512 soname_spec='${libname}${release}${shared_ext}$major'
13513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013514 shlibpath_var=LD_LIBRARY_PATH
13515 ;;
13516
13517solaris*)
13518 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 shlibpath_var=LD_LIBRARY_PATH
13524 shlibpath_overrides_runpath=yes
13525 hardcode_into_libs=yes
13526 # ldd complains unless libraries are executable
13527 postinstall_cmds='chmod +x $lib'
13528 ;;
13529
13530sunos4*)
13531 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 shlibpath_overrides_runpath=yes
13536 if test "$with_gnu_ld" = yes; then
13537 need_lib_prefix=no
13538 fi
13539 need_version=yes
13540 ;;
13541
13542sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13543 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013546 shlibpath_var=LD_LIBRARY_PATH
13547 case $host_vendor in
13548 sni)
13549 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013550 need_lib_prefix=no
13551 export_dynamic_flag_spec='${wl}-Blargedynsym'
13552 runpath_var=LD_RUN_PATH
13553 ;;
13554 siemens)
13555 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013556 ;;
13557 motorola)
13558 need_lib_prefix=no
13559 need_version=no
13560 shlibpath_overrides_runpath=no
13561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13562 ;;
13563 esac
13564 ;;
13565
John Criswell7a73b802003-06-30 21:59:07 +000013566sysv4*MP*)
13567 if test -d /usr/nec ;then
13568 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13570 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013571 shlibpath_var=LD_LIBRARY_PATH
13572 fi
13573 ;;
13574
John Criswell47fdd832003-07-14 16:52:07 +000013575uts4*)
13576 version_type=linux
13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13578 soname_spec='${libname}${release}${shared_ext}$major'
13579 shlibpath_var=LD_LIBRARY_PATH
13580 ;;
13581
John Criswell7a73b802003-06-30 21:59:07 +000013582*)
13583 dynamic_linker=no
13584 ;;
13585esac
13586echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13587echo "${ECHO_T}$dynamic_linker" >&6
13588test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013589
Reid Spencer2706f8c2004-09-19 23:53:36 +000013590echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13591echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13592hardcode_action=
13593if test -n "$hardcode_libdir_flag_spec" || \
13594 test -n "$runpath_var" || \
13595 test "X$hardcode_automatic" = "Xyes" ; then
13596
13597 # We can hardcode non-existant directories.
13598 if test "$hardcode_direct" != no &&
13599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13600 # have to relink, otherwise we might link with an installed library
13601 # when we should be linking with a yet-to-be-installed one
13602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13603 test "$hardcode_minus_L" != no; then
13604 # Linking always hardcodes the temporary library directory.
13605 hardcode_action=relink
13606 else
13607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13608 hardcode_action=immediate
13609 fi
13610else
13611 # We cannot hardcode anything, or else we can only hardcode existing
13612 # directories.
13613 hardcode_action=unsupported
13614fi
13615echo "$as_me:$LINENO: result: $hardcode_action" >&5
13616echo "${ECHO_T}$hardcode_action" >&6
13617
13618if test "$hardcode_action" = relink; then
13619 # Fast installation is not supported
13620 enable_fast_install=no
13621elif test "$shlibpath_overrides_runpath" = yes ||
13622 test "$enable_shared" = no; then
13623 # Fast installation is not necessary
13624 enable_fast_install=needless
13625fi
13626
13627striplib=
13628old_striplib=
13629echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13630echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13631if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13633 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13634 echo "$as_me:$LINENO: result: yes" >&5
13635echo "${ECHO_T}yes" >&6
13636else
13637# FIXME - insert some real tests, host_os isn't really good enough
13638 case $host_os in
13639 darwin*)
13640 if test -n "$STRIP" ; then
13641 striplib="$STRIP -x"
13642 echo "$as_me:$LINENO: result: yes" >&5
13643echo "${ECHO_T}yes" >&6
13644 else
13645 echo "$as_me:$LINENO: result: no" >&5
13646echo "${ECHO_T}no" >&6
13647fi
13648 ;;
13649 *)
13650 echo "$as_me:$LINENO: result: no" >&5
13651echo "${ECHO_T}no" >&6
13652 ;;
13653 esac
13654fi
13655
John Criswell7a73b802003-06-30 21:59:07 +000013656if test "x$enable_dlopen" != xyes; then
13657 enable_dlopen=unknown
13658 enable_dlopen_self=unknown
13659 enable_dlopen_self_static=unknown
13660else
13661 lt_cv_dlopen=no
13662 lt_cv_dlopen_libs=
13663
13664 case $host_os in
13665 beos*)
13666 lt_cv_dlopen="load_add_on"
13667 lt_cv_dlopen_libs=
13668 lt_cv_dlopen_self=yes
13669 ;;
13670
John Criswell47fdd832003-07-14 16:52:07 +000013671 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013672 lt_cv_dlopen="LoadLibrary"
13673 lt_cv_dlopen_libs=
13674 ;;
13675
John Criswell47fdd832003-07-14 16:52:07 +000013676 cygwin*)
13677 lt_cv_dlopen="dlopen"
13678 lt_cv_dlopen_libs=
13679 ;;
13680
13681 darwin*)
13682 # if libdl is installed we need to link against it
13683 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13684echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13685if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687else
13688 ac_check_lib_save_LIBS=$LIBS
13689LIBS="-ldl $LIBS"
13690cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013691/* confdefs.h. */
13692_ACEOF
13693cat confdefs.h >>conftest.$ac_ext
13694cat >>conftest.$ac_ext <<_ACEOF
13695/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013696
13697/* Override any gcc2 internal prototype to avoid an error. */
13698#ifdef __cplusplus
13699extern "C"
13700#endif
13701/* We use char because int might match the return type of a gcc2
13702 builtin and then its argument prototype would still apply. */
13703char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013704int
13705main ()
13706{
13707dlopen ();
13708 ;
13709 return 0;
13710}
13711_ACEOF
13712rm -f conftest.$ac_objext conftest$ac_exeext
13713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013714 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013715 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013716 grep -v '^ *+' conftest.er1 >conftest.err
13717 rm -f conftest.er1
13718 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013721 { ac_try='test -z "$ac_c_werror_flag"
13722 || test ! -s conftest.err'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_cv_lib_dl_dlopen=yes
13735else
13736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013737sed 's/^/| /' conftest.$ac_ext >&5
13738
John Criswell47fdd832003-07-14 16:52:07 +000013739ac_cv_lib_dl_dlopen=no
13740fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013741rm -f conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013743LIBS=$ac_check_lib_save_LIBS
13744fi
13745echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13746echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13747if test $ac_cv_lib_dl_dlopen = yes; then
13748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13749else
13750
13751 lt_cv_dlopen="dyld"
13752 lt_cv_dlopen_libs=
13753 lt_cv_dlopen_self=yes
13754
13755fi
13756
13757 ;;
13758
John Criswell7a73b802003-06-30 21:59:07 +000013759 *)
13760 echo "$as_me:$LINENO: checking for shl_load" >&5
13761echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13762if test "${ac_cv_func_shl_load+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13764else
13765 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013766/* confdefs.h. */
13767_ACEOF
13768cat confdefs.h >>conftest.$ac_ext
13769cat >>conftest.$ac_ext <<_ACEOF
13770/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013771/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13773#define shl_load innocuous_shl_load
13774
John Criswell7a73b802003-06-30 21:59:07 +000013775/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013776 which can conflict with char shl_load (); below.
13777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13778 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013779
John Criswell0c38eaf2003-09-10 15:17:25 +000013780#ifdef __STDC__
13781# include <limits.h>
13782#else
13783# include <assert.h>
13784#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013785
13786#undef shl_load
13787
John Criswell7a73b802003-06-30 21:59:07 +000013788/* Override any gcc2 internal prototype to avoid an error. */
13789#ifdef __cplusplus
13790extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013791{
John Criswell7a73b802003-06-30 21:59:07 +000013792#endif
13793/* We use char because int might match the return type of a gcc2
13794 builtin and then its argument prototype would still apply. */
13795char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013796/* The GNU C library defines this for functions which it implements
13797 to always fail with ENOSYS. Some functions are actually named
13798 something starting with __ and the normal name is an alias. */
13799#if defined (__stub_shl_load) || defined (__stub___shl_load)
13800choke me
13801#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013802char (*f) () = shl_load;
13803#endif
13804#ifdef __cplusplus
13805}
John Criswell7a73b802003-06-30 21:59:07 +000013806#endif
13807
John Criswell0c38eaf2003-09-10 15:17:25 +000013808int
13809main ()
13810{
13811return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013812 ;
13813 return 0;
13814}
13815_ACEOF
13816rm -f conftest.$ac_objext conftest$ac_exeext
13817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013818 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013820 grep -v '^ *+' conftest.er1 >conftest.err
13821 rm -f conftest.er1
13822 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013825 { ac_try='test -z "$ac_c_werror_flag"
13826 || test ! -s conftest.err'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; } &&
13832 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_func_shl_load=yes
13839else
13840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013841sed 's/^/| /' conftest.$ac_ext >&5
13842
John Criswell7a73b802003-06-30 21:59:07 +000013843ac_cv_func_shl_load=no
13844fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013845rm -f conftest.err conftest.$ac_objext \
13846 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013847fi
13848echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13849echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13850if test $ac_cv_func_shl_load = yes; then
13851 lt_cv_dlopen="shl_load"
13852else
13853 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13854echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13855if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857else
13858 ac_check_lib_save_LIBS=$LIBS
13859LIBS="-ldld $LIBS"
13860cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013866
13867/* Override any gcc2 internal prototype to avoid an error. */
13868#ifdef __cplusplus
13869extern "C"
13870#endif
13871/* We use char because int might match the return type of a gcc2
13872 builtin and then its argument prototype would still apply. */
13873char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013874int
13875main ()
13876{
13877shl_load ();
13878 ;
13879 return 0;
13880}
13881_ACEOF
13882rm -f conftest.$ac_objext conftest$ac_exeext
13883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013884 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013885 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013891 { ac_try='test -z "$ac_c_werror_flag"
13892 || test ! -s conftest.err'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; } &&
13898 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904 ac_cv_lib_dld_shl_load=yes
13905else
13906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013907sed 's/^/| /' conftest.$ac_ext >&5
13908
John Criswell7a73b802003-06-30 21:59:07 +000013909ac_cv_lib_dld_shl_load=no
13910fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013911rm -f conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013913LIBS=$ac_check_lib_save_LIBS
13914fi
13915echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13916echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13917if test $ac_cv_lib_dld_shl_load = yes; then
13918 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13919else
13920 echo "$as_me:$LINENO: checking for dlopen" >&5
13921echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13922if test "${ac_cv_func_dlopen+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924else
13925 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013926/* confdefs.h. */
13927_ACEOF
13928cat confdefs.h >>conftest.$ac_ext
13929cat >>conftest.$ac_ext <<_ACEOF
13930/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013931/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13933#define dlopen innocuous_dlopen
13934
John Criswell7a73b802003-06-30 21:59:07 +000013935/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013936 which can conflict with char dlopen (); below.
13937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13938 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013939
John Criswell0c38eaf2003-09-10 15:17:25 +000013940#ifdef __STDC__
13941# include <limits.h>
13942#else
13943# include <assert.h>
13944#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013945
13946#undef dlopen
13947
John Criswell7a73b802003-06-30 21:59:07 +000013948/* Override any gcc2 internal prototype to avoid an error. */
13949#ifdef __cplusplus
13950extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013951{
John Criswell7a73b802003-06-30 21:59:07 +000013952#endif
13953/* We use char because int might match the return type of a gcc2
13954 builtin and then its argument prototype would still apply. */
13955char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013956/* The GNU C library defines this for functions which it implements
13957 to always fail with ENOSYS. Some functions are actually named
13958 something starting with __ and the normal name is an alias. */
13959#if defined (__stub_dlopen) || defined (__stub___dlopen)
13960choke me
13961#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013962char (*f) () = dlopen;
13963#endif
13964#ifdef __cplusplus
13965}
John Criswell7a73b802003-06-30 21:59:07 +000013966#endif
13967
John Criswell0c38eaf2003-09-10 15:17:25 +000013968int
13969main ()
13970{
13971return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013972 ;
13973 return 0;
13974}
13975_ACEOF
13976rm -f conftest.$ac_objext conftest$ac_exeext
13977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013978 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013979 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013985 { ac_try='test -z "$ac_c_werror_flag"
13986 || test ! -s conftest.err'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } &&
13992 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_func_dlopen=yes
13999else
14000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014001sed 's/^/| /' conftest.$ac_ext >&5
14002
John Criswell7a73b802003-06-30 21:59:07 +000014003ac_cv_func_dlopen=no
14004fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014005rm -f conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014007fi
14008echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14009echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14010if test $ac_cv_func_dlopen = yes; then
14011 lt_cv_dlopen="dlopen"
14012else
14013 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14014echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14015if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017else
14018 ac_check_lib_save_LIBS=$LIBS
14019LIBS="-ldl $LIBS"
14020cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014021/* confdefs.h. */
14022_ACEOF
14023cat confdefs.h >>conftest.$ac_ext
14024cat >>conftest.$ac_ext <<_ACEOF
14025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014026
14027/* Override any gcc2 internal prototype to avoid an error. */
14028#ifdef __cplusplus
14029extern "C"
14030#endif
14031/* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14033char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014034int
14035main ()
14036{
14037dlopen ();
14038 ;
14039 return 0;
14040}
14041_ACEOF
14042rm -f conftest.$ac_objext conftest$ac_exeext
14043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014044 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014051 { ac_try='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_lib_dl_dlopen=yes
14065else
14066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014067sed 's/^/| /' conftest.$ac_ext >&5
14068
John Criswell7a73b802003-06-30 21:59:07 +000014069ac_cv_lib_dl_dlopen=no
14070fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014071rm -f conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014073LIBS=$ac_check_lib_save_LIBS
14074fi
14075echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14076echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14077if test $ac_cv_lib_dl_dlopen = yes; then
14078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14079else
14080 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14081echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14082if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084else
14085 ac_check_lib_save_LIBS=$LIBS
14086LIBS="-lsvld $LIBS"
14087cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014088/* confdefs.h. */
14089_ACEOF
14090cat confdefs.h >>conftest.$ac_ext
14091cat >>conftest.$ac_ext <<_ACEOF
14092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014093
14094/* Override any gcc2 internal prototype to avoid an error. */
14095#ifdef __cplusplus
14096extern "C"
14097#endif
14098/* We use char because int might match the return type of a gcc2
14099 builtin and then its argument prototype would still apply. */
14100char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014101int
14102main ()
14103{
14104dlopen ();
14105 ;
14106 return 0;
14107}
14108_ACEOF
14109rm -f conftest.$ac_objext conftest$ac_exeext
14110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014111 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014113 grep -v '^ *+' conftest.er1 >conftest.err
14114 rm -f conftest.er1
14115 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014118 { ac_try='test -z "$ac_c_werror_flag"
14119 || test ! -s conftest.err'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; } &&
14125 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_cv_lib_svld_dlopen=yes
14132else
14133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014134sed 's/^/| /' conftest.$ac_ext >&5
14135
John Criswell7a73b802003-06-30 21:59:07 +000014136ac_cv_lib_svld_dlopen=no
14137fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014138rm -f conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014140LIBS=$ac_check_lib_save_LIBS
14141fi
14142echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14143echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14144if test $ac_cv_lib_svld_dlopen = yes; then
14145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14146else
14147 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14148echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14149if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151else
14152 ac_check_lib_save_LIBS=$LIBS
14153LIBS="-ldld $LIBS"
14154cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
14159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014160
14161/* Override any gcc2 internal prototype to avoid an error. */
14162#ifdef __cplusplus
14163extern "C"
14164#endif
14165/* We use char because int might match the return type of a gcc2
14166 builtin and then its argument prototype would still apply. */
14167char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014168int
14169main ()
14170{
14171dld_link ();
14172 ;
14173 return 0;
14174}
14175_ACEOF
14176rm -f conftest.$ac_objext conftest$ac_exeext
14177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014178 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014185 { ac_try='test -z "$ac_c_werror_flag"
14186 || test ! -s conftest.err'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; } &&
14192 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_lib_dld_dld_link=yes
14199else
14200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014201sed 's/^/| /' conftest.$ac_ext >&5
14202
John Criswell7a73b802003-06-30 21:59:07 +000014203ac_cv_lib_dld_dld_link=no
14204fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014205rm -f conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014207LIBS=$ac_check_lib_save_LIBS
14208fi
14209echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14210echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14211if test $ac_cv_lib_dld_dld_link = yes; then
14212 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14213fi
14214
14215
14216fi
14217
14218
14219fi
14220
14221
14222fi
14223
14224
14225fi
14226
14227
14228fi
14229
14230 ;;
14231 esac
14232
14233 if test "x$lt_cv_dlopen" != xno; then
14234 enable_dlopen=yes
14235 else
14236 enable_dlopen=no
14237 fi
14238
14239 case $lt_cv_dlopen in
14240 dlopen)
14241 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014242 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014243
14244 save_LDFLAGS="$LDFLAGS"
14245 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14246
14247 save_LIBS="$LIBS"
14248 LIBS="$lt_cv_dlopen_libs $LIBS"
14249
14250 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14251echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14252if test "${lt_cv_dlopen_self+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254else
14255 if test "$cross_compiling" = yes; then :
14256 lt_cv_dlopen_self=cross
14257else
John Criswell47fdd832003-07-14 16:52:07 +000014258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014259 lt_status=$lt_dlunknown
14260 cat > conftest.$ac_ext <<EOF
Reid Spencer675f0922005-04-22 17:06:18 +000014261#line 14261 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014262#include "confdefs.h"
14263
14264#if HAVE_DLFCN_H
14265#include <dlfcn.h>
14266#endif
14267
14268#include <stdio.h>
14269
14270#ifdef RTLD_GLOBAL
14271# define LT_DLGLOBAL RTLD_GLOBAL
14272#else
14273# ifdef DL_GLOBAL
14274# define LT_DLGLOBAL DL_GLOBAL
14275# else
14276# define LT_DLGLOBAL 0
14277# endif
14278#endif
14279
14280/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14281 find out it does not work in some platform. */
14282#ifndef LT_DLLAZY_OR_NOW
14283# ifdef RTLD_LAZY
14284# define LT_DLLAZY_OR_NOW RTLD_LAZY
14285# else
14286# ifdef DL_LAZY
14287# define LT_DLLAZY_OR_NOW DL_LAZY
14288# else
14289# ifdef RTLD_NOW
14290# define LT_DLLAZY_OR_NOW RTLD_NOW
14291# else
14292# ifdef DL_NOW
14293# define LT_DLLAZY_OR_NOW DL_NOW
14294# else
14295# define LT_DLLAZY_OR_NOW 0
14296# endif
14297# endif
14298# endif
14299# endif
14300#endif
14301
14302#ifdef __cplusplus
14303extern "C" void exit (int);
14304#endif
14305
14306void fnord() { int i=42;}
14307int main ()
14308{
14309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14310 int status = $lt_dlunknown;
14311
14312 if (self)
14313 {
14314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14315 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14316 /* dlclose (self); */
14317 }
14318
14319 exit (status);
14320}
14321EOF
14322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14323 (eval $ac_link) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14327 (./conftest; exit; ) 2>/dev/null
14328 lt_status=$?
14329 case x$lt_status in
14330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14332 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14333 esac
14334 else :
14335 # compilation failed
14336 lt_cv_dlopen_self=no
14337 fi
14338fi
14339rm -fr conftest*
14340
14341
14342fi
14343echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14344echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14345
14346 if test "x$lt_cv_dlopen_self" = xyes; then
14347 LDFLAGS="$LDFLAGS $link_static_flag"
14348 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14349echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14350if test "${lt_cv_dlopen_self_static+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352else
14353 if test "$cross_compiling" = yes; then :
14354 lt_cv_dlopen_self_static=cross
14355else
John Criswell47fdd832003-07-14 16:52:07 +000014356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014357 lt_status=$lt_dlunknown
14358 cat > conftest.$ac_ext <<EOF
Reid Spencer675f0922005-04-22 17:06:18 +000014359#line 14359 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014360#include "confdefs.h"
14361
14362#if HAVE_DLFCN_H
14363#include <dlfcn.h>
14364#endif
14365
14366#include <stdio.h>
14367
14368#ifdef RTLD_GLOBAL
14369# define LT_DLGLOBAL RTLD_GLOBAL
14370#else
14371# ifdef DL_GLOBAL
14372# define LT_DLGLOBAL DL_GLOBAL
14373# else
14374# define LT_DLGLOBAL 0
14375# endif
14376#endif
14377
14378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14379 find out it does not work in some platform. */
14380#ifndef LT_DLLAZY_OR_NOW
14381# ifdef RTLD_LAZY
14382# define LT_DLLAZY_OR_NOW RTLD_LAZY
14383# else
14384# ifdef DL_LAZY
14385# define LT_DLLAZY_OR_NOW DL_LAZY
14386# else
14387# ifdef RTLD_NOW
14388# define LT_DLLAZY_OR_NOW RTLD_NOW
14389# else
14390# ifdef DL_NOW
14391# define LT_DLLAZY_OR_NOW DL_NOW
14392# else
14393# define LT_DLLAZY_OR_NOW 0
14394# endif
14395# endif
14396# endif
14397# endif
14398#endif
14399
14400#ifdef __cplusplus
14401extern "C" void exit (int);
14402#endif
14403
14404void fnord() { int i=42;}
14405int main ()
14406{
14407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14408 int status = $lt_dlunknown;
14409
14410 if (self)
14411 {
14412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14414 /* dlclose (self); */
14415 }
14416
14417 exit (status);
14418}
14419EOF
14420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421 (eval $ac_link) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14425 (./conftest; exit; ) 2>/dev/null
14426 lt_status=$?
14427 case x$lt_status in
14428 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14429 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14430 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14431 esac
14432 else :
14433 # compilation failed
14434 lt_cv_dlopen_self_static=no
14435 fi
14436fi
14437rm -fr conftest*
14438
14439
14440fi
14441echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14442echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14443 fi
14444
14445 CPPFLAGS="$save_CPPFLAGS"
14446 LDFLAGS="$save_LDFLAGS"
14447 LIBS="$save_LIBS"
14448 ;;
14449 esac
14450
14451 case $lt_cv_dlopen_self in
14452 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14453 *) enable_dlopen_self=unknown ;;
14454 esac
14455
14456 case $lt_cv_dlopen_self_static in
14457 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14458 *) enable_dlopen_self_static=unknown ;;
14459 esac
14460fi
14461
14462
John Criswell47fdd832003-07-14 16:52:07 +000014463# Report which librarie types wil actually be built
14464echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14465echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14466echo "$as_me:$LINENO: result: $can_build_shared" >&5
14467echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014468
John Criswell47fdd832003-07-14 16:52:07 +000014469echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14470echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14471test "$can_build_shared" = "no" && enable_shared=no
14472
14473# On AIX, shared libraries and static libraries use the same namespace, and
14474# are all built from PIC.
14475case "$host_os" in
14476aix3*)
14477 test "$enable_shared" = yes && enable_static=no
14478 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014480 postinstall_cmds='$RANLIB $lib'
14481 fi
14482 ;;
14483
Reid Spencer2706f8c2004-09-19 23:53:36 +000014484aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14486 test "$enable_shared" = yes && enable_static=no
14487 fi
John Criswell7a73b802003-06-30 21:59:07 +000014488 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014489esac
14490echo "$as_me:$LINENO: result: $enable_shared" >&5
14491echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014492
John Criswell47fdd832003-07-14 16:52:07 +000014493echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14494echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14495# Make sure either enable_shared or enable_static is yes.
14496test "$enable_shared" = yes || enable_static=yes
14497echo "$as_me:$LINENO: result: $enable_static" >&5
14498echo "${ECHO_T}$enable_static" >&6
14499
14500# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014501# libtool distribution, otherwise you forgot to ship ltmain.sh
14502# with your package, and you will get complaints that there are
14503# no rules to generate ltmain.sh.
14504if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014505 # See if we are running on zsh, and set the options which allow our commands through
14506 # without removal of \ escapes.
14507 if test -n "${ZSH_VERSION+set}" ; then
14508 setopt NO_GLOB_SUBST
14509 fi
John Criswell7a73b802003-06-30 21:59:07 +000014510 # Now quote all the things that may contain metacharacters while being
14511 # careful not to overquote the AC_SUBSTed values. We take copies of the
14512 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014513 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14514 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014515 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14516 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14517 deplibs_check_method reload_flag reload_cmds need_locks \
14518 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14519 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014520 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014521 old_postinstall_cmds old_postuninstall_cmds \
14522 compiler \
14523 CC \
14524 LD \
14525 lt_prog_compiler_wl \
14526 lt_prog_compiler_pic \
14527 lt_prog_compiler_static \
14528 lt_prog_compiler_no_builtin_flag \
14529 export_dynamic_flag_spec \
14530 thread_safe_flag_spec \
14531 whole_archive_flag_spec \
14532 enable_shared_with_static_runtimes \
14533 old_archive_cmds \
14534 old_archive_from_new_cmds \
14535 predep_objects \
14536 postdep_objects \
14537 predeps \
14538 postdeps \
14539 compiler_lib_search_path \
14540 archive_cmds \
14541 archive_expsym_cmds \
14542 postinstall_cmds \
14543 postuninstall_cmds \
14544 old_archive_from_expsyms_cmds \
14545 allow_undefined_flag \
14546 no_undefined_flag \
14547 export_symbols_cmds \
14548 hardcode_libdir_flag_spec \
14549 hardcode_libdir_flag_spec_ld \
14550 hardcode_libdir_separator \
14551 hardcode_automatic \
14552 module_cmds \
14553 module_expsym_cmds \
14554 lt_cv_prog_compiler_c_o \
14555 exclude_expsyms \
14556 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014557
14558 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014559 old_archive_cmds | \
14560 old_archive_from_new_cmds | \
14561 archive_cmds | \
14562 archive_expsym_cmds | \
14563 module_cmds | \
14564 module_expsym_cmds | \
14565 old_archive_from_expsyms_cmds | \
14566 export_symbols_cmds | \
14567 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014568 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014569 old_postinstall_cmds | old_postuninstall_cmds | \
14570 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014571 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014572 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 +000014573 ;;
14574 *)
14575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14576 ;;
14577 esac
14578 done
14579
John Criswell47fdd832003-07-14 16:52:07 +000014580 case $lt_echo in
14581 *'\$0 --fallback-echo"')
14582 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14583 ;;
14584 esac
14585
14586cfgfile="${ofile}T"
14587 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14588 $rm -f "$cfgfile"
14589 { echo "$as_me:$LINENO: creating $ofile" >&5
14590echo "$as_me: creating $ofile" >&6;}
14591
14592 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014593#! $SHELL
14594
John Criswell47fdd832003-07-14 16:52:07 +000014595# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014596# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14597# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14598#
John Criswell47fdd832003-07-14 16:52:07 +000014599# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14600# Free Software Foundation, Inc.
14601#
14602# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014603# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14604#
14605# This program is free software; you can redistribute it and/or modify
14606# it under the terms of the GNU General Public License as published by
14607# the Free Software Foundation; either version 2 of the License, or
14608# (at your option) any later version.
14609#
14610# This program is distributed in the hope that it will be useful, but
14611# WITHOUT ANY WARRANTY; without even the implied warranty of
14612# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14613# General Public License for more details.
14614#
14615# You should have received a copy of the GNU General Public License
14616# along with this program; if not, write to the Free Software
14617# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14618#
14619# As a special exception to the GNU General Public License, if you
14620# distribute this file as part of a program that contains a
14621# configuration script generated by Autoconf, you may include it under
14622# the same distribution terms that you use for the rest of that program.
14623
John Criswell47fdd832003-07-14 16:52:07 +000014624# A sed program that does not truncate output.
14625SED=$lt_SED
14626
John Criswell7a73b802003-06-30 21:59:07 +000014627# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014628Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014629
14630# The HP-UX ksh and POSIX shell print the target directory to stdout
14631# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014632(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014633
John Criswell47fdd832003-07-14 16:52:07 +000014634# The names of the tagged configurations supported by this script.
14635available_tags=
14636
John Criswell7a73b802003-06-30 21:59:07 +000014637# ### BEGIN LIBTOOL CONFIG
14638
14639# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14640
14641# Shell to use when invoking shell scripts.
14642SHELL=$lt_SHELL
14643
14644# Whether or not to build shared libraries.
14645build_libtool_libs=$enable_shared
14646
14647# Whether or not to build static libraries.
14648build_old_libs=$enable_static
14649
14650# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014651build_libtool_need_lc=$archive_cmds_need_lc
14652
14653# Whether or not to disallow shared libs when runtime libs are static
14654allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014655
14656# Whether or not to optimize for fast installation.
14657fast_install=$enable_fast_install
14658
14659# The host system.
14660host_alias=$host_alias
14661host=$host
14662
14663# An echo program that does not interpret backslashes.
14664echo=$lt_echo
14665
14666# The archiver.
14667AR=$lt_AR
14668AR_FLAGS=$lt_AR_FLAGS
14669
John Criswell47fdd832003-07-14 16:52:07 +000014670# A C compiler.
14671LTCC=$lt_LTCC
14672
14673# A language-specific compiler.
14674CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014675
14676# Is the compiler the GNU C compiler?
14677with_gcc=$GCC
14678
John Criswell47fdd832003-07-14 16:52:07 +000014679# An ERE matcher.
14680EGREP=$lt_EGREP
14681
John Criswell7a73b802003-06-30 21:59:07 +000014682# The linker used to build libraries.
14683LD=$lt_LD
14684
14685# Whether we need hard or soft links.
14686LN_S=$lt_LN_S
14687
14688# A BSD-compatible nm program.
14689NM=$lt_NM
14690
14691# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014692STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014693
14694# Used to examine libraries when file_magic_cmd begins "file"
14695MAGIC_CMD=$MAGIC_CMD
14696
14697# Used on cygwin: DLL creation program.
14698DLLTOOL="$DLLTOOL"
14699
14700# Used on cygwin: object dumper.
14701OBJDUMP="$OBJDUMP"
14702
14703# Used on cygwin: assembler.
14704AS="$AS"
14705
14706# The name of the directory that contains temporary libtool files.
14707objdir=$objdir
14708
14709# How to create reloadable object files.
14710reload_flag=$lt_reload_flag
14711reload_cmds=$lt_reload_cmds
14712
14713# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014714wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014715
14716# Object file suffix (normally "o").
14717objext="$ac_objext"
14718
14719# Old archive suffix (normally "a").
14720libext="$libext"
14721
John Criswell47fdd832003-07-14 16:52:07 +000014722# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014723shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014724
John Criswell7a73b802003-06-30 21:59:07 +000014725# Executable file suffix (normally "").
14726exeext="$exeext"
14727
14728# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014729pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014730pic_mode=$pic_mode
14731
John Criswell47fdd832003-07-14 16:52:07 +000014732# What is the maximum length of a command?
14733max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014734
John Criswell47fdd832003-07-14 16:52:07 +000014735# Does compiler simultaneously support -c and -o options?
14736compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014737
14738# Must we lock files when doing compilation ?
14739need_locks=$lt_need_locks
14740
14741# Do we need the lib prefix for modules?
14742need_lib_prefix=$need_lib_prefix
14743
14744# Do we need a version for libraries?
14745need_version=$need_version
14746
14747# Whether dlopen is supported.
14748dlopen_support=$enable_dlopen
14749
14750# Whether dlopen of programs is supported.
14751dlopen_self=$enable_dlopen_self
14752
14753# Whether dlopen of statically linked programs is supported.
14754dlopen_self_static=$enable_dlopen_self_static
14755
14756# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014757link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014758
14759# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014760no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014761
14762# Compiler flag to allow reflexive dlopens.
14763export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14764
14765# Compiler flag to generate shared objects directly from archives.
14766whole_archive_flag_spec=$lt_whole_archive_flag_spec
14767
14768# Compiler flag to generate thread-safe objects.
14769thread_safe_flag_spec=$lt_thread_safe_flag_spec
14770
14771# Library versioning type.
14772version_type=$version_type
14773
14774# Format of library name prefix.
14775libname_spec=$lt_libname_spec
14776
14777# List of archive names. First name is the real one, the rest are links.
14778# The last name is the one that the linker finds with -lNAME.
14779library_names_spec=$lt_library_names_spec
14780
14781# The coded name of the library, if different from the real name.
14782soname_spec=$lt_soname_spec
14783
14784# Commands used to build and install an old-style archive.
14785RANLIB=$lt_RANLIB
14786old_archive_cmds=$lt_old_archive_cmds
14787old_postinstall_cmds=$lt_old_postinstall_cmds
14788old_postuninstall_cmds=$lt_old_postuninstall_cmds
14789
14790# Create an old-style archive from a shared archive.
14791old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14792
14793# Create a temporary old-style archive to link instead of a shared archive.
14794old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14795
14796# Commands used to build and install a shared archive.
14797archive_cmds=$lt_archive_cmds
14798archive_expsym_cmds=$lt_archive_expsym_cmds
14799postinstall_cmds=$lt_postinstall_cmds
14800postuninstall_cmds=$lt_postuninstall_cmds
14801
John Criswell47fdd832003-07-14 16:52:07 +000014802# Commands used to build a loadable module (assumed same as above if empty)
14803module_cmds=$lt_module_cmds
14804module_expsym_cmds=$lt_module_expsym_cmds
14805
John Criswell7a73b802003-06-30 21:59:07 +000014806# Commands to strip libraries.
14807old_striplib=$lt_old_striplib
14808striplib=$lt_striplib
14809
John Criswell47fdd832003-07-14 16:52:07 +000014810# Dependencies to place before the objects being linked to create a
14811# shared library.
14812predep_objects=$lt_predep_objects
14813
14814# Dependencies to place after the objects being linked to create a
14815# shared library.
14816postdep_objects=$lt_postdep_objects
14817
14818# Dependencies to place before the objects being linked to create a
14819# shared library.
14820predeps=$lt_predeps
14821
14822# Dependencies to place after the objects being linked to create a
14823# shared library.
14824postdeps=$lt_postdeps
14825
14826# The library search path used internally by the compiler when linking
14827# a shared library.
14828compiler_lib_search_path=$lt_compiler_lib_search_path
14829
John Criswell7a73b802003-06-30 21:59:07 +000014830# Method to check whether dependent libraries are shared objects.
14831deplibs_check_method=$lt_deplibs_check_method
14832
14833# Command to use when deplibs_check_method == file_magic.
14834file_magic_cmd=$lt_file_magic_cmd
14835
14836# Flag that allows shared libraries with undefined symbols to be built.
14837allow_undefined_flag=$lt_allow_undefined_flag
14838
14839# Flag that forces no undefined symbols.
14840no_undefined_flag=$lt_no_undefined_flag
14841
14842# Commands used to finish a libtool library installation in a directory.
14843finish_cmds=$lt_finish_cmds
14844
14845# Same as above, but a single script fragment to be evaled but not shown.
14846finish_eval=$lt_finish_eval
14847
14848# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014849global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014850
14851# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014852global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014853
14854# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014855global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014856
14857# This is the shared library runtime path variable.
14858runpath_var=$runpath_var
14859
14860# This is the shared library path variable.
14861shlibpath_var=$shlibpath_var
14862
14863# Is shlibpath searched before the hard-coded library search path?
14864shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14865
14866# How to hardcode a shared library path into an executable.
14867hardcode_action=$hardcode_action
14868
14869# Whether we should hardcode library paths into libraries.
14870hardcode_into_libs=$hardcode_into_libs
14871
14872# Flag to hardcode \$libdir into a binary during linking.
14873# This must work even if \$libdir does not exist.
14874hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14875
John Criswell47fdd832003-07-14 16:52:07 +000014876# If ld is used when linking, flag to hardcode \$libdir into
14877# a binary during linking. This must work even if \$libdir does
14878# not exist.
14879hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14880
John Criswell7a73b802003-06-30 21:59:07 +000014881# Whether we need a single -rpath flag with a separated argument.
14882hardcode_libdir_separator=$lt_hardcode_libdir_separator
14883
John Criswell47fdd832003-07-14 16:52:07 +000014884# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014885# resulting binary.
14886hardcode_direct=$hardcode_direct
14887
14888# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14889# resulting binary.
14890hardcode_minus_L=$hardcode_minus_L
14891
14892# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14893# the resulting binary.
14894hardcode_shlibpath_var=$hardcode_shlibpath_var
14895
John Criswell47fdd832003-07-14 16:52:07 +000014896# Set to yes if building a shared library automatically hardcodes DIR into the library
14897# and all subsequent libraries and executables linked against it.
14898hardcode_automatic=$hardcode_automatic
14899
John Criswell7a73b802003-06-30 21:59:07 +000014900# Variables whose values should be saved in libtool wrapper scripts and
14901# restored at relink time.
14902variables_saved_for_relink="$variables_saved_for_relink"
14903
14904# Whether libtool must link a program against all its dependency libraries.
14905link_all_deplibs=$link_all_deplibs
14906
14907# Compile-time system search path for libraries
14908sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14909
14910# Run-time system search path for libraries
14911sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14912
14913# Fix the shell variable \$srcfile for the compiler.
14914fix_srcfile_path="$fix_srcfile_path"
14915
14916# Set to yes if exported symbols are required.
14917always_export_symbols=$always_export_symbols
14918
14919# The commands to list exported symbols.
14920export_symbols_cmds=$lt_export_symbols_cmds
14921
14922# The commands to extract the exported symbol list from a shared archive.
14923extract_expsyms_cmds=$lt_extract_expsyms_cmds
14924
14925# Symbols that should not be listed in the preloaded symbols.
14926exclude_expsyms=$lt_exclude_expsyms
14927
14928# Symbols that must always be exported.
14929include_expsyms=$lt_include_expsyms
14930
14931# ### END LIBTOOL CONFIG
14932
14933__EOF__
14934
John Criswell47fdd832003-07-14 16:52:07 +000014935
John Criswell7a73b802003-06-30 21:59:07 +000014936 case $host_os in
14937 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014938 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014939
14940# AIX sometimes has problems with the GCC collect2 program. For some
14941# reason, if we set the COLLECT_NAMES environment variable, the problems
14942# vanish in a puff of smoke.
14943if test "X${COLLECT_NAMES+set}" != Xset; then
14944 COLLECT_NAMES=
14945 export COLLECT_NAMES
14946fi
14947EOF
14948 ;;
14949 esac
14950
John Criswell7a73b802003-06-30 21:59:07 +000014951 # We use sed instead of cat because bash on DJGPP gets confused if
14952 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14953 # text mode, it properly converts lines to CR/LF. This bash problem
14954 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014955 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014956
John Criswell47fdd832003-07-14 16:52:07 +000014957 mv -f "$cfgfile" "$ofile" || \
14958 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014959 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014960
14961else
14962 # If there is no Makefile yet, we rely on a make rule to execute
14963 # `config.status --recheck' to rerun these tests and create the
14964 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014965 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14966 if test -f "$ltmain_in"; then
14967 test -f Makefile && make "$ltmain"
14968 fi
John Criswell7a73b802003-06-30 21:59:07 +000014969fi
John Criswell7a73b802003-06-30 21:59:07 +000014970
14971
John Criswell47fdd832003-07-14 16:52:07 +000014972ac_ext=c
14973ac_cpp='$CPP $CPPFLAGS'
14974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14976ac_compiler_gnu=$ac_cv_c_compiler_gnu
14977
14978CC="$lt_save_CC"
14979
14980
14981# Check whether --with-tags or --without-tags was given.
14982if test "${with_tags+set}" = set; then
14983 withval="$with_tags"
14984 tagnames="$withval"
14985fi;
14986
14987if test -f "$ltmain" && test -n "$tagnames"; then
14988 if test ! -f "${ofile}"; then
14989 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14990echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14991 fi
14992
14993 if test -z "$LTCC"; then
14994 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14995 if test -z "$LTCC"; then
14996 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14997echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14998 else
14999 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15000echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15001 fi
15002 fi
15003
15004 # Extract list of available tagged configurations in $ofile.
15005 # Note that this assumes the entire list is on one line.
15006 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15007
15008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15009 for tagname in $tagnames; do
15010 IFS="$lt_save_ifs"
15011 # Check whether tagname contains only valid characters
15012 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15013 "") ;;
15014 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15015echo "$as_me: error: invalid tag name: $tagname" >&2;}
15016 { (exit 1); exit 1; }; }
15017 ;;
15018 esac
15019
15020 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15021 then
15022 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15023echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15024 { (exit 1); exit 1; }; }
15025 fi
15026
15027 # Update the list of available tags.
15028 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015029 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015030
15031 case $tagname in
15032 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015033 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15034 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15035 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015036 ac_ext=cc
15037ac_cpp='$CXXCPP $CPPFLAGS'
15038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15041
15042
15043
15044
15045archive_cmds_need_lc_CXX=no
15046allow_undefined_flag_CXX=
15047always_export_symbols_CXX=no
15048archive_expsym_cmds_CXX=
15049export_dynamic_flag_spec_CXX=
15050hardcode_direct_CXX=no
15051hardcode_libdir_flag_spec_CXX=
15052hardcode_libdir_flag_spec_ld_CXX=
15053hardcode_libdir_separator_CXX=
15054hardcode_minus_L_CXX=no
15055hardcode_automatic_CXX=no
15056module_cmds_CXX=
15057module_expsym_cmds_CXX=
15058link_all_deplibs_CXX=unknown
15059old_archive_cmds_CXX=$old_archive_cmds
15060no_undefined_flag_CXX=
15061whole_archive_flag_spec_CXX=
15062enable_shared_with_static_runtimes_CXX=no
15063
15064# Dependencies to place before and after the object being linked:
15065predep_objects_CXX=
15066postdep_objects_CXX=
15067predeps_CXX=
15068postdeps_CXX=
15069compiler_lib_search_path_CXX=
15070
15071# Source file extension for C++ test sources.
15072ac_ext=cc
15073
15074# Object file extension for compiled C++ test sources.
15075objext=o
15076objext_CXX=$objext
15077
15078# Code to be used in simple compile tests
15079lt_simple_compile_test_code="int some_variable = 0;\n"
15080
15081# Code to be used in simple link tests
15082lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15083
15084# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15085
15086# If no C compiler was specified, use CC.
15087LTCC=${LTCC-"$CC"}
15088
15089# Allow CC to be a program name with arguments.
15090compiler=$CC
15091
15092
15093# Allow CC to be a program name with arguments.
15094lt_save_CC=$CC
15095lt_save_LD=$LD
15096lt_save_GCC=$GCC
15097GCC=$GXX
15098lt_save_with_gnu_ld=$with_gnu_ld
15099lt_save_path_LD=$lt_cv_path_LD
15100if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15101 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15102else
15103 unset lt_cv_prog_gnu_ld
15104fi
15105if test -n "${lt_cv_path_LDCXX+set}"; then
15106 lt_cv_path_LD=$lt_cv_path_LDCXX
15107else
15108 unset lt_cv_path_LD
15109fi
15110test -z "${LDCXX+set}" || LD=$LDCXX
15111CC=${CXX-"c++"}
15112compiler=$CC
15113compiler_CXX=$CC
15114cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15115
15116# We don't want -fno-exception wen compiling C++ code, so set the
15117# no_builtin_flag separately
15118if test "$GXX" = yes; then
15119 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15120else
15121 lt_prog_compiler_no_builtin_flag_CXX=
15122fi
15123
15124if test "$GXX" = yes; then
15125 # Set up default GNU C++ configuration
15126
15127
15128# Check whether --with-gnu-ld or --without-gnu-ld was given.
15129if test "${with_gnu_ld+set}" = set; then
15130 withval="$with_gnu_ld"
15131 test "$withval" = no || with_gnu_ld=yes
15132else
15133 with_gnu_ld=no
15134fi;
15135ac_prog=ld
15136if test "$GCC" = yes; then
15137 # Check if gcc -print-prog-name=ld gives a path.
15138 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15139echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15140 case $host in
15141 *-*-mingw*)
15142 # gcc leaves a trailing carriage return which upsets mingw
15143 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15144 *)
15145 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15146 esac
15147 case $ac_prog in
15148 # Accept absolute paths.
15149 [\\/]* | ?:[\\/]*)
15150 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015151 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015152 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15153 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15154 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15155 done
15156 test -z "$LD" && LD="$ac_prog"
15157 ;;
15158 "")
15159 # If it fails, then pretend we aren't using GCC.
15160 ac_prog=ld
15161 ;;
15162 *)
15163 # If it is relative, then search for the first ld in PATH.
15164 with_gnu_ld=unknown
15165 ;;
15166 esac
15167elif test "$with_gnu_ld" = yes; then
15168 echo "$as_me:$LINENO: checking for GNU ld" >&5
15169echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15170else
15171 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15172echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15173fi
15174if test "${lt_cv_path_LD+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176else
15177 if test -z "$LD"; then
15178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15179 for ac_dir in $PATH; do
15180 IFS="$lt_save_ifs"
15181 test -z "$ac_dir" && ac_dir=.
15182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15183 lt_cv_path_LD="$ac_dir/$ac_prog"
15184 # Check to see if the program is GNU ld. I'd rather use --version,
15185 # but apparently some GNU ld's only accept -v.
15186 # Break only if it was the GNU/non-GNU ld that we prefer.
15187 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15188 *GNU* | *'with BFD'*)
15189 test "$with_gnu_ld" != no && break
15190 ;;
15191 *)
15192 test "$with_gnu_ld" != yes && break
15193 ;;
15194 esac
15195 fi
15196 done
15197 IFS="$lt_save_ifs"
15198else
15199 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15200fi
15201fi
15202
15203LD="$lt_cv_path_LD"
15204if test -n "$LD"; then
15205 echo "$as_me:$LINENO: result: $LD" >&5
15206echo "${ECHO_T}$LD" >&6
15207else
15208 echo "$as_me:$LINENO: result: no" >&5
15209echo "${ECHO_T}no" >&6
15210fi
15211test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15212echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15213 { (exit 1); exit 1; }; }
15214echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15215echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15216if test "${lt_cv_prog_gnu_ld+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218else
15219 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015220case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015221*GNU* | *'with BFD'*)
15222 lt_cv_prog_gnu_ld=yes
15223 ;;
15224*)
15225 lt_cv_prog_gnu_ld=no
15226 ;;
15227esac
15228fi
15229echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15230echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15231with_gnu_ld=$lt_cv_prog_gnu_ld
15232
15233
15234
15235 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15236 # archiving commands below assume that GNU ld is being used.
15237 if test "$with_gnu_ld" = yes; then
15238 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15239 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'
15240
15241 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15243
15244 # If archive_cmds runs LD, not CC, wlarc should be empty
15245 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15246 # investigate it a little bit more. (MM)
15247 wlarc='${wl}'
15248
15249 # ancient GNU ld didn't support --whole-archive et. al.
15250 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15251 grep 'no-whole-archive' > /dev/null; then
15252 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15253 else
15254 whole_archive_flag_spec_CXX=
15255 fi
15256 else
15257 with_gnu_ld=no
15258 wlarc=
15259
15260 # A generic and very simple default shared library creation
15261 # command for GNU C++ for the case where it uses the native
15262 # linker, instead of GNU ld. If possible, this setting should
15263 # overridden to take advantage of the native linker features on
15264 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015265 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015266 fi
15267
15268 # Commands to make compiler produce verbose output that lists
15269 # what "hidden" libraries, object files and flags are used when
15270 # linking a shared library.
15271 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15272
15273else
15274 GXX=no
15275 with_gnu_ld=no
15276 wlarc=
15277fi
15278
15279# PORTME: fill in a description of your system's C++ link characteristics
15280echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15281echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15282ld_shlibs_CXX=yes
15283case $host_os in
15284 aix3*)
15285 # FIXME: insert proper C++ library support
15286 ld_shlibs_CXX=no
15287 ;;
15288 aix4* | aix5*)
15289 if test "$host_cpu" = ia64; then
15290 # On IA64, the linker does run time linking by default, so we don't
15291 # have to do anything special.
15292 aix_use_runtimelinking=no
15293 exp_sym_flag='-Bexport'
15294 no_entry_flag=""
15295 else
15296 aix_use_runtimelinking=no
15297
15298 # Test if we are trying to use run time linking or normal
15299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15300 # need to do runtime linking.
15301 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15302 for ld_flag in $LDFLAGS; do
15303 case $ld_flag in
15304 *-brtl*)
15305 aix_use_runtimelinking=yes
15306 break
15307 ;;
15308 esac
15309 done
15310 esac
15311
15312 exp_sym_flag='-bexport'
15313 no_entry_flag='-bnoentry'
15314 fi
15315
15316 # When large executables or shared objects are built, AIX ld can
15317 # have problems creating the table of contents. If linking a library
15318 # or program results in "error TOC overflow" add -mminimal-toc to
15319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15321
15322 archive_cmds_CXX=''
15323 hardcode_direct_CXX=yes
15324 hardcode_libdir_separator_CXX=':'
15325 link_all_deplibs_CXX=yes
15326
15327 if test "$GXX" = yes; then
15328 case $host_os in aix4.012|aix4.012.*)
15329 # We only want to do this on AIX 4.2 and lower, the check
15330 # below for broken collect2 doesn't work under 4.3+
15331 collect2name=`${CC} -print-prog-name=collect2`
15332 if test -f "$collect2name" && \
15333 strings "$collect2name" | grep resolve_lib_name >/dev/null
15334 then
15335 # We have reworked collect2
15336 hardcode_direct_CXX=yes
15337 else
15338 # We have old collect2
15339 hardcode_direct_CXX=unsupported
15340 # It fails to find uninstalled libraries when the uninstalled
15341 # path is not listed in the libpath. Setting hardcode_minus_L
15342 # to unsupported forces relinking
15343 hardcode_minus_L_CXX=yes
15344 hardcode_libdir_flag_spec_CXX='-L$libdir'
15345 hardcode_libdir_separator_CXX=
15346 fi
15347 esac
15348 shared_flag='-shared'
15349 else
15350 # not using gcc
15351 if test "$host_cpu" = ia64; then
15352 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15353 # chokes on -Wl,-G. The following line is correct:
15354 shared_flag='-G'
15355 else
15356 if test "$aix_use_runtimelinking" = yes; then
15357 shared_flag='${wl}-G'
15358 else
15359 shared_flag='${wl}-bM:SRE'
15360 fi
15361 fi
15362 fi
15363
15364 # It seems that -bexpall does not export symbols beginning with
15365 # underscore (_), so it is better to generate a list of symbols to export.
15366 always_export_symbols_CXX=yes
15367 if test "$aix_use_runtimelinking" = yes; then
15368 # Warning - without using the other runtime loading flags (-brtl),
15369 # -berok will link without error, but may produce a broken library.
15370 allow_undefined_flag_CXX='-berok'
15371 # Determine the default libpath from the value encoded in an empty executable.
15372 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015378
John Criswell47fdd832003-07-14 16:52:07 +000015379int
15380main ()
15381{
15382
15383 ;
15384 return 0;
15385}
15386_ACEOF
15387rm -f conftest.$ac_objext conftest$ac_exeext
15388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015389 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015390 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015391 grep -v '^ *+' conftest.er1 >conftest.err
15392 rm -f conftest.er1
15393 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015396 { ac_try='test -z "$ac_cxx_werror_flag"
15397 || test ! -s conftest.err'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; } &&
15403 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409
15410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15411}'`
15412# Check for a 64-bit object if we didn't find anything.
15413if 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; }
15414}'`; fi
15415else
15416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015417sed 's/^/| /' conftest.$ac_ext >&5
15418
John Criswell47fdd832003-07-14 16:52:07 +000015419fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015420rm -f conftest.err conftest.$ac_objext \
15421 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015422if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15423
15424 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15425
15426 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"
15427 else
15428 if test "$host_cpu" = ia64; then
15429 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15430 allow_undefined_flag_CXX="-z nodefs"
15431 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"
15432 else
15433 # Determine the default libpath from the value encoded in an empty executable.
15434 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015435/* confdefs.h. */
15436_ACEOF
15437cat confdefs.h >>conftest.$ac_ext
15438cat >>conftest.$ac_ext <<_ACEOF
15439/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015440
John Criswell47fdd832003-07-14 16:52:07 +000015441int
15442main ()
15443{
15444
15445 ;
15446 return 0;
15447}
15448_ACEOF
15449rm -f conftest.$ac_objext conftest$ac_exeext
15450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015451 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015458 { ac_try='test -z "$ac_cxx_werror_flag"
15459 || test ! -s conftest.err'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; } &&
15465 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; }; then
15471
15472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15473}'`
15474# Check for a 64-bit object if we didn't find anything.
15475if 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; }
15476}'`; fi
15477else
15478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015479sed 's/^/| /' conftest.$ac_ext >&5
15480
John Criswell47fdd832003-07-14 16:52:07 +000015481fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015482rm -f conftest.err conftest.$ac_objext \
15483 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015484if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15485
15486 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15487 # Warning - without using the other run time loading flags,
15488 # -berok will link without error, but may produce a broken library.
15489 no_undefined_flag_CXX=' ${wl}-bernotok'
15490 allow_undefined_flag_CXX=' ${wl}-berok'
15491 # -bexpall does not export symbols beginning with underscore (_)
15492 always_export_symbols_CXX=yes
15493 # Exported symbols can be pulled into shared objects from archives
15494 whole_archive_flag_spec_CXX=' '
15495 archive_cmds_need_lc_CXX=yes
15496 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015497 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 +000015498 fi
15499 fi
15500 ;;
15501 chorus*)
15502 case $cc_basename in
15503 *)
15504 # FIXME: insert proper C++ library support
15505 ld_shlibs_CXX=no
15506 ;;
15507 esac
15508 ;;
15509
Reid Spencer2706f8c2004-09-19 23:53:36 +000015510
John Criswell47fdd832003-07-14 16:52:07 +000015511 cygwin* | mingw* | pw32*)
15512 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15513 # as there is no search path for DLLs.
15514 hardcode_libdir_flag_spec_CXX='-L$libdir'
15515 allow_undefined_flag_CXX=unsupported
15516 always_export_symbols_CXX=no
15517 enable_shared_with_static_runtimes_CXX=yes
15518
15519 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15520 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'
15521 # If the export-symbols file already is a .def file (1st line
15522 # is EXPORTS), use it as is; otherwise, prepend...
15523 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15524 cp $export_symbols $output_objdir/$soname.def;
15525 else
15526 echo EXPORTS > $output_objdir/$soname.def;
15527 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015528 fi~
15529 $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 +000015530 else
15531 ld_shlibs_CXX=no
15532 fi
15533 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015534 darwin* | rhapsody*)
15535 case "$host_os" in
15536 rhapsody* | darwin1.[012])
15537 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15538 ;;
15539 *) # Darwin 1.3 on
15540 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15541 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15542 else
15543 case ${MACOSX_DEPLOYMENT_TARGET} in
15544 10.[012])
15545 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15546 ;;
15547 10.*)
15548 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15549 ;;
15550 esac
15551 fi
15552 ;;
15553 esac
15554 archive_cmds_need_lc_CXX=no
15555 hardcode_direct_CXX=no
15556 hardcode_automatic_CXX=yes
15557 hardcode_shlibpath_var_CXX=unsupported
15558 whole_archive_flag_spec_CXX=''
15559 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015560
Reid Spencer2706f8c2004-09-19 23:53:36 +000015561 if test "$GXX" = yes ; then
15562 lt_int_apple_cc_single_mod=no
15563 output_verbose_link_cmd='echo'
15564 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15565 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015566 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015567 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015568 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 +000015569 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015570 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 +000015571 fi
15572 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15574 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015575 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 +000015576 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015577 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 +000015578 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015579 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 +000015580 else
15581 case "$cc_basename" in
15582 xlc*)
15583 output_verbose_link_cmd='echo'
15584 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'
15585 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15586 # 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 +000015587 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}'
15588 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 +000015589 ;;
15590 *)
15591 ld_shlibs_CXX=no
15592 ;;
15593 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015594 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015595 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015596
15597 dgux*)
15598 case $cc_basename in
15599 ec++)
15600 # FIXME: insert proper C++ library support
15601 ld_shlibs_CXX=no
15602 ;;
15603 ghcx)
15604 # Green Hills C++ Compiler
15605 # FIXME: insert proper C++ library support
15606 ld_shlibs_CXX=no
15607 ;;
15608 *)
15609 # FIXME: insert proper C++ library support
15610 ld_shlibs_CXX=no
15611 ;;
15612 esac
15613 ;;
15614 freebsd12*)
15615 # C++ shared libraries reported to be fairly broken before switch to ELF
15616 ld_shlibs_CXX=no
15617 ;;
15618 freebsd-elf*)
15619 archive_cmds_need_lc_CXX=no
15620 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015621 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015622 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15623 # conventions
15624 ld_shlibs_CXX=yes
15625 ;;
15626 gnu*)
15627 ;;
15628 hpux9*)
15629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15630 hardcode_libdir_separator_CXX=:
15631 export_dynamic_flag_spec_CXX='${wl}-E'
15632 hardcode_direct_CXX=yes
15633 hardcode_minus_L_CXX=yes # Not in the search PATH,
15634 # but as the default
15635 # location of the library.
15636
15637 case $cc_basename in
15638 CC)
15639 # FIXME: insert proper C++ library support
15640 ld_shlibs_CXX=no
15641 ;;
15642 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015643 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 +000015644 # Commands to make compiler produce verbose output that lists
15645 # what "hidden" libraries, object files and flags are used when
15646 # linking a shared library.
15647 #
15648 # There doesn't appear to be a way to prevent this compiler from
15649 # explicitly linking system object files so we need to strip them
15650 # from the output so that they don't get included in the library
15651 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015652 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 +000015653 ;;
15654 *)
15655 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015656 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 +000015657 else
15658 # FIXME: insert proper C++ library support
15659 ld_shlibs_CXX=no
15660 fi
15661 ;;
15662 esac
15663 ;;
15664 hpux10*|hpux11*)
15665 if test $with_gnu_ld = no; then
15666 case "$host_cpu" in
15667 hppa*64*)
15668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15669 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15670 hardcode_libdir_separator_CXX=:
15671 ;;
15672 ia64*)
15673 hardcode_libdir_flag_spec_CXX='-L$libdir'
15674 ;;
15675 *)
15676 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15677 hardcode_libdir_separator_CXX=:
15678 export_dynamic_flag_spec_CXX='${wl}-E'
15679 ;;
15680 esac
15681 fi
15682 case "$host_cpu" in
15683 hppa*64*)
15684 hardcode_direct_CXX=no
15685 hardcode_shlibpath_var_CXX=no
15686 ;;
15687 ia64*)
15688 hardcode_direct_CXX=no
15689 hardcode_shlibpath_var_CXX=no
15690 hardcode_minus_L_CXX=yes # Not in the search PATH,
15691 # but as the default
15692 # location of the library.
15693 ;;
15694 *)
15695 hardcode_direct_CXX=yes
15696 hardcode_minus_L_CXX=yes # Not in the search PATH,
15697 # but as the default
15698 # location of the library.
15699 ;;
15700 esac
15701
15702 case $cc_basename in
15703 CC)
15704 # FIXME: insert proper C++ library support
15705 ld_shlibs_CXX=no
15706 ;;
15707 aCC)
15708 case "$host_cpu" in
15709 hppa*64*|ia64*)
15710 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15711 ;;
15712 *)
15713 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15714 ;;
15715 esac
15716 # Commands to make compiler produce verbose output that lists
15717 # what "hidden" libraries, object files and flags are used when
15718 # linking a shared library.
15719 #
15720 # There doesn't appear to be a way to prevent this compiler from
15721 # explicitly linking system object files so we need to strip them
15722 # from the output so that they don't get included in the library
15723 # dependencies.
15724 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'
15725 ;;
15726 *)
15727 if test "$GXX" = yes; then
15728 if test $with_gnu_ld = no; then
15729 case "$host_cpu" in
15730 ia64*|hppa*64*)
15731 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15732 ;;
15733 *)
15734 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'
15735 ;;
15736 esac
15737 fi
15738 else
15739 # FIXME: insert proper C++ library support
15740 ld_shlibs_CXX=no
15741 fi
15742 ;;
15743 esac
15744 ;;
15745 irix5* | irix6*)
15746 case $cc_basename in
15747 CC)
15748 # SGI C++
15749 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'
15750
15751 # Archives containing C++ object files must be created using
15752 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15753 # necessary to make sure instantiated templates are included
15754 # in the archive.
15755 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15756 ;;
15757 *)
15758 if test "$GXX" = yes; then
15759 if test "$with_gnu_ld" = no; then
15760 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'
15761 else
15762 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'
15763 fi
15764 fi
15765 link_all_deplibs_CXX=yes
15766 ;;
15767 esac
15768 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15769 hardcode_libdir_separator_CXX=:
15770 ;;
15771 linux*)
15772 case $cc_basename in
15773 KCC)
15774 # Kuck and Associates, Inc. (KAI) C++ Compiler
15775
15776 # KCC will only create a shared library if the output file
15777 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15778 # to its proper name (with version) after linking.
15779 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'
15780 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'
15781 # Commands to make compiler produce verbose output that lists
15782 # what "hidden" libraries, object files and flags are used when
15783 # linking a shared library.
15784 #
15785 # There doesn't appear to be a way to prevent this compiler from
15786 # explicitly linking system object files so we need to strip them
15787 # from the output so that they don't get included in the library
15788 # dependencies.
15789 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'
15790
15791 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15792 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15793
15794 # Archives containing C++ object files must be created using
15795 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15796 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15797 ;;
15798 icpc)
15799 # Intel C++
15800 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015801 # version 8.0 and above of icpc choke on multiply defined symbols
15802 # if we add $predep_objects and $postdep_objects, however 7.1 and
15803 # earlier do not add the objects themselves.
15804 case `$CC -V 2>&1` in
15805 *"Version 7."*)
15806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15807 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'
15808 ;;
15809 *) # Version 8.0 or newer
15810 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15812 ;;
15813 esac
John Criswell47fdd832003-07-14 16:52:07 +000015814 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015815 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15816 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15817 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15818 ;;
15819 cxx)
15820 # Compaq C++
15821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15822 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'
15823
15824 runpath_var=LD_RUN_PATH
15825 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15826 hardcode_libdir_separator_CXX=:
15827
15828 # Commands to make compiler produce verbose output that lists
15829 # what "hidden" libraries, object files and flags are used when
15830 # linking a shared library.
15831 #
15832 # There doesn't appear to be a way to prevent this compiler from
15833 # explicitly linking system object files so we need to strip them
15834 # from the output so that they don't get included in the library
15835 # dependencies.
15836 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'
15837 ;;
15838 esac
15839 ;;
15840 lynxos*)
15841 # FIXME: insert proper C++ library support
15842 ld_shlibs_CXX=no
15843 ;;
15844 m88k*)
15845 # FIXME: insert proper C++ library support
15846 ld_shlibs_CXX=no
15847 ;;
15848 mvs*)
15849 case $cc_basename in
15850 cxx)
15851 # FIXME: insert proper C++ library support
15852 ld_shlibs_CXX=no
15853 ;;
15854 *)
15855 # FIXME: insert proper C++ library support
15856 ld_shlibs_CXX=no
15857 ;;
15858 esac
15859 ;;
15860 netbsd*)
15861 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15862 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15863 wlarc=
15864 hardcode_libdir_flag_spec_CXX='-R$libdir'
15865 hardcode_direct_CXX=yes
15866 hardcode_shlibpath_var_CXX=no
15867 fi
15868 # Workaround some broken pre-1.5 toolchains
15869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15870 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015871 openbsd2*)
15872 # C++ shared libraries are fairly broken
15873 ld_shlibs_CXX=no
15874 ;;
15875 openbsd*)
15876 hardcode_direct_CXX=yes
15877 hardcode_shlibpath_var_CXX=no
15878 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15880 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15881 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15882 export_dynamic_flag_spec_CXX='${wl}-E'
15883 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15884 fi
15885 output_verbose_link_cmd='echo'
15886 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015887 osf3*)
15888 case $cc_basename in
15889 KCC)
15890 # Kuck and Associates, Inc. (KAI) C++ Compiler
15891
15892 # KCC will only create a shared library if the output file
15893 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15894 # to its proper name (with version) after linking.
15895 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'
15896
15897 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15898 hardcode_libdir_separator_CXX=:
15899
15900 # Archives containing C++ object files must be created using
15901 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15902 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15903
15904 ;;
15905 RCC)
15906 # Rational C++ 2.4.1
15907 # FIXME: insert proper C++ library support
15908 ld_shlibs_CXX=no
15909 ;;
15910 cxx)
15911 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15912 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'
15913
15914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15915 hardcode_libdir_separator_CXX=:
15916
15917 # Commands to make compiler produce verbose output that lists
15918 # what "hidden" libraries, object files and flags are used when
15919 # linking a shared library.
15920 #
15921 # There doesn't appear to be a way to prevent this compiler from
15922 # explicitly linking system object files so we need to strip them
15923 # from the output so that they don't get included in the library
15924 # dependencies.
15925 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'
15926 ;;
15927 *)
15928 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15929 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15930 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'
15931
15932 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15933 hardcode_libdir_separator_CXX=:
15934
15935 # Commands to make compiler produce verbose output that lists
15936 # what "hidden" libraries, object files and flags are used when
15937 # linking a shared library.
15938 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15939
15940 else
15941 # FIXME: insert proper C++ library support
15942 ld_shlibs_CXX=no
15943 fi
15944 ;;
15945 esac
15946 ;;
15947 osf4* | osf5*)
15948 case $cc_basename in
15949 KCC)
15950 # Kuck and Associates, Inc. (KAI) C++ Compiler
15951
15952 # KCC will only create a shared library if the output file
15953 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15954 # to its proper name (with version) after linking.
15955 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'
15956
15957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15958 hardcode_libdir_separator_CXX=:
15959
15960 # Archives containing C++ object files must be created using
15961 # the KAI C++ compiler.
15962 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15963 ;;
15964 RCC)
15965 # Rational C++ 2.4.1
15966 # FIXME: insert proper C++ library support
15967 ld_shlibs_CXX=no
15968 ;;
15969 cxx)
15970 allow_undefined_flag_CXX=' -expect_unresolved \*'
15971 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 +000015972 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15973 echo "-hidden">> $lib.exp~
15974 $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~
15975 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015976
15977 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15978 hardcode_libdir_separator_CXX=:
15979
15980 # Commands to make compiler produce verbose output that lists
15981 # what "hidden" libraries, object files and flags are used when
15982 # linking a shared library.
15983 #
15984 # There doesn't appear to be a way to prevent this compiler from
15985 # explicitly linking system object files so we need to strip them
15986 # from the output so that they don't get included in the library
15987 # dependencies.
15988 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'
15989 ;;
15990 *)
15991 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15992 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15993 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'
15994
15995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15996 hardcode_libdir_separator_CXX=:
15997
15998 # Commands to make compiler produce verbose output that lists
15999 # what "hidden" libraries, object files and flags are used when
16000 # linking a shared library.
16001 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16002
16003 else
16004 # FIXME: insert proper C++ library support
16005 ld_shlibs_CXX=no
16006 fi
16007 ;;
16008 esac
16009 ;;
16010 psos*)
16011 # FIXME: insert proper C++ library support
16012 ld_shlibs_CXX=no
16013 ;;
16014 sco*)
16015 archive_cmds_need_lc_CXX=no
16016 case $cc_basename in
16017 CC)
16018 # FIXME: insert proper C++ library support
16019 ld_shlibs_CXX=no
16020 ;;
16021 *)
16022 # FIXME: insert proper C++ library support
16023 ld_shlibs_CXX=no
16024 ;;
16025 esac
16026 ;;
16027 sunos4*)
16028 case $cc_basename in
16029 CC)
16030 # Sun C++ 4.x
16031 # FIXME: insert proper C++ library support
16032 ld_shlibs_CXX=no
16033 ;;
16034 lcc)
16035 # Lucid
16036 # FIXME: insert proper C++ library support
16037 ld_shlibs_CXX=no
16038 ;;
16039 *)
16040 # FIXME: insert proper C++ library support
16041 ld_shlibs_CXX=no
16042 ;;
16043 esac
16044 ;;
16045 solaris*)
16046 case $cc_basename in
16047 CC)
16048 # Sun C++ 4.2, 5.x and Centerline C++
16049 no_undefined_flag_CXX=' -zdefs'
16050 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 +000016051 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16052 $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 +000016053
16054 hardcode_libdir_flag_spec_CXX='-R$libdir'
16055 hardcode_shlibpath_var_CXX=no
16056 case $host_os in
16057 solaris2.0-5 | solaris2.0-5.*) ;;
16058 *)
16059 # The C++ compiler is used as linker so we must use $wl
16060 # flag to pass the commands to the underlying system
16061 # linker.
16062 # Supported since Solaris 2.6 (maybe 2.5.1?)
16063 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16064 ;;
16065 esac
16066 link_all_deplibs_CXX=yes
16067
16068 # Commands to make compiler produce verbose output that lists
16069 # what "hidden" libraries, object files and flags are used when
16070 # linking a shared library.
16071 #
16072 # There doesn't appear to be a way to prevent this compiler from
16073 # explicitly linking system object files so we need to strip them
16074 # from the output so that they don't get included in the library
16075 # dependencies.
16076 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'
16077
16078 # Archives containing C++ object files must be created using
16079 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16080 # necessary to make sure instantiated templates are included
16081 # in the archive.
16082 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16083 ;;
16084 gcx)
16085 # Green Hills C++ Compiler
16086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16087
16088 # The C++ compiler must be used to create the archive.
16089 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16090 ;;
16091 *)
16092 # GNU C++ compiler with Solaris linker
16093 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16094 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16095 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016096 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 +000016097 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16098 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16099
John Criswell47fdd832003-07-14 16:52:07 +000016100 # Commands to make compiler produce verbose output that lists
16101 # what "hidden" libraries, object files and flags are used when
16102 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016103 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016104 else
16105 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16106 # platform.
16107 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 +000016108 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16109 $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 +000016110
16111 # Commands to make compiler produce verbose output that lists
16112 # what "hidden" libraries, object files and flags are used when
16113 # linking a shared library.
16114 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16115 fi
16116
16117 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16118 fi
16119 ;;
16120 esac
16121 ;;
16122 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16123 archive_cmds_need_lc_CXX=no
16124 ;;
16125 tandem*)
16126 case $cc_basename in
16127 NCC)
16128 # NonStop-UX NCC 3.20
16129 # FIXME: insert proper C++ library support
16130 ld_shlibs_CXX=no
16131 ;;
16132 *)
16133 # FIXME: insert proper C++ library support
16134 ld_shlibs_CXX=no
16135 ;;
16136 esac
16137 ;;
16138 vxworks*)
16139 # FIXME: insert proper C++ library support
16140 ld_shlibs_CXX=no
16141 ;;
16142 *)
16143 # FIXME: insert proper C++ library support
16144 ld_shlibs_CXX=no
16145 ;;
16146esac
16147echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16148echo "${ECHO_T}$ld_shlibs_CXX" >&6
16149test "$ld_shlibs_CXX" = no && can_build_shared=no
16150
16151GCC_CXX="$GXX"
16152LD_CXX="$LD"
16153
John Criswell47fdd832003-07-14 16:52:07 +000016154
16155cat > conftest.$ac_ext <<EOF
16156class Foo
16157{
16158public:
16159 Foo (void) { a = 0; }
16160private:
16161 int a;
16162};
16163EOF
16164
16165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; then
16170 # Parse the compiler output and extract the necessary
16171 # objects, libraries and library flags.
16172
16173 # Sentinel used to keep track of whether or not we are before
16174 # the conftest object file.
16175 pre_test_object_deps_done=no
16176
16177 # The `*' in the case matches for architectures that use `case' in
16178 # $output_verbose_cmd can trigger glob expansion during the loop
16179 # eval without this substitution.
16180 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16181
16182 for p in `eval $output_verbose_link_cmd`; do
16183 case $p in
16184
16185 -L* | -R* | -l*)
16186 # Some compilers place space between "-{L,R}" and the path.
16187 # Remove the space.
16188 if test $p = "-L" \
16189 || test $p = "-R"; then
16190 prev=$p
16191 continue
16192 else
16193 prev=
16194 fi
16195
16196 if test "$pre_test_object_deps_done" = no; then
16197 case $p in
16198 -L* | -R*)
16199 # Internal compiler library paths should come after those
16200 # provided the user. The postdeps already come after the
16201 # user supplied libs so there is no need to process them.
16202 if test -z "$compiler_lib_search_path_CXX"; then
16203 compiler_lib_search_path_CXX="${prev}${p}"
16204 else
16205 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16206 fi
16207 ;;
16208 # The "-l" case would never come before the object being
16209 # linked, so don't bother handling this case.
16210 esac
16211 else
16212 if test -z "$postdeps_CXX"; then
16213 postdeps_CXX="${prev}${p}"
16214 else
16215 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16216 fi
16217 fi
16218 ;;
16219
16220 *.$objext)
16221 # This assumes that the test object file only shows up
16222 # once in the compiler output.
16223 if test "$p" = "conftest.$objext"; then
16224 pre_test_object_deps_done=yes
16225 continue
16226 fi
16227
16228 if test "$pre_test_object_deps_done" = no; then
16229 if test -z "$predep_objects_CXX"; then
16230 predep_objects_CXX="$p"
16231 else
16232 predep_objects_CXX="$predep_objects_CXX $p"
16233 fi
16234 else
16235 if test -z "$postdep_objects_CXX"; then
16236 postdep_objects_CXX="$p"
16237 else
16238 postdep_objects_CXX="$postdep_objects_CXX $p"
16239 fi
16240 fi
16241 ;;
16242
16243 *) ;; # Ignore the rest.
16244
16245 esac
16246 done
16247
16248 # Clean up.
16249 rm -f a.out a.exe
16250else
16251 echo "libtool.m4: error: problem compiling CXX test program"
16252fi
16253
16254$rm -f confest.$objext
16255
16256case " $postdeps_CXX " in
16257*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16258esac
16259
16260lt_prog_compiler_wl_CXX=
16261lt_prog_compiler_pic_CXX=
16262lt_prog_compiler_static_CXX=
16263
16264echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16265echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16266
16267 # C++ specific cases for pic, static, wl, etc.
16268 if test "$GXX" = yes; then
16269 lt_prog_compiler_wl_CXX='-Wl,'
16270 lt_prog_compiler_static_CXX='-static'
16271
16272 case $host_os in
16273 aix*)
16274 # All AIX code is PIC.
16275 if test "$host_cpu" = ia64; then
16276 # AIX 5 now supports IA64 processor
16277 lt_prog_compiler_static_CXX='-Bstatic'
16278 fi
16279 ;;
16280 amigaos*)
16281 # FIXME: we need at least 68020 code to build shared libraries, but
16282 # adding the `-m68020' flag to GCC prevents building anything better,
16283 # like `-m68040'.
16284 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16285 ;;
16286 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16287 # PIC is the default for these OSes.
16288 ;;
16289 mingw* | os2* | pw32*)
16290 # This hack is so that the source file can tell whether it is being
16291 # built for inclusion in a dll (and should export symbols for example).
16292 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16293 ;;
16294 darwin* | rhapsody*)
16295 # PIC is the default on this platform
16296 # Common symbols not allowed in MH_DYLIB files
16297 lt_prog_compiler_pic_CXX='-fno-common'
16298 ;;
16299 *djgpp*)
16300 # DJGPP does not support shared libraries at all
16301 lt_prog_compiler_pic_CXX=
16302 ;;
16303 sysv4*MP*)
16304 if test -d /usr/nec; then
16305 lt_prog_compiler_pic_CXX=-Kconform_pic
16306 fi
16307 ;;
16308 hpux*)
16309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16310 # not for PA HP-UX.
16311 case "$host_cpu" in
16312 hppa*64*|ia64*)
16313 ;;
16314 *)
16315 lt_prog_compiler_pic_CXX='-fPIC'
16316 ;;
16317 esac
16318 ;;
16319 *)
16320 lt_prog_compiler_pic_CXX='-fPIC'
16321 ;;
16322 esac
16323 else
16324 case $host_os in
16325 aix4* | aix5*)
16326 # All AIX code is PIC.
16327 if test "$host_cpu" = ia64; then
16328 # AIX 5 now supports IA64 processor
16329 lt_prog_compiler_static_CXX='-Bstatic'
16330 else
16331 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16332 fi
16333 ;;
16334 chorus*)
16335 case $cc_basename in
16336 cxch68)
16337 # Green Hills C++ Compiler
16338 # _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"
16339 ;;
16340 esac
16341 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016342 darwin*)
16343 # PIC is the default on this platform
16344 # Common symbols not allowed in MH_DYLIB files
16345 case "$cc_basename" in
16346 xlc*)
16347 lt_prog_compiler_pic_CXX='-qnocommon'
16348 lt_prog_compiler_wl_CXX='-Wl,'
16349 ;;
16350 esac
16351 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016352 dgux*)
16353 case $cc_basename in
16354 ec++)
16355 lt_prog_compiler_pic_CXX='-KPIC'
16356 ;;
16357 ghcx)
16358 # Green Hills C++ Compiler
16359 lt_prog_compiler_pic_CXX='-pic'
16360 ;;
16361 *)
16362 ;;
16363 esac
16364 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016365 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016366 # FreeBSD uses GNU C++
16367 ;;
16368 hpux9* | hpux10* | hpux11*)
16369 case $cc_basename in
16370 CC)
16371 lt_prog_compiler_wl_CXX='-Wl,'
16372 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16373 if test "$host_cpu" != ia64; then
16374 lt_prog_compiler_pic_CXX='+Z'
16375 fi
16376 ;;
16377 aCC)
16378 lt_prog_compiler_wl_CXX='-Wl,'
16379 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16380 case "$host_cpu" in
16381 hppa*64*|ia64*)
16382 # +Z the default
16383 ;;
16384 *)
16385 lt_prog_compiler_pic_CXX='+Z'
16386 ;;
16387 esac
16388 ;;
16389 *)
16390 ;;
16391 esac
16392 ;;
16393 irix5* | irix6* | nonstopux*)
16394 case $cc_basename in
16395 CC)
16396 lt_prog_compiler_wl_CXX='-Wl,'
16397 lt_prog_compiler_static_CXX='-non_shared'
16398 # CC pic flag -KPIC is the default.
16399 ;;
16400 *)
16401 ;;
16402 esac
16403 ;;
16404 linux*)
16405 case $cc_basename in
16406 KCC)
16407 # KAI C++ Compiler
16408 lt_prog_compiler_wl_CXX='--backend -Wl,'
16409 lt_prog_compiler_pic_CXX='-fPIC'
16410 ;;
16411 icpc)
16412 # Intel C++
16413 lt_prog_compiler_wl_CXX='-Wl,'
16414 lt_prog_compiler_pic_CXX='-KPIC'
16415 lt_prog_compiler_static_CXX='-static'
16416 ;;
16417 cxx)
16418 # Compaq C++
16419 # Make sure the PIC flag is empty. It appears that all Alpha
16420 # Linux and Compaq Tru64 Unix objects are PIC.
16421 lt_prog_compiler_pic_CXX=
16422 lt_prog_compiler_static_CXX='-non_shared'
16423 ;;
16424 *)
16425 ;;
16426 esac
16427 ;;
16428 lynxos*)
16429 ;;
16430 m88k*)
16431 ;;
16432 mvs*)
16433 case $cc_basename in
16434 cxx)
16435 lt_prog_compiler_pic_CXX='-W c,exportall'
16436 ;;
16437 *)
16438 ;;
16439 esac
16440 ;;
16441 netbsd*)
16442 ;;
16443 osf3* | osf4* | osf5*)
16444 case $cc_basename in
16445 KCC)
16446 lt_prog_compiler_wl_CXX='--backend -Wl,'
16447 ;;
16448 RCC)
16449 # Rational C++ 2.4.1
16450 lt_prog_compiler_pic_CXX='-pic'
16451 ;;
16452 cxx)
16453 # Digital/Compaq C++
16454 lt_prog_compiler_wl_CXX='-Wl,'
16455 # Make sure the PIC flag is empty. It appears that all Alpha
16456 # Linux and Compaq Tru64 Unix objects are PIC.
16457 lt_prog_compiler_pic_CXX=
16458 lt_prog_compiler_static_CXX='-non_shared'
16459 ;;
16460 *)
16461 ;;
16462 esac
16463 ;;
16464 psos*)
16465 ;;
16466 sco*)
16467 case $cc_basename in
16468 CC)
16469 lt_prog_compiler_pic_CXX='-fPIC'
16470 ;;
16471 *)
16472 ;;
16473 esac
16474 ;;
16475 solaris*)
16476 case $cc_basename in
16477 CC)
16478 # Sun C++ 4.2, 5.x and Centerline C++
16479 lt_prog_compiler_pic_CXX='-KPIC'
16480 lt_prog_compiler_static_CXX='-Bstatic'
16481 lt_prog_compiler_wl_CXX='-Qoption ld '
16482 ;;
16483 gcx)
16484 # Green Hills C++ Compiler
16485 lt_prog_compiler_pic_CXX='-PIC'
16486 ;;
16487 *)
16488 ;;
16489 esac
16490 ;;
16491 sunos4*)
16492 case $cc_basename in
16493 CC)
16494 # Sun C++ 4.x
16495 lt_prog_compiler_pic_CXX='-pic'
16496 lt_prog_compiler_static_CXX='-Bstatic'
16497 ;;
16498 lcc)
16499 # Lucid
16500 lt_prog_compiler_pic_CXX='-pic'
16501 ;;
16502 *)
16503 ;;
16504 esac
16505 ;;
16506 tandem*)
16507 case $cc_basename in
16508 NCC)
16509 # NonStop-UX NCC 3.20
16510 lt_prog_compiler_pic_CXX='-KPIC'
16511 ;;
16512 *)
16513 ;;
16514 esac
16515 ;;
16516 unixware*)
16517 ;;
16518 vxworks*)
16519 ;;
16520 *)
16521 lt_prog_compiler_can_build_shared_CXX=no
16522 ;;
16523 esac
16524 fi
16525
16526echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16527echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16528
16529#
16530# Check to make sure the PIC flag actually works.
16531#
16532if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016533
16534echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016535echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16536if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538else
16539 lt_prog_compiler_pic_works_CXX=no
16540 ac_outfile=conftest.$ac_objext
16541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16542 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16543 # Insert the option either (1) after the last *FLAGS variable, or
16544 # (2) before a word containing "conftest.", or (3) at the end.
16545 # Note that $ac_compile itself does not contain backslashes and begins
16546 # with a dollar sign (not a hyphen), so the echo should work correctly.
16547 # The option is referenced via a variable to avoid confusing sed.
16548 lt_compile=`echo "$ac_compile" | $SED \
16549 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16551 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000016552 (eval echo "\"\$as_me:16552: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016553 (eval "$lt_compile" 2>conftest.err)
16554 ac_status=$?
16555 cat conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000016556 echo "$as_me:16556: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016557 if (exit $ac_status) && test -s "$ac_outfile"; then
16558 # The compiler can only warn and ignore the option if not recognized
16559 # So say no if there are warnings
16560 if test ! -s conftest.err; then
16561 lt_prog_compiler_pic_works_CXX=yes
16562 fi
16563 fi
16564 $rm conftest*
16565
16566fi
16567echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16568echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16569
16570if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16571 case $lt_prog_compiler_pic_CXX in
16572 "" | " "*) ;;
16573 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16574 esac
16575else
16576 lt_prog_compiler_pic_CXX=
16577 lt_prog_compiler_can_build_shared_CXX=no
16578fi
16579
16580fi
16581case "$host_os" in
16582 # For platforms which do not support PIC, -DPIC is meaningless:
16583 *djgpp*)
16584 lt_prog_compiler_pic_CXX=
16585 ;;
16586 *)
16587 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16588 ;;
16589esac
16590
16591echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16592echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16593if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595else
16596 lt_cv_prog_compiler_c_o_CXX=no
16597 $rm -r conftest 2>/dev/null
16598 mkdir conftest
16599 cd conftest
16600 mkdir out
16601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16602
John Criswell47fdd832003-07-14 16:52:07 +000016603 lt_compiler_flag="-o out/conftest2.$ac_objext"
16604 # Insert the option either (1) after the last *FLAGS variable, or
16605 # (2) before a word containing "conftest.", or (3) at the end.
16606 # Note that $ac_compile itself does not contain backslashes and begins
16607 # with a dollar sign (not a hyphen), so the echo should work correctly.
16608 lt_compile=`echo "$ac_compile" | $SED \
16609 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16611 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000016612 (eval echo "\"\$as_me:16612: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016613 (eval "$lt_compile" 2>out/conftest.err)
16614 ac_status=$?
16615 cat out/conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000016616 echo "$as_me:16616: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16618 then
16619 # The compiler can only warn and ignore the option if not recognized
16620 # So say no if there are warnings
16621 if test ! -s out/conftest.err; then
16622 lt_cv_prog_compiler_c_o_CXX=yes
16623 fi
16624 fi
16625 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626 $rm conftest*
16627 # SGI C++ compiler will create directory out/ii_files/ for
16628 # template instantiation
16629 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16630 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016631 cd ..
16632 rmdir conftest
16633 $rm conftest*
16634
16635fi
16636echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16637echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16638
16639
16640hard_links="nottested"
16641if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16642 # do not overwrite the value of need_locks provided by the user
16643 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16644echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16645 hard_links=yes
16646 $rm conftest*
16647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16648 touch conftest.a
16649 ln conftest.a conftest.b 2>&5 || hard_links=no
16650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16651 echo "$as_me:$LINENO: result: $hard_links" >&5
16652echo "${ECHO_T}$hard_links" >&6
16653 if test "$hard_links" = no; then
16654 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16655echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16656 need_locks=warn
16657 fi
16658else
16659 need_locks=no
16660fi
16661
16662echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16663echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16664
16665 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16666 case $host_os in
16667 aix4* | aix5*)
16668 # If we're using GNU nm, then we don't want the "-C" option.
16669 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16670 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16671 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'
16672 else
16673 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'
16674 fi
16675 ;;
16676 pw32*)
16677 export_symbols_cmds_CXX="$ltdll_cmds"
16678 ;;
16679 cygwin* | mingw*)
16680 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16681 ;;
16682 *)
16683 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16684 ;;
16685 esac
16686
16687echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16688echo "${ECHO_T}$ld_shlibs_CXX" >&6
16689test "$ld_shlibs_CXX" = no && can_build_shared=no
16690
16691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16692if test "$GCC" = yes; then
16693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16694fi
16695
16696#
16697# Do we need to explicitly link libc?
16698#
16699case "x$archive_cmds_need_lc_CXX" in
16700x|xyes)
16701 # Assume -lc should be added
16702 archive_cmds_need_lc_CXX=yes
16703
16704 if test "$enable_shared" = yes && test "$GCC" = yes; then
16705 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016706 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016707 # FIXME: we may have to deal with multi-command sequences.
16708 ;;
16709 '$CC '*)
16710 # Test whether the compiler implicitly links with -lc since on some
16711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16712 # to ld, don't add -lc before -lgcc.
16713 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16714echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16715 $rm conftest*
16716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16717
16718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719 (eval $ac_compile) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } 2>conftest.err; then
16723 soname=conftest
16724 lib=conftest
16725 libobjs=conftest.$ac_objext
16726 deplibs=
16727 wl=$lt_prog_compiler_wl_CXX
16728 compiler_flags=-v
16729 linker_flags=-v
16730 verstring=
16731 output_objdir=.
16732 libname=conftest
16733 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16734 allow_undefined_flag_CXX=
16735 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16736 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }
16740 then
16741 archive_cmds_need_lc_CXX=no
16742 else
16743 archive_cmds_need_lc_CXX=yes
16744 fi
16745 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16746 else
16747 cat conftest.err 1>&5
16748 fi
16749 $rm conftest*
16750 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16751echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16752 ;;
16753 esac
16754 fi
16755 ;;
16756esac
16757
John Criswell47fdd832003-07-14 16:52:07 +000016758echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16759echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16760library_names_spec=
16761libname_spec='lib$name'
16762soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016763shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016764postinstall_cmds=
16765postuninstall_cmds=
16766finish_cmds=
16767finish_eval=
16768shlibpath_var=
16769shlibpath_overrides_runpath=unknown
16770version_type=none
16771dynamic_linker="$host_os ld.so"
16772sys_lib_dlsearch_path_spec="/lib /usr/lib"
16773if test "$GCC" = yes; then
16774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16775 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16776 # if the path contains ";" then we assume it to be the separator
16777 # otherwise default to the standard path separator (i.e. ":") - it is
16778 # assumed that no part of a normal pathname contains ";" but that should
16779 # okay in the real world where ";" in dirpaths is itself problematic.
16780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16781 else
16782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16783 fi
16784else
16785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16786fi
16787need_lib_prefix=unknown
16788hardcode_into_libs=no
16789
16790# when you set need_version to no, make sure it does not cause -set_version
16791# flags to be left without arguments
16792need_version=unknown
16793
16794case $host_os in
16795aix3*)
16796 version_type=linux
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16798 shlibpath_var=LIBPATH
16799
16800 # AIX 3 has no versioning support, so we append a major version to the name.
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 ;;
16803
16804aix4* | aix5*)
16805 version_type=linux
16806 need_lib_prefix=no
16807 need_version=no
16808 hardcode_into_libs=yes
16809 if test "$host_cpu" = ia64; then
16810 # AIX 5 supports IA64
16811 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 else
16814 # With GCC up to 2.95.x, collect2 would create an import file
16815 # for dependence libraries. The import file would start with
16816 # the line `#! .'. This would cause the generated library to
16817 # depend on `.', always an invalid library. This was fixed in
16818 # development snapshots of GCC prior to 3.0.
16819 case $host_os in
16820 aix4 | aix4.[01] | aix4.[01].*)
16821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16822 echo ' yes '
16823 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16824 :
16825 else
16826 can_build_shared=no
16827 fi
16828 ;;
16829 esac
16830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16831 # soname into executable. Probably we can add versioning support to
16832 # collect2, so additional links can be useful in future.
16833 if test "$aix_use_runtimelinking" = yes; then
16834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16835 # instead of lib<name>.a to let people know that these are not
16836 # typical AIX shared libraries.
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 else
16839 # We preserve .a as extension for shared libraries through AIX4.2
16840 # and later when we are not doing run time linking.
16841 library_names_spec='${libname}${release}.a $libname.a'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 fi
16844 shlibpath_var=LIBPATH
16845 fi
16846 ;;
16847
16848amigaos*)
16849 library_names_spec='$libname.ixlibrary $libname.a'
16850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016851 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 +000016852 ;;
16853
16854beos*)
16855 library_names_spec='${libname}${shared_ext}'
16856 dynamic_linker="$host_os ld.so"
16857 shlibpath_var=LIBRARY_PATH
16858 ;;
16859
Reid Spencer2706f8c2004-09-19 23:53:36 +000016860bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016861 version_type=linux
16862 need_version=no
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16868 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16869 # the default ld.so.conf also contains /usr/contrib/lib and
16870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16871 # libtool to hard-code these into programs
16872 ;;
16873
16874cygwin* | mingw* | pw32*)
16875 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016876 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016877 need_version=no
16878 need_lib_prefix=no
16879
16880 case $GCC,$host_os in
16881 yes,cygwin* | yes,mingw* | yes,pw32*)
16882 library_names_spec='$libname.dll.a'
16883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016884 postinstall_cmds='base_file=`basename \${file}`~
16885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16886 dldir=$destdir/`dirname \$dlpath`~
16887 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016888 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16890 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016891 $rm \$dlpath'
16892 shlibpath_overrides_runpath=yes
16893
16894 case $host_os in
16895 cygwin*)
16896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16897 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 +000016898 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016899 ;;
16900 mingw*)
16901 # MinGW DLLs use traditional 'lib' prefix
16902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16904 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16905 # It is most probably a Windows format PATH printed by
16906 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16907 # path with ; separators, and with drive letters. We can handle the
16908 # drive letters (cygwin fileutils understands them), so leave them,
16909 # especially as we might pass files found there to a mingw objdump,
16910 # which wouldn't understand a cygwinified path. Ahh.
16911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16912 else
16913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16914 fi
16915 ;;
16916 pw32*)
16917 # pw32 DLLs use 'pw' prefix rather than 'lib'
16918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16919 ;;
16920 esac
16921 ;;
16922
16923 *)
16924 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16925 ;;
16926 esac
16927 dynamic_linker='Win32 ld.exe'
16928 # FIXME: first we should search . and the directory the executable is in
16929 shlibpath_var=PATH
16930 ;;
16931
16932darwin* | rhapsody*)
16933 dynamic_linker="$host_os dyld"
16934 version_type=darwin
16935 need_lib_prefix=no
16936 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016937 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016938 soname_spec='${libname}${release}${major}$shared_ext'
16939 shlibpath_overrides_runpath=yes
16940 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016941 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016942 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016943 if test "$GCC" = yes; then
16944 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"`
16945 else
16946 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016947 fi
16948 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16949 ;;
16950
16951dgux*)
16952 version_type=linux
16953 need_lib_prefix=no
16954 need_version=no
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 shlibpath_var=LD_LIBRARY_PATH
16958 ;;
16959
16960freebsd1*)
16961 dynamic_linker=no
16962 ;;
16963
Reid Spencer2706f8c2004-09-19 23:53:36 +000016964kfreebsd*-gnu)
16965 version_type=linux
16966 need_lib_prefix=no
16967 need_version=no
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 shlibpath_overrides_runpath=no
16972 hardcode_into_libs=yes
16973 dynamic_linker='GNU ld.so'
16974 ;;
16975
John Criswell47fdd832003-07-14 16:52:07 +000016976freebsd*)
16977 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16978 version_type=freebsd-$objformat
16979 case $version_type in
16980 freebsd-elf*)
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16982 need_version=no
16983 need_lib_prefix=no
16984 ;;
16985 freebsd-*)
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16987 need_version=yes
16988 ;;
16989 esac
16990 shlibpath_var=LD_LIBRARY_PATH
16991 case $host_os in
16992 freebsd2*)
16993 shlibpath_overrides_runpath=yes
16994 ;;
16995 freebsd3.01* | freebsdelf3.01*)
16996 shlibpath_overrides_runpath=yes
16997 hardcode_into_libs=yes
16998 ;;
16999 *) # from 3.2 on
17000 shlibpath_overrides_runpath=no
17001 hardcode_into_libs=yes
17002 ;;
17003 esac
17004 ;;
17005
17006gnu*)
17007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 hardcode_into_libs=yes
17014 ;;
17015
17016hpux9* | hpux10* | hpux11*)
17017 # Give a soname corresponding to the major version so that dld.sl refuses to
17018 # link against other versions.
17019 version_type=sunos
17020 need_lib_prefix=no
17021 need_version=no
17022 case "$host_cpu" in
17023 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017024 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017025 hardcode_into_libs=yes
17026 dynamic_linker="$host_os dld.so"
17027 shlibpath_var=LD_LIBRARY_PATH
17028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec='${libname}${release}${shared_ext}$major'
17031 if test "X$HPUX_IA64_MODE" = X32; then
17032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17033 else
17034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17035 fi
17036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17037 ;;
17038 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017039 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017040 hardcode_into_libs=yes
17041 dynamic_linker="$host_os dld.sl"
17042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17045 soname_spec='${libname}${release}${shared_ext}$major'
17046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17048 ;;
17049 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017050 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017051 dynamic_linker="$host_os dld.sl"
17052 shlibpath_var=SHLIB_PATH
17053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 ;;
17057 esac
17058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17059 postinstall_cmds='chmod 555 $lib'
17060 ;;
17061
17062irix5* | irix6* | nonstopux*)
17063 case $host_os in
17064 nonstopux*) version_type=nonstopux ;;
17065 *)
17066 if test "$lt_cv_prog_gnu_ld" = yes; then
17067 version_type=linux
17068 else
17069 version_type=irix
17070 fi ;;
17071 esac
17072 need_lib_prefix=no
17073 need_version=no
17074 soname_spec='${libname}${release}${shared_ext}$major'
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17076 case $host_os in
17077 irix5* | nonstopux*)
17078 libsuff= shlibsuff=
17079 ;;
17080 *)
17081 case $LD in # libtool.m4 will add one of these switches to LD
17082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17083 libsuff= shlibsuff= libmagic=32-bit;;
17084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17085 libsuff=32 shlibsuff=N32 libmagic=N32;;
17086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17087 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17088 *) libsuff= shlibsuff= libmagic=never-match;;
17089 esac
17090 ;;
17091 esac
17092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17093 shlibpath_overrides_runpath=no
17094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17096 hardcode_into_libs=yes
17097 ;;
17098
17099# No shared lib support for Linux oldld, aout, or coff.
17100linux*oldld* | linux*aout* | linux*coff*)
17101 dynamic_linker=no
17102 ;;
17103
17104# This must be Linux ELF.
17105linux*)
17106 version_type=linux
17107 need_lib_prefix=no
17108 need_version=no
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 shlibpath_overrides_runpath=no
17114 # This implies no fast_install, which is unacceptable.
17115 # Some rework will be needed to allow for fast_install
17116 # before this can be enabled.
17117 hardcode_into_libs=yes
17118
Reid Spencer2706f8c2004-09-19 23:53:36 +000017119 # Append ld.so.conf contents to the search path
17120 if test -f /etc/ld.so.conf; then
17121 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17123 fi
17124
John Criswell47fdd832003-07-14 16:52:07 +000017125 # We used to test for /lib/ld.so.1 and disable shared libraries on
17126 # powerpc, because MkLinux only supported shared libraries with the
17127 # GNU dynamic linker. Since this was broken with cross compilers,
17128 # most powerpc-linux boxes support dynamic linking these days and
17129 # people can always --disable-shared, the test was removed, and we
17130 # assume the GNU/Linux dynamic linker is in use.
17131 dynamic_linker='GNU/Linux ld.so'
17132 ;;
17133
Reid Spencer2706f8c2004-09-19 23:53:36 +000017134knetbsd*-gnu)
17135 version_type=linux
17136 need_lib_prefix=no
17137 need_version=no
17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17139 soname_spec='${libname}${release}${shared_ext}$major'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath=no
17142 hardcode_into_libs=yes
17143 dynamic_linker='GNU ld.so'
17144 ;;
17145
John Criswell47fdd832003-07-14 16:52:07 +000017146netbsd*)
17147 version_type=sunos
17148 need_lib_prefix=no
17149 need_version=no
17150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17153 dynamic_linker='NetBSD (a.out) ld.so'
17154 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017156 soname_spec='${libname}${release}${shared_ext}$major'
17157 dynamic_linker='NetBSD ld.elf_so'
17158 fi
17159 shlibpath_var=LD_LIBRARY_PATH
17160 shlibpath_overrides_runpath=yes
17161 hardcode_into_libs=yes
17162 ;;
17163
17164newsos6)
17165 version_type=linux
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes
17169 ;;
17170
Reid Spencer2706f8c2004-09-19 23:53:36 +000017171nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017172 version_type=linux
17173 need_lib_prefix=no
17174 need_version=no
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 shlibpath_var=LD_LIBRARY_PATH
17178 shlibpath_overrides_runpath=yes
17179 ;;
17180
17181openbsd*)
17182 version_type=sunos
17183 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017184 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17189 case $host_os in
17190 openbsd2.[89] | openbsd2.[89].*)
17191 shlibpath_overrides_runpath=no
17192 ;;
17193 *)
17194 shlibpath_overrides_runpath=yes
17195 ;;
17196 esac
17197 else
17198 shlibpath_overrides_runpath=yes
17199 fi
17200 ;;
17201
17202os2*)
17203 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017204 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017205 need_lib_prefix=no
17206 library_names_spec='$libname${shared_ext} $libname.a'
17207 dynamic_linker='OS/2 ld.exe'
17208 shlibpath_var=LIBPATH
17209 ;;
17210
17211osf3* | osf4* | osf5*)
17212 version_type=osf
17213 need_lib_prefix=no
17214 need_version=no
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 shlibpath_var=LD_LIBRARY_PATH
17218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17220 ;;
17221
17222sco3.2v5*)
17223 version_type=osf
17224 soname_spec='${libname}${release}${shared_ext}$major'
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 ;;
17228
17229solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
17236 shlibpath_overrides_runpath=yes
17237 hardcode_into_libs=yes
17238 # ldd complains unless libraries are executable
17239 postinstall_cmds='chmod +x $lib'
17240 ;;
17241
17242sunos4*)
17243 version_type=sunos
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17248 if test "$with_gnu_ld" = yes; then
17249 need_lib_prefix=no
17250 fi
17251 need_version=yes
17252 ;;
17253
17254sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17255 version_type=linux
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 case $host_vendor in
17260 sni)
17261 shlibpath_overrides_runpath=no
17262 need_lib_prefix=no
17263 export_dynamic_flag_spec='${wl}-Blargedynsym'
17264 runpath_var=LD_RUN_PATH
17265 ;;
17266 siemens)
17267 need_lib_prefix=no
17268 ;;
17269 motorola)
17270 need_lib_prefix=no
17271 need_version=no
17272 shlibpath_overrides_runpath=no
17273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17274 ;;
17275 esac
17276 ;;
17277
17278sysv4*MP*)
17279 if test -d /usr/nec ;then
17280 version_type=linux
17281 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17282 soname_spec='$libname${shared_ext}.$major'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 fi
17285 ;;
17286
17287uts4*)
17288 version_type=linux
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 ;;
17293
17294*)
17295 dynamic_linker=no
17296 ;;
17297esac
17298echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17299echo "${ECHO_T}$dynamic_linker" >&6
17300test "$dynamic_linker" = no && can_build_shared=no
17301
Reid Spencer2706f8c2004-09-19 23:53:36 +000017302echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17303echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17304hardcode_action_CXX=
17305if test -n "$hardcode_libdir_flag_spec_CXX" || \
17306 test -n "$runpath_var_CXX" || \
17307 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17308
17309 # We can hardcode non-existant directories.
17310 if test "$hardcode_direct_CXX" != no &&
17311 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17312 # have to relink, otherwise we might link with an installed library
17313 # when we should be linking with a yet-to-be-installed one
17314 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17315 test "$hardcode_minus_L_CXX" != no; then
17316 # Linking always hardcodes the temporary library directory.
17317 hardcode_action_CXX=relink
17318 else
17319 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17320 hardcode_action_CXX=immediate
17321 fi
17322else
17323 # We cannot hardcode anything, or else we can only hardcode existing
17324 # directories.
17325 hardcode_action_CXX=unsupported
17326fi
17327echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17328echo "${ECHO_T}$hardcode_action_CXX" >&6
17329
17330if test "$hardcode_action_CXX" = relink; then
17331 # Fast installation is not supported
17332 enable_fast_install=no
17333elif test "$shlibpath_overrides_runpath" = yes ||
17334 test "$enable_shared" = no; then
17335 # Fast installation is not necessary
17336 enable_fast_install=needless
17337fi
17338
17339striplib=
17340old_striplib=
17341echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17342echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17343if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17344 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17345 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17346 echo "$as_me:$LINENO: result: yes" >&5
17347echo "${ECHO_T}yes" >&6
17348else
17349# FIXME - insert some real tests, host_os isn't really good enough
17350 case $host_os in
17351 darwin*)
17352 if test -n "$STRIP" ; then
17353 striplib="$STRIP -x"
17354 echo "$as_me:$LINENO: result: yes" >&5
17355echo "${ECHO_T}yes" >&6
17356 else
17357 echo "$as_me:$LINENO: result: no" >&5
17358echo "${ECHO_T}no" >&6
17359fi
17360 ;;
17361 *)
17362 echo "$as_me:$LINENO: result: no" >&5
17363echo "${ECHO_T}no" >&6
17364 ;;
17365 esac
17366fi
17367
John Criswell47fdd832003-07-14 16:52:07 +000017368if test "x$enable_dlopen" != xyes; then
17369 enable_dlopen=unknown
17370 enable_dlopen_self=unknown
17371 enable_dlopen_self_static=unknown
17372else
17373 lt_cv_dlopen=no
17374 lt_cv_dlopen_libs=
17375
17376 case $host_os in
17377 beos*)
17378 lt_cv_dlopen="load_add_on"
17379 lt_cv_dlopen_libs=
17380 lt_cv_dlopen_self=yes
17381 ;;
17382
17383 mingw* | pw32*)
17384 lt_cv_dlopen="LoadLibrary"
17385 lt_cv_dlopen_libs=
17386 ;;
17387
17388 cygwin*)
17389 lt_cv_dlopen="dlopen"
17390 lt_cv_dlopen_libs=
17391 ;;
17392
17393 darwin*)
17394 # if libdl is installed we need to link against it
17395 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17396echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17397if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399else
17400 ac_check_lib_save_LIBS=$LIBS
17401LIBS="-ldl $LIBS"
17402cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017403/* confdefs.h. */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017408
17409/* Override any gcc2 internal prototype to avoid an error. */
17410#ifdef __cplusplus
17411extern "C"
17412#endif
17413/* We use char because int might match the return type of a gcc2
17414 builtin and then its argument prototype would still apply. */
17415char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017416int
17417main ()
17418{
17419dlopen ();
17420 ;
17421 return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext conftest$ac_exeext
17425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017426 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433 { ac_try='test -z "$ac_cxx_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_lib_dl_dlopen=yes
17447else
17448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017449sed 's/^/| /' conftest.$ac_ext >&5
17450
John Criswell47fdd832003-07-14 16:52:07 +000017451ac_cv_lib_dl_dlopen=no
17452fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017453rm -f conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017455LIBS=$ac_check_lib_save_LIBS
17456fi
17457echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17458echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17459if test $ac_cv_lib_dl_dlopen = yes; then
17460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17461else
17462
17463 lt_cv_dlopen="dyld"
17464 lt_cv_dlopen_libs=
17465 lt_cv_dlopen_self=yes
17466
17467fi
17468
17469 ;;
17470
17471 *)
17472 echo "$as_me:$LINENO: checking for shl_load" >&5
17473echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17474if test "${ac_cv_func_shl_load+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17476else
17477 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017483/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17485#define shl_load innocuous_shl_load
17486
John Criswell47fdd832003-07-14 16:52:07 +000017487/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017488 which can conflict with char shl_load (); below.
17489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017491
John Criswell0c38eaf2003-09-10 15:17:25 +000017492#ifdef __STDC__
17493# include <limits.h>
17494#else
17495# include <assert.h>
17496#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017497
17498#undef shl_load
17499
John Criswell47fdd832003-07-14 16:52:07 +000017500/* Override any gcc2 internal prototype to avoid an error. */
17501#ifdef __cplusplus
17502extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017503{
John Criswell47fdd832003-07-14 16:52:07 +000017504#endif
17505/* We use char because int might match the return type of a gcc2
17506 builtin and then its argument prototype would still apply. */
17507char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017508/* The GNU C library defines this for functions which it implements
17509 to always fail with ENOSYS. Some functions are actually named
17510 something starting with __ and the normal name is an alias. */
17511#if defined (__stub_shl_load) || defined (__stub___shl_load)
17512choke me
17513#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017514char (*f) () = shl_load;
17515#endif
17516#ifdef __cplusplus
17517}
John Criswell47fdd832003-07-14 16:52:07 +000017518#endif
17519
John Criswell0c38eaf2003-09-10 15:17:25 +000017520int
17521main ()
17522{
17523return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017524 ;
17525 return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext conftest$ac_exeext
17529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017531 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017537 { ac_try='test -z "$ac_cxx_werror_flag"
17538 || test ! -s conftest.err'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; } &&
17544 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 ac_cv_func_shl_load=yes
17551else
17552 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017553sed 's/^/| /' conftest.$ac_ext >&5
17554
John Criswell47fdd832003-07-14 16:52:07 +000017555ac_cv_func_shl_load=no
17556fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017557rm -f conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017559fi
17560echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17561echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17562if test $ac_cv_func_shl_load = yes; then
17563 lt_cv_dlopen="shl_load"
17564else
17565 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17566echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17567if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17569else
17570 ac_check_lib_save_LIBS=$LIBS
17571LIBS="-ldld $LIBS"
17572cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017578
17579/* Override any gcc2 internal prototype to avoid an error. */
17580#ifdef __cplusplus
17581extern "C"
17582#endif
17583/* We use char because int might match the return type of a gcc2
17584 builtin and then its argument prototype would still apply. */
17585char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017586int
17587main ()
17588{
17589shl_load ();
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594rm -f conftest.$ac_objext conftest$ac_exeext
17595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017596 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017597 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017603 { ac_try='test -z "$ac_cxx_werror_flag"
17604 || test ! -s conftest.err'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_cv_lib_dld_shl_load=yes
17617else
17618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017619sed 's/^/| /' conftest.$ac_ext >&5
17620
John Criswell47fdd832003-07-14 16:52:07 +000017621ac_cv_lib_dld_shl_load=no
17622fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017623rm -f conftest.err conftest.$ac_objext \
17624 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017625LIBS=$ac_check_lib_save_LIBS
17626fi
17627echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17628echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17629if test $ac_cv_lib_dld_shl_load = yes; then
17630 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17631else
17632 echo "$as_me:$LINENO: checking for dlopen" >&5
17633echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17634if test "${ac_cv_func_dlopen+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017643/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17645#define dlopen innocuous_dlopen
17646
John Criswell47fdd832003-07-14 16:52:07 +000017647/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017648 which can conflict with char dlopen (); below.
17649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17650 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017651
John Criswell0c38eaf2003-09-10 15:17:25 +000017652#ifdef __STDC__
17653# include <limits.h>
17654#else
17655# include <assert.h>
17656#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017657
17658#undef dlopen
17659
John Criswell47fdd832003-07-14 16:52:07 +000017660/* Override any gcc2 internal prototype to avoid an error. */
17661#ifdef __cplusplus
17662extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017663{
John Criswell47fdd832003-07-14 16:52:07 +000017664#endif
17665/* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
17667char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017668/* The GNU C library defines this for functions which it implements
17669 to always fail with ENOSYS. Some functions are actually named
17670 something starting with __ and the normal name is an alias. */
17671#if defined (__stub_dlopen) || defined (__stub___dlopen)
17672choke me
17673#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017674char (*f) () = dlopen;
17675#endif
17676#ifdef __cplusplus
17677}
John Criswell47fdd832003-07-14 16:52:07 +000017678#endif
17679
John Criswell0c38eaf2003-09-10 15:17:25 +000017680int
17681main ()
17682{
17683return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017684 ;
17685 return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext conftest$ac_exeext
17689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017690 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017697 { ac_try='test -z "$ac_cxx_werror_flag"
17698 || test ! -s conftest.err'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710 ac_cv_func_dlopen=yes
17711else
17712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017713sed 's/^/| /' conftest.$ac_ext >&5
17714
John Criswell47fdd832003-07-14 16:52:07 +000017715ac_cv_func_dlopen=no
17716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017717rm -f conftest.err conftest.$ac_objext \
17718 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017719fi
17720echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17721echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17722if test $ac_cv_func_dlopen = yes; then
17723 lt_cv_dlopen="dlopen"
17724else
17725 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17726echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17727if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729else
17730 ac_check_lib_save_LIBS=$LIBS
17731LIBS="-ldl $LIBS"
17732cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017733/* confdefs.h. */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017738
17739/* Override any gcc2 internal prototype to avoid an error. */
17740#ifdef __cplusplus
17741extern "C"
17742#endif
17743/* We use char because int might match the return type of a gcc2
17744 builtin and then its argument prototype would still apply. */
17745char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017746int
17747main ()
17748{
17749dlopen ();
17750 ;
17751 return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext conftest$ac_exeext
17755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017756 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017757 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763 { ac_try='test -z "$ac_cxx_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_lib_dl_dlopen=yes
17777else
17778 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017779sed 's/^/| /' conftest.$ac_ext >&5
17780
John Criswell47fdd832003-07-14 16:52:07 +000017781ac_cv_lib_dl_dlopen=no
17782fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017783rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017785LIBS=$ac_check_lib_save_LIBS
17786fi
17787echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17788echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17789if test $ac_cv_lib_dl_dlopen = yes; then
17790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17791else
17792 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17793echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17794if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17796else
17797 ac_check_lib_save_LIBS=$LIBS
17798LIBS="-lsvld $LIBS"
17799cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017800/* confdefs.h. */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017805
17806/* Override any gcc2 internal prototype to avoid an error. */
17807#ifdef __cplusplus
17808extern "C"
17809#endif
17810/* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17812char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017813int
17814main ()
17815{
17816dlopen ();
17817 ;
17818 return 0;
17819}
17820_ACEOF
17821rm -f conftest.$ac_objext conftest$ac_exeext
17822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017823 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017824 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017830 { ac_try='test -z "$ac_cxx_werror_flag"
17831 || test ! -s conftest.err'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_cv_lib_svld_dlopen=yes
17844else
17845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017846sed 's/^/| /' conftest.$ac_ext >&5
17847
John Criswell47fdd832003-07-14 16:52:07 +000017848ac_cv_lib_svld_dlopen=no
17849fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017850rm -f conftest.err conftest.$ac_objext \
17851 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017852LIBS=$ac_check_lib_save_LIBS
17853fi
17854echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17855echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17856if test $ac_cv_lib_svld_dlopen = yes; then
17857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17858else
17859 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17860echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17861if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863else
17864 ac_check_lib_save_LIBS=$LIBS
17865LIBS="-ldld $LIBS"
17866cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017872
17873/* Override any gcc2 internal prototype to avoid an error. */
17874#ifdef __cplusplus
17875extern "C"
17876#endif
17877/* We use char because int might match the return type of a gcc2
17878 builtin and then its argument prototype would still apply. */
17879char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017880int
17881main ()
17882{
17883dld_link ();
17884 ;
17885 return 0;
17886}
17887_ACEOF
17888rm -f conftest.$ac_objext conftest$ac_exeext
17889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017890 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017891 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -f conftest.er1
17894 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017897 { ac_try='test -z "$ac_cxx_werror_flag"
17898 || test ! -s conftest.err'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; } &&
17904 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_lib_dld_dld_link=yes
17911else
17912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017913sed 's/^/| /' conftest.$ac_ext >&5
17914
John Criswell47fdd832003-07-14 16:52:07 +000017915ac_cv_lib_dld_dld_link=no
17916fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017917rm -f conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017919LIBS=$ac_check_lib_save_LIBS
17920fi
17921echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17922echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17923if test $ac_cv_lib_dld_dld_link = yes; then
17924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17925fi
17926
17927
17928fi
17929
17930
17931fi
17932
17933
17934fi
17935
17936
17937fi
17938
17939
17940fi
17941
17942 ;;
17943 esac
17944
17945 if test "x$lt_cv_dlopen" != xno; then
17946 enable_dlopen=yes
17947 else
17948 enable_dlopen=no
17949 fi
17950
17951 case $lt_cv_dlopen in
17952 dlopen)
17953 save_CPPFLAGS="$CPPFLAGS"
17954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17955
17956 save_LDFLAGS="$LDFLAGS"
17957 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17958
17959 save_LIBS="$LIBS"
17960 LIBS="$lt_cv_dlopen_libs $LIBS"
17961
17962 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17963echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17964if test "${lt_cv_dlopen_self+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966else
17967 if test "$cross_compiling" = yes; then :
17968 lt_cv_dlopen_self=cross
17969else
17970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17971 lt_status=$lt_dlunknown
17972 cat > conftest.$ac_ext <<EOF
Reid Spencer675f0922005-04-22 17:06:18 +000017973#line 17973 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017974#include "confdefs.h"
17975
17976#if HAVE_DLFCN_H
17977#include <dlfcn.h>
17978#endif
17979
17980#include <stdio.h>
17981
17982#ifdef RTLD_GLOBAL
17983# define LT_DLGLOBAL RTLD_GLOBAL
17984#else
17985# ifdef DL_GLOBAL
17986# define LT_DLGLOBAL DL_GLOBAL
17987# else
17988# define LT_DLGLOBAL 0
17989# endif
17990#endif
17991
17992/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17993 find out it does not work in some platform. */
17994#ifndef LT_DLLAZY_OR_NOW
17995# ifdef RTLD_LAZY
17996# define LT_DLLAZY_OR_NOW RTLD_LAZY
17997# else
17998# ifdef DL_LAZY
17999# define LT_DLLAZY_OR_NOW DL_LAZY
18000# else
18001# ifdef RTLD_NOW
18002# define LT_DLLAZY_OR_NOW RTLD_NOW
18003# else
18004# ifdef DL_NOW
18005# define LT_DLLAZY_OR_NOW DL_NOW
18006# else
18007# define LT_DLLAZY_OR_NOW 0
18008# endif
18009# endif
18010# endif
18011# endif
18012#endif
18013
18014#ifdef __cplusplus
18015extern "C" void exit (int);
18016#endif
18017
18018void fnord() { int i=42;}
18019int main ()
18020{
18021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18022 int status = $lt_dlunknown;
18023
18024 if (self)
18025 {
18026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18027 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18028 /* dlclose (self); */
18029 }
18030
18031 exit (status);
18032}
18033EOF
18034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18035 (eval $ac_link) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18039 (./conftest; exit; ) 2>/dev/null
18040 lt_status=$?
18041 case x$lt_status in
18042 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18043 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18044 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18045 esac
18046 else :
18047 # compilation failed
18048 lt_cv_dlopen_self=no
18049 fi
18050fi
18051rm -fr conftest*
18052
18053
18054fi
18055echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18056echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18057
18058 if test "x$lt_cv_dlopen_self" = xyes; then
18059 LDFLAGS="$LDFLAGS $link_static_flag"
18060 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18061echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18062if test "${lt_cv_dlopen_self_static+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064else
18065 if test "$cross_compiling" = yes; then :
18066 lt_cv_dlopen_self_static=cross
18067else
18068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18069 lt_status=$lt_dlunknown
18070 cat > conftest.$ac_ext <<EOF
Reid Spencer675f0922005-04-22 17:06:18 +000018071#line 18071 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018072#include "confdefs.h"
18073
18074#if HAVE_DLFCN_H
18075#include <dlfcn.h>
18076#endif
18077
18078#include <stdio.h>
18079
18080#ifdef RTLD_GLOBAL
18081# define LT_DLGLOBAL RTLD_GLOBAL
18082#else
18083# ifdef DL_GLOBAL
18084# define LT_DLGLOBAL DL_GLOBAL
18085# else
18086# define LT_DLGLOBAL 0
18087# endif
18088#endif
18089
18090/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18091 find out it does not work in some platform. */
18092#ifndef LT_DLLAZY_OR_NOW
18093# ifdef RTLD_LAZY
18094# define LT_DLLAZY_OR_NOW RTLD_LAZY
18095# else
18096# ifdef DL_LAZY
18097# define LT_DLLAZY_OR_NOW DL_LAZY
18098# else
18099# ifdef RTLD_NOW
18100# define LT_DLLAZY_OR_NOW RTLD_NOW
18101# else
18102# ifdef DL_NOW
18103# define LT_DLLAZY_OR_NOW DL_NOW
18104# else
18105# define LT_DLLAZY_OR_NOW 0
18106# endif
18107# endif
18108# endif
18109# endif
18110#endif
18111
18112#ifdef __cplusplus
18113extern "C" void exit (int);
18114#endif
18115
18116void fnord() { int i=42;}
18117int main ()
18118{
18119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18120 int status = $lt_dlunknown;
18121
18122 if (self)
18123 {
18124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18125 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18126 /* dlclose (self); */
18127 }
18128
18129 exit (status);
18130}
18131EOF
18132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133 (eval $ac_link) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18137 (./conftest; exit; ) 2>/dev/null
18138 lt_status=$?
18139 case x$lt_status in
18140 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18141 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18142 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18143 esac
18144 else :
18145 # compilation failed
18146 lt_cv_dlopen_self_static=no
18147 fi
18148fi
18149rm -fr conftest*
18150
18151
18152fi
18153echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18154echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18155 fi
18156
18157 CPPFLAGS="$save_CPPFLAGS"
18158 LDFLAGS="$save_LDFLAGS"
18159 LIBS="$save_LIBS"
18160 ;;
18161 esac
18162
18163 case $lt_cv_dlopen_self in
18164 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18165 *) enable_dlopen_self=unknown ;;
18166 esac
18167
18168 case $lt_cv_dlopen_self_static in
18169 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18170 *) enable_dlopen_self_static=unknown ;;
18171 esac
18172fi
18173
18174
18175# The else clause should only fire when bootstrapping the
18176# libtool distribution, otherwise you forgot to ship ltmain.sh
18177# with your package, and you will get complaints that there are
18178# no rules to generate ltmain.sh.
18179if test -f "$ltmain"; then
18180 # See if we are running on zsh, and set the options which allow our commands through
18181 # without removal of \ escapes.
18182 if test -n "${ZSH_VERSION+set}" ; then
18183 setopt NO_GLOB_SUBST
18184 fi
18185 # Now quote all the things that may contain metacharacters while being
18186 # careful not to overquote the AC_SUBSTed values. We take copies of the
18187 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018188 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18189 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18192 deplibs_check_method reload_flag reload_cmds need_locks \
18193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18194 lt_cv_sys_global_symbol_to_c_name_address \
18195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18196 old_postinstall_cmds old_postuninstall_cmds \
18197 compiler_CXX \
18198 CC_CXX \
18199 LD_CXX \
18200 lt_prog_compiler_wl_CXX \
18201 lt_prog_compiler_pic_CXX \
18202 lt_prog_compiler_static_CXX \
18203 lt_prog_compiler_no_builtin_flag_CXX \
18204 export_dynamic_flag_spec_CXX \
18205 thread_safe_flag_spec_CXX \
18206 whole_archive_flag_spec_CXX \
18207 enable_shared_with_static_runtimes_CXX \
18208 old_archive_cmds_CXX \
18209 old_archive_from_new_cmds_CXX \
18210 predep_objects_CXX \
18211 postdep_objects_CXX \
18212 predeps_CXX \
18213 postdeps_CXX \
18214 compiler_lib_search_path_CXX \
18215 archive_cmds_CXX \
18216 archive_expsym_cmds_CXX \
18217 postinstall_cmds_CXX \
18218 postuninstall_cmds_CXX \
18219 old_archive_from_expsyms_cmds_CXX \
18220 allow_undefined_flag_CXX \
18221 no_undefined_flag_CXX \
18222 export_symbols_cmds_CXX \
18223 hardcode_libdir_flag_spec_CXX \
18224 hardcode_libdir_flag_spec_ld_CXX \
18225 hardcode_libdir_separator_CXX \
18226 hardcode_automatic_CXX \
18227 module_cmds_CXX \
18228 module_expsym_cmds_CXX \
18229 lt_cv_prog_compiler_c_o_CXX \
18230 exclude_expsyms_CXX \
18231 include_expsyms_CXX; do
18232
18233 case $var in
18234 old_archive_cmds_CXX | \
18235 old_archive_from_new_cmds_CXX | \
18236 archive_cmds_CXX | \
18237 archive_expsym_cmds_CXX | \
18238 module_cmds_CXX | \
18239 module_expsym_cmds_CXX | \
18240 old_archive_from_expsyms_cmds_CXX | \
18241 export_symbols_cmds_CXX | \
18242 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18243 postinstall_cmds | postuninstall_cmds | \
18244 old_postinstall_cmds | old_postuninstall_cmds | \
18245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18246 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018247 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 +000018248 ;;
18249 *)
18250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18251 ;;
18252 esac
18253 done
18254
18255 case $lt_echo in
18256 *'\$0 --fallback-echo"')
18257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18258 ;;
18259 esac
18260
18261cfgfile="$ofile"
18262
18263 cat <<__EOF__ >> "$cfgfile"
18264# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18265
18266# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18267
18268# Shell to use when invoking shell scripts.
18269SHELL=$lt_SHELL
18270
18271# Whether or not to build shared libraries.
18272build_libtool_libs=$enable_shared
18273
18274# Whether or not to build static libraries.
18275build_old_libs=$enable_static
18276
18277# Whether or not to add -lc for building shared libraries.
18278build_libtool_need_lc=$archive_cmds_need_lc_CXX
18279
18280# Whether or not to disallow shared libs when runtime libs are static
18281allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18282
18283# Whether or not to optimize for fast installation.
18284fast_install=$enable_fast_install
18285
18286# The host system.
18287host_alias=$host_alias
18288host=$host
18289
18290# An echo program that does not interpret backslashes.
18291echo=$lt_echo
18292
18293# The archiver.
18294AR=$lt_AR
18295AR_FLAGS=$lt_AR_FLAGS
18296
18297# A C compiler.
18298LTCC=$lt_LTCC
18299
18300# A language-specific compiler.
18301CC=$lt_compiler_CXX
18302
18303# Is the compiler the GNU C compiler?
18304with_gcc=$GCC_CXX
18305
18306# An ERE matcher.
18307EGREP=$lt_EGREP
18308
18309# The linker used to build libraries.
18310LD=$lt_LD_CXX
18311
18312# Whether we need hard or soft links.
18313LN_S=$lt_LN_S
18314
18315# A BSD-compatible nm program.
18316NM=$lt_NM
18317
18318# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018319STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018320
18321# Used to examine libraries when file_magic_cmd begins "file"
18322MAGIC_CMD=$MAGIC_CMD
18323
18324# Used on cygwin: DLL creation program.
18325DLLTOOL="$DLLTOOL"
18326
18327# Used on cygwin: object dumper.
18328OBJDUMP="$OBJDUMP"
18329
18330# Used on cygwin: assembler.
18331AS="$AS"
18332
18333# The name of the directory that contains temporary libtool files.
18334objdir=$objdir
18335
18336# How to create reloadable object files.
18337reload_flag=$lt_reload_flag
18338reload_cmds=$lt_reload_cmds
18339
18340# How to pass a linker flag through the compiler.
18341wl=$lt_lt_prog_compiler_wl_CXX
18342
18343# Object file suffix (normally "o").
18344objext="$ac_objext"
18345
18346# Old archive suffix (normally "a").
18347libext="$libext"
18348
18349# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018350shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018351
18352# Executable file suffix (normally "").
18353exeext="$exeext"
18354
18355# Additional compiler flags for building library objects.
18356pic_flag=$lt_lt_prog_compiler_pic_CXX
18357pic_mode=$pic_mode
18358
18359# What is the maximum length of a command?
18360max_cmd_len=$lt_cv_sys_max_cmd_len
18361
18362# Does compiler simultaneously support -c and -o options?
18363compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18364
18365# Must we lock files when doing compilation ?
18366need_locks=$lt_need_locks
18367
18368# Do we need the lib prefix for modules?
18369need_lib_prefix=$need_lib_prefix
18370
18371# Do we need a version for libraries?
18372need_version=$need_version
18373
18374# Whether dlopen is supported.
18375dlopen_support=$enable_dlopen
18376
18377# Whether dlopen of programs is supported.
18378dlopen_self=$enable_dlopen_self
18379
18380# Whether dlopen of statically linked programs is supported.
18381dlopen_self_static=$enable_dlopen_self_static
18382
18383# Compiler flag to prevent dynamic linking.
18384link_static_flag=$lt_lt_prog_compiler_static_CXX
18385
18386# Compiler flag to turn off builtin functions.
18387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18388
18389# Compiler flag to allow reflexive dlopens.
18390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18391
18392# Compiler flag to generate shared objects directly from archives.
18393whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18394
18395# Compiler flag to generate thread-safe objects.
18396thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18397
18398# Library versioning type.
18399version_type=$version_type
18400
18401# Format of library name prefix.
18402libname_spec=$lt_libname_spec
18403
18404# List of archive names. First name is the real one, the rest are links.
18405# The last name is the one that the linker finds with -lNAME.
18406library_names_spec=$lt_library_names_spec
18407
18408# The coded name of the library, if different from the real name.
18409soname_spec=$lt_soname_spec
18410
18411# Commands used to build and install an old-style archive.
18412RANLIB=$lt_RANLIB
18413old_archive_cmds=$lt_old_archive_cmds_CXX
18414old_postinstall_cmds=$lt_old_postinstall_cmds
18415old_postuninstall_cmds=$lt_old_postuninstall_cmds
18416
18417# Create an old-style archive from a shared archive.
18418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18419
18420# Create a temporary old-style archive to link instead of a shared archive.
18421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18422
18423# Commands used to build and install a shared archive.
18424archive_cmds=$lt_archive_cmds_CXX
18425archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18426postinstall_cmds=$lt_postinstall_cmds
18427postuninstall_cmds=$lt_postuninstall_cmds
18428
18429# Commands used to build a loadable module (assumed same as above if empty)
18430module_cmds=$lt_module_cmds_CXX
18431module_expsym_cmds=$lt_module_expsym_cmds_CXX
18432
18433# Commands to strip libraries.
18434old_striplib=$lt_old_striplib
18435striplib=$lt_striplib
18436
18437# Dependencies to place before the objects being linked to create a
18438# shared library.
18439predep_objects=$lt_predep_objects_CXX
18440
18441# Dependencies to place after the objects being linked to create a
18442# shared library.
18443postdep_objects=$lt_postdep_objects_CXX
18444
18445# Dependencies to place before the objects being linked to create a
18446# shared library.
18447predeps=$lt_predeps_CXX
18448
18449# Dependencies to place after the objects being linked to create a
18450# shared library.
18451postdeps=$lt_postdeps_CXX
18452
18453# The library search path used internally by the compiler when linking
18454# a shared library.
18455compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18456
18457# Method to check whether dependent libraries are shared objects.
18458deplibs_check_method=$lt_deplibs_check_method
18459
18460# Command to use when deplibs_check_method == file_magic.
18461file_magic_cmd=$lt_file_magic_cmd
18462
18463# Flag that allows shared libraries with undefined symbols to be built.
18464allow_undefined_flag=$lt_allow_undefined_flag_CXX
18465
18466# Flag that forces no undefined symbols.
18467no_undefined_flag=$lt_no_undefined_flag_CXX
18468
18469# Commands used to finish a libtool library installation in a directory.
18470finish_cmds=$lt_finish_cmds
18471
18472# Same as above, but a single script fragment to be evaled but not shown.
18473finish_eval=$lt_finish_eval
18474
18475# Take the output of nm and produce a listing of raw symbols and C names.
18476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18477
18478# Transform the output of nm in a proper C declaration
18479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18480
18481# Transform the output of nm in a C name address pair
18482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18483
18484# This is the shared library runtime path variable.
18485runpath_var=$runpath_var
18486
18487# This is the shared library path variable.
18488shlibpath_var=$shlibpath_var
18489
18490# Is shlibpath searched before the hard-coded library search path?
18491shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18492
18493# How to hardcode a shared library path into an executable.
18494hardcode_action=$hardcode_action_CXX
18495
18496# Whether we should hardcode library paths into libraries.
18497hardcode_into_libs=$hardcode_into_libs
18498
18499# Flag to hardcode \$libdir into a binary during linking.
18500# This must work even if \$libdir does not exist.
18501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18502
18503# If ld is used when linking, flag to hardcode \$libdir into
18504# a binary during linking. This must work even if \$libdir does
18505# not exist.
18506hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18507
18508# Whether we need a single -rpath flag with a separated argument.
18509hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18510
18511# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18512# resulting binary.
18513hardcode_direct=$hardcode_direct_CXX
18514
18515# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18516# resulting binary.
18517hardcode_minus_L=$hardcode_minus_L_CXX
18518
18519# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18520# the resulting binary.
18521hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18522
18523# Set to yes if building a shared library automatically hardcodes DIR into the library
18524# and all subsequent libraries and executables linked against it.
18525hardcode_automatic=$hardcode_automatic_CXX
18526
18527# Variables whose values should be saved in libtool wrapper scripts and
18528# restored at relink time.
18529variables_saved_for_relink="$variables_saved_for_relink"
18530
18531# Whether libtool must link a program against all its dependency libraries.
18532link_all_deplibs=$link_all_deplibs_CXX
18533
18534# Compile-time system search path for libraries
18535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18536
18537# Run-time system search path for libraries
18538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18539
18540# Fix the shell variable \$srcfile for the compiler.
18541fix_srcfile_path="$fix_srcfile_path_CXX"
18542
18543# Set to yes if exported symbols are required.
18544always_export_symbols=$always_export_symbols_CXX
18545
18546# The commands to list exported symbols.
18547export_symbols_cmds=$lt_export_symbols_cmds_CXX
18548
18549# The commands to extract the exported symbol list from a shared archive.
18550extract_expsyms_cmds=$lt_extract_expsyms_cmds
18551
18552# Symbols that should not be listed in the preloaded symbols.
18553exclude_expsyms=$lt_exclude_expsyms_CXX
18554
18555# Symbols that must always be exported.
18556include_expsyms=$lt_include_expsyms_CXX
18557
18558# ### END LIBTOOL TAG CONFIG: $tagname
18559
18560__EOF__
18561
18562
18563else
18564 # If there is no Makefile yet, we rely on a make rule to execute
18565 # `config.status --recheck' to rerun these tests and create the
18566 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18568 if test -f "$ltmain_in"; then
18569 test -f Makefile && make "$ltmain"
18570 fi
John Criswell47fdd832003-07-14 16:52:07 +000018571fi
18572
18573
18574ac_ext=c
18575ac_cpp='$CPP $CPPFLAGS'
18576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578ac_compiler_gnu=$ac_cv_c_compiler_gnu
18579
18580CC=$lt_save_CC
18581LDCXX=$LD
18582LD=$lt_save_LD
18583GCC=$lt_save_GCC
18584with_gnu_ldcxx=$with_gnu_ld
18585with_gnu_ld=$lt_save_with_gnu_ld
18586lt_cv_path_LDCXX=$lt_cv_path_LD
18587lt_cv_path_LD=$lt_save_path_LD
18588lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18589lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18590
18591 else
18592 tagname=""
18593 fi
18594 ;;
18595
18596 F77)
18597 if test -n "$F77" && test "X$F77" != "Xno"; then
18598
18599ac_ext=f
18600ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18601ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18603
18604
18605archive_cmds_need_lc_F77=no
18606allow_undefined_flag_F77=
18607always_export_symbols_F77=no
18608archive_expsym_cmds_F77=
18609export_dynamic_flag_spec_F77=
18610hardcode_direct_F77=no
18611hardcode_libdir_flag_spec_F77=
18612hardcode_libdir_flag_spec_ld_F77=
18613hardcode_libdir_separator_F77=
18614hardcode_minus_L_F77=no
18615hardcode_automatic_F77=no
18616module_cmds_F77=
18617module_expsym_cmds_F77=
18618link_all_deplibs_F77=unknown
18619old_archive_cmds_F77=$old_archive_cmds
18620no_undefined_flag_F77=
18621whole_archive_flag_spec_F77=
18622enable_shared_with_static_runtimes_F77=no
18623
18624# Source file extension for f77 test sources.
18625ac_ext=f
18626
18627# Object file extension for compiled f77 test sources.
18628objext=o
18629objext_F77=$objext
18630
18631# Code to be used in simple compile tests
18632lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18633
18634# Code to be used in simple link tests
18635lt_simple_link_test_code=" program t\n end\n"
18636
18637# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18638
18639# If no C compiler was specified, use CC.
18640LTCC=${LTCC-"$CC"}
18641
18642# Allow CC to be a program name with arguments.
18643compiler=$CC
18644
18645
18646# Allow CC to be a program name with arguments.
18647lt_save_CC="$CC"
18648CC=${F77-"f77"}
18649compiler=$CC
18650compiler_F77=$CC
18651cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18652
18653echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18654echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18655echo "$as_me:$LINENO: result: $can_build_shared" >&5
18656echo "${ECHO_T}$can_build_shared" >&6
18657
18658echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18659echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18660test "$can_build_shared" = "no" && enable_shared=no
18661
18662# On AIX, shared libraries and static libraries use the same namespace, and
18663# are all built from PIC.
18664case "$host_os" in
18665aix3*)
18666 test "$enable_shared" = yes && enable_static=no
18667 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018668 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018669 postinstall_cmds='$RANLIB $lib'
18670 fi
18671 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018672aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018673 test "$enable_shared" = yes && enable_static=no
18674 ;;
18675esac
18676echo "$as_me:$LINENO: result: $enable_shared" >&5
18677echo "${ECHO_T}$enable_shared" >&6
18678
18679echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18680echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18681# Make sure either enable_shared or enable_static is yes.
18682test "$enable_shared" = yes || enable_static=yes
18683echo "$as_me:$LINENO: result: $enable_static" >&5
18684echo "${ECHO_T}$enable_static" >&6
18685
18686test "$ld_shlibs_F77" = no && can_build_shared=no
18687
18688GCC_F77="$G77"
18689LD_F77="$LD"
18690
18691lt_prog_compiler_wl_F77=
18692lt_prog_compiler_pic_F77=
18693lt_prog_compiler_static_F77=
18694
18695echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18696echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18697
18698 if test "$GCC" = yes; then
18699 lt_prog_compiler_wl_F77='-Wl,'
18700 lt_prog_compiler_static_F77='-static'
18701
18702 case $host_os in
18703 aix*)
18704 # All AIX code is PIC.
18705 if test "$host_cpu" = ia64; then
18706 # AIX 5 now supports IA64 processor
18707 lt_prog_compiler_static_F77='-Bstatic'
18708 fi
18709 ;;
18710
18711 amigaos*)
18712 # FIXME: we need at least 68020 code to build shared libraries, but
18713 # adding the `-m68020' flag to GCC prevents building anything better,
18714 # like `-m68040'.
18715 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18716 ;;
18717
18718 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18719 # PIC is the default for these OSes.
18720 ;;
18721
18722 mingw* | pw32* | os2*)
18723 # This hack is so that the source file can tell whether it is being
18724 # built for inclusion in a dll (and should export symbols for example).
18725 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18726 ;;
18727
18728 darwin* | rhapsody*)
18729 # PIC is the default on this platform
18730 # Common symbols not allowed in MH_DYLIB files
18731 lt_prog_compiler_pic_F77='-fno-common'
18732 ;;
18733
18734 msdosdjgpp*)
18735 # Just because we use GCC doesn't mean we suddenly get shared libraries
18736 # on systems that don't support them.
18737 lt_prog_compiler_can_build_shared_F77=no
18738 enable_shared=no
18739 ;;
18740
18741 sysv4*MP*)
18742 if test -d /usr/nec; then
18743 lt_prog_compiler_pic_F77=-Kconform_pic
18744 fi
18745 ;;
18746
18747 hpux*)
18748 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18749 # not for PA HP-UX.
18750 case "$host_cpu" in
18751 hppa*64*|ia64*)
18752 # +Z the default
18753 ;;
18754 *)
18755 lt_prog_compiler_pic_F77='-fPIC'
18756 ;;
18757 esac
18758 ;;
18759
18760 *)
18761 lt_prog_compiler_pic_F77='-fPIC'
18762 ;;
18763 esac
18764 else
18765 # PORTME Check for flag to pass linker flags through the system compiler.
18766 case $host_os in
18767 aix*)
18768 lt_prog_compiler_wl_F77='-Wl,'
18769 if test "$host_cpu" = ia64; then
18770 # AIX 5 now supports IA64 processor
18771 lt_prog_compiler_static_F77='-Bstatic'
18772 else
18773 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18774 fi
18775 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018776 darwin*)
18777 # PIC is the default on this platform
18778 # Common symbols not allowed in MH_DYLIB files
18779 case "$cc_basename" in
18780 xlc*)
18781 lt_prog_compiler_pic_F77='-qnocommon'
18782 lt_prog_compiler_wl_F77='-Wl,'
18783 ;;
18784 esac
18785 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018786
18787 mingw* | pw32* | os2*)
18788 # This hack is so that the source file can tell whether it is being
18789 # built for inclusion in a dll (and should export symbols for example).
18790 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18791 ;;
18792
18793 hpux9* | hpux10* | hpux11*)
18794 lt_prog_compiler_wl_F77='-Wl,'
18795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18796 # not for PA HP-UX.
18797 case "$host_cpu" in
18798 hppa*64*|ia64*)
18799 # +Z the default
18800 ;;
18801 *)
18802 lt_prog_compiler_pic_F77='+Z'
18803 ;;
18804 esac
18805 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18806 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18807 ;;
18808
18809 irix5* | irix6* | nonstopux*)
18810 lt_prog_compiler_wl_F77='-Wl,'
18811 # PIC (with -KPIC) is the default.
18812 lt_prog_compiler_static_F77='-non_shared'
18813 ;;
18814
18815 newsos6)
18816 lt_prog_compiler_pic_F77='-KPIC'
18817 lt_prog_compiler_static_F77='-Bstatic'
18818 ;;
18819
18820 linux*)
18821 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018822 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018823 lt_prog_compiler_wl_F77='-Wl,'
18824 lt_prog_compiler_pic_F77='-KPIC'
18825 lt_prog_compiler_static_F77='-static'
18826 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018827 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018828 lt_prog_compiler_wl_F77='-Wl,'
18829 # All Alpha code is PIC.
18830 lt_prog_compiler_static_F77='-non_shared'
18831 ;;
18832 esac
18833 ;;
18834
18835 osf3* | osf4* | osf5*)
18836 lt_prog_compiler_wl_F77='-Wl,'
18837 # All OSF/1 code is PIC.
18838 lt_prog_compiler_static_F77='-non_shared'
18839 ;;
18840
18841 sco3.2v5*)
18842 lt_prog_compiler_pic_F77='-Kpic'
18843 lt_prog_compiler_static_F77='-dn'
18844 ;;
18845
18846 solaris*)
18847 lt_prog_compiler_wl_F77='-Wl,'
18848 lt_prog_compiler_pic_F77='-KPIC'
18849 lt_prog_compiler_static_F77='-Bstatic'
18850 ;;
18851
18852 sunos4*)
18853 lt_prog_compiler_wl_F77='-Qoption ld '
18854 lt_prog_compiler_pic_F77='-PIC'
18855 lt_prog_compiler_static_F77='-Bstatic'
18856 ;;
18857
18858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18859 lt_prog_compiler_wl_F77='-Wl,'
18860 lt_prog_compiler_pic_F77='-KPIC'
18861 lt_prog_compiler_static_F77='-Bstatic'
18862 ;;
18863
18864 sysv4*MP*)
18865 if test -d /usr/nec ;then
18866 lt_prog_compiler_pic_F77='-Kconform_pic'
18867 lt_prog_compiler_static_F77='-Bstatic'
18868 fi
18869 ;;
18870
18871 uts4*)
18872 lt_prog_compiler_pic_F77='-pic'
18873 lt_prog_compiler_static_F77='-Bstatic'
18874 ;;
18875
18876 *)
18877 lt_prog_compiler_can_build_shared_F77=no
18878 ;;
18879 esac
18880 fi
18881
18882echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18883echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18884
18885#
18886# Check to make sure the PIC flag actually works.
18887#
18888if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018889
18890echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018891echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18892if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894else
18895 lt_prog_compiler_pic_works_F77=no
18896 ac_outfile=conftest.$ac_objext
18897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18898 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18899 # Insert the option either (1) after the last *FLAGS variable, or
18900 # (2) before a word containing "conftest.", or (3) at the end.
18901 # Note that $ac_compile itself does not contain backslashes and begins
18902 # with a dollar sign (not a hyphen), so the echo should work correctly.
18903 # The option is referenced via a variable to avoid confusing sed.
18904 lt_compile=`echo "$ac_compile" | $SED \
18905 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18907 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000018908 (eval echo "\"\$as_me:18908: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018909 (eval "$lt_compile" 2>conftest.err)
18910 ac_status=$?
18911 cat conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000018912 echo "$as_me:18912: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018913 if (exit $ac_status) && test -s "$ac_outfile"; then
18914 # The compiler can only warn and ignore the option if not recognized
18915 # So say no if there are warnings
18916 if test ! -s conftest.err; then
18917 lt_prog_compiler_pic_works_F77=yes
18918 fi
18919 fi
18920 $rm conftest*
18921
18922fi
18923echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18924echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18925
18926if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18927 case $lt_prog_compiler_pic_F77 in
18928 "" | " "*) ;;
18929 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18930 esac
18931else
18932 lt_prog_compiler_pic_F77=
18933 lt_prog_compiler_can_build_shared_F77=no
18934fi
18935
18936fi
18937case "$host_os" in
18938 # For platforms which do not support PIC, -DPIC is meaningless:
18939 *djgpp*)
18940 lt_prog_compiler_pic_F77=
18941 ;;
18942 *)
18943 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18944 ;;
18945esac
18946
18947echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18948echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18949if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951else
18952 lt_cv_prog_compiler_c_o_F77=no
18953 $rm -r conftest 2>/dev/null
18954 mkdir conftest
18955 cd conftest
18956 mkdir out
18957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18958
John Criswell47fdd832003-07-14 16:52:07 +000018959 lt_compiler_flag="-o out/conftest2.$ac_objext"
18960 # Insert the option either (1) after the last *FLAGS variable, or
18961 # (2) before a word containing "conftest.", or (3) at the end.
18962 # Note that $ac_compile itself does not contain backslashes and begins
18963 # with a dollar sign (not a hyphen), so the echo should work correctly.
18964 lt_compile=`echo "$ac_compile" | $SED \
18965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18967 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000018968 (eval echo "\"\$as_me:18968: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018969 (eval "$lt_compile" 2>out/conftest.err)
18970 ac_status=$?
18971 cat out/conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000018972 echo "$as_me:18972: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18974 then
18975 # The compiler can only warn and ignore the option if not recognized
18976 # So say no if there are warnings
18977 if test ! -s out/conftest.err; then
18978 lt_cv_prog_compiler_c_o_F77=yes
18979 fi
18980 fi
18981 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018982 $rm conftest*
18983 # SGI C++ compiler will create directory out/ii_files/ for
18984 # template instantiation
18985 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18986 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018987 cd ..
18988 rmdir conftest
18989 $rm conftest*
18990
18991fi
18992echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18993echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18994
18995
18996hard_links="nottested"
18997if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18998 # do not overwrite the value of need_locks provided by the user
18999 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19000echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19001 hard_links=yes
19002 $rm conftest*
19003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19004 touch conftest.a
19005 ln conftest.a conftest.b 2>&5 || hard_links=no
19006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19007 echo "$as_me:$LINENO: result: $hard_links" >&5
19008echo "${ECHO_T}$hard_links" >&6
19009 if test "$hard_links" = no; then
19010 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19011echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19012 need_locks=warn
19013 fi
19014else
19015 need_locks=no
19016fi
19017
19018echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19019echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19020
19021 runpath_var=
19022 allow_undefined_flag_F77=
19023 enable_shared_with_static_runtimes_F77=no
19024 archive_cmds_F77=
19025 archive_expsym_cmds_F77=
19026 old_archive_From_new_cmds_F77=
19027 old_archive_from_expsyms_cmds_F77=
19028 export_dynamic_flag_spec_F77=
19029 whole_archive_flag_spec_F77=
19030 thread_safe_flag_spec_F77=
19031 hardcode_libdir_flag_spec_F77=
19032 hardcode_libdir_flag_spec_ld_F77=
19033 hardcode_libdir_separator_F77=
19034 hardcode_direct_F77=no
19035 hardcode_minus_L_F77=no
19036 hardcode_shlibpath_var_F77=unsupported
19037 link_all_deplibs_F77=unknown
19038 hardcode_automatic_F77=no
19039 module_cmds_F77=
19040 module_expsym_cmds_F77=
19041 always_export_symbols_F77=no
19042 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19043 # include_expsyms should be a list of space-separated symbols to be *always*
19044 # included in the symbol list
19045 include_expsyms_F77=
19046 # exclude_expsyms can be an extended regexp of symbols to exclude
19047 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19048 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19049 # as well as any symbol that contains `d'.
19050 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19051 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19052 # platforms (ab)use it in PIC code, but their linkers get confused if
19053 # the symbol is explicitly referenced. Since portable code cannot
19054 # rely on this symbol name, it's probably fine to never include it in
19055 # preloaded symbol tables.
19056 extract_expsyms_cmds=
19057
19058 case $host_os in
19059 cygwin* | mingw* | pw32*)
19060 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19061 # When not using gcc, we currently assume that we are using
19062 # Microsoft Visual C++.
19063 if test "$GCC" != yes; then
19064 with_gnu_ld=no
19065 fi
19066 ;;
19067 openbsd*)
19068 with_gnu_ld=no
19069 ;;
19070 esac
19071
19072 ld_shlibs_F77=yes
19073 if test "$with_gnu_ld" = yes; then
19074 # If archive_cmds runs LD, not CC, wlarc should be empty
19075 wlarc='${wl}'
19076
19077 # See if GNU ld supports shared libraries.
19078 case $host_os in
19079 aix3* | aix4* | aix5*)
19080 # On AIX/PPC, the GNU linker is very broken
19081 if test "$host_cpu" != ia64; then
19082 ld_shlibs_F77=no
19083 cat <<EOF 1>&2
19084
19085*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19086*** to be unable to reliably create shared libraries on AIX.
19087*** Therefore, libtool is disabling shared libraries support. If you
19088*** really care for shared libraries, you may want to modify your PATH
19089*** so that a non-GNU linker is found, and then restart.
19090
19091EOF
19092 fi
19093 ;;
19094
19095 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019096 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 +000019097 hardcode_libdir_flag_spec_F77='-L$libdir'
19098 hardcode_minus_L_F77=yes
19099
19100 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19101 # that the semantics of dynamic libraries on AmigaOS, at least up
19102 # to version 4, is to share data among multiple programs linked
19103 # with the same dynamic library. Since this doesn't match the
19104 # behavior of shared libraries on other platforms, we can't use
19105 # them.
19106 ld_shlibs_F77=no
19107 ;;
19108
19109 beos*)
19110 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19111 allow_undefined_flag_F77=unsupported
19112 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19113 # support --undefined. This deserves some investigation. FIXME
19114 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19115 else
19116 ld_shlibs_F77=no
19117 fi
19118 ;;
19119
19120 cygwin* | mingw* | pw32*)
19121 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19122 # as there is no search path for DLLs.
19123 hardcode_libdir_flag_spec_F77='-L$libdir'
19124 allow_undefined_flag_F77=unsupported
19125 always_export_symbols_F77=no
19126 enable_shared_with_static_runtimes_F77=yes
19127 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19128
19129 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19130 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19131 # If the export-symbols file already is a .def file (1st line
19132 # is EXPORTS), use it as is; otherwise, prepend...
19133 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19134 cp $export_symbols $output_objdir/$soname.def;
19135 else
19136 echo EXPORTS > $output_objdir/$soname.def;
19137 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019138 fi~
19139 $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 +000019140 else
19141 ld_shlibs=no
19142 fi
19143 ;;
19144
19145 netbsd*)
19146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19147 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19148 wlarc=
19149 else
19150 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19151 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19152 fi
19153 ;;
19154
19155 solaris* | sysv5*)
19156 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19157 ld_shlibs_F77=no
19158 cat <<EOF 1>&2
19159
19160*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19161*** create shared libraries on Solaris systems. Therefore, libtool
19162*** is disabling shared libraries support. We urge you to upgrade GNU
19163*** binutils to release 2.9.1 or newer. Another option is to modify
19164*** your PATH or compiler configuration so that the native linker is
19165*** used, and then restart.
19166
19167EOF
19168 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19169 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19170 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19171 else
19172 ld_shlibs_F77=no
19173 fi
19174 ;;
19175
19176 sunos4*)
19177 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19178 wlarc=
19179 hardcode_direct_F77=yes
19180 hardcode_shlibpath_var_F77=no
19181 ;;
19182
Reid Spencer2706f8c2004-09-19 23:53:36 +000019183 linux*)
19184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19185 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19186 archive_cmds_F77="$tmp_archive_cmds"
19187 supports_anon_versioning=no
19188 case `$LD -v 2>/dev/null` in
19189 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19192 *\ 2.11.*) ;; # other 2.11 versions
19193 *) supports_anon_versioning=yes ;;
19194 esac
19195 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019196 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19197cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19198$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019199 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19200 else
19201 archive_expsym_cmds_F77="$tmp_archive_cmds"
19202 fi
19203 else
19204 ld_shlibs_F77=no
19205 fi
19206 ;;
19207
John Criswell47fdd832003-07-14 16:52:07 +000019208 *)
19209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19210 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19211 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19212 else
19213 ld_shlibs_F77=no
19214 fi
19215 ;;
19216 esac
19217
19218 if test "$ld_shlibs_F77" = yes; then
19219 runpath_var=LD_RUN_PATH
19220 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19221 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19222 # ancient GNU ld didn't support --whole-archive et. al.
19223 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19224 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19225 else
19226 whole_archive_flag_spec_F77=
19227 fi
19228 fi
19229 else
19230 # PORTME fill in a description of your system's linker (not GNU ld)
19231 case $host_os in
19232 aix3*)
19233 allow_undefined_flag_F77=unsupported
19234 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019235 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 +000019236 # Note: this linker hardcodes the directories in LIBPATH if there
19237 # are no directories specified by -L.
19238 hardcode_minus_L_F77=yes
19239 if test "$GCC" = yes && test -z "$link_static_flag"; then
19240 # Neither direct hardcoding nor static linking is supported with a
19241 # broken collect2.
19242 hardcode_direct_F77=unsupported
19243 fi
19244 ;;
19245
19246 aix4* | aix5*)
19247 if test "$host_cpu" = ia64; then
19248 # On IA64, the linker does run time linking by default, so we don't
19249 # have to do anything special.
19250 aix_use_runtimelinking=no
19251 exp_sym_flag='-Bexport'
19252 no_entry_flag=""
19253 else
19254 # If we're using GNU nm, then we don't want the "-C" option.
19255 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19256 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19257 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'
19258 else
19259 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'
19260 fi
19261 aix_use_runtimelinking=no
19262
19263 # Test if we are trying to use run time linking or normal
19264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19265 # need to do runtime linking.
19266 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19267 for ld_flag in $LDFLAGS; do
19268 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19269 aix_use_runtimelinking=yes
19270 break
19271 fi
19272 done
19273 esac
19274
19275 exp_sym_flag='-bexport'
19276 no_entry_flag='-bnoentry'
19277 fi
19278
19279 # When large executables or shared objects are built, AIX ld can
19280 # have problems creating the table of contents. If linking a library
19281 # or program results in "error TOC overflow" add -mminimal-toc to
19282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19284
19285 archive_cmds_F77=''
19286 hardcode_direct_F77=yes
19287 hardcode_libdir_separator_F77=':'
19288 link_all_deplibs_F77=yes
19289
19290 if test "$GCC" = yes; then
19291 case $host_os in aix4.012|aix4.012.*)
19292 # We only want to do this on AIX 4.2 and lower, the check
19293 # below for broken collect2 doesn't work under 4.3+
19294 collect2name=`${CC} -print-prog-name=collect2`
19295 if test -f "$collect2name" && \
19296 strings "$collect2name" | grep resolve_lib_name >/dev/null
19297 then
19298 # We have reworked collect2
19299 hardcode_direct_F77=yes
19300 else
19301 # We have old collect2
19302 hardcode_direct_F77=unsupported
19303 # It fails to find uninstalled libraries when the uninstalled
19304 # path is not listed in the libpath. Setting hardcode_minus_L
19305 # to unsupported forces relinking
19306 hardcode_minus_L_F77=yes
19307 hardcode_libdir_flag_spec_F77='-L$libdir'
19308 hardcode_libdir_separator_F77=
19309 fi
19310 esac
19311 shared_flag='-shared'
19312 else
19313 # not using gcc
19314 if test "$host_cpu" = ia64; then
19315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19316 # chokes on -Wl,-G. The following line is correct:
19317 shared_flag='-G'
19318 else
19319 if test "$aix_use_runtimelinking" = yes; then
19320 shared_flag='${wl}-G'
19321 else
19322 shared_flag='${wl}-bM:SRE'
19323 fi
19324 fi
19325 fi
19326
19327 # It seems that -bexpall does not export symbols beginning with
19328 # underscore (_), so it is better to generate a list of symbols to export.
19329 always_export_symbols_F77=yes
19330 if test "$aix_use_runtimelinking" = yes; then
19331 # Warning - without using the other runtime loading flags (-brtl),
19332 # -berok will link without error, but may produce a broken library.
19333 allow_undefined_flag_F77='-berok'
19334 # Determine the default libpath from the value encoded in an empty executable.
19335 cat >conftest.$ac_ext <<_ACEOF
19336 program main
19337
19338 end
19339_ACEOF
19340rm -f conftest.$ac_objext conftest$ac_exeext
19341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019342 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019344 grep -v '^ *+' conftest.er1 >conftest.err
19345 rm -f conftest.er1
19346 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019349 { ac_try='test -z "$ac_f77_werror_flag"
19350 || test ! -s conftest.err'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } &&
19356 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362
19363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19364}'`
19365# Check for a 64-bit object if we didn't find anything.
19366if 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; }
19367}'`; fi
19368else
19369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019370sed 's/^/| /' conftest.$ac_ext >&5
19371
John Criswell47fdd832003-07-14 16:52:07 +000019372fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019373rm -f conftest.err conftest.$ac_objext \
19374 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19376
19377 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19378 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"
19379 else
19380 if test "$host_cpu" = ia64; then
19381 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19382 allow_undefined_flag_F77="-z nodefs"
19383 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"
19384 else
19385 # Determine the default libpath from the value encoded in an empty executable.
19386 cat >conftest.$ac_ext <<_ACEOF
19387 program main
19388
19389 end
19390_ACEOF
19391rm -f conftest.$ac_objext conftest$ac_exeext
19392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019393 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019400 { ac_try='test -z "$ac_f77_werror_flag"
19401 || test ! -s conftest.err'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413
19414aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19415}'`
19416# Check for a 64-bit object if we didn't find anything.
19417if 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; }
19418}'`; fi
19419else
19420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019421sed 's/^/| /' conftest.$ac_ext >&5
19422
John Criswell47fdd832003-07-14 16:52:07 +000019423fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019424rm -f conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019426if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19427
19428 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19429 # Warning - without using the other run time loading flags,
19430 # -berok will link without error, but may produce a broken library.
19431 no_undefined_flag_F77=' ${wl}-bernotok'
19432 allow_undefined_flag_F77=' ${wl}-berok'
19433 # -bexpall does not export symbols beginning with underscore (_)
19434 always_export_symbols_F77=yes
19435 # Exported symbols can be pulled into shared objects from archives
19436 whole_archive_flag_spec_F77=' '
19437 archive_cmds_need_lc_F77=yes
19438 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019439 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 +000019440 fi
19441 fi
19442 ;;
19443
19444 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019445 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 +000019446 hardcode_libdir_flag_spec_F77='-L$libdir'
19447 hardcode_minus_L_F77=yes
19448 # see comment about different semantics on the GNU ld section
19449 ld_shlibs_F77=no
19450 ;;
19451
Reid Spencer2706f8c2004-09-19 23:53:36 +000019452 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019453 export_dynamic_flag_spec_F77=-rdynamic
19454 ;;
19455
19456 cygwin* | mingw* | pw32*)
19457 # When not using gcc, we currently assume that we are using
19458 # Microsoft Visual C++.
19459 # hardcode_libdir_flag_spec is actually meaningless, as there is
19460 # no search path for DLLs.
19461 hardcode_libdir_flag_spec_F77=' '
19462 allow_undefined_flag_F77=unsupported
19463 # Tell ltmain to make .lib files, not .a files.
19464 libext=lib
19465 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019466 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019467 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019468 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 +000019469 # The linker will automatically build a .lib file if we build a DLL.
19470 old_archive_From_new_cmds_F77='true'
19471 # FIXME: Should let the user specify the lib program.
19472 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19473 fix_srcfile_path='`cygpath -w "$srcfile"`'
19474 enable_shared_with_static_runtimes_F77=yes
19475 ;;
19476
19477 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019478 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019479 rhapsody* | darwin1.[012])
19480 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19481 ;;
19482 *) # Darwin 1.3 on
19483 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19484 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19485 else
19486 case ${MACOSX_DEPLOYMENT_TARGET} in
19487 10.[012])
19488 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19489 ;;
19490 10.*)
19491 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19492 ;;
19493 esac
19494 fi
19495 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019496 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019497 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019498 hardcode_direct_F77=no
19499 hardcode_automatic_F77=yes
19500 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019501 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019502 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019503 if test "$GCC" = yes ; then
19504 output_verbose_link_cmd='echo'
19505 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19506 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19507 # 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 +000019508 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}'
19509 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 +000019510 else
19511 case "$cc_basename" in
19512 xlc*)
19513 output_verbose_link_cmd='echo'
19514 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19515 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19516 # 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 +000019517 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}'
19518 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 +000019519 ;;
19520 *)
19521 ld_shlibs_F77=no
19522 ;;
19523 esac
John Criswell47fdd832003-07-14 16:52:07 +000019524 fi
19525 ;;
19526
19527 dgux*)
19528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19529 hardcode_libdir_flag_spec_F77='-L$libdir'
19530 hardcode_shlibpath_var_F77=no
19531 ;;
19532
19533 freebsd1*)
19534 ld_shlibs_F77=no
19535 ;;
19536
19537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19538 # support. Future versions do this automatically, but an explicit c++rt0.o
19539 # does not break anything, and helps significantly (at the cost of a little
19540 # extra space).
19541 freebsd2.2*)
19542 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19543 hardcode_libdir_flag_spec_F77='-R$libdir'
19544 hardcode_direct_F77=yes
19545 hardcode_shlibpath_var_F77=no
19546 ;;
19547
19548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19549 freebsd2*)
19550 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19551 hardcode_direct_F77=yes
19552 hardcode_minus_L_F77=yes
19553 hardcode_shlibpath_var_F77=no
19554 ;;
19555
19556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019557 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019558 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19559 hardcode_libdir_flag_spec_F77='-R$libdir'
19560 hardcode_direct_F77=yes
19561 hardcode_shlibpath_var_F77=no
19562 ;;
19563
19564 hpux9*)
19565 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019566 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 +000019567 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019568 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 +000019569 fi
19570 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19571 hardcode_libdir_separator_F77=:
19572 hardcode_direct_F77=yes
19573
19574 # hardcode_minus_L: Not really in the search PATH,
19575 # but as the default location of the library.
19576 hardcode_minus_L_F77=yes
19577 export_dynamic_flag_spec_F77='${wl}-E'
19578 ;;
19579
19580 hpux10* | hpux11*)
19581 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19582 case "$host_cpu" in
19583 hppa*64*|ia64*)
19584 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 ;;
19586 *)
19587 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19588 ;;
19589 esac
19590 else
19591 case "$host_cpu" in
19592 hppa*64*|ia64*)
19593 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19594 ;;
19595 *)
19596 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19597 ;;
19598 esac
19599 fi
19600 if test "$with_gnu_ld" = no; then
19601 case "$host_cpu" in
19602 hppa*64*)
19603 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19604 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19605 hardcode_libdir_separator_F77=:
19606 hardcode_direct_F77=no
19607 hardcode_shlibpath_var_F77=no
19608 ;;
19609 ia64*)
19610 hardcode_libdir_flag_spec_F77='-L$libdir'
19611 hardcode_direct_F77=no
19612 hardcode_shlibpath_var_F77=no
19613
19614 # hardcode_minus_L: Not really in the search PATH,
19615 # but as the default location of the library.
19616 hardcode_minus_L_F77=yes
19617 ;;
19618 *)
19619 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19620 hardcode_libdir_separator_F77=:
19621 hardcode_direct_F77=yes
19622 export_dynamic_flag_spec_F77='${wl}-E'
19623
19624 # hardcode_minus_L: Not really in the search PATH,
19625 # but as the default location of the library.
19626 hardcode_minus_L_F77=yes
19627 ;;
19628 esac
19629 fi
19630 ;;
19631
19632 irix5* | irix6* | nonstopux*)
19633 if test "$GCC" = yes; then
19634 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'
19635 else
19636 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'
19637 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19638 fi
19639 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19640 hardcode_libdir_separator_F77=:
19641 link_all_deplibs_F77=yes
19642 ;;
19643
19644 netbsd*)
19645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19646 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19647 else
19648 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19649 fi
19650 hardcode_libdir_flag_spec_F77='-R$libdir'
19651 hardcode_direct_F77=yes
19652 hardcode_shlibpath_var_F77=no
19653 ;;
19654
19655 newsos6)
19656 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19657 hardcode_direct_F77=yes
19658 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19659 hardcode_libdir_separator_F77=:
19660 hardcode_shlibpath_var_F77=no
19661 ;;
19662
19663 openbsd*)
19664 hardcode_direct_F77=yes
19665 hardcode_shlibpath_var_F77=no
19666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19667 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019668 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 +000019669 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19670 export_dynamic_flag_spec_F77='${wl}-E'
19671 else
19672 case $host_os in
19673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19674 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19675 hardcode_libdir_flag_spec_F77='-R$libdir'
19676 ;;
19677 *)
19678 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19679 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19680 ;;
19681 esac
19682 fi
19683 ;;
19684
19685 os2*)
19686 hardcode_libdir_flag_spec_F77='-L$libdir'
19687 hardcode_minus_L_F77=yes
19688 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019689 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 +000019690 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19691 ;;
19692
19693 osf3*)
19694 if test "$GCC" = yes; then
19695 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19696 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'
19697 else
19698 allow_undefined_flag_F77=' -expect_unresolved \*'
19699 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'
19700 fi
19701 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19702 hardcode_libdir_separator_F77=:
19703 ;;
19704
19705 osf4* | osf5*) # as osf3* with the addition of -msym flag
19706 if test "$GCC" = yes; then
19707 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19708 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'
19709 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19710 else
19711 allow_undefined_flag_F77=' -expect_unresolved \*'
19712 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 +000019713 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~
19714 $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'
19715
John Criswell47fdd832003-07-14 16:52:07 +000019716 # Both c and cxx compiler support -rpath directly
19717 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19718 fi
19719 hardcode_libdir_separator_F77=:
19720 ;;
19721
19722 sco3.2v5*)
19723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19724 hardcode_shlibpath_var_F77=no
19725 export_dynamic_flag_spec_F77='${wl}-Bexport'
19726 runpath_var=LD_RUN_PATH
19727 hardcode_runpath_var=yes
19728 ;;
19729
19730 solaris*)
19731 no_undefined_flag_F77=' -z text'
19732 if test "$GCC" = yes; then
19733 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019734 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19735 $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 +000019736 else
19737 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019738 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19739 $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 +000019740 fi
19741 hardcode_libdir_flag_spec_F77='-R$libdir'
19742 hardcode_shlibpath_var_F77=no
19743 case $host_os in
19744 solaris2.[0-5] | solaris2.[0-5].*) ;;
19745 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19746 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19747 esac
19748 link_all_deplibs_F77=yes
19749 ;;
19750
19751 sunos4*)
19752 if test "x$host_vendor" = xsequent; then
19753 # Use $CC to link under sequent, because it throws in some extra .o
19754 # files that make .init and .fini sections work.
19755 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19756 else
19757 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19758 fi
19759 hardcode_libdir_flag_spec_F77='-L$libdir'
19760 hardcode_direct_F77=yes
19761 hardcode_minus_L_F77=yes
19762 hardcode_shlibpath_var_F77=no
19763 ;;
19764
19765 sysv4)
19766 case $host_vendor in
19767 sni)
19768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_direct_F77=yes # is this really true???
19770 ;;
19771 siemens)
19772 ## LD is ld it makes a PLAMLIB
19773 ## CC just makes a GrossModule.
19774 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19775 reload_cmds_F77='$CC -r -o $output$reload_objs'
19776 hardcode_direct_F77=no
19777 ;;
19778 motorola)
19779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19780 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19781 ;;
19782 esac
19783 runpath_var='LD_RUN_PATH'
19784 hardcode_shlibpath_var_F77=no
19785 ;;
19786
19787 sysv4.3*)
19788 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19789 hardcode_shlibpath_var_F77=no
19790 export_dynamic_flag_spec_F77='-Bexport'
19791 ;;
19792
19793 sysv4*MP*)
19794 if test -d /usr/nec; then
19795 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19796 hardcode_shlibpath_var_F77=no
19797 runpath_var=LD_RUN_PATH
19798 hardcode_runpath_var=yes
19799 ld_shlibs_F77=yes
19800 fi
19801 ;;
19802
19803 sysv4.2uw2*)
19804 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19805 hardcode_direct_F77=yes
19806 hardcode_minus_L_F77=no
19807 hardcode_shlibpath_var_F77=no
19808 hardcode_runpath_var=yes
19809 runpath_var=LD_RUN_PATH
19810 ;;
19811
19812 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19813 no_undefined_flag_F77='${wl}-z ${wl}text'
19814 if test "$GCC" = yes; then
19815 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19816 else
19817 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19818 fi
19819 runpath_var='LD_RUN_PATH'
19820 hardcode_shlibpath_var_F77=no
19821 ;;
19822
19823 sysv5*)
19824 no_undefined_flag_F77=' -z text'
19825 # $CC -shared without GNU ld will not create a library from C++
19826 # object files and a static libstdc++, better avoid it by now
19827 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019828 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19829 $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 +000019830 hardcode_libdir_flag_spec_F77=
19831 hardcode_shlibpath_var_F77=no
19832 runpath_var='LD_RUN_PATH'
19833 ;;
19834
19835 uts4*)
19836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19837 hardcode_libdir_flag_spec_F77='-L$libdir'
19838 hardcode_shlibpath_var_F77=no
19839 ;;
19840
19841 *)
19842 ld_shlibs_F77=no
19843 ;;
19844 esac
19845 fi
19846
19847echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19848echo "${ECHO_T}$ld_shlibs_F77" >&6
19849test "$ld_shlibs_F77" = no && can_build_shared=no
19850
19851variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19852if test "$GCC" = yes; then
19853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19854fi
19855
19856#
19857# Do we need to explicitly link libc?
19858#
19859case "x$archive_cmds_need_lc_F77" in
19860x|xyes)
19861 # Assume -lc should be added
19862 archive_cmds_need_lc_F77=yes
19863
19864 if test "$enable_shared" = yes && test "$GCC" = yes; then
19865 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019866 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019867 # FIXME: we may have to deal with multi-command sequences.
19868 ;;
19869 '$CC '*)
19870 # Test whether the compiler implicitly links with -lc since on some
19871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19872 # to ld, don't add -lc before -lgcc.
19873 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19874echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19875 $rm conftest*
19876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19877
19878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19879 (eval $ac_compile) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } 2>conftest.err; then
19883 soname=conftest
19884 lib=conftest
19885 libobjs=conftest.$ac_objext
19886 deplibs=
19887 wl=$lt_prog_compiler_wl_F77
19888 compiler_flags=-v
19889 linker_flags=-v
19890 verstring=
19891 output_objdir=.
19892 libname=conftest
19893 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19894 allow_undefined_flag_F77=
19895 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19896 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }
19900 then
19901 archive_cmds_need_lc_F77=no
19902 else
19903 archive_cmds_need_lc_F77=yes
19904 fi
19905 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19906 else
19907 cat conftest.err 1>&5
19908 fi
19909 $rm conftest*
19910 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19911echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19912 ;;
19913 esac
19914 fi
19915 ;;
19916esac
19917
John Criswell47fdd832003-07-14 16:52:07 +000019918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19920library_names_spec=
19921libname_spec='lib$name'
19922soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019923shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019924postinstall_cmds=
19925postuninstall_cmds=
19926finish_cmds=
19927finish_eval=
19928shlibpath_var=
19929shlibpath_overrides_runpath=unknown
19930version_type=none
19931dynamic_linker="$host_os ld.so"
19932sys_lib_dlsearch_path_spec="/lib /usr/lib"
19933if test "$GCC" = yes; then
19934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19935 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19936 # if the path contains ";" then we assume it to be the separator
19937 # otherwise default to the standard path separator (i.e. ":") - it is
19938 # assumed that no part of a normal pathname contains ";" but that should
19939 # okay in the real world where ";" in dirpaths is itself problematic.
19940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19941 else
19942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19943 fi
19944else
19945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19946fi
19947need_lib_prefix=unknown
19948hardcode_into_libs=no
19949
19950# when you set need_version to no, make sure it does not cause -set_version
19951# flags to be left without arguments
19952need_version=unknown
19953
19954case $host_os in
19955aix3*)
19956 version_type=linux
19957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19958 shlibpath_var=LIBPATH
19959
19960 # AIX 3 has no versioning support, so we append a major version to the name.
19961 soname_spec='${libname}${release}${shared_ext}$major'
19962 ;;
19963
19964aix4* | aix5*)
19965 version_type=linux
19966 need_lib_prefix=no
19967 need_version=no
19968 hardcode_into_libs=yes
19969 if test "$host_cpu" = ia64; then
19970 # AIX 5 supports IA64
19971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19972 shlibpath_var=LD_LIBRARY_PATH
19973 else
19974 # With GCC up to 2.95.x, collect2 would create an import file
19975 # for dependence libraries. The import file would start with
19976 # the line `#! .'. This would cause the generated library to
19977 # depend on `.', always an invalid library. This was fixed in
19978 # development snapshots of GCC prior to 3.0.
19979 case $host_os in
19980 aix4 | aix4.[01] | aix4.[01].*)
19981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19982 echo ' yes '
19983 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19984 :
19985 else
19986 can_build_shared=no
19987 fi
19988 ;;
19989 esac
19990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19991 # soname into executable. Probably we can add versioning support to
19992 # collect2, so additional links can be useful in future.
19993 if test "$aix_use_runtimelinking" = yes; then
19994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19995 # instead of lib<name>.a to let people know that these are not
19996 # typical AIX shared libraries.
19997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19998 else
19999 # We preserve .a as extension for shared libraries through AIX4.2
20000 # and later when we are not doing run time linking.
20001 library_names_spec='${libname}${release}.a $libname.a'
20002 soname_spec='${libname}${release}${shared_ext}$major'
20003 fi
20004 shlibpath_var=LIBPATH
20005 fi
20006 ;;
20007
20008amigaos*)
20009 library_names_spec='$libname.ixlibrary $libname.a'
20010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020011 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 +000020012 ;;
20013
20014beos*)
20015 library_names_spec='${libname}${shared_ext}'
20016 dynamic_linker="$host_os ld.so"
20017 shlibpath_var=LIBRARY_PATH
20018 ;;
20019
Reid Spencer2706f8c2004-09-19 23:53:36 +000020020bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020021 version_type=linux
20022 need_version=no
20023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20024 soname_spec='${libname}${release}${shared_ext}$major'
20025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20026 shlibpath_var=LD_LIBRARY_PATH
20027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20029 # the default ld.so.conf also contains /usr/contrib/lib and
20030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20031 # libtool to hard-code these into programs
20032 ;;
20033
20034cygwin* | mingw* | pw32*)
20035 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020036 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020037 need_version=no
20038 need_lib_prefix=no
20039
20040 case $GCC,$host_os in
20041 yes,cygwin* | yes,mingw* | yes,pw32*)
20042 library_names_spec='$libname.dll.a'
20043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020044 postinstall_cmds='base_file=`basename \${file}`~
20045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20046 dldir=$destdir/`dirname \$dlpath`~
20047 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020048 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20050 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020051 $rm \$dlpath'
20052 shlibpath_overrides_runpath=yes
20053
20054 case $host_os in
20055 cygwin*)
20056 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20057 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 +000020058 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020059 ;;
20060 mingw*)
20061 # MinGW DLLs use traditional 'lib' prefix
20062 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20064 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20065 # It is most probably a Windows format PATH printed by
20066 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20067 # path with ; separators, and with drive letters. We can handle the
20068 # drive letters (cygwin fileutils understands them), so leave them,
20069 # especially as we might pass files found there to a mingw objdump,
20070 # which wouldn't understand a cygwinified path. Ahh.
20071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20072 else
20073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20074 fi
20075 ;;
20076 pw32*)
20077 # pw32 DLLs use 'pw' prefix rather than 'lib'
20078 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20079 ;;
20080 esac
20081 ;;
20082
20083 *)
20084 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20085 ;;
20086 esac
20087 dynamic_linker='Win32 ld.exe'
20088 # FIXME: first we should search . and the directory the executable is in
20089 shlibpath_var=PATH
20090 ;;
20091
20092darwin* | rhapsody*)
20093 dynamic_linker="$host_os dyld"
20094 version_type=darwin
20095 need_lib_prefix=no
20096 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020097 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020098 soname_spec='${libname}${release}${major}$shared_ext'
20099 shlibpath_overrides_runpath=yes
20100 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020101 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020102 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020103 if test "$GCC" = yes; then
20104 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"`
20105 else
20106 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020107 fi
20108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20109 ;;
20110
20111dgux*)
20112 version_type=linux
20113 need_lib_prefix=no
20114 need_version=no
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20116 soname_spec='${libname}${release}${shared_ext}$major'
20117 shlibpath_var=LD_LIBRARY_PATH
20118 ;;
20119
20120freebsd1*)
20121 dynamic_linker=no
20122 ;;
20123
Reid Spencer2706f8c2004-09-19 23:53:36 +000020124kfreebsd*-gnu)
20125 version_type=linux
20126 need_lib_prefix=no
20127 need_version=no
20128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20129 soname_spec='${libname}${release}${shared_ext}$major'
20130 shlibpath_var=LD_LIBRARY_PATH
20131 shlibpath_overrides_runpath=no
20132 hardcode_into_libs=yes
20133 dynamic_linker='GNU ld.so'
20134 ;;
20135
John Criswell47fdd832003-07-14 16:52:07 +000020136freebsd*)
20137 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20138 version_type=freebsd-$objformat
20139 case $version_type in
20140 freebsd-elf*)
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20142 need_version=no
20143 need_lib_prefix=no
20144 ;;
20145 freebsd-*)
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20147 need_version=yes
20148 ;;
20149 esac
20150 shlibpath_var=LD_LIBRARY_PATH
20151 case $host_os in
20152 freebsd2*)
20153 shlibpath_overrides_runpath=yes
20154 ;;
20155 freebsd3.01* | freebsdelf3.01*)
20156 shlibpath_overrides_runpath=yes
20157 hardcode_into_libs=yes
20158 ;;
20159 *) # from 3.2 on
20160 shlibpath_overrides_runpath=no
20161 hardcode_into_libs=yes
20162 ;;
20163 esac
20164 ;;
20165
20166gnu*)
20167 version_type=linux
20168 need_lib_prefix=no
20169 need_version=no
20170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20171 soname_spec='${libname}${release}${shared_ext}$major'
20172 shlibpath_var=LD_LIBRARY_PATH
20173 hardcode_into_libs=yes
20174 ;;
20175
20176hpux9* | hpux10* | hpux11*)
20177 # Give a soname corresponding to the major version so that dld.sl refuses to
20178 # link against other versions.
20179 version_type=sunos
20180 need_lib_prefix=no
20181 need_version=no
20182 case "$host_cpu" in
20183 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020184 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020185 hardcode_into_libs=yes
20186 dynamic_linker="$host_os dld.so"
20187 shlibpath_var=LD_LIBRARY_PATH
20188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190 soname_spec='${libname}${release}${shared_ext}$major'
20191 if test "X$HPUX_IA64_MODE" = X32; then
20192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20193 else
20194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20195 fi
20196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20197 ;;
20198 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020199 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020200 hardcode_into_libs=yes
20201 dynamic_linker="$host_os dld.sl"
20202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205 soname_spec='${libname}${release}${shared_ext}$major'
20206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20208 ;;
20209 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020210 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020211 dynamic_linker="$host_os dld.sl"
20212 shlibpath_var=SHLIB_PATH
20213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215 soname_spec='${libname}${release}${shared_ext}$major'
20216 ;;
20217 esac
20218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20219 postinstall_cmds='chmod 555 $lib'
20220 ;;
20221
20222irix5* | irix6* | nonstopux*)
20223 case $host_os in
20224 nonstopux*) version_type=nonstopux ;;
20225 *)
20226 if test "$lt_cv_prog_gnu_ld" = yes; then
20227 version_type=linux
20228 else
20229 version_type=irix
20230 fi ;;
20231 esac
20232 need_lib_prefix=no
20233 need_version=no
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20236 case $host_os in
20237 irix5* | nonstopux*)
20238 libsuff= shlibsuff=
20239 ;;
20240 *)
20241 case $LD in # libtool.m4 will add one of these switches to LD
20242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20243 libsuff= shlibsuff= libmagic=32-bit;;
20244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20245 libsuff=32 shlibsuff=N32 libmagic=N32;;
20246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20248 *) libsuff= shlibsuff= libmagic=never-match;;
20249 esac
20250 ;;
20251 esac
20252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20253 shlibpath_overrides_runpath=no
20254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20256 hardcode_into_libs=yes
20257 ;;
20258
20259# No shared lib support for Linux oldld, aout, or coff.
20260linux*oldld* | linux*aout* | linux*coff*)
20261 dynamic_linker=no
20262 ;;
20263
20264# This must be Linux ELF.
20265linux*)
20266 version_type=linux
20267 need_lib_prefix=no
20268 need_version=no
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270 soname_spec='${libname}${release}${shared_ext}$major'
20271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20272 shlibpath_var=LD_LIBRARY_PATH
20273 shlibpath_overrides_runpath=no
20274 # This implies no fast_install, which is unacceptable.
20275 # Some rework will be needed to allow for fast_install
20276 # before this can be enabled.
20277 hardcode_into_libs=yes
20278
Reid Spencer2706f8c2004-09-19 23:53:36 +000020279 # Append ld.so.conf contents to the search path
20280 if test -f /etc/ld.so.conf; then
20281 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20283 fi
20284
John Criswell47fdd832003-07-14 16:52:07 +000020285 # We used to test for /lib/ld.so.1 and disable shared libraries on
20286 # powerpc, because MkLinux only supported shared libraries with the
20287 # GNU dynamic linker. Since this was broken with cross compilers,
20288 # most powerpc-linux boxes support dynamic linking these days and
20289 # people can always --disable-shared, the test was removed, and we
20290 # assume the GNU/Linux dynamic linker is in use.
20291 dynamic_linker='GNU/Linux ld.so'
20292 ;;
20293
Reid Spencer2706f8c2004-09-19 23:53:36 +000020294knetbsd*-gnu)
20295 version_type=linux
20296 need_lib_prefix=no
20297 need_version=no
20298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20299 soname_spec='${libname}${release}${shared_ext}$major'
20300 shlibpath_var=LD_LIBRARY_PATH
20301 shlibpath_overrides_runpath=no
20302 hardcode_into_libs=yes
20303 dynamic_linker='GNU ld.so'
20304 ;;
20305
John Criswell47fdd832003-07-14 16:52:07 +000020306netbsd*)
20307 version_type=sunos
20308 need_lib_prefix=no
20309 need_version=no
20310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20313 dynamic_linker='NetBSD (a.out) ld.so'
20314 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020316 soname_spec='${libname}${release}${shared_ext}$major'
20317 dynamic_linker='NetBSD ld.elf_so'
20318 fi
20319 shlibpath_var=LD_LIBRARY_PATH
20320 shlibpath_overrides_runpath=yes
20321 hardcode_into_libs=yes
20322 ;;
20323
20324newsos6)
20325 version_type=linux
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327 shlibpath_var=LD_LIBRARY_PATH
20328 shlibpath_overrides_runpath=yes
20329 ;;
20330
Reid Spencer2706f8c2004-09-19 23:53:36 +000020331nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020332 version_type=linux
20333 need_lib_prefix=no
20334 need_version=no
20335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 shlibpath_var=LD_LIBRARY_PATH
20338 shlibpath_overrides_runpath=yes
20339 ;;
20340
20341openbsd*)
20342 version_type=sunos
20343 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020344 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20347 shlibpath_var=LD_LIBRARY_PATH
20348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20349 case $host_os in
20350 openbsd2.[89] | openbsd2.[89].*)
20351 shlibpath_overrides_runpath=no
20352 ;;
20353 *)
20354 shlibpath_overrides_runpath=yes
20355 ;;
20356 esac
20357 else
20358 shlibpath_overrides_runpath=yes
20359 fi
20360 ;;
20361
20362os2*)
20363 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020364 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020365 need_lib_prefix=no
20366 library_names_spec='$libname${shared_ext} $libname.a'
20367 dynamic_linker='OS/2 ld.exe'
20368 shlibpath_var=LIBPATH
20369 ;;
20370
20371osf3* | osf4* | osf5*)
20372 version_type=osf
20373 need_lib_prefix=no
20374 need_version=no
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377 shlibpath_var=LD_LIBRARY_PATH
20378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20380 ;;
20381
20382sco3.2v5*)
20383 version_type=osf
20384 soname_spec='${libname}${release}${shared_ext}$major'
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 ;;
20388
20389solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=yes
20397 hardcode_into_libs=yes
20398 # ldd complains unless libraries are executable
20399 postinstall_cmds='chmod +x $lib'
20400 ;;
20401
20402sunos4*)
20403 version_type=sunos
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20405 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20406 shlibpath_var=LD_LIBRARY_PATH
20407 shlibpath_overrides_runpath=yes
20408 if test "$with_gnu_ld" = yes; then
20409 need_lib_prefix=no
20410 fi
20411 need_version=yes
20412 ;;
20413
20414sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20415 version_type=linux
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417 soname_spec='${libname}${release}${shared_ext}$major'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 case $host_vendor in
20420 sni)
20421 shlibpath_overrides_runpath=no
20422 need_lib_prefix=no
20423 export_dynamic_flag_spec='${wl}-Blargedynsym'
20424 runpath_var=LD_RUN_PATH
20425 ;;
20426 siemens)
20427 need_lib_prefix=no
20428 ;;
20429 motorola)
20430 need_lib_prefix=no
20431 need_version=no
20432 shlibpath_overrides_runpath=no
20433 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20434 ;;
20435 esac
20436 ;;
20437
20438sysv4*MP*)
20439 if test -d /usr/nec ;then
20440 version_type=linux
20441 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20442 soname_spec='$libname${shared_ext}.$major'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 fi
20445 ;;
20446
20447uts4*)
20448 version_type=linux
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 ;;
20453
20454*)
20455 dynamic_linker=no
20456 ;;
20457esac
20458echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20459echo "${ECHO_T}$dynamic_linker" >&6
20460test "$dynamic_linker" = no && can_build_shared=no
20461
Reid Spencer2706f8c2004-09-19 23:53:36 +000020462echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20463echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20464hardcode_action_F77=
20465if test -n "$hardcode_libdir_flag_spec_F77" || \
20466 test -n "$runpath_var_F77" || \
20467 test "X$hardcode_automatic_F77" = "Xyes" ; then
20468
20469 # We can hardcode non-existant directories.
20470 if test "$hardcode_direct_F77" != no &&
20471 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20472 # have to relink, otherwise we might link with an installed library
20473 # when we should be linking with a yet-to-be-installed one
20474 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20475 test "$hardcode_minus_L_F77" != no; then
20476 # Linking always hardcodes the temporary library directory.
20477 hardcode_action_F77=relink
20478 else
20479 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20480 hardcode_action_F77=immediate
20481 fi
20482else
20483 # We cannot hardcode anything, or else we can only hardcode existing
20484 # directories.
20485 hardcode_action_F77=unsupported
20486fi
20487echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20488echo "${ECHO_T}$hardcode_action_F77" >&6
20489
20490if test "$hardcode_action_F77" = relink; then
20491 # Fast installation is not supported
20492 enable_fast_install=no
20493elif test "$shlibpath_overrides_runpath" = yes ||
20494 test "$enable_shared" = no; then
20495 # Fast installation is not necessary
20496 enable_fast_install=needless
20497fi
20498
20499striplib=
20500old_striplib=
20501echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20502echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20503if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20504 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20505 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20506 echo "$as_me:$LINENO: result: yes" >&5
20507echo "${ECHO_T}yes" >&6
20508else
20509# FIXME - insert some real tests, host_os isn't really good enough
20510 case $host_os in
20511 darwin*)
20512 if test -n "$STRIP" ; then
20513 striplib="$STRIP -x"
20514 echo "$as_me:$LINENO: result: yes" >&5
20515echo "${ECHO_T}yes" >&6
20516 else
20517 echo "$as_me:$LINENO: result: no" >&5
20518echo "${ECHO_T}no" >&6
20519fi
20520 ;;
20521 *)
20522 echo "$as_me:$LINENO: result: no" >&5
20523echo "${ECHO_T}no" >&6
20524 ;;
20525 esac
20526fi
20527
20528
John Criswell47fdd832003-07-14 16:52:07 +000020529
20530# The else clause should only fire when bootstrapping the
20531# libtool distribution, otherwise you forgot to ship ltmain.sh
20532# with your package, and you will get complaints that there are
20533# no rules to generate ltmain.sh.
20534if test -f "$ltmain"; then
20535 # See if we are running on zsh, and set the options which allow our commands through
20536 # without removal of \ escapes.
20537 if test -n "${ZSH_VERSION+set}" ; then
20538 setopt NO_GLOB_SUBST
20539 fi
20540 # Now quote all the things that may contain metacharacters while being
20541 # careful not to overquote the AC_SUBSTed values. We take copies of the
20542 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020543 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20544 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020545 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20546 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20547 deplibs_check_method reload_flag reload_cmds need_locks \
20548 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20549 lt_cv_sys_global_symbol_to_c_name_address \
20550 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20551 old_postinstall_cmds old_postuninstall_cmds \
20552 compiler_F77 \
20553 CC_F77 \
20554 LD_F77 \
20555 lt_prog_compiler_wl_F77 \
20556 lt_prog_compiler_pic_F77 \
20557 lt_prog_compiler_static_F77 \
20558 lt_prog_compiler_no_builtin_flag_F77 \
20559 export_dynamic_flag_spec_F77 \
20560 thread_safe_flag_spec_F77 \
20561 whole_archive_flag_spec_F77 \
20562 enable_shared_with_static_runtimes_F77 \
20563 old_archive_cmds_F77 \
20564 old_archive_from_new_cmds_F77 \
20565 predep_objects_F77 \
20566 postdep_objects_F77 \
20567 predeps_F77 \
20568 postdeps_F77 \
20569 compiler_lib_search_path_F77 \
20570 archive_cmds_F77 \
20571 archive_expsym_cmds_F77 \
20572 postinstall_cmds_F77 \
20573 postuninstall_cmds_F77 \
20574 old_archive_from_expsyms_cmds_F77 \
20575 allow_undefined_flag_F77 \
20576 no_undefined_flag_F77 \
20577 export_symbols_cmds_F77 \
20578 hardcode_libdir_flag_spec_F77 \
20579 hardcode_libdir_flag_spec_ld_F77 \
20580 hardcode_libdir_separator_F77 \
20581 hardcode_automatic_F77 \
20582 module_cmds_F77 \
20583 module_expsym_cmds_F77 \
20584 lt_cv_prog_compiler_c_o_F77 \
20585 exclude_expsyms_F77 \
20586 include_expsyms_F77; do
20587
20588 case $var in
20589 old_archive_cmds_F77 | \
20590 old_archive_from_new_cmds_F77 | \
20591 archive_cmds_F77 | \
20592 archive_expsym_cmds_F77 | \
20593 module_cmds_F77 | \
20594 module_expsym_cmds_F77 | \
20595 old_archive_from_expsyms_cmds_F77 | \
20596 export_symbols_cmds_F77 | \
20597 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20598 postinstall_cmds | postuninstall_cmds | \
20599 old_postinstall_cmds | old_postuninstall_cmds | \
20600 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20601 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020602 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 +000020603 ;;
20604 *)
20605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20606 ;;
20607 esac
20608 done
20609
20610 case $lt_echo in
20611 *'\$0 --fallback-echo"')
20612 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20613 ;;
20614 esac
20615
20616cfgfile="$ofile"
20617
20618 cat <<__EOF__ >> "$cfgfile"
20619# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20620
20621# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20622
20623# Shell to use when invoking shell scripts.
20624SHELL=$lt_SHELL
20625
20626# Whether or not to build shared libraries.
20627build_libtool_libs=$enable_shared
20628
20629# Whether or not to build static libraries.
20630build_old_libs=$enable_static
20631
20632# Whether or not to add -lc for building shared libraries.
20633build_libtool_need_lc=$archive_cmds_need_lc_F77
20634
20635# Whether or not to disallow shared libs when runtime libs are static
20636allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20637
20638# Whether or not to optimize for fast installation.
20639fast_install=$enable_fast_install
20640
20641# The host system.
20642host_alias=$host_alias
20643host=$host
20644
20645# An echo program that does not interpret backslashes.
20646echo=$lt_echo
20647
20648# The archiver.
20649AR=$lt_AR
20650AR_FLAGS=$lt_AR_FLAGS
20651
20652# A C compiler.
20653LTCC=$lt_LTCC
20654
20655# A language-specific compiler.
20656CC=$lt_compiler_F77
20657
20658# Is the compiler the GNU C compiler?
20659with_gcc=$GCC_F77
20660
20661# An ERE matcher.
20662EGREP=$lt_EGREP
20663
20664# The linker used to build libraries.
20665LD=$lt_LD_F77
20666
20667# Whether we need hard or soft links.
20668LN_S=$lt_LN_S
20669
20670# A BSD-compatible nm program.
20671NM=$lt_NM
20672
20673# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020674STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020675
20676# Used to examine libraries when file_magic_cmd begins "file"
20677MAGIC_CMD=$MAGIC_CMD
20678
20679# Used on cygwin: DLL creation program.
20680DLLTOOL="$DLLTOOL"
20681
20682# Used on cygwin: object dumper.
20683OBJDUMP="$OBJDUMP"
20684
20685# Used on cygwin: assembler.
20686AS="$AS"
20687
20688# The name of the directory that contains temporary libtool files.
20689objdir=$objdir
20690
20691# How to create reloadable object files.
20692reload_flag=$lt_reload_flag
20693reload_cmds=$lt_reload_cmds
20694
20695# How to pass a linker flag through the compiler.
20696wl=$lt_lt_prog_compiler_wl_F77
20697
20698# Object file suffix (normally "o").
20699objext="$ac_objext"
20700
20701# Old archive suffix (normally "a").
20702libext="$libext"
20703
20704# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020705shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020706
20707# Executable file suffix (normally "").
20708exeext="$exeext"
20709
20710# Additional compiler flags for building library objects.
20711pic_flag=$lt_lt_prog_compiler_pic_F77
20712pic_mode=$pic_mode
20713
20714# What is the maximum length of a command?
20715max_cmd_len=$lt_cv_sys_max_cmd_len
20716
20717# Does compiler simultaneously support -c and -o options?
20718compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20719
20720# Must we lock files when doing compilation ?
20721need_locks=$lt_need_locks
20722
20723# Do we need the lib prefix for modules?
20724need_lib_prefix=$need_lib_prefix
20725
20726# Do we need a version for libraries?
20727need_version=$need_version
20728
20729# Whether dlopen is supported.
20730dlopen_support=$enable_dlopen
20731
20732# Whether dlopen of programs is supported.
20733dlopen_self=$enable_dlopen_self
20734
20735# Whether dlopen of statically linked programs is supported.
20736dlopen_self_static=$enable_dlopen_self_static
20737
20738# Compiler flag to prevent dynamic linking.
20739link_static_flag=$lt_lt_prog_compiler_static_F77
20740
20741# Compiler flag to turn off builtin functions.
20742no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20743
20744# Compiler flag to allow reflexive dlopens.
20745export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20746
20747# Compiler flag to generate shared objects directly from archives.
20748whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20749
20750# Compiler flag to generate thread-safe objects.
20751thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20752
20753# Library versioning type.
20754version_type=$version_type
20755
20756# Format of library name prefix.
20757libname_spec=$lt_libname_spec
20758
20759# List of archive names. First name is the real one, the rest are links.
20760# The last name is the one that the linker finds with -lNAME.
20761library_names_spec=$lt_library_names_spec
20762
20763# The coded name of the library, if different from the real name.
20764soname_spec=$lt_soname_spec
20765
20766# Commands used to build and install an old-style archive.
20767RANLIB=$lt_RANLIB
20768old_archive_cmds=$lt_old_archive_cmds_F77
20769old_postinstall_cmds=$lt_old_postinstall_cmds
20770old_postuninstall_cmds=$lt_old_postuninstall_cmds
20771
20772# Create an old-style archive from a shared archive.
20773old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20774
20775# Create a temporary old-style archive to link instead of a shared archive.
20776old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20777
20778# Commands used to build and install a shared archive.
20779archive_cmds=$lt_archive_cmds_F77
20780archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20781postinstall_cmds=$lt_postinstall_cmds
20782postuninstall_cmds=$lt_postuninstall_cmds
20783
20784# Commands used to build a loadable module (assumed same as above if empty)
20785module_cmds=$lt_module_cmds_F77
20786module_expsym_cmds=$lt_module_expsym_cmds_F77
20787
20788# Commands to strip libraries.
20789old_striplib=$lt_old_striplib
20790striplib=$lt_striplib
20791
20792# Dependencies to place before the objects being linked to create a
20793# shared library.
20794predep_objects=$lt_predep_objects_F77
20795
20796# Dependencies to place after the objects being linked to create a
20797# shared library.
20798postdep_objects=$lt_postdep_objects_F77
20799
20800# Dependencies to place before the objects being linked to create a
20801# shared library.
20802predeps=$lt_predeps_F77
20803
20804# Dependencies to place after the objects being linked to create a
20805# shared library.
20806postdeps=$lt_postdeps_F77
20807
20808# The library search path used internally by the compiler when linking
20809# a shared library.
20810compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20811
20812# Method to check whether dependent libraries are shared objects.
20813deplibs_check_method=$lt_deplibs_check_method
20814
20815# Command to use when deplibs_check_method == file_magic.
20816file_magic_cmd=$lt_file_magic_cmd
20817
20818# Flag that allows shared libraries with undefined symbols to be built.
20819allow_undefined_flag=$lt_allow_undefined_flag_F77
20820
20821# Flag that forces no undefined symbols.
20822no_undefined_flag=$lt_no_undefined_flag_F77
20823
20824# Commands used to finish a libtool library installation in a directory.
20825finish_cmds=$lt_finish_cmds
20826
20827# Same as above, but a single script fragment to be evaled but not shown.
20828finish_eval=$lt_finish_eval
20829
20830# Take the output of nm and produce a listing of raw symbols and C names.
20831global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20832
20833# Transform the output of nm in a proper C declaration
20834global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20835
20836# Transform the output of nm in a C name address pair
20837global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20838
20839# This is the shared library runtime path variable.
20840runpath_var=$runpath_var
20841
20842# This is the shared library path variable.
20843shlibpath_var=$shlibpath_var
20844
20845# Is shlibpath searched before the hard-coded library search path?
20846shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20847
20848# How to hardcode a shared library path into an executable.
20849hardcode_action=$hardcode_action_F77
20850
20851# Whether we should hardcode library paths into libraries.
20852hardcode_into_libs=$hardcode_into_libs
20853
20854# Flag to hardcode \$libdir into a binary during linking.
20855# This must work even if \$libdir does not exist.
20856hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20857
20858# If ld is used when linking, flag to hardcode \$libdir into
20859# a binary during linking. This must work even if \$libdir does
20860# not exist.
20861hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20862
20863# Whether we need a single -rpath flag with a separated argument.
20864hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20865
20866# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20867# resulting binary.
20868hardcode_direct=$hardcode_direct_F77
20869
20870# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20871# resulting binary.
20872hardcode_minus_L=$hardcode_minus_L_F77
20873
20874# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20875# the resulting binary.
20876hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20877
20878# Set to yes if building a shared library automatically hardcodes DIR into the library
20879# and all subsequent libraries and executables linked against it.
20880hardcode_automatic=$hardcode_automatic_F77
20881
20882# Variables whose values should be saved in libtool wrapper scripts and
20883# restored at relink time.
20884variables_saved_for_relink="$variables_saved_for_relink"
20885
20886# Whether libtool must link a program against all its dependency libraries.
20887link_all_deplibs=$link_all_deplibs_F77
20888
20889# Compile-time system search path for libraries
20890sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20891
20892# Run-time system search path for libraries
20893sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20894
20895# Fix the shell variable \$srcfile for the compiler.
20896fix_srcfile_path="$fix_srcfile_path_F77"
20897
20898# Set to yes if exported symbols are required.
20899always_export_symbols=$always_export_symbols_F77
20900
20901# The commands to list exported symbols.
20902export_symbols_cmds=$lt_export_symbols_cmds_F77
20903
20904# The commands to extract the exported symbol list from a shared archive.
20905extract_expsyms_cmds=$lt_extract_expsyms_cmds
20906
20907# Symbols that should not be listed in the preloaded symbols.
20908exclude_expsyms=$lt_exclude_expsyms_F77
20909
20910# Symbols that must always be exported.
20911include_expsyms=$lt_include_expsyms_F77
20912
20913# ### END LIBTOOL TAG CONFIG: $tagname
20914
20915__EOF__
20916
20917
20918else
20919 # If there is no Makefile yet, we rely on a make rule to execute
20920 # `config.status --recheck' to rerun these tests and create the
20921 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020922 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20923 if test -f "$ltmain_in"; then
20924 test -f Makefile && make "$ltmain"
20925 fi
John Criswell47fdd832003-07-14 16:52:07 +000020926fi
20927
20928
20929ac_ext=c
20930ac_cpp='$CPP $CPPFLAGS'
20931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20933ac_compiler_gnu=$ac_cv_c_compiler_gnu
20934
20935CC="$lt_save_CC"
20936
20937 else
20938 tagname=""
20939 fi
20940 ;;
20941
20942 GCJ)
20943 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020944 ac_ext=c
20945ac_cpp='$CPP $CPPFLAGS'
20946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020949
20950
20951# Source file extension for Java test sources.
20952ac_ext=java
20953
20954# Object file extension for compiled Java test sources.
20955objext=o
20956objext_GCJ=$objext
20957
20958# Code to be used in simple compile tests
20959lt_simple_compile_test_code="class foo {}\n"
20960
20961# Code to be used in simple link tests
20962lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20963
20964# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20965
20966# If no C compiler was specified, use CC.
20967LTCC=${LTCC-"$CC"}
20968
20969# Allow CC to be a program name with arguments.
20970compiler=$CC
20971
20972
20973# Allow CC to be a program name with arguments.
20974lt_save_CC="$CC"
20975CC=${GCJ-"gcj"}
20976compiler=$CC
20977compiler_GCJ=$CC
20978
20979# GCJ did not exist at the time GCC didn't implicitly link libc in.
20980archive_cmds_need_lc_GCJ=no
20981
John Criswell47fdd832003-07-14 16:52:07 +000020982
20983lt_prog_compiler_no_builtin_flag_GCJ=
20984
20985if test "$GCC" = yes; then
20986 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20987
Reid Spencer2706f8c2004-09-19 23:53:36 +000020988
20989echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020990echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20991if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20993else
20994 lt_cv_prog_compiler_rtti_exceptions=no
20995 ac_outfile=conftest.$ac_objext
20996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20997 lt_compiler_flag="-fno-rtti -fno-exceptions"
20998 # Insert the option either (1) after the last *FLAGS variable, or
20999 # (2) before a word containing "conftest.", or (3) at the end.
21000 # Note that $ac_compile itself does not contain backslashes and begins
21001 # with a dollar sign (not a hyphen), so the echo should work correctly.
21002 # The option is referenced via a variable to avoid confusing sed.
21003 lt_compile=`echo "$ac_compile" | $SED \
21004 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21006 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000021007 (eval echo "\"\$as_me:21007: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021008 (eval "$lt_compile" 2>conftest.err)
21009 ac_status=$?
21010 cat conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000021011 echo "$as_me:21011: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021012 if (exit $ac_status) && test -s "$ac_outfile"; then
21013 # The compiler can only warn and ignore the option if not recognized
21014 # So say no if there are warnings
21015 if test ! -s conftest.err; then
21016 lt_cv_prog_compiler_rtti_exceptions=yes
21017 fi
21018 fi
21019 $rm conftest*
21020
21021fi
21022echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21023echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21024
21025if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21026 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21027else
21028 :
21029fi
21030
21031fi
21032
21033lt_prog_compiler_wl_GCJ=
21034lt_prog_compiler_pic_GCJ=
21035lt_prog_compiler_static_GCJ=
21036
21037echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21038echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21039
21040 if test "$GCC" = yes; then
21041 lt_prog_compiler_wl_GCJ='-Wl,'
21042 lt_prog_compiler_static_GCJ='-static'
21043
21044 case $host_os in
21045 aix*)
21046 # All AIX code is PIC.
21047 if test "$host_cpu" = ia64; then
21048 # AIX 5 now supports IA64 processor
21049 lt_prog_compiler_static_GCJ='-Bstatic'
21050 fi
21051 ;;
21052
21053 amigaos*)
21054 # FIXME: we need at least 68020 code to build shared libraries, but
21055 # adding the `-m68020' flag to GCC prevents building anything better,
21056 # like `-m68040'.
21057 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21058 ;;
21059
21060 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21061 # PIC is the default for these OSes.
21062 ;;
21063
21064 mingw* | pw32* | os2*)
21065 # This hack is so that the source file can tell whether it is being
21066 # built for inclusion in a dll (and should export symbols for example).
21067 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21068 ;;
21069
21070 darwin* | rhapsody*)
21071 # PIC is the default on this platform
21072 # Common symbols not allowed in MH_DYLIB files
21073 lt_prog_compiler_pic_GCJ='-fno-common'
21074 ;;
21075
21076 msdosdjgpp*)
21077 # Just because we use GCC doesn't mean we suddenly get shared libraries
21078 # on systems that don't support them.
21079 lt_prog_compiler_can_build_shared_GCJ=no
21080 enable_shared=no
21081 ;;
21082
21083 sysv4*MP*)
21084 if test -d /usr/nec; then
21085 lt_prog_compiler_pic_GCJ=-Kconform_pic
21086 fi
21087 ;;
21088
21089 hpux*)
21090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21091 # not for PA HP-UX.
21092 case "$host_cpu" in
21093 hppa*64*|ia64*)
21094 # +Z the default
21095 ;;
21096 *)
21097 lt_prog_compiler_pic_GCJ='-fPIC'
21098 ;;
21099 esac
21100 ;;
21101
21102 *)
21103 lt_prog_compiler_pic_GCJ='-fPIC'
21104 ;;
21105 esac
21106 else
21107 # PORTME Check for flag to pass linker flags through the system compiler.
21108 case $host_os in
21109 aix*)
21110 lt_prog_compiler_wl_GCJ='-Wl,'
21111 if test "$host_cpu" = ia64; then
21112 # AIX 5 now supports IA64 processor
21113 lt_prog_compiler_static_GCJ='-Bstatic'
21114 else
21115 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21116 fi
21117 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021118 darwin*)
21119 # PIC is the default on this platform
21120 # Common symbols not allowed in MH_DYLIB files
21121 case "$cc_basename" in
21122 xlc*)
21123 lt_prog_compiler_pic_GCJ='-qnocommon'
21124 lt_prog_compiler_wl_GCJ='-Wl,'
21125 ;;
21126 esac
21127 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021128
21129 mingw* | pw32* | os2*)
21130 # This hack is so that the source file can tell whether it is being
21131 # built for inclusion in a dll (and should export symbols for example).
21132 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21133 ;;
21134
21135 hpux9* | hpux10* | hpux11*)
21136 lt_prog_compiler_wl_GCJ='-Wl,'
21137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21138 # not for PA HP-UX.
21139 case "$host_cpu" in
21140 hppa*64*|ia64*)
21141 # +Z the default
21142 ;;
21143 *)
21144 lt_prog_compiler_pic_GCJ='+Z'
21145 ;;
21146 esac
21147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21148 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21149 ;;
21150
21151 irix5* | irix6* | nonstopux*)
21152 lt_prog_compiler_wl_GCJ='-Wl,'
21153 # PIC (with -KPIC) is the default.
21154 lt_prog_compiler_static_GCJ='-non_shared'
21155 ;;
21156
21157 newsos6)
21158 lt_prog_compiler_pic_GCJ='-KPIC'
21159 lt_prog_compiler_static_GCJ='-Bstatic'
21160 ;;
21161
21162 linux*)
21163 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021164 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021165 lt_prog_compiler_wl_GCJ='-Wl,'
21166 lt_prog_compiler_pic_GCJ='-KPIC'
21167 lt_prog_compiler_static_GCJ='-static'
21168 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021169 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021170 lt_prog_compiler_wl_GCJ='-Wl,'
21171 # All Alpha code is PIC.
21172 lt_prog_compiler_static_GCJ='-non_shared'
21173 ;;
21174 esac
21175 ;;
21176
21177 osf3* | osf4* | osf5*)
21178 lt_prog_compiler_wl_GCJ='-Wl,'
21179 # All OSF/1 code is PIC.
21180 lt_prog_compiler_static_GCJ='-non_shared'
21181 ;;
21182
21183 sco3.2v5*)
21184 lt_prog_compiler_pic_GCJ='-Kpic'
21185 lt_prog_compiler_static_GCJ='-dn'
21186 ;;
21187
21188 solaris*)
21189 lt_prog_compiler_wl_GCJ='-Wl,'
21190 lt_prog_compiler_pic_GCJ='-KPIC'
21191 lt_prog_compiler_static_GCJ='-Bstatic'
21192 ;;
21193
21194 sunos4*)
21195 lt_prog_compiler_wl_GCJ='-Qoption ld '
21196 lt_prog_compiler_pic_GCJ='-PIC'
21197 lt_prog_compiler_static_GCJ='-Bstatic'
21198 ;;
21199
21200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21201 lt_prog_compiler_wl_GCJ='-Wl,'
21202 lt_prog_compiler_pic_GCJ='-KPIC'
21203 lt_prog_compiler_static_GCJ='-Bstatic'
21204 ;;
21205
21206 sysv4*MP*)
21207 if test -d /usr/nec ;then
21208 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21209 lt_prog_compiler_static_GCJ='-Bstatic'
21210 fi
21211 ;;
21212
21213 uts4*)
21214 lt_prog_compiler_pic_GCJ='-pic'
21215 lt_prog_compiler_static_GCJ='-Bstatic'
21216 ;;
21217
21218 *)
21219 lt_prog_compiler_can_build_shared_GCJ=no
21220 ;;
21221 esac
21222 fi
21223
21224echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21225echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21226
21227#
21228# Check to make sure the PIC flag actually works.
21229#
21230if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021231
21232echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021233echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21234if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
21236else
21237 lt_prog_compiler_pic_works_GCJ=no
21238 ac_outfile=conftest.$ac_objext
21239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21240 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21241 # Insert the option either (1) after the last *FLAGS variable, or
21242 # (2) before a word containing "conftest.", or (3) at the end.
21243 # Note that $ac_compile itself does not contain backslashes and begins
21244 # with a dollar sign (not a hyphen), so the echo should work correctly.
21245 # The option is referenced via a variable to avoid confusing sed.
21246 lt_compile=`echo "$ac_compile" | $SED \
21247 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21249 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000021250 (eval echo "\"\$as_me:21250: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021251 (eval "$lt_compile" 2>conftest.err)
21252 ac_status=$?
21253 cat conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000021254 echo "$as_me:21254: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021255 if (exit $ac_status) && test -s "$ac_outfile"; then
21256 # The compiler can only warn and ignore the option if not recognized
21257 # So say no if there are warnings
21258 if test ! -s conftest.err; then
21259 lt_prog_compiler_pic_works_GCJ=yes
21260 fi
21261 fi
21262 $rm conftest*
21263
21264fi
21265echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21266echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21267
21268if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21269 case $lt_prog_compiler_pic_GCJ in
21270 "" | " "*) ;;
21271 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21272 esac
21273else
21274 lt_prog_compiler_pic_GCJ=
21275 lt_prog_compiler_can_build_shared_GCJ=no
21276fi
21277
21278fi
21279case "$host_os" in
21280 # For platforms which do not support PIC, -DPIC is meaningless:
21281 *djgpp*)
21282 lt_prog_compiler_pic_GCJ=
21283 ;;
21284 *)
21285 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21286 ;;
21287esac
21288
21289echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21290echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21291if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21293else
21294 lt_cv_prog_compiler_c_o_GCJ=no
21295 $rm -r conftest 2>/dev/null
21296 mkdir conftest
21297 cd conftest
21298 mkdir out
21299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21300
John Criswell47fdd832003-07-14 16:52:07 +000021301 lt_compiler_flag="-o out/conftest2.$ac_objext"
21302 # Insert the option either (1) after the last *FLAGS variable, or
21303 # (2) before a word containing "conftest.", or (3) at the end.
21304 # Note that $ac_compile itself does not contain backslashes and begins
21305 # with a dollar sign (not a hyphen), so the echo should work correctly.
21306 lt_compile=`echo "$ac_compile" | $SED \
21307 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21309 -e 's:$: $lt_compiler_flag:'`
Reid Spencer675f0922005-04-22 17:06:18 +000021310 (eval echo "\"\$as_me:21310: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021311 (eval "$lt_compile" 2>out/conftest.err)
21312 ac_status=$?
21313 cat out/conftest.err >&5
Reid Spencer675f0922005-04-22 17:06:18 +000021314 echo "$as_me:21314: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21316 then
21317 # The compiler can only warn and ignore the option if not recognized
21318 # So say no if there are warnings
21319 if test ! -s out/conftest.err; then
21320 lt_cv_prog_compiler_c_o_GCJ=yes
21321 fi
21322 fi
21323 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021324 $rm conftest*
21325 # SGI C++ compiler will create directory out/ii_files/ for
21326 # template instantiation
21327 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21328 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021329 cd ..
21330 rmdir conftest
21331 $rm conftest*
21332
21333fi
21334echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21335echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21336
21337
21338hard_links="nottested"
21339if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21340 # do not overwrite the value of need_locks provided by the user
21341 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21342echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21343 hard_links=yes
21344 $rm conftest*
21345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21346 touch conftest.a
21347 ln conftest.a conftest.b 2>&5 || hard_links=no
21348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21349 echo "$as_me:$LINENO: result: $hard_links" >&5
21350echo "${ECHO_T}$hard_links" >&6
21351 if test "$hard_links" = no; then
21352 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21353echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21354 need_locks=warn
21355 fi
21356else
21357 need_locks=no
21358fi
21359
21360echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21361echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21362
21363 runpath_var=
21364 allow_undefined_flag_GCJ=
21365 enable_shared_with_static_runtimes_GCJ=no
21366 archive_cmds_GCJ=
21367 archive_expsym_cmds_GCJ=
21368 old_archive_From_new_cmds_GCJ=
21369 old_archive_from_expsyms_cmds_GCJ=
21370 export_dynamic_flag_spec_GCJ=
21371 whole_archive_flag_spec_GCJ=
21372 thread_safe_flag_spec_GCJ=
21373 hardcode_libdir_flag_spec_GCJ=
21374 hardcode_libdir_flag_spec_ld_GCJ=
21375 hardcode_libdir_separator_GCJ=
21376 hardcode_direct_GCJ=no
21377 hardcode_minus_L_GCJ=no
21378 hardcode_shlibpath_var_GCJ=unsupported
21379 link_all_deplibs_GCJ=unknown
21380 hardcode_automatic_GCJ=no
21381 module_cmds_GCJ=
21382 module_expsym_cmds_GCJ=
21383 always_export_symbols_GCJ=no
21384 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21385 # include_expsyms should be a list of space-separated symbols to be *always*
21386 # included in the symbol list
21387 include_expsyms_GCJ=
21388 # exclude_expsyms can be an extended regexp of symbols to exclude
21389 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21390 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21391 # as well as any symbol that contains `d'.
21392 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21393 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21394 # platforms (ab)use it in PIC code, but their linkers get confused if
21395 # the symbol is explicitly referenced. Since portable code cannot
21396 # rely on this symbol name, it's probably fine to never include it in
21397 # preloaded symbol tables.
21398 extract_expsyms_cmds=
21399
21400 case $host_os in
21401 cygwin* | mingw* | pw32*)
21402 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21403 # When not using gcc, we currently assume that we are using
21404 # Microsoft Visual C++.
21405 if test "$GCC" != yes; then
21406 with_gnu_ld=no
21407 fi
21408 ;;
21409 openbsd*)
21410 with_gnu_ld=no
21411 ;;
21412 esac
21413
21414 ld_shlibs_GCJ=yes
21415 if test "$with_gnu_ld" = yes; then
21416 # If archive_cmds runs LD, not CC, wlarc should be empty
21417 wlarc='${wl}'
21418
21419 # See if GNU ld supports shared libraries.
21420 case $host_os in
21421 aix3* | aix4* | aix5*)
21422 # On AIX/PPC, the GNU linker is very broken
21423 if test "$host_cpu" != ia64; then
21424 ld_shlibs_GCJ=no
21425 cat <<EOF 1>&2
21426
21427*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21428*** to be unable to reliably create shared libraries on AIX.
21429*** Therefore, libtool is disabling shared libraries support. If you
21430*** really care for shared libraries, you may want to modify your PATH
21431*** so that a non-GNU linker is found, and then restart.
21432
21433EOF
21434 fi
21435 ;;
21436
21437 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021438 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 +000021439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21440 hardcode_minus_L_GCJ=yes
21441
21442 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21443 # that the semantics of dynamic libraries on AmigaOS, at least up
21444 # to version 4, is to share data among multiple programs linked
21445 # with the same dynamic library. Since this doesn't match the
21446 # behavior of shared libraries on other platforms, we can't use
21447 # them.
21448 ld_shlibs_GCJ=no
21449 ;;
21450
21451 beos*)
21452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21453 allow_undefined_flag_GCJ=unsupported
21454 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21455 # support --undefined. This deserves some investigation. FIXME
21456 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21457 else
21458 ld_shlibs_GCJ=no
21459 fi
21460 ;;
21461
21462 cygwin* | mingw* | pw32*)
21463 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21464 # as there is no search path for DLLs.
21465 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21466 allow_undefined_flag_GCJ=unsupported
21467 always_export_symbols_GCJ=no
21468 enable_shared_with_static_runtimes_GCJ=yes
21469 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21470
21471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21473 # If the export-symbols file already is a .def file (1st line
21474 # is EXPORTS), use it as is; otherwise, prepend...
21475 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21476 cp $export_symbols $output_objdir/$soname.def;
21477 else
21478 echo EXPORTS > $output_objdir/$soname.def;
21479 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021480 fi~
21481 $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 +000021482 else
21483 ld_shlibs=no
21484 fi
21485 ;;
21486
21487 netbsd*)
21488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21489 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21490 wlarc=
21491 else
21492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21493 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21494 fi
21495 ;;
21496
21497 solaris* | sysv5*)
21498 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21499 ld_shlibs_GCJ=no
21500 cat <<EOF 1>&2
21501
21502*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21503*** create shared libraries on Solaris systems. Therefore, libtool
21504*** is disabling shared libraries support. We urge you to upgrade GNU
21505*** binutils to release 2.9.1 or newer. Another option is to modify
21506*** your PATH or compiler configuration so that the native linker is
21507*** used, and then restart.
21508
21509EOF
21510 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21511 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21512 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21513 else
21514 ld_shlibs_GCJ=no
21515 fi
21516 ;;
21517
21518 sunos4*)
21519 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21520 wlarc=
21521 hardcode_direct_GCJ=yes
21522 hardcode_shlibpath_var_GCJ=no
21523 ;;
21524
Reid Spencer2706f8c2004-09-19 23:53:36 +000021525 linux*)
21526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21527 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21528 archive_cmds_GCJ="$tmp_archive_cmds"
21529 supports_anon_versioning=no
21530 case `$LD -v 2>/dev/null` in
21531 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21532 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21533 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21534 *\ 2.11.*) ;; # other 2.11 versions
21535 *) supports_anon_versioning=yes ;;
21536 esac
21537 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021538 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21539cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21540$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021541 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21542 else
21543 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21544 fi
21545 else
21546 ld_shlibs_GCJ=no
21547 fi
21548 ;;
21549
John Criswell47fdd832003-07-14 16:52:07 +000021550 *)
21551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21552 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21553 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21554 else
21555 ld_shlibs_GCJ=no
21556 fi
21557 ;;
21558 esac
21559
21560 if test "$ld_shlibs_GCJ" = yes; then
21561 runpath_var=LD_RUN_PATH
21562 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21563 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21564 # ancient GNU ld didn't support --whole-archive et. al.
21565 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21566 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21567 else
21568 whole_archive_flag_spec_GCJ=
21569 fi
21570 fi
21571 else
21572 # PORTME fill in a description of your system's linker (not GNU ld)
21573 case $host_os in
21574 aix3*)
21575 allow_undefined_flag_GCJ=unsupported
21576 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021577 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 +000021578 # Note: this linker hardcodes the directories in LIBPATH if there
21579 # are no directories specified by -L.
21580 hardcode_minus_L_GCJ=yes
21581 if test "$GCC" = yes && test -z "$link_static_flag"; then
21582 # Neither direct hardcoding nor static linking is supported with a
21583 # broken collect2.
21584 hardcode_direct_GCJ=unsupported
21585 fi
21586 ;;
21587
21588 aix4* | aix5*)
21589 if test "$host_cpu" = ia64; then
21590 # On IA64, the linker does run time linking by default, so we don't
21591 # have to do anything special.
21592 aix_use_runtimelinking=no
21593 exp_sym_flag='-Bexport'
21594 no_entry_flag=""
21595 else
21596 # If we're using GNU nm, then we don't want the "-C" option.
21597 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21598 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21599 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'
21600 else
21601 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'
21602 fi
21603 aix_use_runtimelinking=no
21604
21605 # Test if we are trying to use run time linking or normal
21606 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21607 # need to do runtime linking.
21608 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21609 for ld_flag in $LDFLAGS; do
21610 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21611 aix_use_runtimelinking=yes
21612 break
21613 fi
21614 done
21615 esac
21616
21617 exp_sym_flag='-bexport'
21618 no_entry_flag='-bnoentry'
21619 fi
21620
21621 # When large executables or shared objects are built, AIX ld can
21622 # have problems creating the table of contents. If linking a library
21623 # or program results in "error TOC overflow" add -mminimal-toc to
21624 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21625 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21626
21627 archive_cmds_GCJ=''
21628 hardcode_direct_GCJ=yes
21629 hardcode_libdir_separator_GCJ=':'
21630 link_all_deplibs_GCJ=yes
21631
21632 if test "$GCC" = yes; then
21633 case $host_os in aix4.012|aix4.012.*)
21634 # We only want to do this on AIX 4.2 and lower, the check
21635 # below for broken collect2 doesn't work under 4.3+
21636 collect2name=`${CC} -print-prog-name=collect2`
21637 if test -f "$collect2name" && \
21638 strings "$collect2name" | grep resolve_lib_name >/dev/null
21639 then
21640 # We have reworked collect2
21641 hardcode_direct_GCJ=yes
21642 else
21643 # We have old collect2
21644 hardcode_direct_GCJ=unsupported
21645 # It fails to find uninstalled libraries when the uninstalled
21646 # path is not listed in the libpath. Setting hardcode_minus_L
21647 # to unsupported forces relinking
21648 hardcode_minus_L_GCJ=yes
21649 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21650 hardcode_libdir_separator_GCJ=
21651 fi
21652 esac
21653 shared_flag='-shared'
21654 else
21655 # not using gcc
21656 if test "$host_cpu" = ia64; then
21657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21658 # chokes on -Wl,-G. The following line is correct:
21659 shared_flag='-G'
21660 else
21661 if test "$aix_use_runtimelinking" = yes; then
21662 shared_flag='${wl}-G'
21663 else
21664 shared_flag='${wl}-bM:SRE'
21665 fi
21666 fi
21667 fi
21668
21669 # It seems that -bexpall does not export symbols beginning with
21670 # underscore (_), so it is better to generate a list of symbols to export.
21671 always_export_symbols_GCJ=yes
21672 if test "$aix_use_runtimelinking" = yes; then
21673 # Warning - without using the other runtime loading flags (-brtl),
21674 # -berok will link without error, but may produce a broken library.
21675 allow_undefined_flag_GCJ='-berok'
21676 # Determine the default libpath from the value encoded in an empty executable.
21677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021678/* confdefs.h. */
21679_ACEOF
21680cat confdefs.h >>conftest.$ac_ext
21681cat >>conftest.$ac_ext <<_ACEOF
21682/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021683
John Criswell47fdd832003-07-14 16:52:07 +000021684int
21685main ()
21686{
21687
21688 ;
21689 return 0;
21690}
21691_ACEOF
21692rm -f conftest.$ac_objext conftest$ac_exeext
21693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021694 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021696 grep -v '^ *+' conftest.er1 >conftest.err
21697 rm -f conftest.er1
21698 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021701 { ac_try='test -z "$ac_c_werror_flag"
21702 || test ! -s conftest.err'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; } &&
21708 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; }; then
21714
21715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21716}'`
21717# Check for a 64-bit object if we didn't find anything.
21718if 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; }
21719}'`; fi
21720else
21721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021722sed 's/^/| /' conftest.$ac_ext >&5
21723
John Criswell47fdd832003-07-14 16:52:07 +000021724fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021725rm -f conftest.err conftest.$ac_objext \
21726 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21728
21729 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21730 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"
21731 else
21732 if test "$host_cpu" = ia64; then
21733 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21734 allow_undefined_flag_GCJ="-z nodefs"
21735 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"
21736 else
21737 # Determine the default libpath from the value encoded in an empty executable.
21738 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021739/* confdefs.h. */
21740_ACEOF
21741cat confdefs.h >>conftest.$ac_ext
21742cat >>conftest.$ac_ext <<_ACEOF
21743/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021744
John Criswell47fdd832003-07-14 16:52:07 +000021745int
21746main ()
21747{
21748
21749 ;
21750 return 0;
21751}
21752_ACEOF
21753rm -f conftest.$ac_objext conftest$ac_exeext
21754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021755 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021756 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021762 { ac_try='test -z "$ac_c_werror_flag"
21763 || test ! -s conftest.err'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; } &&
21769 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21772 ac_status=$?
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; }; then
21775
21776aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21777}'`
21778# Check for a 64-bit object if we didn't find anything.
21779if 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; }
21780}'`; fi
21781else
21782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021783sed 's/^/| /' conftest.$ac_ext >&5
21784
John Criswell47fdd832003-07-14 16:52:07 +000021785fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021786rm -f conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21789
21790 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21791 # Warning - without using the other run time loading flags,
21792 # -berok will link without error, but may produce a broken library.
21793 no_undefined_flag_GCJ=' ${wl}-bernotok'
21794 allow_undefined_flag_GCJ=' ${wl}-berok'
21795 # -bexpall does not export symbols beginning with underscore (_)
21796 always_export_symbols_GCJ=yes
21797 # Exported symbols can be pulled into shared objects from archives
21798 whole_archive_flag_spec_GCJ=' '
21799 archive_cmds_need_lc_GCJ=yes
21800 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021801 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 +000021802 fi
21803 fi
21804 ;;
21805
21806 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021807 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 +000021808 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21809 hardcode_minus_L_GCJ=yes
21810 # see comment about different semantics on the GNU ld section
21811 ld_shlibs_GCJ=no
21812 ;;
21813
Reid Spencer2706f8c2004-09-19 23:53:36 +000021814 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021815 export_dynamic_flag_spec_GCJ=-rdynamic
21816 ;;
21817
21818 cygwin* | mingw* | pw32*)
21819 # When not using gcc, we currently assume that we are using
21820 # Microsoft Visual C++.
21821 # hardcode_libdir_flag_spec is actually meaningless, as there is
21822 # no search path for DLLs.
21823 hardcode_libdir_flag_spec_GCJ=' '
21824 allow_undefined_flag_GCJ=unsupported
21825 # Tell ltmain to make .lib files, not .a files.
21826 libext=lib
21827 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021828 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021829 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021830 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 +000021831 # The linker will automatically build a .lib file if we build a DLL.
21832 old_archive_From_new_cmds_GCJ='true'
21833 # FIXME: Should let the user specify the lib program.
21834 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21835 fix_srcfile_path='`cygpath -w "$srcfile"`'
21836 enable_shared_with_static_runtimes_GCJ=yes
21837 ;;
21838
21839 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021840 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021841 rhapsody* | darwin1.[012])
21842 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21843 ;;
21844 *) # Darwin 1.3 on
21845 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21846 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21847 else
21848 case ${MACOSX_DEPLOYMENT_TARGET} in
21849 10.[012])
21850 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21851 ;;
21852 10.*)
21853 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21854 ;;
21855 esac
21856 fi
21857 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021858 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021860 hardcode_direct_GCJ=no
21861 hardcode_automatic_GCJ=yes
21862 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021863 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021864 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021865 if test "$GCC" = yes ; then
21866 output_verbose_link_cmd='echo'
21867 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21868 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21869 # 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 +000021870 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}'
21871 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 +000021872 else
21873 case "$cc_basename" in
21874 xlc*)
21875 output_verbose_link_cmd='echo'
21876 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21877 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21878 # 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 +000021879 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}'
21880 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 +000021881 ;;
21882 *)
21883 ld_shlibs_GCJ=no
21884 ;;
21885 esac
John Criswell47fdd832003-07-14 16:52:07 +000021886 fi
21887 ;;
21888
21889 dgux*)
21890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21891 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21892 hardcode_shlibpath_var_GCJ=no
21893 ;;
21894
21895 freebsd1*)
21896 ld_shlibs_GCJ=no
21897 ;;
21898
21899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21900 # support. Future versions do this automatically, but an explicit c++rt0.o
21901 # does not break anything, and helps significantly (at the cost of a little
21902 # extra space).
21903 freebsd2.2*)
21904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21906 hardcode_direct_GCJ=yes
21907 hardcode_shlibpath_var_GCJ=no
21908 ;;
21909
21910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21911 freebsd2*)
21912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21913 hardcode_direct_GCJ=yes
21914 hardcode_minus_L_GCJ=yes
21915 hardcode_shlibpath_var_GCJ=no
21916 ;;
21917
21918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021919 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021920 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21921 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21922 hardcode_direct_GCJ=yes
21923 hardcode_shlibpath_var_GCJ=no
21924 ;;
21925
21926 hpux9*)
21927 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021928 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 +000021929 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021930 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 +000021931 fi
21932 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21933 hardcode_libdir_separator_GCJ=:
21934 hardcode_direct_GCJ=yes
21935
21936 # hardcode_minus_L: Not really in the search PATH,
21937 # but as the default location of the library.
21938 hardcode_minus_L_GCJ=yes
21939 export_dynamic_flag_spec_GCJ='${wl}-E'
21940 ;;
21941
21942 hpux10* | hpux11*)
21943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21944 case "$host_cpu" in
21945 hppa*64*|ia64*)
21946 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21947 ;;
21948 *)
21949 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21950 ;;
21951 esac
21952 else
21953 case "$host_cpu" in
21954 hppa*64*|ia64*)
21955 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21956 ;;
21957 *)
21958 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21959 ;;
21960 esac
21961 fi
21962 if test "$with_gnu_ld" = no; then
21963 case "$host_cpu" in
21964 hppa*64*)
21965 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21966 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21967 hardcode_libdir_separator_GCJ=:
21968 hardcode_direct_GCJ=no
21969 hardcode_shlibpath_var_GCJ=no
21970 ;;
21971 ia64*)
21972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21973 hardcode_direct_GCJ=no
21974 hardcode_shlibpath_var_GCJ=no
21975
21976 # hardcode_minus_L: Not really in the search PATH,
21977 # but as the default location of the library.
21978 hardcode_minus_L_GCJ=yes
21979 ;;
21980 *)
21981 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21982 hardcode_libdir_separator_GCJ=:
21983 hardcode_direct_GCJ=yes
21984 export_dynamic_flag_spec_GCJ='${wl}-E'
21985
21986 # hardcode_minus_L: Not really in the search PATH,
21987 # but as the default location of the library.
21988 hardcode_minus_L_GCJ=yes
21989 ;;
21990 esac
21991 fi
21992 ;;
21993
21994 irix5* | irix6* | nonstopux*)
21995 if test "$GCC" = yes; then
21996 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'
21997 else
21998 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'
21999 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22000 fi
22001 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22002 hardcode_libdir_separator_GCJ=:
22003 link_all_deplibs_GCJ=yes
22004 ;;
22005
22006 netbsd*)
22007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22008 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22009 else
22010 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22011 fi
22012 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22013 hardcode_direct_GCJ=yes
22014 hardcode_shlibpath_var_GCJ=no
22015 ;;
22016
22017 newsos6)
22018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22019 hardcode_direct_GCJ=yes
22020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22021 hardcode_libdir_separator_GCJ=:
22022 hardcode_shlibpath_var_GCJ=no
22023 ;;
22024
22025 openbsd*)
22026 hardcode_direct_GCJ=yes
22027 hardcode_shlibpath_var_GCJ=no
22028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22029 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022030 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 +000022031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22032 export_dynamic_flag_spec_GCJ='${wl}-E'
22033 else
22034 case $host_os in
22035 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22036 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22037 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22038 ;;
22039 *)
22040 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22041 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22042 ;;
22043 esac
22044 fi
22045 ;;
22046
22047 os2*)
22048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22049 hardcode_minus_L_GCJ=yes
22050 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022051 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 +000022052 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22053 ;;
22054
22055 osf3*)
22056 if test "$GCC" = yes; then
22057 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22058 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'
22059 else
22060 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22061 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'
22062 fi
22063 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22064 hardcode_libdir_separator_GCJ=:
22065 ;;
22066
22067 osf4* | osf5*) # as osf3* with the addition of -msym flag
22068 if test "$GCC" = yes; then
22069 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22070 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'
22071 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22072 else
22073 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22074 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 +000022075 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~
22076 $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'
22077
John Criswell47fdd832003-07-14 16:52:07 +000022078 # Both c and cxx compiler support -rpath directly
22079 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22080 fi
22081 hardcode_libdir_separator_GCJ=:
22082 ;;
22083
22084 sco3.2v5*)
22085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22086 hardcode_shlibpath_var_GCJ=no
22087 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22088 runpath_var=LD_RUN_PATH
22089 hardcode_runpath_var=yes
22090 ;;
22091
22092 solaris*)
22093 no_undefined_flag_GCJ=' -z text'
22094 if test "$GCC" = yes; then
22095 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022096 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22097 $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 +000022098 else
22099 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022100 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22101 $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 +000022102 fi
22103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22104 hardcode_shlibpath_var_GCJ=no
22105 case $host_os in
22106 solaris2.[0-5] | solaris2.[0-5].*) ;;
22107 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22108 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22109 esac
22110 link_all_deplibs_GCJ=yes
22111 ;;
22112
22113 sunos4*)
22114 if test "x$host_vendor" = xsequent; then
22115 # Use $CC to link under sequent, because it throws in some extra .o
22116 # files that make .init and .fini sections work.
22117 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22118 else
22119 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22120 fi
22121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22122 hardcode_direct_GCJ=yes
22123 hardcode_minus_L_GCJ=yes
22124 hardcode_shlibpath_var_GCJ=no
22125 ;;
22126
22127 sysv4)
22128 case $host_vendor in
22129 sni)
22130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131 hardcode_direct_GCJ=yes # is this really true???
22132 ;;
22133 siemens)
22134 ## LD is ld it makes a PLAMLIB
22135 ## CC just makes a GrossModule.
22136 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22137 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22138 hardcode_direct_GCJ=no
22139 ;;
22140 motorola)
22141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22142 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22143 ;;
22144 esac
22145 runpath_var='LD_RUN_PATH'
22146 hardcode_shlibpath_var_GCJ=no
22147 ;;
22148
22149 sysv4.3*)
22150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151 hardcode_shlibpath_var_GCJ=no
22152 export_dynamic_flag_spec_GCJ='-Bexport'
22153 ;;
22154
22155 sysv4*MP*)
22156 if test -d /usr/nec; then
22157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22158 hardcode_shlibpath_var_GCJ=no
22159 runpath_var=LD_RUN_PATH
22160 hardcode_runpath_var=yes
22161 ld_shlibs_GCJ=yes
22162 fi
22163 ;;
22164
22165 sysv4.2uw2*)
22166 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22167 hardcode_direct_GCJ=yes
22168 hardcode_minus_L_GCJ=no
22169 hardcode_shlibpath_var_GCJ=no
22170 hardcode_runpath_var=yes
22171 runpath_var=LD_RUN_PATH
22172 ;;
22173
22174 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22175 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22176 if test "$GCC" = yes; then
22177 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22178 else
22179 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22180 fi
22181 runpath_var='LD_RUN_PATH'
22182 hardcode_shlibpath_var_GCJ=no
22183 ;;
22184
22185 sysv5*)
22186 no_undefined_flag_GCJ=' -z text'
22187 # $CC -shared without GNU ld will not create a library from C++
22188 # object files and a static libstdc++, better avoid it by now
22189 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022190 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22191 $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 +000022192 hardcode_libdir_flag_spec_GCJ=
22193 hardcode_shlibpath_var_GCJ=no
22194 runpath_var='LD_RUN_PATH'
22195 ;;
22196
22197 uts4*)
22198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22200 hardcode_shlibpath_var_GCJ=no
22201 ;;
22202
22203 *)
22204 ld_shlibs_GCJ=no
22205 ;;
22206 esac
22207 fi
22208
22209echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22210echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22211test "$ld_shlibs_GCJ" = no && can_build_shared=no
22212
22213variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22214if test "$GCC" = yes; then
22215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22216fi
22217
22218#
22219# Do we need to explicitly link libc?
22220#
22221case "x$archive_cmds_need_lc_GCJ" in
22222x|xyes)
22223 # Assume -lc should be added
22224 archive_cmds_need_lc_GCJ=yes
22225
22226 if test "$enable_shared" = yes && test "$GCC" = yes; then
22227 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022228 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022229 # FIXME: we may have to deal with multi-command sequences.
22230 ;;
22231 '$CC '*)
22232 # Test whether the compiler implicitly links with -lc since on some
22233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22234 # to ld, don't add -lc before -lgcc.
22235 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22236echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22237 $rm conftest*
22238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22239
22240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22241 (eval $ac_compile) 2>&5
22242 ac_status=$?
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } 2>conftest.err; then
22245 soname=conftest
22246 lib=conftest
22247 libobjs=conftest.$ac_objext
22248 deplibs=
22249 wl=$lt_prog_compiler_wl_GCJ
22250 compiler_flags=-v
22251 linker_flags=-v
22252 verstring=
22253 output_objdir=.
22254 libname=conftest
22255 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22256 allow_undefined_flag_GCJ=
22257 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22258 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }
22262 then
22263 archive_cmds_need_lc_GCJ=no
22264 else
22265 archive_cmds_need_lc_GCJ=yes
22266 fi
22267 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22268 else
22269 cat conftest.err 1>&5
22270 fi
22271 $rm conftest*
22272 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22273echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22274 ;;
22275 esac
22276 fi
22277 ;;
22278esac
22279
John Criswell47fdd832003-07-14 16:52:07 +000022280echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22281echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22282library_names_spec=
22283libname_spec='lib$name'
22284soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022285shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022286postinstall_cmds=
22287postuninstall_cmds=
22288finish_cmds=
22289finish_eval=
22290shlibpath_var=
22291shlibpath_overrides_runpath=unknown
22292version_type=none
22293dynamic_linker="$host_os ld.so"
22294sys_lib_dlsearch_path_spec="/lib /usr/lib"
22295if test "$GCC" = yes; then
22296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22297 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22298 # if the path contains ";" then we assume it to be the separator
22299 # otherwise default to the standard path separator (i.e. ":") - it is
22300 # assumed that no part of a normal pathname contains ";" but that should
22301 # okay in the real world where ";" in dirpaths is itself problematic.
22302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22303 else
22304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22305 fi
22306else
22307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22308fi
22309need_lib_prefix=unknown
22310hardcode_into_libs=no
22311
22312# when you set need_version to no, make sure it does not cause -set_version
22313# flags to be left without arguments
22314need_version=unknown
22315
22316case $host_os in
22317aix3*)
22318 version_type=linux
22319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22320 shlibpath_var=LIBPATH
22321
22322 # AIX 3 has no versioning support, so we append a major version to the name.
22323 soname_spec='${libname}${release}${shared_ext}$major'
22324 ;;
22325
22326aix4* | aix5*)
22327 version_type=linux
22328 need_lib_prefix=no
22329 need_version=no
22330 hardcode_into_libs=yes
22331 if test "$host_cpu" = ia64; then
22332 # AIX 5 supports IA64
22333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22334 shlibpath_var=LD_LIBRARY_PATH
22335 else
22336 # With GCC up to 2.95.x, collect2 would create an import file
22337 # for dependence libraries. The import file would start with
22338 # the line `#! .'. This would cause the generated library to
22339 # depend on `.', always an invalid library. This was fixed in
22340 # development snapshots of GCC prior to 3.0.
22341 case $host_os in
22342 aix4 | aix4.[01] | aix4.[01].*)
22343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22344 echo ' yes '
22345 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22346 :
22347 else
22348 can_build_shared=no
22349 fi
22350 ;;
22351 esac
22352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22353 # soname into executable. Probably we can add versioning support to
22354 # collect2, so additional links can be useful in future.
22355 if test "$aix_use_runtimelinking" = yes; then
22356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22357 # instead of lib<name>.a to let people know that these are not
22358 # typical AIX shared libraries.
22359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22360 else
22361 # We preserve .a as extension for shared libraries through AIX4.2
22362 # and later when we are not doing run time linking.
22363 library_names_spec='${libname}${release}.a $libname.a'
22364 soname_spec='${libname}${release}${shared_ext}$major'
22365 fi
22366 shlibpath_var=LIBPATH
22367 fi
22368 ;;
22369
22370amigaos*)
22371 library_names_spec='$libname.ixlibrary $libname.a'
22372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022373 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 +000022374 ;;
22375
22376beos*)
22377 library_names_spec='${libname}${shared_ext}'
22378 dynamic_linker="$host_os ld.so"
22379 shlibpath_var=LIBRARY_PATH
22380 ;;
22381
Reid Spencer2706f8c2004-09-19 23:53:36 +000022382bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022383 version_type=linux
22384 need_version=no
22385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22386 soname_spec='${libname}${release}${shared_ext}$major'
22387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22388 shlibpath_var=LD_LIBRARY_PATH
22389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22391 # the default ld.so.conf also contains /usr/contrib/lib and
22392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22393 # libtool to hard-code these into programs
22394 ;;
22395
22396cygwin* | mingw* | pw32*)
22397 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022398 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022399 need_version=no
22400 need_lib_prefix=no
22401
22402 case $GCC,$host_os in
22403 yes,cygwin* | yes,mingw* | yes,pw32*)
22404 library_names_spec='$libname.dll.a'
22405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022406 postinstall_cmds='base_file=`basename \${file}`~
22407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22408 dldir=$destdir/`dirname \$dlpath`~
22409 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022410 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22412 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022413 $rm \$dlpath'
22414 shlibpath_overrides_runpath=yes
22415
22416 case $host_os in
22417 cygwin*)
22418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22419 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 +000022420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022421 ;;
22422 mingw*)
22423 # MinGW DLLs use traditional 'lib' prefix
22424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22427 # It is most probably a Windows format PATH printed by
22428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22429 # path with ; separators, and with drive letters. We can handle the
22430 # drive letters (cygwin fileutils understands them), so leave them,
22431 # especially as we might pass files found there to a mingw objdump,
22432 # which wouldn't understand a cygwinified path. Ahh.
22433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22434 else
22435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22436 fi
22437 ;;
22438 pw32*)
22439 # pw32 DLLs use 'pw' prefix rather than 'lib'
22440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22441 ;;
22442 esac
22443 ;;
22444
22445 *)
22446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22447 ;;
22448 esac
22449 dynamic_linker='Win32 ld.exe'
22450 # FIXME: first we should search . and the directory the executable is in
22451 shlibpath_var=PATH
22452 ;;
22453
22454darwin* | rhapsody*)
22455 dynamic_linker="$host_os dyld"
22456 version_type=darwin
22457 need_lib_prefix=no
22458 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022460 soname_spec='${libname}${release}${major}$shared_ext'
22461 shlibpath_overrides_runpath=yes
22462 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022463 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022464 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022465 if test "$GCC" = yes; then
22466 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"`
22467 else
22468 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022469 fi
22470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22471 ;;
22472
22473dgux*)
22474 version_type=linux
22475 need_lib_prefix=no
22476 need_version=no
22477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22478 soname_spec='${libname}${release}${shared_ext}$major'
22479 shlibpath_var=LD_LIBRARY_PATH
22480 ;;
22481
22482freebsd1*)
22483 dynamic_linker=no
22484 ;;
22485
Reid Spencer2706f8c2004-09-19 23:53:36 +000022486kfreebsd*-gnu)
22487 version_type=linux
22488 need_lib_prefix=no
22489 need_version=no
22490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22491 soname_spec='${libname}${release}${shared_ext}$major'
22492 shlibpath_var=LD_LIBRARY_PATH
22493 shlibpath_overrides_runpath=no
22494 hardcode_into_libs=yes
22495 dynamic_linker='GNU ld.so'
22496 ;;
22497
John Criswell47fdd832003-07-14 16:52:07 +000022498freebsd*)
22499 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22500 version_type=freebsd-$objformat
22501 case $version_type in
22502 freebsd-elf*)
22503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22504 need_version=no
22505 need_lib_prefix=no
22506 ;;
22507 freebsd-*)
22508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22509 need_version=yes
22510 ;;
22511 esac
22512 shlibpath_var=LD_LIBRARY_PATH
22513 case $host_os in
22514 freebsd2*)
22515 shlibpath_overrides_runpath=yes
22516 ;;
22517 freebsd3.01* | freebsdelf3.01*)
22518 shlibpath_overrides_runpath=yes
22519 hardcode_into_libs=yes
22520 ;;
22521 *) # from 3.2 on
22522 shlibpath_overrides_runpath=no
22523 hardcode_into_libs=yes
22524 ;;
22525 esac
22526 ;;
22527
22528gnu*)
22529 version_type=linux
22530 need_lib_prefix=no
22531 need_version=no
22532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22533 soname_spec='${libname}${release}${shared_ext}$major'
22534 shlibpath_var=LD_LIBRARY_PATH
22535 hardcode_into_libs=yes
22536 ;;
22537
22538hpux9* | hpux10* | hpux11*)
22539 # Give a soname corresponding to the major version so that dld.sl refuses to
22540 # link against other versions.
22541 version_type=sunos
22542 need_lib_prefix=no
22543 need_version=no
22544 case "$host_cpu" in
22545 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022546 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022547 hardcode_into_libs=yes
22548 dynamic_linker="$host_os dld.so"
22549 shlibpath_var=LD_LIBRARY_PATH
22550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22552 soname_spec='${libname}${release}${shared_ext}$major'
22553 if test "X$HPUX_IA64_MODE" = X32; then
22554 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22555 else
22556 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22557 fi
22558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22559 ;;
22560 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022561 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022562 hardcode_into_libs=yes
22563 dynamic_linker="$host_os dld.sl"
22564 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22567 soname_spec='${libname}${release}${shared_ext}$major'
22568 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22570 ;;
22571 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022572 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022573 dynamic_linker="$host_os dld.sl"
22574 shlibpath_var=SHLIB_PATH
22575 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22577 soname_spec='${libname}${release}${shared_ext}$major'
22578 ;;
22579 esac
22580 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22581 postinstall_cmds='chmod 555 $lib'
22582 ;;
22583
22584irix5* | irix6* | nonstopux*)
22585 case $host_os in
22586 nonstopux*) version_type=nonstopux ;;
22587 *)
22588 if test "$lt_cv_prog_gnu_ld" = yes; then
22589 version_type=linux
22590 else
22591 version_type=irix
22592 fi ;;
22593 esac
22594 need_lib_prefix=no
22595 need_version=no
22596 soname_spec='${libname}${release}${shared_ext}$major'
22597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22598 case $host_os in
22599 irix5* | nonstopux*)
22600 libsuff= shlibsuff=
22601 ;;
22602 *)
22603 case $LD in # libtool.m4 will add one of these switches to LD
22604 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22605 libsuff= shlibsuff= libmagic=32-bit;;
22606 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22607 libsuff=32 shlibsuff=N32 libmagic=N32;;
22608 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22609 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22610 *) libsuff= shlibsuff= libmagic=never-match;;
22611 esac
22612 ;;
22613 esac
22614 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22615 shlibpath_overrides_runpath=no
22616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22618 hardcode_into_libs=yes
22619 ;;
22620
22621# No shared lib support for Linux oldld, aout, or coff.
22622linux*oldld* | linux*aout* | linux*coff*)
22623 dynamic_linker=no
22624 ;;
22625
22626# This must be Linux ELF.
22627linux*)
22628 version_type=linux
22629 need_lib_prefix=no
22630 need_version=no
22631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22632 soname_spec='${libname}${release}${shared_ext}$major'
22633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22634 shlibpath_var=LD_LIBRARY_PATH
22635 shlibpath_overrides_runpath=no
22636 # This implies no fast_install, which is unacceptable.
22637 # Some rework will be needed to allow for fast_install
22638 # before this can be enabled.
22639 hardcode_into_libs=yes
22640
Reid Spencer2706f8c2004-09-19 23:53:36 +000022641 # Append ld.so.conf contents to the search path
22642 if test -f /etc/ld.so.conf; then
22643 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22644 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22645 fi
22646
John Criswell47fdd832003-07-14 16:52:07 +000022647 # We used to test for /lib/ld.so.1 and disable shared libraries on
22648 # powerpc, because MkLinux only supported shared libraries with the
22649 # GNU dynamic linker. Since this was broken with cross compilers,
22650 # most powerpc-linux boxes support dynamic linking these days and
22651 # people can always --disable-shared, the test was removed, and we
22652 # assume the GNU/Linux dynamic linker is in use.
22653 dynamic_linker='GNU/Linux ld.so'
22654 ;;
22655
Reid Spencer2706f8c2004-09-19 23:53:36 +000022656knetbsd*-gnu)
22657 version_type=linux
22658 need_lib_prefix=no
22659 need_version=no
22660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 shlibpath_var=LD_LIBRARY_PATH
22663 shlibpath_overrides_runpath=no
22664 hardcode_into_libs=yes
22665 dynamic_linker='GNU ld.so'
22666 ;;
22667
John Criswell47fdd832003-07-14 16:52:07 +000022668netbsd*)
22669 version_type=sunos
22670 need_lib_prefix=no
22671 need_version=no
22672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22675 dynamic_linker='NetBSD (a.out) ld.so'
22676 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022678 soname_spec='${libname}${release}${shared_ext}$major'
22679 dynamic_linker='NetBSD ld.elf_so'
22680 fi
22681 shlibpath_var=LD_LIBRARY_PATH
22682 shlibpath_overrides_runpath=yes
22683 hardcode_into_libs=yes
22684 ;;
22685
22686newsos6)
22687 version_type=linux
22688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22689 shlibpath_var=LD_LIBRARY_PATH
22690 shlibpath_overrides_runpath=yes
22691 ;;
22692
Reid Spencer2706f8c2004-09-19 23:53:36 +000022693nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022694 version_type=linux
22695 need_lib_prefix=no
22696 need_version=no
22697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 shlibpath_var=LD_LIBRARY_PATH
22700 shlibpath_overrides_runpath=yes
22701 ;;
22702
22703openbsd*)
22704 version_type=sunos
22705 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022706 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22709 shlibpath_var=LD_LIBRARY_PATH
22710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22711 case $host_os in
22712 openbsd2.[89] | openbsd2.[89].*)
22713 shlibpath_overrides_runpath=no
22714 ;;
22715 *)
22716 shlibpath_overrides_runpath=yes
22717 ;;
22718 esac
22719 else
22720 shlibpath_overrides_runpath=yes
22721 fi
22722 ;;
22723
22724os2*)
22725 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022726 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022727 need_lib_prefix=no
22728 library_names_spec='$libname${shared_ext} $libname.a'
22729 dynamic_linker='OS/2 ld.exe'
22730 shlibpath_var=LIBPATH
22731 ;;
22732
22733osf3* | osf4* | osf5*)
22734 version_type=osf
22735 need_lib_prefix=no
22736 need_version=no
22737 soname_spec='${libname}${release}${shared_ext}$major'
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739 shlibpath_var=LD_LIBRARY_PATH
22740 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22741 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22742 ;;
22743
22744sco3.2v5*)
22745 version_type=osf
22746 soname_spec='${libname}${release}${shared_ext}$major'
22747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22748 shlibpath_var=LD_LIBRARY_PATH
22749 ;;
22750
22751solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
22758 shlibpath_overrides_runpath=yes
22759 hardcode_into_libs=yes
22760 # ldd complains unless libraries are executable
22761 postinstall_cmds='chmod +x $lib'
22762 ;;
22763
22764sunos4*)
22765 version_type=sunos
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22768 shlibpath_var=LD_LIBRARY_PATH
22769 shlibpath_overrides_runpath=yes
22770 if test "$with_gnu_ld" = yes; then
22771 need_lib_prefix=no
22772 fi
22773 need_version=yes
22774 ;;
22775
22776sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22777 version_type=linux
22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779 soname_spec='${libname}${release}${shared_ext}$major'
22780 shlibpath_var=LD_LIBRARY_PATH
22781 case $host_vendor in
22782 sni)
22783 shlibpath_overrides_runpath=no
22784 need_lib_prefix=no
22785 export_dynamic_flag_spec='${wl}-Blargedynsym'
22786 runpath_var=LD_RUN_PATH
22787 ;;
22788 siemens)
22789 need_lib_prefix=no
22790 ;;
22791 motorola)
22792 need_lib_prefix=no
22793 need_version=no
22794 shlibpath_overrides_runpath=no
22795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22796 ;;
22797 esac
22798 ;;
22799
22800sysv4*MP*)
22801 if test -d /usr/nec ;then
22802 version_type=linux
22803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22804 soname_spec='$libname${shared_ext}.$major'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 fi
22807 ;;
22808
22809uts4*)
22810 version_type=linux
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22812 soname_spec='${libname}${release}${shared_ext}$major'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 ;;
22815
22816*)
22817 dynamic_linker=no
22818 ;;
22819esac
22820echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22821echo "${ECHO_T}$dynamic_linker" >&6
22822test "$dynamic_linker" = no && can_build_shared=no
22823
Reid Spencer2706f8c2004-09-19 23:53:36 +000022824echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22825echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22826hardcode_action_GCJ=
22827if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22828 test -n "$runpath_var_GCJ" || \
22829 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22830
22831 # We can hardcode non-existant directories.
22832 if test "$hardcode_direct_GCJ" != no &&
22833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22834 # have to relink, otherwise we might link with an installed library
22835 # when we should be linking with a yet-to-be-installed one
22836 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22837 test "$hardcode_minus_L_GCJ" != no; then
22838 # Linking always hardcodes the temporary library directory.
22839 hardcode_action_GCJ=relink
22840 else
22841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22842 hardcode_action_GCJ=immediate
22843 fi
22844else
22845 # We cannot hardcode anything, or else we can only hardcode existing
22846 # directories.
22847 hardcode_action_GCJ=unsupported
22848fi
22849echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22850echo "${ECHO_T}$hardcode_action_GCJ" >&6
22851
22852if test "$hardcode_action_GCJ" = relink; then
22853 # Fast installation is not supported
22854 enable_fast_install=no
22855elif test "$shlibpath_overrides_runpath" = yes ||
22856 test "$enable_shared" = no; then
22857 # Fast installation is not necessary
22858 enable_fast_install=needless
22859fi
22860
22861striplib=
22862old_striplib=
22863echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22864echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22865if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22866 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22867 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22868 echo "$as_me:$LINENO: result: yes" >&5
22869echo "${ECHO_T}yes" >&6
22870else
22871# FIXME - insert some real tests, host_os isn't really good enough
22872 case $host_os in
22873 darwin*)
22874 if test -n "$STRIP" ; then
22875 striplib="$STRIP -x"
22876 echo "$as_me:$LINENO: result: yes" >&5
22877echo "${ECHO_T}yes" >&6
22878 else
22879 echo "$as_me:$LINENO: result: no" >&5
22880echo "${ECHO_T}no" >&6
22881fi
22882 ;;
22883 *)
22884 echo "$as_me:$LINENO: result: no" >&5
22885echo "${ECHO_T}no" >&6
22886 ;;
22887 esac
22888fi
22889
John Criswell47fdd832003-07-14 16:52:07 +000022890if test "x$enable_dlopen" != xyes; then
22891 enable_dlopen=unknown
22892 enable_dlopen_self=unknown
22893 enable_dlopen_self_static=unknown
22894else
22895 lt_cv_dlopen=no
22896 lt_cv_dlopen_libs=
22897
22898 case $host_os in
22899 beos*)
22900 lt_cv_dlopen="load_add_on"
22901 lt_cv_dlopen_libs=
22902 lt_cv_dlopen_self=yes
22903 ;;
22904
22905 mingw* | pw32*)
22906 lt_cv_dlopen="LoadLibrary"
22907 lt_cv_dlopen_libs=
22908 ;;
22909
22910 cygwin*)
22911 lt_cv_dlopen="dlopen"
22912 lt_cv_dlopen_libs=
22913 ;;
22914
22915 darwin*)
22916 # if libdl is installed we need to link against it
22917 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22918echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22919if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22921else
22922 ac_check_lib_save_LIBS=$LIBS
22923LIBS="-ldl $LIBS"
22924cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022925/* confdefs.h. */
22926_ACEOF
22927cat confdefs.h >>conftest.$ac_ext
22928cat >>conftest.$ac_ext <<_ACEOF
22929/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022930
22931/* Override any gcc2 internal prototype to avoid an error. */
22932#ifdef __cplusplus
22933extern "C"
22934#endif
22935/* We use char because int might match the return type of a gcc2
22936 builtin and then its argument prototype would still apply. */
22937char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022938int
22939main ()
22940{
22941dlopen ();
22942 ;
22943 return 0;
22944}
22945_ACEOF
22946rm -f conftest.$ac_objext conftest$ac_exeext
22947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022948 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022949 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022950 grep -v '^ *+' conftest.er1 >conftest.err
22951 rm -f conftest.er1
22952 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022955 { ac_try='test -z "$ac_c_werror_flag"
22956 || test ! -s conftest.err'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; } &&
22962 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22965 ac_status=$?
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; }; then
22968 ac_cv_lib_dl_dlopen=yes
22969else
22970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022971sed 's/^/| /' conftest.$ac_ext >&5
22972
John Criswell47fdd832003-07-14 16:52:07 +000022973ac_cv_lib_dl_dlopen=no
22974fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022975rm -f conftest.err conftest.$ac_objext \
22976 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022977LIBS=$ac_check_lib_save_LIBS
22978fi
22979echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22980echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22981if test $ac_cv_lib_dl_dlopen = yes; then
22982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22983else
22984
22985 lt_cv_dlopen="dyld"
22986 lt_cv_dlopen_libs=
22987 lt_cv_dlopen_self=yes
22988
22989fi
22990
22991 ;;
22992
22993 *)
22994 echo "$as_me:$LINENO: checking for shl_load" >&5
22995echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22996if test "${ac_cv_func_shl_load+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22998else
22999 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023000/* confdefs.h. */
23001_ACEOF
23002cat confdefs.h >>conftest.$ac_ext
23003cat >>conftest.$ac_ext <<_ACEOF
23004/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023005/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23007#define shl_load innocuous_shl_load
23008
John Criswell47fdd832003-07-14 16:52:07 +000023009/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023010 which can conflict with char shl_load (); below.
23011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23012 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023013
John Criswell0c38eaf2003-09-10 15:17:25 +000023014#ifdef __STDC__
23015# include <limits.h>
23016#else
23017# include <assert.h>
23018#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023019
23020#undef shl_load
23021
John Criswell47fdd832003-07-14 16:52:07 +000023022/* Override any gcc2 internal prototype to avoid an error. */
23023#ifdef __cplusplus
23024extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023025{
John Criswell47fdd832003-07-14 16:52:07 +000023026#endif
23027/* We use char because int might match the return type of a gcc2
23028 builtin and then its argument prototype would still apply. */
23029char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023030/* The GNU C library defines this for functions which it implements
23031 to always fail with ENOSYS. Some functions are actually named
23032 something starting with __ and the normal name is an alias. */
23033#if defined (__stub_shl_load) || defined (__stub___shl_load)
23034choke me
23035#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023036char (*f) () = shl_load;
23037#endif
23038#ifdef __cplusplus
23039}
John Criswell47fdd832003-07-14 16:52:07 +000023040#endif
23041
John Criswell0c38eaf2003-09-10 15:17:25 +000023042int
23043main ()
23044{
23045return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023046 ;
23047 return 0;
23048}
23049_ACEOF
23050rm -f conftest.$ac_objext conftest$ac_exeext
23051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023052 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023054 grep -v '^ *+' conftest.er1 >conftest.err
23055 rm -f conftest.er1
23056 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023059 { ac_try='test -z "$ac_c_werror_flag"
23060 || test ! -s conftest.err'
23061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062 (eval $ac_try) 2>&5
23063 ac_status=$?
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); }; } &&
23066 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068 (eval $ac_try) 2>&5
23069 ac_status=$?
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); }; }; then
23072 ac_cv_func_shl_load=yes
23073else
23074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023075sed 's/^/| /' conftest.$ac_ext >&5
23076
John Criswell47fdd832003-07-14 16:52:07 +000023077ac_cv_func_shl_load=no
23078fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023079rm -f conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023081fi
23082echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23083echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23084if test $ac_cv_func_shl_load = yes; then
23085 lt_cv_dlopen="shl_load"
23086else
23087 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23088echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23089if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
23091else
23092 ac_check_lib_save_LIBS=$LIBS
23093LIBS="-ldld $LIBS"
23094cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023095/* confdefs.h. */
23096_ACEOF
23097cat confdefs.h >>conftest.$ac_ext
23098cat >>conftest.$ac_ext <<_ACEOF
23099/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023100
23101/* Override any gcc2 internal prototype to avoid an error. */
23102#ifdef __cplusplus
23103extern "C"
23104#endif
23105/* We use char because int might match the return type of a gcc2
23106 builtin and then its argument prototype would still apply. */
23107char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023108int
23109main ()
23110{
23111shl_load ();
23112 ;
23113 return 0;
23114}
23115_ACEOF
23116rm -f conftest.$ac_objext conftest$ac_exeext
23117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023118 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023119 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023120 grep -v '^ *+' conftest.er1 >conftest.err
23121 rm -f conftest.er1
23122 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023125 { ac_try='test -z "$ac_c_werror_flag"
23126 || test ! -s conftest.err'
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; } &&
23132 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 ac_cv_lib_dld_shl_load=yes
23139else
23140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023141sed 's/^/| /' conftest.$ac_ext >&5
23142
John Criswell47fdd832003-07-14 16:52:07 +000023143ac_cv_lib_dld_shl_load=no
23144fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023145rm -f conftest.err conftest.$ac_objext \
23146 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023147LIBS=$ac_check_lib_save_LIBS
23148fi
23149echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23150echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23151if test $ac_cv_lib_dld_shl_load = yes; then
23152 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23153else
23154 echo "$as_me:$LINENO: checking for dlopen" >&5
23155echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23156if test "${ac_cv_func_dlopen+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23158else
23159 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023160/* confdefs.h. */
23161_ACEOF
23162cat confdefs.h >>conftest.$ac_ext
23163cat >>conftest.$ac_ext <<_ACEOF
23164/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023165/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23167#define dlopen innocuous_dlopen
23168
John Criswell47fdd832003-07-14 16:52:07 +000023169/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023170 which can conflict with char dlopen (); below.
23171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23172 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023173
John Criswell0c38eaf2003-09-10 15:17:25 +000023174#ifdef __STDC__
23175# include <limits.h>
23176#else
23177# include <assert.h>
23178#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023179
23180#undef dlopen
23181
John Criswell47fdd832003-07-14 16:52:07 +000023182/* Override any gcc2 internal prototype to avoid an error. */
23183#ifdef __cplusplus
23184extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023185{
John Criswell47fdd832003-07-14 16:52:07 +000023186#endif
23187/* We use char because int might match the return type of a gcc2
23188 builtin and then its argument prototype would still apply. */
23189char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023190/* The GNU C library defines this for functions which it implements
23191 to always fail with ENOSYS. Some functions are actually named
23192 something starting with __ and the normal name is an alias. */
23193#if defined (__stub_dlopen) || defined (__stub___dlopen)
23194choke me
23195#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023196char (*f) () = dlopen;
23197#endif
23198#ifdef __cplusplus
23199}
John Criswell47fdd832003-07-14 16:52:07 +000023200#endif
23201
John Criswell0c38eaf2003-09-10 15:17:25 +000023202int
23203main ()
23204{
23205return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023206 ;
23207 return 0;
23208}
23209_ACEOF
23210rm -f conftest.$ac_objext conftest$ac_exeext
23211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023212 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023214 grep -v '^ *+' conftest.er1 >conftest.err
23215 rm -f conftest.er1
23216 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023219 { ac_try='test -z "$ac_c_werror_flag"
23220 || test ! -s conftest.err'
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23223 ac_status=$?
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; } &&
23226 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_cv_func_dlopen=yes
23233else
23234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023235sed 's/^/| /' conftest.$ac_ext >&5
23236
John Criswell47fdd832003-07-14 16:52:07 +000023237ac_cv_func_dlopen=no
23238fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023239rm -f conftest.err conftest.$ac_objext \
23240 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023241fi
23242echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23243echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23244if test $ac_cv_func_dlopen = yes; then
23245 lt_cv_dlopen="dlopen"
23246else
23247 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23248echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23249if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23251else
23252 ac_check_lib_save_LIBS=$LIBS
23253LIBS="-ldl $LIBS"
23254cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023255/* confdefs.h. */
23256_ACEOF
23257cat confdefs.h >>conftest.$ac_ext
23258cat >>conftest.$ac_ext <<_ACEOF
23259/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023260
23261/* Override any gcc2 internal prototype to avoid an error. */
23262#ifdef __cplusplus
23263extern "C"
23264#endif
23265/* We use char because int might match the return type of a gcc2
23266 builtin and then its argument prototype would still apply. */
23267char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023268int
23269main ()
23270{
23271dlopen ();
23272 ;
23273 return 0;
23274}
23275_ACEOF
23276rm -f conftest.$ac_objext conftest$ac_exeext
23277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023278 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023280 grep -v '^ *+' conftest.er1 >conftest.err
23281 rm -f conftest.er1
23282 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023285 { ac_try='test -z "$ac_c_werror_flag"
23286 || test ! -s conftest.err'
23287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23288 (eval $ac_try) 2>&5
23289 ac_status=$?
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); }; } &&
23292 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294 (eval $ac_try) 2>&5
23295 ac_status=$?
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; }; then
23298 ac_cv_lib_dl_dlopen=yes
23299else
23300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023301sed 's/^/| /' conftest.$ac_ext >&5
23302
John Criswell47fdd832003-07-14 16:52:07 +000023303ac_cv_lib_dl_dlopen=no
23304fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023305rm -f conftest.err conftest.$ac_objext \
23306 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023307LIBS=$ac_check_lib_save_LIBS
23308fi
23309echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23310echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23311if test $ac_cv_lib_dl_dlopen = yes; then
23312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23313else
23314 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23315echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23316if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23318else
23319 ac_check_lib_save_LIBS=$LIBS
23320LIBS="-lsvld $LIBS"
23321cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023322/* confdefs.h. */
23323_ACEOF
23324cat confdefs.h >>conftest.$ac_ext
23325cat >>conftest.$ac_ext <<_ACEOF
23326/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023327
23328/* Override any gcc2 internal prototype to avoid an error. */
23329#ifdef __cplusplus
23330extern "C"
23331#endif
23332/* We use char because int might match the return type of a gcc2
23333 builtin and then its argument prototype would still apply. */
23334char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023335int
23336main ()
23337{
23338dlopen ();
23339 ;
23340 return 0;
23341}
23342_ACEOF
23343rm -f conftest.$ac_objext conftest$ac_exeext
23344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023345 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352 { ac_try='test -z "$ac_c_werror_flag"
23353 || test ! -s conftest.err'
23354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355 (eval $ac_try) 2>&5
23356 ac_status=$?
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); }; } &&
23359 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23362 ac_status=$?
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; }; then
23365 ac_cv_lib_svld_dlopen=yes
23366else
23367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023368sed 's/^/| /' conftest.$ac_ext >&5
23369
John Criswell47fdd832003-07-14 16:52:07 +000023370ac_cv_lib_svld_dlopen=no
23371fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023372rm -f conftest.err conftest.$ac_objext \
23373 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023374LIBS=$ac_check_lib_save_LIBS
23375fi
23376echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23377echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23378if test $ac_cv_lib_svld_dlopen = yes; then
23379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23380else
23381 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23382echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23383if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23385else
23386 ac_check_lib_save_LIBS=$LIBS
23387LIBS="-ldld $LIBS"
23388cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023389/* confdefs.h. */
23390_ACEOF
23391cat confdefs.h >>conftest.$ac_ext
23392cat >>conftest.$ac_ext <<_ACEOF
23393/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023394
23395/* Override any gcc2 internal prototype to avoid an error. */
23396#ifdef __cplusplus
23397extern "C"
23398#endif
23399/* We use char because int might match the return type of a gcc2
23400 builtin and then its argument prototype would still apply. */
23401char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023402int
23403main ()
23404{
23405dld_link ();
23406 ;
23407 return 0;
23408}
23409_ACEOF
23410rm -f conftest.$ac_objext conftest$ac_exeext
23411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023412 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023414 grep -v '^ *+' conftest.er1 >conftest.err
23415 rm -f conftest.er1
23416 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023419 { ac_try='test -z "$ac_c_werror_flag"
23420 || test ! -s conftest.err'
23421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422 (eval $ac_try) 2>&5
23423 ac_status=$?
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; } &&
23426 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428 (eval $ac_try) 2>&5
23429 ac_status=$?
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); }; }; then
23432 ac_cv_lib_dld_dld_link=yes
23433else
23434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023435sed 's/^/| /' conftest.$ac_ext >&5
23436
John Criswell47fdd832003-07-14 16:52:07 +000023437ac_cv_lib_dld_dld_link=no
23438fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023439rm -f conftest.err conftest.$ac_objext \
23440 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023441LIBS=$ac_check_lib_save_LIBS
23442fi
23443echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23444echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23445if test $ac_cv_lib_dld_dld_link = yes; then
23446 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23447fi
23448
23449
23450fi
23451
23452
23453fi
23454
23455
23456fi
23457
23458
23459fi
23460
23461
23462fi
23463
23464 ;;
23465 esac
23466
23467 if test "x$lt_cv_dlopen" != xno; then
23468 enable_dlopen=yes
23469 else
23470 enable_dlopen=no
23471 fi
23472
23473 case $lt_cv_dlopen in
23474 dlopen)
23475 save_CPPFLAGS="$CPPFLAGS"
23476 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23477
23478 save_LDFLAGS="$LDFLAGS"
23479 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23480
23481 save_LIBS="$LIBS"
23482 LIBS="$lt_cv_dlopen_libs $LIBS"
23483
23484 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23485echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23486if test "${lt_cv_dlopen_self+set}" = set; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23488else
23489 if test "$cross_compiling" = yes; then :
23490 lt_cv_dlopen_self=cross
23491else
23492 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23493 lt_status=$lt_dlunknown
23494 cat > conftest.$ac_ext <<EOF
Reid Spencer675f0922005-04-22 17:06:18 +000023495#line 23495 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023496#include "confdefs.h"
23497
23498#if HAVE_DLFCN_H
23499#include <dlfcn.h>
23500#endif
23501
23502#include <stdio.h>
23503
23504#ifdef RTLD_GLOBAL
23505# define LT_DLGLOBAL RTLD_GLOBAL
23506#else
23507# ifdef DL_GLOBAL
23508# define LT_DLGLOBAL DL_GLOBAL
23509# else
23510# define LT_DLGLOBAL 0
23511# endif
23512#endif
23513
23514/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23515 find out it does not work in some platform. */
23516#ifndef LT_DLLAZY_OR_NOW
23517# ifdef RTLD_LAZY
23518# define LT_DLLAZY_OR_NOW RTLD_LAZY
23519# else
23520# ifdef DL_LAZY
23521# define LT_DLLAZY_OR_NOW DL_LAZY
23522# else
23523# ifdef RTLD_NOW
23524# define LT_DLLAZY_OR_NOW RTLD_NOW
23525# else
23526# ifdef DL_NOW
23527# define LT_DLLAZY_OR_NOW DL_NOW
23528# else
23529# define LT_DLLAZY_OR_NOW 0
23530# endif
23531# endif
23532# endif
23533# endif
23534#endif
23535
23536#ifdef __cplusplus
23537extern "C" void exit (int);
23538#endif
23539
23540void fnord() { int i=42;}
23541int main ()
23542{
23543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23544 int status = $lt_dlunknown;
23545
23546 if (self)
23547 {
23548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23549 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23550 /* dlclose (self); */
23551 }
23552
23553 exit (status);
23554}
23555EOF
23556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23557 (eval $ac_link) 2>&5
23558 ac_status=$?
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23561 (./conftest; exit; ) 2>/dev/null
23562 lt_status=$?
23563 case x$lt_status in
23564 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23565 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23566 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23567 esac
23568 else :
23569 # compilation failed
23570 lt_cv_dlopen_self=no
23571 fi
23572fi
23573rm -fr conftest*
23574
23575
23576fi
23577echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23578echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23579
23580 if test "x$lt_cv_dlopen_self" = xyes; then
23581 LDFLAGS="$LDFLAGS $link_static_flag"
23582 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23583echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23584if test "${lt_cv_dlopen_self_static+set}" = set; then
23585 echo $ECHO_N "(cached) $ECHO_C" >&6
23586else
23587 if test "$cross_compiling" = yes; then :
23588 lt_cv_dlopen_self_static=cross
23589else
23590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23591 lt_status=$lt_dlunknown
23592 cat > conftest.$ac_ext <<EOF
Reid Spencer675f0922005-04-22 17:06:18 +000023593#line 23593 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023594#include "confdefs.h"
23595
23596#if HAVE_DLFCN_H
23597#include <dlfcn.h>
23598#endif
23599
23600#include <stdio.h>
23601
23602#ifdef RTLD_GLOBAL
23603# define LT_DLGLOBAL RTLD_GLOBAL
23604#else
23605# ifdef DL_GLOBAL
23606# define LT_DLGLOBAL DL_GLOBAL
23607# else
23608# define LT_DLGLOBAL 0
23609# endif
23610#endif
23611
23612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23613 find out it does not work in some platform. */
23614#ifndef LT_DLLAZY_OR_NOW
23615# ifdef RTLD_LAZY
23616# define LT_DLLAZY_OR_NOW RTLD_LAZY
23617# else
23618# ifdef DL_LAZY
23619# define LT_DLLAZY_OR_NOW DL_LAZY
23620# else
23621# ifdef RTLD_NOW
23622# define LT_DLLAZY_OR_NOW RTLD_NOW
23623# else
23624# ifdef DL_NOW
23625# define LT_DLLAZY_OR_NOW DL_NOW
23626# else
23627# define LT_DLLAZY_OR_NOW 0
23628# endif
23629# endif
23630# endif
23631# endif
23632#endif
23633
23634#ifdef __cplusplus
23635extern "C" void exit (int);
23636#endif
23637
23638void fnord() { int i=42;}
23639int main ()
23640{
23641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23642 int status = $lt_dlunknown;
23643
23644 if (self)
23645 {
23646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23648 /* dlclose (self); */
23649 }
23650
23651 exit (status);
23652}
23653EOF
23654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23655 (eval $ac_link) 2>&5
23656 ac_status=$?
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23659 (./conftest; exit; ) 2>/dev/null
23660 lt_status=$?
23661 case x$lt_status in
23662 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23663 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23664 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23665 esac
23666 else :
23667 # compilation failed
23668 lt_cv_dlopen_self_static=no
23669 fi
23670fi
23671rm -fr conftest*
23672
23673
23674fi
23675echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23676echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23677 fi
23678
23679 CPPFLAGS="$save_CPPFLAGS"
23680 LDFLAGS="$save_LDFLAGS"
23681 LIBS="$save_LIBS"
23682 ;;
23683 esac
23684
23685 case $lt_cv_dlopen_self in
23686 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23687 *) enable_dlopen_self=unknown ;;
23688 esac
23689
23690 case $lt_cv_dlopen_self_static in
23691 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23692 *) enable_dlopen_self_static=unknown ;;
23693 esac
23694fi
23695
23696
23697# The else clause should only fire when bootstrapping the
23698# libtool distribution, otherwise you forgot to ship ltmain.sh
23699# with your package, and you will get complaints that there are
23700# no rules to generate ltmain.sh.
23701if test -f "$ltmain"; then
23702 # See if we are running on zsh, and set the options which allow our commands through
23703 # without removal of \ escapes.
23704 if test -n "${ZSH_VERSION+set}" ; then
23705 setopt NO_GLOB_SUBST
23706 fi
23707 # Now quote all the things that may contain metacharacters while being
23708 # careful not to overquote the AC_SUBSTed values. We take copies of the
23709 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23711 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23714 deplibs_check_method reload_flag reload_cmds need_locks \
23715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23716 lt_cv_sys_global_symbol_to_c_name_address \
23717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23718 old_postinstall_cmds old_postuninstall_cmds \
23719 compiler_GCJ \
23720 CC_GCJ \
23721 LD_GCJ \
23722 lt_prog_compiler_wl_GCJ \
23723 lt_prog_compiler_pic_GCJ \
23724 lt_prog_compiler_static_GCJ \
23725 lt_prog_compiler_no_builtin_flag_GCJ \
23726 export_dynamic_flag_spec_GCJ \
23727 thread_safe_flag_spec_GCJ \
23728 whole_archive_flag_spec_GCJ \
23729 enable_shared_with_static_runtimes_GCJ \
23730 old_archive_cmds_GCJ \
23731 old_archive_from_new_cmds_GCJ \
23732 predep_objects_GCJ \
23733 postdep_objects_GCJ \
23734 predeps_GCJ \
23735 postdeps_GCJ \
23736 compiler_lib_search_path_GCJ \
23737 archive_cmds_GCJ \
23738 archive_expsym_cmds_GCJ \
23739 postinstall_cmds_GCJ \
23740 postuninstall_cmds_GCJ \
23741 old_archive_from_expsyms_cmds_GCJ \
23742 allow_undefined_flag_GCJ \
23743 no_undefined_flag_GCJ \
23744 export_symbols_cmds_GCJ \
23745 hardcode_libdir_flag_spec_GCJ \
23746 hardcode_libdir_flag_spec_ld_GCJ \
23747 hardcode_libdir_separator_GCJ \
23748 hardcode_automatic_GCJ \
23749 module_cmds_GCJ \
23750 module_expsym_cmds_GCJ \
23751 lt_cv_prog_compiler_c_o_GCJ \
23752 exclude_expsyms_GCJ \
23753 include_expsyms_GCJ; do
23754
23755 case $var in
23756 old_archive_cmds_GCJ | \
23757 old_archive_from_new_cmds_GCJ | \
23758 archive_cmds_GCJ | \
23759 archive_expsym_cmds_GCJ | \
23760 module_cmds_GCJ | \
23761 module_expsym_cmds_GCJ | \
23762 old_archive_from_expsyms_cmds_GCJ | \
23763 export_symbols_cmds_GCJ | \
23764 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23765 postinstall_cmds | postuninstall_cmds | \
23766 old_postinstall_cmds | old_postuninstall_cmds | \
23767 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23768 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023769 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 +000023770 ;;
23771 *)
23772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23773 ;;
23774 esac
23775 done
23776
23777 case $lt_echo in
23778 *'\$0 --fallback-echo"')
23779 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23780 ;;
23781 esac
23782
23783cfgfile="$ofile"
23784
23785 cat <<__EOF__ >> "$cfgfile"
23786# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23787
23788# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23789
23790# Shell to use when invoking shell scripts.
23791SHELL=$lt_SHELL
23792
23793# Whether or not to build shared libraries.
23794build_libtool_libs=$enable_shared
23795
23796# Whether or not to build static libraries.
23797build_old_libs=$enable_static
23798
23799# Whether or not to add -lc for building shared libraries.
23800build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23801
23802# Whether or not to disallow shared libs when runtime libs are static
23803allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23804
23805# Whether or not to optimize for fast installation.
23806fast_install=$enable_fast_install
23807
23808# The host system.
23809host_alias=$host_alias
23810host=$host
23811
23812# An echo program that does not interpret backslashes.
23813echo=$lt_echo
23814
23815# The archiver.
23816AR=$lt_AR
23817AR_FLAGS=$lt_AR_FLAGS
23818
23819# A C compiler.
23820LTCC=$lt_LTCC
23821
23822# A language-specific compiler.
23823CC=$lt_compiler_GCJ
23824
23825# Is the compiler the GNU C compiler?
23826with_gcc=$GCC_GCJ
23827
23828# An ERE matcher.
23829EGREP=$lt_EGREP
23830
23831# The linker used to build libraries.
23832LD=$lt_LD_GCJ
23833
23834# Whether we need hard or soft links.
23835LN_S=$lt_LN_S
23836
23837# A BSD-compatible nm program.
23838NM=$lt_NM
23839
23840# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023841STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023842
23843# Used to examine libraries when file_magic_cmd begins "file"
23844MAGIC_CMD=$MAGIC_CMD
23845
23846# Used on cygwin: DLL creation program.
23847DLLTOOL="$DLLTOOL"
23848
23849# Used on cygwin: object dumper.
23850OBJDUMP="$OBJDUMP"
23851
23852# Used on cygwin: assembler.
23853AS="$AS"
23854
23855# The name of the directory that contains temporary libtool files.
23856objdir=$objdir
23857
23858# How to create reloadable object files.
23859reload_flag=$lt_reload_flag
23860reload_cmds=$lt_reload_cmds
23861
23862# How to pass a linker flag through the compiler.
23863wl=$lt_lt_prog_compiler_wl_GCJ
23864
23865# Object file suffix (normally "o").
23866objext="$ac_objext"
23867
23868# Old archive suffix (normally "a").
23869libext="$libext"
23870
23871# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023872shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023873
23874# Executable file suffix (normally "").
23875exeext="$exeext"
23876
23877# Additional compiler flags for building library objects.
23878pic_flag=$lt_lt_prog_compiler_pic_GCJ
23879pic_mode=$pic_mode
23880
23881# What is the maximum length of a command?
23882max_cmd_len=$lt_cv_sys_max_cmd_len
23883
23884# Does compiler simultaneously support -c and -o options?
23885compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23886
23887# Must we lock files when doing compilation ?
23888need_locks=$lt_need_locks
23889
23890# Do we need the lib prefix for modules?
23891need_lib_prefix=$need_lib_prefix
23892
23893# Do we need a version for libraries?
23894need_version=$need_version
23895
23896# Whether dlopen is supported.
23897dlopen_support=$enable_dlopen
23898
23899# Whether dlopen of programs is supported.
23900dlopen_self=$enable_dlopen_self
23901
23902# Whether dlopen of statically linked programs is supported.
23903dlopen_self_static=$enable_dlopen_self_static
23904
23905# Compiler flag to prevent dynamic linking.
23906link_static_flag=$lt_lt_prog_compiler_static_GCJ
23907
23908# Compiler flag to turn off builtin functions.
23909no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23910
23911# Compiler flag to allow reflexive dlopens.
23912export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23913
23914# Compiler flag to generate shared objects directly from archives.
23915whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23916
23917# Compiler flag to generate thread-safe objects.
23918thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23919
23920# Library versioning type.
23921version_type=$version_type
23922
23923# Format of library name prefix.
23924libname_spec=$lt_libname_spec
23925
23926# List of archive names. First name is the real one, the rest are links.
23927# The last name is the one that the linker finds with -lNAME.
23928library_names_spec=$lt_library_names_spec
23929
23930# The coded name of the library, if different from the real name.
23931soname_spec=$lt_soname_spec
23932
23933# Commands used to build and install an old-style archive.
23934RANLIB=$lt_RANLIB
23935old_archive_cmds=$lt_old_archive_cmds_GCJ
23936old_postinstall_cmds=$lt_old_postinstall_cmds
23937old_postuninstall_cmds=$lt_old_postuninstall_cmds
23938
23939# Create an old-style archive from a shared archive.
23940old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23941
23942# Create a temporary old-style archive to link instead of a shared archive.
23943old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23944
23945# Commands used to build and install a shared archive.
23946archive_cmds=$lt_archive_cmds_GCJ
23947archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23948postinstall_cmds=$lt_postinstall_cmds
23949postuninstall_cmds=$lt_postuninstall_cmds
23950
23951# Commands used to build a loadable module (assumed same as above if empty)
23952module_cmds=$lt_module_cmds_GCJ
23953module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23954
23955# Commands to strip libraries.
23956old_striplib=$lt_old_striplib
23957striplib=$lt_striplib
23958
23959# Dependencies to place before the objects being linked to create a
23960# shared library.
23961predep_objects=$lt_predep_objects_GCJ
23962
23963# Dependencies to place after the objects being linked to create a
23964# shared library.
23965postdep_objects=$lt_postdep_objects_GCJ
23966
23967# Dependencies to place before the objects being linked to create a
23968# shared library.
23969predeps=$lt_predeps_GCJ
23970
23971# Dependencies to place after the objects being linked to create a
23972# shared library.
23973postdeps=$lt_postdeps_GCJ
23974
23975# The library search path used internally by the compiler when linking
23976# a shared library.
23977compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23978
23979# Method to check whether dependent libraries are shared objects.
23980deplibs_check_method=$lt_deplibs_check_method
23981
23982# Command to use when deplibs_check_method == file_magic.
23983file_magic_cmd=$lt_file_magic_cmd
23984
23985# Flag that allows shared libraries with undefined symbols to be built.
23986allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23987
23988# Flag that forces no undefined symbols.
23989no_undefined_flag=$lt_no_undefined_flag_GCJ
23990
23991# Commands used to finish a libtool library installation in a directory.
23992finish_cmds=$lt_finish_cmds
23993
23994# Same as above, but a single script fragment to be evaled but not shown.
23995finish_eval=$lt_finish_eval
23996
23997# Take the output of nm and produce a listing of raw symbols and C names.
23998global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23999
24000# Transform the output of nm in a proper C declaration
24001global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24002
24003# Transform the output of nm in a C name address pair
24004global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24005
24006# This is the shared library runtime path variable.
24007runpath_var=$runpath_var
24008
24009# This is the shared library path variable.
24010shlibpath_var=$shlibpath_var
24011
24012# Is shlibpath searched before the hard-coded library search path?
24013shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24014
24015# How to hardcode a shared library path into an executable.
24016hardcode_action=$hardcode_action_GCJ
24017
24018# Whether we should hardcode library paths into libraries.
24019hardcode_into_libs=$hardcode_into_libs
24020
24021# Flag to hardcode \$libdir into a binary during linking.
24022# This must work even if \$libdir does not exist.
24023hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24024
24025# If ld is used when linking, flag to hardcode \$libdir into
24026# a binary during linking. This must work even if \$libdir does
24027# not exist.
24028hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24029
24030# Whether we need a single -rpath flag with a separated argument.
24031hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24032
24033# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24034# resulting binary.
24035hardcode_direct=$hardcode_direct_GCJ
24036
24037# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24038# resulting binary.
24039hardcode_minus_L=$hardcode_minus_L_GCJ
24040
24041# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24042# the resulting binary.
24043hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24044
24045# Set to yes if building a shared library automatically hardcodes DIR into the library
24046# and all subsequent libraries and executables linked against it.
24047hardcode_automatic=$hardcode_automatic_GCJ
24048
24049# Variables whose values should be saved in libtool wrapper scripts and
24050# restored at relink time.
24051variables_saved_for_relink="$variables_saved_for_relink"
24052
24053# Whether libtool must link a program against all its dependency libraries.
24054link_all_deplibs=$link_all_deplibs_GCJ
24055
24056# Compile-time system search path for libraries
24057sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24058
24059# Run-time system search path for libraries
24060sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24061
24062# Fix the shell variable \$srcfile for the compiler.
24063fix_srcfile_path="$fix_srcfile_path_GCJ"
24064
24065# Set to yes if exported symbols are required.
24066always_export_symbols=$always_export_symbols_GCJ
24067
24068# The commands to list exported symbols.
24069export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24070
24071# The commands to extract the exported symbol list from a shared archive.
24072extract_expsyms_cmds=$lt_extract_expsyms_cmds
24073
24074# Symbols that should not be listed in the preloaded symbols.
24075exclude_expsyms=$lt_exclude_expsyms_GCJ
24076
24077# Symbols that must always be exported.
24078include_expsyms=$lt_include_expsyms_GCJ
24079
24080# ### END LIBTOOL TAG CONFIG: $tagname
24081
24082__EOF__
24083
24084
24085else
24086 # If there is no Makefile yet, we rely on a make rule to execute
24087 # `config.status --recheck' to rerun these tests and create the
24088 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024089 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24090 if test -f "$ltmain_in"; then
24091 test -f Makefile && make "$ltmain"
24092 fi
John Criswell47fdd832003-07-14 16:52:07 +000024093fi
24094
24095
24096ac_ext=c
24097ac_cpp='$CPP $CPPFLAGS'
24098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24100ac_compiler_gnu=$ac_cv_c_compiler_gnu
24101
24102CC="$lt_save_CC"
24103
24104 else
24105 tagname=""
24106 fi
24107 ;;
24108
24109 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024110 ac_ext=c
24111ac_cpp='$CPP $CPPFLAGS'
24112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24114ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024115
24116
24117# Source file extension for RC test sources.
24118ac_ext=rc
24119
24120# Object file extension for compiled RC test sources.
24121objext=o
24122objext_RC=$objext
24123
24124# Code to be used in simple compile tests
24125lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24126
24127# Code to be used in simple link tests
24128lt_simple_link_test_code="$lt_simple_compile_test_code"
24129
24130# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24131
24132# If no C compiler was specified, use CC.
24133LTCC=${LTCC-"$CC"}
24134
24135# Allow CC to be a program name with arguments.
24136compiler=$CC
24137
24138
24139# Allow CC to be a program name with arguments.
24140lt_save_CC="$CC"
24141CC=${RC-"windres"}
24142compiler=$CC
24143compiler_RC=$CC
24144lt_cv_prog_compiler_c_o_RC=yes
24145
24146# The else clause should only fire when bootstrapping the
24147# libtool distribution, otherwise you forgot to ship ltmain.sh
24148# with your package, and you will get complaints that there are
24149# no rules to generate ltmain.sh.
24150if test -f "$ltmain"; then
24151 # See if we are running on zsh, and set the options which allow our commands through
24152 # without removal of \ escapes.
24153 if test -n "${ZSH_VERSION+set}" ; then
24154 setopt NO_GLOB_SUBST
24155 fi
24156 # Now quote all the things that may contain metacharacters while being
24157 # careful not to overquote the AC_SUBSTed values. We take copies of the
24158 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024159 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24160 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024161 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24162 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24163 deplibs_check_method reload_flag reload_cmds need_locks \
24164 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24165 lt_cv_sys_global_symbol_to_c_name_address \
24166 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24167 old_postinstall_cmds old_postuninstall_cmds \
24168 compiler_RC \
24169 CC_RC \
24170 LD_RC \
24171 lt_prog_compiler_wl_RC \
24172 lt_prog_compiler_pic_RC \
24173 lt_prog_compiler_static_RC \
24174 lt_prog_compiler_no_builtin_flag_RC \
24175 export_dynamic_flag_spec_RC \
24176 thread_safe_flag_spec_RC \
24177 whole_archive_flag_spec_RC \
24178 enable_shared_with_static_runtimes_RC \
24179 old_archive_cmds_RC \
24180 old_archive_from_new_cmds_RC \
24181 predep_objects_RC \
24182 postdep_objects_RC \
24183 predeps_RC \
24184 postdeps_RC \
24185 compiler_lib_search_path_RC \
24186 archive_cmds_RC \
24187 archive_expsym_cmds_RC \
24188 postinstall_cmds_RC \
24189 postuninstall_cmds_RC \
24190 old_archive_from_expsyms_cmds_RC \
24191 allow_undefined_flag_RC \
24192 no_undefined_flag_RC \
24193 export_symbols_cmds_RC \
24194 hardcode_libdir_flag_spec_RC \
24195 hardcode_libdir_flag_spec_ld_RC \
24196 hardcode_libdir_separator_RC \
24197 hardcode_automatic_RC \
24198 module_cmds_RC \
24199 module_expsym_cmds_RC \
24200 lt_cv_prog_compiler_c_o_RC \
24201 exclude_expsyms_RC \
24202 include_expsyms_RC; do
24203
24204 case $var in
24205 old_archive_cmds_RC | \
24206 old_archive_from_new_cmds_RC | \
24207 archive_cmds_RC | \
24208 archive_expsym_cmds_RC | \
24209 module_cmds_RC | \
24210 module_expsym_cmds_RC | \
24211 old_archive_from_expsyms_cmds_RC | \
24212 export_symbols_cmds_RC | \
24213 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24214 postinstall_cmds | postuninstall_cmds | \
24215 old_postinstall_cmds | old_postuninstall_cmds | \
24216 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24217 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024218 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 +000024219 ;;
24220 *)
24221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24222 ;;
24223 esac
24224 done
24225
24226 case $lt_echo in
24227 *'\$0 --fallback-echo"')
24228 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24229 ;;
24230 esac
24231
24232cfgfile="$ofile"
24233
24234 cat <<__EOF__ >> "$cfgfile"
24235# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24236
24237# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24238
24239# Shell to use when invoking shell scripts.
24240SHELL=$lt_SHELL
24241
24242# Whether or not to build shared libraries.
24243build_libtool_libs=$enable_shared
24244
24245# Whether or not to build static libraries.
24246build_old_libs=$enable_static
24247
24248# Whether or not to add -lc for building shared libraries.
24249build_libtool_need_lc=$archive_cmds_need_lc_RC
24250
24251# Whether or not to disallow shared libs when runtime libs are static
24252allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24253
24254# Whether or not to optimize for fast installation.
24255fast_install=$enable_fast_install
24256
24257# The host system.
24258host_alias=$host_alias
24259host=$host
24260
24261# An echo program that does not interpret backslashes.
24262echo=$lt_echo
24263
24264# The archiver.
24265AR=$lt_AR
24266AR_FLAGS=$lt_AR_FLAGS
24267
24268# A C compiler.
24269LTCC=$lt_LTCC
24270
24271# A language-specific compiler.
24272CC=$lt_compiler_RC
24273
24274# Is the compiler the GNU C compiler?
24275with_gcc=$GCC_RC
24276
24277# An ERE matcher.
24278EGREP=$lt_EGREP
24279
24280# The linker used to build libraries.
24281LD=$lt_LD_RC
24282
24283# Whether we need hard or soft links.
24284LN_S=$lt_LN_S
24285
24286# A BSD-compatible nm program.
24287NM=$lt_NM
24288
24289# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024290STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024291
24292# Used to examine libraries when file_magic_cmd begins "file"
24293MAGIC_CMD=$MAGIC_CMD
24294
24295# Used on cygwin: DLL creation program.
24296DLLTOOL="$DLLTOOL"
24297
24298# Used on cygwin: object dumper.
24299OBJDUMP="$OBJDUMP"
24300
24301# Used on cygwin: assembler.
24302AS="$AS"
24303
24304# The name of the directory that contains temporary libtool files.
24305objdir=$objdir
24306
24307# How to create reloadable object files.
24308reload_flag=$lt_reload_flag
24309reload_cmds=$lt_reload_cmds
24310
24311# How to pass a linker flag through the compiler.
24312wl=$lt_lt_prog_compiler_wl_RC
24313
24314# Object file suffix (normally "o").
24315objext="$ac_objext"
24316
24317# Old archive suffix (normally "a").
24318libext="$libext"
24319
24320# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024321shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024322
24323# Executable file suffix (normally "").
24324exeext="$exeext"
24325
24326# Additional compiler flags for building library objects.
24327pic_flag=$lt_lt_prog_compiler_pic_RC
24328pic_mode=$pic_mode
24329
24330# What is the maximum length of a command?
24331max_cmd_len=$lt_cv_sys_max_cmd_len
24332
24333# Does compiler simultaneously support -c and -o options?
24334compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24335
24336# Must we lock files when doing compilation ?
24337need_locks=$lt_need_locks
24338
24339# Do we need the lib prefix for modules?
24340need_lib_prefix=$need_lib_prefix
24341
24342# Do we need a version for libraries?
24343need_version=$need_version
24344
24345# Whether dlopen is supported.
24346dlopen_support=$enable_dlopen
24347
24348# Whether dlopen of programs is supported.
24349dlopen_self=$enable_dlopen_self
24350
24351# Whether dlopen of statically linked programs is supported.
24352dlopen_self_static=$enable_dlopen_self_static
24353
24354# Compiler flag to prevent dynamic linking.
24355link_static_flag=$lt_lt_prog_compiler_static_RC
24356
24357# Compiler flag to turn off builtin functions.
24358no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24359
24360# Compiler flag to allow reflexive dlopens.
24361export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24362
24363# Compiler flag to generate shared objects directly from archives.
24364whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24365
24366# Compiler flag to generate thread-safe objects.
24367thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24368
24369# Library versioning type.
24370version_type=$version_type
24371
24372# Format of library name prefix.
24373libname_spec=$lt_libname_spec
24374
24375# List of archive names. First name is the real one, the rest are links.
24376# The last name is the one that the linker finds with -lNAME.
24377library_names_spec=$lt_library_names_spec
24378
24379# The coded name of the library, if different from the real name.
24380soname_spec=$lt_soname_spec
24381
24382# Commands used to build and install an old-style archive.
24383RANLIB=$lt_RANLIB
24384old_archive_cmds=$lt_old_archive_cmds_RC
24385old_postinstall_cmds=$lt_old_postinstall_cmds
24386old_postuninstall_cmds=$lt_old_postuninstall_cmds
24387
24388# Create an old-style archive from a shared archive.
24389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24390
24391# Create a temporary old-style archive to link instead of a shared archive.
24392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24393
24394# Commands used to build and install a shared archive.
24395archive_cmds=$lt_archive_cmds_RC
24396archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24397postinstall_cmds=$lt_postinstall_cmds
24398postuninstall_cmds=$lt_postuninstall_cmds
24399
24400# Commands used to build a loadable module (assumed same as above if empty)
24401module_cmds=$lt_module_cmds_RC
24402module_expsym_cmds=$lt_module_expsym_cmds_RC
24403
24404# Commands to strip libraries.
24405old_striplib=$lt_old_striplib
24406striplib=$lt_striplib
24407
24408# Dependencies to place before the objects being linked to create a
24409# shared library.
24410predep_objects=$lt_predep_objects_RC
24411
24412# Dependencies to place after the objects being linked to create a
24413# shared library.
24414postdep_objects=$lt_postdep_objects_RC
24415
24416# Dependencies to place before the objects being linked to create a
24417# shared library.
24418predeps=$lt_predeps_RC
24419
24420# Dependencies to place after the objects being linked to create a
24421# shared library.
24422postdeps=$lt_postdeps_RC
24423
24424# The library search path used internally by the compiler when linking
24425# a shared library.
24426compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24427
24428# Method to check whether dependent libraries are shared objects.
24429deplibs_check_method=$lt_deplibs_check_method
24430
24431# Command to use when deplibs_check_method == file_magic.
24432file_magic_cmd=$lt_file_magic_cmd
24433
24434# Flag that allows shared libraries with undefined symbols to be built.
24435allow_undefined_flag=$lt_allow_undefined_flag_RC
24436
24437# Flag that forces no undefined symbols.
24438no_undefined_flag=$lt_no_undefined_flag_RC
24439
24440# Commands used to finish a libtool library installation in a directory.
24441finish_cmds=$lt_finish_cmds
24442
24443# Same as above, but a single script fragment to be evaled but not shown.
24444finish_eval=$lt_finish_eval
24445
24446# Take the output of nm and produce a listing of raw symbols and C names.
24447global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24448
24449# Transform the output of nm in a proper C declaration
24450global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24451
24452# Transform the output of nm in a C name address pair
24453global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24454
24455# This is the shared library runtime path variable.
24456runpath_var=$runpath_var
24457
24458# This is the shared library path variable.
24459shlibpath_var=$shlibpath_var
24460
24461# Is shlibpath searched before the hard-coded library search path?
24462shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24463
24464# How to hardcode a shared library path into an executable.
24465hardcode_action=$hardcode_action_RC
24466
24467# Whether we should hardcode library paths into libraries.
24468hardcode_into_libs=$hardcode_into_libs
24469
24470# Flag to hardcode \$libdir into a binary during linking.
24471# This must work even if \$libdir does not exist.
24472hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24473
24474# If ld is used when linking, flag to hardcode \$libdir into
24475# a binary during linking. This must work even if \$libdir does
24476# not exist.
24477hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24478
24479# Whether we need a single -rpath flag with a separated argument.
24480hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24481
24482# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24483# resulting binary.
24484hardcode_direct=$hardcode_direct_RC
24485
24486# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24487# resulting binary.
24488hardcode_minus_L=$hardcode_minus_L_RC
24489
24490# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24491# the resulting binary.
24492hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24493
24494# Set to yes if building a shared library automatically hardcodes DIR into the library
24495# and all subsequent libraries and executables linked against it.
24496hardcode_automatic=$hardcode_automatic_RC
24497
24498# Variables whose values should be saved in libtool wrapper scripts and
24499# restored at relink time.
24500variables_saved_for_relink="$variables_saved_for_relink"
24501
24502# Whether libtool must link a program against all its dependency libraries.
24503link_all_deplibs=$link_all_deplibs_RC
24504
24505# Compile-time system search path for libraries
24506sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24507
24508# Run-time system search path for libraries
24509sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24510
24511# Fix the shell variable \$srcfile for the compiler.
24512fix_srcfile_path="$fix_srcfile_path_RC"
24513
24514# Set to yes if exported symbols are required.
24515always_export_symbols=$always_export_symbols_RC
24516
24517# The commands to list exported symbols.
24518export_symbols_cmds=$lt_export_symbols_cmds_RC
24519
24520# The commands to extract the exported symbol list from a shared archive.
24521extract_expsyms_cmds=$lt_extract_expsyms_cmds
24522
24523# Symbols that should not be listed in the preloaded symbols.
24524exclude_expsyms=$lt_exclude_expsyms_RC
24525
24526# Symbols that must always be exported.
24527include_expsyms=$lt_include_expsyms_RC
24528
24529# ### END LIBTOOL TAG CONFIG: $tagname
24530
24531__EOF__
24532
24533
24534else
24535 # If there is no Makefile yet, we rely on a make rule to execute
24536 # `config.status --recheck' to rerun these tests and create the
24537 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024538 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24539 if test -f "$ltmain_in"; then
24540 test -f Makefile && make "$ltmain"
24541 fi
John Criswell47fdd832003-07-14 16:52:07 +000024542fi
24543
24544
24545ac_ext=c
24546ac_cpp='$CPP $CPPFLAGS'
24547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24549ac_compiler_gnu=$ac_cv_c_compiler_gnu
24550
24551CC="$lt_save_CC"
24552
24553 ;;
24554
24555 *)
24556 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24557echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24558 { (exit 1); exit 1; }; }
24559 ;;
24560 esac
24561
24562 # Append the new tag name to the list of available tags.
24563 if test -n "$tagname" ; then
24564 available_tags="$available_tags $tagname"
24565 fi
24566 fi
24567 done
24568 IFS="$lt_save_ifs"
24569
24570 # Now substitute the updated list of available tags.
24571 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24572 mv "${ofile}T" "$ofile"
24573 chmod +x "$ofile"
24574 else
24575 rm -f "${ofile}T"
24576 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24577echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24578 { (exit 1); exit 1; }; }
24579 fi
24580fi
John Criswell7a73b802003-06-30 21:59:07 +000024581
24582
24583
24584# This can be used to rebuild libtool when needed
24585LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24586
24587# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024588LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024589
24590# Prevent multiple expansion
24591
24592
24593
John Criswell47fdd832003-07-14 16:52:07 +000024594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024611
Reid Spencer582a23c2004-12-29 07:07:57 +000024612if test "$lt_cv_dlopen_self" = "yes" ; then
24613
24614cat >>confdefs.h <<\_ACEOF
24615#define CAN_DLOPEN_SELF 1
24616_ACEOF
24617
24618fi
24619
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024620etags_version=`$ETAGS --version 2>&1`
24621case "$etags_version" in
24622 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24623 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24624 *) ETAGSFLAGS="" ;;
24625esac
24626ETAGSFLAGS=$ETAGSFLAGS
24627
24628
Reid Spencer7931a782004-12-27 06:15:02 +000024629if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencer59473af2004-12-25 07:31:29 +000024630 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24631set dummy llvm-gcc; ac_word=$2
24632echo "$as_me:$LINENO: checking for $ac_word" >&5
24633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24634if test "${ac_cv_path_LLVMGCC+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24636else
24637 case $LLVMGCC in
24638 [\\/]* | ?:[\\/]*)
24639 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24640 ;;
24641 *)
24642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24643for as_dir in $PATH
24644do
24645 IFS=$as_save_IFS
24646 test -z "$as_dir" && as_dir=.
24647 for ac_exec_ext in '' $ac_executable_extensions; do
24648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24649 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24651 break 2
24652 fi
24653done
24654done
24655
24656 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24657 ;;
24658esac
24659fi
24660LLVMGCC=$ac_cv_path_LLVMGCC
24661
24662if test -n "$LLVMGCC"; then
24663 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24664echo "${ECHO_T}$LLVMGCC" >&6
24665else
24666 echo "$as_me:$LINENO: result: no" >&5
24667echo "${ECHO_T}no" >&6
24668fi
24669
24670 # Extract the first word of "llvm-g++", so it can be a program name with args.
24671set dummy llvm-g++; ac_word=$2
24672echo "$as_me:$LINENO: checking for $ac_word" >&5
24673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24674if test "${ac_cv_path_LLVMGXX+set}" = set; then
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
24676else
24677 case $LLVMGXX in
24678 [\\/]* | ?:[\\/]*)
24679 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24680 ;;
24681 *)
24682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24683for as_dir in $PATH
24684do
24685 IFS=$as_save_IFS
24686 test -z "$as_dir" && as_dir=.
24687 for ac_exec_ext in '' $ac_executable_extensions; do
24688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24689 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24691 break 2
24692 fi
24693done
24694done
24695
24696 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24697 ;;
24698esac
24699fi
24700LLVMGXX=$ac_cv_path_LLVMGXX
24701
24702if test -n "$LLVMGXX"; then
24703 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24704echo "${ECHO_T}$LLVMGXX" >&6
24705else
24706 echo "$as_me:$LINENO: result: no" >&5
24707echo "${ECHO_T}no" >&6
24708fi
24709
24710else
24711 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24712 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24713 LLVMGCC=$LLVMGCC
24714
24715 LLVMGXX=$LLVMGXX
24716
24717fi
24718
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024719echo "$as_me:$LINENO: checking tool compatibility" >&5
24720echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24721
Reid Spencer86901802004-12-08 23:07:27 +000024722ICC=no
24723IXX=no
24724case $CC in
24725 icc*|icpc*)
24726 ICC=yes
24727 IXX=yes
24728 ;;
24729 *)
24730 ;;
24731esac
24732
24733if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024734then
Reid Spencer86901802004-12-08 23:07:27 +000024735 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24736echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024737 { (exit 1); exit 1; }; }
24738fi
24739
Reid Spencer86901802004-12-08 23:07:27 +000024740if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024741then
Reid Spencer86901802004-12-08 23:07:27 +000024742 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24743echo "$as_me: error: g++|icc required but not found" >&2;}
24744 { (exit 1); exit 1; }; }
24745fi
24746
24747if test "$GCC" = "yes"
24748then
24749 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24750 if test "$gccmajor" -lt "3"
24751 then
24752 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024753echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24754 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024755 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024756fi
24757
24758if test -z "$llvm_cv_gnu_make_command"
24759then
24760 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24761echo "$as_me: error: GNU Make required but not found" >&2;}
24762 { (exit 1); exit 1; }; }
24763fi
24764
24765echo "$as_me:$LINENO: result: ok" >&5
24766echo "${ECHO_T}ok" >&6
24767
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024768
John Criswell7a73b802003-06-30 21:59:07 +000024769
John Criswell7a73b802003-06-30 21:59:07 +000024770echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24771echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24772if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24773 echo $ECHO_N "(cached) $ECHO_C" >&6
24774else
24775 ac_check_lib_save_LIBS=$LIBS
24776LIBS="-lelf $LIBS"
24777cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024778/* confdefs.h. */
24779_ACEOF
24780cat confdefs.h >>conftest.$ac_ext
24781cat >>conftest.$ac_ext <<_ACEOF
24782/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024783
24784/* Override any gcc2 internal prototype to avoid an error. */
24785#ifdef __cplusplus
24786extern "C"
24787#endif
24788/* We use char because int might match the return type of a gcc2
24789 builtin and then its argument prototype would still apply. */
24790char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024791int
24792main ()
24793{
24794elf_begin ();
24795 ;
24796 return 0;
24797}
24798_ACEOF
24799rm -f conftest.$ac_objext conftest$ac_exeext
24800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024801 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024803 grep -v '^ *+' conftest.er1 >conftest.err
24804 rm -f conftest.er1
24805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024808 { ac_try='test -z "$ac_c_werror_flag"
24809 || test ! -s conftest.err'
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; } &&
24815 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817 (eval $ac_try) 2>&5
24818 ac_status=$?
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; }; then
24821 ac_cv_lib_elf_elf_begin=yes
24822else
24823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024824sed 's/^/| /' conftest.$ac_ext >&5
24825
John Criswell7a73b802003-06-30 21:59:07 +000024826ac_cv_lib_elf_elf_begin=no
24827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024828rm -f conftest.err conftest.$ac_objext \
24829 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024830LIBS=$ac_check_lib_save_LIBS
24831fi
24832echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24833echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24834if test $ac_cv_lib_elf_elf_begin = yes; then
24835 cat >>confdefs.h <<_ACEOF
24836#define HAVE_LIBELF 1
24837_ACEOF
24838
24839 LIBS="-lelf $LIBS"
24840
24841fi
24842
24843
Reid Spencer17795972004-11-18 09:47:37 +000024844echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24845echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24846if test "${ac_cv_search_lt_dlopen+set}" = set; then
24847 echo $ECHO_N "(cached) $ECHO_C" >&6
24848else
24849 ac_func_search_save_LIBS=$LIBS
24850ac_cv_search_lt_dlopen=no
24851cat >conftest.$ac_ext <<_ACEOF
24852/* confdefs.h. */
24853_ACEOF
24854cat confdefs.h >>conftest.$ac_ext
24855cat >>conftest.$ac_ext <<_ACEOF
24856/* end confdefs.h. */
24857
24858/* Override any gcc2 internal prototype to avoid an error. */
24859#ifdef __cplusplus
24860extern "C"
24861#endif
24862/* We use char because int might match the return type of a gcc2
24863 builtin and then its argument prototype would still apply. */
24864char lt_dlopen ();
24865int
24866main ()
24867{
24868lt_dlopen ();
24869 ;
24870 return 0;
24871}
24872_ACEOF
24873rm -f conftest.$ac_objext conftest$ac_exeext
24874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24875 (eval $ac_link) 2>conftest.er1
24876 ac_status=$?
24877 grep -v '^ *+' conftest.er1 >conftest.err
24878 rm -f conftest.er1
24879 cat conftest.err >&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
24882 { ac_try='test -z "$ac_c_werror_flag"
24883 || test ! -s conftest.err'
24884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 (eval $ac_try) 2>&5
24886 ac_status=$?
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; } &&
24889 { ac_try='test -s conftest$ac_exeext'
24890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24892 ac_status=$?
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
24895 ac_cv_search_lt_dlopen="none required"
24896else
24897 echo "$as_me: failed program was:" >&5
24898sed 's/^/| /' conftest.$ac_ext >&5
24899
24900fi
24901rm -f conftest.err conftest.$ac_objext \
24902 conftest$ac_exeext conftest.$ac_ext
24903if test "$ac_cv_search_lt_dlopen" = no; then
24904 for ac_lib in ltdl; do
24905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24906 cat >conftest.$ac_ext <<_ACEOF
24907/* confdefs.h. */
24908_ACEOF
24909cat confdefs.h >>conftest.$ac_ext
24910cat >>conftest.$ac_ext <<_ACEOF
24911/* end confdefs.h. */
24912
24913/* Override any gcc2 internal prototype to avoid an error. */
24914#ifdef __cplusplus
24915extern "C"
24916#endif
24917/* We use char because int might match the return type of a gcc2
24918 builtin and then its argument prototype would still apply. */
24919char lt_dlopen ();
24920int
24921main ()
24922{
24923lt_dlopen ();
24924 ;
24925 return 0;
24926}
24927_ACEOF
24928rm -f conftest.$ac_objext conftest$ac_exeext
24929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24930 (eval $ac_link) 2>conftest.er1
24931 ac_status=$?
24932 grep -v '^ *+' conftest.er1 >conftest.err
24933 rm -f conftest.er1
24934 cat conftest.err >&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } &&
24937 { ac_try='test -z "$ac_c_werror_flag"
24938 || test ! -s conftest.err'
24939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24940 (eval $ac_try) 2>&5
24941 ac_status=$?
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); }; } &&
24944 { ac_try='test -s conftest$ac_exeext'
24945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946 (eval $ac_try) 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; }; then
24950 ac_cv_search_lt_dlopen="-l$ac_lib"
24951break
24952else
24953 echo "$as_me: failed program was:" >&5
24954sed 's/^/| /' conftest.$ac_ext >&5
24955
24956fi
24957rm -f conftest.err conftest.$ac_objext \
24958 conftest$ac_exeext conftest.$ac_ext
24959 done
24960fi
24961LIBS=$ac_func_search_save_LIBS
24962fi
24963echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24964echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24965if test "$ac_cv_search_lt_dlopen" != no; then
24966 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24967
24968cat >>confdefs.h <<\_ACEOF
24969#define HAVE_LT_DLOPEN 1
24970_ACEOF
24971
24972else
24973 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24974 not be available" >&5
24975echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24976 not be available" >&2;}
24977fi
24978
24979
John Criswell7a73b802003-06-30 21:59:07 +000024980echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24981echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24982if test "${ac_cv_search_dlopen+set}" = set; then
24983 echo $ECHO_N "(cached) $ECHO_C" >&6
24984else
24985 ac_func_search_save_LIBS=$LIBS
24986ac_cv_search_dlopen=no
24987cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024988/* confdefs.h. */
24989_ACEOF
24990cat confdefs.h >>conftest.$ac_ext
24991cat >>conftest.$ac_ext <<_ACEOF
24992/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024993
24994/* Override any gcc2 internal prototype to avoid an error. */
24995#ifdef __cplusplus
24996extern "C"
24997#endif
24998/* We use char because int might match the return type of a gcc2
24999 builtin and then its argument prototype would still apply. */
25000char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025001int
25002main ()
25003{
25004dlopen ();
25005 ;
25006 return 0;
25007}
25008_ACEOF
25009rm -f conftest.$ac_objext conftest$ac_exeext
25010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025011 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025012 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025013 grep -v '^ *+' conftest.er1 >conftest.err
25014 rm -f conftest.er1
25015 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025018 { ac_try='test -z "$ac_c_werror_flag"
25019 || test ! -s conftest.err'
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25022 ac_status=$?
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
25025 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 ac_cv_search_dlopen="none required"
25032else
25033 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025034sed 's/^/| /' conftest.$ac_ext >&5
25035
John Criswell7a73b802003-06-30 21:59:07 +000025036fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025037rm -f conftest.err conftest.$ac_objext \
25038 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025039if test "$ac_cv_search_dlopen" = no; then
25040 for ac_lib in dl; do
25041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25042 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025043/* confdefs.h. */
25044_ACEOF
25045cat confdefs.h >>conftest.$ac_ext
25046cat >>conftest.$ac_ext <<_ACEOF
25047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025048
25049/* Override any gcc2 internal prototype to avoid an error. */
25050#ifdef __cplusplus
25051extern "C"
25052#endif
25053/* We use char because int might match the return type of a gcc2
25054 builtin and then its argument prototype would still apply. */
25055char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025056int
25057main ()
25058{
25059dlopen ();
25060 ;
25061 return 0;
25062}
25063_ACEOF
25064rm -f conftest.$ac_objext conftest$ac_exeext
25065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025066 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025067 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025068 grep -v '^ *+' conftest.er1 >conftest.err
25069 rm -f conftest.er1
25070 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025073 { ac_try='test -z "$ac_c_werror_flag"
25074 || test ! -s conftest.err'
25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; } &&
25080 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; }; then
25086 ac_cv_search_dlopen="-l$ac_lib"
25087break
25088else
25089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025090sed 's/^/| /' conftest.$ac_ext >&5
25091
John Criswell7a73b802003-06-30 21:59:07 +000025092fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025093rm -f conftest.err conftest.$ac_objext \
25094 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025095 done
25096fi
25097LIBS=$ac_func_search_save_LIBS
25098fi
25099echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25100echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25101if test "$ac_cv_search_dlopen" != no; then
25102 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025103
25104cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025105#define HAVE_DLOPEN 1
25106_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025107
25108else
Brian Gaekec45be042003-10-07 06:01:34 +000025109 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25110echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025111fi
25112
25113
25114echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25115echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25116if test "${ac_cv_search_mallinfo+set}" = set; then
25117 echo $ECHO_N "(cached) $ECHO_C" >&6
25118else
25119 ac_func_search_save_LIBS=$LIBS
25120ac_cv_search_mallinfo=no
25121cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025122/* confdefs.h. */
25123_ACEOF
25124cat confdefs.h >>conftest.$ac_ext
25125cat >>conftest.$ac_ext <<_ACEOF
25126/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025127
25128/* Override any gcc2 internal prototype to avoid an error. */
25129#ifdef __cplusplus
25130extern "C"
25131#endif
25132/* We use char because int might match the return type of a gcc2
25133 builtin and then its argument prototype would still apply. */
25134char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025135int
25136main ()
25137{
25138mallinfo ();
25139 ;
25140 return 0;
25141}
25142_ACEOF
25143rm -f conftest.$ac_objext conftest$ac_exeext
25144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025145 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025146 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025147 grep -v '^ *+' conftest.er1 >conftest.err
25148 rm -f conftest.er1
25149 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025152 { ac_try='test -z "$ac_c_werror_flag"
25153 || test ! -s conftest.err'
25154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); }; } &&
25159 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25162 ac_status=$?
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; }; then
25165 ac_cv_search_mallinfo="none required"
25166else
25167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025168sed 's/^/| /' conftest.$ac_ext >&5
25169
John Criswell7a73b802003-06-30 21:59:07 +000025170fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025171rm -f conftest.err conftest.$ac_objext \
25172 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025173if test "$ac_cv_search_mallinfo" = no; then
25174 for ac_lib in malloc; do
25175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25176 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025177/* confdefs.h. */
25178_ACEOF
25179cat confdefs.h >>conftest.$ac_ext
25180cat >>conftest.$ac_ext <<_ACEOF
25181/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025182
25183/* Override any gcc2 internal prototype to avoid an error. */
25184#ifdef __cplusplus
25185extern "C"
25186#endif
25187/* We use char because int might match the return type of a gcc2
25188 builtin and then its argument prototype would still apply. */
25189char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025190int
25191main ()
25192{
25193mallinfo ();
25194 ;
25195 return 0;
25196}
25197_ACEOF
25198rm -f conftest.$ac_objext conftest$ac_exeext
25199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025200 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025202 grep -v '^ *+' conftest.er1 >conftest.err
25203 rm -f conftest.er1
25204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025207 { ac_try='test -z "$ac_c_werror_flag"
25208 || test ! -s conftest.err'
25209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25210 (eval $ac_try) 2>&5
25211 ac_status=$?
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); }; } &&
25214 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25217 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; }; then
25220 ac_cv_search_mallinfo="-l$ac_lib"
25221break
25222else
25223 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025224sed 's/^/| /' conftest.$ac_ext >&5
25225
John Criswell7a73b802003-06-30 21:59:07 +000025226fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025227rm -f conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025229 done
25230fi
25231LIBS=$ac_func_search_save_LIBS
25232fi
25233echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25234echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25235if test "$ac_cv_search_mallinfo" != no; then
25236 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025237
25238cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025239#define HAVE_MALLINFO 1
25240_ACEOF
25241
25242fi
25243
25244
Brian Gaeke5f268f72003-12-05 19:29:01 +000025245echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25246echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25247if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25249else
25250 ac_func_search_save_LIBS=$LIBS
25251ac_cv_search_pthread_mutex_lock=no
25252cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025253/* confdefs.h. */
25254_ACEOF
25255cat confdefs.h >>conftest.$ac_ext
25256cat >>conftest.$ac_ext <<_ACEOF
25257/* end confdefs.h. */
25258
25259/* Override any gcc2 internal prototype to avoid an error. */
25260#ifdef __cplusplus
25261extern "C"
25262#endif
25263/* We use char because int might match the return type of a gcc2
25264 builtin and then its argument prototype would still apply. */
25265char pthread_mutex_lock ();
25266int
25267main ()
25268{
25269pthread_mutex_lock ();
25270 ;
25271 return 0;
25272}
25273_ACEOF
25274rm -f conftest.$ac_objext conftest$ac_exeext
25275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025276 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025277 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025278 grep -v '^ *+' conftest.er1 >conftest.err
25279 rm -f conftest.er1
25280 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025283 { ac_try='test -z "$ac_c_werror_flag"
25284 || test ! -s conftest.err'
25285 { (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); }; } &&
25290 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292 (eval $ac_try) 2>&5
25293 ac_status=$?
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); }; }; then
25296 ac_cv_search_pthread_mutex_lock="none required"
25297else
25298 echo "$as_me: failed program was:" >&5
25299sed 's/^/| /' conftest.$ac_ext >&5
25300
25301fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025302rm -f conftest.err conftest.$ac_objext \
25303 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025304if test "$ac_cv_search_pthread_mutex_lock" = no; then
25305 for ac_lib in pthread; do
25306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25307 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025308/* confdefs.h. */
25309_ACEOF
25310cat confdefs.h >>conftest.$ac_ext
25311cat >>conftest.$ac_ext <<_ACEOF
25312/* end confdefs.h. */
25313
25314/* Override any gcc2 internal prototype to avoid an error. */
25315#ifdef __cplusplus
25316extern "C"
25317#endif
25318/* We use char because int might match the return type of a gcc2
25319 builtin and then its argument prototype would still apply. */
25320char pthread_mutex_lock ();
25321int
25322main ()
25323{
25324pthread_mutex_lock ();
25325 ;
25326 return 0;
25327}
25328_ACEOF
25329rm -f conftest.$ac_objext conftest$ac_exeext
25330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025331 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025332 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025333 grep -v '^ *+' conftest.er1 >conftest.err
25334 rm -f conftest.er1
25335 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025338 { ac_try='test -z "$ac_c_werror_flag"
25339 || test ! -s conftest.err'
25340 { (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); }; } &&
25345 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; }; then
25351 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25352break
25353else
25354 echo "$as_me: failed program was:" >&5
25355sed 's/^/| /' conftest.$ac_ext >&5
25356
25357fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025358rm -f conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025360 done
25361fi
25362LIBS=$ac_func_search_save_LIBS
25363fi
25364echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25365echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25366if test "$ac_cv_search_pthread_mutex_lock" != no; then
25367 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025368
John Criswell40468462004-09-24 21:19:06 +000025369cat >>confdefs.h <<\_ACEOF
25370#define HAVE_PTHREAD_MUTEX_LOCK 1
25371_ACEOF
25372
25373fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025374
Brian Gaekec9a410c2004-02-23 21:30:37 +000025375
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025376
Reid Spencer59473af2004-12-25 07:31:29 +000025377
25378
25379
25380
25381
25382ac_header_dirent=no
25383for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25384 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25385echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25386echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25387if eval "test \"\${$as_ac_Header+set}\" = set"; then
25388 echo $ECHO_N "(cached) $ECHO_C" >&6
25389else
25390 cat >conftest.$ac_ext <<_ACEOF
25391/* confdefs.h. */
25392_ACEOF
25393cat confdefs.h >>conftest.$ac_ext
25394cat >>conftest.$ac_ext <<_ACEOF
25395/* end confdefs.h. */
25396#include <sys/types.h>
25397#include <$ac_hdr>
25398
25399int
25400main ()
25401{
25402if ((DIR *) 0)
25403return 0;
25404 ;
25405 return 0;
25406}
25407_ACEOF
25408rm -f conftest.$ac_objext
25409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25410 (eval $ac_compile) 2>conftest.er1
25411 ac_status=$?
25412 grep -v '^ *+' conftest.er1 >conftest.err
25413 rm -f conftest.er1
25414 cat conftest.err >&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } &&
25417 { ac_try='test -z "$ac_c_werror_flag"
25418 || test ! -s conftest.err'
25419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420 (eval $ac_try) 2>&5
25421 ac_status=$?
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; } &&
25424 { ac_try='test -s conftest.$ac_objext'
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
25427 ac_status=$?
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
25430 eval "$as_ac_Header=yes"
25431else
25432 echo "$as_me: failed program was:" >&5
25433sed 's/^/| /' conftest.$ac_ext >&5
25434
25435eval "$as_ac_Header=no"
25436fi
25437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25438fi
25439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25441if test `eval echo '${'$as_ac_Header'}'` = yes; then
25442 cat >>confdefs.h <<_ACEOF
25443#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25444_ACEOF
25445
25446ac_header_dirent=$ac_hdr; break
25447fi
25448
25449done
25450# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25451if test $ac_header_dirent = dirent.h; then
25452 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25453echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25454if test "${ac_cv_search_opendir+set}" = set; then
25455 echo $ECHO_N "(cached) $ECHO_C" >&6
25456else
25457 ac_func_search_save_LIBS=$LIBS
25458ac_cv_search_opendir=no
25459cat >conftest.$ac_ext <<_ACEOF
25460/* confdefs.h. */
25461_ACEOF
25462cat confdefs.h >>conftest.$ac_ext
25463cat >>conftest.$ac_ext <<_ACEOF
25464/* end confdefs.h. */
25465
25466/* Override any gcc2 internal prototype to avoid an error. */
25467#ifdef __cplusplus
25468extern "C"
25469#endif
25470/* We use char because int might match the return type of a gcc2
25471 builtin and then its argument prototype would still apply. */
25472char opendir ();
25473int
25474main ()
25475{
25476opendir ();
25477 ;
25478 return 0;
25479}
25480_ACEOF
25481rm -f conftest.$ac_objext conftest$ac_exeext
25482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25483 (eval $ac_link) 2>conftest.er1
25484 ac_status=$?
25485 grep -v '^ *+' conftest.er1 >conftest.err
25486 rm -f conftest.er1
25487 cat conftest.err >&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } &&
25490 { ac_try='test -z "$ac_c_werror_flag"
25491 || test ! -s conftest.err'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; } &&
25497 { ac_try='test -s conftest$ac_exeext'
25498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; }; then
25503 ac_cv_search_opendir="none required"
25504else
25505 echo "$as_me: failed program was:" >&5
25506sed 's/^/| /' conftest.$ac_ext >&5
25507
25508fi
25509rm -f conftest.err conftest.$ac_objext \
25510 conftest$ac_exeext conftest.$ac_ext
25511if test "$ac_cv_search_opendir" = no; then
25512 for ac_lib in dir; do
25513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25514 cat >conftest.$ac_ext <<_ACEOF
25515/* confdefs.h. */
25516_ACEOF
25517cat confdefs.h >>conftest.$ac_ext
25518cat >>conftest.$ac_ext <<_ACEOF
25519/* end confdefs.h. */
25520
25521/* Override any gcc2 internal prototype to avoid an error. */
25522#ifdef __cplusplus
25523extern "C"
25524#endif
25525/* We use char because int might match the return type of a gcc2
25526 builtin and then its argument prototype would still apply. */
25527char opendir ();
25528int
25529main ()
25530{
25531opendir ();
25532 ;
25533 return 0;
25534}
25535_ACEOF
25536rm -f conftest.$ac_objext conftest$ac_exeext
25537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25538 (eval $ac_link) 2>conftest.er1
25539 ac_status=$?
25540 grep -v '^ *+' conftest.er1 >conftest.err
25541 rm -f conftest.er1
25542 cat conftest.err >&5
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); } &&
25545 { ac_try='test -z "$ac_c_werror_flag"
25546 || test ! -s conftest.err'
25547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548 (eval $ac_try) 2>&5
25549 ac_status=$?
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); }; } &&
25552 { ac_try='test -s conftest$ac_exeext'
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; }; then
25558 ac_cv_search_opendir="-l$ac_lib"
25559break
25560else
25561 echo "$as_me: failed program was:" >&5
25562sed 's/^/| /' conftest.$ac_ext >&5
25563
25564fi
25565rm -f conftest.err conftest.$ac_objext \
25566 conftest$ac_exeext conftest.$ac_ext
25567 done
25568fi
25569LIBS=$ac_func_search_save_LIBS
25570fi
25571echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25572echo "${ECHO_T}$ac_cv_search_opendir" >&6
25573if test "$ac_cv_search_opendir" != no; then
25574 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25575
25576fi
25577
25578else
25579 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25580echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25581if test "${ac_cv_search_opendir+set}" = set; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25583else
25584 ac_func_search_save_LIBS=$LIBS
25585ac_cv_search_opendir=no
25586cat >conftest.$ac_ext <<_ACEOF
25587/* confdefs.h. */
25588_ACEOF
25589cat confdefs.h >>conftest.$ac_ext
25590cat >>conftest.$ac_ext <<_ACEOF
25591/* end confdefs.h. */
25592
25593/* Override any gcc2 internal prototype to avoid an error. */
25594#ifdef __cplusplus
25595extern "C"
25596#endif
25597/* We use char because int might match the return type of a gcc2
25598 builtin and then its argument prototype would still apply. */
25599char opendir ();
25600int
25601main ()
25602{
25603opendir ();
25604 ;
25605 return 0;
25606}
25607_ACEOF
25608rm -f conftest.$ac_objext conftest$ac_exeext
25609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25610 (eval $ac_link) 2>conftest.er1
25611 ac_status=$?
25612 grep -v '^ *+' conftest.er1 >conftest.err
25613 rm -f conftest.er1
25614 cat conftest.err >&5
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); } &&
25617 { ac_try='test -z "$ac_c_werror_flag"
25618 || test ! -s conftest.err'
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; } &&
25624 { ac_try='test -s conftest$ac_exeext'
25625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }; }; then
25630 ac_cv_search_opendir="none required"
25631else
25632 echo "$as_me: failed program was:" >&5
25633sed 's/^/| /' conftest.$ac_ext >&5
25634
25635fi
25636rm -f conftest.err conftest.$ac_objext \
25637 conftest$ac_exeext conftest.$ac_ext
25638if test "$ac_cv_search_opendir" = no; then
25639 for ac_lib in x; do
25640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25641 cat >conftest.$ac_ext <<_ACEOF
25642/* confdefs.h. */
25643_ACEOF
25644cat confdefs.h >>conftest.$ac_ext
25645cat >>conftest.$ac_ext <<_ACEOF
25646/* end confdefs.h. */
25647
25648/* Override any gcc2 internal prototype to avoid an error. */
25649#ifdef __cplusplus
25650extern "C"
25651#endif
25652/* We use char because int might match the return type of a gcc2
25653 builtin and then its argument prototype would still apply. */
25654char opendir ();
25655int
25656main ()
25657{
25658opendir ();
25659 ;
25660 return 0;
25661}
25662_ACEOF
25663rm -f conftest.$ac_objext conftest$ac_exeext
25664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25665 (eval $ac_link) 2>conftest.er1
25666 ac_status=$?
25667 grep -v '^ *+' conftest.er1 >conftest.err
25668 rm -f conftest.er1
25669 cat conftest.err >&5
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); } &&
25672 { ac_try='test -z "$ac_c_werror_flag"
25673 || test ! -s conftest.err'
25674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; } &&
25679 { ac_try='test -s conftest$ac_exeext'
25680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681 (eval $ac_try) 2>&5
25682 ac_status=$?
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); }; }; then
25685 ac_cv_search_opendir="-l$ac_lib"
25686break
25687else
25688 echo "$as_me: failed program was:" >&5
25689sed 's/^/| /' conftest.$ac_ext >&5
25690
25691fi
25692rm -f conftest.err conftest.$ac_objext \
25693 conftest$ac_exeext conftest.$ac_ext
25694 done
25695fi
25696LIBS=$ac_func_search_save_LIBS
25697fi
25698echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25699echo "${ECHO_T}$ac_cv_search_opendir" >&6
25700if test "$ac_cv_search_opendir" != no; then
25701 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25702
25703fi
25704
25705fi
25706
25707echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25708echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25709if test "${ac_cv_header_mmap_anon+set}" = set; then
25710 echo $ECHO_N "(cached) $ECHO_C" >&6
25711else
25712 ac_ext=c
25713ac_cpp='$CPP $CPPFLAGS'
25714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25716ac_compiler_gnu=$ac_cv_c_compiler_gnu
25717
25718 cat >conftest.$ac_ext <<_ACEOF
25719/* confdefs.h. */
25720_ACEOF
25721cat confdefs.h >>conftest.$ac_ext
25722cat >>conftest.$ac_ext <<_ACEOF
25723/* end confdefs.h. */
25724#include <sys/mman.h>
25725#include <unistd.h>
25726#include <fcntl.h>
25727int
25728main ()
25729{
25730mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25731 ;
25732 return 0;
25733}
25734_ACEOF
25735rm -f conftest.$ac_objext
25736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25737 (eval $ac_compile) 2>conftest.er1
25738 ac_status=$?
25739 grep -v '^ *+' conftest.er1 >conftest.err
25740 rm -f conftest.er1
25741 cat conftest.err >&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
25744 { ac_try='test -z "$ac_c_werror_flag"
25745 || test ! -s conftest.err'
25746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); }; } &&
25751 { ac_try='test -s conftest.$ac_objext'
25752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; }; then
25757 ac_cv_header_mmap_anon=yes
25758else
25759 echo "$as_me: failed program was:" >&5
25760sed 's/^/| /' conftest.$ac_ext >&5
25761
25762ac_cv_header_mmap_anon=no
25763fi
25764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25765 ac_ext=c
25766ac_cpp='$CPP $CPPFLAGS'
25767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25769ac_compiler_gnu=$ac_cv_c_compiler_gnu
25770
25771
25772fi
25773echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25774echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25775if test "$ac_cv_header_mmap_anon" = yes; then
25776
25777cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025778#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025779_ACEOF
25780
25781fi
25782
25783echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25784echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25785if test "${ac_cv_header_stat_broken+set}" = set; then
25786 echo $ECHO_N "(cached) $ECHO_C" >&6
25787else
25788 cat >conftest.$ac_ext <<_ACEOF
25789/* confdefs.h. */
25790_ACEOF
25791cat confdefs.h >>conftest.$ac_ext
25792cat >>conftest.$ac_ext <<_ACEOF
25793/* end confdefs.h. */
25794#include <sys/types.h>
25795#include <sys/stat.h>
25796
25797#if defined(S_ISBLK) && defined(S_IFDIR)
25798# if S_ISBLK (S_IFDIR)
25799You lose.
25800# endif
25801#endif
25802
25803#if defined(S_ISBLK) && defined(S_IFCHR)
25804# if S_ISBLK (S_IFCHR)
25805You lose.
25806# endif
25807#endif
25808
25809#if defined(S_ISLNK) && defined(S_IFREG)
25810# if S_ISLNK (S_IFREG)
25811You lose.
25812# endif
25813#endif
25814
25815#if defined(S_ISSOCK) && defined(S_IFREG)
25816# if S_ISSOCK (S_IFREG)
25817You lose.
25818# endif
25819#endif
25820
25821_ACEOF
25822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25823 $EGREP "You lose" >/dev/null 2>&1; then
25824 ac_cv_header_stat_broken=yes
25825else
25826 ac_cv_header_stat_broken=no
25827fi
25828rm -f conftest*
25829
25830fi
25831echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25832echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25833if test $ac_cv_header_stat_broken = yes; then
25834
25835cat >>confdefs.h <<\_ACEOF
25836#define STAT_MACROS_BROKEN 1
25837_ACEOF
25838
25839fi
25840
John Criswell7a73b802003-06-30 21:59:07 +000025841echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25842echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25843if test "${ac_cv_header_stdc+set}" = set; then
25844 echo $ECHO_N "(cached) $ECHO_C" >&6
25845else
25846 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025847/* confdefs.h. */
25848_ACEOF
25849cat confdefs.h >>conftest.$ac_ext
25850cat >>conftest.$ac_ext <<_ACEOF
25851/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025852#include <stdlib.h>
25853#include <stdarg.h>
25854#include <string.h>
25855#include <float.h>
25856
John Criswell0c38eaf2003-09-10 15:17:25 +000025857int
25858main ()
25859{
25860
25861 ;
25862 return 0;
25863}
John Criswell7a73b802003-06-30 21:59:07 +000025864_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025865rm -f conftest.$ac_objext
25866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025867 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025868 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025869 grep -v '^ *+' conftest.er1 >conftest.err
25870 rm -f conftest.er1
25871 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025873 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025874 { ac_try='test -z "$ac_c_werror_flag"
25875 || test ! -s conftest.err'
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25878 ac_status=$?
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; } &&
25881 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025887 ac_cv_header_stdc=yes
25888else
25889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025890sed 's/^/| /' conftest.$ac_ext >&5
25891
25892ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025893fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025895
25896if test $ac_cv_header_stdc = yes; then
25897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25898 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025899/* confdefs.h. */
25900_ACEOF
25901cat confdefs.h >>conftest.$ac_ext
25902cat >>conftest.$ac_ext <<_ACEOF
25903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025904#include <string.h>
25905
25906_ACEOF
25907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025908 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025909 :
25910else
25911 ac_cv_header_stdc=no
25912fi
25913rm -f conftest*
25914
25915fi
25916
25917if test $ac_cv_header_stdc = yes; then
25918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25919 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025925#include <stdlib.h>
25926
25927_ACEOF
25928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025929 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025930 :
25931else
25932 ac_cv_header_stdc=no
25933fi
25934rm -f conftest*
25935
25936fi
25937
25938if test $ac_cv_header_stdc = yes; then
25939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25940 if test "$cross_compiling" = yes; then
25941 :
25942else
25943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025944/* confdefs.h. */
25945_ACEOF
25946cat confdefs.h >>conftest.$ac_ext
25947cat >>conftest.$ac_ext <<_ACEOF
25948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025949#include <ctype.h>
25950#if ((' ' & 0x0FF) == 0x020)
25951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25953#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025954# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025955 (('a' <= (c) && (c) <= 'i') \
25956 || ('j' <= (c) && (c) <= 'r') \
25957 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25959#endif
25960
25961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25962int
25963main ()
25964{
25965 int i;
25966 for (i = 0; i < 256; i++)
25967 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025968 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025969 exit(2);
25970 exit (0);
25971}
25972_ACEOF
25973rm -f conftest$ac_exeext
25974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25975 (eval $ac_link) 2>&5
25976 ac_status=$?
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980 (eval $ac_try) 2>&5
25981 ac_status=$?
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); }; }; then
25984 :
25985else
25986 echo "$as_me: program exited with status $ac_status" >&5
25987echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025988sed 's/^/| /' conftest.$ac_ext >&5
25989
John Criswell7a73b802003-06-30 21:59:07 +000025990( exit $ac_status )
25991ac_cv_header_stdc=no
25992fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025994fi
25995fi
25996fi
25997echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25998echo "${ECHO_T}$ac_cv_header_stdc" >&6
25999if test $ac_cv_header_stdc = yes; then
26000
26001cat >>confdefs.h <<\_ACEOF
26002#define STDC_HEADERS 1
26003_ACEOF
26004
26005fi
26006
26007echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26008echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26009if test "${ac_cv_header_sys_wait_h+set}" = set; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26011else
26012 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026013/* confdefs.h. */
26014_ACEOF
26015cat confdefs.h >>conftest.$ac_ext
26016cat >>conftest.$ac_ext <<_ACEOF
26017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026018#include <sys/types.h>
26019#include <sys/wait.h>
26020#ifndef WEXITSTATUS
26021# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26022#endif
26023#ifndef WIFEXITED
26024# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26025#endif
26026
John Criswell7a73b802003-06-30 21:59:07 +000026027int
26028main ()
26029{
26030 int s;
26031 wait (&s);
26032 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26033 ;
26034 return 0;
26035}
26036_ACEOF
26037rm -f conftest.$ac_objext
26038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026039 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026041 grep -v '^ *+' conftest.er1 >conftest.err
26042 rm -f conftest.er1
26043 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026046 { ac_try='test -z "$ac_c_werror_flag"
26047 || test ! -s conftest.err'
26048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26049 (eval $ac_try) 2>&5
26050 ac_status=$?
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); }; } &&
26053 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055 (eval $ac_try) 2>&5
26056 ac_status=$?
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); }; }; then
26059 ac_cv_header_sys_wait_h=yes
26060else
26061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026062sed 's/^/| /' conftest.$ac_ext >&5
26063
John Criswell7a73b802003-06-30 21:59:07 +000026064ac_cv_header_sys_wait_h=no
26065fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026067fi
26068echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26069echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26070if test $ac_cv_header_sys_wait_h = yes; then
26071
26072cat >>confdefs.h <<\_ACEOF
26073#define HAVE_SYS_WAIT_H 1
26074_ACEOF
26075
26076fi
26077
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026078echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26079echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26080if test "${ac_cv_header_time+set}" = set; then
26081 echo $ECHO_N "(cached) $ECHO_C" >&6
26082else
26083 cat >conftest.$ac_ext <<_ACEOF
26084/* confdefs.h. */
26085_ACEOF
26086cat confdefs.h >>conftest.$ac_ext
26087cat >>conftest.$ac_ext <<_ACEOF
26088/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026089#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026090#include <sys/time.h>
26091#include <time.h>
26092
26093int
26094main ()
26095{
26096if ((struct tm *) 0)
26097return 0;
26098 ;
26099 return 0;
26100}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026101_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026102rm -f conftest.$ac_objext
26103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26104 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026105 ac_status=$?
26106 grep -v '^ *+' conftest.er1 >conftest.err
26107 rm -f conftest.er1
26108 cat conftest.err >&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026110 (exit $ac_status); } &&
26111 { ac_try='test -z "$ac_c_werror_flag"
26112 || test ! -s conftest.err'
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; } &&
26118 { ac_try='test -s conftest.$ac_objext'
26119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120 (eval $ac_try) 2>&5
26121 ac_status=$?
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); }; }; then
26124 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026125else
26126 echo "$as_me: failed program was:" >&5
26127sed 's/^/| /' conftest.$ac_ext >&5
26128
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026129ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026130fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26132fi
26133echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26134echo "${ECHO_T}$ac_cv_header_time" >&6
26135if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026136
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026137cat >>confdefs.h <<\_ACEOF
26138#define TIME_WITH_SYS_TIME 1
26139_ACEOF
26140
26141fi
26142
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026143
Reid Spencer59473af2004-12-25 07:31:29 +000026144
26145
26146
26147
26148
26149
26150for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26151do
26152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26153if eval "test \"\${$as_ac_Header+set}\" = set"; then
26154 echo "$as_me:$LINENO: checking for $ac_header" >&5
26155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26156if eval "test \"\${$as_ac_Header+set}\" = set"; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26158fi
26159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26161else
26162 # Is the header compilable?
26163echo "$as_me:$LINENO: checking $ac_header usability" >&5
26164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26165cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026166/* confdefs.h. */
26167_ACEOF
26168cat confdefs.h >>conftest.$ac_ext
26169cat >>conftest.$ac_ext <<_ACEOF
26170/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026171$ac_includes_default
26172#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026173_ACEOF
26174rm -f conftest.$ac_objext
26175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26176 (eval $ac_compile) 2>conftest.er1
26177 ac_status=$?
26178 grep -v '^ *+' conftest.er1 >conftest.err
26179 rm -f conftest.er1
26180 cat conftest.err >&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } &&
26183 { ac_try='test -z "$ac_c_werror_flag"
26184 || test ! -s conftest.err'
26185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186 (eval $ac_try) 2>&5
26187 ac_status=$?
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; } &&
26190 { ac_try='test -s conftest.$ac_objext'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026196 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026197else
26198 echo "$as_me: failed program was:" >&5
26199sed 's/^/| /' conftest.$ac_ext >&5
26200
Reid Spencer59473af2004-12-25 07:31:29 +000026201ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026202fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26205echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026206
Reid Spencer59473af2004-12-25 07:31:29 +000026207# Is the header present?
26208echo "$as_me:$LINENO: checking $ac_header presence" >&5
26209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26210cat >conftest.$ac_ext <<_ACEOF
26211/* confdefs.h. */
26212_ACEOF
26213cat confdefs.h >>conftest.$ac_ext
26214cat >>conftest.$ac_ext <<_ACEOF
26215/* end confdefs.h. */
26216#include <$ac_header>
26217_ACEOF
26218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26220 ac_status=$?
26221 grep -v '^ *+' conftest.er1 >conftest.err
26222 rm -f conftest.er1
26223 cat conftest.err >&5
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); } >/dev/null; then
26226 if test -s conftest.err; then
26227 ac_cpp_err=$ac_c_preproc_warn_flag
26228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26229 else
26230 ac_cpp_err=
26231 fi
26232else
26233 ac_cpp_err=yes
26234fi
26235if test -z "$ac_cpp_err"; then
26236 ac_header_preproc=yes
26237else
26238 echo "$as_me: failed program was:" >&5
26239sed 's/^/| /' conftest.$ac_ext >&5
26240
26241 ac_header_preproc=no
26242fi
26243rm -f conftest.err conftest.$ac_ext
26244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26245echo "${ECHO_T}$ac_header_preproc" >&6
26246
26247# So? What about this header?
26248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26249 yes:no: )
26250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26254 ac_header_preproc=yes
26255 ;;
26256 no:yes:* )
26257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26269 (
26270 cat <<\_ASBOX
26271## ----------------------------------- ##
26272## Report this to llvmbugs@cs.uiuc.edu ##
26273## ----------------------------------- ##
26274_ASBOX
26275 ) |
26276 sed "s/^/$as_me: WARNING: /" >&2
26277 ;;
26278esac
26279echo "$as_me:$LINENO: checking for $ac_header" >&5
26280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26281if eval "test \"\${$as_ac_Header+set}\" = set"; then
26282 echo $ECHO_N "(cached) $ECHO_C" >&6
26283else
26284 eval "$as_ac_Header=\$ac_header_preproc"
26285fi
26286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026288
26289fi
Reid Spencer59473af2004-12-25 07:31:29 +000026290if test `eval echo '${'$as_ac_Header'}'` = yes; then
26291 cat >>confdefs.h <<_ACEOF
26292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026293_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026294
26295fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026296
Reid Spencer59473af2004-12-25 07:31:29 +000026297done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026298
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026299
26300
Reid Spencer59473af2004-12-25 07:31:29 +000026301
26302
26303
26304
26305for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26306do
26307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26308if eval "test \"\${$as_ac_Header+set}\" = set"; then
26309 echo "$as_me:$LINENO: checking for $ac_header" >&5
26310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26311if eval "test \"\${$as_ac_Header+set}\" = set"; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26313fi
26314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26316else
26317 # Is the header compilable?
26318echo "$as_me:$LINENO: checking $ac_header usability" >&5
26319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26320cat >conftest.$ac_ext <<_ACEOF
26321/* confdefs.h. */
26322_ACEOF
26323cat confdefs.h >>conftest.$ac_ext
26324cat >>conftest.$ac_ext <<_ACEOF
26325/* end confdefs.h. */
26326$ac_includes_default
26327#include <$ac_header>
26328_ACEOF
26329rm -f conftest.$ac_objext
26330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26331 (eval $ac_compile) 2>conftest.er1
26332 ac_status=$?
26333 grep -v '^ *+' conftest.er1 >conftest.err
26334 rm -f conftest.er1
26335 cat conftest.err >&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } &&
26338 { ac_try='test -z "$ac_c_werror_flag"
26339 || test ! -s conftest.err'
26340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; } &&
26345 { ac_try='test -s conftest.$ac_objext'
26346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; }; then
26351 ac_header_compiler=yes
26352else
26353 echo "$as_me: failed program was:" >&5
26354sed 's/^/| /' conftest.$ac_ext >&5
26355
26356ac_header_compiler=no
26357fi
26358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26360echo "${ECHO_T}$ac_header_compiler" >&6
26361
26362# Is the header present?
26363echo "$as_me:$LINENO: checking $ac_header presence" >&5
26364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26365cat >conftest.$ac_ext <<_ACEOF
26366/* confdefs.h. */
26367_ACEOF
26368cat confdefs.h >>conftest.$ac_ext
26369cat >>conftest.$ac_ext <<_ACEOF
26370/* end confdefs.h. */
26371#include <$ac_header>
26372_ACEOF
26373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26375 ac_status=$?
26376 grep -v '^ *+' conftest.er1 >conftest.err
26377 rm -f conftest.er1
26378 cat conftest.err >&5
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } >/dev/null; then
26381 if test -s conftest.err; then
26382 ac_cpp_err=$ac_c_preproc_warn_flag
26383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26384 else
26385 ac_cpp_err=
26386 fi
26387else
26388 ac_cpp_err=yes
26389fi
26390if test -z "$ac_cpp_err"; then
26391 ac_header_preproc=yes
26392else
26393 echo "$as_me: failed program was:" >&5
26394sed 's/^/| /' conftest.$ac_ext >&5
26395
26396 ac_header_preproc=no
26397fi
26398rm -f conftest.err conftest.$ac_ext
26399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26400echo "${ECHO_T}$ac_header_preproc" >&6
26401
26402# So? What about this header?
26403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26404 yes:no: )
26405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26409 ac_header_preproc=yes
26410 ;;
26411 no:yes:* )
26412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26424 (
26425 cat <<\_ASBOX
26426## ----------------------------------- ##
26427## Report this to llvmbugs@cs.uiuc.edu ##
26428## ----------------------------------- ##
26429_ASBOX
26430 ) |
26431 sed "s/^/$as_me: WARNING: /" >&2
26432 ;;
26433esac
26434echo "$as_me:$LINENO: checking for $ac_header" >&5
26435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26436if eval "test \"\${$as_ac_Header+set}\" = set"; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26438else
26439 eval "$as_ac_Header=\$ac_header_preproc"
26440fi
26441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26443
26444fi
26445if test `eval echo '${'$as_ac_Header'}'` = yes; then
26446 cat >>confdefs.h <<_ACEOF
26447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26448_ACEOF
26449
26450fi
26451
26452done
26453
26454
26455
26456
26457
26458
26459for 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 +000026460do
26461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26462if eval "test \"\${$as_ac_Header+set}\" = set"; then
26463 echo "$as_me:$LINENO: checking for $ac_header" >&5
26464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26465if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026466 echo $ECHO_N "(cached) $ECHO_C" >&6
26467fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026470else
26471 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026472echo "$as_me:$LINENO: checking $ac_header usability" >&5
26473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026474cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026475/* confdefs.h. */
26476_ACEOF
26477cat confdefs.h >>conftest.$ac_ext
26478cat >>conftest.$ac_ext <<_ACEOF
26479/* end confdefs.h. */
26480$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026481#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026482_ACEOF
26483rm -f conftest.$ac_objext
26484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026485 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026486 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026487 grep -v '^ *+' conftest.er1 >conftest.err
26488 rm -f conftest.er1
26489 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026492 { ac_try='test -z "$ac_c_werror_flag"
26493 || test ! -s conftest.err'
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; } &&
26499 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26502 ac_status=$?
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 ac_header_compiler=yes
26506else
26507 echo "$as_me: failed program was:" >&5
26508sed 's/^/| /' conftest.$ac_ext >&5
26509
26510ac_header_compiler=no
26511fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26514echo "${ECHO_T}$ac_header_compiler" >&6
26515
26516# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026517echo "$as_me:$LINENO: checking $ac_header presence" >&5
26518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026519cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026520/* confdefs.h. */
26521_ACEOF
26522cat confdefs.h >>conftest.$ac_ext
26523cat >>conftest.$ac_ext <<_ACEOF
26524/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026525#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026526_ACEOF
26527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26529 ac_status=$?
26530 grep -v '^ *+' conftest.er1 >conftest.err
26531 rm -f conftest.er1
26532 cat conftest.err >&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } >/dev/null; then
26535 if test -s conftest.err; then
26536 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026538 else
26539 ac_cpp_err=
26540 fi
26541else
26542 ac_cpp_err=yes
26543fi
26544if test -z "$ac_cpp_err"; then
26545 ac_header_preproc=yes
26546else
26547 echo "$as_me: failed program was:" >&5
26548sed 's/^/| /' conftest.$ac_ext >&5
26549
26550 ac_header_preproc=no
26551fi
26552rm -f conftest.err conftest.$ac_ext
26553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26554echo "${ECHO_T}$ac_header_preproc" >&6
26555
26556# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26558 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026563 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026564 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026565 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026578 (
26579 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026580## ----------------------------------- ##
26581## Report this to llvmbugs@cs.uiuc.edu ##
26582## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026583_ASBOX
26584 ) |
26585 sed "s/^/$as_me: WARNING: /" >&2
26586 ;;
26587esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026588echo "$as_me:$LINENO: checking for $ac_header" >&5
26589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26590if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026591 echo $ECHO_N "(cached) $ECHO_C" >&6
26592else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026593 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026594fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026597
26598fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026599if test `eval echo '${'$as_ac_Header'}'` = yes; then
26600 cat >>confdefs.h <<_ACEOF
26601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026602_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026603
26604fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026605
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026606done
26607
John Criswell7ed43ad2004-07-19 16:12:29 +000026608
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026609
Reid Spencer8085cff2005-01-16 02:58:39 +000026610for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26611do
26612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26613if eval "test \"\${$as_ac_Header+set}\" = set"; then
26614 echo "$as_me:$LINENO: checking for $ac_header" >&5
26615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26616if eval "test \"\${$as_ac_Header+set}\" = set"; then
26617 echo $ECHO_N "(cached) $ECHO_C" >&6
26618fi
26619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26621else
26622 # Is the header compilable?
26623echo "$as_me:$LINENO: checking $ac_header usability" >&5
26624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26625cat >conftest.$ac_ext <<_ACEOF
26626/* confdefs.h. */
26627_ACEOF
26628cat confdefs.h >>conftest.$ac_ext
26629cat >>conftest.$ac_ext <<_ACEOF
26630/* end confdefs.h. */
26631$ac_includes_default
26632#include <$ac_header>
26633_ACEOF
26634rm -f conftest.$ac_objext
26635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26636 (eval $ac_compile) 2>conftest.er1
26637 ac_status=$?
26638 grep -v '^ *+' conftest.er1 >conftest.err
26639 rm -f conftest.er1
26640 cat conftest.err >&5
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } &&
26643 { ac_try='test -z "$ac_c_werror_flag"
26644 || test ! -s conftest.err'
26645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); }; } &&
26650 { ac_try='test -s conftest.$ac_objext'
26651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26652 (eval $ac_try) 2>&5
26653 ac_status=$?
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); }; }; then
26656 ac_header_compiler=yes
26657else
26658 echo "$as_me: failed program was:" >&5
26659sed 's/^/| /' conftest.$ac_ext >&5
26660
26661ac_header_compiler=no
26662fi
26663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26664echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26665echo "${ECHO_T}$ac_header_compiler" >&6
26666
26667# Is the header present?
26668echo "$as_me:$LINENO: checking $ac_header presence" >&5
26669echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26670cat >conftest.$ac_ext <<_ACEOF
26671/* confdefs.h. */
26672_ACEOF
26673cat confdefs.h >>conftest.$ac_ext
26674cat >>conftest.$ac_ext <<_ACEOF
26675/* end confdefs.h. */
26676#include <$ac_header>
26677_ACEOF
26678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26680 ac_status=$?
26681 grep -v '^ *+' conftest.er1 >conftest.err
26682 rm -f conftest.er1
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } >/dev/null; then
26686 if test -s conftest.err; then
26687 ac_cpp_err=$ac_c_preproc_warn_flag
26688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26689 else
26690 ac_cpp_err=
26691 fi
26692else
26693 ac_cpp_err=yes
26694fi
26695if test -z "$ac_cpp_err"; then
26696 ac_header_preproc=yes
26697else
26698 echo "$as_me: failed program was:" >&5
26699sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ac_header_preproc=no
26702fi
26703rm -f conftest.err conftest.$ac_ext
26704echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26705echo "${ECHO_T}$ac_header_preproc" >&6
26706
26707# So? What about this header?
26708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26709 yes:no: )
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26711echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26713echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26714 ac_header_preproc=yes
26715 ;;
26716 no:yes:* )
26717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26718echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26720echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26722echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26724echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26726echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26728echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26729 (
26730 cat <<\_ASBOX
26731## ----------------------------------- ##
26732## Report this to llvmbugs@cs.uiuc.edu ##
26733## ----------------------------------- ##
26734_ASBOX
26735 ) |
26736 sed "s/^/$as_me: WARNING: /" >&2
26737 ;;
26738esac
26739echo "$as_me:$LINENO: checking for $ac_header" >&5
26740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26741if eval "test \"\${$as_ac_Header+set}\" = set"; then
26742 echo $ECHO_N "(cached) $ECHO_C" >&6
26743else
26744 eval "$as_ac_Header=\$ac_header_preproc"
26745fi
26746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26748
26749fi
26750if test `eval echo '${'$as_ac_Header'}'` = yes; then
26751 cat >>confdefs.h <<_ACEOF
26752#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26753_ACEOF
26754
26755fi
26756
26757done
26758
26759
26760
John Criswell7a73b802003-06-30 21:59:07 +000026761echo "$as_me:$LINENO: checking for pid_t" >&5
26762echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26763if test "${ac_cv_type_pid_t+set}" = set; then
26764 echo $ECHO_N "(cached) $ECHO_C" >&6
26765else
26766 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026767/* confdefs.h. */
26768_ACEOF
26769cat confdefs.h >>conftest.$ac_ext
26770cat >>conftest.$ac_ext <<_ACEOF
26771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026772$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026773int
26774main ()
26775{
26776if ((pid_t *) 0)
26777 return 0;
26778if (sizeof (pid_t))
26779 return 0;
26780 ;
26781 return 0;
26782}
26783_ACEOF
26784rm -f conftest.$ac_objext
26785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026786 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026788 grep -v '^ *+' conftest.er1 >conftest.err
26789 rm -f conftest.er1
26790 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026793 { ac_try='test -z "$ac_c_werror_flag"
26794 || test ! -s conftest.err'
26795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796 (eval $ac_try) 2>&5
26797 ac_status=$?
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); }; } &&
26800 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802 (eval $ac_try) 2>&5
26803 ac_status=$?
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
26806 ac_cv_type_pid_t=yes
26807else
26808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026809sed 's/^/| /' conftest.$ac_ext >&5
26810
John Criswell7a73b802003-06-30 21:59:07 +000026811ac_cv_type_pid_t=no
26812fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026814fi
26815echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26816echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26817if test $ac_cv_type_pid_t = yes; then
26818 :
26819else
26820
26821cat >>confdefs.h <<_ACEOF
26822#define pid_t int
26823_ACEOF
26824
26825fi
26826
26827echo "$as_me:$LINENO: checking for size_t" >&5
26828echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26829if test "${ac_cv_type_size_t+set}" = set; then
26830 echo $ECHO_N "(cached) $ECHO_C" >&6
26831else
26832 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026833/* confdefs.h. */
26834_ACEOF
26835cat confdefs.h >>conftest.$ac_ext
26836cat >>conftest.$ac_ext <<_ACEOF
26837/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026838$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026839int
26840main ()
26841{
26842if ((size_t *) 0)
26843 return 0;
26844if (sizeof (size_t))
26845 return 0;
26846 ;
26847 return 0;
26848}
26849_ACEOF
26850rm -f conftest.$ac_objext
26851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026852 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026853 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026854 grep -v '^ *+' conftest.er1 >conftest.err
26855 rm -f conftest.er1
26856 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026859 { ac_try='test -z "$ac_c_werror_flag"
26860 || test ! -s conftest.err'
26861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862 (eval $ac_try) 2>&5
26863 ac_status=$?
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; } &&
26866 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868 (eval $ac_try) 2>&5
26869 ac_status=$?
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); }; }; then
26872 ac_cv_type_size_t=yes
26873else
26874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026875sed 's/^/| /' conftest.$ac_ext >&5
26876
John Criswell7a73b802003-06-30 21:59:07 +000026877ac_cv_type_size_t=no
26878fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026880fi
26881echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26882echo "${ECHO_T}$ac_cv_type_size_t" >&6
26883if test $ac_cv_type_size_t = yes; then
26884 :
26885else
26886
26887cat >>confdefs.h <<_ACEOF
26888#define size_t unsigned
26889_ACEOF
26890
26891fi
26892
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026893echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26894echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26895if test "${ac_cv_type_signal+set}" = set; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
26897else
26898 cat >conftest.$ac_ext <<_ACEOF
26899/* confdefs.h. */
26900_ACEOF
26901cat confdefs.h >>conftest.$ac_ext
26902cat >>conftest.$ac_ext <<_ACEOF
26903/* end confdefs.h. */
26904#include <sys/types.h>
26905#include <signal.h>
26906#ifdef signal
26907# undef signal
26908#endif
26909#ifdef __cplusplus
26910extern "C" void (*signal (int, void (*)(int)))(int);
26911#else
26912void (*signal ()) ();
26913#endif
26914
26915int
26916main ()
26917{
26918int i;
26919 ;
26920 return 0;
26921}
26922_ACEOF
26923rm -f conftest.$ac_objext
26924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26925 (eval $ac_compile) 2>conftest.er1
26926 ac_status=$?
26927 grep -v '^ *+' conftest.er1 >conftest.err
26928 rm -f conftest.er1
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } &&
26932 { ac_try='test -z "$ac_c_werror_flag"
26933 || test ! -s conftest.err'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26936 ac_status=$?
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; } &&
26939 { ac_try='test -s conftest.$ac_objext'
26940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941 (eval $ac_try) 2>&5
26942 ac_status=$?
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; }; then
26945 ac_cv_type_signal=void
26946else
26947 echo "$as_me: failed program was:" >&5
26948sed 's/^/| /' conftest.$ac_ext >&5
26949
26950ac_cv_type_signal=int
26951fi
26952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26953fi
26954echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26955echo "${ECHO_T}$ac_cv_type_signal" >&6
26956
26957cat >>confdefs.h <<_ACEOF
26958#define RETSIGTYPE $ac_cv_type_signal
26959_ACEOF
26960
26961
26962echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26963echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26964if test "${ac_cv_struct_tm+set}" = set; then
26965 echo $ECHO_N "(cached) $ECHO_C" >&6
26966else
26967 cat >conftest.$ac_ext <<_ACEOF
26968/* confdefs.h. */
26969_ACEOF
26970cat confdefs.h >>conftest.$ac_ext
26971cat >>conftest.$ac_ext <<_ACEOF
26972/* end confdefs.h. */
26973#include <sys/types.h>
26974#include <time.h>
26975
26976int
26977main ()
26978{
26979struct tm *tp; tp->tm_sec;
26980 ;
26981 return 0;
26982}
26983_ACEOF
26984rm -f conftest.$ac_objext
26985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26986 (eval $ac_compile) 2>conftest.er1
26987 ac_status=$?
26988 grep -v '^ *+' conftest.er1 >conftest.err
26989 rm -f conftest.er1
26990 cat conftest.err >&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); } &&
26993 { ac_try='test -z "$ac_c_werror_flag"
26994 || test ! -s conftest.err'
26995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26996 (eval $ac_try) 2>&5
26997 ac_status=$?
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; } &&
27000 { ac_try='test -s conftest.$ac_objext'
27001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27002 (eval $ac_try) 2>&5
27003 ac_status=$?
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); }; }; then
27006 ac_cv_struct_tm=time.h
27007else
27008 echo "$as_me: failed program was:" >&5
27009sed 's/^/| /' conftest.$ac_ext >&5
27010
27011ac_cv_struct_tm=sys/time.h
27012fi
27013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27014fi
27015echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27016echo "${ECHO_T}$ac_cv_struct_tm" >&6
27017if test $ac_cv_struct_tm = sys/time.h; then
27018
27019cat >>confdefs.h <<\_ACEOF
27020#define TM_IN_SYS_TIME 1
27021_ACEOF
27022
27023fi
27024
John Criswell7a73b802003-06-30 21:59:07 +000027025echo "$as_me:$LINENO: checking for int64_t" >&5
27026echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27027if test "${ac_cv_type_int64_t+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029else
27030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027031/* confdefs.h. */
27032_ACEOF
27033cat confdefs.h >>conftest.$ac_ext
27034cat >>conftest.$ac_ext <<_ACEOF
27035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027036$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027037int
27038main ()
27039{
27040if ((int64_t *) 0)
27041 return 0;
27042if (sizeof (int64_t))
27043 return 0;
27044 ;
27045 return 0;
27046}
27047_ACEOF
27048rm -f conftest.$ac_objext
27049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027050 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027052 grep -v '^ *+' conftest.er1 >conftest.err
27053 rm -f conftest.er1
27054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027057 { ac_try='test -z "$ac_c_werror_flag"
27058 || test ! -s conftest.err'
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27061 ac_status=$?
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; } &&
27064 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27067 ac_status=$?
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 ac_cv_type_int64_t=yes
27071else
27072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027073sed 's/^/| /' conftest.$ac_ext >&5
27074
John Criswell7a73b802003-06-30 21:59:07 +000027075ac_cv_type_int64_t=no
27076fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027078fi
27079echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27080echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27081if test $ac_cv_type_int64_t = yes; then
27082
27083cat >>confdefs.h <<_ACEOF
27084#define HAVE_INT64_T 1
27085_ACEOF
27086
27087
27088else
27089 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27090echo "$as_me: error: Type int64_t required but not found" >&2;}
27091 { (exit 1); exit 1; }; }
27092fi
27093
27094echo "$as_me:$LINENO: checking for uint64_t" >&5
27095echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27096if test "${ac_cv_type_uint64_t+set}" = set; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27098else
27099 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027100/* confdefs.h. */
27101_ACEOF
27102cat confdefs.h >>conftest.$ac_ext
27103cat >>conftest.$ac_ext <<_ACEOF
27104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027105$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027106int
27107main ()
27108{
27109if ((uint64_t *) 0)
27110 return 0;
27111if (sizeof (uint64_t))
27112 return 0;
27113 ;
27114 return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext
27118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027119 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027120 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027121 grep -v '^ *+' conftest.er1 >conftest.err
27122 rm -f conftest.er1
27123 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027126 { ac_try='test -z "$ac_c_werror_flag"
27127 || test ! -s conftest.err'
27128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27129 (eval $ac_try) 2>&5
27130 ac_status=$?
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); }; } &&
27133 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135 (eval $ac_try) 2>&5
27136 ac_status=$?
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; }; then
27139 ac_cv_type_uint64_t=yes
27140else
27141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027142sed 's/^/| /' conftest.$ac_ext >&5
27143
John Criswell7a73b802003-06-30 21:59:07 +000027144ac_cv_type_uint64_t=no
27145fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027147fi
27148echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27149echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27150if test $ac_cv_type_uint64_t = yes; then
27151
27152cat >>confdefs.h <<_ACEOF
27153#define HAVE_UINT64_T 1
27154_ACEOF
27155
27156
27157else
Misha Brukmanceca9042004-09-02 23:02:30 +000027158 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027159echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27160if test "${ac_cv_type_u_int64_t+set}" = set; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27162else
27163 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027164/* confdefs.h. */
27165_ACEOF
27166cat confdefs.h >>conftest.$ac_ext
27167cat >>conftest.$ac_ext <<_ACEOF
27168/* end confdefs.h. */
27169$ac_includes_default
27170int
27171main ()
27172{
27173if ((u_int64_t *) 0)
27174 return 0;
27175if (sizeof (u_int64_t))
27176 return 0;
27177 ;
27178 return 0;
27179}
27180_ACEOF
27181rm -f conftest.$ac_objext
27182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027183 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027185 grep -v '^ *+' conftest.er1 >conftest.err
27186 rm -f conftest.er1
27187 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027190 { ac_try='test -z "$ac_c_werror_flag"
27191 || test ! -s conftest.err'
27192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193 (eval $ac_try) 2>&5
27194 ac_status=$?
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; } &&
27197 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; }; then
27203 ac_cv_type_u_int64_t=yes
27204else
27205 echo "$as_me: failed program was:" >&5
27206sed 's/^/| /' conftest.$ac_ext >&5
27207
27208ac_cv_type_u_int64_t=no
27209fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027211fi
27212echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27213echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27214if test $ac_cv_type_u_int64_t = yes; then
27215
27216cat >>confdefs.h <<_ACEOF
27217#define HAVE_U_INT64_T 1
27218_ACEOF
27219
27220
Misha Brukmanceca9042004-09-02 23:02:30 +000027221else
27222 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27223echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27224 { (exit 1); exit 1; }; }
27225fi
27226
John Criswell679ff312004-09-02 18:44:44 +000027227fi
27228
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027229
27230
27231
27232
27233
27234
27235
27236
Reid Spencerab5eaea2004-12-20 00:59:04 +000027237for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27238do
27239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27240echo "$as_me:$LINENO: checking for $ac_func" >&5
27241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27242if eval "test \"\${$as_ac_var+set}\" = set"; then
27243 echo $ECHO_N "(cached) $ECHO_C" >&6
27244else
27245 cat >conftest.$ac_ext <<_ACEOF
27246/* confdefs.h. */
27247_ACEOF
27248cat confdefs.h >>conftest.$ac_ext
27249cat >>conftest.$ac_ext <<_ACEOF
27250/* end confdefs.h. */
27251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27253#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027254
Reid Spencerab5eaea2004-12-20 00:59:04 +000027255/* System header to define __stub macros and hopefully few prototypes,
27256 which can conflict with char $ac_func (); below.
27257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27258 <limits.h> exists even on freestanding compilers. */
27259
27260#ifdef __STDC__
27261# include <limits.h>
27262#else
27263# include <assert.h>
27264#endif
27265
27266#undef $ac_func
27267
27268/* Override any gcc2 internal prototype to avoid an error. */
27269#ifdef __cplusplus
27270extern "C"
27271{
27272#endif
27273/* We use char because int might match the return type of a gcc2
27274 builtin and then its argument prototype would still apply. */
27275char $ac_func ();
27276/* The GNU C library defines this for functions which it implements
27277 to always fail with ENOSYS. Some functions are actually named
27278 something starting with __ and the normal name is an alias. */
27279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27280choke me
27281#else
27282char (*f) () = $ac_func;
27283#endif
27284#ifdef __cplusplus
27285}
27286#endif
27287
27288int
27289main ()
27290{
27291return f != $ac_func;
27292 ;
27293 return 0;
27294}
27295_ACEOF
27296rm -f conftest.$ac_objext conftest$ac_exeext
27297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27298 (eval $ac_link) 2>conftest.er1
27299 ac_status=$?
27300 grep -v '^ *+' conftest.er1 >conftest.err
27301 rm -f conftest.er1
27302 cat conftest.err >&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } &&
27305 { ac_try='test -z "$ac_c_werror_flag"
27306 || test ! -s conftest.err'
27307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27309 ac_status=$?
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; } &&
27312 { ac_try='test -s conftest$ac_exeext'
27313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314 (eval $ac_try) 2>&5
27315 ac_status=$?
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); }; }; then
27318 eval "$as_ac_var=yes"
27319else
27320 echo "$as_me: failed program was:" >&5
27321sed 's/^/| /' conftest.$ac_ext >&5
27322
27323eval "$as_ac_var=no"
27324fi
27325rm -f conftest.err conftest.$ac_objext \
27326 conftest$ac_exeext conftest.$ac_ext
27327fi
27328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27330if test `eval echo '${'$as_ac_var'}'` = yes; then
27331 cat >>confdefs.h <<_ACEOF
27332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27333_ACEOF
27334
27335fi
27336done
27337
27338
27339
27340
27341for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027342do
27343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27344echo "$as_me:$LINENO: checking for $ac_func" >&5
27345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27346if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027347 echo $ECHO_N "(cached) $ECHO_C" >&6
27348else
27349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027350/* confdefs.h. */
27351_ACEOF
27352cat confdefs.h >>conftest.$ac_ext
27353cat >>conftest.$ac_ext <<_ACEOF
27354/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27357#define $ac_func innocuous_$ac_func
27358
27359/* System header to define __stub macros and hopefully few prototypes,
27360 which can conflict with char $ac_func (); below.
27361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27362 <limits.h> exists even on freestanding compilers. */
27363
27364#ifdef __STDC__
27365# include <limits.h>
27366#else
27367# include <assert.h>
27368#endif
27369
27370#undef $ac_func
27371
27372/* Override any gcc2 internal prototype to avoid an error. */
27373#ifdef __cplusplus
27374extern "C"
27375{
27376#endif
27377/* We use char because int might match the return type of a gcc2
27378 builtin and then its argument prototype would still apply. */
27379char $ac_func ();
27380/* The GNU C library defines this for functions which it implements
27381 to always fail with ENOSYS. Some functions are actually named
27382 something starting with __ and the normal name is an alias. */
27383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27384choke me
27385#else
27386char (*f) () = $ac_func;
27387#endif
27388#ifdef __cplusplus
27389}
27390#endif
John Criswell7a73b802003-06-30 21:59:07 +000027391
John Criswell7a73b802003-06-30 21:59:07 +000027392int
27393main ()
27394{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027395return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027396 ;
27397 return 0;
27398}
27399_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027400rm -f conftest.$ac_objext conftest$ac_exeext
27401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27402 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027404 grep -v '^ *+' conftest.er1 >conftest.err
27405 rm -f conftest.er1
27406 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027409 { ac_try='test -z "$ac_c_werror_flag"
27410 || test ! -s conftest.err'
27411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27412 (eval $ac_try) 2>&5
27413 ac_status=$?
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027416 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27418 (eval $ac_try) 2>&5
27419 ac_status=$?
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027422 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027423else
27424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027425sed 's/^/| /' conftest.$ac_ext >&5
27426
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027427eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027428fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027429rm -f conftest.err conftest.$ac_objext \
27430 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027431fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27434if test `eval echo '${'$as_ac_var'}'` = yes; then
27435 cat >>confdefs.h <<_ACEOF
27436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027437_ACEOF
27438
27439fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027440done
John Criswell7a73b802003-06-30 21:59:07 +000027441
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027442
27443
27444
Reid Spencer6af3d262004-12-15 04:01:48 +000027445
27446
Reid Spencer59473af2004-12-25 07:31:29 +000027447
Reid Spencerba46ca32004-12-31 05:49:15 +000027448for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027449do
27450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27451echo "$as_me:$LINENO: checking for $ac_func" >&5
27452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27453if eval "test \"\${$as_ac_var+set}\" = set"; then
27454 echo $ECHO_N "(cached) $ECHO_C" >&6
27455else
27456 cat >conftest.$ac_ext <<_ACEOF
27457/* confdefs.h. */
27458_ACEOF
27459cat confdefs.h >>conftest.$ac_ext
27460cat >>conftest.$ac_ext <<_ACEOF
27461/* end confdefs.h. */
27462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27464#define $ac_func innocuous_$ac_func
27465
27466/* System header to define __stub macros and hopefully few prototypes,
27467 which can conflict with char $ac_func (); below.
27468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27469 <limits.h> exists even on freestanding compilers. */
27470
27471#ifdef __STDC__
27472# include <limits.h>
27473#else
27474# include <assert.h>
27475#endif
27476
27477#undef $ac_func
27478
27479/* Override any gcc2 internal prototype to avoid an error. */
27480#ifdef __cplusplus
27481extern "C"
27482{
27483#endif
27484/* We use char because int might match the return type of a gcc2
27485 builtin and then its argument prototype would still apply. */
27486char $ac_func ();
27487/* The GNU C library defines this for functions which it implements
27488 to always fail with ENOSYS. Some functions are actually named
27489 something starting with __ and the normal name is an alias. */
27490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27491choke me
27492#else
27493char (*f) () = $ac_func;
27494#endif
27495#ifdef __cplusplus
27496}
27497#endif
27498
27499int
27500main ()
27501{
27502return f != $ac_func;
27503 ;
27504 return 0;
27505}
27506_ACEOF
27507rm -f conftest.$ac_objext conftest$ac_exeext
27508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27509 (eval $ac_link) 2>conftest.er1
27510 ac_status=$?
27511 grep -v '^ *+' conftest.er1 >conftest.err
27512 rm -f conftest.er1
27513 cat conftest.err >&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } &&
27516 { ac_try='test -z "$ac_c_werror_flag"
27517 || test ! -s conftest.err'
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; } &&
27523 { ac_try='test -s conftest$ac_exeext'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 eval "$as_ac_var=yes"
27530else
27531 echo "$as_me: failed program was:" >&5
27532sed 's/^/| /' conftest.$ac_ext >&5
27533
27534eval "$as_ac_var=no"
27535fi
27536rm -f conftest.err conftest.$ac_objext \
27537 conftest$ac_exeext conftest.$ac_ext
27538fi
27539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27540echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27541if test `eval echo '${'$as_ac_var'}'` = yes; then
27542 cat >>confdefs.h <<_ACEOF
27543#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27544_ACEOF
27545
27546fi
27547done
27548
27549
Reid Spencerba46ca32004-12-31 05:49:15 +000027550
27551
27552for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027553do
27554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27555echo "$as_me:$LINENO: checking for $ac_func" >&5
27556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27557if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027558 echo $ECHO_N "(cached) $ECHO_C" >&6
27559else
27560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027561/* confdefs.h. */
27562_ACEOF
27563cat confdefs.h >>conftest.$ac_ext
27564cat >>conftest.$ac_ext <<_ACEOF
27565/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27568#define $ac_func innocuous_$ac_func
27569
27570/* System header to define __stub macros and hopefully few prototypes,
27571 which can conflict with char $ac_func (); below.
27572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27573 <limits.h> exists even on freestanding compilers. */
27574
27575#ifdef __STDC__
27576# include <limits.h>
27577#else
27578# include <assert.h>
27579#endif
27580
27581#undef $ac_func
27582
27583/* Override any gcc2 internal prototype to avoid an error. */
27584#ifdef __cplusplus
27585extern "C"
27586{
27587#endif
27588/* We use char because int might match the return type of a gcc2
27589 builtin and then its argument prototype would still apply. */
27590char $ac_func ();
27591/* The GNU C library defines this for functions which it implements
27592 to always fail with ENOSYS. Some functions are actually named
27593 something starting with __ and the normal name is an alias. */
27594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27595choke me
27596#else
27597char (*f) () = $ac_func;
27598#endif
27599#ifdef __cplusplus
27600}
27601#endif
John Criswell7a73b802003-06-30 21:59:07 +000027602
John Criswell7a73b802003-06-30 21:59:07 +000027603int
27604main ()
27605{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027606return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027607 ;
27608 return 0;
27609}
27610_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027611rm -f conftest.$ac_objext conftest$ac_exeext
27612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27613 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027615 grep -v '^ *+' conftest.er1 >conftest.err
27616 rm -f conftest.er1
27617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027620 { ac_try='test -z "$ac_c_werror_flag"
27621 || test ! -s conftest.err'
27622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27623 (eval $ac_try) 2>&5
27624 ac_status=$?
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027627 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27630 ac_status=$?
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027633 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027634else
27635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027636sed 's/^/| /' conftest.$ac_ext >&5
27637
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027638eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027639fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027640rm -f conftest.err conftest.$ac_objext \
27641 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027642fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27645if test `eval echo '${'$as_ac_var'}'` = yes; then
27646 cat >>confdefs.h <<_ACEOF
27647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027648_ACEOF
27649
27650fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027651done
John Criswell7a73b802003-06-30 21:59:07 +000027652
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027653echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27654echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027655if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027656 echo $ECHO_N "(cached) $ECHO_C" >&6
27657else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027658 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027659ac_cpp='$CPP $CPPFLAGS'
27660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27662ac_compiler_gnu=$ac_cv_c_compiler_gnu
27663
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027664 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027665 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027666else
27667 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027668
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027669 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027670_ACEOF
27671cat confdefs.h >>conftest.$ac_ext
27672cat >>conftest.$ac_ext <<_ACEOF
27673/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027674
John Criswella0137d32003-10-13 16:22:01 +000027675#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027676#include <stdlib.h>
27677
John Criswella0137d32003-10-13 16:22:01 +000027678int
27679main ()
27680{
27681
Reid Spencer2706f8c2004-09-19 23:53:36 +000027682volatile double A, B;
27683char Buffer[100];
27684A = 1;
27685A /= 10.0;
27686sprintf(Buffer, "%a", A);
27687B = atof(Buffer);
27688if (A != B)
27689 return (1);
27690if (A != 0x1.999999999999ap-4)
27691 return (1);
27692return (0);
John Criswella0137d32003-10-13 16:22:01 +000027693 ;
27694 return 0;
27695}
27696_ACEOF
27697rm -f conftest$ac_exeext
27698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27699 (eval $ac_link) 2>&5
27700 ac_status=$?
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704 (eval $ac_try) 2>&5
27705 ac_status=$?
27706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027708 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027709else
27710 echo "$as_me: program exited with status $ac_status" >&5
27711echo "$as_me: failed program was:" >&5
27712sed 's/^/| /' conftest.$ac_ext >&5
27713
27714( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027715llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027717rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027718fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027719 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027720ac_cpp='$CPP $CPPFLAGS'
27721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27723ac_compiler_gnu=$ac_cv_c_compiler_gnu
27724
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027725fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027726echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27727echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27728 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027729
27730cat >>confdefs.h <<\_ACEOF
27731#define HAVE_PRINTF_A 1
27732_ACEOF
27733
Reid Spencer2706f8c2004-09-19 23:53:36 +000027734 fi
John Criswella0137d32003-10-13 16:22:01 +000027735
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027736# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27737# for constant arguments. Useless!
27738echo "$as_me:$LINENO: checking for working alloca.h" >&5
27739echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27740if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027741 echo $ECHO_N "(cached) $ECHO_C" >&6
27742else
John Criswell0021c312004-02-13 21:57:29 +000027743 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027744/* confdefs.h. */
27745_ACEOF
27746cat confdefs.h >>conftest.$ac_ext
27747cat >>conftest.$ac_ext <<_ACEOF
27748/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027749#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027750int
27751main ()
27752{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027753char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027754 ;
27755 return 0;
27756}
27757_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027758rm -f conftest.$ac_objext conftest$ac_exeext
27759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27760 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027762 grep -v '^ *+' conftest.er1 >conftest.err
27763 rm -f conftest.er1
27764 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027767 { ac_try='test -z "$ac_c_werror_flag"
27768 || test ! -s conftest.err'
27769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770 (eval $ac_try) 2>&5
27771 ac_status=$?
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027774 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776 (eval $ac_try) 2>&5
27777 ac_status=$?
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027780 ac_cv_working_alloca_h=yes
27781else
27782 echo "$as_me: failed program was:" >&5
27783sed 's/^/| /' conftest.$ac_ext >&5
27784
27785ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027786fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027787rm -f conftest.err conftest.$ac_objext \
27788 conftest$ac_exeext conftest.$ac_ext
27789fi
27790echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27791echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27792if test $ac_cv_working_alloca_h = yes; then
27793
27794cat >>confdefs.h <<\_ACEOF
27795#define HAVE_ALLOCA_H 1
27796_ACEOF
27797
27798fi
27799
27800echo "$as_me:$LINENO: checking for alloca" >&5
27801echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27802if test "${ac_cv_func_alloca_works+set}" = set; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27804else
27805 cat >conftest.$ac_ext <<_ACEOF
27806/* confdefs.h. */
27807_ACEOF
27808cat confdefs.h >>conftest.$ac_ext
27809cat >>conftest.$ac_ext <<_ACEOF
27810/* end confdefs.h. */
27811#ifdef __GNUC__
27812# define alloca __builtin_alloca
27813#else
27814# ifdef _MSC_VER
27815# include <malloc.h>
27816# define alloca _alloca
27817# else
27818# if HAVE_ALLOCA_H
27819# include <alloca.h>
27820# else
27821# ifdef _AIX
27822 #pragma alloca
27823# else
27824# ifndef alloca /* predefined by HP cc +Olibcalls */
27825char *alloca ();
27826# endif
27827# endif
27828# endif
27829# endif
27830#endif
27831
27832int
27833main ()
27834{
27835char *p = (char *) alloca (1);
27836 ;
27837 return 0;
27838}
27839_ACEOF
27840rm -f conftest.$ac_objext conftest$ac_exeext
27841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27842 (eval $ac_link) 2>conftest.er1
27843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } &&
27849 { ac_try='test -z "$ac_c_werror_flag"
27850 || test ! -s conftest.err'
27851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852 (eval $ac_try) 2>&5
27853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; } &&
27856 { ac_try='test -s conftest$ac_exeext'
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; }; then
27862 ac_cv_func_alloca_works=yes
27863else
27864 echo "$as_me: failed program was:" >&5
27865sed 's/^/| /' conftest.$ac_ext >&5
27866
27867ac_cv_func_alloca_works=no
27868fi
27869rm -f conftest.err conftest.$ac_objext \
27870 conftest$ac_exeext conftest.$ac_ext
27871fi
27872echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27873echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27874
27875if test $ac_cv_func_alloca_works = yes; then
27876
27877cat >>confdefs.h <<\_ACEOF
27878#define HAVE_ALLOCA 1
27879_ACEOF
27880
27881else
27882 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27883# that cause trouble. Some versions do not even contain alloca or
27884# contain a buggy version. If you still want to use their alloca,
27885# use ar to extract alloca.o from them instead of compiling alloca.c.
27886
27887ALLOCA=alloca.$ac_objext
27888
27889cat >>confdefs.h <<\_ACEOF
27890#define C_ALLOCA 1
27891_ACEOF
27892
27893
27894echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27895echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27896if test "${ac_cv_os_cray+set}" = set; then
27897 echo $ECHO_N "(cached) $ECHO_C" >&6
27898else
27899 cat >conftest.$ac_ext <<_ACEOF
27900/* confdefs.h. */
27901_ACEOF
27902cat confdefs.h >>conftest.$ac_ext
27903cat >>conftest.$ac_ext <<_ACEOF
27904/* end confdefs.h. */
27905#if defined(CRAY) && ! defined(CRAY2)
27906webecray
27907#else
27908wenotbecray
27909#endif
27910
27911_ACEOF
27912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27913 $EGREP "webecray" >/dev/null 2>&1; then
27914 ac_cv_os_cray=yes
27915else
27916 ac_cv_os_cray=no
27917fi
27918rm -f conftest*
27919
27920fi
27921echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27922echo "${ECHO_T}$ac_cv_os_cray" >&6
27923if test $ac_cv_os_cray = yes; then
27924 for ac_func in _getb67 GETB67 getb67; do
27925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27926echo "$as_me:$LINENO: checking for $ac_func" >&5
27927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27928if eval "test \"\${$as_ac_var+set}\" = set"; then
27929 echo $ECHO_N "(cached) $ECHO_C" >&6
27930else
27931 cat >conftest.$ac_ext <<_ACEOF
27932/* confdefs.h. */
27933_ACEOF
27934cat confdefs.h >>conftest.$ac_ext
27935cat >>conftest.$ac_ext <<_ACEOF
27936/* end confdefs.h. */
27937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27939#define $ac_func innocuous_$ac_func
27940
27941/* System header to define __stub macros and hopefully few prototypes,
27942 which can conflict with char $ac_func (); below.
27943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27944 <limits.h> exists even on freestanding compilers. */
27945
27946#ifdef __STDC__
27947# include <limits.h>
27948#else
27949# include <assert.h>
27950#endif
27951
27952#undef $ac_func
27953
27954/* Override any gcc2 internal prototype to avoid an error. */
27955#ifdef __cplusplus
27956extern "C"
27957{
27958#endif
27959/* We use char because int might match the return type of a gcc2
27960 builtin and then its argument prototype would still apply. */
27961char $ac_func ();
27962/* The GNU C library defines this for functions which it implements
27963 to always fail with ENOSYS. Some functions are actually named
27964 something starting with __ and the normal name is an alias. */
27965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27966choke me
27967#else
27968char (*f) () = $ac_func;
27969#endif
27970#ifdef __cplusplus
27971}
27972#endif
27973
27974int
27975main ()
27976{
27977return f != $ac_func;
27978 ;
27979 return 0;
27980}
27981_ACEOF
27982rm -f conftest.$ac_objext conftest$ac_exeext
27983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27984 (eval $ac_link) 2>conftest.er1
27985 ac_status=$?
27986 grep -v '^ *+' conftest.er1 >conftest.err
27987 rm -f conftest.er1
27988 cat conftest.err >&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } &&
27991 { ac_try='test -z "$ac_c_werror_flag"
27992 || test ! -s conftest.err'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27995 ac_status=$?
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; } &&
27998 { ac_try='test -s conftest$ac_exeext'
27999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28000 (eval $ac_try) 2>&5
28001 ac_status=$?
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); }; }; then
28004 eval "$as_ac_var=yes"
28005else
28006 echo "$as_me: failed program was:" >&5
28007sed 's/^/| /' conftest.$ac_ext >&5
28008
28009eval "$as_ac_var=no"
28010fi
28011rm -f conftest.err conftest.$ac_objext \
28012 conftest$ac_exeext conftest.$ac_ext
28013fi
28014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28016if test `eval echo '${'$as_ac_var'}'` = yes; then
28017
28018cat >>confdefs.h <<_ACEOF
28019#define CRAY_STACKSEG_END $ac_func
28020_ACEOF
28021
28022 break
28023fi
28024
28025 done
28026fi
28027
28028echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28029echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28030if test "${ac_cv_c_stack_direction+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28032else
28033 if test "$cross_compiling" = yes; then
28034 ac_cv_c_stack_direction=0
28035else
28036 cat >conftest.$ac_ext <<_ACEOF
28037/* confdefs.h. */
28038_ACEOF
28039cat confdefs.h >>conftest.$ac_ext
28040cat >>conftest.$ac_ext <<_ACEOF
28041/* end confdefs.h. */
28042int
28043find_stack_direction ()
28044{
28045 static char *addr = 0;
28046 auto char dummy;
28047 if (addr == 0)
28048 {
28049 addr = &dummy;
28050 return find_stack_direction ();
28051 }
John Criswell0021c312004-02-13 21:57:29 +000028052 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028053 return (&dummy > addr) ? 1 : -1;
28054}
John Criswell0021c312004-02-13 21:57:29 +000028055
John Criswell0021c312004-02-13 21:57:29 +000028056int
28057main ()
28058{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028059 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028060}
28061_ACEOF
28062rm -f conftest$ac_exeext
28063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28064 (eval $ac_link) 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28070 ac_status=$?
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028073 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028074else
28075 echo "$as_me: program exited with status $ac_status" >&5
28076echo "$as_me: failed program was:" >&5
28077sed 's/^/| /' conftest.$ac_ext >&5
28078
28079( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028080ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028081fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028082rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028083fi
28084fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028085echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28086echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28087
28088cat >>confdefs.h <<_ACEOF
28089#define STACK_DIRECTION $ac_cv_c_stack_direction
28090_ACEOF
28091
28092
John Criswell0021c312004-02-13 21:57:29 +000028093fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028094
28095
28096echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28097echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28098if test "${ac_cv_func_rand48+set}" = set; then
28099 echo $ECHO_N "(cached) $ECHO_C" >&6
28100else
28101 ac_ext=cc
28102ac_cpp='$CXXCPP $CPPFLAGS'
28103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28106
28107 cat >conftest.$ac_ext <<_ACEOF
28108/* confdefs.h. */
28109_ACEOF
28110cat confdefs.h >>conftest.$ac_ext
28111cat >>conftest.$ac_ext <<_ACEOF
28112/* end confdefs.h. */
28113#include <stdlib.h>
28114int
28115main ()
28116{
28117srand48(0);lrand48();drand48();
28118 ;
28119 return 0;
28120}
28121_ACEOF
28122rm -f conftest.$ac_objext
28123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28124 (eval $ac_compile) 2>conftest.er1
28125 ac_status=$?
28126 grep -v '^ *+' conftest.er1 >conftest.err
28127 rm -f conftest.er1
28128 cat conftest.err >&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } &&
28131 { ac_try='test -z "$ac_cxx_werror_flag"
28132 || test ! -s conftest.err'
28133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134 (eval $ac_try) 2>&5
28135 ac_status=$?
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; } &&
28138 { ac_try='test -s conftest.$ac_objext'
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28141 ac_status=$?
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; }; then
28144 ac_cv_func_rand48=yes
28145else
28146 echo "$as_me: failed program was:" >&5
28147sed 's/^/| /' conftest.$ac_ext >&5
28148
28149ac_cv_func_rand48=no
28150fi
28151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28152 ac_ext=c
28153ac_cpp='$CPP $CPPFLAGS'
28154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28156ac_compiler_gnu=$ac_cv_c_compiler_gnu
28157
28158fi
28159echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28160echo "${ECHO_T}$ac_cv_func_rand48" >&6
28161
28162if test "$ac_cv_func_rand48" = "yes" ; then
28163
28164cat >>confdefs.h <<\_ACEOF
28165#define HAVE_RAND48 1
28166_ACEOF
28167
28168fi
John Criswell0021c312004-02-13 21:57:29 +000028169
28170
John Criswell7a73b802003-06-30 21:59:07 +000028171echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28172echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28173if test "${ac_cv_cxx_namespaces+set}" = set; then
28174 echo $ECHO_N "(cached) $ECHO_C" >&6
28175else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028176 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028177ac_cpp='$CXXCPP $CPPFLAGS'
28178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28181
28182 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028183/* confdefs.h. */
28184_ACEOF
28185cat confdefs.h >>conftest.$ac_ext
28186cat >>conftest.$ac_ext <<_ACEOF
28187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028188namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028189int
28190main ()
28191{
28192using namespace Outer::Inner; return i;
28193 ;
28194 return 0;
28195}
28196_ACEOF
28197rm -f conftest.$ac_objext
28198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028199 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028200 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028201 grep -v '^ *+' conftest.er1 >conftest.err
28202 rm -f conftest.er1
28203 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028206 { ac_try='test -z "$ac_cxx_werror_flag"
28207 || test ! -s conftest.err'
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; } &&
28213 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215 (eval $ac_try) 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; }; then
28219 ac_cv_cxx_namespaces=yes
28220else
28221 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028222sed 's/^/| /' conftest.$ac_ext >&5
28223
John Criswell7a73b802003-06-30 21:59:07 +000028224ac_cv_cxx_namespaces=no
28225fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028227 ac_ext=c
28228ac_cpp='$CPP $CPPFLAGS'
28229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28231ac_compiler_gnu=$ac_cv_c_compiler_gnu
28232
28233
28234fi
28235echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28236echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28237if test "$ac_cv_cxx_namespaces" = yes; then
28238
28239cat >>confdefs.h <<\_ACEOF
28240#define HAVE_NAMESPACES
28241_ACEOF
28242
28243fi
28244
Brian Gaeke90583492003-11-10 03:06:28 +000028245echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28246echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28247if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028248 echo $ECHO_N "(cached) $ECHO_C" >&6
28249else
28250
John Criswell7a73b802003-06-30 21:59:07 +000028251 ac_ext=cc
28252ac_cpp='$CXXCPP $CPPFLAGS'
28253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28256
28257 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028258/* confdefs.h. */
28259_ACEOF
28260cat confdefs.h >>conftest.$ac_ext
28261cat >>conftest.$ac_ext <<_ACEOF
28262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028263#include <ext/hash_map>
28264#ifdef HAVE_NAMESPACES
28265using namespace std;
28266#endif
John Criswell7a73b802003-06-30 21:59:07 +000028267int
28268main ()
28269{
Brian Gaeke90583492003-11-10 03:06:28 +000028270hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028271 ;
28272 return 0;
28273}
28274_ACEOF
28275rm -f conftest.$ac_objext
28276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028277 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028278 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028279 grep -v '^ *+' conftest.er1 >conftest.err
28280 rm -f conftest.er1
28281 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028284 { ac_try='test -z "$ac_cxx_werror_flag"
28285 || test ! -s conftest.err'
28286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; } &&
28291 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028297 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028298else
28299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028300sed 's/^/| /' conftest.$ac_ext >&5
28301
Brian Gaeke90583492003-11-10 03:06:28 +000028302ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028303fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028305 ac_ext=c
28306ac_cpp='$CPP $CPPFLAGS'
28307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28309ac_compiler_gnu=$ac_cv_c_compiler_gnu
28310
John Criswell7a73b802003-06-30 21:59:07 +000028311fi
Brian Gaeke90583492003-11-10 03:06:28 +000028312echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28313echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028314 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28315 then
John Criswell9f011862004-09-24 18:28:00 +000028316
28317cat >>confdefs.h <<\_ACEOF
28318#define HAVE_STD_EXT_HASH_MAP 1
28319_ACEOF
28320
28321 else
28322
28323cat >>confdefs.h <<\_ACEOF
28324#define HAVE_STD_EXT_HASH_MAP 0
28325_ACEOF
28326
Brian Gaeke90583492003-11-10 03:06:28 +000028327 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028328
Brian Gaeke90583492003-11-10 03:06:28 +000028329 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28330echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28331if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28332 echo $ECHO_N "(cached) $ECHO_C" >&6
28333else
28334
Brian Gaeke90583492003-11-10 03:06:28 +000028335 ac_ext=cc
28336ac_cpp='$CXXCPP $CPPFLAGS'
28337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28340
28341 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028342/* confdefs.h. */
28343_ACEOF
28344cat confdefs.h >>conftest.$ac_ext
28345cat >>conftest.$ac_ext <<_ACEOF
28346/* end confdefs.h. */
28347#include <ext/hash_map>
28348#ifdef HAVE_NAMESPACES
28349using namespace __gnu_cxx;
28350#endif
28351int
28352main ()
28353{
28354hash_map<int,int> t;
28355 ;
28356 return 0;
28357}
28358_ACEOF
28359rm -f conftest.$ac_objext
28360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028361 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028362 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028363 grep -v '^ *+' conftest.er1 >conftest.err
28364 rm -f conftest.er1
28365 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028368 { ac_try='test -z "$ac_cxx_werror_flag"
28369 || test ! -s conftest.err'
28370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371 (eval $ac_try) 2>&5
28372 ac_status=$?
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); }; } &&
28375 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; }; then
28381 ac_cv_cxx_have_gnu_ext_hash_map=yes
28382else
28383 echo "$as_me: failed program was:" >&5
28384sed 's/^/| /' conftest.$ac_ext >&5
28385
28386ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028387fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028389 ac_ext=c
28390ac_cpp='$CPP $CPPFLAGS'
28391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28393ac_compiler_gnu=$ac_cv_c_compiler_gnu
28394
28395fi
28396echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28397echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028398 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28399 then
John Criswell9f011862004-09-24 18:28:00 +000028400
28401cat >>confdefs.h <<\_ACEOF
28402#define HAVE_GNU_EXT_HASH_MAP 1
28403_ACEOF
28404
28405 else
28406
28407cat >>confdefs.h <<\_ACEOF
28408#define HAVE_GNU_EXT_HASH_MAP 0
28409_ACEOF
28410
Brian Gaeke90583492003-11-10 03:06:28 +000028411 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028412
Brian Gaeke90583492003-11-10 03:06:28 +000028413 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28414echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28415if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
John Criswell7a73b802003-06-30 21:59:07 +000028418
Brian Gaeke90583492003-11-10 03:06:28 +000028419 ac_ext=cc
28420ac_cpp='$CXXCPP $CPPFLAGS'
28421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28424
28425 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028426/* confdefs.h. */
28427_ACEOF
28428cat confdefs.h >>conftest.$ac_ext
28429cat >>conftest.$ac_ext <<_ACEOF
28430/* end confdefs.h. */
28431#include <hash_map>
28432int
28433main ()
28434{
28435hash_map<int,int> t;
28436 ;
28437 return 0;
28438}
28439_ACEOF
28440rm -f conftest.$ac_objext
28441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028442 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028443 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028444 grep -v '^ *+' conftest.er1 >conftest.err
28445 rm -f conftest.er1
28446 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028449 { ac_try='test -z "$ac_cxx_werror_flag"
28450 || test ! -s conftest.err'
28451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452 (eval $ac_try) 2>&5
28453 ac_status=$?
28454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455 (exit $ac_status); }; } &&
28456 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458 (eval $ac_try) 2>&5
28459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; }; then
28462 ac_cv_cxx_have_global_hash_map=yes
28463else
28464 echo "$as_me: failed program was:" >&5
28465sed 's/^/| /' conftest.$ac_ext >&5
28466
28467ac_cv_cxx_have_global_hash_map=no
28468fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028470 ac_ext=c
28471ac_cpp='$CPP $CPPFLAGS'
28472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28474ac_compiler_gnu=$ac_cv_c_compiler_gnu
28475
28476fi
28477echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28478echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028479 if test "$ac_cv_cxx_have_global_hash_map" = yes
28480 then
John Criswell9f011862004-09-24 18:28:00 +000028481
28482cat >>confdefs.h <<\_ACEOF
28483#define HAVE_GLOBAL_HASH_MAP 1
28484_ACEOF
28485
28486 else
28487
28488cat >>confdefs.h <<\_ACEOF
28489#define HAVE_GLOBAL_HASH_MAP 0
28490_ACEOF
28491
Brian Gaeke90583492003-11-10 03:06:28 +000028492 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028493
Brian Gaeke90583492003-11-10 03:06:28 +000028494echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28495echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28496if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028497 echo $ECHO_N "(cached) $ECHO_C" >&6
28498else
28499
John Criswell7a73b802003-06-30 21:59:07 +000028500 ac_ext=cc
28501ac_cpp='$CXXCPP $CPPFLAGS'
28502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28505
28506 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028507/* confdefs.h. */
28508_ACEOF
28509cat confdefs.h >>conftest.$ac_ext
28510cat >>conftest.$ac_ext <<_ACEOF
28511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028512#include <ext/hash_set>
28513#ifdef HAVE_NAMESPACES
28514using namespace std;
28515#endif
John Criswell7a73b802003-06-30 21:59:07 +000028516int
28517main ()
28518{
Brian Gaeke90583492003-11-10 03:06:28 +000028519hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028520 ;
28521 return 0;
28522}
28523_ACEOF
28524rm -f conftest.$ac_objext
28525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028526 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028527 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028528 grep -v '^ *+' conftest.er1 >conftest.err
28529 rm -f conftest.er1
28530 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028533 { ac_try='test -z "$ac_cxx_werror_flag"
28534 || test ! -s conftest.err'
28535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; } &&
28540 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542 (eval $ac_try) 2>&5
28543 ac_status=$?
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028546 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028547else
28548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028549sed 's/^/| /' conftest.$ac_ext >&5
28550
Brian Gaeke90583492003-11-10 03:06:28 +000028551ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028552fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028554 ac_ext=c
28555ac_cpp='$CPP $CPPFLAGS'
28556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28558ac_compiler_gnu=$ac_cv_c_compiler_gnu
28559
28560fi
28561echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28562echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028563 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28564 then
John Criswell9f011862004-09-24 18:28:00 +000028565
28566cat >>confdefs.h <<\_ACEOF
28567#define HAVE_STD_EXT_HASH_SET 1
28568_ACEOF
28569
28570 else
28571
28572cat >>confdefs.h <<\_ACEOF
28573#define HAVE_STD_EXT_HASH_SET 0
28574_ACEOF
28575
Brian Gaeke90583492003-11-10 03:06:28 +000028576 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028577
Brian Gaeke90583492003-11-10 03:06:28 +000028578 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28579echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28580if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28582else
28583
Brian Gaeke90583492003-11-10 03:06:28 +000028584 ac_ext=cc
28585ac_cpp='$CXXCPP $CPPFLAGS'
28586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28589
John Criswell7a73b802003-06-30 21:59:07 +000028590 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028591/* confdefs.h. */
28592_ACEOF
28593cat confdefs.h >>conftest.$ac_ext
28594cat >>conftest.$ac_ext <<_ACEOF
28595/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028596#include <ext/hash_set>
28597#ifdef HAVE_NAMESPACES
28598using namespace __gnu_cxx;
28599#endif
John Criswell7a73b802003-06-30 21:59:07 +000028600int
28601main ()
28602{
Brian Gaeke90583492003-11-10 03:06:28 +000028603hash_set<int> t;
28604 ;
28605 return 0;
28606}
28607_ACEOF
28608rm -f conftest.$ac_objext
28609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028610 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028617 { ac_try='test -z "$ac_cxx_werror_flag"
28618 || test ! -s conftest.err'
28619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28621 ac_status=$?
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; } &&
28624 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626 (eval $ac_try) 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; }; then
28630 ac_cv_cxx_have_gnu_ext_hash_set=yes
28631else
28632 echo "$as_me: failed program was:" >&5
28633sed 's/^/| /' conftest.$ac_ext >&5
28634
28635ac_cv_cxx_have_gnu_ext_hash_set=no
28636fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028638 ac_ext=c
28639ac_cpp='$CPP $CPPFLAGS'
28640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28642ac_compiler_gnu=$ac_cv_c_compiler_gnu
28643
28644fi
28645echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28646echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028647 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28648 then
John Criswell9f011862004-09-24 18:28:00 +000028649
28650cat >>confdefs.h <<\_ACEOF
28651#define HAVE_GNU_EXT_HASH_SET 1
28652_ACEOF
28653
28654 else
28655
28656cat >>confdefs.h <<\_ACEOF
28657#define HAVE_GNU_EXT_HASH_SET 0
28658_ACEOF
28659
Brian Gaeke90583492003-11-10 03:06:28 +000028660 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028661
Brian Gaeke90583492003-11-10 03:06:28 +000028662 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28663echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28664if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666else
28667
Brian Gaeke90583492003-11-10 03:06:28 +000028668 ac_ext=cc
28669ac_cpp='$CXXCPP $CPPFLAGS'
28670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28673
28674 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028675/* confdefs.h. */
28676_ACEOF
28677cat confdefs.h >>conftest.$ac_ext
28678cat >>conftest.$ac_ext <<_ACEOF
28679/* end confdefs.h. */
28680#include <hash_set>
28681int
28682main ()
28683{
John Criswell7a73b802003-06-30 21:59:07 +000028684hash_set<int> t; return 0;
28685 ;
28686 return 0;
28687}
28688_ACEOF
28689rm -f conftest.$ac_objext
28690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028691 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028692 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028693 grep -v '^ *+' conftest.er1 >conftest.err
28694 rm -f conftest.er1
28695 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028698 { ac_try='test -z "$ac_cxx_werror_flag"
28699 || test ! -s conftest.err'
28700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28701 (eval $ac_try) 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; } &&
28705 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028711 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028712else
28713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028714sed 's/^/| /' conftest.$ac_ext >&5
28715
Brian Gaeke90583492003-11-10 03:06:28 +000028716ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028717fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028719 ac_ext=c
28720ac_cpp='$CPP $CPPFLAGS'
28721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28723ac_compiler_gnu=$ac_cv_c_compiler_gnu
28724
John Criswell7a73b802003-06-30 21:59:07 +000028725fi
Brian Gaeke90583492003-11-10 03:06:28 +000028726echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28727echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028728 if test "$ac_cv_cxx_have_global_hash_set" = yes
28729 then
John Criswell9f011862004-09-24 18:28:00 +000028730
28731cat >>confdefs.h <<\_ACEOF
28732#define HAVE_GLOBAL_HASH_SET 1
28733_ACEOF
28734
28735 else
28736
28737cat >>confdefs.h <<\_ACEOF
28738#define HAVE_GLOBAL_HASH_SET 0
28739_ACEOF
28740
Brian Gaeke90583492003-11-10 03:06:28 +000028741 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028742
John Criswell7a73b802003-06-30 21:59:07 +000028743echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28744echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28745if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28746 echo $ECHO_N "(cached) $ECHO_C" >&6
28747else
28748
John Criswell7a73b802003-06-30 21:59:07 +000028749 ac_ext=cc
28750ac_cpp='$CXXCPP $CPPFLAGS'
28751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28754
28755 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028756/* confdefs.h. */
28757_ACEOF
28758cat confdefs.h >>conftest.$ac_ext
28759cat >>conftest.$ac_ext <<_ACEOF
28760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028761#include <iterator>
28762#ifdef HAVE_NAMESPACES
28763using namespace std;
28764#endif
John Criswell7a73b802003-06-30 21:59:07 +000028765int
28766main ()
28767{
28768iterator<int,int,int> t; return 0;
28769 ;
28770 return 0;
28771}
28772_ACEOF
28773rm -f conftest.$ac_objext
28774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028775 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028776 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028777 grep -v '^ *+' conftest.er1 >conftest.err
28778 rm -f conftest.er1
28779 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028782 { ac_try='test -z "$ac_cxx_werror_flag"
28783 || test ! -s conftest.err'
28784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785 (eval $ac_try) 2>&5
28786 ac_status=$?
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; } &&
28789 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028790 { (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); }; }; then
28795 ac_cv_cxx_have_std_iterator=yes
28796else
28797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028798sed 's/^/| /' conftest.$ac_ext >&5
28799
John Criswell7a73b802003-06-30 21:59:07 +000028800ac_cv_cxx_have_std_iterator=no
28801fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028803 ac_ext=c
28804ac_cpp='$CPP $CPPFLAGS'
28805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28807ac_compiler_gnu=$ac_cv_c_compiler_gnu
28808
28809
28810fi
28811echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28812echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028813if test "$ac_cv_cxx_have_std_iterator" = yes
28814then
John Criswell40468462004-09-24 21:19:06 +000028815
28816cat >>confdefs.h <<\_ACEOF
28817#define HAVE_STD_ITERATOR 1
28818_ACEOF
28819
28820else
28821
28822cat >>confdefs.h <<\_ACEOF
28823#define HAVE_STD_ITERATOR 0
28824_ACEOF
28825
John Criswell7a73b802003-06-30 21:59:07 +000028826fi
28827
28828echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28829echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28830if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28831 echo $ECHO_N "(cached) $ECHO_C" >&6
28832else
28833
John Criswell7a73b802003-06-30 21:59:07 +000028834 ac_ext=cc
28835ac_cpp='$CXXCPP $CPPFLAGS'
28836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28839
28840 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028841/* confdefs.h. */
28842_ACEOF
28843cat confdefs.h >>conftest.$ac_ext
28844cat >>conftest.$ac_ext <<_ACEOF
28845/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028846#include <iterator>
28847#ifdef HAVE_NAMESPACES
28848using namespace std;
28849#endif
John Criswell7a73b802003-06-30 21:59:07 +000028850int
28851main ()
28852{
John Criswellc78022e2003-07-29 19:11:58 +000028853bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028854 ;
28855 return 0;
28856}
28857_ACEOF
28858rm -f conftest.$ac_objext
28859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028860 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028861 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028862 grep -v '^ *+' conftest.er1 >conftest.err
28863 rm -f conftest.er1
28864 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028867 { ac_try='test -z "$ac_cxx_werror_flag"
28868 || test ! -s conftest.err'
28869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870 (eval $ac_try) 2>&5
28871 ac_status=$?
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; } &&
28874 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876 (eval $ac_try) 2>&5
28877 ac_status=$?
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; }; then
28880 ac_cv_cxx_have_bi_iterator=yes
28881else
28882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028883sed 's/^/| /' conftest.$ac_ext >&5
28884
John Criswell7a73b802003-06-30 21:59:07 +000028885ac_cv_cxx_have_bi_iterator=no
28886fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028888 ac_ext=c
28889ac_cpp='$CPP $CPPFLAGS'
28890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28892ac_compiler_gnu=$ac_cv_c_compiler_gnu
28893
28894
28895fi
28896echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28897echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028898if test "$ac_cv_cxx_have_bi_iterator" = yes
28899then
John Criswell40468462004-09-24 21:19:06 +000028900
28901cat >>confdefs.h <<\_ACEOF
28902#define HAVE_BI_ITERATOR 1
28903_ACEOF
28904
28905else
28906
28907cat >>confdefs.h <<\_ACEOF
28908#define HAVE_BI_ITERATOR 0
28909_ACEOF
28910
John Criswell7a73b802003-06-30 21:59:07 +000028911fi
28912
28913echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28914echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28915if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28916 echo $ECHO_N "(cached) $ECHO_C" >&6
28917else
28918
John Criswell7a73b802003-06-30 21:59:07 +000028919 ac_ext=cc
28920ac_cpp='$CXXCPP $CPPFLAGS'
28921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28924
28925 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028926/* confdefs.h. */
28927_ACEOF
28928cat confdefs.h >>conftest.$ac_ext
28929cat >>conftest.$ac_ext <<_ACEOF
28930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028931#include <iterator>
28932#ifdef HAVE_NAMESPACES
28933using namespace std;
28934#endif
John Criswell7a73b802003-06-30 21:59:07 +000028935int
28936main ()
28937{
John Criswellc78022e2003-07-29 19:11:58 +000028938forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028939 ;
28940 return 0;
28941}
28942_ACEOF
28943rm -f conftest.$ac_objext
28944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028945 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028946 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028947 grep -v '^ *+' conftest.er1 >conftest.err
28948 rm -f conftest.er1
28949 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028952 { ac_try='test -z "$ac_cxx_werror_flag"
28953 || test ! -s conftest.err'
28954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; } &&
28959 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961 (eval $ac_try) 2>&5
28962 ac_status=$?
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; }; then
28965 ac_cv_cxx_have_fwd_iterator=yes
28966else
28967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028968sed 's/^/| /' conftest.$ac_ext >&5
28969
John Criswell7a73b802003-06-30 21:59:07 +000028970ac_cv_cxx_have_fwd_iterator=no
28971fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028973 ac_ext=c
28974ac_cpp='$CPP $CPPFLAGS'
28975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28977ac_compiler_gnu=$ac_cv_c_compiler_gnu
28978
28979
28980fi
28981echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28982echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028983if test "$ac_cv_cxx_have_fwd_iterator" = yes
28984then
John Criswell40468462004-09-24 21:19:06 +000028985
28986cat >>confdefs.h <<\_ACEOF
28987#define HAVE_FWD_ITERATOR 1
28988_ACEOF
28989
28990else
28991
28992cat >>confdefs.h <<\_ACEOF
28993#define HAVE_FWD_ITERATOR 0
28994_ACEOF
28995
John Criswell7a73b802003-06-30 21:59:07 +000028996fi
28997
28998
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028999echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29000echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29001if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29002 echo $ECHO_N "(cached) $ECHO_C" >&6
29003else
29004 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
Reid Spencerabec8f92004-10-27 23:03:44 +000029010 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029011/* confdefs.h. */
29012_ACEOF
29013cat confdefs.h >>conftest.$ac_ext
29014cat >>conftest.$ac_ext <<_ACEOF
29015/* end confdefs.h. */
29016#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029017int
29018main ()
29019{
29020float f; isnan(f);
29021 ;
29022 return 0;
29023}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029024_ACEOF
29025rm -f conftest.$ac_objext
29026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029027 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029029 grep -v '^ *+' conftest.er1 >conftest.err
29030 rm -f conftest.er1
29031 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029034 { ac_try='test -z "$ac_cxx_werror_flag"
29035 || test ! -s conftest.err'
29036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29037 (eval $ac_try) 2>&5
29038 ac_status=$?
29039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040 (exit $ac_status); }; } &&
29041 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29043 (eval $ac_try) 2>&5
29044 ac_status=$?
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); }; }; then
29047 ac_cv_func_isnan_in_math_h=yes
29048else
29049 echo "$as_me: failed program was:" >&5
29050sed 's/^/| /' conftest.$ac_ext >&5
29051
29052ac_cv_func_isnan_in_math_h=no
29053fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029055 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029056ac_cpp='$CPP $CPPFLAGS'
29057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29059ac_compiler_gnu=$ac_cv_c_compiler_gnu
29060
29061fi
29062echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29063echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029064
29065
29066if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029067
29068cat >>confdefs.h <<\_ACEOF
29069#define HAVE_ISNAN_IN_MATH_H 1
29070_ACEOF
29071
Reid Spencerabec8f92004-10-27 23:03:44 +000029072fi
29073
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029074echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29075echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29076if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29078else
29079 ac_ext=cc
29080ac_cpp='$CXXCPP $CPPFLAGS'
29081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29084
Reid Spencerabec8f92004-10-27 23:03:44 +000029085 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029086/* confdefs.h. */
29087_ACEOF
29088cat confdefs.h >>conftest.$ac_ext
29089cat >>conftest.$ac_ext <<_ACEOF
29090/* end confdefs.h. */
29091#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029092int
29093main ()
29094{
29095float f; isnan(f);
29096 ;
29097 return 0;
29098}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029099_ACEOF
29100rm -f conftest.$ac_objext
29101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029102 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029104 grep -v '^ *+' conftest.er1 >conftest.err
29105 rm -f conftest.er1
29106 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029109 { ac_try='test -z "$ac_cxx_werror_flag"
29110 || test ! -s conftest.err'
29111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112 (eval $ac_try) 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; } &&
29116 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118 (eval $ac_try) 2>&5
29119 ac_status=$?
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; }; then
29122 ac_cv_func_isnan_in_cmath=yes
29123else
29124 echo "$as_me: failed program was:" >&5
29125sed 's/^/| /' conftest.$ac_ext >&5
29126
29127ac_cv_func_isnan_in_cmath=no
29128fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029130 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029131ac_cpp='$CPP $CPPFLAGS'
29132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29134ac_compiler_gnu=$ac_cv_c_compiler_gnu
29135
29136fi
29137echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29138echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029139
29140if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029141
29142cat >>confdefs.h <<\_ACEOF
29143#define HAVE_ISNAN_IN_CMATH 1
29144_ACEOF
29145
Reid Spencerabec8f92004-10-27 23:03:44 +000029146fi
29147
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029148echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29149echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29150if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29151 echo $ECHO_N "(cached) $ECHO_C" >&6
29152else
29153 ac_ext=cc
29154ac_cpp='$CXXCPP $CPPFLAGS'
29155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29158
Reid Spencerabec8f92004-10-27 23:03:44 +000029159 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029160/* confdefs.h. */
29161_ACEOF
29162cat confdefs.h >>conftest.$ac_ext
29163cat >>conftest.$ac_ext <<_ACEOF
29164/* end confdefs.h. */
29165#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029166int
29167main ()
29168{
29169float f; std::isnan(f);
29170 ;
29171 return 0;
29172}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029173_ACEOF
29174rm -f conftest.$ac_objext
29175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029176 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029178 grep -v '^ *+' conftest.er1 >conftest.err
29179 rm -f conftest.er1
29180 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029183 { ac_try='test -z "$ac_cxx_werror_flag"
29184 || test ! -s conftest.err'
29185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186 (eval $ac_try) 2>&5
29187 ac_status=$?
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; } &&
29190 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29193 ac_status=$?
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; }; then
29196 ac_cv_func_std_isnan_in_cmath=yes
29197else
29198 echo "$as_me: failed program was:" >&5
29199sed 's/^/| /' conftest.$ac_ext >&5
29200
29201ac_cv_func_std_isnan_in_cmath=no
29202fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029204 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029205ac_cpp='$CPP $CPPFLAGS'
29206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29208ac_compiler_gnu=$ac_cv_c_compiler_gnu
29209
29210fi
29211echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29212echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029213
29214if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029215
29216cat >>confdefs.h <<\_ACEOF
29217#define HAVE_STD_ISNAN_IN_CMATH 1
29218_ACEOF
29219
Reid Spencerabec8f92004-10-27 23:03:44 +000029220fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029221
29222
Brian Gaeke52a551d2004-07-21 03:14:12 +000029223echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29224echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29225if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29227else
29228 ac_ext=cc
29229ac_cpp='$CXXCPP $CPPFLAGS'
29230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29233
Reid Spencerabec8f92004-10-27 23:03:44 +000029234 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029235/* confdefs.h. */
29236_ACEOF
29237cat confdefs.h >>conftest.$ac_ext
29238cat >>conftest.$ac_ext <<_ACEOF
29239/* end confdefs.h. */
29240#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029241int
29242main ()
29243{
29244float f; isinf(f);
29245 ;
29246 return 0;
29247}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029248_ACEOF
29249rm -f conftest.$ac_objext
29250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029251 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029252 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029253 grep -v '^ *+' conftest.er1 >conftest.err
29254 rm -f conftest.er1
29255 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029258 { ac_try='test -z "$ac_cxx_werror_flag"
29259 || test ! -s conftest.err'
29260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29261 (eval $ac_try) 2>&5
29262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; } &&
29265 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267 (eval $ac_try) 2>&5
29268 ac_status=$?
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); }; }; then
29271 ac_cv_func_isinf_in_math_h=yes
29272else
29273 echo "$as_me: failed program was:" >&5
29274sed 's/^/| /' conftest.$ac_ext >&5
29275
29276ac_cv_func_isinf_in_math_h=no
29277fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029279 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029280ac_cpp='$CPP $CPPFLAGS'
29281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29283ac_compiler_gnu=$ac_cv_c_compiler_gnu
29284
29285fi
29286echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29287echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029288
29289if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029290
29291cat >>confdefs.h <<\_ACEOF
29292#define HAVE_ISINF_IN_MATH_H 1
29293_ACEOF
29294
Reid Spencerabec8f92004-10-27 23:03:44 +000029295fi
29296
Brian Gaeke52a551d2004-07-21 03:14:12 +000029297echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29298echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29299if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29300 echo $ECHO_N "(cached) $ECHO_C" >&6
29301else
29302 ac_ext=cc
29303ac_cpp='$CXXCPP $CPPFLAGS'
29304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29307
Reid Spencerabec8f92004-10-27 23:03:44 +000029308 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029309/* confdefs.h. */
29310_ACEOF
29311cat confdefs.h >>conftest.$ac_ext
29312cat >>conftest.$ac_ext <<_ACEOF
29313/* end confdefs.h. */
29314#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029315int
29316main ()
29317{
29318float f; isinf(f);
29319 ;
29320 return 0;
29321}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029322_ACEOF
29323rm -f conftest.$ac_objext
29324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029325 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029332 { ac_try='test -z "$ac_cxx_werror_flag"
29333 || test ! -s conftest.err'
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; } &&
29339 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29341 (eval $ac_try) 2>&5
29342 ac_status=$?
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); }; }; then
29345 ac_cv_func_isinf_in_cmath=yes
29346else
29347 echo "$as_me: failed program was:" >&5
29348sed 's/^/| /' conftest.$ac_ext >&5
29349
29350ac_cv_func_isinf_in_cmath=no
29351fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029353 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029354ac_cpp='$CPP $CPPFLAGS'
29355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29357ac_compiler_gnu=$ac_cv_c_compiler_gnu
29358
29359fi
29360echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29361echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029362
29363if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029364
29365cat >>confdefs.h <<\_ACEOF
29366#define HAVE_ISINF_IN_CMATH 1
29367_ACEOF
29368
Reid Spencerabec8f92004-10-27 23:03:44 +000029369fi
29370
Brian Gaeke52a551d2004-07-21 03:14:12 +000029371echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29372echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29373if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29375else
29376 ac_ext=cc
29377ac_cpp='$CXXCPP $CPPFLAGS'
29378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29381
Reid Spencerabec8f92004-10-27 23:03:44 +000029382 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029383/* confdefs.h. */
29384_ACEOF
29385cat confdefs.h >>conftest.$ac_ext
29386cat >>conftest.$ac_ext <<_ACEOF
29387/* end confdefs.h. */
29388#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029389int
29390main ()
29391{
29392float f; std::isinf(f)}
29393 ;
29394 return 0;
29395}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029396_ACEOF
29397rm -f conftest.$ac_objext
29398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029399 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029400 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029401 grep -v '^ *+' conftest.er1 >conftest.err
29402 rm -f conftest.er1
29403 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029406 { ac_try='test -z "$ac_cxx_werror_flag"
29407 || test ! -s conftest.err'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; } &&
29413 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); }; }; then
29419 ac_cv_func_std_isinf_in_cmath=yes
29420else
29421 echo "$as_me: failed program was:" >&5
29422sed 's/^/| /' conftest.$ac_ext >&5
29423
29424ac_cv_func_std_isinf_in_cmath=no
29425fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029427 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029428ac_cpp='$CPP $CPPFLAGS'
29429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29431ac_compiler_gnu=$ac_cv_c_compiler_gnu
29432
29433fi
29434echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29435echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029436
29437if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029438
29439cat >>confdefs.h <<\_ACEOF
29440#define HAVE_STD_ISINF_IN_CMATH 1
29441_ACEOF
29442
Reid Spencerabec8f92004-10-27 23:03:44 +000029443fi
29444
Brian Gaeked59a6472004-07-21 03:33:58 +000029445echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29446echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29447if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449else
29450 ac_ext=cc
29451ac_cpp='$CXXCPP $CPPFLAGS'
29452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29455
Reid Spencerabec8f92004-10-27 23:03:44 +000029456 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029457/* confdefs.h. */
29458_ACEOF
29459cat confdefs.h >>conftest.$ac_ext
29460cat >>conftest.$ac_ext <<_ACEOF
29461/* end confdefs.h. */
29462#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029463int
29464main ()
29465{
29466float f; finite(f);
29467 ;
29468 return 0;
29469}
Brian Gaeked59a6472004-07-21 03:33:58 +000029470_ACEOF
29471rm -f conftest.$ac_objext
29472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029473 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029474 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029475 grep -v '^ *+' conftest.er1 >conftest.err
29476 rm -f conftest.er1
29477 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029480 { ac_try='test -z "$ac_cxx_werror_flag"
29481 || test ! -s conftest.err'
29482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483 (eval $ac_try) 2>&5
29484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; } &&
29487 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489 (eval $ac_try) 2>&5
29490 ac_status=$?
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); }; }; then
29493 ac_cv_func_finite_in_ieeefp_h=yes
29494else
29495 echo "$as_me: failed program was:" >&5
29496sed 's/^/| /' conftest.$ac_ext >&5
29497
29498ac_cv_func_finite_in_ieeefp_h=no
29499fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029501 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029502ac_cpp='$CPP $CPPFLAGS'
29503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505ac_compiler_gnu=$ac_cv_c_compiler_gnu
29506
29507fi
29508echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29509echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029510
Brian Gaeke6802b552004-10-28 05:06:45 +000029511if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029512
29513cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029514#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029515_ACEOF
29516
Reid Spencerabec8f92004-10-27 23:03:44 +000029517fi
29518
29519
29520
John Criswell7a73b802003-06-30 21:59:07 +000029521
29522
29523for ac_header in stdlib.h unistd.h
29524do
29525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29526if eval "test \"\${$as_ac_Header+set}\" = set"; then
29527 echo "$as_me:$LINENO: checking for $ac_header" >&5
29528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29529if eval "test \"\${$as_ac_Header+set}\" = set"; then
29530 echo $ECHO_N "(cached) $ECHO_C" >&6
29531fi
29532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29534else
29535 # Is the header compilable?
29536echo "$as_me:$LINENO: checking $ac_header usability" >&5
29537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29538cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029539/* confdefs.h. */
29540_ACEOF
29541cat confdefs.h >>conftest.$ac_ext
29542cat >>conftest.$ac_ext <<_ACEOF
29543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029544$ac_includes_default
29545#include <$ac_header>
29546_ACEOF
29547rm -f conftest.$ac_objext
29548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029549 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029550 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029551 grep -v '^ *+' conftest.er1 >conftest.err
29552 rm -f conftest.er1
29553 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029556 { ac_try='test -z "$ac_c_werror_flag"
29557 || test ! -s conftest.err'
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
29569 ac_header_compiler=yes
29570else
29571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029572sed 's/^/| /' conftest.$ac_ext >&5
29573
John Criswell7a73b802003-06-30 21:59:07 +000029574ac_header_compiler=no
29575fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29578echo "${ECHO_T}$ac_header_compiler" >&6
29579
29580# Is the header present?
29581echo "$as_me:$LINENO: checking $ac_header presence" >&5
29582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29583cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029584/* confdefs.h. */
29585_ACEOF
29586cat confdefs.h >>conftest.$ac_ext
29587cat >>conftest.$ac_ext <<_ACEOF
29588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029589#include <$ac_header>
29590_ACEOF
29591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29593 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029594 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029595 rm -f conftest.er1
29596 cat conftest.err >&5
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); } >/dev/null; then
29599 if test -s conftest.err; then
29600 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029602 else
29603 ac_cpp_err=
29604 fi
29605else
29606 ac_cpp_err=yes
29607fi
29608if test -z "$ac_cpp_err"; then
29609 ac_header_preproc=yes
29610else
29611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029612sed 's/^/| /' conftest.$ac_ext >&5
29613
John Criswell7a73b802003-06-30 21:59:07 +000029614 ac_header_preproc=no
29615fi
29616rm -f conftest.err conftest.$ac_ext
29617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29618echo "${ECHO_T}$ac_header_preproc" >&6
29619
29620# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29622 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29627 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029628 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029629 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029642 (
29643 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029644## ----------------------------------- ##
29645## Report this to llvmbugs@cs.uiuc.edu ##
29646## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029647_ASBOX
29648 ) |
29649 sed "s/^/$as_me: WARNING: /" >&2
29650 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029651esac
29652echo "$as_me:$LINENO: checking for $ac_header" >&5
29653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29654if eval "test \"\${$as_ac_Header+set}\" = set"; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29656else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029657 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029658fi
29659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29661
29662fi
29663if test `eval echo '${'$as_ac_Header'}'` = yes; then
29664 cat >>confdefs.h <<_ACEOF
29665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29666_ACEOF
29667
29668fi
29669
29670done
29671
29672
29673for ac_func in getpagesize
29674do
29675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29676echo "$as_me:$LINENO: checking for $ac_func" >&5
29677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29678if eval "test \"\${$as_ac_var+set}\" = set"; then
29679 echo $ECHO_N "(cached) $ECHO_C" >&6
29680else
29681 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029682/* confdefs.h. */
29683_ACEOF
29684cat confdefs.h >>conftest.$ac_ext
29685cat >>conftest.$ac_ext <<_ACEOF
29686/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29689#define $ac_func innocuous_$ac_func
29690
John Criswell7a73b802003-06-30 21:59:07 +000029691/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029692 which can conflict with char $ac_func (); below.
29693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29694 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029695
John Criswell0c38eaf2003-09-10 15:17:25 +000029696#ifdef __STDC__
29697# include <limits.h>
29698#else
29699# include <assert.h>
29700#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029701
29702#undef $ac_func
29703
John Criswell7a73b802003-06-30 21:59:07 +000029704/* Override any gcc2 internal prototype to avoid an error. */
29705#ifdef __cplusplus
29706extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029707{
John Criswell7a73b802003-06-30 21:59:07 +000029708#endif
29709/* We use char because int might match the return type of a gcc2
29710 builtin and then its argument prototype would still apply. */
29711char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029712/* The GNU C library defines this for functions which it implements
29713 to always fail with ENOSYS. Some functions are actually named
29714 something starting with __ and the normal name is an alias. */
29715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29716choke me
29717#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029718char (*f) () = $ac_func;
29719#endif
29720#ifdef __cplusplus
29721}
John Criswell7a73b802003-06-30 21:59:07 +000029722#endif
29723
John Criswell0c38eaf2003-09-10 15:17:25 +000029724int
29725main ()
29726{
29727return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029728 ;
29729 return 0;
29730}
29731_ACEOF
29732rm -f conftest.$ac_objext conftest$ac_exeext
29733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029734 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029735 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029736 grep -v '^ *+' conftest.er1 >conftest.err
29737 rm -f conftest.er1
29738 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029741 { ac_try='test -z "$ac_c_werror_flag"
29742 || test ! -s conftest.err'
29743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29744 (eval $ac_try) 2>&5
29745 ac_status=$?
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); }; } &&
29748 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750 (eval $ac_try) 2>&5
29751 ac_status=$?
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
29754 eval "$as_ac_var=yes"
29755else
29756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029757sed 's/^/| /' conftest.$ac_ext >&5
29758
John Criswell7a73b802003-06-30 21:59:07 +000029759eval "$as_ac_var=no"
29760fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029761rm -f conftest.err conftest.$ac_objext \
29762 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029763fi
29764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29765echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29766if test `eval echo '${'$as_ac_var'}'` = yes; then
29767 cat >>confdefs.h <<_ACEOF
29768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29769_ACEOF
29770
29771fi
29772done
29773
29774echo "$as_me:$LINENO: checking for working mmap" >&5
29775echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29776if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29777 echo $ECHO_N "(cached) $ECHO_C" >&6
29778else
29779 if test "$cross_compiling" = yes; then
29780 ac_cv_func_mmap_fixed_mapped=no
29781else
29782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029783/* confdefs.h. */
29784_ACEOF
29785cat confdefs.h >>conftest.$ac_ext
29786cat >>conftest.$ac_ext <<_ACEOF
29787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029788$ac_includes_default
29789/* malloc might have been renamed as rpl_malloc. */
29790#undef malloc
29791
29792/* Thanks to Mike Haertel and Jim Avera for this test.
29793 Here is a matrix of mmap possibilities:
29794 mmap private not fixed
29795 mmap private fixed at somewhere currently unmapped
29796 mmap private fixed at somewhere already mapped
29797 mmap shared not fixed
29798 mmap shared fixed at somewhere currently unmapped
29799 mmap shared fixed at somewhere already mapped
29800 For private mappings, we should verify that changes cannot be read()
29801 back from the file, nor mmap's back from the file at a different
29802 address. (There have been systems where private was not correctly
29803 implemented like the infamous i386 svr4.0, and systems where the
29804 VM page cache was not coherent with the file system buffer cache
29805 like early versions of FreeBSD and possibly contemporary NetBSD.)
29806 For shared mappings, we should conversely verify that changes get
29807 propagated back to all the places they're supposed to be.
29808
29809 Grep wants private fixed already mapped.
29810 The main things grep needs to know about mmap are:
29811 * does it exist and is it safe to write into the mmap'd area
29812 * how to use it (BSD variants) */
29813
29814#include <fcntl.h>
29815#include <sys/mman.h>
29816
29817#if !STDC_HEADERS && !HAVE_STDLIB_H
29818char *malloc ();
29819#endif
29820
29821/* This mess was copied from the GNU getpagesize.h. */
29822#if !HAVE_GETPAGESIZE
29823/* Assume that all systems that can run configure have sys/param.h. */
29824# if !HAVE_SYS_PARAM_H
29825# define HAVE_SYS_PARAM_H 1
29826# endif
29827
29828# ifdef _SC_PAGESIZE
29829# define getpagesize() sysconf(_SC_PAGESIZE)
29830# else /* no _SC_PAGESIZE */
29831# if HAVE_SYS_PARAM_H
29832# include <sys/param.h>
29833# ifdef EXEC_PAGESIZE
29834# define getpagesize() EXEC_PAGESIZE
29835# else /* no EXEC_PAGESIZE */
29836# ifdef NBPG
29837# define getpagesize() NBPG * CLSIZE
29838# ifndef CLSIZE
29839# define CLSIZE 1
29840# endif /* no CLSIZE */
29841# else /* no NBPG */
29842# ifdef NBPC
29843# define getpagesize() NBPC
29844# else /* no NBPC */
29845# ifdef PAGESIZE
29846# define getpagesize() PAGESIZE
29847# endif /* PAGESIZE */
29848# endif /* no NBPC */
29849# endif /* no NBPG */
29850# endif /* no EXEC_PAGESIZE */
29851# else /* no HAVE_SYS_PARAM_H */
29852# define getpagesize() 8192 /* punt totally */
29853# endif /* no HAVE_SYS_PARAM_H */
29854# endif /* no _SC_PAGESIZE */
29855
29856#endif /* no HAVE_GETPAGESIZE */
29857
29858int
29859main ()
29860{
29861 char *data, *data2, *data3;
29862 int i, pagesize;
29863 int fd;
29864
29865 pagesize = getpagesize ();
29866
29867 /* First, make a file with some known garbage in it. */
29868 data = (char *) malloc (pagesize);
29869 if (!data)
29870 exit (1);
29871 for (i = 0; i < pagesize; ++i)
29872 *(data + i) = rand ();
29873 umask (0);
29874 fd = creat ("conftest.mmap", 0600);
29875 if (fd < 0)
29876 exit (1);
29877 if (write (fd, data, pagesize) != pagesize)
29878 exit (1);
29879 close (fd);
29880
29881 /* Next, try to mmap the file at a fixed address which already has
29882 something else allocated at it. If we can, also make sure that
29883 we see the same garbage. */
29884 fd = open ("conftest.mmap", O_RDWR);
29885 if (fd < 0)
29886 exit (1);
29887 data2 = (char *) malloc (2 * pagesize);
29888 if (!data2)
29889 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029890 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029891 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029892 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029893 exit (1);
29894 for (i = 0; i < pagesize; ++i)
29895 if (*(data + i) != *(data2 + i))
29896 exit (1);
29897
29898 /* Finally, make sure that changes to the mapped area do not
29899 percolate back to the file as seen by read(). (This is a bug on
29900 some variants of i386 svr4.0.) */
29901 for (i = 0; i < pagesize; ++i)
29902 *(data2 + i) = *(data2 + i) + 1;
29903 data3 = (char *) malloc (pagesize);
29904 if (!data3)
29905 exit (1);
29906 if (read (fd, data3, pagesize) != pagesize)
29907 exit (1);
29908 for (i = 0; i < pagesize; ++i)
29909 if (*(data + i) != *(data3 + i))
29910 exit (1);
29911 close (fd);
29912 exit (0);
29913}
29914_ACEOF
29915rm -f conftest$ac_exeext
29916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29917 (eval $ac_link) 2>&5
29918 ac_status=$?
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29922 (eval $ac_try) 2>&5
29923 ac_status=$?
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; }; then
29926 ac_cv_func_mmap_fixed_mapped=yes
29927else
29928 echo "$as_me: program exited with status $ac_status" >&5
29929echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029930sed 's/^/| /' conftest.$ac_ext >&5
29931
John Criswell7a73b802003-06-30 21:59:07 +000029932( exit $ac_status )
29933ac_cv_func_mmap_fixed_mapped=no
29934fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029936fi
29937fi
29938echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29939echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29940if test $ac_cv_func_mmap_fixed_mapped = yes; then
29941
29942cat >>confdefs.h <<\_ACEOF
29943#define HAVE_MMAP 1
29944_ACEOF
29945
29946fi
29947rm -f conftest.mmap
29948
29949echo "$as_me:$LINENO: checking for mmap of files" >&5
29950echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29951if test "${ac_cv_func_mmap_file+set}" = set; then
29952 echo $ECHO_N "(cached) $ECHO_C" >&6
29953else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029954 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029955ac_cpp='$CPP $CPPFLAGS'
29956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29958ac_compiler_gnu=$ac_cv_c_compiler_gnu
29959
29960 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029961 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029962else
29963 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029964
Reid Spencer777ce172004-09-20 04:09:56 +000029965 /* confdefs.h. */
29966_ACEOF
29967cat confdefs.h >>conftest.$ac_ext
29968cat >>conftest.$ac_ext <<_ACEOF
29969/* end confdefs.h. */
29970
John Criswell7a73b802003-06-30 21:59:07 +000029971#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029972#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029973#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029974
29975int
29976main ()
29977{
John Criswell7a73b802003-06-30 21:59:07 +000029978
29979 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029980 fd = creat ("foo",0777);
29981 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29982 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029983 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029984 ;
29985 return 0;
29986}
John Criswell7a73b802003-06-30 21:59:07 +000029987_ACEOF
29988rm -f conftest$ac_exeext
29989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29990 (eval $ac_link) 2>&5
29991 ac_status=$?
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29995 (eval $ac_try) 2>&5
29996 ac_status=$?
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); }; }; then
29999 ac_cv_func_mmap_file=yes
30000else
30001 echo "$as_me: program exited with status $ac_status" >&5
30002echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030003sed 's/^/| /' conftest.$ac_ext >&5
30004
John Criswell7a73b802003-06-30 21:59:07 +000030005( exit $ac_status )
30006ac_cv_func_mmap_file=no
30007fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030008rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030009fi
30010 ac_ext=c
30011ac_cpp='$CPP $CPPFLAGS'
30012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30014ac_compiler_gnu=$ac_cv_c_compiler_gnu
30015
30016
30017fi
30018echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30019echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30020if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030021
30022cat >>confdefs.h <<\_ACEOF
30023#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030024_ACEOF
30025
30026 MMAP_FILE=yes
30027
30028fi
30029
Reid Spencer7931a782004-12-27 06:15:02 +000030030echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30031echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30032if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30033 echo $ECHO_N "(cached) $ECHO_C" >&6
30034else
Reid Spencer582a23c2004-12-29 07:07:57 +000030035 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030036 ac_cv_need_dev_zero_for_mmap=yes
30037 else
30038 ac_cv_need_dev_zero_for_mmap=no
30039 fi
30040
30041fi
30042echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30043echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30044if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30045
30046cat >>confdefs.h <<\_ACEOF
30047#define NEED_DEV_ZERO_FOR_MMAP 1
30048_ACEOF
30049
30050fi
John Criswell7a73b802003-06-30 21:59:07 +000030051echo "$as_me:$LINENO: checking for mprotect" >&5
30052echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30053if test "${ac_cv_func_mprotect+set}" = set; then
30054 echo $ECHO_N "(cached) $ECHO_C" >&6
30055else
30056 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030057/* confdefs.h. */
30058_ACEOF
30059cat confdefs.h >>conftest.$ac_ext
30060cat >>conftest.$ac_ext <<_ACEOF
30061/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030062/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30064#define mprotect innocuous_mprotect
30065
John Criswell7a73b802003-06-30 21:59:07 +000030066/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030067 which can conflict with char mprotect (); below.
30068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30069 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030070
John Criswell0c38eaf2003-09-10 15:17:25 +000030071#ifdef __STDC__
30072# include <limits.h>
30073#else
30074# include <assert.h>
30075#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030076
30077#undef mprotect
30078
John Criswell7a73b802003-06-30 21:59:07 +000030079/* Override any gcc2 internal prototype to avoid an error. */
30080#ifdef __cplusplus
30081extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030082{
John Criswell7a73b802003-06-30 21:59:07 +000030083#endif
30084/* We use char because int might match the return type of a gcc2
30085 builtin and then its argument prototype would still apply. */
30086char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030087/* The GNU C library defines this for functions which it implements
30088 to always fail with ENOSYS. Some functions are actually named
30089 something starting with __ and the normal name is an alias. */
30090#if defined (__stub_mprotect) || defined (__stub___mprotect)
30091choke me
30092#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030093char (*f) () = mprotect;
30094#endif
30095#ifdef __cplusplus
30096}
John Criswell7a73b802003-06-30 21:59:07 +000030097#endif
30098
John Criswell0c38eaf2003-09-10 15:17:25 +000030099int
30100main ()
30101{
30102return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030103 ;
30104 return 0;
30105}
30106_ACEOF
30107rm -f conftest.$ac_objext conftest$ac_exeext
30108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030109 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030110 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030111 grep -v '^ *+' conftest.er1 >conftest.err
30112 rm -f conftest.er1
30113 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030116 { ac_try='test -z "$ac_c_werror_flag"
30117 || test ! -s conftest.err'
30118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30119 (eval $ac_try) 2>&5
30120 ac_status=$?
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; } &&
30123 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30125 (eval $ac_try) 2>&5
30126 ac_status=$?
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; }; then
30129 ac_cv_func_mprotect=yes
30130else
30131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030132sed 's/^/| /' conftest.$ac_ext >&5
30133
John Criswell7a73b802003-06-30 21:59:07 +000030134ac_cv_func_mprotect=no
30135fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030136rm -f conftest.err conftest.$ac_objext \
30137 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030138fi
30139echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30140echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30141if test $ac_cv_func_mprotect = yes; then
30142 :
30143else
30144 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30145echo "$as_me: error: Function mprotect() required but not found" >&2;}
30146 { (exit 1); exit 1; }; }
30147fi
30148
30149
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030150if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030151then
Reid Spencer582a23c2004-12-29 07:07:57 +000030152 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30153echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030154fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030155if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030156then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030157 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30158echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030159fi
John Criswell7a73b802003-06-30 21:59:07 +000030160
30161
Brian Gaekef3b24102003-11-16 18:38:14 +000030162echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30163echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030164if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30166else
30167 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030168if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030169 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030170 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030171 if test $? -eq 0 ; then
30172 llvm_cv_llvmgcc_sanity="yes"
30173 fi
30174 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030175fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030176fi
30177echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30178echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30179
30180if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030181 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030182 LLVMCC1=$llvmcc1path
30183
Reid Spencer502935f2004-12-22 05:56:56 +000030184 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030185 LLVMCC1PLUS=$llvmcc1pluspath
30186
Reid Spencer502935f2004-12-22 05:56:56 +000030187 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30188 LLVMGCCDIR=$llvmgccdir
30189
Brian Gaekef3b24102003-11-16 18:38:14 +000030190fi
30191
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030192SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030193
30194
Reid Spencere9de0912004-08-20 09:03:57 +000030195# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030196# information into substitutions that will end up in Makefile.config.in
30197# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030198eval LLVM_PREFIX="${prefix}";
30199eval LLVM_BINDIR="${prefix}/bin";
30200eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030201eval LLVM_DATADIR="${prefix}/share/llvm";
30202eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30203eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030204eval LLVM_INCLUDEDIR="${prefix}/include";
30205eval LLVM_INFODIR="${prefix}/info";
30206eval LLVM_MANDIR="${prefix}/man";
30207LLVM_CONFIGTIME=`date`
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030219# Place the various directores into the config.h file as #defines so that we
30220# can know about the installation paths within LLVM.
30221
Reid Spencere9de0912004-08-20 09:03:57 +000030222cat >>confdefs.h <<_ACEOF
30223#define LLVM_PREFIX "$LLVM_PREFIX"
30224_ACEOF
30225
30226
30227cat >>confdefs.h <<_ACEOF
30228#define LLVM_BINDIR "$LLVM_BINDIR"
30229_ACEOF
30230
30231
30232cat >>confdefs.h <<_ACEOF
30233#define LLVM_LIBDIR "$LLVM_LIBDIR"
30234_ACEOF
30235
30236
30237cat >>confdefs.h <<_ACEOF
30238#define LLVM_DATADIR "$LLVM_DATADIR"
30239_ACEOF
30240
30241
30242cat >>confdefs.h <<_ACEOF
30243#define LLVM_DATADIR "$LLVM_DOCSDIR"
30244_ACEOF
30245
30246
30247cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030248#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030249_ACEOF
30250
30251
30252cat >>confdefs.h <<_ACEOF
30253#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30254_ACEOF
30255
30256
30257cat >>confdefs.h <<_ACEOF
30258#define LLVM_INFODIR "$LLVM_INFODIR"
30259_ACEOF
30260
30261
30262cat >>confdefs.h <<_ACEOF
30263#define LLVM_MANDIR "$LLVM_MANDIR"
30264_ACEOF
30265
30266
30267cat >>confdefs.h <<_ACEOF
30268#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30269_ACEOF
30270
30271
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030272
30273 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30274
30275
30276 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30277
30278 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30279
30280 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30281
30282 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30283
30284 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30285
30286
30287 ac_config_files="$ac_config_files Makefile.config"
30288
30289
30290 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30291
30292
Reid Spencer1f319422004-11-29 04:56:35 +000030293 ac_config_files="$ac_config_files docs/doxygen.cfg"
30294
30295
Reid Spencerc0682832005-02-24 19:05:19 +000030296 ac_config_commands="$ac_config_commands setup"
30297
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030298 ac_config_commands="$ac_config_commands Makefile"
30299
30300
30301 ac_config_commands="$ac_config_commands Makefile.common"
30302
30303
30304 ac_config_commands="$ac_config_commands examples/Makefile"
30305
30306
30307 ac_config_commands="$ac_config_commands lib/Makefile"
30308
30309
30310 ac_config_commands="$ac_config_commands runtime/Makefile"
30311
30312
30313 ac_config_commands="$ac_config_commands test/Makefile"
30314
30315
30316 ac_config_commands="$ac_config_commands test/Makefile.tests"
30317
30318
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030319 ac_config_commands="$ac_config_commands tools/Makefile"
30320
30321
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030322 ac_config_commands="$ac_config_commands utils/Makefile"
30323
30324
30325 ac_config_commands="$ac_config_commands projects/Makefile"
30326
30327
30328
John Criswell7a73b802003-06-30 21:59:07 +000030329cat >confcache <<\_ACEOF
30330# This file is a shell script that caches the results of configure
30331# tests run on this system so they can be shared between configure
30332# scripts and configure runs, see configure's option --config-cache.
30333# It is not useful on other systems. If it contains results you don't
30334# want to keep, you may remove or edit it.
30335#
30336# config.status only pays attention to the cache file if you give it
30337# the --recheck option to rerun configure.
30338#
John Criswell0c38eaf2003-09-10 15:17:25 +000030339# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030340# loading this file, other *unset* `ac_cv_foo' will be assigned the
30341# following values.
30342
30343_ACEOF
30344
30345# The following way of writing the cache mishandles newlines in values,
30346# but we know of no workaround that is simple, portable, and efficient.
30347# So, don't put newlines in cache variables' values.
30348# Ultrix sh set writes to stderr and can't be redirected directly,
30349# and sets the high bit in the cache file unless we assign to the vars.
30350{
30351 (set) 2>&1 |
30352 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30353 *ac_space=\ *)
30354 # `set' does not quote correctly, so add quotes (double-quote
30355 # substitution turns \\\\ into \\, and sed turns \\ into \).
30356 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030357 "s/'/'\\\\''/g;
30358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030359 ;;
30360 *)
30361 # `set' quotes correctly as required by POSIX, so do not add quotes.
30362 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030363 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030364 ;;
30365 esac;
30366} |
30367 sed '
30368 t clear
30369 : clear
30370 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30371 t end
30372 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30373 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030374if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030375 if test -w $cache_file; then
30376 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30377 cat confcache >$cache_file
30378 else
30379 echo "not updating unwritable cache $cache_file"
30380 fi
30381fi
30382rm -f confcache
30383
30384test "x$prefix" = xNONE && prefix=$ac_default_prefix
30385# Let make expand exec_prefix.
30386test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30387
30388# VPATH may cause trouble with some makes, so we remove $(srcdir),
30389# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30390# trailing colons and then remove the whole line if VPATH becomes empty
30391# (actually we leave an empty line to preserve line numbers).
30392if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030393 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030394s/:*\$(srcdir):*/:/;
30395s/:*\${srcdir}:*/:/;
30396s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030397s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030398s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030399s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030400}'
30401fi
30402
30403DEFS=-DHAVE_CONFIG_H
30404
John Criswell0c38eaf2003-09-10 15:17:25 +000030405ac_libobjs=
30406ac_ltlibobjs=
30407for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30408 # 1. Remove the extension, and $U if already installed.
30409 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030410 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030411 # 2. Add them.
30412 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30413 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30414done
30415LIBOBJS=$ac_libobjs
30416
30417LTLIBOBJS=$ac_ltlibobjs
30418
30419
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030420if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30421 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30422Usually this means the macro was only invoked conditionally." >&5
30423echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30424Usually this means the macro was only invoked conditionally." >&2;}
30425 { (exit 1); exit 1; }; }
30426fi
30427if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30428 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30429Usually this means the macro was only invoked conditionally." >&5
30430echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30431Usually this means the macro was only invoked conditionally." >&2;}
30432 { (exit 1); exit 1; }; }
30433fi
John Criswell7a73b802003-06-30 21:59:07 +000030434
30435: ${CONFIG_STATUS=./config.status}
30436ac_clean_files_save=$ac_clean_files
30437ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30438{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30439echo "$as_me: creating $CONFIG_STATUS" >&6;}
30440cat >$CONFIG_STATUS <<_ACEOF
30441#! $SHELL
30442# Generated by $as_me.
30443# Run this file to recreate the current configuration.
30444# Compiler output produced by configure, useful for debugging
30445# configure, is in config.log if it exists.
30446
30447debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030448ac_cs_recheck=false
30449ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030450SHELL=\${CONFIG_SHELL-$SHELL}
30451_ACEOF
30452
30453cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030454## --------------------- ##
30455## M4sh Initialization. ##
30456## --------------------- ##
30457
30458# Be Bourne compatible
30459if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30460 emulate sh
30461 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030462 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30463 # is contrary to our usage. Disable this feature.
30464 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030465elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30466 set -o posix
30467fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030468DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030469
John Criswell7a73b802003-06-30 21:59:07 +000030470# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030471if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030472 as_unset=unset
30473else
30474 as_unset=false
30475fi
30476
John Criswell0c38eaf2003-09-10 15:17:25 +000030477
30478# Work around bugs in pre-3.0 UWIN ksh.
30479$as_unset ENV MAIL MAILPATH
30480PS1='$ '
30481PS2='> '
30482PS4='+ '
30483
30484# NLS nuisances.
30485for as_var in \
30486 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30487 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30488 LC_TELEPHONE LC_TIME
30489do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030490 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030491 eval $as_var=C; export $as_var
30492 else
30493 $as_unset $as_var
30494 fi
30495done
30496
30497# Required to use basename.
30498if expr a : '\(a\)' >/dev/null 2>&1; then
30499 as_expr=expr
30500else
30501 as_expr=false
30502fi
30503
30504if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30505 as_basename=basename
30506else
30507 as_basename=false
30508fi
John Criswell7a73b802003-06-30 21:59:07 +000030509
30510
30511# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030512as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030513$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30514 X"$0" : 'X\(//\)$' \| \
30515 X"$0" : 'X\(/\)$' \| \
30516 . : '\(.\)' 2>/dev/null ||
30517echo X/"$0" |
30518 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30519 /^X\/\(\/\/\)$/{ s//\1/; q; }
30520 /^X\/\(\/\).*/{ s//\1/; q; }
30521 s/.*/./; q'`
30522
John Criswell0c38eaf2003-09-10 15:17:25 +000030523
John Criswell7a73b802003-06-30 21:59:07 +000030524# PATH needs CR, and LINENO needs CR and PATH.
30525# Avoid depending upon Character Ranges.
30526as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30527as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30528as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30529as_cr_digits='0123456789'
30530as_cr_alnum=$as_cr_Letters$as_cr_digits
30531
30532# The user is always right.
30533if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030534 echo "#! /bin/sh" >conf$$.sh
30535 echo "exit 0" >>conf$$.sh
30536 chmod +x conf$$.sh
30537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030538 PATH_SEPARATOR=';'
30539 else
30540 PATH_SEPARATOR=:
30541 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030542 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030543fi
30544
30545
30546 as_lineno_1=$LINENO
30547 as_lineno_2=$LINENO
30548 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30549 test "x$as_lineno_1" != "x$as_lineno_2" &&
30550 test "x$as_lineno_3" = "x$as_lineno_2" || {
30551 # Find who we are. Look in the path if we contain no path at all
30552 # relative or not.
30553 case $0 in
30554 *[\\/]* ) as_myself=$0 ;;
30555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30556for as_dir in $PATH
30557do
30558 IFS=$as_save_IFS
30559 test -z "$as_dir" && as_dir=.
30560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30561done
30562
30563 ;;
30564 esac
30565 # We did not find ourselves, most probably we were run as `sh COMMAND'
30566 # in which case we are not to be found in the path.
30567 if test "x$as_myself" = x; then
30568 as_myself=$0
30569 fi
30570 if test ! -f "$as_myself"; then
30571 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30572echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30573 { (exit 1); exit 1; }; }
30574 fi
30575 case $CONFIG_SHELL in
30576 '')
30577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30578for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30579do
30580 IFS=$as_save_IFS
30581 test -z "$as_dir" && as_dir=.
30582 for as_base in sh bash ksh sh5; do
30583 case $as_dir in
30584 /*)
30585 if ("$as_dir/$as_base" -c '
30586 as_lineno_1=$LINENO
30587 as_lineno_2=$LINENO
30588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30589 test "x$as_lineno_1" != "x$as_lineno_2" &&
30590 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030591 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30592 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030593 CONFIG_SHELL=$as_dir/$as_base
30594 export CONFIG_SHELL
30595 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30596 fi;;
30597 esac
30598 done
30599done
30600;;
30601 esac
30602
30603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30604 # uniformly replaced by the line number. The first 'sed' inserts a
30605 # line-number line before each line; the second 'sed' does the real
30606 # work. The second script uses 'N' to pair each line-number line
30607 # with the numbered line, and appends trailing '-' during
30608 # substitution so that $LINENO is not a special case at line end.
30609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30610 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30611 sed '=' <$as_myself |
30612 sed '
30613 N
30614 s,$,-,
30615 : loop
30616 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30617 t loop
30618 s,-$,,
30619 s,^['$as_cr_digits']*\n,,
30620 ' >$as_me.lineno &&
30621 chmod +x $as_me.lineno ||
30622 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30623echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30624 { (exit 1); exit 1; }; }
30625
30626 # Don't try to exec as it changes $[0], causing all sort of problems
30627 # (the dirname of $[0] is not the place where we might find the
30628 # original and so on. Autoconf is especially sensible to this).
30629 . ./$as_me.lineno
30630 # Exit status is that of the last command.
30631 exit
30632}
30633
30634
30635case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30636 *c*,-n*) ECHO_N= ECHO_C='
30637' ECHO_T=' ' ;;
30638 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30639 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30640esac
30641
30642if expr a : '\(a\)' >/dev/null 2>&1; then
30643 as_expr=expr
30644else
30645 as_expr=false
30646fi
30647
30648rm -f conf$$ conf$$.exe conf$$.file
30649echo >conf$$.file
30650if ln -s conf$$.file conf$$ 2>/dev/null; then
30651 # We could just check for DJGPP; but this test a) works b) is more generic
30652 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30653 if test -f conf$$.exe; then
30654 # Don't use ln at all; we don't have any links
30655 as_ln_s='cp -p'
30656 else
30657 as_ln_s='ln -s'
30658 fi
30659elif ln conf$$.file conf$$ 2>/dev/null; then
30660 as_ln_s=ln
30661else
30662 as_ln_s='cp -p'
30663fi
30664rm -f conf$$ conf$$.exe conf$$.file
30665
John Criswell0c38eaf2003-09-10 15:17:25 +000030666if mkdir -p . 2>/dev/null; then
30667 as_mkdir_p=:
30668else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030669 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030670 as_mkdir_p=false
30671fi
30672
John Criswell7a73b802003-06-30 21:59:07 +000030673as_executable_p="test -f"
30674
30675# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030676as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030677
30678# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030679as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030680
30681
30682# IFS
30683# We need space, tab and new line, in precisely that order.
30684as_nl='
30685'
30686IFS=" $as_nl"
30687
30688# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030689$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030690
30691exec 6>&1
30692
30693# Open the log real soon, to keep \$[0] and so on meaningful, and to
30694# report actual input values of CONFIG_FILES etc. instead of their
30695# values after options handling. Logging --version etc. is OK.
30696exec 5>>config.log
30697{
30698 echo
30699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30700## Running $as_me. ##
30701_ASBOX
30702} >&5
30703cat >&5 <<_CSEOF
30704
Reid Spencer78ba11d2005-02-16 16:21:00 +000030705This file was extended by llvm $as_me 1.5cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030706generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030707
30708 CONFIG_FILES = $CONFIG_FILES
30709 CONFIG_HEADERS = $CONFIG_HEADERS
30710 CONFIG_LINKS = $CONFIG_LINKS
30711 CONFIG_COMMANDS = $CONFIG_COMMANDS
30712 $ $0 $@
30713
30714_CSEOF
30715echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30716echo >&5
30717_ACEOF
30718
30719# Files that config.status was made for.
30720if test -n "$ac_config_files"; then
30721 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30722fi
30723
30724if test -n "$ac_config_headers"; then
30725 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30726fi
30727
30728if test -n "$ac_config_links"; then
30729 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30730fi
30731
30732if test -n "$ac_config_commands"; then
30733 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30734fi
30735
30736cat >>$CONFIG_STATUS <<\_ACEOF
30737
30738ac_cs_usage="\
30739\`$as_me' instantiates files from templates according to the
30740current configuration.
30741
30742Usage: $0 [OPTIONS] [FILE]...
30743
30744 -h, --help print this help, then exit
30745 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030746 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030747 -d, --debug don't remove temporary files
30748 --recheck update $as_me by reconfiguring in the same conditions
30749 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030750 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030751 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030752 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030753
30754Configuration files:
30755$config_files
30756
30757Configuration headers:
30758$config_headers
30759
John Criswellc764fbc2003-09-06 15:17:13 +000030760Configuration commands:
30761$config_commands
30762
John Criswell7a73b802003-06-30 21:59:07 +000030763Report bugs to <bug-autoconf@gnu.org>."
30764_ACEOF
30765
30766cat >>$CONFIG_STATUS <<_ACEOF
30767ac_cs_version="\\
Reid Spencer78ba11d2005-02-16 16:21:00 +000030768llvm config.status 1.5cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000030769configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030770 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30771
Reid Spencer2706f8c2004-09-19 23:53:36 +000030772Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030773This config.status script is free software; the Free Software Foundation
30774gives unlimited permission to copy, distribute and modify it."
30775srcdir=$srcdir
30776INSTALL="$INSTALL"
30777_ACEOF
30778
30779cat >>$CONFIG_STATUS <<\_ACEOF
30780# If no file are specified by the user, then we need to provide default
30781# value. By we need to know if files were specified by the user.
30782ac_need_defaults=:
30783while test $# != 0
30784do
30785 case $1 in
30786 --*=*)
30787 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30788 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030789 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030790 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030791 -*)
30792 ac_option=$1
30793 ac_optarg=$2
30794 ac_shift=shift
30795 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030796 *) # This is not an option, so the user has probably given explicit
30797 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030798 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030799 ac_need_defaults=false;;
30800 esac
30801
John Criswell0c38eaf2003-09-10 15:17:25 +000030802 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030803 # Handling of the options.
30804_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030805cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30807 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030808 --version | --vers* | -V )
30809 echo "$ac_cs_version"; exit 0 ;;
30810 --he | --h)
30811 # Conflict between --help and --header
30812 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30813Try \`$0 --help' for more information." >&5
30814echo "$as_me: error: ambiguous option: $1
30815Try \`$0 --help' for more information." >&2;}
30816 { (exit 1); exit 1; }; };;
30817 --help | --hel | -h )
30818 echo "$ac_cs_usage"; exit 0 ;;
30819 --debug | --d* | -d )
30820 debug=: ;;
30821 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030822 $ac_shift
30823 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030824 ac_need_defaults=false;;
30825 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030826 $ac_shift
30827 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030828 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30831 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030832
30833 # This is an error.
30834 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30835Try \`$0 --help' for more information." >&5
30836echo "$as_me: error: unrecognized option: $1
30837Try \`$0 --help' for more information." >&2;}
30838 { (exit 1); exit 1; }; } ;;
30839
30840 *) ac_config_targets="$ac_config_targets $1" ;;
30841
30842 esac
30843 shift
30844done
30845
John Criswell0c38eaf2003-09-10 15:17:25 +000030846ac_configure_extra_args=
30847
30848if $ac_cs_silent; then
30849 exec 6>/dev/null
30850 ac_configure_extra_args="$ac_configure_extra_args --silent"
30851fi
30852
30853_ACEOF
30854cat >>$CONFIG_STATUS <<_ACEOF
30855if \$ac_cs_recheck; then
30856 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30857 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30858fi
30859
John Criswell7a73b802003-06-30 21:59:07 +000030860_ACEOF
30861
John Criswellc764fbc2003-09-06 15:17:13 +000030862cat >>$CONFIG_STATUS <<_ACEOF
30863#
30864# INIT-COMMANDS section.
30865#
John Criswell7a73b802003-06-30 21:59:07 +000030866
Reid Spencerc0682832005-02-24 19:05:19 +000030867llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000030868
30869_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030870
30871
30872
30873cat >>$CONFIG_STATUS <<\_ACEOF
30874for ac_config_target in $ac_config_targets
30875do
30876 case "$ac_config_target" in
30877 # Handling of arguments.
30878 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030879 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30880 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30881 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30882 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030883 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000030884 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030885 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30886 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030887 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030888 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030889 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030890 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30891 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030892 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030893 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030894 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030895 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030896 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030897 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30898 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030899 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30900 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030901 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30902echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30903 { (exit 1); exit 1; }; };;
30904 esac
30905done
30906
30907# If the user did not use the arguments to specify the items to instantiate,
30908# then the envvar interface is used. Set only those that are not.
30909# We use the long form for the default assignment because of an extremely
30910# bizarre bug on SunOS 4.1.3.
30911if $ac_need_defaults; then
30912 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30913 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000030914 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030915fi
30916
John Criswell0c38eaf2003-09-10 15:17:25 +000030917# Have a temporary directory for convenience. Make it in the build tree
30918# simply because there is no reason to put it here, and in addition,
30919# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030920# Create a temporary directory, and hook for its removal unless debugging.
30921$debug ||
30922{
30923 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30924 trap '{ (exit 1); exit 1; }' 1 2 13 15
30925}
30926
30927# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030928
John Criswell7a73b802003-06-30 21:59:07 +000030929{
John Criswell0c38eaf2003-09-10 15:17:25 +000030930 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030931 test -n "$tmp" && test -d "$tmp"
30932} ||
30933{
John Criswell0c38eaf2003-09-10 15:17:25 +000030934 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030935 (umask 077 && mkdir $tmp)
30936} ||
30937{
John Criswell0c38eaf2003-09-10 15:17:25 +000030938 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030939 { (exit 1); exit 1; }
30940}
30941
30942_ACEOF
30943
30944cat >>$CONFIG_STATUS <<_ACEOF
30945
30946#
30947# CONFIG_FILES section.
30948#
30949
30950# No need to generate the scripts if there are no CONFIG_FILES.
30951# This happens for instance when ./config.status config.h
30952if test -n "\$CONFIG_FILES"; then
30953 # Protect against being on the right side of a sed subst in config.status.
30954 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30955 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30956s,@SHELL@,$SHELL,;t t
30957s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30958s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30959s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30960s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30961s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30962s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30963s,@exec_prefix@,$exec_prefix,;t t
30964s,@prefix@,$prefix,;t t
30965s,@program_transform_name@,$program_transform_name,;t t
30966s,@bindir@,$bindir,;t t
30967s,@sbindir@,$sbindir,;t t
30968s,@libexecdir@,$libexecdir,;t t
30969s,@datadir@,$datadir,;t t
30970s,@sysconfdir@,$sysconfdir,;t t
30971s,@sharedstatedir@,$sharedstatedir,;t t
30972s,@localstatedir@,$localstatedir,;t t
30973s,@libdir@,$libdir,;t t
30974s,@includedir@,$includedir,;t t
30975s,@oldincludedir@,$oldincludedir,;t t
30976s,@infodir@,$infodir,;t t
30977s,@mandir@,$mandir,;t t
30978s,@build_alias@,$build_alias,;t t
30979s,@host_alias@,$host_alias,;t t
30980s,@target_alias@,$target_alias,;t t
30981s,@DEFS@,$DEFS,;t t
30982s,@ECHO_C@,$ECHO_C,;t t
30983s,@ECHO_N@,$ECHO_N,;t t
30984s,@ECHO_T@,$ECHO_T,;t t
30985s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030986s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030987s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030988s,@build@,$build,;t t
30989s,@build_cpu@,$build_cpu,;t t
30990s,@build_vendor@,$build_vendor,;t t
30991s,@build_os@,$build_os,;t t
30992s,@host@,$host,;t t
30993s,@host_cpu@,$host_cpu,;t t
30994s,@host_vendor@,$host_vendor,;t t
30995s,@host_os@,$host_os,;t t
30996s,@target@,$target,;t t
30997s,@target_cpu@,$target_cpu,;t t
30998s,@target_vendor@,$target_vendor,;t t
30999s,@target_os@,$target_os,;t t
31000s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031001s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31002s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031003s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031004s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031005s,@CC@,$CC,;t t
31006s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031007s,@LDFLAGS@,$LDFLAGS,;t t
31008s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031009s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031010s,@EXEEXT@,$EXEEXT,;t t
31011s,@OBJEXT@,$OBJEXT,;t t
31012s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31013s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031014s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031015s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031016s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031017s,@CXX@,$CXX,;t t
31018s,@CXXFLAGS@,$CXXFLAGS,;t t
31019s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031020s,@LEX@,$LEX,;t t
31021s,@LEXLIB@,$LEXLIB,;t t
31022s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031023s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031024s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031025s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031026s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031027s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031028s,@CMP@,$CMP,;t t
31029s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031030s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031031s,@FIND@,$FIND,;t t
31032s,@GREP@,$GREP,;t t
31033s,@MKDIR@,$MKDIR,;t t
31034s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031035s,@RANLIB@,$RANLIB,;t t
31036s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031037s,@RM@,$RM,;t t
31038s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031039s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031040s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31041s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31042s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031043s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031044s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031045s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031046s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031047s,@GROFF@,$GROFF,;t t
31048s,@GZIP@,$GZIP,;t t
31049s,@POD2HTML@,$POD2HTML,;t t
31050s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031051s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031052s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031053s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031054s,@EGREP@,$EGREP,;t t
31055s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31056s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31057s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31058s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31059s,@LIBADD_DL@,$LIBADD_DL,;t t
31060s,@ECHO@,$ECHO,;t t
31061s,@AR@,$AR,;t t
31062s,@ac_ct_AR@,$ac_ct_AR,;t t
31063s,@STRIP@,$STRIP,;t t
31064s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31065s,@CXXCPP@,$CXXCPP,;t t
31066s,@F77@,$F77,;t t
31067s,@FFLAGS@,$FFLAGS,;t t
31068s,@ac_ct_F77@,$ac_ct_F77,;t t
31069s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031070s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031071s,@LLVMGCC@,$LLVMGCC,;t t
31072s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031073s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031074s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031075s,@LLVMCC1@,$LLVMCC1,;t t
31076s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031077s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031078s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031079s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31080s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31081s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31082s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31083s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31084s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31085s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31086s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31087s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31088s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031089s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031090s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031091CEOF
31092
31093_ACEOF
31094
31095 cat >>$CONFIG_STATUS <<\_ACEOF
31096 # Split the substitutions into bite-sized pieces for seds with
31097 # small command number limits, like on Digital OSF/1 and HP-UX.
31098 ac_max_sed_lines=48
31099 ac_sed_frag=1 # Number of current file.
31100 ac_beg=1 # First line for current file.
31101 ac_end=$ac_max_sed_lines # Line after last line for current file.
31102 ac_more_lines=:
31103 ac_sed_cmds=
31104 while $ac_more_lines; do
31105 if test $ac_beg -gt 1; then
31106 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31107 else
31108 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31109 fi
31110 if test ! -s $tmp/subs.frag; then
31111 ac_more_lines=false
31112 else
31113 # The purpose of the label and of the branching condition is to
31114 # speed up the sed processing (if there are no `@' at all, there
31115 # is no need to browse any of the substitutions).
31116 # These are the two extra sed commands mentioned above.
31117 (echo ':t
31118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31119 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031120 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031121 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031122 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031123 fi
31124 ac_sed_frag=`expr $ac_sed_frag + 1`
31125 ac_beg=$ac_end
31126 ac_end=`expr $ac_end + $ac_max_sed_lines`
31127 fi
31128 done
31129 if test -z "$ac_sed_cmds"; then
31130 ac_sed_cmds=cat
31131 fi
31132fi # test -n "$CONFIG_FILES"
31133
31134_ACEOF
31135cat >>$CONFIG_STATUS <<\_ACEOF
31136for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31137 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31138 case $ac_file in
31139 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031140 cat >$tmp/stdin
31141 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031143 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031145 * ) ac_file_in=$ac_file.in ;;
31146 esac
31147
31148 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31149 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31150$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031151 X"$ac_file" : 'X\(//\)[^/]' \| \
31152 X"$ac_file" : 'X\(//\)$' \| \
31153 X"$ac_file" : 'X\(/\)' \| \
31154 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031155echo X"$ac_file" |
31156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31158 /^X\(\/\/\)$/{ s//\1/; q; }
31159 /^X\(\/\).*/{ s//\1/; q; }
31160 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031161 { if $as_mkdir_p; then
31162 mkdir -p "$ac_dir"
31163 else
31164 as_dir="$ac_dir"
31165 as_dirs=
31166 while test ! -d "$as_dir"; do
31167 as_dirs="$as_dir $as_dirs"
31168 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031170 X"$as_dir" : 'X\(//\)[^/]' \| \
31171 X"$as_dir" : 'X\(//\)$' \| \
31172 X"$as_dir" : 'X\(/\)' \| \
31173 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031174echo X"$as_dir" |
31175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31177 /^X\(\/\/\)$/{ s//\1/; q; }
31178 /^X\(\/\).*/{ s//\1/; q; }
31179 s/.*/./; q'`
31180 done
31181 test ! -n "$as_dirs" || mkdir $as_dirs
31182 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31183echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31184 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031185
31186 ac_builddir=.
31187
31188if test "$ac_dir" != .; then
31189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31190 # A "../" for each directory in $ac_dir_suffix.
31191 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31192else
31193 ac_dir_suffix= ac_top_builddir=
31194fi
31195
31196case $srcdir in
31197 .) # No --srcdir option. We are building in place.
31198 ac_srcdir=.
31199 if test -z "$ac_top_builddir"; then
31200 ac_top_srcdir=.
31201 else
31202 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31203 fi ;;
31204 [\\/]* | ?:[\\/]* ) # Absolute path.
31205 ac_srcdir=$srcdir$ac_dir_suffix;
31206 ac_top_srcdir=$srcdir ;;
31207 *) # Relative path.
31208 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31209 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31210esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031211
31212# Do not use `cd foo && pwd` to compute absolute paths, because
31213# the directories may not exist.
31214case `pwd` in
31215.) ac_abs_builddir="$ac_dir";;
31216*)
31217 case "$ac_dir" in
31218 .) ac_abs_builddir=`pwd`;;
31219 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31220 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31221 esac;;
31222esac
31223case $ac_abs_builddir in
31224.) ac_abs_top_builddir=${ac_top_builddir}.;;
31225*)
31226 case ${ac_top_builddir}. in
31227 .) ac_abs_top_builddir=$ac_abs_builddir;;
31228 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31229 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31230 esac;;
31231esac
31232case $ac_abs_builddir in
31233.) ac_abs_srcdir=$ac_srcdir;;
31234*)
31235 case $ac_srcdir in
31236 .) ac_abs_srcdir=$ac_abs_builddir;;
31237 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31238 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31239 esac;;
31240esac
31241case $ac_abs_builddir in
31242.) ac_abs_top_srcdir=$ac_top_srcdir;;
31243*)
31244 case $ac_top_srcdir in
31245 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31246 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31247 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31248 esac;;
31249esac
John Criswell7a73b802003-06-30 21:59:07 +000031250
31251
31252 case $INSTALL in
31253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31254 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31255 esac
31256
31257 if test x"$ac_file" != x-; then
31258 { echo "$as_me:$LINENO: creating $ac_file" >&5
31259echo "$as_me: creating $ac_file" >&6;}
31260 rm -f "$ac_file"
31261 fi
31262 # Let's still pretend it is `configure' which instantiates (i.e., don't
31263 # use $as_me), people would be surprised to read:
31264 # /* config.h. Generated by config.status. */
31265 if test x"$ac_file" = x-; then
31266 configure_input=
31267 else
31268 configure_input="$ac_file. "
31269 fi
31270 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031271 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031272
31273 # First look for the input files in the build tree, otherwise in the
31274 # src tree.
31275 ac_file_inputs=`IFS=:
31276 for f in $ac_file_in; do
31277 case $f in
31278 -) echo $tmp/stdin ;;
31279 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031280 # Absolute (can't be DOS-style, as IFS=:)
31281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031282echo "$as_me: error: cannot find input file: $f" >&2;}
31283 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031284 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031285 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031286 if test -f "$f"; then
31287 # Build tree
31288 echo "$f"
31289 elif test -f "$srcdir/$f"; then
31290 # Source tree
31291 echo "$srcdir/$f"
31292 else
31293 # /dev/null tree
31294 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031295echo "$as_me: error: cannot find input file: $f" >&2;}
31296 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031297 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031298 esac
31299 done` || { (exit 1); exit 1; }
31300_ACEOF
31301cat >>$CONFIG_STATUS <<_ACEOF
31302 sed "$ac_vpsub
31303$extrasub
31304_ACEOF
31305cat >>$CONFIG_STATUS <<\_ACEOF
31306:t
31307/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31308s,@configure_input@,$configure_input,;t t
31309s,@srcdir@,$ac_srcdir,;t t
31310s,@abs_srcdir@,$ac_abs_srcdir,;t t
31311s,@top_srcdir@,$ac_top_srcdir,;t t
31312s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31313s,@builddir@,$ac_builddir,;t t
31314s,@abs_builddir@,$ac_abs_builddir,;t t
31315s,@top_builddir@,$ac_top_builddir,;t t
31316s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31317s,@INSTALL@,$ac_INSTALL,;t t
31318" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31319 rm -f $tmp/stdin
31320 if test x"$ac_file" != x-; then
31321 mv $tmp/out $ac_file
31322 else
31323 cat $tmp/out
31324 rm -f $tmp/out
31325 fi
31326
31327done
31328_ACEOF
31329cat >>$CONFIG_STATUS <<\_ACEOF
31330
31331#
31332# CONFIG_HEADER section.
31333#
31334
31335# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31336# NAME is the cpp macro being defined and VALUE is the value it is being given.
31337#
31338# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031339ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31340ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031341ac_dC=' '
31342ac_dD=',;t'
31343# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031344ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031345ac_uB='$,\1#\2define\3'
31346ac_uC=' '
31347ac_uD=',;t'
31348
31349for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31351 case $ac_file in
31352 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031353 cat >$tmp/stdin
31354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031358 * ) ac_file_in=$ac_file.in ;;
31359 esac
31360
31361 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31362echo "$as_me: creating $ac_file" >&6;}
31363
31364 # First look for the input files in the build tree, otherwise in the
31365 # src tree.
31366 ac_file_inputs=`IFS=:
31367 for f in $ac_file_in; do
31368 case $f in
31369 -) echo $tmp/stdin ;;
31370 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031371 # Absolute (can't be DOS-style, as IFS=:)
31372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031373echo "$as_me: error: cannot find input file: $f" >&2;}
31374 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031375 # Do quote $f, to prevent DOS paths from being IFS'd.
31376 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031377 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031378 if test -f "$f"; then
31379 # Build tree
31380 echo "$f"
31381 elif test -f "$srcdir/$f"; then
31382 # Source tree
31383 echo "$srcdir/$f"
31384 else
31385 # /dev/null tree
31386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031387echo "$as_me: error: cannot find input file: $f" >&2;}
31388 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031389 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031390 esac
31391 done` || { (exit 1); exit 1; }
31392 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031393 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031394
31395_ACEOF
31396
31397# Transform confdefs.h into two sed scripts, `conftest.defines' and
31398# `conftest.undefs', that substitutes the proper values into
31399# config.h.in to produce config.h. The first handles `#define'
31400# templates, and the second `#undef' templates.
31401# And first: Protect against being on the right side of a sed subst in
31402# config.status. Protect against being in an unquoted here document
31403# in config.status.
31404rm -f conftest.defines conftest.undefs
31405# Using a here document instead of a string reduces the quoting nightmare.
31406# Putting comments in sed scripts is not portable.
31407#
31408# `end' is used to avoid that the second main sed command (meant for
31409# 0-ary CPP macros) applies to n-ary macro definitions.
31410# See the Autoconf documentation for `clear'.
31411cat >confdef2sed.sed <<\_ACEOF
31412s/[\\&,]/\\&/g
31413s,[\\$`],\\&,g
31414t clear
31415: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031416s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031417t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031418s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031419: end
31420_ACEOF
31421# If some macros were called several times there might be several times
31422# the same #defines, which is useless. Nevertheless, we may not want to
31423# sort them, since we want the *last* AC-DEFINE to be honored.
31424uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31425sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31426rm -f confdef2sed.sed
31427
31428# This sed command replaces #undef with comments. This is necessary, for
31429# example, in the case of _POSIX_SOURCE, which is predefined and required
31430# on some systems where configure will not decide to define it.
31431cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031432s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031433_ACEOF
31434
31435# Break up conftest.defines because some shells have a limit on the size
31436# of here documents, and old seds have small limits too (100 cmds).
31437echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031438echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031439echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31440echo ' :' >>$CONFIG_STATUS
31441rm -f conftest.tail
31442while grep . conftest.defines >/dev/null
31443do
31444 # Write a limited-size here document to $tmp/defines.sed.
31445 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31446 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031447 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031448 # Work around the forget-to-reset-the-flag bug.
31449 echo 't clr' >>$CONFIG_STATUS
31450 echo ': clr' >>$CONFIG_STATUS
31451 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31452 echo 'CEOF
31453 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31454 rm -f $tmp/in
31455 mv $tmp/out $tmp/in
31456' >>$CONFIG_STATUS
31457 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31458 rm -f conftest.defines
31459 mv conftest.tail conftest.defines
31460done
31461rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031462echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031463echo >>$CONFIG_STATUS
31464
31465# Break up conftest.undefs because some shells have a limit on the size
31466# of here documents, and old seds have small limits too (100 cmds).
31467echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31468rm -f conftest.tail
31469while grep . conftest.undefs >/dev/null
31470do
31471 # Write a limited-size here document to $tmp/undefs.sed.
31472 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31473 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031474 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031475 # Work around the forget-to-reset-the-flag bug.
31476 echo 't clr' >>$CONFIG_STATUS
31477 echo ': clr' >>$CONFIG_STATUS
31478 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31479 echo 'CEOF
31480 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31481 rm -f $tmp/in
31482 mv $tmp/out $tmp/in
31483' >>$CONFIG_STATUS
31484 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31485 rm -f conftest.undefs
31486 mv conftest.tail conftest.undefs
31487done
31488rm -f conftest.undefs
31489
31490cat >>$CONFIG_STATUS <<\_ACEOF
31491 # Let's still pretend it is `configure' which instantiates (i.e., don't
31492 # use $as_me), people would be surprised to read:
31493 # /* config.h. Generated by config.status. */
31494 if test x"$ac_file" = x-; then
31495 echo "/* Generated by configure. */" >$tmp/config.h
31496 else
31497 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31498 fi
31499 cat $tmp/in >>$tmp/config.h
31500 rm -f $tmp/in
31501 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031502 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031503 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31504echo "$as_me: $ac_file is unchanged" >&6;}
31505 else
31506 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31507$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031508 X"$ac_file" : 'X\(//\)[^/]' \| \
31509 X"$ac_file" : 'X\(//\)$' \| \
31510 X"$ac_file" : 'X\(/\)' \| \
31511 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031512echo X"$ac_file" |
31513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31515 /^X\(\/\/\)$/{ s//\1/; q; }
31516 /^X\(\/\).*/{ s//\1/; q; }
31517 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031518 { if $as_mkdir_p; then
31519 mkdir -p "$ac_dir"
31520 else
31521 as_dir="$ac_dir"
31522 as_dirs=
31523 while test ! -d "$as_dir"; do
31524 as_dirs="$as_dir $as_dirs"
31525 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31526$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031527 X"$as_dir" : 'X\(//\)[^/]' \| \
31528 X"$as_dir" : 'X\(//\)$' \| \
31529 X"$as_dir" : 'X\(/\)' \| \
31530 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031531echo X"$as_dir" |
31532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31534 /^X\(\/\/\)$/{ s//\1/; q; }
31535 /^X\(\/\).*/{ s//\1/; q; }
31536 s/.*/./; q'`
31537 done
31538 test ! -n "$as_dirs" || mkdir $as_dirs
31539 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31540echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31541 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031542
31543 rm -f $ac_file
31544 mv $tmp/config.h $ac_file
31545 fi
31546 else
31547 cat $tmp/config.h
31548 rm -f $tmp/config.h
31549 fi
31550done
31551_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031552cat >>$CONFIG_STATUS <<\_ACEOF
31553
31554#
31555# CONFIG_COMMANDS section.
31556#
31557for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31558 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31559 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31560 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31561$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031562 X"$ac_dest" : 'X\(//\)[^/]' \| \
31563 X"$ac_dest" : 'X\(//\)$' \| \
31564 X"$ac_dest" : 'X\(/\)' \| \
31565 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031566echo X"$ac_dest" |
31567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31569 /^X\(\/\/\)$/{ s//\1/; q; }
31570 /^X\(\/\).*/{ s//\1/; q; }
31571 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031572 { if $as_mkdir_p; then
31573 mkdir -p "$ac_dir"
31574 else
31575 as_dir="$ac_dir"
31576 as_dirs=
31577 while test ! -d "$as_dir"; do
31578 as_dirs="$as_dir $as_dirs"
31579 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31581 X"$as_dir" : 'X\(//\)[^/]' \| \
31582 X"$as_dir" : 'X\(//\)$' \| \
31583 X"$as_dir" : 'X\(/\)' \| \
31584 . : '\(.\)' 2>/dev/null ||
31585echo X"$as_dir" |
31586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31588 /^X\(\/\/\)$/{ s//\1/; q; }
31589 /^X\(\/\).*/{ s//\1/; q; }
31590 s/.*/./; q'`
31591 done
31592 test ! -n "$as_dirs" || mkdir $as_dirs
31593 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31594echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31595 { (exit 1); exit 1; }; }; }
31596
John Criswellc764fbc2003-09-06 15:17:13 +000031597 ac_builddir=.
31598
31599if test "$ac_dir" != .; then
31600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31601 # A "../" for each directory in $ac_dir_suffix.
31602 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31603else
31604 ac_dir_suffix= ac_top_builddir=
31605fi
31606
31607case $srcdir in
31608 .) # No --srcdir option. We are building in place.
31609 ac_srcdir=.
31610 if test -z "$ac_top_builddir"; then
31611 ac_top_srcdir=.
31612 else
31613 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31614 fi ;;
31615 [\\/]* | ?:[\\/]* ) # Absolute path.
31616 ac_srcdir=$srcdir$ac_dir_suffix;
31617 ac_top_srcdir=$srcdir ;;
31618 *) # Relative path.
31619 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31620 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31621esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031622
31623# Do not use `cd foo && pwd` to compute absolute paths, because
31624# the directories may not exist.
31625case `pwd` in
31626.) ac_abs_builddir="$ac_dir";;
31627*)
31628 case "$ac_dir" in
31629 .) ac_abs_builddir=`pwd`;;
31630 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31631 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31632 esac;;
31633esac
31634case $ac_abs_builddir in
31635.) ac_abs_top_builddir=${ac_top_builddir}.;;
31636*)
31637 case ${ac_top_builddir}. in
31638 .) ac_abs_top_builddir=$ac_abs_builddir;;
31639 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31640 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31641 esac;;
31642esac
31643case $ac_abs_builddir in
31644.) ac_abs_srcdir=$ac_srcdir;;
31645*)
31646 case $ac_srcdir in
31647 .) ac_abs_srcdir=$ac_abs_builddir;;
31648 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31649 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31650 esac;;
31651esac
31652case $ac_abs_builddir in
31653.) ac_abs_top_srcdir=$ac_top_srcdir;;
31654*)
31655 case $ac_top_srcdir in
31656 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31657 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31658 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31659 esac;;
31660esac
John Criswellc764fbc2003-09-06 15:17:13 +000031661
31662
31663 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31664echo "$as_me: executing $ac_dest commands" >&6;}
31665 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031666 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31667 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31668 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31669 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31670 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31671 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31672 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31673 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31674 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31675 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31676 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31677 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31678 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31679 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31680 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31681 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31682 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31683 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31684 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31685 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031686 esac
31687done
31688_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031689
31690cat >>$CONFIG_STATUS <<\_ACEOF
31691
31692{ (exit 0); exit 0; }
31693_ACEOF
31694chmod +x $CONFIG_STATUS
31695ac_clean_files=$ac_clean_files_save
31696
31697
31698# configure is writing to config.log, and then calls config.status.
31699# config.status does its own redirection, appending to config.log.
31700# Unfortunately, on DOS this fails, as config.log is still kept open
31701# by configure, so config.status won't be able to write to it; its
31702# output is simply discarded. So we exec the FD to /dev/null,
31703# effectively closing config.log, so it can be properly (re)opened and
31704# appended to by config.status. When coming back to configure, we
31705# need to make the FD available again.
31706if test "$no_create" != yes; then
31707 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031708 ac_config_status_args=
31709 test "$silent" = yes &&
31710 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031711 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031713 exec 5>>config.log
31714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31715 # would make configure fail if this is the last instruction.
31716 $ac_cs_success || { (exit 1); exit 1; }
31717fi
31718
John Criswell12399a12003-09-30 15:55:44 +000031719#
31720# CONFIG_SUBDIRS section.
31721#
31722if test "$no_recursion" != yes; then
31723
31724 # Remove --cache-file and --srcdir arguments so they do not pile up.
31725 ac_sub_configure_args=
31726 ac_prev=
31727 for ac_arg in $ac_configure_args; do
31728 if test -n "$ac_prev"; then
31729 ac_prev=
31730 continue
31731 fi
31732 case $ac_arg in
31733 -cache-file | --cache-file | --cache-fil | --cache-fi \
31734 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31735 ac_prev=cache_file ;;
31736 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31737 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31738 | --c=*)
31739 ;;
31740 --config-cache | -C)
31741 ;;
31742 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31743 ac_prev=srcdir ;;
31744 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31745 ;;
31746 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31747 ac_prev=prefix ;;
31748 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31749 ;;
31750 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31751 esac
31752 done
31753
31754 # Always prepend --prefix to ensure using the same prefix
31755 # in subdir configurations.
31756 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31757
31758 ac_popdir=`pwd`
31759 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31760
31761 # Do not complain, so a configure script can configure whichever
31762 # parts of a large source tree are present.
31763 test -d $srcdir/$ac_dir || continue
31764
31765 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31766echo "$as_me: configuring in $ac_dir" >&6;}
31767 { if $as_mkdir_p; then
31768 mkdir -p "$ac_dir"
31769 else
31770 as_dir="$ac_dir"
31771 as_dirs=
31772 while test ! -d "$as_dir"; do
31773 as_dirs="$as_dir $as_dirs"
31774 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031776 X"$as_dir" : 'X\(//\)[^/]' \| \
31777 X"$as_dir" : 'X\(//\)$' \| \
31778 X"$as_dir" : 'X\(/\)' \| \
31779 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031780echo X"$as_dir" |
31781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31783 /^X\(\/\/\)$/{ s//\1/; q; }
31784 /^X\(\/\).*/{ s//\1/; q; }
31785 s/.*/./; q'`
31786 done
31787 test ! -n "$as_dirs" || mkdir $as_dirs
31788 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31789echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31790 { (exit 1); exit 1; }; }; }
31791
31792 ac_builddir=.
31793
31794if test "$ac_dir" != .; then
31795 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31796 # A "../" for each directory in $ac_dir_suffix.
31797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31798else
31799 ac_dir_suffix= ac_top_builddir=
31800fi
31801
31802case $srcdir in
31803 .) # No --srcdir option. We are building in place.
31804 ac_srcdir=.
31805 if test -z "$ac_top_builddir"; then
31806 ac_top_srcdir=.
31807 else
31808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31809 fi ;;
31810 [\\/]* | ?:[\\/]* ) # Absolute path.
31811 ac_srcdir=$srcdir$ac_dir_suffix;
31812 ac_top_srcdir=$srcdir ;;
31813 *) # Relative path.
31814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31815 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31816esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031817
31818# Do not use `cd foo && pwd` to compute absolute paths, because
31819# the directories may not exist.
31820case `pwd` in
31821.) ac_abs_builddir="$ac_dir";;
31822*)
31823 case "$ac_dir" in
31824 .) ac_abs_builddir=`pwd`;;
31825 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31826 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31827 esac;;
31828esac
31829case $ac_abs_builddir in
31830.) ac_abs_top_builddir=${ac_top_builddir}.;;
31831*)
31832 case ${ac_top_builddir}. in
31833 .) ac_abs_top_builddir=$ac_abs_builddir;;
31834 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31835 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31836 esac;;
31837esac
31838case $ac_abs_builddir in
31839.) ac_abs_srcdir=$ac_srcdir;;
31840*)
31841 case $ac_srcdir in
31842 .) ac_abs_srcdir=$ac_abs_builddir;;
31843 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31844 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31845 esac;;
31846esac
31847case $ac_abs_builddir in
31848.) ac_abs_top_srcdir=$ac_top_srcdir;;
31849*)
31850 case $ac_top_srcdir in
31851 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31852 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31853 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31854 esac;;
31855esac
John Criswell12399a12003-09-30 15:55:44 +000031856
31857
31858 cd $ac_dir
31859
31860 # Check for guested configure; otherwise get Cygnus style configure.
31861 if test -f $ac_srcdir/configure.gnu; then
31862 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31863 elif test -f $ac_srcdir/configure; then
31864 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31865 elif test -f $ac_srcdir/configure.in; then
31866 ac_sub_configure=$ac_configure
31867 else
31868 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31869echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31870 ac_sub_configure=
31871 fi
31872
31873 # The recursion is here.
31874 if test -n "$ac_sub_configure"; then
31875 # Make the cache file name correct relative to the subdirectory.
31876 case $cache_file in
31877 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31878 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031879 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031880 esac
31881
31882 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31883echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31884 # The eval makes quoting arguments work.
31885 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031886 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31887 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031888echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31889 { (exit 1); exit 1; }; }
31890 fi
31891
31892 cd $ac_popdir
31893 done
31894fi
31895
Brian Gaekef3b24102003-11-16 18:38:14 +000031896
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031897if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031898 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31899echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031900 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31901echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31902 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31903echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31904 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31905echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31906 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31907echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031908fi